xref: /freebsd/crypto/krb5/src/configure (revision 621e0e7f27303452c2f5b5fcf93aaf72e2b036a6)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for Kerberos 5 1.22.1.
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-2017, 2020-2021 Free Software Foundation,
13# Inc.
14#
15#
16# This configure script is free software; the Free Software Foundation
17# gives unlimited permission to copy, distribute and modify it.
18## -------------------- ##
19## M4sh Initialization. ##
20## -------------------- ##
21
22# Be more Bourne compatible
23DUALCASE=1; export DUALCASE # for MKS sh
24as_nop=:
25if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
26then :
27  emulate sh
28  NULLCMD=:
29  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30  # is contrary to our usage.  Disable this feature.
31  alias -g '${1+"$@"}'='"$@"'
32  setopt NO_GLOB_SUBST
33else $as_nop
34  case `(set -o) 2>/dev/null` in #(
35  *posix*) :
36    set -o posix ;; #(
37  *) :
38     ;;
39esac
40fi
41
42
43
44# Reset variables that may have inherited troublesome values from
45# the environment.
46
47# IFS needs to be set, to space, tab, and newline, in precisely that order.
48# (If _AS_PATH_WALK were called with IFS unset, it would have the
49# side effect of setting IFS to empty, thus disabling word splitting.)
50# Quoting is to prevent editors from complaining about space-tab.
51as_nl='
52'
53export as_nl
54IFS=" ""	$as_nl"
55
56PS1='$ '
57PS2='> '
58PS4='+ '
59
60# Ensure predictable behavior from utilities with locale-dependent output.
61LC_ALL=C
62export LC_ALL
63LANGUAGE=C
64export LANGUAGE
65
66# We cannot yet rely on "unset" to work, but we need these variables
67# to be unset--not just set to an empty or harmless value--now, to
68# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
69# also avoids known problems related to "unset" and subshell syntax
70# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
71for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
72do eval test \${$as_var+y} \
73  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
74done
75
76# Ensure that fds 0, 1, and 2 are open.
77if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
78if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
79if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
80
81# The user is always right.
82if ${PATH_SEPARATOR+false} :; then
83  PATH_SEPARATOR=:
84  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
85    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86      PATH_SEPARATOR=';'
87  }
88fi
89
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  case $as_dir in #(((
100    '') as_dir=./ ;;
101    */) ;;
102    *) as_dir=$as_dir/ ;;
103  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  exit 1
118fi
119
120
121# Use a proper internal environment variable to ensure we don't fall
122  # into an infinite loop, continuously re-executing ourselves.
123  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
124    _as_can_reexec=no; export _as_can_reexec;
125    # We cannot yet assume a decent shell, so we have to provide a
126# neutralization value for shells without unset; and this also
127# works around shells that cannot unset nonexistent variables.
128# Preserve -v and -x to the replacement shell.
129BASH_ENV=/dev/null
130ENV=/dev/null
131(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
132case $- in # ((((
133  *v*x* | *x*v* ) as_opts=-vx ;;
134  *v* ) as_opts=-v ;;
135  *x* ) as_opts=-x ;;
136  * ) as_opts= ;;
137esac
138exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
139# Admittedly, this is quite paranoid, since all the known shells bail
140# out after a failed `exec'.
141printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
142exit 255
143  fi
144  # We don't want this to propagate to other subprocesses.
145          { _as_can_reexec=; unset _as_can_reexec;}
146if test "x$CONFIG_SHELL" = x; then
147  as_bourne_compatible="as_nop=:
148if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
149then :
150  emulate sh
151  NULLCMD=:
152  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
153  # is contrary to our usage.  Disable this feature.
154  alias -g '\${1+\"\$@\"}'='\"\$@\"'
155  setopt NO_GLOB_SUBST
156else \$as_nop
157  case \`(set -o) 2>/dev/null\` in #(
158  *posix*) :
159    set -o posix ;; #(
160  *) :
161     ;;
162esac
163fi
164"
165  as_required="as_fn_return () { (exit \$1); }
166as_fn_success () { as_fn_return 0; }
167as_fn_failure () { as_fn_return 1; }
168as_fn_ret_success () { return 0; }
169as_fn_ret_failure () { return 1; }
170
171exitcode=0
172as_fn_success || { exitcode=1; echo as_fn_success failed.; }
173as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
174as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
175as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
176if ( set x; as_fn_ret_success y && test x = \"\$1\" )
177then :
178
179else \$as_nop
180  exitcode=1; echo positional parameters were not saved.
181fi
182test x\$exitcode = x0 || exit 1
183blah=\$(echo \$(echo blah))
184test x\"\$blah\" = xblah || exit 1
185test -x / || exit 1"
186  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190test \$(( 1 + 1 )) = 2 || exit 1"
191  if (eval "$as_required") 2>/dev/null
192then :
193  as_have_required=yes
194else $as_nop
195  as_have_required=no
196fi
197  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
198then :
199
200else $as_nop
201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
202as_found=false
203for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
204do
205  IFS=$as_save_IFS
206  case $as_dir in #(((
207    '') as_dir=./ ;;
208    */) ;;
209    *) as_dir=$as_dir/ ;;
210  esac
211  as_found=:
212  case $as_dir in #(
213	 /*)
214	   for as_base in sh bash ksh sh5; do
215	     # Try only shells that exist, to save several forks.
216	     as_shell=$as_dir$as_base
217	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
218		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
219then :
220  CONFIG_SHELL=$as_shell as_have_required=yes
221		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
222then :
223  break 2
224fi
225fi
226	   done;;
227       esac
228  as_found=false
229done
230IFS=$as_save_IFS
231if $as_found
232then :
233
234else $as_nop
235  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
237then :
238  CONFIG_SHELL=$SHELL as_have_required=yes
239fi
240fi
241
242
243      if test "x$CONFIG_SHELL" != x
244then :
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'.
262printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
263exit 255
264fi
265
266    if test x$as_have_required = xno
267then :
268  printf "%s\n" "$0: This script requires a shell more modern than all"
269  printf "%s\n" "$0: the shells that I found on your system."
270  if test ${ZSH_VERSION+y} ; then
271    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
272    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
273  else
274    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and krb5-bugs@mit.edu
275$0: about your system, including any error possibly output
276$0: before this message. Then install a modern shell, or
277$0: manually run the script under such a shell if you do
278$0: have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302
303# as_fn_set_status STATUS
304# -----------------------
305# Set $? to STATUS, without forking.
306as_fn_set_status ()
307{
308  return $1
309} # as_fn_set_status
310
311# as_fn_exit STATUS
312# -----------------
313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314as_fn_exit ()
315{
316  set +e
317  as_fn_set_status $1
318  exit $1
319} # as_fn_exit
320# as_fn_nop
321# ---------
322# Do nothing but, unlike ":", preserve the value of $?.
323as_fn_nop ()
324{
325  return $?
326}
327as_nop=as_fn_nop
328
329# as_fn_mkdir_p
330# -------------
331# Create "$as_dir" as a directory, including parents if necessary.
332as_fn_mkdir_p ()
333{
334
335  case $as_dir in #(
336  -*) as_dir=./$as_dir;;
337  esac
338  test -d "$as_dir" || eval $as_mkdir_p || {
339    as_dirs=
340    while :; do
341      case $as_dir in #(
342      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343      *) as_qdir=$as_dir;;
344      esac
345      as_dirs="'$as_qdir' $as_dirs"
346      as_dir=`$as_dirname -- "$as_dir" ||
347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348	 X"$as_dir" : 'X\(//\)[^/]' \| \
349	 X"$as_dir" : 'X\(//\)$' \| \
350	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351printf "%s\n" X"$as_dir" |
352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353	    s//\1/
354	    q
355	  }
356	  /^X\(\/\/\)[^/].*/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)$/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\).*/{
365	    s//\1/
366	    q
367	  }
368	  s/.*/./; q'`
369      test -d "$as_dir" && break
370    done
371    test -z "$as_dirs" || eval "mkdir $as_dirs"
372  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375} # as_fn_mkdir_p
376
377# as_fn_executable_p FILE
378# -----------------------
379# Test if FILE is an executable regular file.
380as_fn_executable_p ()
381{
382  test -f "$1" && test -x "$1"
383} # as_fn_executable_p
384# as_fn_append VAR VALUE
385# ----------------------
386# Append the text in VALUE to the end of the definition contained in VAR. Take
387# advantage of any shell optimizations that allow amortized linear growth over
388# repeated appends, instead of the typical quadratic growth present in naive
389# implementations.
390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391then :
392  eval 'as_fn_append ()
393  {
394    eval $1+=\$2
395  }'
396else $as_nop
397  as_fn_append ()
398  {
399    eval $1=\$$1\$2
400  }
401fi # as_fn_append
402
403# as_fn_arith ARG...
404# ------------------
405# Perform arithmetic evaluation on the ARGs, and store the result in the
406# global $as_val. Take advantage of shells that can avoid forks. The arguments
407# must be portable across $(()) and expr.
408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409then :
410  eval 'as_fn_arith ()
411  {
412    as_val=$(( $* ))
413  }'
414else $as_nop
415  as_fn_arith ()
416  {
417    as_val=`expr "$@" || test $? -eq 1`
418  }
419fi # as_fn_arith
420
421# as_fn_nop
422# ---------
423# Do nothing but, unlike ":", preserve the value of $?.
424as_fn_nop ()
425{
426  return $?
427}
428as_nop=as_fn_nop
429
430# as_fn_error STATUS ERROR [LINENO LOG_FD]
431# ----------------------------------------
432# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
433# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
434# script with STATUS, using 1 if that was 0.
435as_fn_error ()
436{
437  as_status=$1; test $as_status -eq 0 && as_status=1
438  if test "$4"; then
439    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
440    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
441  fi
442  printf "%s\n" "$as_me: error: $2" >&2
443  as_fn_exit $as_status
444} # as_fn_error
445
446if expr a : '\(a\)' >/dev/null 2>&1 &&
447   test "X`expr 00001 : '.*\(...\)'`" = X001; then
448  as_expr=expr
449else
450  as_expr=false
451fi
452
453if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454  as_basename=basename
455else
456  as_basename=false
457fi
458
459if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460  as_dirname=dirname
461else
462  as_dirname=false
463fi
464
465as_me=`$as_basename -- "$0" ||
466$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
467	 X"$0" : 'X\(//\)$' \| \
468	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
469printf "%s\n" X/"$0" |
470    sed '/^.*\/\([^/][^/]*\)\/*$/{
471	    s//\1/
472	    q
473	  }
474	  /^X\/\(\/\/\)$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\).*/{
479	    s//\1/
480	    q
481	  }
482	  s/.*/./; q'`
483
484# Avoid depending upon Character Ranges.
485as_cr_letters='abcdefghijklmnopqrstuvwxyz'
486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
487as_cr_Letters=$as_cr_letters$as_cr_LETTERS
488as_cr_digits='0123456789'
489as_cr_alnum=$as_cr_Letters$as_cr_digits
490
491
492  as_lineno_1=$LINENO as_lineno_1a=$LINENO
493  as_lineno_2=$LINENO as_lineno_2a=$LINENO
494  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
495  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
496  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
497  sed -n '
498    p
499    /[$]LINENO/=
500  ' <$as_myself |
501    sed '
502      s/[$]LINENO.*/&-/
503      t lineno
504      b
505      :lineno
506      N
507      :loop
508      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
509      t loop
510      s/-\n.*//
511    ' >$as_me.lineno &&
512  chmod +x "$as_me.lineno" ||
513    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
514
515  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
516  # already done that, so ensure we don't try to do so again and fall
517  # in an infinite loop.  This has already happened in practice.
518  _as_can_reexec=no; export _as_can_reexec
519  # Don't try to exec as it changes $[0], causing all sort of problems
520  # (the dirname of $[0] is not the place where we might find the
521  # original and so on.  Autoconf is especially sensitive to this).
522  . "./$as_me.lineno"
523  # Exit status is that of the last command.
524  exit
525}
526
527
528# Determine whether it's possible to make 'echo' print without a newline.
529# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
530# for compatibility with existing Makefiles.
531ECHO_C= ECHO_N= ECHO_T=
532case `echo -n x` in #(((((
533-n*)
534  case `echo 'xy\c'` in
535  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
536  xy)  ECHO_C='\c';;
537  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
538       ECHO_T='	';;
539  esac;;
540*)
541  ECHO_N='-n';;
542esac
543
544# For backward compatibility with old third-party macros, we provide
545# the shell variables $as_echo and $as_echo_n.  New code should use
546# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
547as_echo='printf %s\n'
548as_echo_n='printf %s'
549
550
551rm -f conf$$ conf$$.exe conf$$.file
552if test -d conf$$.dir; then
553  rm -f conf$$.dir/conf$$.file
554else
555  rm -f conf$$.dir
556  mkdir conf$$.dir 2>/dev/null
557fi
558if (echo >conf$$.file) 2>/dev/null; then
559  if ln -s conf$$.file conf$$ 2>/dev/null; then
560    as_ln_s='ln -s'
561    # ... but there are two gotchas:
562    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
563    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
564    # In both cases, we have to default to `cp -pR'.
565    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
566      as_ln_s='cp -pR'
567  elif ln conf$$.file conf$$ 2>/dev/null; then
568    as_ln_s=ln
569  else
570    as_ln_s='cp -pR'
571  fi
572else
573  as_ln_s='cp -pR'
574fi
575rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
576rmdir conf$$.dir 2>/dev/null
577
578if mkdir -p . 2>/dev/null; then
579  as_mkdir_p='mkdir -p "$as_dir"'
580else
581  test -d ./-p && rmdir ./-p
582  as_mkdir_p=false
583fi
584
585as_test_x='test -x'
586as_executable_p=as_fn_executable_p
587
588# Sed expression to map a string onto a valid CPP name.
589as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
590
591# Sed expression to map a string onto a valid variable name.
592as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
593
594
595test -n "$DJDIR" || exec 7<&0 </dev/null
596exec 6>&1
597
598# Name of the host.
599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600# so uname gets run too.
601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603#
604# Initializations.
605#
606ac_default_prefix=/usr/local
607ac_clean_files=
608ac_config_libobj_dir=.
609LIBOBJS=
610cross_compiling=no
611subdirs=
612MFLAGS=
613MAKEFLAGS=
614
615# Identity of this package.
616PACKAGE_NAME='Kerberos 5'
617PACKAGE_TARNAME='krb5'
618PACKAGE_VERSION='1.22.1'
619PACKAGE_STRING='Kerberos 5 1.22.1'
620PACKAGE_BUGREPORT='krb5-bugs@mit.edu'
621PACKAGE_URL=''
622
623ac_unique_file="aclocal.m4"
624# Factoring default headers for most tests.
625ac_includes_default="\
626#include <stddef.h>
627#ifdef HAVE_STDIO_H
628# include <stdio.h>
629#endif
630#ifdef HAVE_STDLIB_H
631# include <stdlib.h>
632#endif
633#ifdef HAVE_STRING_H
634# include <string.h>
635#endif
636#ifdef HAVE_INTTYPES_H
637# include <inttypes.h>
638#endif
639#ifdef HAVE_STDINT_H
640# include <stdint.h>
641#endif
642#ifdef HAVE_STRINGS_H
643# include <strings.h>
644#endif
645#ifdef HAVE_SYS_TYPES_H
646# include <sys/types.h>
647#endif
648#ifdef HAVE_SYS_STAT_H
649# include <sys/stat.h>
650#endif
651#ifdef HAVE_UNISTD_H
652# include <unistd.h>
653#endif"
654
655ac_header_c_list=
656ac_subst_vars='LTLIBOBJS
657PKCS11_MODNAME
658DEFCKTNAME
659DEFKTNAME
660DEFCCNAME
661MACOS_FRAMEWORK
662OSX
663GROFF
664VERTO_VERSION
665VERTO_LIBS
666VERTO_CFLAGS
667RL_LIBS
668RL_CFLAGS
669LIBEDIT_LIBS
670LIBEDIT_CFLAGS
671lmdb_plugin_dir
672LMDB_LIBS
673HAVE_LMDB
674sam2_plugin
675LDAP
676ldap_plugin_dir
677HAVE_SASL
678LDAP_LIBS
679SUPPORTLIB_MAJOR
680DB_EXTRA_LIBS
681HAVE_RESOLV_WRAPPER
682CMOCKA_LIBS
683HAVE_CMOCKA
684HAVE_PYTHON
685PYTHON
686PYTHON_MINVERSION
687LIBOBJS
688PKINIT
689GSSRPC__BSD_TYPEALIASES
690GSSRPC__NETDB_H
691GSSRPC__SYS_PARAM_H
692GSSRPC__UNISTD_H
693GSSRPC__SYS_TIME_H
694GSSRPC__SYS_SELECT_H
695rpcent_define
696include_xom
697PRIOCNTL_HACK
698YFLAGS
699YACC
700NSLOOKUP
701DIG
702FCTSH
703BASH
704SH5
705SH
706KRB5_RCTMPDIR
707SIZEOF_TIME_T
708SETENVOBJ
709KSU_LIBS
710EXTRA_SUPPORT_SYMS
711GETTIMEOFDAY_ST_OBJ
712GETTIMEOFDAY_OBJ
713MKSTEMP_ST_OBJ
714MKSTEMP_OBJ
715FUZZ_LDFLAGS
716fuzz_dir
717ASAN
718ASAN_FLAGS
719KRB5_RUN_VARS
720KRB5_RUN_ENV
721AESNI_FLAGS
722AESNI_OBJ
723YASM
724SPAKE_OPENSSL_LIBS
725HAVE_SPAKE_OPENSSL
726TLS_IMPL_LIBS
727TLS_IMPL_CFLAGS
728TLS_IMPL
729CRYPTO_BUILTIN_TESTS
730CRYPTO_IMPL_LIBS
731CRYPTO_IMPL_CFLAGS
732audit_plugin
733AUDIT_IMPL_LIBS
734AWK
735SECURE_GETENV_INIT
736SECURE_GETENV_ST_OBJ
737SECURE_GETENV_OBJ
738PRINTF_ST_OBJ
739PRINTF_OBJ
740FNMATCH_ST_OBJ
741FNMATCH_OBJ
742GETOPT_LONG_ST_OBJ
743GETOPT_LONG_OBJ
744GETOPT_ST_OBJ
745GETOPT_OBJ
746STRLCPY_ST_OBJ
747STRLCPY_OBJ
748po
749MSGFMT
750LIBUTIL
751PROG_RPATH_FLAGS
752RPATH_FLAG
753CXX_LINK
754CC_LINK
755UNDEF_CHECK
756MAKE_DYNOBJ_COMMAND
757DYNOBJEXT
758LIBINSTLIST
759PFLIBEXT
760DEPLIBEXT
761SHLIBSEXT
762SHLIBVEXT
763SHLIBEXT
764STLIBEXT
765INSTALL_SHLIB
766DYNOBJ_EXPFLAGS
767DYNOBJ_EXPDEPS
768SHLIB_EXPORT_FILE_DEP
769SHLIB_EXPFLAGS
770SHLIB_RPATH_FLAGS
771MAKE_SHLIB_COMMAND
772KDB5_PLUGIN_LIBS
773KDB5_PLUGIN_DEPLIBS
774PLUGININST
775PLUGINLINK
776PLUGIN
777LIBLINKS
778LIBLIST
779PERL
780AR
781INSTALL_DATA
782INSTALL_SCRIPT
783INSTALL_PROGRAM
784RANLIB
785LN_S
786PROFFLAGS
787PICFLAGS
788PFOBJEXT
789SHOBJEXT
790STOBJEXT
791OBJLISTS
792KRB5_VERSION
793DL_LIB
794THREAD_SUPPORT
795PTHREAD_CFLAGS
796PTHREAD_LIBS
797PTHREAD_CXX
798PTHREAD_CC
799ax_pthread_config
800EGREP
801GREP
802SED
803krb5_cv_host
804host_os
805host_vendor
806host_cpu
807host
808build_os
809build_vendor
810build_cpu
811build
812CONFIG_RELTOPDIR
813MAINT
814MAINTAINER_MODE_FALSE
815MAINTAINER_MODE_TRUE
816HESIOD_LIBS
817HESIOD_DEFS
818KDB5_DB_LIB
819DB_HEADER_VERSION
820DB_VERSION
821DB_LIB
822DB_HEADER
823SS_VERSION
824SS_LIB
825COM_ERR_LIB
826COM_ERR_VERSION
827compile_et
828COM_ERR_LIBS
829COM_ERR_CFLAGS
830PKG_CONFIG_LIBDIR
831PKG_CONFIG_PATH
832PKG_CONFIG
833LD
834CPP
835WARN_CXXFLAGS
836WARN_CFLAGS
837HAVE_GCC
838ac_ct_CXX
839CXXFLAGS
840CXX
841OBJEXT
842EXEEXT
843ac_ct_CC
844CPPFLAGS
845LDFLAGS
846CFLAGS
847CC
848EXTRA_FILES
849SYSCONFCONF
850target_alias
851host_alias
852build_alias
853LIBS
854ECHO_T
855ECHO_N
856ECHO_C
857DEFS
858mandir
859localedir
860libdir
861psdir
862pdfdir
863dvidir
864htmldir
865infodir
866docdir
867oldincludedir
868includedir
869runstatedir
870localstatedir
871sharedstatedir
872sysconfdir
873datadir
874datarootdir
875libexecdir
876sbindir
877bindir
878program_transform_name
879prefix
880exec_prefix
881PACKAGE_URL
882PACKAGE_BUGREPORT
883PACKAGE_STRING
884PACKAGE_VERSION
885PACKAGE_TARNAME
886PACKAGE_NAME
887PATH_SEPARATOR
888SHELL'
889ac_subst_files='lib_frag
890libobj_frag
891libnover_frag
892libpriv_frag
893libnodeps_frag'
894ac_user_opts='
895enable_option_checking
896with_size_optimizations
897with_system_et
898with_system_ss
899with_system_db
900with_netlib
901enable_dns_for_realm
902with_hesiod
903enable_maintainer_mode
904with_ldap
905enable_delayed_initialization
906enable_thread_support
907enable_static
908enable_shared
909enable_rpath
910enable_profiled
911enable_athena
912enable_nls
913with_vague_errors
914enable_audit_plugin
915with_crypto_impl
916with_tls_impl
917with_keyutils
918with_spake_openssl
919enable_aesni
920enable_kdc_lookaside_cache
921enable_asan
922enable_ossfuzz
923enable_pkinit
924with_lmdb
925with_libedit
926with_readline
927with_system_verto
928with_krb5_config
929'
930      ac_precious_vars='build_alias
931host_alias
932target_alias
933CC
934CFLAGS
935LDFLAGS
936LIBS
937CPPFLAGS
938CXX
939CXXFLAGS
940CCC
941CPP
942LD
943PKG_CONFIG
944PKG_CONFIG_PATH
945PKG_CONFIG_LIBDIR
946COM_ERR_CFLAGS
947COM_ERR_LIBS
948SS_LIB
949DB_HEADER
950DB_LIB
951YACC
952YFLAGS
953LIBEDIT_CFLAGS
954LIBEDIT_LIBS
955VERTO_CFLAGS
956VERTO_LIBS
957DEFCCNAME
958DEFKTNAME
959DEFCKTNAME
960PKCS11_MODNAME'
961
962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966ac_unrecognized_opts=
967ac_unrecognized_sep=
968# The variables have the same names as the options, with
969# dashes changed to underlines.
970cache_file=/dev/null
971exec_prefix=NONE
972no_create=
973no_recursion=
974prefix=NONE
975program_prefix=NONE
976program_suffix=NONE
977program_transform_name=s,x,x,
978silent=
979site=
980srcdir=
981verbose=
982x_includes=NONE
983x_libraries=NONE
984
985# Installation directory options.
986# These are left unexpanded so users can "make install exec_prefix=/foo"
987# and all the variables that are supposed to be based on exec_prefix
988# by default will actually change.
989# Use braces instead of parens because sh, perl, etc. also accept them.
990# (The list follows the same order as the GNU Coding Standards.)
991bindir='${exec_prefix}/bin'
992sbindir='${exec_prefix}/sbin'
993libexecdir='${exec_prefix}/libexec'
994datarootdir='${prefix}/share'
995datadir='${datarootdir}'
996sysconfdir='${prefix}/etc'
997sharedstatedir='${prefix}/com'
998localstatedir='${prefix}/var'
999runstatedir='${localstatedir}/run'
1000includedir='${prefix}/include'
1001oldincludedir='/usr/include'
1002docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003infodir='${datarootdir}/info'
1004htmldir='${docdir}'
1005dvidir='${docdir}'
1006pdfdir='${docdir}'
1007psdir='${docdir}'
1008libdir='${exec_prefix}/lib'
1009localedir='${datarootdir}/locale'
1010mandir='${datarootdir}/man'
1011
1012ac_prev=
1013ac_dashdash=
1014for ac_option
1015do
1016  # If the previous option needs an argument, assign it.
1017  if test -n "$ac_prev"; then
1018    eval $ac_prev=\$ac_option
1019    ac_prev=
1020    continue
1021  fi
1022
1023  case $ac_option in
1024  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025  *=)   ac_optarg= ;;
1026  *)    ac_optarg=yes ;;
1027  esac
1028
1029  case $ac_dashdash$ac_option in
1030  --)
1031    ac_dashdash=yes ;;
1032
1033  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034    ac_prev=bindir ;;
1035  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036    bindir=$ac_optarg ;;
1037
1038  -build | --build | --buil | --bui | --bu)
1039    ac_prev=build_alias ;;
1040  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041    build_alias=$ac_optarg ;;
1042
1043  -cache-file | --cache-file | --cache-fil | --cache-fi \
1044  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045    ac_prev=cache_file ;;
1046  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048    cache_file=$ac_optarg ;;
1049
1050  --config-cache | -C)
1051    cache_file=config.cache ;;
1052
1053  -datadir | --datadir | --datadi | --datad)
1054    ac_prev=datadir ;;
1055  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056    datadir=$ac_optarg ;;
1057
1058  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059  | --dataroo | --dataro | --datar)
1060    ac_prev=datarootdir ;;
1061  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063    datarootdir=$ac_optarg ;;
1064
1065  -disable-* | --disable-*)
1066    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067    # Reject names that are not valid shell variable names.
1068    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1070    ac_useropt_orig=$ac_useropt
1071    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1072    case $ac_user_opts in
1073      *"
1074"enable_$ac_useropt"
1075"*) ;;
1076      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077	 ac_unrecognized_sep=', ';;
1078    esac
1079    eval enable_$ac_useropt=no ;;
1080
1081  -docdir | --docdir | --docdi | --doc | --do)
1082    ac_prev=docdir ;;
1083  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084    docdir=$ac_optarg ;;
1085
1086  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087    ac_prev=dvidir ;;
1088  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089    dvidir=$ac_optarg ;;
1090
1091  -enable-* | --enable-*)
1092    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093    # Reject names that are not valid shell variable names.
1094    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"enable_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval enable_$ac_useropt=\$ac_optarg ;;
1106
1107  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109  | --exec | --exe | --ex)
1110    ac_prev=exec_prefix ;;
1111  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113  | --exec=* | --exe=* | --ex=*)
1114    exec_prefix=$ac_optarg ;;
1115
1116  -gas | --gas | --ga | --g)
1117    # Obsolete; use --with-gas.
1118    with_gas=yes ;;
1119
1120  -help | --help | --hel | --he | -h)
1121    ac_init_help=long ;;
1122  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123    ac_init_help=recursive ;;
1124  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125    ac_init_help=short ;;
1126
1127  -host | --host | --hos | --ho)
1128    ac_prev=host_alias ;;
1129  -host=* | --host=* | --hos=* | --ho=*)
1130    host_alias=$ac_optarg ;;
1131
1132  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133    ac_prev=htmldir ;;
1134  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135  | --ht=*)
1136    htmldir=$ac_optarg ;;
1137
1138  -includedir | --includedir | --includedi | --included | --include \
1139  | --includ | --inclu | --incl | --inc)
1140    ac_prev=includedir ;;
1141  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142  | --includ=* | --inclu=* | --incl=* | --inc=*)
1143    includedir=$ac_optarg ;;
1144
1145  -infodir | --infodir | --infodi | --infod | --info | --inf)
1146    ac_prev=infodir ;;
1147  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148    infodir=$ac_optarg ;;
1149
1150  -libdir | --libdir | --libdi | --libd)
1151    ac_prev=libdir ;;
1152  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153    libdir=$ac_optarg ;;
1154
1155  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156  | --libexe | --libex | --libe)
1157    ac_prev=libexecdir ;;
1158  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159  | --libexe=* | --libex=* | --libe=*)
1160    libexecdir=$ac_optarg ;;
1161
1162  -localedir | --localedir | --localedi | --localed | --locale)
1163    ac_prev=localedir ;;
1164  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165    localedir=$ac_optarg ;;
1166
1167  -localstatedir | --localstatedir | --localstatedi | --localstated \
1168  | --localstate | --localstat | --localsta | --localst | --locals)
1169    ac_prev=localstatedir ;;
1170  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172    localstatedir=$ac_optarg ;;
1173
1174  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175    ac_prev=mandir ;;
1176  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177    mandir=$ac_optarg ;;
1178
1179  -nfp | --nfp | --nf)
1180    # Obsolete; use --without-fp.
1181    with_fp=no ;;
1182
1183  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184  | --no-cr | --no-c | -n)
1185    no_create=yes ;;
1186
1187  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189    no_recursion=yes ;;
1190
1191  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193  | --oldin | --oldi | --old | --ol | --o)
1194    ac_prev=oldincludedir ;;
1195  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198    oldincludedir=$ac_optarg ;;
1199
1200  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201    ac_prev=prefix ;;
1202  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203    prefix=$ac_optarg ;;
1204
1205  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206  | --program-pre | --program-pr | --program-p)
1207    ac_prev=program_prefix ;;
1208  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210    program_prefix=$ac_optarg ;;
1211
1212  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213  | --program-suf | --program-su | --program-s)
1214    ac_prev=program_suffix ;;
1215  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217    program_suffix=$ac_optarg ;;
1218
1219  -program-transform-name | --program-transform-name \
1220  | --program-transform-nam | --program-transform-na \
1221  | --program-transform-n | --program-transform- \
1222  | --program-transform | --program-transfor \
1223  | --program-transfo | --program-transf \
1224  | --program-trans | --program-tran \
1225  | --progr-tra | --program-tr | --program-t)
1226    ac_prev=program_transform_name ;;
1227  -program-transform-name=* | --program-transform-name=* \
1228  | --program-transform-nam=* | --program-transform-na=* \
1229  | --program-transform-n=* | --program-transform-=* \
1230  | --program-transform=* | --program-transfor=* \
1231  | --program-transfo=* | --program-transf=* \
1232  | --program-trans=* | --program-tran=* \
1233  | --progr-tra=* | --program-tr=* | --program-t=*)
1234    program_transform_name=$ac_optarg ;;
1235
1236  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237    ac_prev=pdfdir ;;
1238  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239    pdfdir=$ac_optarg ;;
1240
1241  -psdir | --psdir | --psdi | --psd | --ps)
1242    ac_prev=psdir ;;
1243  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244    psdir=$ac_optarg ;;
1245
1246  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247  | -silent | --silent | --silen | --sile | --sil)
1248    silent=yes ;;
1249
1250  -runstatedir | --runstatedir | --runstatedi | --runstated \
1251  | --runstate | --runstat | --runsta | --runst | --runs \
1252  | --run | --ru | --r)
1253    ac_prev=runstatedir ;;
1254  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1255  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1256  | --run=* | --ru=* | --r=*)
1257    runstatedir=$ac_optarg ;;
1258
1259  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260    ac_prev=sbindir ;;
1261  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262  | --sbi=* | --sb=*)
1263    sbindir=$ac_optarg ;;
1264
1265  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267  | --sharedst | --shareds | --shared | --share | --shar \
1268  | --sha | --sh)
1269    ac_prev=sharedstatedir ;;
1270  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273  | --sha=* | --sh=*)
1274    sharedstatedir=$ac_optarg ;;
1275
1276  -site | --site | --sit)
1277    ac_prev=site ;;
1278  -site=* | --site=* | --sit=*)
1279    site=$ac_optarg ;;
1280
1281  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282    ac_prev=srcdir ;;
1283  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284    srcdir=$ac_optarg ;;
1285
1286  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287  | --syscon | --sysco | --sysc | --sys | --sy)
1288    ac_prev=sysconfdir ;;
1289  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291    sysconfdir=$ac_optarg ;;
1292
1293  -target | --target | --targe | --targ | --tar | --ta | --t)
1294    ac_prev=target_alias ;;
1295  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296    target_alias=$ac_optarg ;;
1297
1298  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299    verbose=yes ;;
1300
1301  -version | --version | --versio | --versi | --vers | -V)
1302    ac_init_version=: ;;
1303
1304  -with-* | --with-*)
1305    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1306    # Reject names that are not valid shell variable names.
1307    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308      as_fn_error $? "invalid package name: \`$ac_useropt'"
1309    ac_useropt_orig=$ac_useropt
1310    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1311    case $ac_user_opts in
1312      *"
1313"with_$ac_useropt"
1314"*) ;;
1315      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1316	 ac_unrecognized_sep=', ';;
1317    esac
1318    eval with_$ac_useropt=\$ac_optarg ;;
1319
1320  -without-* | --without-*)
1321    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322    # Reject names that are not valid shell variable names.
1323    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324      as_fn_error $? "invalid package name: \`$ac_useropt'"
1325    ac_useropt_orig=$ac_useropt
1326    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1327    case $ac_user_opts in
1328      *"
1329"with_$ac_useropt"
1330"*) ;;
1331      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1332	 ac_unrecognized_sep=', ';;
1333    esac
1334    eval with_$ac_useropt=no ;;
1335
1336  --x)
1337    # Obsolete; use --with-x.
1338    with_x=yes ;;
1339
1340  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1341  | --x-incl | --x-inc | --x-in | --x-i)
1342    ac_prev=x_includes ;;
1343  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1344  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1345    x_includes=$ac_optarg ;;
1346
1347  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1348  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1349    ac_prev=x_libraries ;;
1350  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1351  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1352    x_libraries=$ac_optarg ;;
1353
1354  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1355Try \`$0 --help' for more information"
1356    ;;
1357
1358  *=*)
1359    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1360    # Reject names that are not valid shell variable names.
1361    case $ac_envvar in #(
1362      '' | [0-9]* | *[!_$as_cr_alnum]* )
1363      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1364    esac
1365    eval $ac_envvar=\$ac_optarg
1366    export $ac_envvar ;;
1367
1368  *)
1369    # FIXME: should be removed in autoconf 3.0.
1370    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1371    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1372      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1373    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1374    ;;
1375
1376  esac
1377done
1378
1379if test -n "$ac_prev"; then
1380  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1381  as_fn_error $? "missing argument to $ac_option"
1382fi
1383
1384if test -n "$ac_unrecognized_opts"; then
1385  case $enable_option_checking in
1386    no) ;;
1387    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1388    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389  esac
1390fi
1391
1392# Check all directory arguments for consistency.
1393for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1394		datadir sysconfdir sharedstatedir localstatedir includedir \
1395		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1396		libdir localedir mandir runstatedir
1397do
1398  eval ac_val=\$$ac_var
1399  # Remove trailing slashes.
1400  case $ac_val in
1401    */ )
1402      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1403      eval $ac_var=\$ac_val;;
1404  esac
1405  # Be sure to have absolute directory names.
1406  case $ac_val in
1407    [\\/$]* | ?:[\\/]* )  continue;;
1408    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409  esac
1410  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1411done
1412
1413# There might be people who depend on the old broken behavior: `$host'
1414# used to hold the argument of --host etc.
1415# FIXME: To remove some day.
1416build=$build_alias
1417host=$host_alias
1418target=$target_alias
1419
1420# FIXME: To remove some day.
1421if test "x$host_alias" != x; then
1422  if test "x$build_alias" = x; then
1423    cross_compiling=maybe
1424  elif test "x$build_alias" != "x$host_alias"; then
1425    cross_compiling=yes
1426  fi
1427fi
1428
1429ac_tool_prefix=
1430test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431
1432test "$silent" = yes && exec 6>/dev/null
1433
1434
1435ac_pwd=`pwd` && test -n "$ac_pwd" &&
1436ac_ls_di=`ls -di .` &&
1437ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1438  as_fn_error $? "working directory cannot be determined"
1439test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440  as_fn_error $? "pwd does not report name of working directory"
1441
1442
1443# Find the source files, if location was not specified.
1444if test -z "$srcdir"; then
1445  ac_srcdir_defaulted=yes
1446  # Try the directory containing this script, then the parent directory.
1447  ac_confdir=`$as_dirname -- "$as_myself" ||
1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449	 X"$as_myself" : 'X\(//\)[^/]' \| \
1450	 X"$as_myself" : 'X\(//\)$' \| \
1451	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452printf "%s\n" X"$as_myself" |
1453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454	    s//\1/
1455	    q
1456	  }
1457	  /^X\(\/\/\)[^/].*/{
1458	    s//\1/
1459	    q
1460	  }
1461	  /^X\(\/\/\)$/{
1462	    s//\1/
1463	    q
1464	  }
1465	  /^X\(\/\).*/{
1466	    s//\1/
1467	    q
1468	  }
1469	  s/.*/./; q'`
1470  srcdir=$ac_confdir
1471  if test ! -r "$srcdir/$ac_unique_file"; then
1472    srcdir=..
1473  fi
1474else
1475  ac_srcdir_defaulted=no
1476fi
1477if test ! -r "$srcdir/$ac_unique_file"; then
1478  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1480fi
1481ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1482ac_abs_confdir=`(
1483	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1484	pwd)`
1485# When building in place, set srcdir=.
1486if test "$ac_abs_confdir" = "$ac_pwd"; then
1487  srcdir=.
1488fi
1489# Remove unnecessary trailing slashes from srcdir.
1490# Double slashes in file names in object file debugging info
1491# mess up M-x gdb in Emacs.
1492case $srcdir in
1493*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494esac
1495for ac_var in $ac_precious_vars; do
1496  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1497  eval ac_env_${ac_var}_value=\$${ac_var}
1498  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1499  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500done
1501
1502#
1503# Report the --help message.
1504#
1505if test "$ac_init_help" = "long"; then
1506  # Omit some internal or obsolete options to make the list less imposing.
1507  # This message is too long to be a string in the A/UX 3.1 sh.
1508  cat <<_ACEOF
1509\`configure' configures Kerberos 5 1.22.1 to adapt to many kinds of systems.
1510
1511Usage: $0 [OPTION]... [VAR=VALUE]...
1512
1513To assign environment variables (e.g., CC, CFLAGS...), specify them as
1514VAR=VALUE.  See below for descriptions of some of the useful variables.
1515
1516Defaults for the options are specified in brackets.
1517
1518Configuration:
1519  -h, --help              display this help and exit
1520      --help=short        display options specific to this package
1521      --help=recursive    display the short help of all the included packages
1522  -V, --version           display version information and exit
1523  -q, --quiet, --silent   do not print \`checking ...' messages
1524      --cache-file=FILE   cache test results in FILE [disabled]
1525  -C, --config-cache      alias for \`--cache-file=config.cache'
1526  -n, --no-create         do not create output files
1527      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1528
1529Installation directories:
1530  --prefix=PREFIX         install architecture-independent files in PREFIX
1531                          [$ac_default_prefix]
1532  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1533                          [PREFIX]
1534
1535By default, \`make install' will install all the files in
1536\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1537an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1538for instance \`--prefix=\$HOME'.
1539
1540For better control, use the options below.
1541
1542Fine tuning of the installation directories:
1543  --bindir=DIR            user executables [EPREFIX/bin]
1544  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1545  --libexecdir=DIR        program executables [EPREFIX/libexec]
1546  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1547  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1548  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1549  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1550  --libdir=DIR            object code libraries [EPREFIX/lib]
1551  --includedir=DIR        C header files [PREFIX/include]
1552  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1553  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1554  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1555  --infodir=DIR           info documentation [DATAROOTDIR/info]
1556  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1557  --mandir=DIR            man documentation [DATAROOTDIR/man]
1558  --docdir=DIR            documentation root [DATAROOTDIR/doc/krb5]
1559  --htmldir=DIR           html documentation [DOCDIR]
1560  --dvidir=DIR            dvi documentation [DOCDIR]
1561  --pdfdir=DIR            pdf documentation [DOCDIR]
1562  --psdir=DIR             ps documentation [DOCDIR]
1563_ACEOF
1564
1565  cat <<\_ACEOF
1566
1567Program names:
1568  --program-prefix=PREFIX            prepend PREFIX to installed program names
1569  --program-suffix=SUFFIX            append SUFFIX to installed program names
1570  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1571
1572System types:
1573  --build=BUILD     configure for building on BUILD [guessed]
1574  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1575_ACEOF
1576fi
1577
1578if test -n "$ac_init_help"; then
1579  case $ac_init_help in
1580     short | recursive ) echo "Configuration of Kerberos 5 1.22.1:";;
1581   esac
1582  cat <<\_ACEOF
1583
1584Optional Features:
1585  --disable-option-checking  ignore unrecognized --enable/--with options
1586  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1587  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1588  --enable-dns-for-realm  enable DNS lookups of Kerberos realm names
1589  --enable-maintainer-mode
1590                          enable rebuilding of source files, Makefiles, etc
1591  --disable-delayed-initialization
1592                          initialize library code when loaded [delay until
1593                          first use]
1594  --disable-thread-support
1595                          don't enable thread support [enabled]
1596
1597  --disable-rpath         suppress run path flags in link lines
1598  --enable-athena         build with MIT Project Athena configuration
1599  --disable-nls           disable native language support
1600  --enable-audit-plugin=IMPL
1601                          use audit plugin [ do not use audit ]
1602  --disable-aesni         Do not build with AES-NI support
1603  --disable-kdc-lookaside-cache
1604                          Disable the cache which detects client retransmits
1605  --enable-asan           Build with asan memory checking
1606  --enable-ossfuzz        Build with fuzzing targets
1607  --disable-pkinit        disable PKINIT plugin support
1608
1609Optional Packages:
1610  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1611  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1612  --with-size-optimizations enable a few optimizations to reduce code size
1613                          possibly at some run-time cost
1614  --with-system-et        use system compile_et and -lcom_err [default: build
1615                          and install a local version]
1616  --with-system-ss        use system -lss and mk_cmds [private version]
1617  --with-system-db        use system Berkeley db [private version]
1618  --with-netlib=LIBS      use user defined resolver library
1619  --with-hesiod=path      compile with hesiod support [omitted]
1620  --with-ldap             compile OpenLDAP database backend module
1621  --with-vague-errors     Do not [do] send helpful errors to client
1622  --with-crypto-impl=IMPL use specified crypto implementation [builtin]
1623  --with-tls-impl=IMPL    use specified TLS implementation [auto]
1624  --without-keyutils      do not link with libkeyutils
1625  --with-spake-openssl    use OpenSSL for SPAKE preauth [auto]
1626  --with-lmdb             compile LMDB database backend module [auto]
1627  --without-libedit       do not compile with libedit
1628  --with-readline         compile with GNU Readline
1629  --with-system-verto     always use system verto library
1630  --with-krb5-config=PATH path to existing krb5-config program for defaults
1631
1632Some influential environment variables:
1633  CC          C compiler command
1634  CFLAGS      C compiler flags
1635  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1636              nonstandard directory <lib dir>
1637  LIBS        libraries to pass to the linker, e.g. -l<library>
1638  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1639              you have headers in a nonstandard directory <include dir>
1640  CXX         C++ compiler command
1641  CXXFLAGS    C++ compiler flags
1642  CPP         C preprocessor
1643  LD          linker command [CC]
1644  PKG_CONFIG  path to pkg-config utility
1645  PKG_CONFIG_PATH
1646              directories to add to pkg-config's search path
1647  PKG_CONFIG_LIBDIR
1648              path overriding pkg-config's built-in search path
1649  COM_ERR_CFLAGS
1650              C compiler flags for COM_ERR, overriding pkg-config
1651  COM_ERR_LIBS
1652              linker flags for COM_ERR, overriding pkg-config
1653  SS_LIB      system libraries for 'ss' package [-lss]
1654  DB_HEADER   header file for system Berkeley db package [db.h]
1655  DB_LIB      library for system Berkeley db package [-ldb]
1656  YACC        The `Yet Another Compiler Compiler' implementation to use.
1657              Defaults to the first program found out of: `bison -y', `byacc',
1658              `yacc'.
1659  YFLAGS      The list of arguments that will be passed by default to $YACC.
1660              This script will default YFLAGS to the empty string to avoid a
1661              default value of `-d' given by some make applications.
1662  LIBEDIT_CFLAGS
1663              C compiler flags for LIBEDIT, overriding pkg-config
1664  LIBEDIT_LIBS
1665              linker flags for LIBEDIT, overriding pkg-config
1666  VERTO_CFLAGS
1667              C compiler flags for VERTO, overriding pkg-config
1668  VERTO_LIBS  linker flags for VERTO, overriding pkg-config
1669  DEFCCNAME   Default ccache name
1670  DEFKTNAME   Default keytab name
1671  DEFCKTNAME  Default client keytab name
1672  PKCS11_MODNAME
1673              Default PKCS11 module name
1674
1675Use these variables to override the choices made by `configure' or to help
1676it to find libraries and programs with nonstandard names/locations.
1677
1678Report bugs to <krb5-bugs@mit.edu>.
1679_ACEOF
1680ac_status=$?
1681fi
1682
1683if test "$ac_init_help" = "recursive"; then
1684  # If there are subdirs, report their specific --help.
1685  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1686    test -d "$ac_dir" ||
1687      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1688      continue
1689    ac_builddir=.
1690
1691case "$ac_dir" in
1692.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693*)
1694  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1695  # A ".." for each directory in $ac_dir_suffix.
1696  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1697  case $ac_top_builddir_sub in
1698  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1700  esac ;;
1701esac
1702ac_abs_top_builddir=$ac_pwd
1703ac_abs_builddir=$ac_pwd$ac_dir_suffix
1704# for backward compatibility:
1705ac_top_builddir=$ac_top_build_prefix
1706
1707case $srcdir in
1708  .)  # We are building in place.
1709    ac_srcdir=.
1710    ac_top_srcdir=$ac_top_builddir_sub
1711    ac_abs_top_srcdir=$ac_pwd ;;
1712  [\\/]* | ?:[\\/]* )  # Absolute name.
1713    ac_srcdir=$srcdir$ac_dir_suffix;
1714    ac_top_srcdir=$srcdir
1715    ac_abs_top_srcdir=$srcdir ;;
1716  *) # Relative name.
1717    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1718    ac_top_srcdir=$ac_top_build_prefix$srcdir
1719    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1720esac
1721ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1722
1723    cd "$ac_dir" || { ac_status=$?; continue; }
1724    # Check for configure.gnu first; this name is used for a wrapper for
1725    # Metaconfig's "Configure" on case-insensitive file systems.
1726    if test -f "$ac_srcdir/configure.gnu"; then
1727      echo &&
1728      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729    elif test -f "$ac_srcdir/configure"; then
1730      echo &&
1731      $SHELL "$ac_srcdir/configure" --help=recursive
1732    else
1733      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1734    fi || ac_status=$?
1735    cd "$ac_pwd" || { ac_status=$?; break; }
1736  done
1737fi
1738
1739test -n "$ac_init_help" && exit $ac_status
1740if $ac_init_version; then
1741  cat <<\_ACEOF
1742Kerberos 5 configure 1.22.1
1743generated by GNU Autoconf 2.71
1744
1745Copyright (C) 2021 Free Software Foundation, Inc.
1746This configure script is free software; the Free Software Foundation
1747gives unlimited permission to copy, distribute and modify it.
1748
1749Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
1750Massachusetts Institute of Technology.
1751
1752_ACEOF
1753  exit
1754fi
1755
1756## ------------------------ ##
1757## Autoconf initialization. ##
1758## ------------------------ ##
1759
1760# ac_fn_c_try_compile LINENO
1761# --------------------------
1762# Try to compile conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_compile ()
1764{
1765  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766  rm -f conftest.$ac_objext conftest.beam
1767  if { { ac_try="$ac_compile"
1768case "(($ac_try" in
1769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770  *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773printf "%s\n" "$ac_try_echo"; } >&5
1774  (eval "$ac_compile") 2>conftest.err
1775  ac_status=$?
1776  if test -s conftest.err; then
1777    grep -v '^ *+' conftest.err >conftest.er1
1778    cat conftest.er1 >&5
1779    mv -f conftest.er1 conftest.err
1780  fi
1781  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782  test $ac_status = 0; } && {
1783	 test -z "$ac_c_werror_flag" ||
1784	 test ! -s conftest.err
1785       } && test -s conftest.$ac_objext
1786then :
1787  ac_retval=0
1788else $as_nop
1789  printf "%s\n" "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792	ac_retval=1
1793fi
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795  as_fn_set_status $ac_retval
1796
1797} # ac_fn_c_try_compile
1798
1799# ac_fn_cxx_try_compile LINENO
1800# ----------------------------
1801# Try to compile conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_cxx_try_compile ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  rm -f conftest.$ac_objext conftest.beam
1806  if { { ac_try="$ac_compile"
1807case "(($ac_try" in
1808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809  *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812printf "%s\n" "$ac_try_echo"; } >&5
1813  (eval "$ac_compile") 2>conftest.err
1814  ac_status=$?
1815  if test -s conftest.err; then
1816    grep -v '^ *+' conftest.err >conftest.er1
1817    cat conftest.er1 >&5
1818    mv -f conftest.er1 conftest.err
1819  fi
1820  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; } && {
1822	 test -z "$ac_cxx_werror_flag" ||
1823	 test ! -s conftest.err
1824       } && test -s conftest.$ac_objext
1825then :
1826  ac_retval=0
1827else $as_nop
1828  printf "%s\n" "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831	ac_retval=1
1832fi
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834  as_fn_set_status $ac_retval
1835
1836} # ac_fn_cxx_try_compile
1837
1838# ac_fn_c_try_cpp LINENO
1839# ----------------------
1840# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_cpp ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  if { { ac_try="$ac_cpp conftest.$ac_ext"
1845case "(($ac_try" in
1846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847  *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850printf "%s\n" "$ac_try_echo"; } >&5
1851  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852  ac_status=$?
1853  if test -s conftest.err; then
1854    grep -v '^ *+' conftest.err >conftest.er1
1855    cat conftest.er1 >&5
1856    mv -f conftest.er1 conftest.err
1857  fi
1858  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859  test $ac_status = 0; } > conftest.i && {
1860	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861	 test ! -s conftest.err
1862       }
1863then :
1864  ac_retval=0
1865else $as_nop
1866  printf "%s\n" "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869    ac_retval=1
1870fi
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_cpp
1875
1876# ac_fn_c_try_link LINENO
1877# -----------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_c_try_link ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1883  if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886  *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889printf "%s\n" "$ac_try_echo"; } >&5
1890  (eval "$ac_link") 2>conftest.err
1891  ac_status=$?
1892  if test -s conftest.err; then
1893    grep -v '^ *+' conftest.err >conftest.er1
1894    cat conftest.er1 >&5
1895    mv -f conftest.er1 conftest.err
1896  fi
1897  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898  test $ac_status = 0; } && {
1899	 test -z "$ac_c_werror_flag" ||
1900	 test ! -s conftest.err
1901       } && test -s conftest$ac_exeext && {
1902	 test "$cross_compiling" = yes ||
1903	 test -x conftest$ac_exeext
1904       }
1905then :
1906  ac_retval=0
1907else $as_nop
1908  printf "%s\n" "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911	ac_retval=1
1912fi
1913  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915  # interfere with the next link command; also delete a directory that is
1916  # left behind by Apple's compiler.  We do this before executing the actions.
1917  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919  as_fn_set_status $ac_retval
1920
1921} # ac_fn_c_try_link
1922
1923# ac_fn_c_try_run LINENO
1924# ----------------------
1925# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1926# executables *can* be run.
1927ac_fn_c_try_run ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  if { { ac_try="$ac_link"
1931case "(($ac_try" in
1932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933  *) ac_try_echo=$ac_try;;
1934esac
1935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936printf "%s\n" "$ac_try_echo"; } >&5
1937  (eval "$ac_link") 2>&5
1938  ac_status=$?
1939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1941  { { case "(($ac_try" in
1942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943  *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946printf "%s\n" "$ac_try_echo"; } >&5
1947  (eval "$ac_try") 2>&5
1948  ac_status=$?
1949  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; }; }
1951then :
1952  ac_retval=0
1953else $as_nop
1954  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1955       printf "%s\n" "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958       ac_retval=$ac_status
1959fi
1960  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962  as_fn_set_status $ac_retval
1963
1964} # ac_fn_c_try_run
1965
1966# ac_fn_c_check_func LINENO FUNC VAR
1967# ----------------------------------
1968# Tests whether FUNC exists, setting the cache variable VAR accordingly
1969ac_fn_c_check_func ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973printf %s "checking for $2... " >&6; }
1974if eval test \${$3+y}
1975then :
1976  printf %s "(cached) " >&6
1977else $as_nop
1978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h.  */
1980/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1981   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1982#define $2 innocuous_$2
1983
1984/* System header to define __stub macros and hopefully few prototypes,
1985   which can conflict with char $2 (); below.  */
1986
1987#include <limits.h>
1988#undef $2
1989
1990/* Override any GCC internal prototype to avoid an error.
1991   Use char because int might match the return type of a GCC
1992   builtin and then its argument prototype would still apply.  */
1993#ifdef __cplusplus
1994extern "C"
1995#endif
1996char $2 ();
1997/* The GNU C library defines this for functions which it implements
1998    to always fail with ENOSYS.  Some functions are actually named
1999    something starting with __ and the normal name is an alias.  */
2000#if defined __stub_$2 || defined __stub___$2
2001choke me
2002#endif
2003
2004int
2005main (void)
2006{
2007return $2 ();
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_link "$LINENO"
2013then :
2014  eval "$3=yes"
2015else $as_nop
2016  eval "$3=no"
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.beam \
2019    conftest$ac_exeext conftest.$ac_ext
2020fi
2021eval ac_res=\$$3
2022	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023printf "%s\n" "$ac_res" >&6; }
2024  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026} # ac_fn_c_check_func
2027
2028# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2029# -------------------------------------------------------
2030# Tests whether HEADER exists and can be compiled using the include files in
2031# INCLUDES, setting the cache variable VAR accordingly.
2032ac_fn_c_check_header_compile ()
2033{
2034  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036printf %s "checking for $2... " >&6; }
2037if eval test \${$3+y}
2038then :
2039  printf %s "(cached) " >&6
2040else $as_nop
2041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h.  */
2043$4
2044#include <$2>
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"
2047then :
2048  eval "$3=yes"
2049else $as_nop
2050  eval "$3=no"
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2053fi
2054eval ac_res=\$$3
2055	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056printf "%s\n" "$ac_res" >&6; }
2057  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059} # ac_fn_c_check_header_compile
2060
2061# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2062# -------------------------------------------
2063# Tests whether TYPE exists after having included INCLUDES, setting cache
2064# variable VAR accordingly.
2065ac_fn_c_check_type ()
2066{
2067  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069printf %s "checking for $2... " >&6; }
2070if eval test \${$3+y}
2071then :
2072  printf %s "(cached) " >&6
2073else $as_nop
2074  eval "$3=no"
2075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h.  */
2077$4
2078int
2079main (void)
2080{
2081if (sizeof ($2))
2082	 return 0;
2083  ;
2084  return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"
2088then :
2089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h.  */
2091$4
2092int
2093main (void)
2094{
2095if (sizeof (($2)))
2096	    return 0;
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"
2102then :
2103
2104else $as_nop
2105  eval "$3=yes"
2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2110fi
2111eval ac_res=\$$3
2112	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113printf "%s\n" "$ac_res" >&6; }
2114  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116} # ac_fn_c_check_type
2117
2118# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2119# ----------------------------------------------------
2120# Tries to find if the field MEMBER exists in type AGGR, after including
2121# INCLUDES, setting cache variable VAR accordingly.
2122ac_fn_c_check_member ()
2123{
2124  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2126printf %s "checking for $2.$3... " >&6; }
2127if eval test \${$4+y}
2128then :
2129  printf %s "(cached) " >&6
2130else $as_nop
2131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h.  */
2133$5
2134int
2135main (void)
2136{
2137static $2 ac_aggr;
2138if (ac_aggr.$3)
2139return 0;
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"
2145then :
2146  eval "$4=yes"
2147else $as_nop
2148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h.  */
2150$5
2151int
2152main (void)
2153{
2154static $2 ac_aggr;
2155if (sizeof ac_aggr.$3)
2156return 0;
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"
2162then :
2163  eval "$4=yes"
2164else $as_nop
2165  eval "$4=no"
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2170fi
2171eval ac_res=\$$4
2172	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173printf "%s\n" "$ac_res" >&6; }
2174  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175
2176} # ac_fn_c_check_member
2177
2178# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2179# ------------------------------------------------------------------
2180# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2181# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2182ac_fn_check_decl ()
2183{
2184  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185  as_decl_name=`echo $2|sed 's/ *(.*//'`
2186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2187printf %s "checking whether $as_decl_name is declared... " >&6; }
2188if eval test \${$3+y}
2189then :
2190  printf %s "(cached) " >&6
2191else $as_nop
2192  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2193  eval ac_save_FLAGS=\$$6
2194  as_fn_append $6 " $5"
2195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h.  */
2197$4
2198int
2199main (void)
2200{
2201#ifndef $as_decl_name
2202#ifdef __cplusplus
2203  (void) $as_decl_use;
2204#else
2205  (void) $as_decl_name;
2206#endif
2207#endif
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"
2214then :
2215  eval "$3=yes"
2216else $as_nop
2217  eval "$3=no"
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2220  eval $6=\$ac_save_FLAGS
2221
2222fi
2223eval ac_res=\$$3
2224	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225printf "%s\n" "$ac_res" >&6; }
2226  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227
2228} # ac_fn_check_decl
2229
2230# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2231# --------------------------------------------
2232# Tries to find the compile-time value of EXPR in a program that includes
2233# INCLUDES, setting VAR accordingly. Returns whether the value could be
2234# computed
2235ac_fn_c_compute_int ()
2236{
2237  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238  if test "$cross_compiling" = yes; then
2239    # Depending upon the size, compute the lo and hi bounds.
2240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h.  */
2242$4
2243int
2244main (void)
2245{
2246static int test_array [1 - 2 * !(($2) >= 0)];
2247test_array [0] = 0;
2248return test_array [0];
2249
2250  ;
2251  return 0;
2252}
2253_ACEOF
2254if ac_fn_c_try_compile "$LINENO"
2255then :
2256  ac_lo=0 ac_mid=0
2257  while :; do
2258    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h.  */
2260$4
2261int
2262main (void)
2263{
2264static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265test_array [0] = 0;
2266return test_array [0];
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_compile "$LINENO"
2273then :
2274  ac_hi=$ac_mid; break
2275else $as_nop
2276  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2277			if test $ac_lo -le $ac_mid; then
2278			  ac_lo= ac_hi=
2279			  break
2280			fi
2281			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2282fi
2283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2284  done
2285else $as_nop
2286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h.  */
2288$4
2289int
2290main (void)
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"
2301then :
2302  ac_hi=-1 ac_mid=-1
2303  while :; do
2304    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305/* end confdefs.h.  */
2306$4
2307int
2308main (void)
2309{
2310static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2311test_array [0] = 0;
2312return test_array [0];
2313
2314  ;
2315  return 0;
2316}
2317_ACEOF
2318if ac_fn_c_try_compile "$LINENO"
2319then :
2320  ac_lo=$ac_mid; break
2321else $as_nop
2322  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2323			if test $ac_mid -le $ac_hi; then
2324			  ac_lo= ac_hi=
2325			  break
2326			fi
2327			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2328fi
2329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2330  done
2331else $as_nop
2332  ac_lo= ac_hi=
2333fi
2334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2335fi
2336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2337# Binary search between lo and hi bounds.
2338while test "x$ac_lo" != "x$ac_hi"; do
2339  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341/* end confdefs.h.  */
2342$4
2343int
2344main (void)
2345{
2346static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2347test_array [0] = 0;
2348return test_array [0];
2349
2350  ;
2351  return 0;
2352}
2353_ACEOF
2354if ac_fn_c_try_compile "$LINENO"
2355then :
2356  ac_hi=$ac_mid
2357else $as_nop
2358  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2359fi
2360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2361done
2362case $ac_lo in #((
2363?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2364'') ac_retval=1 ;;
2365esac
2366  else
2367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368/* end confdefs.h.  */
2369$4
2370static long int longval (void) { return $2; }
2371static unsigned long int ulongval (void) { return $2; }
2372#include <stdio.h>
2373#include <stdlib.h>
2374int
2375main (void)
2376{
2377
2378  FILE *f = fopen ("conftest.val", "w");
2379  if (! f)
2380    return 1;
2381  if (($2) < 0)
2382    {
2383      long int i = longval ();
2384      if (i != ($2))
2385	return 1;
2386      fprintf (f, "%ld", i);
2387    }
2388  else
2389    {
2390      unsigned long int i = ulongval ();
2391      if (i != ($2))
2392	return 1;
2393      fprintf (f, "%lu", i);
2394    }
2395  /* Do not output a trailing newline, as this causes \r\n confusion
2396     on some platforms.  */
2397  return ferror (f) || fclose (f) != 0;
2398
2399  ;
2400  return 0;
2401}
2402_ACEOF
2403if ac_fn_c_try_run "$LINENO"
2404then :
2405  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2406else $as_nop
2407  ac_retval=1
2408fi
2409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2410  conftest.$ac_objext conftest.beam conftest.$ac_ext
2411rm -f conftest.val
2412
2413  fi
2414  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415  as_fn_set_status $ac_retval
2416
2417} # ac_fn_c_compute_int
2418ac_configure_args_raw=
2419for ac_arg
2420do
2421  case $ac_arg in
2422  *\'*)
2423    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424  esac
2425  as_fn_append ac_configure_args_raw " '$ac_arg'"
2426done
2427
2428case $ac_configure_args_raw in
2429  *$as_nl*)
2430    ac_safe_unquote= ;;
2431  *)
2432    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2433    ac_unsafe_a="$ac_unsafe_z#~"
2434    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2435    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2436esac
2437
2438cat >config.log <<_ACEOF
2439This file contains any messages produced by compilers while
2440running configure, to aid debugging if configure makes a mistake.
2441
2442It was created by Kerberos 5 $as_me 1.22.1, which was
2443generated by GNU Autoconf 2.71.  Invocation command line was
2444
2445  $ $0$ac_configure_args_raw
2446
2447_ACEOF
2448exec 5>>config.log
2449{
2450cat <<_ASUNAME
2451## --------- ##
2452## Platform. ##
2453## --------- ##
2454
2455hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2456uname -m = `(uname -m) 2>/dev/null || echo unknown`
2457uname -r = `(uname -r) 2>/dev/null || echo unknown`
2458uname -s = `(uname -s) 2>/dev/null || echo unknown`
2459uname -v = `(uname -v) 2>/dev/null || echo unknown`
2460
2461/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2462/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2463
2464/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2465/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2466/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2467/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2468/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2469/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2470/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2471
2472_ASUNAME
2473
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  case $as_dir in #(((
2479    '') as_dir=./ ;;
2480    */) ;;
2481    *) as_dir=$as_dir/ ;;
2482  esac
2483    printf "%s\n" "PATH: $as_dir"
2484  done
2485IFS=$as_save_IFS
2486
2487} >&5
2488
2489cat >&5 <<_ACEOF
2490
2491
2492## ----------- ##
2493## Core tests. ##
2494## ----------- ##
2495
2496_ACEOF
2497
2498
2499# Keep a trace of the command line.
2500# Strip out --no-create and --no-recursion so they do not pile up.
2501# Strip out --silent because we don't want to record it for future runs.
2502# Also quote any args containing shell meta-characters.
2503# Make two passes to allow for proper duplicate-argument suppression.
2504ac_configure_args=
2505ac_configure_args0=
2506ac_configure_args1=
2507ac_must_keep_next=false
2508for ac_pass in 1 2
2509do
2510  for ac_arg
2511  do
2512    case $ac_arg in
2513    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2514    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2515    | -silent | --silent | --silen | --sile | --sil)
2516      continue ;;
2517    *\'*)
2518      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2519    esac
2520    case $ac_pass in
2521    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2522    2)
2523      as_fn_append ac_configure_args1 " '$ac_arg'"
2524      if test $ac_must_keep_next = true; then
2525	ac_must_keep_next=false # Got value, back to normal.
2526      else
2527	case $ac_arg in
2528	  *=* | --config-cache | -C | -disable-* | --disable-* \
2529	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2530	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2531	  | -with-* | --with-* | -without-* | --without-* | --x)
2532	    case "$ac_configure_args0 " in
2533	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2534	    esac
2535	    ;;
2536	  -* ) ac_must_keep_next=true ;;
2537	esac
2538      fi
2539      as_fn_append ac_configure_args " '$ac_arg'"
2540      ;;
2541    esac
2542  done
2543done
2544{ ac_configure_args0=; unset ac_configure_args0;}
2545{ ac_configure_args1=; unset ac_configure_args1;}
2546
2547# When interrupted or exit'd, cleanup temporary files, and complete
2548# config.log.  We remove comments because anyway the quotes in there
2549# would cause problems or look ugly.
2550# WARNING: Use '\'' to represent an apostrophe within the trap.
2551# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2552trap 'exit_status=$?
2553  # Sanitize IFS.
2554  IFS=" ""	$as_nl"
2555  # Save into config.log some information that might help in debugging.
2556  {
2557    echo
2558
2559    printf "%s\n" "## ---------------- ##
2560## Cache variables. ##
2561## ---------------- ##"
2562    echo
2563    # The following way of writing the cache mishandles newlines in values,
2564(
2565  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2566    eval ac_val=\$$ac_var
2567    case $ac_val in #(
2568    *${as_nl}*)
2569      case $ac_var in #(
2570      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2571printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2572      esac
2573      case $ac_var in #(
2574      _ | IFS | as_nl) ;; #(
2575      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2576      *) { eval $ac_var=; unset $ac_var;} ;;
2577      esac ;;
2578    esac
2579  done
2580  (set) 2>&1 |
2581    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2582    *${as_nl}ac_space=\ *)
2583      sed -n \
2584	"s/'\''/'\''\\\\'\'''\''/g;
2585	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2586      ;; #(
2587    *)
2588      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2589      ;;
2590    esac |
2591    sort
2592)
2593    echo
2594
2595    printf "%s\n" "## ----------------- ##
2596## Output variables. ##
2597## ----------------- ##"
2598    echo
2599    for ac_var in $ac_subst_vars
2600    do
2601      eval ac_val=\$$ac_var
2602      case $ac_val in
2603      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2604      esac
2605      printf "%s\n" "$ac_var='\''$ac_val'\''"
2606    done | sort
2607    echo
2608
2609    if test -n "$ac_subst_files"; then
2610      printf "%s\n" "## ------------------- ##
2611## File substitutions. ##
2612## ------------------- ##"
2613      echo
2614      for ac_var in $ac_subst_files
2615      do
2616	eval ac_val=\$$ac_var
2617	case $ac_val in
2618	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2619	esac
2620	printf "%s\n" "$ac_var='\''$ac_val'\''"
2621      done | sort
2622      echo
2623    fi
2624
2625    if test -s confdefs.h; then
2626      printf "%s\n" "## ----------- ##
2627## confdefs.h. ##
2628## ----------- ##"
2629      echo
2630      cat confdefs.h
2631      echo
2632    fi
2633    test "$ac_signal" != 0 &&
2634      printf "%s\n" "$as_me: caught signal $ac_signal"
2635    printf "%s\n" "$as_me: exit $exit_status"
2636  } >&5
2637  rm -f core *.core core.conftest.* &&
2638    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2639    exit $exit_status
2640' 0
2641for ac_signal in 1 2 13 15; do
2642  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2643done
2644ac_signal=0
2645
2646# confdefs.h avoids OS command line length limits that DEFS can exceed.
2647rm -f -r conftest* confdefs.h
2648
2649printf "%s\n" "/* confdefs.h */" > confdefs.h
2650
2651# Predefined preprocessor variables.
2652
2653printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2654
2655printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2656
2657printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2658
2659printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2660
2661printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2662
2663printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2664
2665
2666# Let the site file select an alternate cache file if it wants to.
2667# Prefer an explicitly selected file to automatically selected ones.
2668if test -n "$CONFIG_SITE"; then
2669  ac_site_files="$CONFIG_SITE"
2670elif test "x$prefix" != xNONE; then
2671  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2672else
2673  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2674fi
2675
2676for ac_site_file in $ac_site_files
2677do
2678  case $ac_site_file in #(
2679  */*) :
2680     ;; #(
2681  *) :
2682    ac_site_file=./$ac_site_file ;;
2683esac
2684  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2685    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2686printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2687    sed 's/^/| /' "$ac_site_file" >&5
2688    . "$ac_site_file" \
2689      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2690printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2691as_fn_error $? "failed to load site script $ac_site_file
2692See \`config.log' for more details" "$LINENO" 5; }
2693  fi
2694done
2695
2696if test -r "$cache_file"; then
2697  # Some versions of bash will fail to source /dev/null (special files
2698  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2699  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2700    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2701printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2702    case $cache_file in
2703      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2704      *)                      . "./$cache_file";;
2705    esac
2706  fi
2707else
2708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2709printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2710  >$cache_file
2711fi
2712
2713# Test code for whether the C compiler supports C89 (global declarations)
2714ac_c_conftest_c89_globals='
2715/* Does the compiler advertise C89 conformance?
2716   Do not test the value of __STDC__, because some compilers set it to 0
2717   while being otherwise adequately conformant. */
2718#if !defined __STDC__
2719# error "Compiler does not advertise C89 conformance"
2720#endif
2721
2722#include <stddef.h>
2723#include <stdarg.h>
2724struct stat;
2725/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2726struct buf { int x; };
2727struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2728static char *e (p, i)
2729     char **p;
2730     int i;
2731{
2732  return p[i];
2733}
2734static char *f (char * (*g) (char **, int), char **p, ...)
2735{
2736  char *s;
2737  va_list v;
2738  va_start (v,p);
2739  s = g (p, va_arg (v,int));
2740  va_end (v);
2741  return s;
2742}
2743
2744/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2745   function prototypes and stuff, but not \xHH hex character constants.
2746   These do not provoke an error unfortunately, instead are silently treated
2747   as an "x".  The following induces an error, until -std is added to get
2748   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2749   array size at least.  It is necessary to write \x00 == 0 to get something
2750   that is true only with -std.  */
2751int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2752
2753/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2754   inside strings and character constants.  */
2755#define FOO(x) '\''x'\''
2756int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2757
2758int test (int i, double x);
2759struct s1 {int (*f) (int a);};
2760struct s2 {int (*f) (double a);};
2761int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2762               int, int);'
2763
2764# Test code for whether the C compiler supports C89 (body of main).
2765ac_c_conftest_c89_main='
2766ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2767'
2768
2769# Test code for whether the C compiler supports C99 (global declarations)
2770ac_c_conftest_c99_globals='
2771// Does the compiler advertise C99 conformance?
2772#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2773# error "Compiler does not advertise C99 conformance"
2774#endif
2775
2776#include <stdbool.h>
2777extern int puts (const char *);
2778extern int printf (const char *, ...);
2779extern int dprintf (int, const char *, ...);
2780extern void *malloc (size_t);
2781
2782// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2783// dprintf is used instead of fprintf to avoid needing to declare
2784// FILE and stderr.
2785#define debug(...) dprintf (2, __VA_ARGS__)
2786#define showlist(...) puts (#__VA_ARGS__)
2787#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2788static void
2789test_varargs_macros (void)
2790{
2791  int x = 1234;
2792  int y = 5678;
2793  debug ("Flag");
2794  debug ("X = %d\n", x);
2795  showlist (The first, second, and third items.);
2796  report (x>y, "x is %d but y is %d", x, y);
2797}
2798
2799// Check long long types.
2800#define BIG64 18446744073709551615ull
2801#define BIG32 4294967295ul
2802#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2803#if !BIG_OK
2804  #error "your preprocessor is broken"
2805#endif
2806#if BIG_OK
2807#else
2808  #error "your preprocessor is broken"
2809#endif
2810static long long int bignum = -9223372036854775807LL;
2811static unsigned long long int ubignum = BIG64;
2812
2813struct incomplete_array
2814{
2815  int datasize;
2816  double data[];
2817};
2818
2819struct named_init {
2820  int number;
2821  const wchar_t *name;
2822  double average;
2823};
2824
2825typedef const char *ccp;
2826
2827static inline int
2828test_restrict (ccp restrict text)
2829{
2830  // See if C++-style comments work.
2831  // Iterate through items via the restricted pointer.
2832  // Also check for declarations in for loops.
2833  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2834    continue;
2835  return 0;
2836}
2837
2838// Check varargs and va_copy.
2839static bool
2840test_varargs (const char *format, ...)
2841{
2842  va_list args;
2843  va_start (args, format);
2844  va_list args_copy;
2845  va_copy (args_copy, args);
2846
2847  const char *str = "";
2848  int number = 0;
2849  float fnumber = 0;
2850
2851  while (*format)
2852    {
2853      switch (*format++)
2854	{
2855	case '\''s'\'': // string
2856	  str = va_arg (args_copy, const char *);
2857	  break;
2858	case '\''d'\'': // int
2859	  number = va_arg (args_copy, int);
2860	  break;
2861	case '\''f'\'': // float
2862	  fnumber = va_arg (args_copy, double);
2863	  break;
2864	default:
2865	  break;
2866	}
2867    }
2868  va_end (args_copy);
2869  va_end (args);
2870
2871  return *str && number && fnumber;
2872}
2873'
2874
2875# Test code for whether the C compiler supports C99 (body of main).
2876ac_c_conftest_c99_main='
2877  // Check bool.
2878  _Bool success = false;
2879  success |= (argc != 0);
2880
2881  // Check restrict.
2882  if (test_restrict ("String literal") == 0)
2883    success = true;
2884  char *restrict newvar = "Another string";
2885
2886  // Check varargs.
2887  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2888  test_varargs_macros ();
2889
2890  // Check flexible array members.
2891  struct incomplete_array *ia =
2892    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2893  ia->datasize = 10;
2894  for (int i = 0; i < ia->datasize; ++i)
2895    ia->data[i] = i * 1.234;
2896
2897  // Check named initializers.
2898  struct named_init ni = {
2899    .number = 34,
2900    .name = L"Test wide string",
2901    .average = 543.34343,
2902  };
2903
2904  ni.number = 58;
2905
2906  int dynamic_array[ni.number];
2907  dynamic_array[0] = argv[0][0];
2908  dynamic_array[ni.number - 1] = 543;
2909
2910  // work around unused variable warnings
2911  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2912	 || dynamic_array[ni.number - 1] != 543);
2913'
2914
2915# Test code for whether the C compiler supports C11 (global declarations)
2916ac_c_conftest_c11_globals='
2917// Does the compiler advertise C11 conformance?
2918#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2919# error "Compiler does not advertise C11 conformance"
2920#endif
2921
2922// Check _Alignas.
2923char _Alignas (double) aligned_as_double;
2924char _Alignas (0) no_special_alignment;
2925extern char aligned_as_int;
2926char _Alignas (0) _Alignas (int) aligned_as_int;
2927
2928// Check _Alignof.
2929enum
2930{
2931  int_alignment = _Alignof (int),
2932  int_array_alignment = _Alignof (int[100]),
2933  char_alignment = _Alignof (char)
2934};
2935_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2936
2937// Check _Noreturn.
2938int _Noreturn does_not_return (void) { for (;;) continue; }
2939
2940// Check _Static_assert.
2941struct test_static_assert
2942{
2943  int x;
2944  _Static_assert (sizeof (int) <= sizeof (long int),
2945                  "_Static_assert does not work in struct");
2946  long int y;
2947};
2948
2949// Check UTF-8 literals.
2950#define u8 syntax error!
2951char const utf8_literal[] = u8"happens to be ASCII" "another string";
2952
2953// Check duplicate typedefs.
2954typedef long *long_ptr;
2955typedef long int *long_ptr;
2956typedef long_ptr long_ptr;
2957
2958// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2959struct anonymous
2960{
2961  union {
2962    struct { int i; int j; };
2963    struct { int k; long int l; } w;
2964  };
2965  int m;
2966} v1;
2967'
2968
2969# Test code for whether the C compiler supports C11 (body of main).
2970ac_c_conftest_c11_main='
2971  _Static_assert ((offsetof (struct anonymous, i)
2972		   == offsetof (struct anonymous, w.k)),
2973		  "Anonymous union alignment botch");
2974  v1.i = 2;
2975  v1.w.k = 5;
2976  ok |= v1.i != 5;
2977'
2978
2979# Test code for whether the C compiler supports C11 (complete).
2980ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2981${ac_c_conftest_c99_globals}
2982${ac_c_conftest_c11_globals}
2983
2984int
2985main (int argc, char **argv)
2986{
2987  int ok = 0;
2988  ${ac_c_conftest_c89_main}
2989  ${ac_c_conftest_c99_main}
2990  ${ac_c_conftest_c11_main}
2991  return ok;
2992}
2993"
2994
2995# Test code for whether the C compiler supports C99 (complete).
2996ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2997${ac_c_conftest_c99_globals}
2998
2999int
3000main (int argc, char **argv)
3001{
3002  int ok = 0;
3003  ${ac_c_conftest_c89_main}
3004  ${ac_c_conftest_c99_main}
3005  return ok;
3006}
3007"
3008
3009# Test code for whether the C compiler supports C89 (complete).
3010ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3011
3012int
3013main (int argc, char **argv)
3014{
3015  int ok = 0;
3016  ${ac_c_conftest_c89_main}
3017  return ok;
3018}
3019"
3020
3021# Test code for whether the C++ compiler supports C++98 (global declarations)
3022ac_cxx_conftest_cxx98_globals='
3023// Does the compiler advertise C++98 conformance?
3024#if !defined __cplusplus || __cplusplus < 199711L
3025# error "Compiler does not advertise C++98 conformance"
3026#endif
3027
3028// These inclusions are to reject old compilers that
3029// lack the unsuffixed header files.
3030#include <cstdlib>
3031#include <exception>
3032
3033// <cassert> and <cstring> are *not* freestanding headers in C++98.
3034extern void assert (int);
3035namespace std {
3036  extern int strcmp (const char *, const char *);
3037}
3038
3039// Namespaces, exceptions, and templates were all added after "C++ 2.0".
3040using std::exception;
3041using std::strcmp;
3042
3043namespace {
3044
3045void test_exception_syntax()
3046{
3047  try {
3048    throw "test";
3049  } catch (const char *s) {
3050    // Extra parentheses suppress a warning when building autoconf itself,
3051    // due to lint rules shared with more typical C programs.
3052    assert (!(strcmp) (s, "test"));
3053  }
3054}
3055
3056template <typename T> struct test_template
3057{
3058  T const val;
3059  explicit test_template(T t) : val(t) {}
3060  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3061};
3062
3063} // anonymous namespace
3064'
3065
3066# Test code for whether the C++ compiler supports C++98 (body of main)
3067ac_cxx_conftest_cxx98_main='
3068  assert (argc);
3069  assert (! argv[0]);
3070{
3071  test_exception_syntax ();
3072  test_template<double> tt (2.0);
3073  assert (tt.add (4) == 6.0);
3074  assert (true && !false);
3075}
3076'
3077
3078# Test code for whether the C++ compiler supports C++11 (global declarations)
3079ac_cxx_conftest_cxx11_globals='
3080// Does the compiler advertise C++ 2011 conformance?
3081#if !defined __cplusplus || __cplusplus < 201103L
3082# error "Compiler does not advertise C++11 conformance"
3083#endif
3084
3085namespace cxx11test
3086{
3087  constexpr int get_val() { return 20; }
3088
3089  struct testinit
3090  {
3091    int i;
3092    double d;
3093  };
3094
3095  class delegate
3096  {
3097  public:
3098    delegate(int n) : n(n) {}
3099    delegate(): delegate(2354) {}
3100
3101    virtual int getval() { return this->n; };
3102  protected:
3103    int n;
3104  };
3105
3106  class overridden : public delegate
3107  {
3108  public:
3109    overridden(int n): delegate(n) {}
3110    virtual int getval() override final { return this->n * 2; }
3111  };
3112
3113  class nocopy
3114  {
3115  public:
3116    nocopy(int i): i(i) {}
3117    nocopy() = default;
3118    nocopy(const nocopy&) = delete;
3119    nocopy & operator=(const nocopy&) = delete;
3120  private:
3121    int i;
3122  };
3123
3124  // for testing lambda expressions
3125  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3126  {
3127    return f(v);
3128  }
3129
3130  // for testing variadic templates and trailing return types
3131  template <typename V> auto sum(V first) -> V
3132  {
3133    return first;
3134  }
3135  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3136  {
3137    return first + sum(rest...);
3138  }
3139}
3140'
3141
3142# Test code for whether the C++ compiler supports C++11 (body of main)
3143ac_cxx_conftest_cxx11_main='
3144{
3145  // Test auto and decltype
3146  auto a1 = 6538;
3147  auto a2 = 48573953.4;
3148  auto a3 = "String literal";
3149
3150  int total = 0;
3151  for (auto i = a3; *i; ++i) { total += *i; }
3152
3153  decltype(a2) a4 = 34895.034;
3154}
3155{
3156  // Test constexpr
3157  short sa[cxx11test::get_val()] = { 0 };
3158}
3159{
3160  // Test initializer lists
3161  cxx11test::testinit il = { 4323, 435234.23544 };
3162}
3163{
3164  // Test range-based for
3165  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3166                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3167  for (auto &x : array) { x += 23; }
3168}
3169{
3170  // Test lambda expressions
3171  using cxx11test::eval;
3172  assert (eval ([](int x) { return x*2; }, 21) == 42);
3173  double d = 2.0;
3174  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3175  assert (d == 5.0);
3176  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3177  assert (d == 5.0);
3178}
3179{
3180  // Test use of variadic templates
3181  using cxx11test::sum;
3182  auto a = sum(1);
3183  auto b = sum(1, 2);
3184  auto c = sum(1.0, 2.0, 3.0);
3185}
3186{
3187  // Test constructor delegation
3188  cxx11test::delegate d1;
3189  cxx11test::delegate d2();
3190  cxx11test::delegate d3(45);
3191}
3192{
3193  // Test override and final
3194  cxx11test::overridden o1(55464);
3195}
3196{
3197  // Test nullptr
3198  char *c = nullptr;
3199}
3200{
3201  // Test template brackets
3202  test_template<::test_template<int>> v(test_template<int>(12));
3203}
3204{
3205  // Unicode literals
3206  char const *utf8 = u8"UTF-8 string \u2500";
3207  char16_t const *utf16 = u"UTF-8 string \u2500";
3208  char32_t const *utf32 = U"UTF-32 string \u2500";
3209}
3210'
3211
3212# Test code for whether the C compiler supports C++11 (complete).
3213ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3214${ac_cxx_conftest_cxx11_globals}
3215
3216int
3217main (int argc, char **argv)
3218{
3219  int ok = 0;
3220  ${ac_cxx_conftest_cxx98_main}
3221  ${ac_cxx_conftest_cxx11_main}
3222  return ok;
3223}
3224"
3225
3226# Test code for whether the C compiler supports C++98 (complete).
3227ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3228int
3229main (int argc, char **argv)
3230{
3231  int ok = 0;
3232  ${ac_cxx_conftest_cxx98_main}
3233  return ok;
3234}
3235"
3236
3237as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3238as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3239as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3240as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3241as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3242as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3243as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3244as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3245as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3246
3247# Auxiliary files required by this configure script.
3248ac_aux_files="install-sh config.guess config.sub"
3249
3250# Locations in which to look for auxiliary files.
3251ac_aux_dir_candidates="${srcdir}/./config"
3252
3253# Search for a directory containing all of the required auxiliary files,
3254# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3255# If we don't find one directory that contains all the files we need,
3256# we report the set of missing files from the *first* directory in
3257# $ac_aux_dir_candidates and give up.
3258ac_missing_aux_files=""
3259ac_first_candidate=:
3260printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262as_found=false
3263for as_dir in $ac_aux_dir_candidates
3264do
3265  IFS=$as_save_IFS
3266  case $as_dir in #(((
3267    '') as_dir=./ ;;
3268    */) ;;
3269    *) as_dir=$as_dir/ ;;
3270  esac
3271  as_found=:
3272
3273  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3274  ac_aux_dir_found=yes
3275  ac_install_sh=
3276  for ac_aux in $ac_aux_files
3277  do
3278    # As a special case, if "install-sh" is required, that requirement
3279    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3280    # and $ac_install_sh is set appropriately for whichever one is found.
3281    if test x"$ac_aux" = x"install-sh"
3282    then
3283      if test -f "${as_dir}install-sh"; then
3284        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3285        ac_install_sh="${as_dir}install-sh -c"
3286      elif test -f "${as_dir}install.sh"; then
3287        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3288        ac_install_sh="${as_dir}install.sh -c"
3289      elif test -f "${as_dir}shtool"; then
3290        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3291        ac_install_sh="${as_dir}shtool install -c"
3292      else
3293        ac_aux_dir_found=no
3294        if $ac_first_candidate; then
3295          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3296        else
3297          break
3298        fi
3299      fi
3300    else
3301      if test -f "${as_dir}${ac_aux}"; then
3302        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3303      else
3304        ac_aux_dir_found=no
3305        if $ac_first_candidate; then
3306          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3307        else
3308          break
3309        fi
3310      fi
3311    fi
3312  done
3313  if test "$ac_aux_dir_found" = yes; then
3314    ac_aux_dir="$as_dir"
3315    break
3316  fi
3317  ac_first_candidate=false
3318
3319  as_found=false
3320done
3321IFS=$as_save_IFS
3322if $as_found
3323then :
3324
3325else $as_nop
3326  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3327fi
3328
3329
3330# These three variables are undocumented and unsupported,
3331# and are intended to be withdrawn in a future Autoconf release.
3332# They can cause serious problems if a builder's source tree is in a directory
3333# whose full name contains unusual characters.
3334if test -f "${ac_aux_dir}config.guess"; then
3335  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3336fi
3337if test -f "${ac_aux_dir}config.sub"; then
3338  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3339fi
3340if test -f "$ac_aux_dir/configure"; then
3341  ac_configure="$SHELL ${ac_aux_dir}configure"
3342fi
3343
3344# Check that the precious variables saved in the cache have kept the same
3345# value.
3346ac_cache_corrupted=false
3347for ac_var in $ac_precious_vars; do
3348  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3349  eval ac_new_set=\$ac_env_${ac_var}_set
3350  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3351  eval ac_new_val=\$ac_env_${ac_var}_value
3352  case $ac_old_set,$ac_new_set in
3353    set,)
3354      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3355printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3356      ac_cache_corrupted=: ;;
3357    ,set)
3358      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3359printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3360      ac_cache_corrupted=: ;;
3361    ,);;
3362    *)
3363      if test "x$ac_old_val" != "x$ac_new_val"; then
3364	# differences in whitespace do not lead to failure.
3365	ac_old_val_w=`echo x $ac_old_val`
3366	ac_new_val_w=`echo x $ac_new_val`
3367	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3368	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3369printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3370	  ac_cache_corrupted=:
3371	else
3372	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3373printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3374	  eval $ac_var=\$ac_old_val
3375	fi
3376	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3377printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3379printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3380      fi;;
3381  esac
3382  # Pass precious variables to config.status.
3383  if test "$ac_new_set" = set; then
3384    case $ac_new_val in
3385    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3386    *) ac_arg=$ac_var=$ac_new_val ;;
3387    esac
3388    case " $ac_configure_args " in
3389      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3390      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3391    esac
3392  fi
3393done
3394if $ac_cache_corrupted; then
3395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3398printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3399  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3400	    and start over" "$LINENO" 5
3401fi
3402## -------------------- ##
3403## Main body of script. ##
3404## -------------------- ##
3405
3406ac_ext=c
3407ac_cpp='$CPP $CPPFLAGS'
3408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411
3412
3413
3414build_dynobj=no
3415
3416# If $runstatedir isn't set by autoconf (<2.70), set it manually.
3417if test x"$runstatedir" = x; then
3418  runstatedir='${localstatedir}/run'
3419fi
3420
3421
3422# Don't make duplicate profile path entries for /etc/krb5.conf if
3423# $sysconfdir is /etc
3424if test "$sysconfdir" = /etc; then
3425  SYSCONFCONF=""
3426else
3427  SYSCONFCONF=":${sysconfdir}/krb5.conf"
3428fi
3429
3430
3431ac_reltopdir="."
3432if test ! -r "$srcdir/./aclocal.m4"; then
3433  as_fn_error $? "Configure could not determine the relative topdir" "$LINENO" 5
3434fi
3435ac_topdir=$srcdir/$ac_reltopdir
3436ac_config_fragdir=$ac_reltopdir/config
3437# echo "Looking for $srcdir/$ac_config_fragdir"
3438
3439
3440
3441
3442
3443krb5_ac_cflags_set=${CFLAGS+set}
3444krb5_ac_cxxflags_set=${CXXFLAGS+set}
3445krb5_ac_warn_cflags_set=${WARN_CFLAGS+set}
3446krb5_ac_warn_cxxflags_set=${WARN_CXXFLAGS+set}
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462if test -n "$ac_tool_prefix"; then
3463  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3464set dummy ${ac_tool_prefix}gcc; ac_word=$2
3465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466printf %s "checking for $ac_word... " >&6; }
3467if test ${ac_cv_prog_CC+y}
3468then :
3469  printf %s "(cached) " >&6
3470else $as_nop
3471  if test -n "$CC"; then
3472  ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  case $as_dir in #(((
3479    '') as_dir=./ ;;
3480    */) ;;
3481    *) as_dir=$as_dir/ ;;
3482  esac
3483    for ac_exec_ext in '' $ac_executable_extensions; do
3484  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3485    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3486    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3487    break 2
3488  fi
3489done
3490  done
3491IFS=$as_save_IFS
3492
3493fi
3494fi
3495CC=$ac_cv_prog_CC
3496if test -n "$CC"; then
3497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498printf "%s\n" "$CC" >&6; }
3499else
3500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501printf "%s\n" "no" >&6; }
3502fi
3503
3504
3505fi
3506if test -z "$ac_cv_prog_CC"; then
3507  ac_ct_CC=$CC
3508  # Extract the first word of "gcc", so it can be a program name with args.
3509set dummy gcc; ac_word=$2
3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511printf %s "checking for $ac_word... " >&6; }
3512if test ${ac_cv_prog_ac_ct_CC+y}
3513then :
3514  printf %s "(cached) " >&6
3515else $as_nop
3516  if test -n "$ac_ct_CC"; then
3517  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3518else
3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522  IFS=$as_save_IFS
3523  case $as_dir in #(((
3524    '') as_dir=./ ;;
3525    */) ;;
3526    *) as_dir=$as_dir/ ;;
3527  esac
3528    for ac_exec_ext in '' $ac_executable_extensions; do
3529  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3530    ac_cv_prog_ac_ct_CC="gcc"
3531    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3532    break 2
3533  fi
3534done
3535  done
3536IFS=$as_save_IFS
3537
3538fi
3539fi
3540ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541if test -n "$ac_ct_CC"; then
3542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543printf "%s\n" "$ac_ct_CC" >&6; }
3544else
3545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546printf "%s\n" "no" >&6; }
3547fi
3548
3549  if test "x$ac_ct_CC" = x; then
3550    CC=""
3551  else
3552    case $cross_compiling:$ac_tool_warned in
3553yes:)
3554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556ac_tool_warned=yes ;;
3557esac
3558    CC=$ac_ct_CC
3559  fi
3560else
3561  CC="$ac_cv_prog_CC"
3562fi
3563
3564if test -z "$CC"; then
3565          if test -n "$ac_tool_prefix"; then
3566    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3567set dummy ${ac_tool_prefix}cc; ac_word=$2
3568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569printf %s "checking for $ac_word... " >&6; }
3570if test ${ac_cv_prog_CC+y}
3571then :
3572  printf %s "(cached) " >&6
3573else $as_nop
3574  if test -n "$CC"; then
3575  ac_cv_prog_CC="$CC" # Let the user override the test.
3576else
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580  IFS=$as_save_IFS
3581  case $as_dir in #(((
3582    '') as_dir=./ ;;
3583    */) ;;
3584    *) as_dir=$as_dir/ ;;
3585  esac
3586    for ac_exec_ext in '' $ac_executable_extensions; do
3587  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3588    ac_cv_prog_CC="${ac_tool_prefix}cc"
3589    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3590    break 2
3591  fi
3592done
3593  done
3594IFS=$as_save_IFS
3595
3596fi
3597fi
3598CC=$ac_cv_prog_CC
3599if test -n "$CC"; then
3600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601printf "%s\n" "$CC" >&6; }
3602else
3603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604printf "%s\n" "no" >&6; }
3605fi
3606
3607
3608  fi
3609fi
3610if test -z "$CC"; then
3611  # Extract the first word of "cc", so it can be a program name with args.
3612set dummy cc; ac_word=$2
3613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614printf %s "checking for $ac_word... " >&6; }
3615if test ${ac_cv_prog_CC+y}
3616then :
3617  printf %s "(cached) " >&6
3618else $as_nop
3619  if test -n "$CC"; then
3620  ac_cv_prog_CC="$CC" # Let the user override the test.
3621else
3622  ac_prog_rejected=no
3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH
3625do
3626  IFS=$as_save_IFS
3627  case $as_dir in #(((
3628    '') as_dir=./ ;;
3629    */) ;;
3630    *) as_dir=$as_dir/ ;;
3631  esac
3632    for ac_exec_ext in '' $ac_executable_extensions; do
3633  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3634    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3635       ac_prog_rejected=yes
3636       continue
3637     fi
3638    ac_cv_prog_CC="cc"
3639    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3640    break 2
3641  fi
3642done
3643  done
3644IFS=$as_save_IFS
3645
3646if test $ac_prog_rejected = yes; then
3647  # We found a bogon in the path, so make sure we never use it.
3648  set dummy $ac_cv_prog_CC
3649  shift
3650  if test $# != 0; then
3651    # We chose a different compiler from the bogus one.
3652    # However, it has the same basename, so the bogon will be chosen
3653    # first if we set CC to just the basename; use the full file name.
3654    shift
3655    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3656  fi
3657fi
3658fi
3659fi
3660CC=$ac_cv_prog_CC
3661if test -n "$CC"; then
3662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663printf "%s\n" "$CC" >&6; }
3664else
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666printf "%s\n" "no" >&6; }
3667fi
3668
3669
3670fi
3671if test -z "$CC"; then
3672  if test -n "$ac_tool_prefix"; then
3673  for ac_prog in cl.exe
3674  do
3675    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678printf %s "checking for $ac_word... " >&6; }
3679if test ${ac_cv_prog_CC+y}
3680then :
3681  printf %s "(cached) " >&6
3682else $as_nop
3683  if test -n "$CC"; then
3684  ac_cv_prog_CC="$CC" # Let the user override the test.
3685else
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689  IFS=$as_save_IFS
3690  case $as_dir in #(((
3691    '') as_dir=./ ;;
3692    */) ;;
3693    *) as_dir=$as_dir/ ;;
3694  esac
3695    for ac_exec_ext in '' $ac_executable_extensions; do
3696  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3697    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3699    break 2
3700  fi
3701done
3702  done
3703IFS=$as_save_IFS
3704
3705fi
3706fi
3707CC=$ac_cv_prog_CC
3708if test -n "$CC"; then
3709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3710printf "%s\n" "$CC" >&6; }
3711else
3712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713printf "%s\n" "no" >&6; }
3714fi
3715
3716
3717    test -n "$CC" && break
3718  done
3719fi
3720if test -z "$CC"; then
3721  ac_ct_CC=$CC
3722  for ac_prog in cl.exe
3723do
3724  # Extract the first word of "$ac_prog", so it can be a program name with args.
3725set dummy $ac_prog; ac_word=$2
3726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727printf %s "checking for $ac_word... " >&6; }
3728if test ${ac_cv_prog_ac_ct_CC+y}
3729then :
3730  printf %s "(cached) " >&6
3731else $as_nop
3732  if test -n "$ac_ct_CC"; then
3733  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3734else
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738  IFS=$as_save_IFS
3739  case $as_dir in #(((
3740    '') as_dir=./ ;;
3741    */) ;;
3742    *) as_dir=$as_dir/ ;;
3743  esac
3744    for ac_exec_ext in '' $ac_executable_extensions; do
3745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3746    ac_cv_prog_ac_ct_CC="$ac_prog"
3747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3748    break 2
3749  fi
3750done
3751  done
3752IFS=$as_save_IFS
3753
3754fi
3755fi
3756ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757if test -n "$ac_ct_CC"; then
3758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759printf "%s\n" "$ac_ct_CC" >&6; }
3760else
3761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762printf "%s\n" "no" >&6; }
3763fi
3764
3765
3766  test -n "$ac_ct_CC" && break
3767done
3768
3769  if test "x$ac_ct_CC" = x; then
3770    CC=""
3771  else
3772    case $cross_compiling:$ac_tool_warned in
3773yes:)
3774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776ac_tool_warned=yes ;;
3777esac
3778    CC=$ac_ct_CC
3779  fi
3780fi
3781
3782fi
3783if test -z "$CC"; then
3784  if test -n "$ac_tool_prefix"; then
3785  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3786set dummy ${ac_tool_prefix}clang; ac_word=$2
3787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788printf %s "checking for $ac_word... " >&6; }
3789if test ${ac_cv_prog_CC+y}
3790then :
3791  printf %s "(cached) " >&6
3792else $as_nop
3793  if test -n "$CC"; then
3794  ac_cv_prog_CC="$CC" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799  IFS=$as_save_IFS
3800  case $as_dir in #(((
3801    '') as_dir=./ ;;
3802    */) ;;
3803    *) as_dir=$as_dir/ ;;
3804  esac
3805    for ac_exec_ext in '' $ac_executable_extensions; do
3806  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3807    ac_cv_prog_CC="${ac_tool_prefix}clang"
3808    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3809    break 2
3810  fi
3811done
3812  done
3813IFS=$as_save_IFS
3814
3815fi
3816fi
3817CC=$ac_cv_prog_CC
3818if test -n "$CC"; then
3819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820printf "%s\n" "$CC" >&6; }
3821else
3822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823printf "%s\n" "no" >&6; }
3824fi
3825
3826
3827fi
3828if test -z "$ac_cv_prog_CC"; then
3829  ac_ct_CC=$CC
3830  # Extract the first word of "clang", so it can be a program name with args.
3831set dummy clang; ac_word=$2
3832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833printf %s "checking for $ac_word... " >&6; }
3834if test ${ac_cv_prog_ac_ct_CC+y}
3835then :
3836  printf %s "(cached) " >&6
3837else $as_nop
3838  if test -n "$ac_ct_CC"; then
3839  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3840else
3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844  IFS=$as_save_IFS
3845  case $as_dir in #(((
3846    '') as_dir=./ ;;
3847    */) ;;
3848    *) as_dir=$as_dir/ ;;
3849  esac
3850    for ac_exec_ext in '' $ac_executable_extensions; do
3851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3852    ac_cv_prog_ac_ct_CC="clang"
3853    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3854    break 2
3855  fi
3856done
3857  done
3858IFS=$as_save_IFS
3859
3860fi
3861fi
3862ac_ct_CC=$ac_cv_prog_ac_ct_CC
3863if test -n "$ac_ct_CC"; then
3864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3865printf "%s\n" "$ac_ct_CC" >&6; }
3866else
3867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868printf "%s\n" "no" >&6; }
3869fi
3870
3871  if test "x$ac_ct_CC" = x; then
3872    CC=""
3873  else
3874    case $cross_compiling:$ac_tool_warned in
3875yes:)
3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3877printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3878ac_tool_warned=yes ;;
3879esac
3880    CC=$ac_ct_CC
3881  fi
3882else
3883  CC="$ac_cv_prog_CC"
3884fi
3885
3886fi
3887
3888
3889test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3891as_fn_error $? "no acceptable C compiler found in \$PATH
3892See \`config.log' for more details" "$LINENO" 5; }
3893
3894# Provide some information about the compiler.
3895printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3896set X $ac_compile
3897ac_compiler=$2
3898for ac_option in --version -v -V -qversion -version; do
3899  { { ac_try="$ac_compiler $ac_option >&5"
3900case "(($ac_try" in
3901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902  *) ac_try_echo=$ac_try;;
3903esac
3904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905printf "%s\n" "$ac_try_echo"; } >&5
3906  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3907  ac_status=$?
3908  if test -s conftest.err; then
3909    sed '10a\
3910... rest of stderr output deleted ...
3911         10q' conftest.err >conftest.er1
3912    cat conftest.er1 >&5
3913  fi
3914  rm -f conftest.er1 conftest.err
3915  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916  test $ac_status = 0; }
3917done
3918
3919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921
3922int
3923main (void)
3924{
3925
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930ac_clean_files_save=$ac_clean_files
3931ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3932# Try to create an executable without -o first, disregard a.out.
3933# It will help us diagnose broken compilers, and finding out an intuition
3934# of exeext.
3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936printf %s "checking whether the C compiler works... " >&6; }
3937ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3938
3939# The possible output files:
3940ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3941
3942ac_rmfiles=
3943for ac_file in $ac_files
3944do
3945  case $ac_file in
3946    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3947    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3948  esac
3949done
3950rm -f $ac_rmfiles
3951
3952if { { ac_try="$ac_link_default"
3953case "(($ac_try" in
3954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955  *) ac_try_echo=$ac_try;;
3956esac
3957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958printf "%s\n" "$ac_try_echo"; } >&5
3959  (eval "$ac_link_default") 2>&5
3960  ac_status=$?
3961  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962  test $ac_status = 0; }
3963then :
3964  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3965# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3966# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3967# so that the user can short-circuit this test for compilers unknown to
3968# Autoconf.
3969for ac_file in $ac_files ''
3970do
3971  test -f "$ac_file" || continue
3972  case $ac_file in
3973    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3974	;;
3975    [ab].out )
3976	# We found the default executable, but exeext='' is most
3977	# certainly right.
3978	break;;
3979    *.* )
3980	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3981	then :; else
3982	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983	fi
3984	# We set ac_cv_exeext here because the later test for it is not
3985	# safe: cross compilers may not add the suffix if given an `-o'
3986	# argument, so we may need to know it at that point already.
3987	# Even if this section looks crufty: it has the advantage of
3988	# actually working.
3989	break;;
3990    * )
3991	break;;
3992  esac
3993done
3994test "$ac_cv_exeext" = no && ac_cv_exeext=
3995
3996else $as_nop
3997  ac_file=''
3998fi
3999if test -z "$ac_file"
4000then :
4001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002printf "%s\n" "no" >&6; }
4003printf "%s\n" "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4008as_fn_error 77 "C compiler cannot create executables
4009See \`config.log' for more details" "$LINENO" 5; }
4010else $as_nop
4011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4012printf "%s\n" "yes" >&6; }
4013fi
4014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4015printf %s "checking for C compiler default output file name... " >&6; }
4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4017printf "%s\n" "$ac_file" >&6; }
4018ac_exeext=$ac_cv_exeext
4019
4020rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4021ac_clean_files=$ac_clean_files_save
4022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4023printf %s "checking for suffix of executables... " >&6; }
4024if { { ac_try="$ac_link"
4025case "(($ac_try" in
4026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027  *) ac_try_echo=$ac_try;;
4028esac
4029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030printf "%s\n" "$ac_try_echo"; } >&5
4031  (eval "$ac_link") 2>&5
4032  ac_status=$?
4033  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034  test $ac_status = 0; }
4035then :
4036  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4037# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4038# work properly (i.e., refer to `conftest.exe'), while it won't with
4039# `rm'.
4040for ac_file in conftest.exe conftest conftest.*; do
4041  test -f "$ac_file" || continue
4042  case $ac_file in
4043    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4044    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4045	  break;;
4046    * ) break;;
4047  esac
4048done
4049else $as_nop
4050  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4052as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4053See \`config.log' for more details" "$LINENO" 5; }
4054fi
4055rm -f conftest conftest$ac_cv_exeext
4056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4057printf "%s\n" "$ac_cv_exeext" >&6; }
4058
4059rm -f conftest.$ac_ext
4060EXEEXT=$ac_cv_exeext
4061ac_exeext=$EXEEXT
4062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h.  */
4064#include <stdio.h>
4065int
4066main (void)
4067{
4068FILE *f = fopen ("conftest.out", "w");
4069 return ferror (f) || fclose (f) != 0;
4070
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075ac_clean_files="$ac_clean_files conftest.out"
4076# Check that the compiler produces executables we can run.  If not, either
4077# the compiler is broken, or we cross compile.
4078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4079printf %s "checking whether we are cross compiling... " >&6; }
4080if test "$cross_compiling" != yes; then
4081  { { ac_try="$ac_link"
4082case "(($ac_try" in
4083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084  *) ac_try_echo=$ac_try;;
4085esac
4086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087printf "%s\n" "$ac_try_echo"; } >&5
4088  (eval "$ac_link") 2>&5
4089  ac_status=$?
4090  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091  test $ac_status = 0; }
4092  if { ac_try='./conftest$ac_cv_exeext'
4093  { { case "(($ac_try" in
4094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095  *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098printf "%s\n" "$ac_try_echo"; } >&5
4099  (eval "$ac_try") 2>&5
4100  ac_status=$?
4101  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102  test $ac_status = 0; }; }; then
4103    cross_compiling=no
4104  else
4105    if test "$cross_compiling" = maybe; then
4106	cross_compiling=yes
4107    else
4108	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4110as_fn_error 77 "cannot run C compiled programs.
4111If you meant to cross compile, use \`--host'.
4112See \`config.log' for more details" "$LINENO" 5; }
4113    fi
4114  fi
4115fi
4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4117printf "%s\n" "$cross_compiling" >&6; }
4118
4119rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4120ac_clean_files=$ac_clean_files_save
4121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4122printf %s "checking for suffix of object files... " >&6; }
4123if test ${ac_cv_objext+y}
4124then :
4125  printf %s "(cached) " >&6
4126else $as_nop
4127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128/* end confdefs.h.  */
4129
4130int
4131main (void)
4132{
4133
4134  ;
4135  return 0;
4136}
4137_ACEOF
4138rm -f conftest.o conftest.obj
4139if { { ac_try="$ac_compile"
4140case "(($ac_try" in
4141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142  *) ac_try_echo=$ac_try;;
4143esac
4144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145printf "%s\n" "$ac_try_echo"; } >&5
4146  (eval "$ac_compile") 2>&5
4147  ac_status=$?
4148  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149  test $ac_status = 0; }
4150then :
4151  for ac_file in conftest.o conftest.obj conftest.*; do
4152  test -f "$ac_file" || continue;
4153  case $ac_file in
4154    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4155    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4156       break;;
4157  esac
4158done
4159else $as_nop
4160  printf "%s\n" "$as_me: failed program was:" >&5
4161sed 's/^/| /' conftest.$ac_ext >&5
4162
4163{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4165as_fn_error $? "cannot compute suffix of object files: cannot compile
4166See \`config.log' for more details" "$LINENO" 5; }
4167fi
4168rm -f conftest.$ac_cv_objext conftest.$ac_ext
4169fi
4170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4171printf "%s\n" "$ac_cv_objext" >&6; }
4172OBJEXT=$ac_cv_objext
4173ac_objext=$OBJEXT
4174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4175printf %s "checking whether the compiler supports GNU C... " >&6; }
4176if test ${ac_cv_c_compiler_gnu+y}
4177then :
4178  printf %s "(cached) " >&6
4179else $as_nop
4180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h.  */
4182
4183int
4184main (void)
4185{
4186#ifndef __GNUC__
4187       choke me
4188#endif
4189
4190  ;
4191  return 0;
4192}
4193_ACEOF
4194if ac_fn_c_try_compile "$LINENO"
4195then :
4196  ac_compiler_gnu=yes
4197else $as_nop
4198  ac_compiler_gnu=no
4199fi
4200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4201ac_cv_c_compiler_gnu=$ac_compiler_gnu
4202
4203fi
4204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4205printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208if test $ac_compiler_gnu = yes; then
4209  GCC=yes
4210else
4211  GCC=
4212fi
4213ac_test_CFLAGS=${CFLAGS+y}
4214ac_save_CFLAGS=$CFLAGS
4215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4216printf %s "checking whether $CC accepts -g... " >&6; }
4217if test ${ac_cv_prog_cc_g+y}
4218then :
4219  printf %s "(cached) " >&6
4220else $as_nop
4221  ac_save_c_werror_flag=$ac_c_werror_flag
4222   ac_c_werror_flag=yes
4223   ac_cv_prog_cc_g=no
4224   CFLAGS="-g"
4225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226/* end confdefs.h.  */
4227
4228int
4229main (void)
4230{
4231
4232  ;
4233  return 0;
4234}
4235_ACEOF
4236if ac_fn_c_try_compile "$LINENO"
4237then :
4238  ac_cv_prog_cc_g=yes
4239else $as_nop
4240  CFLAGS=""
4241      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h.  */
4243
4244int
4245main (void)
4246{
4247
4248  ;
4249  return 0;
4250}
4251_ACEOF
4252if ac_fn_c_try_compile "$LINENO"
4253then :
4254
4255else $as_nop
4256  ac_c_werror_flag=$ac_save_c_werror_flag
4257	 CFLAGS="-g"
4258	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h.  */
4260
4261int
4262main (void)
4263{
4264
4265  ;
4266  return 0;
4267}
4268_ACEOF
4269if ac_fn_c_try_compile "$LINENO"
4270then :
4271  ac_cv_prog_cc_g=yes
4272fi
4273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4274fi
4275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4276fi
4277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4278   ac_c_werror_flag=$ac_save_c_werror_flag
4279fi
4280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4281printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4282if test $ac_test_CFLAGS; then
4283  CFLAGS=$ac_save_CFLAGS
4284elif test $ac_cv_prog_cc_g = yes; then
4285  if test "$GCC" = yes; then
4286    CFLAGS="-g -O2"
4287  else
4288    CFLAGS="-g"
4289  fi
4290else
4291  if test "$GCC" = yes; then
4292    CFLAGS="-O2"
4293  else
4294    CFLAGS=
4295  fi
4296fi
4297ac_prog_cc_stdc=no
4298if test x$ac_prog_cc_stdc = xno
4299then :
4300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4301printf %s "checking for $CC option to enable C11 features... " >&6; }
4302if test ${ac_cv_prog_cc_c11+y}
4303then :
4304  printf %s "(cached) " >&6
4305else $as_nop
4306  ac_cv_prog_cc_c11=no
4307ac_save_CC=$CC
4308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310$ac_c_conftest_c11_program
4311_ACEOF
4312for ac_arg in '' -std=gnu11
4313do
4314  CC="$ac_save_CC $ac_arg"
4315  if ac_fn_c_try_compile "$LINENO"
4316then :
4317  ac_cv_prog_cc_c11=$ac_arg
4318fi
4319rm -f core conftest.err conftest.$ac_objext conftest.beam
4320  test "x$ac_cv_prog_cc_c11" != "xno" && break
4321done
4322rm -f conftest.$ac_ext
4323CC=$ac_save_CC
4324fi
4325
4326if test "x$ac_cv_prog_cc_c11" = xno
4327then :
4328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4329printf "%s\n" "unsupported" >&6; }
4330else $as_nop
4331  if test "x$ac_cv_prog_cc_c11" = x
4332then :
4333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4334printf "%s\n" "none needed" >&6; }
4335else $as_nop
4336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4337printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4338     CC="$CC $ac_cv_prog_cc_c11"
4339fi
4340  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4341  ac_prog_cc_stdc=c11
4342fi
4343fi
4344if test x$ac_prog_cc_stdc = xno
4345then :
4346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4347printf %s "checking for $CC option to enable C99 features... " >&6; }
4348if test ${ac_cv_prog_cc_c99+y}
4349then :
4350  printf %s "(cached) " >&6
4351else $as_nop
4352  ac_cv_prog_cc_c99=no
4353ac_save_CC=$CC
4354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355/* end confdefs.h.  */
4356$ac_c_conftest_c99_program
4357_ACEOF
4358for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4359do
4360  CC="$ac_save_CC $ac_arg"
4361  if ac_fn_c_try_compile "$LINENO"
4362then :
4363  ac_cv_prog_cc_c99=$ac_arg
4364fi
4365rm -f core conftest.err conftest.$ac_objext conftest.beam
4366  test "x$ac_cv_prog_cc_c99" != "xno" && break
4367done
4368rm -f conftest.$ac_ext
4369CC=$ac_save_CC
4370fi
4371
4372if test "x$ac_cv_prog_cc_c99" = xno
4373then :
4374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4375printf "%s\n" "unsupported" >&6; }
4376else $as_nop
4377  if test "x$ac_cv_prog_cc_c99" = x
4378then :
4379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4380printf "%s\n" "none needed" >&6; }
4381else $as_nop
4382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4383printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4384     CC="$CC $ac_cv_prog_cc_c99"
4385fi
4386  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4387  ac_prog_cc_stdc=c99
4388fi
4389fi
4390if test x$ac_prog_cc_stdc = xno
4391then :
4392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4393printf %s "checking for $CC option to enable C89 features... " >&6; }
4394if test ${ac_cv_prog_cc_c89+y}
4395then :
4396  printf %s "(cached) " >&6
4397else $as_nop
4398  ac_cv_prog_cc_c89=no
4399ac_save_CC=$CC
4400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402$ac_c_conftest_c89_program
4403_ACEOF
4404for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4405do
4406  CC="$ac_save_CC $ac_arg"
4407  if ac_fn_c_try_compile "$LINENO"
4408then :
4409  ac_cv_prog_cc_c89=$ac_arg
4410fi
4411rm -f core conftest.err conftest.$ac_objext conftest.beam
4412  test "x$ac_cv_prog_cc_c89" != "xno" && break
4413done
4414rm -f conftest.$ac_ext
4415CC=$ac_save_CC
4416fi
4417
4418if test "x$ac_cv_prog_cc_c89" = xno
4419then :
4420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4421printf "%s\n" "unsupported" >&6; }
4422else $as_nop
4423  if test "x$ac_cv_prog_cc_c89" = x
4424then :
4425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4426printf "%s\n" "none needed" >&6; }
4427else $as_nop
4428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4429printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4430     CC="$CC $ac_cv_prog_cc_c89"
4431fi
4432  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4433  ac_prog_cc_stdc=c89
4434fi
4435fi
4436
4437ac_ext=c
4438ac_cpp='$CPP $CPPFLAGS'
4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
4443
4444
4445
4446
4447
4448
4449ac_ext=cpp
4450ac_cpp='$CXXCPP $CPPFLAGS'
4451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4454if test -z "$CXX"; then
4455  if test -n "$CCC"; then
4456    CXX=$CCC
4457  else
4458    if test -n "$ac_tool_prefix"; then
4459  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4460  do
4461    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4462set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464printf %s "checking for $ac_word... " >&6; }
4465if test ${ac_cv_prog_CXX+y}
4466then :
4467  printf %s "(cached) " >&6
4468else $as_nop
4469  if test -n "$CXX"; then
4470  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475  IFS=$as_save_IFS
4476  case $as_dir in #(((
4477    '') as_dir=./ ;;
4478    */) ;;
4479    *) as_dir=$as_dir/ ;;
4480  esac
4481    for ac_exec_ext in '' $ac_executable_extensions; do
4482  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4483    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4484    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4485    break 2
4486  fi
4487done
4488  done
4489IFS=$as_save_IFS
4490
4491fi
4492fi
4493CXX=$ac_cv_prog_CXX
4494if test -n "$CXX"; then
4495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4496printf "%s\n" "$CXX" >&6; }
4497else
4498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499printf "%s\n" "no" >&6; }
4500fi
4501
4502
4503    test -n "$CXX" && break
4504  done
4505fi
4506if test -z "$CXX"; then
4507  ac_ct_CXX=$CXX
4508  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4509do
4510  # Extract the first word of "$ac_prog", so it can be a program name with args.
4511set dummy $ac_prog; ac_word=$2
4512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513printf %s "checking for $ac_word... " >&6; }
4514if test ${ac_cv_prog_ac_ct_CXX+y}
4515then :
4516  printf %s "(cached) " >&6
4517else $as_nop
4518  if test -n "$ac_ct_CXX"; then
4519  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524  IFS=$as_save_IFS
4525  case $as_dir in #(((
4526    '') as_dir=./ ;;
4527    */) ;;
4528    *) as_dir=$as_dir/ ;;
4529  esac
4530    for ac_exec_ext in '' $ac_executable_extensions; do
4531  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4532    ac_cv_prog_ac_ct_CXX="$ac_prog"
4533    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4534    break 2
4535  fi
4536done
4537  done
4538IFS=$as_save_IFS
4539
4540fi
4541fi
4542ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4543if test -n "$ac_ct_CXX"; then
4544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4545printf "%s\n" "$ac_ct_CXX" >&6; }
4546else
4547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548printf "%s\n" "no" >&6; }
4549fi
4550
4551
4552  test -n "$ac_ct_CXX" && break
4553done
4554
4555  if test "x$ac_ct_CXX" = x; then
4556    CXX="g++"
4557  else
4558    case $cross_compiling:$ac_tool_warned in
4559yes:)
4560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4561printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4562ac_tool_warned=yes ;;
4563esac
4564    CXX=$ac_ct_CXX
4565  fi
4566fi
4567
4568  fi
4569fi
4570# Provide some information about the compiler.
4571printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4572set X $ac_compile
4573ac_compiler=$2
4574for ac_option in --version -v -V -qversion; do
4575  { { ac_try="$ac_compiler $ac_option >&5"
4576case "(($ac_try" in
4577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578  *) ac_try_echo=$ac_try;;
4579esac
4580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581printf "%s\n" "$ac_try_echo"; } >&5
4582  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4583  ac_status=$?
4584  if test -s conftest.err; then
4585    sed '10a\
4586... rest of stderr output deleted ...
4587         10q' conftest.err >conftest.er1
4588    cat conftest.er1 >&5
4589  fi
4590  rm -f conftest.er1 conftest.err
4591  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592  test $ac_status = 0; }
4593done
4594
4595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4596printf %s "checking whether the compiler supports GNU C++... " >&6; }
4597if test ${ac_cv_cxx_compiler_gnu+y}
4598then :
4599  printf %s "(cached) " >&6
4600else $as_nop
4601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h.  */
4603
4604int
4605main (void)
4606{
4607#ifndef __GNUC__
4608       choke me
4609#endif
4610
4611  ;
4612  return 0;
4613}
4614_ACEOF
4615if ac_fn_cxx_try_compile "$LINENO"
4616then :
4617  ac_compiler_gnu=yes
4618else $as_nop
4619  ac_compiler_gnu=no
4620fi
4621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4622ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4623
4624fi
4625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4626printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4628
4629if test $ac_compiler_gnu = yes; then
4630  GXX=yes
4631else
4632  GXX=
4633fi
4634ac_test_CXXFLAGS=${CXXFLAGS+y}
4635ac_save_CXXFLAGS=$CXXFLAGS
4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4637printf %s "checking whether $CXX accepts -g... " >&6; }
4638if test ${ac_cv_prog_cxx_g+y}
4639then :
4640  printf %s "(cached) " >&6
4641else $as_nop
4642  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4643   ac_cxx_werror_flag=yes
4644   ac_cv_prog_cxx_g=no
4645   CXXFLAGS="-g"
4646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h.  */
4648
4649int
4650main (void)
4651{
4652
4653  ;
4654  return 0;
4655}
4656_ACEOF
4657if ac_fn_cxx_try_compile "$LINENO"
4658then :
4659  ac_cv_prog_cxx_g=yes
4660else $as_nop
4661  CXXFLAGS=""
4662      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h.  */
4664
4665int
4666main (void)
4667{
4668
4669  ;
4670  return 0;
4671}
4672_ACEOF
4673if ac_fn_cxx_try_compile "$LINENO"
4674then :
4675
4676else $as_nop
4677  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4678	 CXXFLAGS="-g"
4679	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h.  */
4681
4682int
4683main (void)
4684{
4685
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690if ac_fn_cxx_try_compile "$LINENO"
4691then :
4692  ac_cv_prog_cxx_g=yes
4693fi
4694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4695fi
4696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4697fi
4698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4699   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4700fi
4701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4702printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4703if test $ac_test_CXXFLAGS; then
4704  CXXFLAGS=$ac_save_CXXFLAGS
4705elif test $ac_cv_prog_cxx_g = yes; then
4706  if test "$GXX" = yes; then
4707    CXXFLAGS="-g -O2"
4708  else
4709    CXXFLAGS="-g"
4710  fi
4711else
4712  if test "$GXX" = yes; then
4713    CXXFLAGS="-O2"
4714  else
4715    CXXFLAGS=
4716  fi
4717fi
4718ac_prog_cxx_stdcxx=no
4719if test x$ac_prog_cxx_stdcxx = xno
4720then :
4721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4722printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4723if test ${ac_cv_prog_cxx_cxx11+y}
4724then :
4725  printf %s "(cached) " >&6
4726else $as_nop
4727  ac_cv_prog_cxx_cxx11=no
4728ac_save_CXX=$CXX
4729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h.  */
4731$ac_cxx_conftest_cxx11_program
4732_ACEOF
4733for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4734do
4735  CXX="$ac_save_CXX $ac_arg"
4736  if ac_fn_cxx_try_compile "$LINENO"
4737then :
4738  ac_cv_prog_cxx_cxx11=$ac_arg
4739fi
4740rm -f core conftest.err conftest.$ac_objext conftest.beam
4741  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4742done
4743rm -f conftest.$ac_ext
4744CXX=$ac_save_CXX
4745fi
4746
4747if test "x$ac_cv_prog_cxx_cxx11" = xno
4748then :
4749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4750printf "%s\n" "unsupported" >&6; }
4751else $as_nop
4752  if test "x$ac_cv_prog_cxx_cxx11" = x
4753then :
4754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4755printf "%s\n" "none needed" >&6; }
4756else $as_nop
4757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4758printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4759     CXX="$CXX $ac_cv_prog_cxx_cxx11"
4760fi
4761  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4762  ac_prog_cxx_stdcxx=cxx11
4763fi
4764fi
4765if test x$ac_prog_cxx_stdcxx = xno
4766then :
4767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4768printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4769if test ${ac_cv_prog_cxx_cxx98+y}
4770then :
4771  printf %s "(cached) " >&6
4772else $as_nop
4773  ac_cv_prog_cxx_cxx98=no
4774ac_save_CXX=$CXX
4775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h.  */
4777$ac_cxx_conftest_cxx98_program
4778_ACEOF
4779for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4780do
4781  CXX="$ac_save_CXX $ac_arg"
4782  if ac_fn_cxx_try_compile "$LINENO"
4783then :
4784  ac_cv_prog_cxx_cxx98=$ac_arg
4785fi
4786rm -f core conftest.err conftest.$ac_objext conftest.beam
4787  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4788done
4789rm -f conftest.$ac_ext
4790CXX=$ac_save_CXX
4791fi
4792
4793if test "x$ac_cv_prog_cxx_cxx98" = xno
4794then :
4795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4796printf "%s\n" "unsupported" >&6; }
4797else $as_nop
4798  if test "x$ac_cv_prog_cxx_cxx98" = x
4799then :
4800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4801printf "%s\n" "none needed" >&6; }
4802else $as_nop
4803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4804printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4805     CXX="$CXX $ac_cv_prog_cxx_cxx98"
4806fi
4807  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4808  ac_prog_cxx_stdcxx=cxx98
4809fi
4810fi
4811
4812ac_ext=c
4813ac_cpp='$CPP $CPPFLAGS'
4814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817
4818
4819  cflags_warning_test_flags=
4820    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`
4821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=unknown-warning-option" >&5
4822printf %s "checking if C compiler supports -Werror=unknown-warning-option... " >&6; }
4823if eval test \${$cachevar+y}
4824then :
4825  printf %s "(cached) " >&6
4826else $as_nop
4827  # first try without, then with
4828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829/* end confdefs.h.  */
4830
4831int
4832main (void)
4833{
48341;
4835  ;
4836  return 0;
4837}
4838_ACEOF
4839if ac_fn_c_try_compile "$LINENO"
4840then :
4841  old_cflags="$CFLAGS"
4842     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=unknown-warning-option"
4843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844/* end confdefs.h.  */
4845
4846int
4847main (void)
4848{
48491;
4850  ;
4851  return 0;
4852}
4853_ACEOF
4854if ac_fn_c_try_compile "$LINENO"
4855then :
4856  eval $cachevar=yes
4857else $as_nop
4858  eval $cachevar=no
4859fi
4860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4861     CFLAGS="$old_cflags"
4862else $as_nop
4863  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
4864fi
4865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4866fi
4867eval ac_res=\$$cachevar
4868	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4869printf "%s\n" "$ac_res" >&6; }
4870  if eval test '"${'$cachevar'}"' = yes; then
4871    WARN_CFLAGS="$WARN_CFLAGS -Werror=unknown-warning-option"
4872  fi
4873  eval flag_supported='${'$cachevar'}'
4874
4875  if test $flag_supported = yes; then
4876    cflags_warning_test_flags=-Werror=unknown-warning-option
4877  fi
4878
4879ac_ext=c
4880ac_cpp='$CPP $CPPFLAGS'
4881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4885printf %s "checking how to run the C preprocessor... " >&6; }
4886# On Suns, sometimes $CPP names a directory.
4887if test -n "$CPP" && test -d "$CPP"; then
4888  CPP=
4889fi
4890if test -z "$CPP"; then
4891  if test ${ac_cv_prog_CPP+y}
4892then :
4893  printf %s "(cached) " >&6
4894else $as_nop
4895      # Double quotes because $CC needs to be expanded
4896    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4897    do
4898      ac_preproc_ok=false
4899for ac_c_preproc_warn_flag in '' yes
4900do
4901  # Use a header file that comes with gcc, so configuring glibc
4902  # with a fresh cross-compiler works.
4903  # On the NeXT, cc -E runs the code through the compiler's parser,
4904  # not just through cpp. "Syntax error" is here to catch this case.
4905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h.  */
4907#include <limits.h>
4908		     Syntax error
4909_ACEOF
4910if ac_fn_c_try_cpp "$LINENO"
4911then :
4912
4913else $as_nop
4914  # Broken: fails on valid input.
4915continue
4916fi
4917rm -f conftest.err conftest.i conftest.$ac_ext
4918
4919  # OK, works on sane cases.  Now check whether nonexistent headers
4920  # can be detected and how.
4921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922/* end confdefs.h.  */
4923#include <ac_nonexistent.h>
4924_ACEOF
4925if ac_fn_c_try_cpp "$LINENO"
4926then :
4927  # Broken: success on invalid input.
4928continue
4929else $as_nop
4930  # Passes both tests.
4931ac_preproc_ok=:
4932break
4933fi
4934rm -f conftest.err conftest.i conftest.$ac_ext
4935
4936done
4937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938rm -f conftest.i conftest.err conftest.$ac_ext
4939if $ac_preproc_ok
4940then :
4941  break
4942fi
4943
4944    done
4945    ac_cv_prog_CPP=$CPP
4946
4947fi
4948  CPP=$ac_cv_prog_CPP
4949else
4950  ac_cv_prog_CPP=$CPP
4951fi
4952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4953printf "%s\n" "$CPP" >&6; }
4954ac_preproc_ok=false
4955for ac_c_preproc_warn_flag in '' yes
4956do
4957  # Use a header file that comes with gcc, so configuring glibc
4958  # with a fresh cross-compiler works.
4959  # On the NeXT, cc -E runs the code through the compiler's parser,
4960  # not just through cpp. "Syntax error" is here to catch this case.
4961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962/* end confdefs.h.  */
4963#include <limits.h>
4964		     Syntax error
4965_ACEOF
4966if ac_fn_c_try_cpp "$LINENO"
4967then :
4968
4969else $as_nop
4970  # Broken: fails on valid input.
4971continue
4972fi
4973rm -f conftest.err conftest.i conftest.$ac_ext
4974
4975  # OK, works on sane cases.  Now check whether nonexistent headers
4976  # can be detected and how.
4977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h.  */
4979#include <ac_nonexistent.h>
4980_ACEOF
4981if ac_fn_c_try_cpp "$LINENO"
4982then :
4983  # Broken: success on invalid input.
4984continue
4985else $as_nop
4986  # Passes both tests.
4987ac_preproc_ok=:
4988break
4989fi
4990rm -f conftest.err conftest.i conftest.$ac_ext
4991
4992done
4993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4994rm -f conftest.i conftest.err conftest.$ac_ext
4995if $ac_preproc_ok
4996then :
4997
4998else $as_nop
4999  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5000printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5001as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5002See \`config.log' for more details" "$LINENO" 5; }
5003fi
5004
5005ac_ext=c
5006ac_cpp='$CPP $CPPFLAGS'
5007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5020	if test -n "$ac_tool_prefix"; then
5021  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5022set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024printf %s "checking for $ac_word... " >&6; }
5025if test ${ac_cv_path_PKG_CONFIG+y}
5026then :
5027  printf %s "(cached) " >&6
5028else $as_nop
5029  case $PKG_CONFIG in
5030  [\\/]* | ?:[\\/]*)
5031  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5032  ;;
5033  *)
5034  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037  IFS=$as_save_IFS
5038  case $as_dir in #(((
5039    '') as_dir=./ ;;
5040    */) ;;
5041    *) as_dir=$as_dir/ ;;
5042  esac
5043    for ac_exec_ext in '' $ac_executable_extensions; do
5044  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5045    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5046    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5047    break 2
5048  fi
5049done
5050  done
5051IFS=$as_save_IFS
5052
5053  ;;
5054esac
5055fi
5056PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5057if test -n "$PKG_CONFIG"; then
5058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5059printf "%s\n" "$PKG_CONFIG" >&6; }
5060else
5061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062printf "%s\n" "no" >&6; }
5063fi
5064
5065
5066fi
5067if test -z "$ac_cv_path_PKG_CONFIG"; then
5068  ac_pt_PKG_CONFIG=$PKG_CONFIG
5069  # Extract the first word of "pkg-config", so it can be a program name with args.
5070set dummy pkg-config; ac_word=$2
5071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072printf %s "checking for $ac_word... " >&6; }
5073if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5074then :
5075  printf %s "(cached) " >&6
5076else $as_nop
5077  case $ac_pt_PKG_CONFIG in
5078  [\\/]* | ?:[\\/]*)
5079  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5080  ;;
5081  *)
5082  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085  IFS=$as_save_IFS
5086  case $as_dir in #(((
5087    '') as_dir=./ ;;
5088    */) ;;
5089    *) as_dir=$as_dir/ ;;
5090  esac
5091    for ac_exec_ext in '' $ac_executable_extensions; do
5092  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5093    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5094    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5095    break 2
5096  fi
5097done
5098  done
5099IFS=$as_save_IFS
5100
5101  ;;
5102esac
5103fi
5104ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5105if test -n "$ac_pt_PKG_CONFIG"; then
5106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5107printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5108else
5109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110printf "%s\n" "no" >&6; }
5111fi
5112
5113  if test "x$ac_pt_PKG_CONFIG" = x; then
5114    PKG_CONFIG=""
5115  else
5116    case $cross_compiling:$ac_tool_warned in
5117yes:)
5118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5119printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5120ac_tool_warned=yes ;;
5121esac
5122    PKG_CONFIG=$ac_pt_PKG_CONFIG
5123  fi
5124else
5125  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5126fi
5127
5128fi
5129if test -n "$PKG_CONFIG"; then
5130	_pkg_min_version=0.9.0
5131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5132printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5133	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5135printf "%s\n" "yes" >&6; }
5136	else
5137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138printf "%s\n" "no" >&6; }
5139		PKG_CONFIG=""
5140	fi
5141fi
5142test "$program_prefix" != NONE &&
5143  program_transform_name="s&^&$program_prefix&;$program_transform_name"
5144# Use a double $ so make ignores it.
5145test "$program_suffix" != NONE &&
5146  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5147# Double any \ or $.
5148# By default was `s,x,x', remove it if useless.
5149ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5150program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
5151
5152
5153
5154
5155  # Make sure we can run config.sub.
5156$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5157  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5158
5159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5160printf %s "checking build system type... " >&6; }
5161if test ${ac_cv_build+y}
5162then :
5163  printf %s "(cached) " >&6
5164else $as_nop
5165  ac_build_alias=$build_alias
5166test "x$ac_build_alias" = x &&
5167  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5168test "x$ac_build_alias" = x &&
5169  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5170ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5171  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5172
5173fi
5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5175printf "%s\n" "$ac_cv_build" >&6; }
5176case $ac_cv_build in
5177*-*-*) ;;
5178*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5179esac
5180build=$ac_cv_build
5181ac_save_IFS=$IFS; IFS='-'
5182set x $ac_cv_build
5183shift
5184build_cpu=$1
5185build_vendor=$2
5186shift; shift
5187# Remember, the first character of IFS is used to create $*,
5188# except with old shells:
5189build_os=$*
5190IFS=$ac_save_IFS
5191case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5192
5193
5194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5195printf %s "checking host system type... " >&6; }
5196if test ${ac_cv_host+y}
5197then :
5198  printf %s "(cached) " >&6
5199else $as_nop
5200  if test "x$host_alias" = x; then
5201  ac_cv_host=$ac_cv_build
5202else
5203  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5204    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5205fi
5206
5207fi
5208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5209printf "%s\n" "$ac_cv_host" >&6; }
5210case $ac_cv_host in
5211*-*-*) ;;
5212*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213esac
5214host=$ac_cv_host
5215ac_save_IFS=$IFS; IFS='-'
5216set x $ac_cv_host
5217shift
5218host_cpu=$1
5219host_vendor=$2
5220shift; shift
5221# Remember, the first character of IFS is used to create $*,
5222# except with old shells:
5223host_os=$*
5224IFS=$ac_save_IFS
5225case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5226
5227
5228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5229printf %s "checking for a sed that does not truncate output... " >&6; }
5230if test ${ac_cv_path_SED+y}
5231then :
5232  printf %s "(cached) " >&6
5233else $as_nop
5234            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5235     for ac_i in 1 2 3 4 5 6 7; do
5236       ac_script="$ac_script$as_nl$ac_script"
5237     done
5238     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5239     { ac_script=; unset ac_script;}
5240     if test -z "$SED"; then
5241  ac_path_SED_found=false
5242  # Loop through the user's path and test for each of PROGNAME-LIST
5243  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246  IFS=$as_save_IFS
5247  case $as_dir in #(((
5248    '') as_dir=./ ;;
5249    */) ;;
5250    *) as_dir=$as_dir/ ;;
5251  esac
5252    for ac_prog in sed gsed
5253   do
5254    for ac_exec_ext in '' $ac_executable_extensions; do
5255      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5256      as_fn_executable_p "$ac_path_SED" || continue
5257# Check for GNU ac_path_SED and select it if it is found.
5258  # Check for GNU $ac_path_SED
5259case `"$ac_path_SED" --version 2>&1` in
5260*GNU*)
5261  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5262*)
5263  ac_count=0
5264  printf %s 0123456789 >"conftest.in"
5265  while :
5266  do
5267    cat "conftest.in" "conftest.in" >"conftest.tmp"
5268    mv "conftest.tmp" "conftest.in"
5269    cp "conftest.in" "conftest.nl"
5270    printf "%s\n" '' >> "conftest.nl"
5271    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273    as_fn_arith $ac_count + 1 && ac_count=$as_val
5274    if test $ac_count -gt ${ac_path_SED_max-0}; then
5275      # Best one so far, save it but keep looking for a better one
5276      ac_cv_path_SED="$ac_path_SED"
5277      ac_path_SED_max=$ac_count
5278    fi
5279    # 10*(2^10) chars as input seems more than enough
5280    test $ac_count -gt 10 && break
5281  done
5282  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283esac
5284
5285      $ac_path_SED_found && break 3
5286    done
5287  done
5288  done
5289IFS=$as_save_IFS
5290  if test -z "$ac_cv_path_SED"; then
5291    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5292  fi
5293else
5294  ac_cv_path_SED=$SED
5295fi
5296
5297fi
5298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5299printf "%s\n" "$ac_cv_path_SED" >&6; }
5300 SED="$ac_cv_path_SED"
5301  rm -f conftest.sed
5302
5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5304printf %s "checking for grep that handles long lines and -e... " >&6; }
5305if test ${ac_cv_path_GREP+y}
5306then :
5307  printf %s "(cached) " >&6
5308else $as_nop
5309  if test -z "$GREP"; then
5310  ac_path_GREP_found=false
5311  # Loop through the user's path and test for each of PROGNAME-LIST
5312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5314do
5315  IFS=$as_save_IFS
5316  case $as_dir in #(((
5317    '') as_dir=./ ;;
5318    */) ;;
5319    *) as_dir=$as_dir/ ;;
5320  esac
5321    for ac_prog in grep ggrep
5322   do
5323    for ac_exec_ext in '' $ac_executable_extensions; do
5324      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5325      as_fn_executable_p "$ac_path_GREP" || continue
5326# Check for GNU ac_path_GREP and select it if it is found.
5327  # Check for GNU $ac_path_GREP
5328case `"$ac_path_GREP" --version 2>&1` in
5329*GNU*)
5330  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5331*)
5332  ac_count=0
5333  printf %s 0123456789 >"conftest.in"
5334  while :
5335  do
5336    cat "conftest.in" "conftest.in" >"conftest.tmp"
5337    mv "conftest.tmp" "conftest.in"
5338    cp "conftest.in" "conftest.nl"
5339    printf "%s\n" 'GREP' >> "conftest.nl"
5340    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342    as_fn_arith $ac_count + 1 && ac_count=$as_val
5343    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5344      # Best one so far, save it but keep looking for a better one
5345      ac_cv_path_GREP="$ac_path_GREP"
5346      ac_path_GREP_max=$ac_count
5347    fi
5348    # 10*(2^10) chars as input seems more than enough
5349    test $ac_count -gt 10 && break
5350  done
5351  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5352esac
5353
5354      $ac_path_GREP_found && break 3
5355    done
5356  done
5357  done
5358IFS=$as_save_IFS
5359  if test -z "$ac_cv_path_GREP"; then
5360    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5361  fi
5362else
5363  ac_cv_path_GREP=$GREP
5364fi
5365
5366fi
5367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5368printf "%s\n" "$ac_cv_path_GREP" >&6; }
5369 GREP="$ac_cv_path_GREP"
5370
5371
5372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5373printf %s "checking for egrep... " >&6; }
5374if test ${ac_cv_path_EGREP+y}
5375then :
5376  printf %s "(cached) " >&6
5377else $as_nop
5378  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5379   then ac_cv_path_EGREP="$GREP -E"
5380   else
5381     if test -z "$EGREP"; then
5382  ac_path_EGREP_found=false
5383  # Loop through the user's path and test for each of PROGNAME-LIST
5384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5386do
5387  IFS=$as_save_IFS
5388  case $as_dir in #(((
5389    '') as_dir=./ ;;
5390    */) ;;
5391    *) as_dir=$as_dir/ ;;
5392  esac
5393    for ac_prog in egrep
5394   do
5395    for ac_exec_ext in '' $ac_executable_extensions; do
5396      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5397      as_fn_executable_p "$ac_path_EGREP" || continue
5398# Check for GNU ac_path_EGREP and select it if it is found.
5399  # Check for GNU $ac_path_EGREP
5400case `"$ac_path_EGREP" --version 2>&1` in
5401*GNU*)
5402  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5403*)
5404  ac_count=0
5405  printf %s 0123456789 >"conftest.in"
5406  while :
5407  do
5408    cat "conftest.in" "conftest.in" >"conftest.tmp"
5409    mv "conftest.tmp" "conftest.in"
5410    cp "conftest.in" "conftest.nl"
5411    printf "%s\n" 'EGREP' >> "conftest.nl"
5412    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5413    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5414    as_fn_arith $ac_count + 1 && ac_count=$as_val
5415    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5416      # Best one so far, save it but keep looking for a better one
5417      ac_cv_path_EGREP="$ac_path_EGREP"
5418      ac_path_EGREP_max=$ac_count
5419    fi
5420    # 10*(2^10) chars as input seems more than enough
5421    test $ac_count -gt 10 && break
5422  done
5423  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5424esac
5425
5426      $ac_path_EGREP_found && break 3
5427    done
5428  done
5429  done
5430IFS=$as_save_IFS
5431  if test -z "$ac_cv_path_EGREP"; then
5432    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5433  fi
5434else
5435  ac_cv_path_EGREP=$EGREP
5436fi
5437
5438   fi
5439fi
5440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5441printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5442 EGREP="$ac_cv_path_EGREP"
5443
5444
5445 EXTRA_FILES=""
5446
5447
5448printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5449
5450
5451printf "%s\n" "#define __STDC_WANT_LIB_EXT1__ 1" >>confdefs.h
5452
5453
5454if test $ac_cv_c_compiler_gnu = yes ; then
5455     HAVE_GCC=yes
5456     else HAVE_GCC=
5457fi
5458
5459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU linker" >&5
5460printf %s "checking for GNU linker... " >&6; }
5461if test ${krb5_cv_prog_gnu_ld+y}
5462then :
5463  printf %s "(cached) " >&6
5464else $as_nop
5465  krb5_cv_prog_gnu_ld=no
5466if test "$GCC" = yes; then
5467  if { ac_try='$CC -Wl,-v 2>&1 			| grep "GNU ld" > /dev/null'
5468  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5469  (eval $ac_try) 2>&5
5470  ac_status=$?
5471  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472  test $ac_status = 0; }; }; then
5473    krb5_cv_prog_gnu_ld=yes
5474  fi
5475fi
5476fi
5477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_prog_gnu_ld" >&5
5478printf "%s\n" "$krb5_cv_prog_gnu_ld" >&6; }
5479
5480# Check whether --with-size-optimizations was given.
5481if test ${with_size_optimizations+y}
5482then :
5483  withval=$with_size_optimizations;
5484else $as_nop
5485  withval=no
5486fi
5487
5488if test "$withval" = yes; then
5489
5490printf "%s\n" "#define CONFIG_SMALL 1" >>confdefs.h
5491
5492fi
5493# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
5494extra_gcc_warn_opts="-Wall -Wcast-align -Wshadow"
5495# -Wmissing-prototypes
5496if test "$GCC" = yes ; then
5497  # Putting this here means we get -Os after -O2, which works.
5498  if test "$with_size_optimizations" = yes && test "x$krb5_ac_cflags_set" != xset; then
5499    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding -Os optimization option" >&5
5500printf "%s\n" "$as_me: adding -Os optimization option" >&6;}
5501    case "$CFLAGS" in
5502      "-g -O2") CFLAGS="-g -Os" ;;
5503      "-O2")    CFLAGS="-Os" ;;
5504      *)        CFLAGS="$CFLAGS -Os" ;;
5505    esac
5506  fi
5507  if test "x$krb5_ac_warn_cflags_set" = xset ; then
5508    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not adding extra gcc warning flags because WARN_CFLAGS was set" >&5
5509printf "%s\n" "$as_me: not adding extra gcc warning flags because WARN_CFLAGS was set" >&6;}
5510  else
5511    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding extra warning flags for gcc" >&5
5512printf "%s\n" "$as_me: adding extra warning flags for gcc" >&6;}
5513    WARN_CFLAGS="$WARN_CFLAGS $extra_gcc_warn_opts -Wmissing-prototypes"
5514    if test "`uname -s`" = Darwin ; then
5515      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Darwin" >&5
5516printf "%s\n" "$as_me: skipping pedantic warnings on Darwin" >&6;}
5517    elif test "`uname -s`" = Linux ; then
5518      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Linux" >&5
5519printf "%s\n" "$as_me: skipping pedantic warnings on Linux" >&6;}
5520    else
5521      WARN_CFLAGS="$WARN_CFLAGS -pedantic"
5522    fi
5523    if test "$ac_cv_cxx_compiler_gnu" = yes; then
5524      if test "x$krb5_ac_warn_cxxflags_set" = xset ; then
5525        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&5
5526printf "%s\n" "$as_me: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&6;}
5527      else
5528        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding extra warning flags for g++" >&5
5529printf "%s\n" "$as_me: adding extra warning flags for g++" >&6;}
5530        WARN_CXXFLAGS="$WARN_CXXFLAGS $extra_gcc_warn_opts"
5531      fi
5532    fi
5533    # Currently, G++ does not support -Wno-format-zero-length.
5534      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`
5535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Wno-format-zero-length" >&5
5536printf %s "checking if C compiler supports -Wno-format-zero-length... " >&6; }
5537if eval test \${$cachevar+y}
5538then :
5539  printf %s "(cached) " >&6
5540else $as_nop
5541  # first try without, then with
5542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h.  */
5544
5545int
5546main (void)
5547{
55481;
5549  ;
5550  return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_compile "$LINENO"
5554then :
5555  old_cflags="$CFLAGS"
5556     CFLAGS="$CFLAGS $cflags_warning_test_flags -Wno-format-zero-length"
5557     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h.  */
5559
5560int
5561main (void)
5562{
55631;
5564  ;
5565  return 0;
5566}
5567_ACEOF
5568if ac_fn_c_try_compile "$LINENO"
5569then :
5570  eval $cachevar=yes
5571else $as_nop
5572  eval $cachevar=no
5573fi
5574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5575     CFLAGS="$old_cflags"
5576else $as_nop
5577  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5578fi
5579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5580fi
5581eval ac_res=\$$cachevar
5582	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5583printf "%s\n" "$ac_res" >&6; }
5584  if eval test '"${'$cachevar'}"' = yes; then
5585    WARN_CFLAGS="$WARN_CFLAGS -Wno-format-zero-length"
5586  fi
5587  eval flag_supported='${'$cachevar'}'
5588
5589    # Other flags here may not be supported on some versions of
5590    # gcc that people want to use.
5591    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 error=strict-prototypes; do
5592        cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
5593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5
5594printf %s "checking if C compiler supports -W$flag... " >&6; }
5595if eval test \${$cachevar+y}
5596then :
5597  printf %s "(cached) " >&6
5598else $as_nop
5599  # first try without, then with
5600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h.  */
5602
5603int
5604main (void)
5605{
56061;
5607  ;
5608  return 0;
5609}
5610_ACEOF
5611if ac_fn_c_try_compile "$LINENO"
5612then :
5613  old_cflags="$CFLAGS"
5614     CFLAGS="$CFLAGS $cflags_warning_test_flags -W$flag"
5615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h.  */
5617
5618int
5619main (void)
5620{
56211;
5622  ;
5623  return 0;
5624}
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"
5627then :
5628  eval $cachevar=yes
5629else $as_nop
5630  eval $cachevar=no
5631fi
5632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5633     CFLAGS="$old_cflags"
5634else $as_nop
5635  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5638fi
5639eval ac_res=\$$cachevar
5640	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5641printf "%s\n" "$ac_res" >&6; }
5642  if eval test '"${'$cachevar'}"' = yes; then
5643    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
5644  fi
5645  eval flag_supported='${'$cachevar'}'
5646
5647    done
5648    #  old-style-definition? generates many, many warnings
5649    #
5650    # Warnings that we'd like to turn into errors on versions of gcc
5651    # that support promoting only specific warnings to errors, but
5652    # we'll take as warnings on older compilers.  (If such a warning
5653    # is added after the -Werror=foo feature, you can just put
5654    # error=foo in the above list, and skip the test for the
5655    # warning-only form.)  At least in some versions, -Werror= doesn't
5656    # seem to make the conditions actual errors, but still issues
5657    # warnings; I guess we'll take what we can get.
5658    #
5659    # We're currently targeting C89+, not C99, so disallow some
5660    # constructs.
5661    for flag in declaration-after-statement ; do
5662        cachevar=`echo "krb5_cv_cc_flag_-Werror=$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
5663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=$flag" >&5
5664printf %s "checking if C compiler supports -Werror=$flag... " >&6; }
5665if eval test \${$cachevar+y}
5666then :
5667  printf %s "(cached) " >&6
5668else $as_nop
5669  # first try without, then with
5670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h.  */
5672
5673int
5674main (void)
5675{
56761;
5677  ;
5678  return 0;
5679}
5680_ACEOF
5681if ac_fn_c_try_compile "$LINENO"
5682then :
5683  old_cflags="$CFLAGS"
5684     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=$flag"
5685     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h.  */
5687
5688int
5689main (void)
5690{
56911;
5692  ;
5693  return 0;
5694}
5695_ACEOF
5696if ac_fn_c_try_compile "$LINENO"
5697then :
5698  eval $cachevar=yes
5699else $as_nop
5700  eval $cachevar=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5703     CFLAGS="$old_cflags"
5704else $as_nop
5705  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5706fi
5707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5708fi
5709eval ac_res=\$$cachevar
5710	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5711printf "%s\n" "$ac_res" >&6; }
5712  if eval test '"${'$cachevar'}"' = yes; then
5713    WARN_CFLAGS="$WARN_CFLAGS -Werror=$flag"
5714  fi
5715  eval flag_supported='${'$cachevar'}'
5716
5717      if test "$flag_supported" = no; then
5718          cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
5719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5
5720printf %s "checking if C compiler supports -W$flag... " >&6; }
5721if eval test \${$cachevar+y}
5722then :
5723  printf %s "(cached) " >&6
5724else $as_nop
5725  # first try without, then with
5726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727/* end confdefs.h.  */
5728
5729int
5730main (void)
5731{
57321;
5733  ;
5734  return 0;
5735}
5736_ACEOF
5737if ac_fn_c_try_compile "$LINENO"
5738then :
5739  old_cflags="$CFLAGS"
5740     CFLAGS="$CFLAGS $cflags_warning_test_flags -W$flag"
5741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h.  */
5743
5744int
5745main (void)
5746{
57471;
5748  ;
5749  return 0;
5750}
5751_ACEOF
5752if ac_fn_c_try_compile "$LINENO"
5753then :
5754  eval $cachevar=yes
5755else $as_nop
5756  eval $cachevar=no
5757fi
5758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5759     CFLAGS="$old_cflags"
5760else $as_nop
5761  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5762fi
5763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5764fi
5765eval ac_res=\$$cachevar
5766	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5767printf "%s\n" "$ac_res" >&6; }
5768  if eval test '"${'$cachevar'}"' = yes; then
5769    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
5770  fi
5771  eval flag_supported='${'$cachevar'}'
5772
5773      fi
5774    done
5775    # We require function declarations now.
5776    #
5777    # In some compiler versions -- e.g., "gcc version 4.2.1 (Apple
5778    # Inc. build 5664)" -- the -Werror- option works, but the -Werror=
5779    # version doesn't cause implicitly declared functions to be
5780    # flagged as errors.  If neither works, -Wall implies
5781    # -Wimplicit-function-declaration so don't bother.
5782      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`
5783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror-implicit-function-declaration" >&5
5784printf %s "checking if C compiler supports -Werror-implicit-function-declaration... " >&6; }
5785if eval test \${$cachevar+y}
5786then :
5787  printf %s "(cached) " >&6
5788else $as_nop
5789  # first try without, then with
5790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791/* end confdefs.h.  */
5792
5793int
5794main (void)
5795{
57961;
5797  ;
5798  return 0;
5799}
5800_ACEOF
5801if ac_fn_c_try_compile "$LINENO"
5802then :
5803  old_cflags="$CFLAGS"
5804     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror-implicit-function-declaration"
5805     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h.  */
5807
5808int
5809main (void)
5810{
58111;
5812  ;
5813  return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_compile "$LINENO"
5817then :
5818  eval $cachevar=yes
5819else $as_nop
5820  eval $cachevar=no
5821fi
5822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5823     CFLAGS="$old_cflags"
5824else $as_nop
5825  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5826fi
5827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5828fi
5829eval ac_res=\$$cachevar
5830	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5831printf "%s\n" "$ac_res" >&6; }
5832  if eval test '"${'$cachevar'}"' = yes; then
5833    WARN_CFLAGS="$WARN_CFLAGS -Werror-implicit-function-declaration"
5834  fi
5835  eval flag_supported='${'$cachevar'}'
5836
5837    if test "implicit-function-declaration_supported" = no; then
5838        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`
5839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=implicit-function-declaration" >&5
5840printf %s "checking if C compiler supports -Werror=implicit-function-declaration... " >&6; }
5841if eval test \${$cachevar+y}
5842then :
5843  printf %s "(cached) " >&6
5844else $as_nop
5845  # first try without, then with
5846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h.  */
5848
5849int
5850main (void)
5851{
58521;
5853  ;
5854  return 0;
5855}
5856_ACEOF
5857if ac_fn_c_try_compile "$LINENO"
5858then :
5859  old_cflags="$CFLAGS"
5860     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=implicit-function-declaration"
5861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862/* end confdefs.h.  */
5863
5864int
5865main (void)
5866{
58671;
5868  ;
5869  return 0;
5870}
5871_ACEOF
5872if ac_fn_c_try_compile "$LINENO"
5873then :
5874  eval $cachevar=yes
5875else $as_nop
5876  eval $cachevar=no
5877fi
5878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5879     CFLAGS="$old_cflags"
5880else $as_nop
5881  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5882fi
5883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5884fi
5885eval ac_res=\$$cachevar
5886	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5887printf "%s\n" "$ac_res" >&6; }
5888  if eval test '"${'$cachevar'}"' = yes; then
5889    WARN_CFLAGS="$WARN_CFLAGS -Werror=implicit-function-declaration"
5890  fi
5891  eval flag_supported='${'$cachevar'}'
5892
5893    fi
5894    #
5895  fi
5896  if test "`uname -s`" = Darwin ; then
5897    # Someday this should be a feature test.
5898    # One current (Jaguar = OS 10.2) problem:
5899    # Archive library with foo.o undef sym X and bar.o common sym X,
5900    # if foo.o is pulled in at link time, bar.o may not be, causing
5901    # the linker to complain.
5902    # Dynamic library problems too?
5903    case "$CC $CFLAGS" in
5904    *-fcommon*) ;; # why someone would do this, I don't know
5905    *-fno-common*) ;; # okay, they're already doing the right thing
5906    *)
5907      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disabling the use of common storage on Darwin" >&5
5908printf "%s\n" "$as_me: disabling the use of common storage on Darwin" >&6;}
5909      CFLAGS="$CFLAGS -fno-common"
5910      ;;
5911    esac
5912  fi
5913else
5914  if test "`uname -s`" = AIX ; then
5915    # Using AIX but not GCC, assume native compiler.
5916    # The native compiler appears not to give a nonzero exit
5917    # status for certain classes of errors, like missing arguments
5918    # in function calls.  Let's try to fix that with -qhalt=e.
5919    case "$CC $CFLAGS" in
5920      *-qhalt=*) ;;
5921      *)
5922	CFLAGS="$CFLAGS -qhalt=e"
5923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding -qhalt=e for better error reporting" >&5
5924printf "%s\n" "$as_me: adding -qhalt=e for better error reporting" >&6;}
5925	;;
5926    esac
5927    # Also, the optimizer isn't turned on by default, which means
5928    # the static inline functions get left in random object files,
5929    # leading to references to pthread_mutex_lock from anything that
5930    # includes k5-int.h whether it uses threads or not.
5931    case "$CC $CFLAGS" in
5932      *-O*) ;;
5933      *)
5934	CFLAGS="$CFLAGS -O"
5935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding -O for inline thread-support function elimination" >&5
5936printf "%s\n" "$as_me: adding -O for inline thread-support function elimination" >&6;}
5937	;;
5938    esac
5939  fi
5940  if test "`uname -s`" = SunOS ; then
5941    # Using Solaris but not GCC, assume Sunsoft compiler.
5942    # We have some error-out-on-warning options available.
5943    # Sunsoft 12 compiler defaults to -xc99=all, it appears, so "inline"
5944    # works, but it also means that declaration-in-code warnings won't
5945    # be issued.
5946    # -v -fd -errwarn=E_DECLARATION_IN_CODE ...
5947    if test "x$krb5_ac_warn_cflags_set" = xset ; then
5948      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not adding extra warning flags because WARN_CFLAGS was set" >&5
5949printf "%s\n" "$as_me: not adding extra warning flags because WARN_CFLAGS was set" >&6;}
5950    else
5951      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"
5952    fi
5953    if test "x$krb5_ac_warn_cxxflags_set" = xset ; then
5954      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not adding extra warning flags because WARN_CXXFLAGS was set" >&5
5955printf "%s\n" "$as_me: not adding extra warning flags because WARN_CXXFLAGS was set" >&6;}
5956    else
5957      WARN_CXXFLAGS="-errtags=yes +w +w2 -xport64"
5958    fi
5959  fi
5960fi
5961
5962
5963
5964if test -z "$LD" ; then LD=$CC; fi
5965
5966
5967
5968# Check whether --with-system-et was given.
5969if test ${with_system_et+y}
5970then :
5971  withval=$with_system_et;
5972fi
5973
5974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which version of com_err to use" >&5
5975printf %s "checking which version of com_err to use... " >&6; }
5976if test "x$with_system_et" = xyes ; then
5977  # This will be changed to "intlsys" if textdomain support is present.
5978  COM_ERR_VERSION=sys
5979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: system" >&5
5980printf "%s\n" "system" >&6; }
5981else
5982  COM_ERR_VERSION=k5
5983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: krb5" >&5
5984printf "%s\n" "krb5" >&6; }
5985fi
5986OLDLIBS="$LIBS"
5987COM_ERR_LIB=-lcom_err
5988if test $COM_ERR_VERSION = sys; then
5989
5990pkg_failed=no
5991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5
5992printf %s "checking for com_err... " >&6; }
5993
5994if test -n "$COM_ERR_CFLAGS"; then
5995    pkg_cv_COM_ERR_CFLAGS="$COM_ERR_CFLAGS"
5996 elif test -n "$PKG_CONFIG"; then
5997    if test -n "$PKG_CONFIG" && \
5998    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5
5999  ($PKG_CONFIG --exists --print-errors "com_err") 2>&5
6000  ac_status=$?
6001  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002  test $ac_status = 0; }; then
6003  pkg_cv_COM_ERR_CFLAGS=`$PKG_CONFIG --cflags "com_err" 2>/dev/null`
6004		      test "x$?" != "x0" && pkg_failed=yes
6005else
6006  pkg_failed=yes
6007fi
6008 else
6009    pkg_failed=untried
6010fi
6011if test -n "$COM_ERR_LIBS"; then
6012    pkg_cv_COM_ERR_LIBS="$COM_ERR_LIBS"
6013 elif test -n "$PKG_CONFIG"; then
6014    if test -n "$PKG_CONFIG" && \
6015    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5
6016  ($PKG_CONFIG --exists --print-errors "com_err") 2>&5
6017  ac_status=$?
6018  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6019  test $ac_status = 0; }; then
6020  pkg_cv_COM_ERR_LIBS=`$PKG_CONFIG --libs "com_err" 2>/dev/null`
6021		      test "x$?" != "x0" && pkg_failed=yes
6022else
6023  pkg_failed=yes
6024fi
6025 else
6026    pkg_failed=untried
6027fi
6028
6029
6030
6031if test $pkg_failed = yes; then
6032        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033printf "%s\n" "no" >&6; }
6034
6035if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6036        _pkg_short_errors_supported=yes
6037else
6038        _pkg_short_errors_supported=no
6039fi
6040        if test $_pkg_short_errors_supported = yes; then
6041	        COM_ERR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "com_err" 2>&1`
6042        else
6043	        COM_ERR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "com_err" 2>&1`
6044        fi
6045	# Put the nasty error message in config.log where it belongs
6046	echo "$COM_ERR_PKG_ERRORS" >&5
6047
6048	have_com_err=no
6049elif test $pkg_failed = untried; then
6050        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051printf "%s\n" "no" >&6; }
6052	have_com_err=no
6053else
6054	COM_ERR_CFLAGS=$pkg_cv_COM_ERR_CFLAGS
6055	COM_ERR_LIBS=$pkg_cv_COM_ERR_LIBS
6056        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6057printf "%s\n" "yes" >&6; }
6058	have_com_err=yes
6059fi
6060  if test "x$have_com_err = xyes"; then
6061    COM_ERR_LIB="$COM_ERR_LIBS"
6062  fi
6063  LIBS="$LIBS $COM_ERR_LIB"
6064  # check for various functions we need
6065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for add_error_table in -lcom_err" >&5
6066printf %s "checking for add_error_table in -lcom_err... " >&6; }
6067if test ${ac_cv_lib_com_err_add_error_table+y}
6068then :
6069  printf %s "(cached) " >&6
6070else $as_nop
6071  ac_check_lib_save_LIBS=$LIBS
6072LIBS="-lcom_err  $LIBS"
6073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h.  */
6075
6076/* Override any GCC internal prototype to avoid an error.
6077   Use char because int might match the return type of a GCC
6078   builtin and then its argument prototype would still apply.  */
6079char add_error_table ();
6080int
6081main (void)
6082{
6083return add_error_table ();
6084  ;
6085  return 0;
6086}
6087_ACEOF
6088if ac_fn_c_try_link "$LINENO"
6089then :
6090  ac_cv_lib_com_err_add_error_table=yes
6091else $as_nop
6092  ac_cv_lib_com_err_add_error_table=no
6093fi
6094rm -f core conftest.err conftest.$ac_objext conftest.beam \
6095    conftest$ac_exeext conftest.$ac_ext
6096LIBS=$ac_check_lib_save_LIBS
6097fi
6098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_add_error_table" >&5
6099printf "%s\n" "$ac_cv_lib_com_err_add_error_table" >&6; }
6100if test "x$ac_cv_lib_com_err_add_error_table" = xyes
6101then :
6102  :
6103else $as_nop
6104  as_fn_error $? "cannot find add_error_table in com_err library" "$LINENO" 5
6105fi
6106
6107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove_error_table in -lcom_err" >&5
6108printf %s "checking for remove_error_table in -lcom_err... " >&6; }
6109if test ${ac_cv_lib_com_err_remove_error_table+y}
6110then :
6111  printf %s "(cached) " >&6
6112else $as_nop
6113  ac_check_lib_save_LIBS=$LIBS
6114LIBS="-lcom_err  $LIBS"
6115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117
6118/* Override any GCC internal prototype to avoid an error.
6119   Use char because int might match the return type of a GCC
6120   builtin and then its argument prototype would still apply.  */
6121char remove_error_table ();
6122int
6123main (void)
6124{
6125return remove_error_table ();
6126  ;
6127  return 0;
6128}
6129_ACEOF
6130if ac_fn_c_try_link "$LINENO"
6131then :
6132  ac_cv_lib_com_err_remove_error_table=yes
6133else $as_nop
6134  ac_cv_lib_com_err_remove_error_table=no
6135fi
6136rm -f core conftest.err conftest.$ac_objext conftest.beam \
6137    conftest$ac_exeext conftest.$ac_ext
6138LIBS=$ac_check_lib_save_LIBS
6139fi
6140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_remove_error_table" >&5
6141printf "%s\n" "$ac_cv_lib_com_err_remove_error_table" >&6; }
6142if test "x$ac_cv_lib_com_err_remove_error_table" = xyes
6143then :
6144  :
6145else $as_nop
6146  as_fn_error $? "cannot find remove_error_table in com_err library" "$LINENO" 5
6147fi
6148
6149  # make sure compile_et provides "et_foo" name
6150  cat >> conf$$e.et <<EOF
6151error_table foo
6152error_code ERR_FOO, "foo"
6153end
6154EOF
6155  for ac_prog in compile_et
6156do
6157  # Extract the first word of "$ac_prog", so it can be a program name with args.
6158set dummy $ac_prog; ac_word=$2
6159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160printf %s "checking for $ac_word... " >&6; }
6161if test ${ac_cv_prog_compile_et+y}
6162then :
6163  printf %s "(cached) " >&6
6164else $as_nop
6165  if test -n "$compile_et"; then
6166  ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
6167else
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
6170do
6171  IFS=$as_save_IFS
6172  case $as_dir in #(((
6173    '') as_dir=./ ;;
6174    */) ;;
6175    *) as_dir=$as_dir/ ;;
6176  esac
6177    for ac_exec_ext in '' $ac_executable_extensions; do
6178  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6179    ac_cv_prog_compile_et="$ac_prog"
6180    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6181    break 2
6182  fi
6183done
6184  done
6185IFS=$as_save_IFS
6186
6187fi
6188fi
6189compile_et=$ac_cv_prog_compile_et
6190if test -n "$compile_et"; then
6191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compile_et" >&5
6192printf "%s\n" "$compile_et" >&6; }
6193else
6194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195printf "%s\n" "no" >&6; }
6196fi
6197
6198
6199  test -n "$compile_et" && break
6200done
6201test -n "$compile_et" || compile_et="false"
6202
6203  if test "$compile_et" = false; then
6204    as_fn_error $? "cannot find compile_et" "$LINENO" 5
6205  fi
6206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compile_et is useful" >&5
6207printf %s "checking whether compile_et is useful... " >&6; }
6208if test ${krb5_cv_compile_et_useful+y}
6209then :
6210  printf %s "(cached) " >&6
6211else $as_nop
6212
6213  if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else
6214    as_fn_error $? "execution failed" "$LINENO" 5
6215  fi
6216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217/* end confdefs.h.  */
6218#include "conf$$e.h"
6219
6220int
6221main (void)
6222{
6223&et_foo_error_table;
6224  ;
6225  return 0;
6226}
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"
6229then :
6230
6231else $as_nop
6232  as_fn_error $? "cannot use et_foo_error_table" "$LINENO" 5
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6235  # Anything else we need to test for?
6236  rm -f conf$$e.c conf$$e.h
6237  krb5_cv_compile_et_useful=yes
6238
6239fi
6240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_compile_et_useful" >&5
6241printf "%s\n" "$krb5_cv_compile_et_useful" >&6; }
6242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compile_et supports --textdomain" >&5
6243printf %s "checking whether compile_et supports --textdomain... " >&6; }
6244if test ${krb5_cv_compile_et_textdomain+y}
6245then :
6246  printf %s "(cached) " >&6
6247else $as_nop
6248
6249  krb5_cv_compile_et_textdomain=no
6250  if compile_et --textdomain=xyzw conf$$e.et >/dev/null 2>&1 ; then
6251    if grep -q xyzw conf$$e.c; then
6252      krb5_cv_compile_et_textdomain=yes
6253    fi
6254  fi
6255  rm -f conf$$e.c conf$$e.h
6256
6257fi
6258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_compile_et_textdomain" >&5
6259printf "%s\n" "$krb5_cv_compile_et_textdomain" >&6; }
6260  if test "$krb5_cv_compile_et_textdomain" = yes; then
6261    COM_ERR_VERSION=intlsys
6262  fi
6263  rm -f conf$$e.et
6264fi
6265
6266
6267LIBS="$OLDLIBS"
6268if test "$COM_ERR_VERSION" = k5 -o "$COM_ERR_VERSION" = intlsys; then
6269
6270printf "%s\n" "#define HAVE_COM_ERR_INTL 1" >>confdefs.h
6271
6272fi
6273
6274
6275# Check whether --with-system-ss was given.
6276if test ${with_system_ss+y}
6277then :
6278  withval=$with_system_ss;
6279fi
6280
6281
6282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which version of subsystem package to use" >&5
6283printf %s "checking which version of subsystem package to use... " >&6; }
6284if test "x$with_system_ss" = xyes ; then
6285  SS_VERSION=sys
6286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: system" >&5
6287printf "%s\n" "system" >&6; }
6288  # todo: check for various libraries we might need
6289  # in the meantime...
6290  test "x${SS_LIB+set}" = xset || SS_LIB=-lss
6291  old_LIBS="$LIBS"
6292  LIBS="$LIBS $SS_LIB"
6293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system ss package works" >&5
6294printf %s "checking whether system ss package works... " >&6; }
6295if test ${krb5_cv_system_ss_okay+y}
6296then :
6297  printf %s "(cached) " >&6
6298else $as_nop
6299  if test "$cross_compiling" = yes
6300then :
6301  krb5_cv_system_ss_okay=assumed
6302else $as_nop
6303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h.  */
6305#include <ss/ss.h>
6306        int main(int argc, char *argv[]) {
6307            if (argc == 42) {
6308                int i, err;
6309                i = ss_create_invocation("foo","foo","",0,&err);
6310                ss_listen(i);
6311            }
6312            return 0;
6313        }
6314_ACEOF
6315if ac_fn_c_try_run "$LINENO"
6316then :
6317  krb5_cv_system_ss_okay=yes
6318else $as_nop
6319  as_fn_error $? "cannot run test program" "$LINENO" 5
6320fi
6321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6322  conftest.$ac_objext conftest.beam conftest.$ac_ext
6323fi
6324
6325fi
6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_system_ss_okay" >&5
6327printf "%s\n" "$krb5_cv_system_ss_okay" >&6; }
6328  LIBS="$old_LIBS"
6329
6330
6331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ss_execute_command needs a prototype provided" >&5
6332printf %s "checking if ss_execute_command needs a prototype provided... " >&6; }
6333if test ${krb5_cv_func_ss_execute_command_noproto+y}
6334then :
6335  printf %s "(cached) " >&6
6336else $as_nop
6337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338/* end confdefs.h.  */
6339#include <ss/ss.h>
6340int
6341main (void)
6342{
6343#undef ss_execute_command
6344      struct k5foo {int foo; } xx;
6345      extern int ss_execute_command (struct k5foo*);
6346      ss_execute_command(&xx);
6347  ;
6348  return 0;
6349}
6350_ACEOF
6351if ac_fn_c_try_compile "$LINENO"
6352then :
6353  krb5_cv_func_ss_execute_command_noproto=yes
6354else $as_nop
6355  krb5_cv_func_ss_execute_command_noproto=no
6356fi
6357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6358fi
6359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_ss_execute_command_noproto" >&5
6360printf "%s\n" "$krb5_cv_func_ss_execute_command_noproto" >&6; }
6361if test $krb5_cv_func_ss_execute_command_noproto = yes; then
6362
6363printf "%s\n" "#define NEED_SS_EXECUTE_COMMAND_PROTO 1" >>confdefs.h
6364
6365fi
6366
6367
6368else
6369  SS_VERSION=k5
6370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: krb5" >&5
6371printf "%s\n" "krb5" >&6; }
6372fi
6373
6374
6375
6376
6377# Check whether --with-system-db was given.
6378if test ${with_system_db+y}
6379then :
6380  withval=$with_system_db;
6381fi
6382
6383
6384
6385if test "x$with_system_db" = xyes ; then
6386  DB_VERSION=sys
6387  # TODO: Do we have specific routines we should check for?
6388  # How about known, easily recognizable bugs?
6389  # We want to use bt_rseq in some cases, but no other version but
6390  # ours has it right now.
6391  #
6392  # Okay, check the variables.
6393  test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h
6394  test "x${DB_LIB+set}" = xset || DB_LIB=-ldb
6395  #
6396  if test "x${DB_HEADER}" = xdb.h ; then
6397    DB_HEADER_VERSION=sys
6398  else
6399    DB_HEADER_VERSION=redirect
6400  fi
6401  KDB5_DB_LIB="$DB_LIB"
6402else
6403  DB_VERSION=k5
6404
6405printf "%s\n" "#define HAVE_BT_RSEQ 1" >>confdefs.h
6406
6407  DB_HEADER=db.h
6408  DB_HEADER_VERSION=k5
6409  # libdb gets sucked into libkdb
6410  KDB5_DB_LIB=
6411  # needed for a couple of things that need libdb for its own sake
6412  DB_LIB=-ldb
6413fi
6414
6415
6416
6417
6418
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6420printf %s "checking for an ANSI C-conforming const... " >&6; }
6421if test ${ac_cv_c_const+y}
6422then :
6423  printf %s "(cached) " >&6
6424else $as_nop
6425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426/* end confdefs.h.  */
6427
6428int
6429main (void)
6430{
6431
6432#ifndef __cplusplus
6433  /* Ultrix mips cc rejects this sort of thing.  */
6434  typedef int charset[2];
6435  const charset cs = { 0, 0 };
6436  /* SunOS 4.1.1 cc rejects this.  */
6437  char const *const *pcpcc;
6438  char **ppc;
6439  /* NEC SVR4.0.2 mips cc rejects this.  */
6440  struct point {int x, y;};
6441  static struct point const zero = {0,0};
6442  /* IBM XL C 1.02.0.0 rejects this.
6443     It does not let you subtract one const X* pointer from another in
6444     an arm of an if-expression whose if-part is not a constant
6445     expression */
6446  const char *g = "string";
6447  pcpcc = &g + (g ? g-g : 0);
6448  /* HPUX 7.0 cc rejects these. */
6449  ++pcpcc;
6450  ppc = (char**) pcpcc;
6451  pcpcc = (char const *const *) ppc;
6452  { /* SCO 3.2v4 cc rejects this sort of thing.  */
6453    char tx;
6454    char *t = &tx;
6455    char const *s = 0 ? (char *) 0 : (char const *) 0;
6456
6457    *t++ = 0;
6458    if (s) return 0;
6459  }
6460  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6461    int x[] = {25, 17};
6462    const int *foo = &x[0];
6463    ++foo;
6464  }
6465  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6466    typedef const int *iptr;
6467    iptr p = 0;
6468    ++p;
6469  }
6470  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
6471       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6472    struct s { int j; const int *ap[3]; } bx;
6473    struct s *b = &bx; b->j = 5;
6474  }
6475  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6476    const int foo = 10;
6477    if (!foo) return 0;
6478  }
6479  return !cs[0] && !zero.x;
6480#endif
6481
6482  ;
6483  return 0;
6484}
6485_ACEOF
6486if ac_fn_c_try_compile "$LINENO"
6487then :
6488  ac_cv_c_const=yes
6489else $as_nop
6490  ac_cv_c_const=no
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6493fi
6494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6495printf "%s\n" "$ac_cv_c_const" >&6; }
6496if test $ac_cv_c_const = no; then
6497
6498printf "%s\n" "#define const /**/" >>confdefs.h
6499
6500fi
6501
6502
6503# Check whether --with-netlib was given.
6504if test ${with_netlib+y}
6505then :
6506  withval=$with_netlib;   if test "$withval" = yes -o "$withval" = no ; then
6507	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"netlib will link with C library resolver only\"" >&5
6508printf "%s\n" "\"netlib will link with C library resolver only\"" >&6; }
6509  else
6510	LIBS="$LIBS $withval"
6511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"netlib will use \'$withval\'\"" >&5
6512printf "%s\n" "\"netlib will use \'$withval\'\"" >&6; }
6513  fi
6514
6515else $as_nop
6516
6517   # Most operating systems have gethostbyname() in the default searched
6518   # libraries (i.e. libc):
6519   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6520if test "x$ac_cv_func_gethostbyname" = xyes
6521then :
6522
6523else $as_nop
6524
6525     # Some OSes (eg. Solaris) place it in libnsl:
6526     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6527printf %s "checking for gethostbyname in -lnsl... " >&6; }
6528if test ${ac_cv_lib_nsl_gethostbyname+y}
6529then :
6530  printf %s "(cached) " >&6
6531else $as_nop
6532  ac_check_lib_save_LIBS=$LIBS
6533LIBS="-lnsl  $LIBS"
6534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h.  */
6536
6537/* Override any GCC internal prototype to avoid an error.
6538   Use char because int might match the return type of a GCC
6539   builtin and then its argument prototype would still apply.  */
6540char gethostbyname ();
6541int
6542main (void)
6543{
6544return gethostbyname ();
6545  ;
6546  return 0;
6547}
6548_ACEOF
6549if ac_fn_c_try_link "$LINENO"
6550then :
6551  ac_cv_lib_nsl_gethostbyname=yes
6552else $as_nop
6553  ac_cv_lib_nsl_gethostbyname=no
6554fi
6555rm -f core conftest.err conftest.$ac_objext conftest.beam \
6556    conftest$ac_exeext conftest.$ac_ext
6557LIBS=$ac_check_lib_save_LIBS
6558fi
6559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6560printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
6561if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
6562then :
6563  printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
6564
6565  LIBS="-lnsl $LIBS"
6566
6567else $as_nop
6568
6569       # Some strange OSes (SINIX) have it in libsocket:
6570       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
6571printf %s "checking for gethostbyname in -lsocket... " >&6; }
6572if test ${ac_cv_lib_socket_gethostbyname+y}
6573then :
6574  printf %s "(cached) " >&6
6575else $as_nop
6576  ac_check_lib_save_LIBS=$LIBS
6577LIBS="-lsocket  $LIBS"
6578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580
6581/* Override any GCC internal prototype to avoid an error.
6582   Use char because int might match the return type of a GCC
6583   builtin and then its argument prototype would still apply.  */
6584char gethostbyname ();
6585int
6586main (void)
6587{
6588return gethostbyname ();
6589  ;
6590  return 0;
6591}
6592_ACEOF
6593if ac_fn_c_try_link "$LINENO"
6594then :
6595  ac_cv_lib_socket_gethostbyname=yes
6596else $as_nop
6597  ac_cv_lib_socket_gethostbyname=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.beam \
6600    conftest$ac_exeext conftest.$ac_ext
6601LIBS=$ac_check_lib_save_LIBS
6602fi
6603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
6604printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
6605if test "x$ac_cv_lib_socket_gethostbyname" = xyes
6606then :
6607  printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
6608
6609  LIBS="-lsocket $LIBS"
6610
6611else $as_nop
6612
6613          # Unfortunately libsocket sometimes depends on libnsl.
6614          # AC_CHECK_LIB's API is essentially broken so the following
6615          # ugliness is necessary:
6616          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
6617printf %s "checking for gethostbyname in -lsocket... " >&6; }
6618if test ${ac_cv_lib_socket_gethostbyname+y}
6619then :
6620  printf %s "(cached) " >&6
6621else $as_nop
6622  ac_check_lib_save_LIBS=$LIBS
6623LIBS="-lsocket -lnsl $LIBS"
6624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625/* end confdefs.h.  */
6626
6627/* Override any GCC internal prototype to avoid an error.
6628   Use char because int might match the return type of a GCC
6629   builtin and then its argument prototype would still apply.  */
6630char gethostbyname ();
6631int
6632main (void)
6633{
6634return gethostbyname ();
6635  ;
6636  return 0;
6637}
6638_ACEOF
6639if ac_fn_c_try_link "$LINENO"
6640then :
6641  ac_cv_lib_socket_gethostbyname=yes
6642else $as_nop
6643  ac_cv_lib_socket_gethostbyname=no
6644fi
6645rm -f core conftest.err conftest.$ac_objext conftest.beam \
6646    conftest$ac_exeext conftest.$ac_ext
6647LIBS=$ac_check_lib_save_LIBS
6648fi
6649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
6650printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
6651if test "x$ac_cv_lib_socket_gethostbyname" = xyes
6652then :
6653  LIBS="-lsocket -lnsl $LIBS"
6654else $as_nop
6655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
6656printf %s "checking for gethostbyname in -lresolv... " >&6; }
6657if test ${ac_cv_lib_resolv_gethostbyname+y}
6658then :
6659  printf %s "(cached) " >&6
6660else $as_nop
6661  ac_check_lib_save_LIBS=$LIBS
6662LIBS="-lresolv  $LIBS"
6663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h.  */
6665
6666/* Override any GCC internal prototype to avoid an error.
6667   Use char because int might match the return type of a GCC
6668   builtin and then its argument prototype would still apply.  */
6669char gethostbyname ();
6670int
6671main (void)
6672{
6673return gethostbyname ();
6674  ;
6675  return 0;
6676}
6677_ACEOF
6678if ac_fn_c_try_link "$LINENO"
6679then :
6680  ac_cv_lib_resolv_gethostbyname=yes
6681else $as_nop
6682  ac_cv_lib_resolv_gethostbyname=no
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685    conftest$ac_exeext conftest.$ac_ext
6686LIBS=$ac_check_lib_save_LIBS
6687fi
6688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
6689printf "%s\n" "$ac_cv_lib_resolv_gethostbyname" >&6; }
6690if test "x$ac_cv_lib_resolv_gethostbyname" = xyes
6691then :
6692  LIBS="-lresolv $LIBS"
6693fi
6694
6695fi
6696
6697
6698fi
6699
6700
6701fi
6702
6703
6704fi
6705
6706  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
6707if test "x$ac_cv_func_socket" = xyes
6708then :
6709
6710else $as_nop
6711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6712printf %s "checking for socket in -lsocket... " >&6; }
6713if test ${ac_cv_lib_socket_socket+y}
6714then :
6715  printf %s "(cached) " >&6
6716else $as_nop
6717  ac_check_lib_save_LIBS=$LIBS
6718LIBS="-lsocket  $LIBS"
6719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721
6722/* Override any GCC internal prototype to avoid an error.
6723   Use char because int might match the return type of a GCC
6724   builtin and then its argument prototype would still apply.  */
6725char socket ();
6726int
6727main (void)
6728{
6729return socket ();
6730  ;
6731  return 0;
6732}
6733_ACEOF
6734if ac_fn_c_try_link "$LINENO"
6735then :
6736  ac_cv_lib_socket_socket=yes
6737else $as_nop
6738  ac_cv_lib_socket_socket=no
6739fi
6740rm -f core conftest.err conftest.$ac_objext conftest.beam \
6741    conftest$ac_exeext conftest.$ac_ext
6742LIBS=$ac_check_lib_save_LIBS
6743fi
6744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6745printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
6746if test "x$ac_cv_lib_socket_socket" = xyes
6747then :
6748  printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
6749
6750  LIBS="-lsocket $LIBS"
6751
6752else $as_nop
6753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6754printf %s "checking for socket in -lsocket... " >&6; }
6755if test ${ac_cv_lib_socket_socket+y}
6756then :
6757  printf %s "(cached) " >&6
6758else $as_nop
6759  ac_check_lib_save_LIBS=$LIBS
6760LIBS="-lsocket -lnsl $LIBS"
6761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762/* end confdefs.h.  */
6763
6764/* Override any GCC internal prototype to avoid an error.
6765   Use char because int might match the return type of a GCC
6766   builtin and then its argument prototype would still apply.  */
6767char socket ();
6768int
6769main (void)
6770{
6771return socket ();
6772  ;
6773  return 0;
6774}
6775_ACEOF
6776if ac_fn_c_try_link "$LINENO"
6777then :
6778  ac_cv_lib_socket_socket=yes
6779else $as_nop
6780  ac_cv_lib_socket_socket=no
6781fi
6782rm -f core conftest.err conftest.$ac_objext conftest.beam \
6783    conftest$ac_exeext conftest.$ac_ext
6784LIBS=$ac_check_lib_save_LIBS
6785fi
6786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6787printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
6788if test "x$ac_cv_lib_socket_socket" = xyes
6789then :
6790  LIBS="-lsocket -lnsl $LIBS"
6791fi
6792
6793fi
6794
6795fi
6796
6797
6798enable_dns=yes
6799  # Check whether --enable-dns-for-realm was given.
6800if test ${enable_dns_for_realm+y}
6801then :
6802  enableval=$enable_dns_for_realm;
6803else $as_nop
6804  enable_dns_for_realm=no
6805fi
6806
6807  if test "$enable_dns_for_realm" = yes; then
6808
6809printf "%s\n" "#define KRB5_DNS_LOOKUP_REALM 1" >>confdefs.h
6810
6811  fi
6812
6813
6814printf "%s\n" "#define KRB5_DNS_LOOKUP 1" >>confdefs.h
6815
6816
6817
6818  if test "$enable_dns" = yes ; then
6819    # We assume that if libresolv exists we can link against it.
6820    # This may get us a gethostby* that doesn't respect nsswitch.
6821    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
6822printf %s "checking for main in -lresolv... " >&6; }
6823if test ${ac_cv_lib_resolv_main+y}
6824then :
6825  printf %s "(cached) " >&6
6826else $as_nop
6827  ac_check_lib_save_LIBS=$LIBS
6828LIBS="-lresolv  $LIBS"
6829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h.  */
6831
6832
6833int
6834main (void)
6835{
6836return main ();
6837  ;
6838  return 0;
6839}
6840_ACEOF
6841if ac_fn_c_try_link "$LINENO"
6842then :
6843  ac_cv_lib_resolv_main=yes
6844else $as_nop
6845  ac_cv_lib_resolv_main=no
6846fi
6847rm -f core conftest.err conftest.$ac_objext conftest.beam \
6848    conftest$ac_exeext conftest.$ac_ext
6849LIBS=$ac_check_lib_save_LIBS
6850fi
6851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
6852printf "%s\n" "$ac_cv_lib_resolv_main" >&6; }
6853if test "x$ac_cv_lib_resolv_main" = xyes
6854then :
6855  printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
6856
6857  LIBS="-lresolv $LIBS"
6858
6859fi
6860
6861
6862for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
6863
6864# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but
6865# doesn't export it from libresolv.so, so we use extreme paranoia here
6866# and check both for the declaration and that we can link against the
6867# function.
6868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $krb5_func" >&5
6869printf %s "checking for $krb5_func... " >&6; }
6870if eval test \${krb5_cv_func_$krb5_func+y}
6871then :
6872  printf %s "(cached) " >&6
6873else $as_nop
6874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876#include <sys/types.h>
6877      #include <netinet/in.h>
6878      #include <arpa/nameser.h>
6879      #include <resolv.h>
6880
6881int
6882main (void)
6883{
6884/*
6885       * Use volatile, or else optimization can cause false positives.
6886       */
6887      void (* volatile p)() = (void (*)())$krb5_func;
6888  ;
6889  return 0;
6890}
6891_ACEOF
6892if ac_fn_c_try_link "$LINENO"
6893then :
6894  eval "krb5_cv_func_$krb5_func=yes"
6895else $as_nop
6896  eval "krb5_cv_func_$krb5_func=no"
6897fi
6898rm -f core conftest.err conftest.$ac_objext conftest.beam \
6899    conftest$ac_exeext conftest.$ac_ext
6900fi
6901eval ac_res=\$krb5_cv_func_$krb5_func
6902	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6903printf "%s\n" "$ac_res" >&6; }
6904if test `eval 'as_val=${'krb5_cv_func_$krb5_func'};printf "%s\n" "$as_val"'` = yes
6905then :
6906
6907cat >>confdefs.h <<_ACEOF
6908#define `printf "%s\n" "HAVE_$krb5_func" | $as_tr_cpp` 1
6909_ACEOF
6910
6911fi
6912done
6913
6914    if test $krb5_cv_func_res_nsearch = no \
6915      && test $krb5_cv_func_res_search = no; then
6916	# Attempt to link with res_search(), in case it's not prototyped.
6917	ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
6918if test "x$ac_cv_func_res_search" = xyes
6919then :
6920
6921printf "%s\n" "#define HAVE_RES_SEARCH 1" >>confdefs.h
6922
6923else $as_nop
6924  as_fn_error $? "cannot find res_nsearch or res_search" "$LINENO" 5
6925fi
6926
6927    fi
6928  fi
6929
6930
6931fi
6932
6933# Check whether --with-hesiod was given.
6934if test ${with_hesiod+y}
6935then :
6936  withval=$with_hesiod; hesiod=$with_hesiod
6937else $as_nop
6938  with_hesiod=no
6939fi
6940
6941if test "$with_hesiod" != "no"; then
6942	HESIOD_DEFS=-DHESIOD
6943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
6944printf %s "checking for res_send in -lresolv... " >&6; }
6945if test ${ac_cv_lib_resolv_res_send+y}
6946then :
6947  printf %s "(cached) " >&6
6948else $as_nop
6949  ac_check_lib_save_LIBS=$LIBS
6950LIBS="-lresolv  $LIBS"
6951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952/* end confdefs.h.  */
6953
6954/* Override any GCC internal prototype to avoid an error.
6955   Use char because int might match the return type of a GCC
6956   builtin and then its argument prototype would still apply.  */
6957char res_send ();
6958int
6959main (void)
6960{
6961return res_send ();
6962  ;
6963  return 0;
6964}
6965_ACEOF
6966if ac_fn_c_try_link "$LINENO"
6967then :
6968  ac_cv_lib_resolv_res_send=yes
6969else $as_nop
6970  ac_cv_lib_resolv_res_send=no
6971fi
6972rm -f core conftest.err conftest.$ac_objext conftest.beam \
6973    conftest$ac_exeext conftest.$ac_ext
6974LIBS=$ac_check_lib_save_LIBS
6975fi
6976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
6977printf "%s\n" "$ac_cv_lib_resolv_res_send" >&6; }
6978if test "x$ac_cv_lib_resolv_res_send" = xyes
6979then :
6980  res_lib=-lresolv
6981fi
6982
6983	if test "$hesiod" != "yes"; then
6984		HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
6985	else
6986		HESIOD_LIBS="-lhesiod $res_lib"
6987	fi
6988else
6989	HESIOD_DEFS=
6990	HESIOD_LIBS=
6991fi
6992
6993 # Check whether --enable-maintainer-mode was given.
6994if test ${enable_maintainer_mode+y}
6995then :
6996  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6997else $as_nop
6998  USE_MAINTAINER_MODE=no
6999fi
7000
7001if test "$USE_MAINTAINER_MODE" = yes; then
7002  MAINTAINER_MODE_TRUE=
7003  MAINTAINER_MODE_FALSE='#'
7004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: enabling maintainer mode" >&5
7005printf "%s\n" "$as_me: enabling maintainer mode" >&6;}
7006else
7007  MAINTAINER_MODE_TRUE='#'
7008  MAINTAINER_MODE_FALSE=
7009fi
7010MAINT=$MAINTAINER_MODE_TRUE
7011
7012
7013
7014  CONFIG_RELTOPDIR=$ac_reltopdir
7015
7016lib_frag=$srcdir/$ac_config_fragdir/lib.in
7017
7018libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
7019
7020libnover_frag=$srcdir/$ac_config_fragdir/libnover.in
7021
7022libpriv_frag=$srcdir/$ac_config_fragdir/libpriv.in
7023
7024libnodeps_frag=$srcdir/$ac_config_fragdir/libnodeps.in
7025
7026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pragma weak references are supported" >&5
7027printf %s "checking whether pragma weak references are supported... " >&6; }
7028if test ${krb5_cv_pragma_weak_ref+y}
7029then :
7030  printf %s "(cached) " >&6
7031else $as_nop
7032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h.  */
7034#pragma weak flurbl
7035      extern int flurbl(void);
7036int
7037main (void)
7038{
7039if (&flurbl != 0) return flurbl();
7040  ;
7041  return 0;
7042}
7043_ACEOF
7044if ac_fn_c_try_link "$LINENO"
7045then :
7046  krb5_cv_pragma_weak_ref=yes
7047else $as_nop
7048  krb5_cv_pragma_weak_ref=no
7049fi
7050rm -f core conftest.err conftest.$ac_objext conftest.beam \
7051    conftest$ac_exeext conftest.$ac_ext
7052fi
7053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_pragma_weak_ref" >&5
7054printf "%s\n" "$krb5_cv_pragma_weak_ref" >&6; }
7055if test $krb5_cv_pragma_weak_ref = yes ; then
7056
7057printf "%s\n" "#define HAVE_PRAGMA_WEAK_REF 1" >>confdefs.h
7058
7059fi
7060
7061
7062# Check whether --with-ldap was given.
7063if test ${with_ldap+y}
7064then :
7065  withval=$with_ldap; case "$withval" in
7066    OPENLDAP) with_ldap=yes ;;
7067    yes | no) ;;
7068    *)  as_fn_error $? "Invalid option value --with-ldap=\"$withval\"" "$LINENO" 5 ;;
7069esac
7070else $as_nop
7071  with_ldap=no
7072fi
7073
7074if test "$with_ldap" = yes; then
7075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: enabling OpenLDAP database backend module support" >&5
7076printf "%s\n" "$as_me: enabling OpenLDAP database backend module support" >&6;}
7077  OPENLDAP_PLUGIN=yes
7078fi
7079
7080krb5_cv_host=$host
7081
7082. $ac_topdir/config/shlib.conf
7083
7084# Check whether --enable-delayed-initialization was given.
7085if test ${enable_delayed_initialization+y}
7086then :
7087  enableval=$enable_delayed_initialization;
7088else $as_nop
7089  enable_delayed_initialization=yes
7090fi
7091
7092case "$enable_delayed_initialization" in
7093  yes)
7094
7095printf "%s\n" "#define DELAY_INITIALIZER 1" >>confdefs.h
7096 ;;
7097  no) ;;
7098  *)  as_fn_error $? "invalid option $enable_delayed_initialization for delayed-initialization" "$LINENO" 5 ;;
7099esac
7100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for constructor/destructor attribute support" >&5
7101printf %s "checking for constructor/destructor attribute support... " >&6; }
7102if test ${krb5_cv_attr_constructor_destructor+y}
7103then :
7104  printf %s "(cached) " >&6
7105else $as_nop
7106  rm -f conftest.1 conftest.2
7107if test -r conftest.1 || test -r conftest.2 ; then
7108  as_fn_error $? "write error in local file system?" "$LINENO" 5
7109fi
7110true > conftest.1
7111true > conftest.2
7112if test -r conftest.1 && test -r conftest.2 ; then true ; else
7113  as_fn_error $? "write error in local file system?" "$LINENO" 5
7114fi
7115a=no
7116b=no
7117# blindly assume we have 'unlink' and unistd.h.
7118if test "$cross_compiling" = yes
7119then :
7120  as_fn_error $? "Cannot test for constructor/destructor support when cross compiling" "$LINENO" 5
7121else $as_nop
7122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123/* end confdefs.h.  */
7124#include <unistd.h>
7125      void foo1() __attribute__((constructor));
7126      void foo1() { unlink("conftest.1"); }
7127      void foo2() __attribute__((destructor));
7128      void foo2() { unlink("conftest.2"); }
7129      int main () { return 0; }
7130_ACEOF
7131if ac_fn_c_try_run "$LINENO"
7132then :
7133  test -r conftest.1 || a=yes
7134     test -r conftest.2 || b=yes
7135fi
7136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7137  conftest.$ac_objext conftest.beam conftest.$ac_ext
7138fi
7139
7140case $krb5_cv_host in
7141*-*-aix4.*)
7142	# Under AIX 4.3.3, at least, shared library destructor functions
7143	# appear to get executed in reverse link order (right to left),
7144	# so that a library's destructor function may run after that of
7145	# libraries it depends on, and may still have to access in the
7146	# destructor.
7147	#
7148	# That counts as "not working", for me, but it's a much more
7149	# complicated test case to set up.
7150	b=no
7151	;;
7152esac
7153krb5_cv_attr_constructor_destructor="$a,$b"
7154
7155fi
7156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_attr_constructor_destructor" >&5
7157printf "%s\n" "$krb5_cv_attr_constructor_destructor" >&6; }
7158# Okay, krb5_cv_... should be set now.
7159case $krb5_cv_attr_constructor_destructor in
7160  yes,*)
7161
7162printf "%s\n" "#define CONSTRUCTOR_ATTR_WORKS 1" >>confdefs.h
7163 ;;
7164esac
7165case $krb5_cv_attr_constructor_destructor in
7166  *,yes)
7167
7168printf "%s\n" "#define DESTRUCTOR_ATTR_WORKS 1" >>confdefs.h
7169 ;;
7170esac
7171
7172if test -z "$use_linker_init_option" ; then
7173  as_fn_error $? "ran INITFINI before checking shlib.conf?" "$LINENO" 5
7174fi
7175if test "$use_linker_init_option" = yes; then
7176
7177printf "%s\n" "#define USE_LINKER_INIT_OPTION 1" >>confdefs.h
7178
7179fi
7180if test "$use_linker_fini_option" = yes; then
7181
7182printf "%s\n" "#define USE_LINKER_FINI_OPTION 1" >>confdefs.h
7183
7184fi
7185if test "$lib_unload_prevented" = yes; then
7186
7187printf "%s\n" "#define LIB_UNLOAD_PREVENTED 1" >>confdefs.h
7188
7189fi
7190
7191
7192# Check whether --enable-thread-support was given.
7193if test ${enable_thread_support+y}
7194then :
7195  enableval=$enable_thread_support;
7196else $as_nop
7197  enable_thread_support=yes
7198fi
7199
7200if test "$enable_thread_support" = yes ; then
7201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: enabling thread support" >&5
7202printf "%s\n" "$as_me: enabling thread support" >&6;}
7203
7204printf "%s\n" "#define ENABLE_THREADS 1" >>confdefs.h
7205
7206fi
7207if test "$enable_thread_support" = yes; then
7208
7209
7210
7211
7212ac_ext=c
7213ac_cpp='$CPP $CPPFLAGS'
7214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217
7218ax_pthread_ok=no
7219
7220# We used to check for pthread.h first, but this fails if pthread.h
7221# requires special compiler flags (e.g. on Tru64 or Sequent).
7222# It gets checked for in the link test anyway.
7223
7224# First of all, check if the user has set any of the PTHREAD_LIBS,
7225# etcetera environment variables, and if threads linking works using
7226# them:
7227if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7228        ax_pthread_save_CC="$CC"
7229        ax_pthread_save_CFLAGS="$CFLAGS"
7230        ax_pthread_save_LIBS="$LIBS"
7231        if test "x$PTHREAD_CC" != "x"
7232then :
7233  CC="$PTHREAD_CC"
7234fi
7235        if test "x$PTHREAD_CXX" != "x"
7236then :
7237  CXX="$PTHREAD_CXX"
7238fi
7239        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7240        LIBS="$PTHREAD_LIBS $LIBS"
7241        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7242printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7243        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244/* end confdefs.h.  */
7245
7246/* Override any GCC internal prototype to avoid an error.
7247   Use char because int might match the return type of a GCC
7248   builtin and then its argument prototype would still apply.  */
7249char pthread_join ();
7250int
7251main (void)
7252{
7253return pthread_join ();
7254  ;
7255  return 0;
7256}
7257_ACEOF
7258if ac_fn_c_try_link "$LINENO"
7259then :
7260  ax_pthread_ok=yes
7261fi
7262rm -f core conftest.err conftest.$ac_objext conftest.beam \
7263    conftest$ac_exeext conftest.$ac_ext
7264        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7265printf "%s\n" "$ax_pthread_ok" >&6; }
7266        if test "x$ax_pthread_ok" = "xno"; then
7267                PTHREAD_LIBS=""
7268                PTHREAD_CFLAGS=""
7269        fi
7270        CC="$ax_pthread_save_CC"
7271        CFLAGS="$ax_pthread_save_CFLAGS"
7272        LIBS="$ax_pthread_save_LIBS"
7273fi
7274
7275# We must check for the threads library under a number of different
7276# names; the ordering is very important because some systems
7277# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7278# libraries is broken (non-POSIX).
7279
7280# Create a list of thread flags to try. Items with a "," contain both
7281# C compiler flags (before ",") and linker flags (after ","). Other items
7282# starting with a "-" are C compiler flags, and remaining items are
7283# library names, except for "none" which indicates that we try without
7284# any flags at all, and "pthread-config" which is a program returning
7285# the flags for the Pth emulation library.
7286
7287ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7288
7289# The ordering *is* (sometimes) important.  Some notes on the
7290# individual items follow:
7291
7292# pthreads: AIX (must check this before -lpthread)
7293# none: in case threads are in libc; should be tried before -Kthread and
7294#       other compiler flags to prevent continual compiler warnings
7295# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7296# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7297#           (Note: HP C rejects this with "bad form for `-t' option")
7298# -pthreads: Solaris/gcc (Note: HP C also rejects)
7299# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7300#      doesn't hurt to check since this sometimes defines pthreads and
7301#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7302#      is present but should not be used directly; and before -mthreads,
7303#      because the compiler interprets this as "-mt" + "-hreads")
7304# -mthreads: Mingw32/gcc, Lynx/gcc
7305# pthread: Linux, etcetera
7306# --thread-safe: KAI C++
7307# pthread-config: use pthread-config program (for GNU Pth library)
7308
7309case $host_os in
7310
7311        freebsd*)
7312
7313        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7314        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7315
7316        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7317        ;;
7318
7319        hpux*)
7320
7321        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7322        # multi-threading and also sets -lpthread."
7323
7324        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7325        ;;
7326
7327        openedition*)
7328
7329        # IBM z/OS requires a feature-test macro to be defined in order to
7330        # enable POSIX threads at all, so give the user a hint if this is
7331        # not set. (We don't define these ourselves, as they can affect
7332        # other portions of the system API in unpredictable ways.)
7333
7334        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335/* end confdefs.h.  */
7336
7337#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7338             AX_PTHREAD_ZOS_MISSING
7339#            endif
7340
7341_ACEOF
7342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7343  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7344then :
7345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7346printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7347fi
7348rm -rf conftest*
7349
7350        ;;
7351
7352        solaris*)
7353
7354        # On Solaris (at least, for some versions), libc contains stubbed
7355        # (non-functional) versions of the pthreads routines, so link-based
7356        # tests will erroneously succeed. (N.B.: The stubs are missing
7357        # pthread_cleanup_push, or rather a function called by this macro,
7358        # so we could check for that, but who knows whether they'll stub
7359        # that too in a future libc.)  So we'll check first for the
7360        # standard Solaris way of linking pthreads (-mt -lpthread).
7361
7362        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7363        ;;
7364esac
7365
7366# Are we compiling with Clang?
7367
7368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7369printf %s "checking whether $CC is Clang... " >&6; }
7370if test ${ax_cv_PTHREAD_CLANG+y}
7371then :
7372  printf %s "(cached) " >&6
7373else $as_nop
7374  ax_cv_PTHREAD_CLANG=no
7375     # Note that Autoconf sets GCC=yes for Clang as well as GCC
7376     if test "x$GCC" = "xyes"; then
7377        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h.  */
7379/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7380#            if defined(__clang__) && defined(__llvm__)
7381             AX_PTHREAD_CC_IS_CLANG
7382#            endif
7383
7384_ACEOF
7385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7386  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7387then :
7388  ax_cv_PTHREAD_CLANG=yes
7389fi
7390rm -rf conftest*
7391
7392     fi
7393
7394fi
7395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7396printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7397ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7398
7399
7400# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7401
7402# Note that for GCC and Clang -pthread generally implies -lpthread,
7403# except when -nostdlib is passed.
7404# This is problematic using libtool to build C++ shared libraries with pthread:
7405# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7406# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7407# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7408# To solve this, first try -pthread together with -lpthread for GCC
7409
7410if test "x$GCC" = "xyes"
7411then :
7412  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7413fi
7414
7415# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7416
7417if test "x$ax_pthread_clang" = "xyes"
7418then :
7419  ax_pthread_flags="-pthread,-lpthread -pthread"
7420fi
7421
7422
7423# The presence of a feature test macro requesting re-entrant function
7424# definitions is, on some systems, a strong hint that pthreads support is
7425# correctly enabled
7426
7427case $host_os in
7428        darwin* | hpux* | linux* | osf* | solaris*)
7429        ax_pthread_check_macro="_REENTRANT"
7430        ;;
7431
7432        aix*)
7433        ax_pthread_check_macro="_THREAD_SAFE"
7434        ;;
7435
7436        *)
7437        ax_pthread_check_macro="--"
7438        ;;
7439esac
7440if test "x$ax_pthread_check_macro" = "x--"
7441then :
7442  ax_pthread_check_cond=0
7443else $as_nop
7444  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7445fi
7446
7447
7448if test "x$ax_pthread_ok" = "xno"; then
7449for ax_pthread_try_flag in $ax_pthread_flags; do
7450
7451        case $ax_pthread_try_flag in
7452                none)
7453                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7454printf %s "checking whether pthreads work without any flags... " >&6; }
7455                ;;
7456
7457                *,*)
7458                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7459                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7460                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7461printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7462                ;;
7463
7464                -*)
7465                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7466printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7467                PTHREAD_CFLAGS="$ax_pthread_try_flag"
7468                ;;
7469
7470                pthread-config)
7471                # Extract the first word of "pthread-config", so it can be a program name with args.
7472set dummy pthread-config; ac_word=$2
7473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474printf %s "checking for $ac_word... " >&6; }
7475if test ${ac_cv_prog_ax_pthread_config+y}
7476then :
7477  printf %s "(cached) " >&6
7478else $as_nop
7479  if test -n "$ax_pthread_config"; then
7480  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7481else
7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483for as_dir in $PATH
7484do
7485  IFS=$as_save_IFS
7486  case $as_dir in #(((
7487    '') as_dir=./ ;;
7488    */) ;;
7489    *) as_dir=$as_dir/ ;;
7490  esac
7491    for ac_exec_ext in '' $ac_executable_extensions; do
7492  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7493    ac_cv_prog_ax_pthread_config="yes"
7494    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7495    break 2
7496  fi
7497done
7498  done
7499IFS=$as_save_IFS
7500
7501  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7502fi
7503fi
7504ax_pthread_config=$ac_cv_prog_ax_pthread_config
7505if test -n "$ax_pthread_config"; then
7506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7507printf "%s\n" "$ax_pthread_config" >&6; }
7508else
7509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510printf "%s\n" "no" >&6; }
7511fi
7512
7513
7514                if test "x$ax_pthread_config" = "xno"
7515then :
7516  continue
7517fi
7518                PTHREAD_CFLAGS="`pthread-config --cflags`"
7519                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7520                ;;
7521
7522                *)
7523                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7524printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7525                PTHREAD_LIBS="-l$ax_pthread_try_flag"
7526                ;;
7527        esac
7528
7529        ax_pthread_save_CFLAGS="$CFLAGS"
7530        ax_pthread_save_LIBS="$LIBS"
7531        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7532        LIBS="$PTHREAD_LIBS $LIBS"
7533
7534        # Check for various functions.  We must include pthread.h,
7535        # since some functions may be macros.  (On the Sequent, we
7536        # need a special flag -Kthread to make this header compile.)
7537        # We check for pthread_join because it is in -lpthread on IRIX
7538        # while pthread_create is in libc.  We check for pthread_attr_init
7539        # due to DEC craziness with -lpthreads.  We check for
7540        # pthread_cleanup_push because it is one of the few pthread
7541        # functions on Solaris that doesn't have a non-functional libc stub.
7542        # We try pthread_create on general principles.
7543
7544        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h.  */
7546#include <pthread.h>
7547#                       if $ax_pthread_check_cond
7548#                        error "$ax_pthread_check_macro must be defined"
7549#                       endif
7550                        static void *some_global = NULL;
7551                        static void routine(void *a)
7552                          {
7553                             /* To avoid any unused-parameter or
7554                                unused-but-set-parameter warning.  */
7555                             some_global = a;
7556                          }
7557                        static void *start_routine(void *a) { return a; }
7558int
7559main (void)
7560{
7561pthread_t th; pthread_attr_t attr;
7562                        pthread_create(&th, 0, start_routine, 0);
7563                        pthread_join(th, 0);
7564                        pthread_attr_init(&attr);
7565                        pthread_cleanup_push(routine, 0);
7566                        pthread_cleanup_pop(0) /* ; */
7567  ;
7568  return 0;
7569}
7570_ACEOF
7571if ac_fn_c_try_link "$LINENO"
7572then :
7573  ax_pthread_ok=yes
7574fi
7575rm -f core conftest.err conftest.$ac_objext conftest.beam \
7576    conftest$ac_exeext conftest.$ac_ext
7577
7578        CFLAGS="$ax_pthread_save_CFLAGS"
7579        LIBS="$ax_pthread_save_LIBS"
7580
7581        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7582printf "%s\n" "$ax_pthread_ok" >&6; }
7583        if test "x$ax_pthread_ok" = "xyes"
7584then :
7585  break
7586fi
7587
7588        PTHREAD_LIBS=""
7589        PTHREAD_CFLAGS=""
7590done
7591fi
7592
7593
7594# Clang needs special handling, because older versions handle the -pthread
7595# option in a rather... idiosyncratic way
7596
7597if test "x$ax_pthread_clang" = "xyes"; then
7598
7599        # Clang takes -pthread; it has never supported any other flag
7600
7601        # (Note 1: This will need to be revisited if a system that Clang
7602        # supports has POSIX threads in a separate library.  This tends not
7603        # to be the way of modern systems, but it's conceivable.)
7604
7605        # (Note 2: On some systems, notably Darwin, -pthread is not needed
7606        # to get POSIX threads support; the API is always present and
7607        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7608        # -pthread does define _REENTRANT, and while the Darwin headers
7609        # ignore this macro, third-party headers might not.)
7610
7611        # However, older versions of Clang make a point of warning the user
7612        # that, in an invocation where only linking and no compilation is
7613        # taking place, the -pthread option has no effect ("argument unused
7614        # during compilation").  They expect -pthread to be passed in only
7615        # when source code is being compiled.
7616        #
7617        # Problem is, this is at odds with the way Automake and most other
7618        # C build frameworks function, which is that the same flags used in
7619        # compilation (CFLAGS) are also used in linking.  Many systems
7620        # supported by AX_PTHREAD require exactly this for POSIX threads
7621        # support, and in fact it is often not straightforward to specify a
7622        # flag that is used only in the compilation phase and not in
7623        # linking.  Such a scenario is extremely rare in practice.
7624        #
7625        # Even though use of the -pthread flag in linking would only print
7626        # a warning, this can be a nuisance for well-run software projects
7627        # that build with -Werror.  So if the active version of Clang has
7628        # this misfeature, we search for an option to squash it.
7629
7630        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7631printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7632if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7633then :
7634  printf %s "(cached) " >&6
7635else $as_nop
7636  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7637             # Create an alternate version of $ac_link that compiles and
7638             # links in two steps (.c -> .o, .o -> exe) instead of one
7639             # (.c -> exe), because the warning occurs only in the second
7640             # step
7641             ax_pthread_save_ac_link="$ac_link"
7642             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7643             ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7644             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7645             ax_pthread_save_CFLAGS="$CFLAGS"
7646             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7647                if test "x$ax_pthread_try" = "xunknown"
7648then :
7649  break
7650fi
7651                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7652                ac_link="$ax_pthread_save_ac_link"
7653                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h.  */
7655int main(void){return 0;}
7656_ACEOF
7657if ac_fn_c_try_link "$LINENO"
7658then :
7659  ac_link="$ax_pthread_2step_ac_link"
7660                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661/* end confdefs.h.  */
7662int main(void){return 0;}
7663_ACEOF
7664if ac_fn_c_try_link "$LINENO"
7665then :
7666  break
7667fi
7668rm -f core conftest.err conftest.$ac_objext conftest.beam \
7669    conftest$ac_exeext conftest.$ac_ext
7670
7671fi
7672rm -f core conftest.err conftest.$ac_objext conftest.beam \
7673    conftest$ac_exeext conftest.$ac_ext
7674             done
7675             ac_link="$ax_pthread_save_ac_link"
7676             CFLAGS="$ax_pthread_save_CFLAGS"
7677             if test "x$ax_pthread_try" = "x"
7678then :
7679  ax_pthread_try=no
7680fi
7681             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7682
7683fi
7684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7685printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7686
7687        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7688                no | unknown) ;;
7689                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7690        esac
7691
7692fi # $ax_pthread_clang = yes
7693
7694
7695
7696# Various other checks:
7697if test "x$ax_pthread_ok" = "xyes"; then
7698        ax_pthread_save_CFLAGS="$CFLAGS"
7699        ax_pthread_save_LIBS="$LIBS"
7700        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7701        LIBS="$PTHREAD_LIBS $LIBS"
7702
7703        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7704        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7705printf %s "checking for joinable pthread attribute... " >&6; }
7706if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7707then :
7708  printf %s "(cached) " >&6
7709else $as_nop
7710  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7711             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7712                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h.  */
7714#include <pthread.h>
7715int
7716main (void)
7717{
7718int attr = $ax_pthread_attr; return attr /* ; */
7719  ;
7720  return 0;
7721}
7722_ACEOF
7723if ac_fn_c_try_link "$LINENO"
7724then :
7725  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7726fi
7727rm -f core conftest.err conftest.$ac_objext conftest.beam \
7728    conftest$ac_exeext conftest.$ac_ext
7729             done
7730
7731fi
7732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7733printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7734        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7735               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7736               test "x$ax_pthread_joinable_attr_defined" != "xyes"
7737then :
7738
7739printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7740
7741               ax_pthread_joinable_attr_defined=yes
7742
7743fi
7744
7745        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7746printf %s "checking whether more special flags are required for pthreads... " >&6; }
7747if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7748then :
7749  printf %s "(cached) " >&6
7750else $as_nop
7751  ax_cv_PTHREAD_SPECIAL_FLAGS=no
7752             case $host_os in
7753             solaris*)
7754             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7755             ;;
7756             esac
7757
7758fi
7759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7760printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7761        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7762               test "x$ax_pthread_special_flags_added" != "xyes"
7763then :
7764  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7765               ax_pthread_special_flags_added=yes
7766fi
7767
7768        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7769printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7770if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7771then :
7772  printf %s "(cached) " >&6
7773else $as_nop
7774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776#include <pthread.h>
7777int
7778main (void)
7779{
7780int i = PTHREAD_PRIO_INHERIT;
7781                                               return i;
7782  ;
7783  return 0;
7784}
7785_ACEOF
7786if ac_fn_c_try_link "$LINENO"
7787then :
7788  ax_cv_PTHREAD_PRIO_INHERIT=yes
7789else $as_nop
7790  ax_cv_PTHREAD_PRIO_INHERIT=no
7791fi
7792rm -f core conftest.err conftest.$ac_objext conftest.beam \
7793    conftest$ac_exeext conftest.$ac_ext
7794
7795fi
7796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7797printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7798        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7799               test "x$ax_pthread_prio_inherit_defined" != "xyes"
7800then :
7801
7802printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7803
7804               ax_pthread_prio_inherit_defined=yes
7805
7806fi
7807
7808        CFLAGS="$ax_pthread_save_CFLAGS"
7809        LIBS="$ax_pthread_save_LIBS"
7810
7811        # More AIX lossage: compile with *_r variant
7812        if test "x$GCC" != "xyes"; then
7813            case $host_os in
7814                aix*)
7815                case "x/$CC" in #(
7816  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7817    #handle absolute path differently from PATH based program lookup
7818                     case "x$CC" in #(
7819  x/*) :
7820
7821			   if as_fn_executable_p ${CC}_r
7822then :
7823  PTHREAD_CC="${CC}_r"
7824fi
7825			   if test "x${CXX}" != "x"
7826then :
7827  if as_fn_executable_p ${CXX}_r
7828then :
7829  PTHREAD_CXX="${CXX}_r"
7830fi
7831fi
7832			  ;; #(
7833  *) :
7834
7835			   for ac_prog in ${CC}_r
7836do
7837  # Extract the first word of "$ac_prog", so it can be a program name with args.
7838set dummy $ac_prog; ac_word=$2
7839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840printf %s "checking for $ac_word... " >&6; }
7841if test ${ac_cv_prog_PTHREAD_CC+y}
7842then :
7843  printf %s "(cached) " >&6
7844else $as_nop
7845  if test -n "$PTHREAD_CC"; then
7846  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  case $as_dir in #(((
7853    '') as_dir=./ ;;
7854    */) ;;
7855    *) as_dir=$as_dir/ ;;
7856  esac
7857    for ac_exec_ext in '' $ac_executable_extensions; do
7858  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7859    ac_cv_prog_PTHREAD_CC="$ac_prog"
7860    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7861    break 2
7862  fi
7863done
7864  done
7865IFS=$as_save_IFS
7866
7867fi
7868fi
7869PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7870if test -n "$PTHREAD_CC"; then
7871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7872printf "%s\n" "$PTHREAD_CC" >&6; }
7873else
7874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875printf "%s\n" "no" >&6; }
7876fi
7877
7878
7879  test -n "$PTHREAD_CC" && break
7880done
7881test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7882
7883			   if test "x${CXX}" != "x"
7884then :
7885  for ac_prog in ${CXX}_r
7886do
7887  # Extract the first word of "$ac_prog", so it can be a program name with args.
7888set dummy $ac_prog; ac_word=$2
7889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890printf %s "checking for $ac_word... " >&6; }
7891if test ${ac_cv_prog_PTHREAD_CXX+y}
7892then :
7893  printf %s "(cached) " >&6
7894else $as_nop
7895  if test -n "$PTHREAD_CXX"; then
7896  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901  IFS=$as_save_IFS
7902  case $as_dir in #(((
7903    '') as_dir=./ ;;
7904    */) ;;
7905    *) as_dir=$as_dir/ ;;
7906  esac
7907    for ac_exec_ext in '' $ac_executable_extensions; do
7908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7909    ac_cv_prog_PTHREAD_CXX="$ac_prog"
7910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7911    break 2
7912  fi
7913done
7914  done
7915IFS=$as_save_IFS
7916
7917fi
7918fi
7919PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7920if test -n "$PTHREAD_CXX"; then
7921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7922printf "%s\n" "$PTHREAD_CXX" >&6; }
7923else
7924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925printf "%s\n" "no" >&6; }
7926fi
7927
7928
7929  test -n "$PTHREAD_CXX" && break
7930done
7931test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7932
7933fi
7934
7935                      ;;
7936esac
7937                     ;; #(
7938  *) :
7939     ;;
7940esac
7941                ;;
7942            esac
7943        fi
7944fi
7945
7946test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7947test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7948
7949
7950
7951
7952
7953
7954# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7955if test "x$ax_pthread_ok" = "xyes"; then
7956
7957printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7958
7959        :
7960else
7961        ax_pthread_ok=no
7962        as_fn_error $? "cannot determine options for enabling thread support; try --disable-thread-support" "$LINENO" 5
7963fi
7964ac_ext=c
7965ac_cpp='$CPP $CPPFLAGS'
7966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969
7970
7971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PTHREAD_CC = $PTHREAD_CC" >&5
7972printf "%s\n" "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;}
7973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5
7974printf "%s\n" "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;}
7975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PTHREAD_LIBS = $PTHREAD_LIBS" >&5
7976printf "%s\n" "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;}
7977      # AIX and Tru64 don't support weak references, and don't have
7978  # stub versions of the pthread code in libc.
7979  case "${host_os}" in
7980    aix* | osf*)
7981      # On these platforms, we'll always pull in the thread support.
7982      LIBS="$LIBS $PTHREAD_LIBS"
7983      CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7984      # We don't need to sometimes add the flags we've just folded in...
7985      PTHREAD_LIBS=
7986      PTHREAD_CFLAGS=
7987      ;;
7988    hpux*)
7989      # These are the flags that "gcc -pthread" adds.  But we don't
7990      # want "-pthread" because that has link-time effects, and we
7991      # don't exclude CFLAGS when linking.  *sigh*
7992      PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
7993      ;;
7994    solaris2.[1-9])
7995      # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
7996      # get the right result.   XXX What about Solaris 9 and earlier?
7997      if test "$GCC" = yes ; then
7998        PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
7999      fi
8000      ;;
8001    solaris*)
8002      # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
8003      # get the right result.
8004      if test "$GCC" = yes ; then
8005        PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
8006      fi
8007      # On Solaris 10, the thread support is always available in libc.
8008
8009printf "%s\n" "#define NO_WEAK_PTHREADS 1" >>confdefs.h
8010
8011      ;;
8012  esac
8013  THREAD_SUPPORT=1
8014else
8015  PTHREAD_CC="$CC"
8016  PTHREAD_CFLAGS=""
8017  PTHREAD_LIBS=""
8018  THREAD_SUPPORT=0
8019fi
8020
8021ac_fn_c_check_func "$LINENO" "pthread_once" "ac_cv_func_pthread_once"
8022if test "x$ac_cv_func_pthread_once" = xyes
8023then :
8024  printf "%s\n" "#define HAVE_PTHREAD_ONCE 1" >>confdefs.h
8025
8026fi
8027ac_fn_c_check_func "$LINENO" "pthread_rwlock_init" "ac_cv_func_pthread_rwlock_init"
8028if test "x$ac_cv_func_pthread_rwlock_init" = xyes
8029then :
8030  printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
8031
8032fi
8033
8034old_CC="$CC"
8035test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
8036old_CFLAGS="$CFLAGS"
8037# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
8038CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8039
8040old_LIBS="$LIBS"
8041LIBS="$PTHREAD_LIBS $LIBS"
8042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: rechecking with PTHREAD_... options" >&5
8043printf "%s\n" "$as_me: rechecking with PTHREAD_... options" >&6;}
8044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lc" >&5
8045printf %s "checking for pthread_rwlock_init in -lc... " >&6; }
8046if test ${ac_cv_lib_c_pthread_rwlock_init+y}
8047then :
8048  printf %s "(cached) " >&6
8049else $as_nop
8050  ac_check_lib_save_LIBS=$LIBS
8051LIBS="-lc  $LIBS"
8052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054
8055/* Override any GCC internal prototype to avoid an error.
8056   Use char because int might match the return type of a GCC
8057   builtin and then its argument prototype would still apply.  */
8058char pthread_rwlock_init ();
8059int
8060main (void)
8061{
8062return pthread_rwlock_init ();
8063  ;
8064  return 0;
8065}
8066_ACEOF
8067if ac_fn_c_try_link "$LINENO"
8068then :
8069  ac_cv_lib_c_pthread_rwlock_init=yes
8070else $as_nop
8071  ac_cv_lib_c_pthread_rwlock_init=no
8072fi
8073rm -f core conftest.err conftest.$ac_objext conftest.beam \
8074    conftest$ac_exeext conftest.$ac_ext
8075LIBS=$ac_check_lib_save_LIBS
8076fi
8077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_rwlock_init" >&5
8078printf "%s\n" "$ac_cv_lib_c_pthread_rwlock_init" >&6; }
8079if test "x$ac_cv_lib_c_pthread_rwlock_init" = xyes
8080then :
8081
8082printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1" >>confdefs.h
8083
8084fi
8085
8086LIBS="$old_LIBS"
8087CC="$old_CC"
8088CFLAGS="$old_CFLAGS"
8089
8090
8091old_LIBS="$LIBS"
8092DL_LIB=
8093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8094printf %s "checking for library containing dlopen... " >&6; }
8095if test ${ac_cv_search_dlopen+y}
8096then :
8097  printf %s "(cached) " >&6
8098else $as_nop
8099  ac_func_search_save_LIBS=$LIBS
8100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102
8103/* Override any GCC internal prototype to avoid an error.
8104   Use char because int might match the return type of a GCC
8105   builtin and then its argument prototype would still apply.  */
8106char dlopen ();
8107int
8108main (void)
8109{
8110return dlopen ();
8111  ;
8112  return 0;
8113}
8114_ACEOF
8115for ac_lib in '' dl
8116do
8117  if test -z "$ac_lib"; then
8118    ac_res="none required"
8119  else
8120    ac_res=-l$ac_lib
8121    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8122  fi
8123  if ac_fn_c_try_link "$LINENO"
8124then :
8125  ac_cv_search_dlopen=$ac_res
8126fi
8127rm -f core conftest.err conftest.$ac_objext conftest.beam \
8128    conftest$ac_exeext
8129  if test ${ac_cv_search_dlopen+y}
8130then :
8131  break
8132fi
8133done
8134if test ${ac_cv_search_dlopen+y}
8135then :
8136
8137else $as_nop
8138  ac_cv_search_dlopen=no
8139fi
8140rm conftest.$ac_ext
8141LIBS=$ac_func_search_save_LIBS
8142fi
8143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8144printf "%s\n" "$ac_cv_search_dlopen" >&6; }
8145ac_res=$ac_cv_search_dlopen
8146if test "$ac_res" != no
8147then :
8148  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8149
8150if test "$ac_cv_search_dlopen" != "none required"; then
8151  DL_LIB=$ac_cv_search_dlopen
8152fi
8153LIBS="$old_LIBS"
8154
8155printf "%s\n" "#define USE_DLOPEN 1" >>confdefs.h
8156
8157fi
8158
8159
8160
8161
8162KRB5_VERSION=1.22.1
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8176	if test -n "$ac_tool_prefix"; then
8177  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8178set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180printf %s "checking for $ac_word... " >&6; }
8181if test ${ac_cv_path_PKG_CONFIG+y}
8182then :
8183  printf %s "(cached) " >&6
8184else $as_nop
8185  case $PKG_CONFIG in
8186  [\\/]* | ?:[\\/]*)
8187  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8188  ;;
8189  *)
8190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193  IFS=$as_save_IFS
8194  case $as_dir in #(((
8195    '') as_dir=./ ;;
8196    */) ;;
8197    *) as_dir=$as_dir/ ;;
8198  esac
8199    for ac_exec_ext in '' $ac_executable_extensions; do
8200  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8201    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
8202    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8203    break 2
8204  fi
8205done
8206  done
8207IFS=$as_save_IFS
8208
8209  ;;
8210esac
8211fi
8212PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8213if test -n "$PKG_CONFIG"; then
8214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8215printf "%s\n" "$PKG_CONFIG" >&6; }
8216else
8217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218printf "%s\n" "no" >&6; }
8219fi
8220
8221
8222fi
8223if test -z "$ac_cv_path_PKG_CONFIG"; then
8224  ac_pt_PKG_CONFIG=$PKG_CONFIG
8225  # Extract the first word of "pkg-config", so it can be a program name with args.
8226set dummy pkg-config; ac_word=$2
8227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228printf %s "checking for $ac_word... " >&6; }
8229if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
8230then :
8231  printf %s "(cached) " >&6
8232else $as_nop
8233  case $ac_pt_PKG_CONFIG in
8234  [\\/]* | ?:[\\/]*)
8235  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8236  ;;
8237  *)
8238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241  IFS=$as_save_IFS
8242  case $as_dir in #(((
8243    '') as_dir=./ ;;
8244    */) ;;
8245    *) as_dir=$as_dir/ ;;
8246  esac
8247    for ac_exec_ext in '' $ac_executable_extensions; do
8248  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8249    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
8250    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8251    break 2
8252  fi
8253done
8254  done
8255IFS=$as_save_IFS
8256
8257  ;;
8258esac
8259fi
8260ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8261if test -n "$ac_pt_PKG_CONFIG"; then
8262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8263printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
8264else
8265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266printf "%s\n" "no" >&6; }
8267fi
8268
8269  if test "x$ac_pt_PKG_CONFIG" = x; then
8270    PKG_CONFIG=""
8271  else
8272    case $cross_compiling:$ac_tool_warned in
8273yes:)
8274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276ac_tool_warned=yes ;;
8277esac
8278    PKG_CONFIG=$ac_pt_PKG_CONFIG
8279  fi
8280else
8281  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8282fi
8283
8284fi
8285if test -n "$PKG_CONFIG"; then
8286	_pkg_min_version=0.9.0
8287	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8288printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8289	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8291printf "%s\n" "yes" >&6; }
8292	else
8293		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294printf "%s\n" "no" >&6; }
8295		PKG_CONFIG=""
8296	fi
8297fi
8298
8299ac_header= ac_cache=
8300for ac_item in $ac_header_c_list
8301do
8302  if test $ac_cache; then
8303    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8304    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8305      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8306    fi
8307    ac_header= ac_cache=
8308  elif test $ac_header; then
8309    ac_cache=$ac_item
8310  else
8311    ac_header=$ac_item
8312  fi
8313done
8314
8315
8316
8317
8318
8319
8320
8321
8322if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8323then :
8324
8325printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8326
8327fi
8328ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8329if test "x$ac_cv_header_stdint_h" = xyes
8330then :
8331
8332else $as_nop
8333  as_fn_error $? "stdint.h is required" "$LINENO" 5
8334fi
8335
8336
8337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether integers are two's complement" >&5
8338printf %s "checking whether integers are two's complement... " >&6; }
8339if test ${krb5_cv_ints_twos_compl+y}
8340then :
8341  printf %s "(cached) " >&6
8342else $as_nop
8343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344/* end confdefs.h.  */
8345#include <limits.h>
8346
8347int
8348main (void)
8349{
8350static int test_array [1 - 2 * !(/* Basic two's complement check */
8351	  ~(-1) == 0 && ~(-1L) == 0L &&
8352	  /* Check that values with sign bit 1 and value bits 0 are valid */
8353	  -(INT_MIN + 1) == INT_MAX && -(LONG_MIN + 1) == LONG_MAX &&
8354	  /* Check that unsigned-to-signed conversions preserve bit patterns */
8355	  (int)((unsigned int)INT_MAX + 1) == INT_MIN &&
8356	  (long)((unsigned long)LONG_MAX + 1) == LONG_MIN)];
8357test_array [0] = 0;
8358return test_array [0];
8359
8360  ;
8361  return 0;
8362}
8363_ACEOF
8364if ac_fn_c_try_compile "$LINENO"
8365then :
8366  krb5_cv_ints_twos_compl=yes
8367else $as_nop
8368  krb5_cv_ints_twos_compl=no
8369fi
8370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8371fi
8372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_ints_twos_compl" >&5
8373printf "%s\n" "$krb5_cv_ints_twos_compl" >&6; }
8374
8375if test "$krb5_cv_ints_twos_compl" = "no"; then
8376  as_fn_error $? "integers are not two's complement" "$LINENO" 5
8377fi
8378
8379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CHAR_BIT is 8" >&5
8380printf %s "checking whether CHAR_BIT is 8... " >&6; }
8381if test ${krb5_cv_char_bit_8+y}
8382then :
8383  printf %s "(cached) " >&6
8384else $as_nop
8385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386/* end confdefs.h.  */
8387#include <limits.h>
8388#if CHAR_BIT != 8
8389  #error CHAR_BIT != 8
8390#endif
8391
8392_ACEOF
8393if ac_fn_c_try_cpp "$LINENO"
8394then :
8395  krb5_cv_char_bit_8=yes
8396else $as_nop
8397  krb5_cv_char_bit_8=no
8398fi
8399rm -f conftest.err conftest.i conftest.$ac_ext
8400fi
8401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_char_bit_8" >&5
8402printf "%s\n" "$krb5_cv_char_bit_8" >&6; }
8403
8404if test "$krb5_cv_char_bit_8" = "no"; then
8405  as_fn_error $? "CHAR_BIT is not 8" "$LINENO" 5
8406fi
8407
8408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if va_copy is available" >&5
8409printf %s "checking if va_copy is available... " >&6; }
8410if test ${krb5_cv_va_copy+y}
8411then :
8412  printf %s "(cached) " >&6
8413else $as_nop
8414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415/* end confdefs.h.  */
8416
8417#include <stdarg.h>
8418void f(va_list ap) {
8419  va_list ap2;
8420  va_copy(ap2, ap);
8421  va_end(ap2);
8422}
8423va_list x;
8424int main()
8425{
8426  f(x);
8427  return 0;
8428}
8429_ACEOF
8430if ac_fn_c_try_link "$LINENO"
8431then :
8432  krb5_cv_va_copy=yes
8433else $as_nop
8434  krb5_cv_va_copy=no
8435fi
8436rm -f core conftest.err conftest.$ac_objext conftest.beam \
8437    conftest$ac_exeext conftest.$ac_ext
8438fi
8439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_va_copy" >&5
8440printf "%s\n" "$krb5_cv_va_copy" >&6; }
8441if test "$krb5_cv_va_copy" = yes; then
8442
8443printf "%s\n" "#define HAS_VA_COPY 1" >>confdefs.h
8444
8445fi
8446
8447# Note that this isn't checking if the copied value *works*, just
8448# whether the C language constraints permit the copying.  If
8449# va_list is defined as an array type, it can't be assigned.
8450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if va_list objects can be copied by assignment" >&5
8451printf %s "checking if va_list objects can be copied by assignment... " >&6; }
8452if test ${krb5_cv_va_simple_copy+y}
8453then :
8454  printf %s "(cached) " >&6
8455else $as_nop
8456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h.  */
8458
8459#include <stdarg.h>
8460void f(va_list va2) {
8461  va_list va1;
8462  va1 = va2;
8463}
8464_ACEOF
8465if ac_fn_c_try_compile "$LINENO"
8466then :
8467  krb5_cv_va_simple_copy=yes
8468else $as_nop
8469  krb5_cv_va_simple_copy=no
8470fi
8471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8472fi
8473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_va_simple_copy" >&5
8474printf "%s\n" "$krb5_cv_va_simple_copy" >&6; }
8475if test "$krb5_cv_va_simple_copy" = yes; then
8476
8477printf "%s\n" "#define CAN_COPY_VA_LIST 1" >>confdefs.h
8478
8479fi
8480
8481# The following lines are so that configure --help gives some global
8482# configuration options.
8483
8484
8485# Check whether --enable-static was given.
8486if test ${enable_static+y}
8487then :
8488  enableval=$enable_static;
8489else $as_nop
8490  enable_static=no
8491fi
8492
8493# Check whether --enable-shared was given.
8494if test ${enable_shared+y}
8495then :
8496  enableval=$enable_shared;
8497else $as_nop
8498  enable_shared=yes
8499fi
8500
8501
8502if test "x$enable_static" = "x$enable_shared"; then
8503  as_fn_error $? "--enable-static must be specified with --disable-shared" "$LINENO" 5
8504fi
8505
8506# Check whether --enable-rpath was given.
8507if test ${enable_rpath+y}
8508then :
8509  enableval=$enable_rpath;
8510else $as_nop
8511  enable_rpath=yes
8512fi
8513
8514
8515if test "x$enable_rpath" != xyes ; then
8516	# Unset the rpath flag values set by shlib.conf
8517	SHLIB_RPATH_FLAGS=
8518	RPATH_FLAG=
8519	PROG_RPATH_FLAGS=
8520fi
8521
8522if test "$SHLIBEXT" = ".so-nobuild"; then
8523   as_fn_error $? "Shared libraries are not yet supported on this platform." "$LINENO" 5
8524fi
8525
8526DEPLIBEXT=$SHLIBEXT
8527
8528if test "x$enable_static" = xyes; then
8529	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: using static libraries" >&5
8530printf "%s\n" "$as_me: using static libraries" >&6;}
8531	LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
8532	LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
8533	PLUGIN='libkrb5_$(LIBBASE)$(STLIBEXT)'
8534	PLUGINLINK='$(TOPLIBD)/libkrb5_$(LIBBASE)$(STLIBEXT)'
8535	PLUGININST=install-static
8536	OBJLISTS=OBJS.ST
8537	LIBINSTLIST=install-static
8538	DEPLIBEXT=$STLIBEXT
8539
8540printf "%s\n" "#define STATIC_PLUGINS 1" >>confdefs.h
8541
8542
8543	KDB5_PLUGIN_DEPLIBS='$(TOPLIBD)/libkrb5_db2$(DEPLIBEXT)'
8544	KDB5_PLUGIN_LIBS='-lkrb5_db2'
8545	if test "x$OPENLDAP_PLUGIN" = xyes; then
8546		KDB5_PLUGIN_DEBLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkrb5_ldap$(DEPLIBEXT) $(TOPLIBD)/libkdb_ldap$(DEPLIBEXT)'
8547		KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkrb5_kldap -lkdb_ldap $(LDAP_LIBS)'
8548	fi
8549	# kadm5srv_mit normally comes before kdb on the link line.  Add it
8550	# again after the KDB plugins, since they depend on it for XDR stuff.
8551	KDB5_PLUGIN_DEPLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkadm5srv_mit$(DEPLIBEXT)'
8552	KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkadm5srv_mit'
8553
8554	# avoid duplicate rules generation for AIX and such
8555	SHLIBEXT=.so-nobuild
8556	SHLIBVEXT=.so.v-nobuild
8557	SHLIBSEXT=.so.s-nobuild
8558else
8559	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: using shared libraries" >&5
8560printf "%s\n" "$as_me: using shared libraries" >&6;}
8561
8562	# Clear some stuff in case of AIX, etc.
8563	if test "$STLIBEXT" = "$SHLIBEXT" ; then
8564		STLIBEXT=.a-nobuild
8565	fi
8566	case "$SHLIBSEXT" in
8567	.so.s-nobuild)
8568		LIBLIST='lib$(LIBBASE)$(SHLIBEXT)'
8569		LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
8570		LIBINSTLIST="install-shared"
8571		;;
8572	*)
8573		LIBLIST='lib$(LIBBASE)$(SHLIBEXT) lib$(LIBBASE)$(SHLIBSEXT)'
8574		LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
8575		LIBINSTLIST="install-shlib-soname"
8576		;;
8577	esac
8578	OBJLISTS="OBJS.SH"
8579	PLUGIN='$(LIBBASE)$(DYNOBJEXT)'
8580	PLUGINLINK='../$(PLUGIN)'
8581	PLUGININST=install-plugin
8582	KDB5_PLUGIN_DEPLIBS=
8583	KDB5_PLUGIN_LIBS=
8584fi
8585CC_LINK="$CC_LINK_SHARED"
8586CXX_LINK="$CXX_LINK_SHARED"
8587
8588if test -z "$LIBLIST"; then
8589	as_fn_error $? "must enable one of shared or static libraries" "$LINENO" 5
8590fi
8591
8592# Check whether to build profiled libraries.
8593# Check whether --enable-profiled was given.
8594if test ${enable_profiled+y}
8595then :
8596  enableval=$enable_profiled; if test "$enableval" = yes; then
8597  as_fn_error $? "Sorry, profiled libraries do not work in this release." "$LINENO" 5
8598fi
8599fi
8600
8601# Check whether --enable-athena was given.
8602if test ${enable_athena+y}
8603then :
8604  enableval=$enable_athena;
8605fi
8606
8607
8608# Begin autoconf tests for the Makefiles generated out of the top-level
8609# configure.in...
8610
8611
8612
8613
8614
8615
8616
8617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8618printf %s "checking whether ln -s works... " >&6; }
8619LN_S=$as_ln_s
8620if test "$LN_S" = "ln -s"; then
8621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8622printf "%s\n" "yes" >&6; }
8623else
8624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8625printf "%s\n" "no, using $LN_S" >&6; }
8626fi
8627
8628if test -n "$ac_tool_prefix"; then
8629  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8630set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632printf %s "checking for $ac_word... " >&6; }
8633if test ${ac_cv_prog_RANLIB+y}
8634then :
8635  printf %s "(cached) " >&6
8636else $as_nop
8637  if test -n "$RANLIB"; then
8638  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8639else
8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643  IFS=$as_save_IFS
8644  case $as_dir in #(((
8645    '') as_dir=./ ;;
8646    */) ;;
8647    *) as_dir=$as_dir/ ;;
8648  esac
8649    for ac_exec_ext in '' $ac_executable_extensions; do
8650  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8651    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8652    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8653    break 2
8654  fi
8655done
8656  done
8657IFS=$as_save_IFS
8658
8659fi
8660fi
8661RANLIB=$ac_cv_prog_RANLIB
8662if test -n "$RANLIB"; then
8663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8664printf "%s\n" "$RANLIB" >&6; }
8665else
8666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667printf "%s\n" "no" >&6; }
8668fi
8669
8670
8671fi
8672if test -z "$ac_cv_prog_RANLIB"; then
8673  ac_ct_RANLIB=$RANLIB
8674  # Extract the first word of "ranlib", so it can be a program name with args.
8675set dummy ranlib; ac_word=$2
8676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677printf %s "checking for $ac_word... " >&6; }
8678if test ${ac_cv_prog_ac_ct_RANLIB+y}
8679then :
8680  printf %s "(cached) " >&6
8681else $as_nop
8682  if test -n "$ac_ct_RANLIB"; then
8683  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8684else
8685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688  IFS=$as_save_IFS
8689  case $as_dir in #(((
8690    '') as_dir=./ ;;
8691    */) ;;
8692    *) as_dir=$as_dir/ ;;
8693  esac
8694    for ac_exec_ext in '' $ac_executable_extensions; do
8695  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8696    ac_cv_prog_ac_ct_RANLIB="ranlib"
8697    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8698    break 2
8699  fi
8700done
8701  done
8702IFS=$as_save_IFS
8703
8704fi
8705fi
8706ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8707if test -n "$ac_ct_RANLIB"; then
8708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8709printf "%s\n" "$ac_ct_RANLIB" >&6; }
8710else
8711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712printf "%s\n" "no" >&6; }
8713fi
8714
8715  if test "x$ac_ct_RANLIB" = x; then
8716    RANLIB=":"
8717  else
8718    case $cross_compiling:$ac_tool_warned in
8719yes:)
8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8721printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8722ac_tool_warned=yes ;;
8723esac
8724    RANLIB=$ac_ct_RANLIB
8725  fi
8726else
8727  RANLIB="$ac_cv_prog_RANLIB"
8728fi
8729
8730
8731  # Find a good install program.  We prefer a C program (faster),
8732# so one script is as good as another.  But avoid the broken or
8733# incompatible versions:
8734# SysV /etc/install, /usr/sbin/install
8735# SunOS /usr/etc/install
8736# IRIX /sbin/install
8737# AIX /bin/install
8738# AmigaOS /C/install, which installs bootblocks on floppy discs
8739# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8740# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8741# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8742# OS/2's system install, which has a completely different semantic
8743# ./install, which can be erroneously created by make from ./install.sh.
8744# Reject install programs that cannot install multiple files.
8745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8746printf %s "checking for a BSD-compatible install... " >&6; }
8747if test -z "$INSTALL"; then
8748if test ${ac_cv_path_install+y}
8749then :
8750  printf %s "(cached) " >&6
8751else $as_nop
8752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755  IFS=$as_save_IFS
8756  case $as_dir in #(((
8757    '') as_dir=./ ;;
8758    */) ;;
8759    *) as_dir=$as_dir/ ;;
8760  esac
8761    # Account for fact that we put trailing slashes in our PATH walk.
8762case $as_dir in #((
8763  ./ | /[cC]/* | \
8764  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8765  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8766  /usr/ucb/* ) ;;
8767  *)
8768    # OSF1 and SCO ODT 3.0 have their own names for install.
8769    # Don't use installbsd from OSF since it installs stuff as root
8770    # by default.
8771    for ac_prog in ginstall scoinst install; do
8772      for ac_exec_ext in '' $ac_executable_extensions; do
8773	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8774	  if test $ac_prog = install &&
8775	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8776	    # AIX install.  It has an incompatible calling convention.
8777	    :
8778	  elif test $ac_prog = install &&
8779	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8780	    # program-specific install script used by HP pwplus--don't use.
8781	    :
8782	  else
8783	    rm -rf conftest.one conftest.two conftest.dir
8784	    echo one > conftest.one
8785	    echo two > conftest.two
8786	    mkdir conftest.dir
8787	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8788	      test -s conftest.one && test -s conftest.two &&
8789	      test -s conftest.dir/conftest.one &&
8790	      test -s conftest.dir/conftest.two
8791	    then
8792	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8793	      break 3
8794	    fi
8795	  fi
8796	fi
8797      done
8798    done
8799    ;;
8800esac
8801
8802  done
8803IFS=$as_save_IFS
8804
8805rm -rf conftest.one conftest.two conftest.dir
8806
8807fi
8808  if test ${ac_cv_path_install+y}; then
8809    INSTALL=$ac_cv_path_install
8810  else
8811    # As a last resort, use the slow shell script.  Don't cache a
8812    # value for INSTALL within a source directory, because that will
8813    # break other packages using the cache if that directory is
8814    # removed, or if the value is a relative name.
8815    INSTALL=$ac_install_sh
8816  fi
8817fi
8818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8819printf "%s\n" "$INSTALL" >&6; }
8820
8821# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8822# It thinks the first close brace ends the variable substitution.
8823test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8824
8825test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8826
8827test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8828
8829if test -n "$ac_tool_prefix"; then
8830  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8831set dummy ${ac_tool_prefix}ar; ac_word=$2
8832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833printf %s "checking for $ac_word... " >&6; }
8834if test ${ac_cv_prog_AR+y}
8835then :
8836  printf %s "(cached) " >&6
8837else $as_nop
8838  if test -n "$AR"; then
8839  ac_cv_prog_AR="$AR" # Let the user override the test.
8840else
8841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842for as_dir in $PATH
8843do
8844  IFS=$as_save_IFS
8845  case $as_dir in #(((
8846    '') as_dir=./ ;;
8847    */) ;;
8848    *) as_dir=$as_dir/ ;;
8849  esac
8850    for ac_exec_ext in '' $ac_executable_extensions; do
8851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8852    ac_cv_prog_AR="${ac_tool_prefix}ar"
8853    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8854    break 2
8855  fi
8856done
8857  done
8858IFS=$as_save_IFS
8859
8860fi
8861fi
8862AR=$ac_cv_prog_AR
8863if test -n "$AR"; then
8864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8865printf "%s\n" "$AR" >&6; }
8866else
8867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868printf "%s\n" "no" >&6; }
8869fi
8870
8871
8872fi
8873if test -z "$ac_cv_prog_AR"; then
8874  ac_ct_AR=$AR
8875  # Extract the first word of "ar", so it can be a program name with args.
8876set dummy ar; ac_word=$2
8877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878printf %s "checking for $ac_word... " >&6; }
8879if test ${ac_cv_prog_ac_ct_AR+y}
8880then :
8881  printf %s "(cached) " >&6
8882else $as_nop
8883  if test -n "$ac_ct_AR"; then
8884  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8885else
8886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887for as_dir in $PATH
8888do
8889  IFS=$as_save_IFS
8890  case $as_dir in #(((
8891    '') as_dir=./ ;;
8892    */) ;;
8893    *) as_dir=$as_dir/ ;;
8894  esac
8895    for ac_exec_ext in '' $ac_executable_extensions; do
8896  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8897    ac_cv_prog_ac_ct_AR="ar"
8898    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8899    break 2
8900  fi
8901done
8902  done
8903IFS=$as_save_IFS
8904
8905fi
8906fi
8907ac_ct_AR=$ac_cv_prog_ac_ct_AR
8908if test -n "$ac_ct_AR"; then
8909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8910printf "%s\n" "$ac_ct_AR" >&6; }
8911else
8912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913printf "%s\n" "no" >&6; }
8914fi
8915
8916  if test "x$ac_ct_AR" = x; then
8917    AR="false"
8918  else
8919    case $cross_compiling:$ac_tool_warned in
8920yes:)
8921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8922printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8923ac_tool_warned=yes ;;
8924esac
8925    AR=$ac_ct_AR
8926  fi
8927else
8928  AR="$ac_cv_prog_AR"
8929fi
8930
8931if test "$AR" = "false"; then
8932  as_fn_error $? "ar not found in PATH" "$LINENO" 5
8933fi
8934# Extract the first word of "perl", so it can be a program name with args.
8935set dummy perl; ac_word=$2
8936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937printf %s "checking for $ac_word... " >&6; }
8938if test ${ac_cv_prog_PERL+y}
8939then :
8940  printf %s "(cached) " >&6
8941else $as_nop
8942  if test -n "$PERL"; then
8943  ac_cv_prog_PERL="$PERL" # Let the user override the test.
8944else
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948  IFS=$as_save_IFS
8949  case $as_dir in #(((
8950    '') as_dir=./ ;;
8951    */) ;;
8952    *) as_dir=$as_dir/ ;;
8953  esac
8954    for ac_exec_ext in '' $ac_executable_extensions; do
8955  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8956    ac_cv_prog_PERL="perl"
8957    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8958    break 2
8959  fi
8960done
8961  done
8962IFS=$as_save_IFS
8963
8964  test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
8965fi
8966fi
8967PERL=$ac_cv_prog_PERL
8968if test -n "$PERL"; then
8969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8970printf "%s\n" "$PERL" >&6; }
8971else
8972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973printf "%s\n" "no" >&6; }
8974fi
8975
8976
8977if test "$ac_cv_prog_PERL" = "false"; then
8978  as_fn_error $? "Perl is now required for Kerberos builds." "$LINENO" 5
8979fi
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010# for kprop
9011ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9012if test "x$ac_cv_type_mode_t" = xyes
9013then :
9014
9015else $as_nop
9016
9017printf "%s\n" "#define mode_t int" >>confdefs.h
9018
9019fi
9020
9021
9022
9023
9024
9025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype provided" >&5
9026printf %s "checking if daemon needs a prototype provided... " >&6; }
9027if test ${krb5_cv_func_daemon_noproto+y}
9028then :
9029  printf %s "(cached) " >&6
9030else $as_nop
9031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032/* end confdefs.h.  */
9033#ifdef HAVE_UNISTD_H
9034#include <unistd.h>
9035#endif
9036int
9037main (void)
9038{
9039#undef daemon
9040      struct k5foo {int foo; } xx;
9041      extern int daemon (struct k5foo*);
9042      daemon(&xx);
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_compile "$LINENO"
9048then :
9049  krb5_cv_func_daemon_noproto=yes
9050else $as_nop
9051  krb5_cv_func_daemon_noproto=no
9052fi
9053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9054fi
9055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_daemon_noproto" >&5
9056printf "%s\n" "$krb5_cv_func_daemon_noproto" >&6; }
9057if test $krb5_cv_func_daemon_noproto = yes; then
9058
9059printf "%s\n" "#define NEED_DAEMON_PROTO 1" >>confdefs.h
9060
9061fi
9062
9063
9064
9065sock_set=no
9066for sock_arg1 in "struct sockaddr *" "void *"
9067do
9068  for sock_arg2 in "size_t *" "int *" "socklen_t *"
9069  do
9070	if test $sock_set = no; then
9071
9072krb5_lib_var=`echo "$sock_arg1 $sock_arg2" | sed 'y% ./+-*%___p_p%'`
9073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname() takes arguments $sock_arg1 and $sock_arg2" >&5
9074printf %s "checking if getsockname() takes arguments $sock_arg1 and $sock_arg2... " >&6; }
9075if eval test \${krb5_cv_getsockname_proto_$krb5_lib_var+y}
9076then :
9077  printf %s "(cached) " >&6
9078else $as_nop
9079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080/* end confdefs.h.  */
9081#include <sys/types.h>
9082      #include <sys/socket.h>
9083      extern int getsockname(int, $sock_arg1, $sock_arg2);
9084_ACEOF
9085if ac_fn_c_try_compile "$LINENO"
9086then :
9087  eval "krb5_cv_getsockname_proto_$krb5_lib_var=yes"
9088else $as_nop
9089  eval "krb5_cv_getsockname_proto_$krb5_lib_var=no"
9090fi
9091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9092fi
9093
9094if eval "test \"`echo '$krb5_cv_getsockname_proto_'$krb5_lib_var`\" = yes"; then
9095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9096printf "%s\n" "yes" >&6; }
9097	sock_set=yes; res1="$sock_arg1"; res2="$sock_arg2"
9098else
9099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100printf "%s\n" "no" >&6; }
9101fi
9102
9103	fi
9104  done
9105done
9106if test "$sock_set" = no; then
9107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: assuming struct sockaddr and socklen_t for getsockname args" >&5
9108printf "%s\n" "$as_me: assuming struct sockaddr and socklen_t for getsockname args" >&6;}
9109  res1="struct sockaddr *"
9110  res2="socklen_t *"
9111fi
9112res1=`echo "$res1" | tr -d '*' | sed -e 's/ *$//'`
9113res2=`echo "$res2" | tr -d '*' | sed -e 's/ *$//'`
9114
9115printf "%s\n" "#define GETSOCKNAME_ARG3_TYPE $res2" >>confdefs.h
9116
9117
9118
9119
9120printf "%s\n" "#define GETPEERNAME_ARG3_TYPE GETSOCKNAME_ARG3_TYPE" >>confdefs.h
9121
9122
9123LIBUTIL=
9124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lutil" >&5
9125printf %s "checking for main in -lutil... " >&6; }
9126if test ${ac_cv_lib_util_main+y}
9127then :
9128  printf %s "(cached) " >&6
9129else $as_nop
9130  ac_check_lib_save_LIBS=$LIBS
9131LIBS="-lutil  $LIBS"
9132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133/* end confdefs.h.  */
9134
9135
9136int
9137main (void)
9138{
9139return main ();
9140  ;
9141  return 0;
9142}
9143_ACEOF
9144if ac_fn_c_try_link "$LINENO"
9145then :
9146  ac_cv_lib_util_main=yes
9147else $as_nop
9148  ac_cv_lib_util_main=no
9149fi
9150rm -f core conftest.err conftest.$ac_objext conftest.beam \
9151    conftest$ac_exeext conftest.$ac_ext
9152LIBS=$ac_check_lib_save_LIBS
9153fi
9154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_main" >&5
9155printf "%s\n" "$ac_cv_lib_util_main" >&6; }
9156if test "x$ac_cv_lib_util_main" = xyes
9157then :
9158
9159printf "%s\n" "#define HAVE_LIBUTIL 1" >>confdefs.h
9160
9161LIBUTIL=-lutil
9162
9163fi
9164
9165
9166
9167# Determine if NLS is desired and supported.
9168po=
9169# Check whether --enable-nls was given.
9170if test ${enable_nls+y}
9171then :
9172  enableval=$enable_nls;
9173else $as_nop
9174  enable_nls=check
9175fi
9176
9177if test "$enable_nls" != no; then
9178  ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9179if test "x$ac_cv_header_libintl_h" = xyes
9180then :
9181
9182    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dgettext" >&5
9183printf %s "checking for library containing dgettext... " >&6; }
9184if test ${ac_cv_search_dgettext+y}
9185then :
9186  printf %s "(cached) " >&6
9187else $as_nop
9188  ac_func_search_save_LIBS=$LIBS
9189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190/* end confdefs.h.  */
9191
9192/* Override any GCC internal prototype to avoid an error.
9193   Use char because int might match the return type of a GCC
9194   builtin and then its argument prototype would still apply.  */
9195char dgettext ();
9196int
9197main (void)
9198{
9199return dgettext ();
9200  ;
9201  return 0;
9202}
9203_ACEOF
9204for ac_lib in '' intl
9205do
9206  if test -z "$ac_lib"; then
9207    ac_res="none required"
9208  else
9209    ac_res=-l$ac_lib
9210    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9211  fi
9212  if ac_fn_c_try_link "$LINENO"
9213then :
9214  ac_cv_search_dgettext=$ac_res
9215fi
9216rm -f core conftest.err conftest.$ac_objext conftest.beam \
9217    conftest$ac_exeext
9218  if test ${ac_cv_search_dgettext+y}
9219then :
9220  break
9221fi
9222done
9223if test ${ac_cv_search_dgettext+y}
9224then :
9225
9226else $as_nop
9227  ac_cv_search_dgettext=no
9228fi
9229rm conftest.$ac_ext
9230LIBS=$ac_func_search_save_LIBS
9231fi
9232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgettext" >&5
9233printf "%s\n" "$ac_cv_search_dgettext" >&6; }
9234ac_res=$ac_cv_search_dgettext
9235if test "$ac_res" != no
9236then :
9237  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9238
9239
9240printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
9241
9242      nls_enabled=yes
9243fi
9244
9245fi
9246
9247
9248  # Extract the first word of "msgfmt", so it can be a program name with args.
9249set dummy msgfmt; ac_word=$2
9250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251printf %s "checking for $ac_word... " >&6; }
9252if test ${ac_cv_prog_MSGFMT+y}
9253then :
9254  printf %s "(cached) " >&6
9255else $as_nop
9256  if test -n "$MSGFMT"; then
9257  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
9258else
9259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260for as_dir in $PATH
9261do
9262  IFS=$as_save_IFS
9263  case $as_dir in #(((
9264    '') as_dir=./ ;;
9265    */) ;;
9266    *) as_dir=$as_dir/ ;;
9267  esac
9268    for ac_exec_ext in '' $ac_executable_extensions; do
9269  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9270    ac_cv_prog_MSGFMT="msgfmt"
9271    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9272    break 2
9273  fi
9274done
9275  done
9276IFS=$as_save_IFS
9277
9278fi
9279fi
9280MSGFMT=$ac_cv_prog_MSGFMT
9281if test -n "$MSGFMT"; then
9282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9283printf "%s\n" "$MSGFMT" >&6; }
9284else
9285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286printf "%s\n" "no" >&6; }
9287fi
9288
9289
9290  if test x"$MSGFMT" != x; then
9291    ac_config_files="$ac_config_files po/Makefile:$srcdir/./config/pre.in:po/Makefile.in:po/deps:$srcdir/./config/post.in"
9292
9293
9294
9295    po=po
9296  fi
9297
9298  # Error out if --enable-nls was explicitly requested but can't be enabled.
9299  if test "$enable_nls" = yes; then
9300    if test "$nls_enabled" != yes -o "x$po" = x; then
9301      as_fn_error $? "NLS support requested but cannot be built" "$LINENO" 5
9302    fi
9303  fi
9304fi
9305
9306
9307# for kdc
9308ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
9309if test "x$ac_cv_header_sys_sockio_h" = xyes
9310then :
9311  printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
9312
9313fi
9314ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
9315if test "x$ac_cv_header_ifaddrs_h" = xyes
9316then :
9317  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
9318
9319fi
9320ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
9321if test "x$ac_cv_header_unistd_h" = xyes
9322then :
9323  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
9324
9325fi
9326ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
9327if test "x$ac_cv_header_fnmatch_h" = xyes
9328then :
9329  printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
9330
9331fi
9332
9333ac_fn_c_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
9334if test "x$ac_cv_func_vsprintf" = xyes
9335then :
9336  printf "%s\n" "#define HAVE_VSPRINTF 1" >>confdefs.h
9337
9338fi
9339ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
9340if test "x$ac_cv_func_vasprintf" = xyes
9341then :
9342  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
9343
9344fi
9345ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
9346if test "x$ac_cv_func_vsnprintf" = xyes
9347then :
9348  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
9349
9350fi
9351ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
9352if test "x$ac_cv_func_strlcpy" = xyes
9353then :
9354  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
9355
9356fi
9357ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
9358if test "x$ac_cv_func_fnmatch" = xyes
9359then :
9360  printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
9361
9362fi
9363ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
9364if test "x$ac_cv_func_secure_getenv" = xyes
9365then :
9366  printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
9367
9368fi
9369
9370
9371EXTRA_SUPPORT_SYMS=
9372ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
9373if test "x$ac_cv_func_strlcpy" = xyes
9374then :
9375  STRLCPY_ST_OBJ=
9376STRLCPY_OBJ=
9377else $as_nop
9378  STRLCPY_ST_OBJ=strlcpy.o
9379STRLCPY_OBJ='$(OUTPRE)strlcpy.$(OBJEXT)'
9380EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_strlcpy krb5int_strlcat"
9381fi
9382
9383
9384
9385
9386ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
9387if test "x$ac_cv_func_getopt" = xyes
9388then :
9389  GETOPT_ST_OBJ=
9390GETOPT_OBJ=
9391
9392printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
9393
9394else $as_nop
9395  GETOPT_ST_OBJ='getopt.o'
9396GETOPT_OBJ='$(OUTPRE)getopt.$(OBJEXT)'
9397EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_optind k5_optarg k5_opterr k5_optopt k5_getopt"
9398fi
9399
9400
9401
9402
9403ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
9404if test "x$ac_cv_func_getopt_long" = xyes
9405then :
9406  GETOPT_LONG_ST_OBJ=
9407GETOPT_LONG_OBJ=
9408
9409printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
9410
9411else $as_nop
9412  GETOPT_LONG_ST_OBJ='getopt_long.o'
9413GETOPT_LONG_OBJ='$(OUTPRE)getopt_long.$(OBJEXT)'
9414EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_getopt_long"
9415fi
9416
9417
9418
9419
9420ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
9421if test "x$ac_cv_func_fnmatch" = xyes
9422then :
9423  FNMATCH_ST_OBJ=
9424FNMATCH_OBJ=
9425else $as_nop
9426  FNMATCH_ST_OBJ=fnmatch.o
9427FNMATCH_OBJ='$(OUTPRE)fnmatch.$(OBJEXT)'
9428EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_fnmatch"
9429fi
9430
9431
9432
9433
9434ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
9435if test "x$ac_cv_func_vasprintf" = xyes
9436then :
9437  PRINTF_ST_OBJ=
9438PRINTF_OBJ=
9439else $as_nop
9440  PRINTF_ST_OBJ=printf.o
9441PRINTF_OBJ='$(OUTPRE)printf.$(OBJEXT)'
9442EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_asprintf krb5int_vasprintf"
9443fi
9444
9445
9446
9447
9448if test "x$ac_cv_func_vasprintf" = xyes; then
9449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype provided" >&5
9450printf %s "checking if vasprintf needs a prototype provided... " >&6; }
9451if test ${krb5_cv_func_vasprintf_noproto+y}
9452then :
9453  printf %s "(cached) " >&6
9454else $as_nop
9455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456/* end confdefs.h.  */
9457#include <stdarg.h>
9458#include <stdio.h>
9459
9460int
9461main (void)
9462{
9463#undef vasprintf
9464      struct k5foo {int foo; } xx;
9465      extern int vasprintf (struct k5foo*);
9466      vasprintf(&xx);
9467  ;
9468  return 0;
9469}
9470_ACEOF
9471if ac_fn_c_try_compile "$LINENO"
9472then :
9473  krb5_cv_func_vasprintf_noproto=yes
9474else $as_nop
9475  krb5_cv_func_vasprintf_noproto=no
9476fi
9477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9478fi
9479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_vasprintf_noproto" >&5
9480printf "%s\n" "$krb5_cv_func_vasprintf_noproto" >&6; }
9481if test $krb5_cv_func_vasprintf_noproto = yes; then
9482
9483printf "%s\n" "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h
9484
9485fi
9486fi
9487
9488
9489
9490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if swab needs a prototype provided" >&5
9491printf %s "checking if swab needs a prototype provided... " >&6; }
9492if test ${krb5_cv_func_swab_noproto+y}
9493then :
9494  printf %s "(cached) " >&6
9495else $as_nop
9496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498#include <string.h>
9499#ifdef HAVE_UNISTD_H
9500#include <unistd.h>
9501#endif
9502/* Solaris 8 declares swab in stdlib.h.  */
9503#include <stdlib.h>
9504
9505int
9506main (void)
9507{
9508#undef swab
9509      struct k5foo {int foo; } xx;
9510      extern int swab (struct k5foo*);
9511      swab(&xx);
9512  ;
9513  return 0;
9514}
9515_ACEOF
9516if ac_fn_c_try_compile "$LINENO"
9517then :
9518  krb5_cv_func_swab_noproto=yes
9519else $as_nop
9520  krb5_cv_func_swab_noproto=no
9521fi
9522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9523fi
9524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_swab_noproto" >&5
9525printf "%s\n" "$krb5_cv_func_swab_noproto" >&6; }
9526if test $krb5_cv_func_swab_noproto = yes; then
9527
9528printf "%s\n" "#define NEED_SWAB_PROTO 1" >>confdefs.h
9529
9530fi
9531
9532
9533
9534ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
9535if test "x$ac_cv_func_secure_getenv" = xyes
9536then :
9537  SECURE_GETENV_ST_OBJ=
9538SECURE_GETENV_OBJ=
9539SECURE_GETENV_INIT=
9540else $as_nop
9541  SECURE_GETENV_ST_OBJ=secure_getenv.o
9542SECURE_GETENV_OBJ='$(OUTPRE)secure_getenv.$(OBJEXT)'
9543SECURE_GETENV_INIT=k5_secure_getenv_init
9544EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_secure_getenv"
9545fi
9546
9547
9548
9549
9550
9551for ac_prog in gawk mawk nawk awk
9552do
9553  # Extract the first word of "$ac_prog", so it can be a program name with args.
9554set dummy $ac_prog; ac_word=$2
9555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556printf %s "checking for $ac_word... " >&6; }
9557if test ${ac_cv_prog_AWK+y}
9558then :
9559  printf %s "(cached) " >&6
9560else $as_nop
9561  if test -n "$AWK"; then
9562  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9563else
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567  IFS=$as_save_IFS
9568  case $as_dir in #(((
9569    '') as_dir=./ ;;
9570    */) ;;
9571    *) as_dir=$as_dir/ ;;
9572  esac
9573    for ac_exec_ext in '' $ac_executable_extensions; do
9574  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9575    ac_cv_prog_AWK="$ac_prog"
9576    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9577    break 2
9578  fi
9579done
9580  done
9581IFS=$as_save_IFS
9582
9583fi
9584fi
9585AWK=$ac_cv_prog_AWK
9586if test -n "$AWK"; then
9587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9588printf "%s\n" "$AWK" >&6; }
9589else
9590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591printf "%s\n" "no" >&6; }
9592fi
9593
9594
9595  test -n "$AWK" && break
9596done
9597
9598 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
9599#include <sys/socket.h>
9600"
9601if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
9602then :
9603
9604printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
9605
9606
9607fi
9608
9609
9610ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
9611if test "x$ac_cv_header_sys_types_h" = xyes
9612then :
9613  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
9614
9615fi
9616ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9617if test "x$ac_cv_header_sys_socket_h" = xyes
9618then :
9619  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
9620
9621fi
9622ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9623if test "x$ac_cv_header_netinet_in_h" = xyes
9624then :
9625  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
9626
9627fi
9628ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9629if test "x$ac_cv_header_netdb_h" = xyes
9630then :
9631  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
9632
9633fi
9634
9635ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
9636if test "x$ac_cv_func_inet_ntop" = xyes
9637then :
9638  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
9639
9640fi
9641ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
9642if test "x$ac_cv_func_inet_pton" = xyes
9643then :
9644  printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
9645
9646fi
9647ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
9648if test "x$ac_cv_func_getnameinfo" = xyes
9649then :
9650  printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
9651
9652fi
9653
9654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
9655printf %s "checking for getaddrinfo... " >&6; }
9656if test ${ac_cv_func_getaddrinfo+y}
9657then :
9658  printf %s "(cached) " >&6
9659else $as_nop
9660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661/* end confdefs.h.  */
9662#ifdef HAVE_NETDB_H
9663      #include <netdb.h>
9664      #endif
9665
9666int
9667main (void)
9668{
9669struct addrinfo *ai;
9670      getaddrinfo("kerberos.mit.edu", "echo", 0, &ai);
9671  ;
9672  return 0;
9673}
9674_ACEOF
9675if ac_fn_c_try_link "$LINENO"
9676then :
9677  ac_cv_func_getaddrinfo=yes
9678else $as_nop
9679  ac_cv_func_getaddrinfo=no
9680fi
9681rm -f core conftest.err conftest.$ac_objext conftest.beam \
9682    conftest$ac_exeext conftest.$ac_ext
9683fi
9684
9685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
9686printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
9687if test $ac_cv_func_getaddrinfo = yes; then
9688
9689printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
9690
9691fi
9692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support without -DINET6" >&5
9693printf %s "checking for IPv6 compile-time support without -DINET6... " >&6; }
9694if test ${krb5_cv_inet6+y}
9695then :
9696  printf %s "(cached) " >&6
9697else $as_nop
9698
9699if test "$ac_cv_func_inet_ntop" != "yes" ; then
9700  krb5_cv_inet6=no
9701else
9702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704#ifdef HAVE_SYS_TYPES_H
9705        #include <sys/types.h>
9706        #endif
9707        #include <sys/socket.h>
9708        #include <netinet/in.h>
9709        #include <netdb.h>
9710
9711int
9712main (void)
9713{
9714struct sockaddr_in6 in;
9715        AF_INET6;
9716        IN6_IS_ADDR_LINKLOCAL(&in.sin6_addr);
9717  ;
9718  return 0;
9719}
9720_ACEOF
9721if ac_fn_c_try_compile "$LINENO"
9722then :
9723  krb5_cv_inet6=yes
9724else $as_nop
9725  krb5_cv_inet6=no
9726fi
9727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9728fi
9729fi
9730
9731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6" >&5
9732printf "%s\n" "$krb5_cv_inet6" >&6; }
9733if test "$krb5_cv_inet6" = no && test "$ac_cv_func_inet_ntop" = yes; then
9734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support with -DINET6" >&5
9735printf %s "checking for IPv6 compile-time support with -DINET6... " >&6; }
9736if test ${krb5_cv_inet6_with_dinet6+y}
9737then :
9738  printf %s "(cached) " >&6
9739else $as_nop
9740
9741old_CC="$CC"
9742CC="$CC -DINET6"
9743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h.  */
9745#ifdef HAVE_SYS_TYPES_H
9746      #include <sys/types.h>
9747      #endif
9748      #include <sys/socket.h>
9749      #include <netinet/in.h>
9750      #include <netdb.h>
9751
9752int
9753main (void)
9754{
9755struct sockaddr_in6 in;
9756      AF_INET6;
9757      IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr);
9758  ;
9759  return 0;
9760}
9761_ACEOF
9762if ac_fn_c_try_compile "$LINENO"
9763then :
9764  krb5_cv_inet6_with_dinet6=yes
9765else $as_nop
9766  krb5_cv_inet6_with_dinet6=no
9767fi
9768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9769CC="$old_CC"
9770fi
9771
9772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6_with_dinet6" >&5
9773printf "%s\n" "$krb5_cv_inet6_with_dinet6" >&6; }
9774fi
9775if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes; then
9776  if test "$krb5_cv_inet6_with_dinet6" = yes; then
9777
9778printf "%s\n" "#define INET6 1" >>confdefs.h
9779
9780  fi
9781fi
9782
9783 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
9784#include <sys/socket.h>
9785"
9786if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
9787then :
9788
9789printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
9790
9791
9792fi
9793
9794
9795ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
9796if test "x$ac_cv_func_sigprocmask" = xyes
9797then :
9798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigset_t and POSIX_SIGNALS" >&5
9799printf %s "checking for sigset_t and POSIX_SIGNALS... " >&6; }
9800if test ${krb5_cv_type_sigset_t+y}
9801then :
9802  printf %s "(cached) " >&6
9803else $as_nop
9804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h.  */
9806#include <signal.h>
9807
9808int
9809main (void)
9810{
9811sigset_t x
9812  ;
9813  return 0;
9814}
9815_ACEOF
9816if ac_fn_c_try_compile "$LINENO"
9817then :
9818  krb5_cv_type_sigset_t=yes
9819else $as_nop
9820  krb5_cv_type_sigset_t=no
9821fi
9822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9823fi
9824
9825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_sigset_t" >&5
9826printf "%s\n" "$krb5_cv_type_sigset_t" >&6; }
9827if test $krb5_cv_type_sigset_t = yes; then
9828
9829printf "%s\n" "#define POSIX_SIGNALS 1" >>confdefs.h
9830
9831fi
9832
9833fi
9834
9835
9836# --with-vague-errors disables useful error messages.
9837
9838
9839# Check whether --with-vague-errors was given.
9840if test ${with_vague_errors+y}
9841then :
9842  withval=$with_vague_errors;
9843else $as_nop
9844  withval=no
9845fi
9846
9847if test "$withval" = yes; then
9848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Supplying vague error messages to KDC clients" >&5
9849printf "%s\n" "$as_me: Supplying vague error messages to KDC clients" >&6;}
9850
9851printf "%s\n" "#define KRBCONF_VAGUE_ERRORS 1" >>confdefs.h
9852
9853fi
9854
9855# Check which (if any) audit plugin to build
9856audit_plugin=""
9857# Check whether --enable-audit-plugin was given.
9858if test ${enable_audit_plugin+y}
9859then :
9860  enableval=$enable_audit_plugin;
9861else $as_nop
9862  enableval=no
9863fi
9864
9865if test "$enableval" != no; then
9866    case "$enableval" in
9867    simple)
9868        # if audit_log_user_message is found, we assume
9869        # that audit_open and audit_close are also defined.
9870        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_message in -laudit" >&5
9871printf %s "checking for audit_log_user_message in -laudit... " >&6; }
9872if test ${ac_cv_lib_audit_audit_log_user_message+y}
9873then :
9874  printf %s "(cached) " >&6
9875else $as_nop
9876  ac_check_lib_save_LIBS=$LIBS
9877LIBS="-laudit  $LIBS"
9878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879/* end confdefs.h.  */
9880
9881/* Override any GCC internal prototype to avoid an error.
9882   Use char because int might match the return type of a GCC
9883   builtin and then its argument prototype would still apply.  */
9884char audit_log_user_message ();
9885int
9886main (void)
9887{
9888return audit_log_user_message ();
9889  ;
9890  return 0;
9891}
9892_ACEOF
9893if ac_fn_c_try_link "$LINENO"
9894then :
9895  ac_cv_lib_audit_audit_log_user_message=yes
9896else $as_nop
9897  ac_cv_lib_audit_audit_log_user_message=no
9898fi
9899rm -f core conftest.err conftest.$ac_objext conftest.beam \
9900    conftest$ac_exeext conftest.$ac_ext
9901LIBS=$ac_check_lib_save_LIBS
9902fi
9903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_message" >&5
9904printf "%s\n" "$ac_cv_lib_audit_audit_log_user_message" >&6; }
9905if test "x$ac_cv_lib_audit_audit_log_user_message" = xyes
9906then :
9907  AUDIT_IMPL_LIBS=-laudit
9908                     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"
9909
9910
9911
9912                     audit_plugin=plugins/audit/simple
9913else $as_nop
9914  as_fn_error $? "libaudit not found or undefined symbol audit_log_user_message" "$LINENO" 5
9915fi
9916
9917        ;;
9918    *)
9919        as_fn_error $? "Unknown audit plugin implementation $enableval." "$LINENO" 5
9920        ;;
9921    esac
9922fi
9923
9924
9925
9926# WITH_CRYPTO_IMPL
9927
9928CRYPTO_IMPL=builtin
9929
9930# Check whether --with-crypto-impl was given.
9931if test ${with_crypto_impl+y}
9932then :
9933  withval=$with_crypto_impl; CRYPTO_IMPL=$withval
9934   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: k5crypto will use '$withval'" >&5
9935printf "%s\n" "$as_me: k5crypto will use '$withval'" >&6;}
9936fi
9937
9938
9939CRYPTO_BUILTIN_TESTS=no
9940case $CRYPTO_IMPL in
9941builtin)
9942  CRYPTO_BUILTIN_TESTS=yes
9943  ;;
9944openssl)
9945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PKCS7_get_signer_info in -lcrypto" >&5
9946printf %s "checking for PKCS7_get_signer_info in -lcrypto... " >&6; }
9947if test ${ac_cv_lib_crypto_PKCS7_get_signer_info+y}
9948then :
9949  printf %s "(cached) " >&6
9950else $as_nop
9951  ac_check_lib_save_LIBS=$LIBS
9952LIBS="-lcrypto  $LIBS"
9953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954/* end confdefs.h.  */
9955
9956/* Override any GCC internal prototype to avoid an error.
9957   Use char because int might match the return type of a GCC
9958   builtin and then its argument prototype would still apply.  */
9959char PKCS7_get_signer_info ();
9960int
9961main (void)
9962{
9963return PKCS7_get_signer_info ();
9964  ;
9965  return 0;
9966}
9967_ACEOF
9968if ac_fn_c_try_link "$LINENO"
9969then :
9970  ac_cv_lib_crypto_PKCS7_get_signer_info=yes
9971else $as_nop
9972  ac_cv_lib_crypto_PKCS7_get_signer_info=no
9973fi
9974rm -f core conftest.err conftest.$ac_objext conftest.beam \
9975    conftest$ac_exeext conftest.$ac_ext
9976LIBS=$ac_check_lib_save_LIBS
9977fi
9978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_PKCS7_get_signer_info" >&5
9979printf "%s\n" "$ac_cv_lib_crypto_PKCS7_get_signer_info" >&6; }
9980if test "x$ac_cv_lib_crypto_PKCS7_get_signer_info" = xyes
9981then :
9982  printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
9983
9984  LIBS="-lcrypto $LIBS"
9985
9986fi
9987
9988
9989printf "%s\n" "#define CRYPTO_OPENSSL 1" >>confdefs.h
9990
9991  ;;
9992*)
9993  as_fn_error $? "Unknown crypto implementation $withval" "$LINENO" 5
9994  ;;
9995esac
9996
9997
9998
9999
10000# WITH_TLS_IMPL
10001
10002
10003# Check whether --with-tls-impl was given.
10004if test ${with_tls_impl+y}
10005then :
10006  withval=$with_tls_impl; TLS_IMPL=$withval
10007else $as_nop
10008  TLS_IMPL=auto
10009fi
10010
10011case "$TLS_IMPL" in
10012openssl|auto)
10013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
10014printf %s "checking for SSL_CTX_new in -lssl... " >&6; }
10015if test ${ac_cv_lib_ssl_SSL_CTX_new+y}
10016then :
10017  printf %s "(cached) " >&6
10018else $as_nop
10019  ac_check_lib_save_LIBS=$LIBS
10020LIBS="-lssl -lcrypto $LIBS"
10021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022/* end confdefs.h.  */
10023
10024/* Override any GCC internal prototype to avoid an error.
10025   Use char because int might match the return type of a GCC
10026   builtin and then its argument prototype would still apply.  */
10027char SSL_CTX_new ();
10028int
10029main (void)
10030{
10031return SSL_CTX_new ();
10032  ;
10033  return 0;
10034}
10035_ACEOF
10036if ac_fn_c_try_link "$LINENO"
10037then :
10038  ac_cv_lib_ssl_SSL_CTX_new=yes
10039else $as_nop
10040  ac_cv_lib_ssl_SSL_CTX_new=no
10041fi
10042rm -f core conftest.err conftest.$ac_objext conftest.beam \
10043    conftest$ac_exeext conftest.$ac_ext
10044LIBS=$ac_check_lib_save_LIBS
10045fi
10046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
10047printf "%s\n" "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
10048if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
10049then :
10050  have_lib_ssl=true
10051else $as_nop
10052  have_lib_ssl=false
10053fi
10054
10055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
10056printf %s "checking for OpenSSL... " >&6; }
10057  if test x$have_lib_ssl = xtrue ; then
10058
10059printf "%s\n" "#define TLS_IMPL_OPENSSL 1" >>confdefs.h
10060
10061    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10062printf "%s\n" "yes" >&6; }
10063    TLS_IMPL_LIBS="-lssl -lcrypto"
10064    TLS_IMPL=openssl
10065    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: TLS module will use OpenSSL" >&5
10066printf "%s\n" "$as_me: TLS module will use OpenSSL" >&6;}
10067  else
10068    if test "$TLS_IMPL" = openssl ; then
10069      as_fn_error $? "OpenSSL not found!" "$LINENO" 5
10070    else
10071      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found!" >&5
10072printf "%s\n" "$as_me: WARNING: OpenSSL not found!" >&2;}
10073    fi
10074    TLS_IMPL=no
10075    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: building without TLS support" >&5
10076printf "%s\n" "$as_me: building without TLS support" >&6;}
10077  fi
10078  ;;
10079no)
10080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: building without TLS support" >&5
10081printf "%s\n" "$as_me: building without TLS support" >&6;}
10082  ;;
10083*)
10084  as_fn_error $? "Unsupported TLS implementation $withval" "$LINENO" 5
10085  ;;
10086esac
10087
10088if test "$TLS_IMPL" = no; then
10089
10090printf "%s\n" "#define TLS_IMPL_NONE 1" >>confdefs.h
10091
10092fi
10093
10094
10095
10096
10097
10098
10099# Check whether --with-keyutils was given.
10100if test ${with_keyutils+y}
10101then :
10102  withval=$with_keyutils;
10103else $as_nop
10104  with_keyutils=check
10105fi
10106
10107if test "$with_keyutils" != no; then
10108  have_keyutils=false
10109         for ac_header in keyutils.h
10110do :
10111  ac_fn_c_check_header_compile "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
10112if test "x$ac_cv_header_keyutils_h" = xyes
10113then :
10114  printf "%s\n" "#define HAVE_KEYUTILS_H 1" >>confdefs.h
10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for add_key in -lkeyutils" >&5
10116printf %s "checking for add_key in -lkeyutils... " >&6; }
10117if test ${ac_cv_lib_keyutils_add_key+y}
10118then :
10119  printf %s "(cached) " >&6
10120else $as_nop
10121  ac_check_lib_save_LIBS=$LIBS
10122LIBS="-lkeyutils  $LIBS"
10123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124/* end confdefs.h.  */
10125
10126/* Override any GCC internal prototype to avoid an error.
10127   Use char because int might match the return type of a GCC
10128   builtin and then its argument prototype would still apply.  */
10129char add_key ();
10130int
10131main (void)
10132{
10133return add_key ();
10134  ;
10135  return 0;
10136}
10137_ACEOF
10138if ac_fn_c_try_link "$LINENO"
10139then :
10140  ac_cv_lib_keyutils_add_key=yes
10141else $as_nop
10142  ac_cv_lib_keyutils_add_key=no
10143fi
10144rm -f core conftest.err conftest.$ac_objext conftest.beam \
10145    conftest$ac_exeext conftest.$ac_ext
10146LIBS=$ac_check_lib_save_LIBS
10147fi
10148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_add_key" >&5
10149printf "%s\n" "$ac_cv_lib_keyutils_add_key" >&6; }
10150if test "x$ac_cv_lib_keyutils_add_key" = xyes
10151then :
10152  have_keyutils=true
10153fi
10154
10155fi
10156
10157done
10158  if test "$have_keyutils" = true; then
10159
10160printf "%s\n" "#define USE_KEYRING_CCACHE 1" >>confdefs.h
10161
10162    LIBS="-lkeyutils $LIBS"
10163    # If libkeyutils supports persistent keyrings, use them.
10164    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for keyctl_get_persistent in -lkeyutils" >&5
10165printf %s "checking for keyctl_get_persistent in -lkeyutils... " >&6; }
10166if test ${ac_cv_lib_keyutils_keyctl_get_persistent+y}
10167then :
10168  printf %s "(cached) " >&6
10169else $as_nop
10170  ac_check_lib_save_LIBS=$LIBS
10171LIBS="-lkeyutils  $LIBS"
10172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173/* end confdefs.h.  */
10174
10175/* Override any GCC internal prototype to avoid an error.
10176   Use char because int might match the return type of a GCC
10177   builtin and then its argument prototype would still apply.  */
10178char keyctl_get_persistent ();
10179int
10180main (void)
10181{
10182return keyctl_get_persistent ();
10183  ;
10184  return 0;
10185}
10186_ACEOF
10187if ac_fn_c_try_link "$LINENO"
10188then :
10189  ac_cv_lib_keyutils_keyctl_get_persistent=yes
10190else $as_nop
10191  ac_cv_lib_keyutils_keyctl_get_persistent=no
10192fi
10193rm -f core conftest.err conftest.$ac_objext conftest.beam \
10194    conftest$ac_exeext conftest.$ac_ext
10195LIBS=$ac_check_lib_save_LIBS
10196fi
10197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_get_persistent" >&5
10198printf "%s\n" "$ac_cv_lib_keyutils_keyctl_get_persistent" >&6; }
10199if test "x$ac_cv_lib_keyutils_keyctl_get_persistent" = xyes
10200then :
10201
10202printf "%s\n" "#define HAVE_PERSISTENT_KEYRING 1" >>confdefs.h
10203
10204
10205fi
10206
10207  elif test "$with_keyutils" = yes; then
10208    as_fn_error $? "libkeyutils not found" "$LINENO" 5
10209  fi
10210fi
10211
10212# The SPAKE preauth plugin currently supports edwards25519 natively,
10213# and can support three NIST groups using OpenSSL.
10214HAVE_SPAKE_OPENSSL=no
10215
10216# Check whether --with-spake-openssl was given.
10217if test ${with_spake_openssl+y}
10218then :
10219  withval=$with_spake_openssl;
10220else $as_nop
10221  withval=auto
10222fi
10223
10224if test "$withval" = auto -o "$withval" = yes; then
10225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EC_POINT_new in -lcrypto" >&5
10226printf %s "checking for EC_POINT_new in -lcrypto... " >&6; }
10227if test ${ac_cv_lib_crypto_EC_POINT_new+y}
10228then :
10229  printf %s "(cached) " >&6
10230else $as_nop
10231  ac_check_lib_save_LIBS=$LIBS
10232LIBS="-lcrypto  $LIBS"
10233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234/* end confdefs.h.  */
10235
10236/* Override any GCC internal prototype to avoid an error.
10237   Use char because int might match the return type of a GCC
10238   builtin and then its argument prototype would still apply.  */
10239char EC_POINT_new ();
10240int
10241main (void)
10242{
10243return EC_POINT_new ();
10244  ;
10245  return 0;
10246}
10247_ACEOF
10248if ac_fn_c_try_link "$LINENO"
10249then :
10250  ac_cv_lib_crypto_EC_POINT_new=yes
10251else $as_nop
10252  ac_cv_lib_crypto_EC_POINT_new=no
10253fi
10254rm -f core conftest.err conftest.$ac_objext conftest.beam \
10255    conftest$ac_exeext conftest.$ac_ext
10256LIBS=$ac_check_lib_save_LIBS
10257fi
10258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EC_POINT_new" >&5
10259printf "%s\n" "$ac_cv_lib_crypto_EC_POINT_new" >&6; }
10260if test "x$ac_cv_lib_crypto_EC_POINT_new" = xyes
10261then :
10262  have_crypto=true
10263else $as_nop
10264  have_crypto=false
10265fi
10266
10267  if test "$have_crypto" = true; then
10268
10269printf "%s\n" "#define SPAKE_OPENSSL 1" >>confdefs.h
10270
10271    SPAKE_OPENSSL_LIBS=-lcrypto
10272    HAVE_SPAKE_OPENSSL=yes
10273  elif test "$withval" = yes; then
10274    as_fn_error $? "OpenSSL libcrypto not found" "$LINENO" 5
10275  fi
10276fi
10277
10278
10279
10280# Check whether --enable-aesni was given.
10281if test ${enable_aesni+y}
10282then :
10283  enableval=$enable_aesni;
10284else $as_nop
10285  enable_aesni=check
10286fi
10287
10288if test "$CRYPTO_IMPL" = builtin -a "x$enable_aesni" != xno; then
10289    case "$host" in
10290    i686-*)
10291	aesni_obj=iaesx86.o
10292	aesni_machine=x86
10293	;;
10294    x86_64-*)
10295	aesni_obj=iaesx64.o
10296	aesni_machine=amd64
10297	;;
10298    esac
10299    case "$host" in
10300    *-*-linux* | *-*-gnu* | *-*-*bsd* | *-*-solaris*)
10301	# All Unix-like platforms need -D__linux__ for iaesx64.s to
10302	# use the System V x86-64 calling convention.
10303	aesni_flags="-D__linux__ -f elf -m $aesni_machine"
10304	;;
10305    esac
10306    if test "x$aesni_obj" != x && test "x$aesni_flags" != x; then
10307	# Extract the first word of "yasm", so it can be a program name with args.
10308set dummy yasm; ac_word=$2
10309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310printf %s "checking for $ac_word... " >&6; }
10311if test ${ac_cv_prog_YASM+y}
10312then :
10313  printf %s "(cached) " >&6
10314else $as_nop
10315  if test -n "$YASM"; then
10316  ac_cv_prog_YASM="$YASM" # Let the user override the test.
10317else
10318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319for as_dir in $PATH
10320do
10321  IFS=$as_save_IFS
10322  case $as_dir in #(((
10323    '') as_dir=./ ;;
10324    */) ;;
10325    *) as_dir=$as_dir/ ;;
10326  esac
10327    for ac_exec_ext in '' $ac_executable_extensions; do
10328  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10329    ac_cv_prog_YASM="yasm"
10330    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10331    break 2
10332  fi
10333done
10334  done
10335IFS=$as_save_IFS
10336
10337fi
10338fi
10339YASM=$ac_cv_prog_YASM
10340if test -n "$YASM"; then
10341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YASM" >&5
10342printf "%s\n" "$YASM" >&6; }
10343else
10344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345printf "%s\n" "no" >&6; }
10346fi
10347
10348
10349	ac_fn_c_check_header_compile "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
10350if test "x$ac_cv_header_cpuid_h" = xyes
10351then :
10352  printf "%s\n" "#define HAVE_CPUID_H 1" >>confdefs.h
10353
10354fi
10355
10356	if test x"$YASM" != x -a "x$ac_cv_header_cpuid_h" = xyes; then
10357	    AESNI_OBJ=$aesni_obj
10358	    AESNI_FLAGS=$aesni_flags
10359
10360printf "%s\n" "#define AESNI 1" >>confdefs.h
10361
10362	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building with AES-NI support" >&5
10363printf "%s\n" "$as_me: Building with AES-NI support" >&6;}
10364	fi
10365    fi
10366    if test "x$enable_aesni" = xyes -a "x$AESNI_OBJ" = x; then
10367	as_fn_error $? "AES-NI support requested but cannot be built" "$LINENO" 5
10368    fi
10369fi
10370
10371
10372
10373# Check whether --enable-kdc-lookaside-cache was given.
10374if test ${enable_kdc_lookaside_cache+y}
10375then :
10376  enableval=$enable_kdc_lookaside_cache;
10377else $as_nop
10378  enableval=yes
10379fi
10380
10381if test "$enableval" = no ; then
10382
10383printf "%s\n" "#define NOCACHE 1" >>confdefs.h
10384
10385fi
10386KRB5_RUN_ENV="$RUN_ENV"
10387KRB5_RUN_VARS="$RUN_VARS"
10388
10389
10390
10391# asan is a gcc and clang facility to instrument the code with memory
10392# error checking.  To use it, we compile C and C++ source files with
10393# -fsanitize=address, and set ASAN=yes to suppress the undefined
10394# symbols check when building shared libraries.
10395# Check whether --enable-asan was given.
10396if test ${enable_asan+y}
10397then :
10398  enableval=$enable_asan;
10399else $as_nop
10400  enable_asan=no
10401fi
10402
10403if test "$enable_asan" != no; then
10404    if test "$enable_asan" = yes; then
10405        enable_asan=address
10406    fi
10407    ASAN_FLAGS="$DEFS -fsanitize=$enable_asan"
10408    ASAN=yes
10409    UNDEF_CHECK=
10410else
10411    ASAN_FLAGS=
10412    ASAN=no
10413fi
10414
10415
10416
10417# Build using OSS-Fuzz build processes for compiling fuzzing targets.
10418# LIB_FUZZING_ENGINE is used for supporting various types of fuzzers.
10419fuzz_dir=""
10420FUZZ_LDFLAGS=
10421# Check whether --enable-ossfuzz was given.
10422if test ${enable_ossfuzz+y}
10423then :
10424  enableval=$enable_ossfuzz;
10425else $as_nop
10426  enable_ossfuzz=no
10427fi
10428
10429if test "$enable_ossfuzz" != no; then
10430    # Check if LIB_FUZZING_ENGINE environment is not empty.
10431    if test -z "$LIB_FUZZING_ENGINE"; then
10432        as_fn_error $? "LIB_FUZZING_ENGINE environment variable is not set" "$LINENO" 5
10433    fi
10434    fuzz_dir="fuzzing"
10435    FUZZ_LDFLAGS="$LIB_FUZZING_ENGINE"
10436    ac_config_files="$ac_config_files tests/fuzzing/Makefile:$srcdir/./config/pre.in:tests/fuzzing/Makefile.in:tests/fuzzing/deps:$srcdir/./config/post.in"
10437
10438
10439
10440fi
10441
10442
10443
10444# from old include/configure.in
10445
10446
10447ac_config_headers="$ac_config_headers include/autoconf.h"
10448
10449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10450printf %s "checking for an ANSI C-conforming const... " >&6; }
10451if test ${ac_cv_c_const+y}
10452then :
10453  printf %s "(cached) " >&6
10454else $as_nop
10455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456/* end confdefs.h.  */
10457
10458int
10459main (void)
10460{
10461
10462#ifndef __cplusplus
10463  /* Ultrix mips cc rejects this sort of thing.  */
10464  typedef int charset[2];
10465  const charset cs = { 0, 0 };
10466  /* SunOS 4.1.1 cc rejects this.  */
10467  char const *const *pcpcc;
10468  char **ppc;
10469  /* NEC SVR4.0.2 mips cc rejects this.  */
10470  struct point {int x, y;};
10471  static struct point const zero = {0,0};
10472  /* IBM XL C 1.02.0.0 rejects this.
10473     It does not let you subtract one const X* pointer from another in
10474     an arm of an if-expression whose if-part is not a constant
10475     expression */
10476  const char *g = "string";
10477  pcpcc = &g + (g ? g-g : 0);
10478  /* HPUX 7.0 cc rejects these. */
10479  ++pcpcc;
10480  ppc = (char**) pcpcc;
10481  pcpcc = (char const *const *) ppc;
10482  { /* SCO 3.2v4 cc rejects this sort of thing.  */
10483    char tx;
10484    char *t = &tx;
10485    char const *s = 0 ? (char *) 0 : (char const *) 0;
10486
10487    *t++ = 0;
10488    if (s) return 0;
10489  }
10490  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10491    int x[] = {25, 17};
10492    const int *foo = &x[0];
10493    ++foo;
10494  }
10495  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10496    typedef const int *iptr;
10497    iptr p = 0;
10498    ++p;
10499  }
10500  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
10501       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10502    struct s { int j; const int *ap[3]; } bx;
10503    struct s *b = &bx; b->j = 5;
10504  }
10505  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10506    const int foo = 10;
10507    if (!foo) return 0;
10508  }
10509  return !cs[0] && !zero.x;
10510#endif
10511
10512  ;
10513  return 0;
10514}
10515_ACEOF
10516if ac_fn_c_try_compile "$LINENO"
10517then :
10518  ac_cv_c_const=yes
10519else $as_nop
10520  ac_cv_c_const=no
10521fi
10522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10523fi
10524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10525printf "%s\n" "$ac_cv_c_const" >&6; }
10526if test $ac_cv_c_const = no; then
10527
10528printf "%s\n" "#define const /**/" >>confdefs.h
10529
10530fi
10531
10532ac_header_dirent=no
10533for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10534  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10536printf %s "checking for $ac_hdr that defines DIR... " >&6; }
10537if eval test \${$as_ac_Header+y}
10538then :
10539  printf %s "(cached) " >&6
10540else $as_nop
10541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542/* end confdefs.h.  */
10543#include <sys/types.h>
10544#include <$ac_hdr>
10545
10546int
10547main (void)
10548{
10549if ((DIR *) 0)
10550return 0;
10551  ;
10552  return 0;
10553}
10554_ACEOF
10555if ac_fn_c_try_compile "$LINENO"
10556then :
10557  eval "$as_ac_Header=yes"
10558else $as_nop
10559  eval "$as_ac_Header=no"
10560fi
10561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10562fi
10563eval ac_res=\$$as_ac_Header
10564	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10565printf "%s\n" "$ac_res" >&6; }
10566if eval test \"x\$"$as_ac_Header"\" = x"yes"
10567then :
10568  cat >>confdefs.h <<_ACEOF
10569#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
10570_ACEOF
10571
10572ac_header_dirent=$ac_hdr; break
10573fi
10574
10575done
10576# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10577if test $ac_header_dirent = dirent.h; then
10578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10579printf %s "checking for library containing opendir... " >&6; }
10580if test ${ac_cv_search_opendir+y}
10581then :
10582  printf %s "(cached) " >&6
10583else $as_nop
10584  ac_func_search_save_LIBS=$LIBS
10585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586/* end confdefs.h.  */
10587
10588/* Override any GCC internal prototype to avoid an error.
10589   Use char because int might match the return type of a GCC
10590   builtin and then its argument prototype would still apply.  */
10591char opendir ();
10592int
10593main (void)
10594{
10595return opendir ();
10596  ;
10597  return 0;
10598}
10599_ACEOF
10600for ac_lib in '' dir
10601do
10602  if test -z "$ac_lib"; then
10603    ac_res="none required"
10604  else
10605    ac_res=-l$ac_lib
10606    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10607  fi
10608  if ac_fn_c_try_link "$LINENO"
10609then :
10610  ac_cv_search_opendir=$ac_res
10611fi
10612rm -f core conftest.err conftest.$ac_objext conftest.beam \
10613    conftest$ac_exeext
10614  if test ${ac_cv_search_opendir+y}
10615then :
10616  break
10617fi
10618done
10619if test ${ac_cv_search_opendir+y}
10620then :
10621
10622else $as_nop
10623  ac_cv_search_opendir=no
10624fi
10625rm conftest.$ac_ext
10626LIBS=$ac_func_search_save_LIBS
10627fi
10628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10629printf "%s\n" "$ac_cv_search_opendir" >&6; }
10630ac_res=$ac_cv_search_opendir
10631if test "$ac_res" != no
10632then :
10633  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10634
10635fi
10636
10637else
10638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10639printf %s "checking for library containing opendir... " >&6; }
10640if test ${ac_cv_search_opendir+y}
10641then :
10642  printf %s "(cached) " >&6
10643else $as_nop
10644  ac_func_search_save_LIBS=$LIBS
10645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646/* end confdefs.h.  */
10647
10648/* Override any GCC internal prototype to avoid an error.
10649   Use char because int might match the return type of a GCC
10650   builtin and then its argument prototype would still apply.  */
10651char opendir ();
10652int
10653main (void)
10654{
10655return opendir ();
10656  ;
10657  return 0;
10658}
10659_ACEOF
10660for ac_lib in '' x
10661do
10662  if test -z "$ac_lib"; then
10663    ac_res="none required"
10664  else
10665    ac_res=-l$ac_lib
10666    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10667  fi
10668  if ac_fn_c_try_link "$LINENO"
10669then :
10670  ac_cv_search_opendir=$ac_res
10671fi
10672rm -f core conftest.err conftest.$ac_objext conftest.beam \
10673    conftest$ac_exeext
10674  if test ${ac_cv_search_opendir+y}
10675then :
10676  break
10677fi
10678done
10679if test ${ac_cv_search_opendir+y}
10680then :
10681
10682else $as_nop
10683  ac_cv_search_opendir=no
10684fi
10685rm conftest.$ac_ext
10686LIBS=$ac_func_search_save_LIBS
10687fi
10688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10689printf "%s\n" "$ac_cv_search_opendir" >&6; }
10690ac_res=$ac_cv_search_opendir
10691if test "$ac_res" != no
10692then :
10693  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10694
10695fi
10696
10697fi
10698
10699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
10700printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
10701if test ${ac_cv_c_undeclared_builtin_options+y}
10702then :
10703  printf %s "(cached) " >&6
10704else $as_nop
10705  ac_save_CFLAGS=$CFLAGS
10706   ac_cv_c_undeclared_builtin_options='cannot detect'
10707   for ac_arg in '' -fno-builtin; do
10708     CFLAGS="$ac_save_CFLAGS $ac_arg"
10709     # This test program should *not* compile successfully.
10710     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711/* end confdefs.h.  */
10712
10713int
10714main (void)
10715{
10716(void) strchr;
10717  ;
10718  return 0;
10719}
10720_ACEOF
10721if ac_fn_c_try_compile "$LINENO"
10722then :
10723
10724else $as_nop
10725  # This test program should compile successfully.
10726        # No library function is consistently available on
10727        # freestanding implementations, so test against a dummy
10728        # declaration.  Include always-available headers on the
10729        # off chance that they somehow elicit warnings.
10730        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731/* end confdefs.h.  */
10732#include <float.h>
10733#include <limits.h>
10734#include <stdarg.h>
10735#include <stddef.h>
10736extern void ac_decl (int, char *);
10737
10738int
10739main (void)
10740{
10741(void) ac_decl (0, (char *) 0);
10742  (void) ac_decl;
10743
10744  ;
10745  return 0;
10746}
10747_ACEOF
10748if ac_fn_c_try_compile "$LINENO"
10749then :
10750  if test x"$ac_arg" = x
10751then :
10752  ac_cv_c_undeclared_builtin_options='none needed'
10753else $as_nop
10754  ac_cv_c_undeclared_builtin_options=$ac_arg
10755fi
10756          break
10757fi
10758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10759fi
10760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10761    done
10762    CFLAGS=$ac_save_CFLAGS
10763
10764fi
10765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
10766printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
10767  case $ac_cv_c_undeclared_builtin_options in #(
10768  'cannot detect') :
10769    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10770printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
10771as_fn_error $? "cannot make $CC report undeclared builtins
10772See \`config.log' for more details" "$LINENO" 5; } ;; #(
10773  'none needed') :
10774    ac_c_undeclared_builtin_options='' ;; #(
10775  *) :
10776    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
10777esac
10778
10779ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
10780if test "x$ac_cv_have_decl_strerror_r" = xyes
10781then :
10782  ac_have_decl=1
10783else $as_nop
10784  ac_have_decl=0
10785fi
10786printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
10787
10788
10789if test $ac_cv_have_decl_strerror_r = yes; then
10790  # For backward compatibility's sake, define HAVE_STRERROR_R.
10791  # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
10792  # as AC_CHECK_DECLS_ONCE.)
10793
10794printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
10795
10796fi
10797
10798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
10799printf %s "checking whether strerror_r returns char *... " >&6; }
10800if test ${ac_cv_func_strerror_r_char_p+y}
10801then :
10802  printf %s "(cached) " >&6
10803else $as_nop
10804
10805    ac_cv_func_strerror_r_char_p=no
10806    if test $ac_cv_have_decl_strerror_r = yes; then
10807      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808/* end confdefs.h.  */
10809#include <string.h>
10810int
10811main (void)
10812{
10813
10814	  char buf[100];
10815	  char x = *strerror_r (0, buf, sizeof buf);
10816	  char *p = strerror_r (0, buf, sizeof buf);
10817	  return !p || x;
10818
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_compile "$LINENO"
10824then :
10825  ac_cv_func_strerror_r_char_p=yes
10826fi
10827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10828
10829    fi
10830
10831fi
10832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
10833printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
10834if test $ac_cv_func_strerror_r_char_p = yes; then
10835
10836printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
10837
10838fi
10839
10840ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
10841if test "x$ac_cv_func_strdup" = xyes
10842then :
10843  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
10844
10845fi
10846ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
10847if test "x$ac_cv_func_setvbuf" = xyes
10848then :
10849  printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
10850
10851fi
10852ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
10853if test "x$ac_cv_func_seteuid" = xyes
10854then :
10855  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
10856
10857fi
10858ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
10859if test "x$ac_cv_func_setresuid" = xyes
10860then :
10861  printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
10862
10863fi
10864ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
10865if test "x$ac_cv_func_setreuid" = xyes
10866then :
10867  printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
10868
10869fi
10870ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
10871if test "x$ac_cv_func_setegid" = xyes
10872then :
10873  printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
10874
10875fi
10876ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
10877if test "x$ac_cv_func_setresgid" = xyes
10878then :
10879  printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
10880
10881fi
10882ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
10883if test "x$ac_cv_func_setregid" = xyes
10884then :
10885  printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
10886
10887fi
10888ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
10889if test "x$ac_cv_func_setsid" = xyes
10890then :
10891  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
10892
10893fi
10894ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
10895if test "x$ac_cv_func_flock" = xyes
10896then :
10897  printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
10898
10899fi
10900ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
10901if test "x$ac_cv_func_fchmod" = xyes
10902then :
10903  printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
10904
10905fi
10906ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
10907if test "x$ac_cv_func_chmod" = xyes
10908then :
10909  printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
10910
10911fi
10912ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
10913if test "x$ac_cv_func_strptime" = xyes
10914then :
10915  printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
10916
10917fi
10918ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
10919if test "x$ac_cv_func_geteuid" = xyes
10920then :
10921  printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
10922
10923fi
10924ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
10925if test "x$ac_cv_func_setenv" = xyes
10926then :
10927  printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
10928
10929fi
10930ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
10931if test "x$ac_cv_func_unsetenv" = xyes
10932then :
10933  printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
10934
10935fi
10936ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
10937if test "x$ac_cv_func_getenv" = xyes
10938then :
10939  printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
10940
10941fi
10942ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
10943if test "x$ac_cv_func_gmtime_r" = xyes
10944then :
10945  printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
10946
10947fi
10948ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
10949if test "x$ac_cv_func_localtime_r" = xyes
10950then :
10951  printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
10952
10953fi
10954ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16"
10955if test "x$ac_cv_func_bswap16" = xyes
10956then :
10957  printf "%s\n" "#define HAVE_BSWAP16 1" >>confdefs.h
10958
10959fi
10960ac_fn_c_check_func "$LINENO" "bswap64" "ac_cv_func_bswap64"
10961if test "x$ac_cv_func_bswap64" = xyes
10962then :
10963  printf "%s\n" "#define HAVE_BSWAP64 1" >>confdefs.h
10964
10965fi
10966ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10967if test "x$ac_cv_func_mkstemp" = xyes
10968then :
10969  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
10970
10971fi
10972ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell"
10973if test "x$ac_cv_func_getusershell" = xyes
10974then :
10975  printf "%s\n" "#define HAVE_GETUSERSHELL 1" >>confdefs.h
10976
10977fi
10978ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
10979if test "x$ac_cv_func_access" = xyes
10980then :
10981  printf "%s\n" "#define HAVE_ACCESS 1" >>confdefs.h
10982
10983fi
10984ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
10985if test "x$ac_cv_func_getcwd" = xyes
10986then :
10987  printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
10988
10989fi
10990ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
10991if test "x$ac_cv_func_srand48" = xyes
10992then :
10993  printf "%s\n" "#define HAVE_SRAND48 1" >>confdefs.h
10994
10995fi
10996ac_fn_c_check_func "$LINENO" "srand" "ac_cv_func_srand"
10997if test "x$ac_cv_func_srand" = xyes
10998then :
10999  printf "%s\n" "#define HAVE_SRAND 1" >>confdefs.h
11000
11001fi
11002ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
11003if test "x$ac_cv_func_srandom" = xyes
11004then :
11005  printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
11006
11007fi
11008ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
11009if test "x$ac_cv_func_stat" = xyes
11010then :
11011  printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
11012
11013fi
11014ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
11015if test "x$ac_cv_func_strchr" = xyes
11016then :
11017  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
11018
11019fi
11020ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
11021if test "x$ac_cv_func_strerror" = xyes
11022then :
11023  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
11024
11025fi
11026ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
11027if test "x$ac_cv_func_timegm" = xyes
11028then :
11029  printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
11030
11031fi
11032ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
11033if test "x$ac_cv_func_explicit_bzero" = xyes
11034then :
11035  printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
11036
11037fi
11038ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
11039if test "x$ac_cv_func_explicit_memset" = xyes
11040then :
11041  printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
11042
11043fi
11044ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
11045if test "x$ac_cv_func_getresuid" = xyes
11046then :
11047  printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
11048
11049fi
11050ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"
11051if test "x$ac_cv_func_getresgid" = xyes
11052then :
11053  printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h
11054
11055fi
11056ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
11057if test "x$ac_cv_func_getentropy" = xyes
11058then :
11059  printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
11060
11061fi
11062
11063
11064ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11065if test "x$ac_cv_func_mkstemp" = xyes
11066then :
11067  MKSTEMP_ST_OBJ=
11068MKSTEMP_OBJ=
11069else $as_nop
11070  MKSTEMP_ST_OBJ='mkstemp.o'
11071MKSTEMP_OBJ='$(OUTPRE)mkstemp.$(OBJEXT)'
11072EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_mkstemp"
11073fi
11074
11075
11076
11077
11078ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11079if test "x$ac_cv_func_gettimeofday" = xyes
11080then :
11081  GETTIMEOFDAY_ST_OBJ=
11082	GETTIMEOFDAY_OBJ=
11083
11084printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
11085
11086
11087else $as_nop
11088  GETTIMEOFDAY_ST_OBJ='gettimeofday.o'
11089	GETTIMEOFDAY_OBJ='$(OUTPRE)gettimeofday.$(OBJEXT)'
11090	EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_gettimeofday"
11091fi
11092
11093
11094
11095
11096
11097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_errlist declaration" >&5
11098printf %s "checking for sys_errlist declaration... " >&6; }
11099if test ${krb5_cv_decl_sys_errlist+y}
11100then :
11101  printf %s "(cached) " >&6
11102else $as_nop
11103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104/* end confdefs.h.  */
11105#include <stdio.h>
11106      #include <errno.h>
11107
11108int
11109main (void)
11110{
111111+sys_nerr;
11112  ;
11113  return 0;
11114}
11115_ACEOF
11116if ac_fn_c_try_compile "$LINENO"
11117then :
11118  krb5_cv_decl_sys_errlist=yes
11119else $as_nop
11120  krb5_cv_decl_sys_errlist=no
11121fi
11122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11123fi
11124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_decl_sys_errlist" >&5
11125printf "%s\n" "$krb5_cv_decl_sys_errlist" >&6; }
11126# assume sys_nerr won't be declared w/o being in libc
11127if test $krb5_cv_decl_sys_errlist = yes; then
11128
11129printf "%s\n" "#define SYS_ERRLIST_DECLARED 1" >>confdefs.h
11130
11131
11132printf "%s\n" "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
11133
11134else
11135  # This means that sys_errlist is not declared in errno.h, but may still
11136  # be in libc.
11137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_errlist in libc" >&5
11138printf %s "checking for sys_errlist in libc... " >&6; }
11139if test ${krb5_cv_var_sys_errlist+y}
11140then :
11141  printf %s "(cached) " >&6
11142else $as_nop
11143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144/* end confdefs.h.  */
11145extern int sys_nerr;
11146int
11147main (void)
11148{
11149if (1+sys_nerr < 0) return 1;
11150  ;
11151  return 0;
11152}
11153_ACEOF
11154if ac_fn_c_try_link "$LINENO"
11155then :
11156  krb5_cv_var_sys_errlist=yes
11157else $as_nop
11158  krb5_cv_var_sys_errlist=no
11159fi
11160rm -f core conftest.err conftest.$ac_objext conftest.beam \
11161    conftest$ac_exeext conftest.$ac_ext
11162fi
11163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_var_sys_errlist" >&5
11164printf "%s\n" "$krb5_cv_var_sys_errlist" >&6; }
11165  if test $krb5_cv_var_sys_errlist = yes; then
11166
11167printf "%s\n" "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
11168
11169    # Do this cruft for backwards compatibility for now.
11170
11171printf "%s\n" "#define NEED_SYS_ERRLIST 1" >>confdefs.h
11172
11173  else
11174    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sys_errlist is neither in errno.h nor in libc" >&5
11175printf "%s\n" "$as_me: WARNING: sys_errlist is neither in errno.h nor in libc" >&2;}
11176  fi
11177fi
11178ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11179if test "x$ac_cv_header_unistd_h" = xyes
11180then :
11181  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11182
11183fi
11184ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11185if test "x$ac_cv_header_paths_h" = xyes
11186then :
11187  printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11188
11189fi
11190ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
11191if test "x$ac_cv_header_fcntl_h" = xyes
11192then :
11193  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
11194
11195fi
11196ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
11197if test "x$ac_cv_header_memory_h" = xyes
11198then :
11199  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
11200
11201fi
11202ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
11203if test "x$ac_cv_header_ifaddrs_h" = xyes
11204then :
11205  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
11206
11207fi
11208ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
11209if test "x$ac_cv_header_sys_filio_h" = xyes
11210then :
11211  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
11212
11213fi
11214ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
11215if test "x$ac_cv_header_byteswap_h" = xyes
11216then :
11217  printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
11218
11219fi
11220ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
11221if test "x$ac_cv_header_machine_endian_h" = xyes
11222then :
11223  printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
11224
11225fi
11226ac_fn_c_check_header_compile "$LINENO" "machine/byte_order.h" "ac_cv_header_machine_byte_order_h" "$ac_includes_default"
11227if test "x$ac_cv_header_machine_byte_order_h" = xyes
11228then :
11229  printf "%s\n" "#define HAVE_MACHINE_BYTE_ORDER_H 1" >>confdefs.h
11230
11231fi
11232ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default"
11233if test "x$ac_cv_header_sys_bswap_h" = xyes
11234then :
11235  printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h
11236
11237fi
11238ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
11239if test "x$ac_cv_header_endian_h" = xyes
11240then :
11241  printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
11242
11243fi
11244ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
11245if test "x$ac_cv_header_pwd_h" = xyes
11246then :
11247  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
11248
11249fi
11250ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
11251if test "x$ac_cv_header_arpa_inet_h" = xyes
11252then :
11253  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
11254
11255fi
11256ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
11257if test "x$ac_cv_header_alloca_h" = xyes
11258then :
11259  printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
11260
11261fi
11262ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
11263if test "x$ac_cv_header_dlfcn_h" = xyes
11264then :
11265  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11266
11267fi
11268ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
11269if test "x$ac_cv_header_limits_h" = xyes
11270then :
11271  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
11272
11273fi
11274ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
11275if test "x$ac_cv_header_sys_random_h" = xyes
11276then :
11277  printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
11278
11279fi
11280
11281ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/types.h>
11282#include <sys/stat.h>
11283"
11284if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
11285then :
11286
11287printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
11288
11289
11290fi
11291ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "#include <sys/types.h>
11292#include <sys/stat.h>
11293"
11294if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes
11295then :
11296
11297printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1" >>confdefs.h
11298
11299
11300fi
11301ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/types.h>
11302#include <sys/stat.h>
11303"
11304if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes
11305then :
11306
11307printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h
11308
11309
11310fi
11311
11312ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11313if test "x$ac_cv_type_off_t" = xyes
11314then :
11315
11316else $as_nop
11317
11318printf "%s\n" "#define off_t long int" >>confdefs.h
11319
11320fi
11321
11322
11323# Fancy caching of perror result...
11324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perror declaration" >&5
11325printf %s "checking for perror declaration... " >&6; }
11326if test ${krb5_cv_decl_perror+y}
11327then :
11328  printf %s "(cached) " >&6
11329else $as_nop
11330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331/* end confdefs.h.  */
11332#include <errno.h>
11333
11334_ACEOF
11335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11336  $EGREP "perror" >/dev/null 2>&1
11337then :
11338  krb5_cv_decl_perror=yes
11339else $as_nop
11340  krb5_cv_decl_perror=no
11341fi
11342rm -rf conftest*
11343
11344fi
11345
11346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_decl_perror" >&5
11347printf "%s\n" "$krb5_cv_decl_perror" >&6; }
11348if test $krb5_cv_decl_perror = yes; then
11349
11350printf "%s\n" "#define HDR_HAS_PERROR 1" >>confdefs.h
11351
11352fi
11353
11354
11355if test "x$ac_cv_func_strptime" = xyes; then
11356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strptime needs a prototype provided" >&5
11357printf %s "checking if strptime needs a prototype provided... " >&6; }
11358if test ${krb5_cv_func_strptime_noproto+y}
11359then :
11360  printf %s "(cached) " >&6
11361else $as_nop
11362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363/* end confdefs.h.  */
11364#include <time.h>
11365int
11366main (void)
11367{
11368#undef strptime
11369      struct k5foo {int foo; } xx;
11370      extern int strptime (struct k5foo*);
11371      strptime(&xx);
11372  ;
11373  return 0;
11374}
11375_ACEOF
11376if ac_fn_c_try_compile "$LINENO"
11377then :
11378  krb5_cv_func_strptime_noproto=yes
11379else $as_nop
11380  krb5_cv_func_strptime_noproto=no
11381fi
11382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11383fi
11384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_strptime_noproto" >&5
11385printf "%s\n" "$krb5_cv_func_strptime_noproto" >&6; }
11386if test $krb5_cv_func_strptime_noproto = yes; then
11387
11388printf "%s\n" "#define NEED_STRPTIME_PROTO 1" >>confdefs.h
11389
11390fi
11391fi
11392
11393
11394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argument to wait is int *" >&5
11395printf %s "checking if argument to wait is int *... " >&6; }
11396if test ${krb5_cv_struct_wait+y}
11397then :
11398  printf %s "(cached) " >&6
11399else $as_nop
11400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401/* end confdefs.h.  */
11402#include <sys/types.h>
11403      #include <sys/wait.h>
11404      extern pid_t wait(int *);
11405_ACEOF
11406if ac_fn_c_try_compile "$LINENO"
11407then :
11408  krb5_cv_struct_wait=no
11409else $as_nop
11410    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411/* end confdefs.h.  */
11412#include <sys/wait.h>
11413
11414int
11415main (void)
11416{
11417union wait i;
11418        #ifdef WEXITSTATUS
11419        WEXITSTATUS (i);
11420        #endif
11421
11422  ;
11423  return 0;
11424}
11425_ACEOF
11426if ac_fn_c_try_compile "$LINENO"
11427then :
11428  krb5_cv_struct_wait=yes
11429else $as_nop
11430  krb5_cv_struct_wait=no
11431fi
11432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11433fi
11434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11435fi
11436
11437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_wait" >&5
11438printf "%s\n" "$krb5_cv_struct_wait" >&6; }
11439if test $krb5_cv_struct_wait = no; then
11440
11441printf "%s\n" "#define WAIT_USES_INT 1" >>confdefs.h
11442
11443fi
11444
11445
11446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of sigprocmask" >&5
11447printf %s "checking for use of sigprocmask... " >&6; }
11448if test ${krb5_cv_func_sigprocmask_use+y}
11449then :
11450  printf %s "(cached) " >&6
11451else $as_nop
11452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453/* end confdefs.h.  */
11454#include <signal.h>
11455
11456int
11457main (void)
11458{
11459sigprocmask(SIG_SETMASK, 0, 0);
11460  ;
11461  return 0;
11462}
11463_ACEOF
11464if ac_fn_c_try_link "$LINENO"
11465then :
11466  krb5_cv_func_sigprocmask_use=yes
11467else $as_nop
11468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469/* end confdefs.h.  */
11470#include <signal.h>
11471
11472int
11473main (void)
11474{
11475sigmask(1);
11476  ;
11477  return 0;
11478}
11479_ACEOF
11480if ac_fn_c_try_link "$LINENO"
11481then :
11482  krb5_cv_func_sigprocmask_use=no
11483else $as_nop
11484  krb5_cv_func_sigprocmask_use=yes
11485fi
11486rm -f core conftest.err conftest.$ac_objext conftest.beam \
11487    conftest$ac_exeext conftest.$ac_ext
11488fi
11489rm -f core conftest.err conftest.$ac_objext conftest.beam \
11490    conftest$ac_exeext conftest.$ac_ext
11491fi
11492
11493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_sigprocmask_use" >&5
11494printf "%s\n" "$krb5_cv_func_sigprocmask_use" >&6; }
11495if test $krb5_cv_func_sigprocmask_use = yes; then
11496
11497printf "%s\n" "#define USE_SIGPROCMASK 1" >>confdefs.h
11498
11499fi
11500
11501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11502printf %s "checking for uid_t in sys/types.h... " >&6; }
11503if test ${ac_cv_type_uid_t+y}
11504then :
11505  printf %s "(cached) " >&6
11506else $as_nop
11507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508/* end confdefs.h.  */
11509#include <sys/types.h>
11510
11511_ACEOF
11512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11513  $EGREP "uid_t" >/dev/null 2>&1
11514then :
11515  ac_cv_type_uid_t=yes
11516else $as_nop
11517  ac_cv_type_uid_t=no
11518fi
11519rm -rf conftest*
11520
11521fi
11522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11523printf "%s\n" "$ac_cv_type_uid_t" >&6; }
11524if test $ac_cv_type_uid_t = no; then
11525
11526printf "%s\n" "#define uid_t int" >>confdefs.h
11527
11528
11529printf "%s\n" "#define gid_t int" >>confdefs.h
11530
11531fi
11532
11533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
11534printf %s "checking type of array argument to getgroups... " >&6; }
11535if test ${ac_cv_type_getgroups+y}
11536then :
11537  printf %s "(cached) " >&6
11538else $as_nop
11539  if test "$cross_compiling" = yes
11540then :
11541  ac_cv_type_getgroups=cross
11542else $as_nop
11543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544/* end confdefs.h.  */
11545/* Thanks to Mike Rendell for this test.  */
11546$ac_includes_default
11547#define NGID 256
11548#undef MAX
11549#define MAX(x, y) ((x) > (y) ? (x) : (y))
11550
11551int
11552main (void)
11553{
11554  gid_t gidset[NGID];
11555  int i, n;
11556  union { gid_t gval; long int lval; }  val;
11557
11558  val.lval = -1;
11559  for (i = 0; i < NGID; i++)
11560    gidset[i] = val.gval;
11561  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11562		 gidset);
11563  /* Exit non-zero if getgroups seems to require an array of ints.  This
11564     happens when gid_t is short int but getgroups modifies an array
11565     of ints.  */
11566  return n > 0 && gidset[n] != val.gval;
11567}
11568_ACEOF
11569if ac_fn_c_try_run "$LINENO"
11570then :
11571  ac_cv_type_getgroups=gid_t
11572else $as_nop
11573  ac_cv_type_getgroups=int
11574fi
11575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11576  conftest.$ac_objext conftest.beam conftest.$ac_ext
11577fi
11578
11579if test $ac_cv_type_getgroups = cross; then
11580        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581/* end confdefs.h.  */
11582#include <unistd.h>
11583
11584_ACEOF
11585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11586  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1
11587then :
11588  ac_cv_type_getgroups=gid_t
11589else $as_nop
11590  ac_cv_type_getgroups=int
11591fi
11592rm -rf conftest*
11593
11594fi
11595fi
11596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
11597printf "%s\n" "$ac_cv_type_getgroups" >&6; }
11598
11599printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h
11600
11601
11602
11603ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
11604if test "x$ac_cv_func_sigsetjmp" = xyes
11605then :
11606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigjmp_buf" >&5
11607printf %s "checking for sigjmp_buf... " >&6; }
11608if test ${krb5_cv_struct_sigjmp_buf+y}
11609then :
11610  printf %s "(cached) " >&6
11611else $as_nop
11612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613/* end confdefs.h.  */
11614#include <setjmp.h>
11615
11616int
11617main (void)
11618{
11619sigjmp_buf x
11620  ;
11621  return 0;
11622}
11623_ACEOF
11624if ac_fn_c_try_compile "$LINENO"
11625then :
11626  krb5_cv_struct_sigjmp_buf=yes
11627else $as_nop
11628  krb5_cv_struct_sigjmp_buf=no
11629fi
11630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11631fi
11632
11633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_sigjmp_buf" >&5
11634printf "%s\n" "$krb5_cv_struct_sigjmp_buf" >&6; }
11635if test $krb5_cv_struct_sigjmp_buf = yes; then
11636
11637printf "%s\n" "#define POSIX_SETJMP 1" >>confdefs.h
11638
11639fi
11640
11641fi
11642
11643
11644# *rpcent return types needed for lib/rpc
11645
11646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of setrpcent" >&5
11647printf %s "checking return type of setrpcent... " >&6; }
11648if test ${k5_cv_type_setrpcent+y}
11649then :
11650  printf %s "(cached) " >&6
11651else $as_nop
11652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653/* end confdefs.h.  */
11654#include <netdb.h>
11655                    extern void setrpcent();
11656_ACEOF
11657if ac_fn_c_try_compile "$LINENO"
11658then :
11659  k5_cv_type_setrpcent=void
11660else $as_nop
11661  k5_cv_type_setrpcent=int
11662fi
11663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11664fi
11665
11666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_setrpcent" >&5
11667printf "%s\n" "$k5_cv_type_setrpcent" >&6; }
11668
11669printf "%s\n" "#define SETRPCENT_TYPE $k5_cv_type_setrpcent" >>confdefs.h
11670
11671
11672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of endrpcent" >&5
11673printf %s "checking return type of endrpcent... " >&6; }
11674if test ${k5_cv_type_endrpcent+y}
11675then :
11676  printf %s "(cached) " >&6
11677else $as_nop
11678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679/* end confdefs.h.  */
11680#include <netdb.h>
11681      extern void endrpcent();
11682_ACEOF
11683if ac_fn_c_try_compile "$LINENO"
11684then :
11685  k5_cv_type_endrpcent=void
11686else $as_nop
11687  k5_cv_type_endrpcent=int
11688fi
11689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11690fi
11691
11692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_endrpcent" >&5
11693printf "%s\n" "$k5_cv_type_endrpcent" >&6; }
11694
11695printf "%s\n" "#define ENDRPCENT_TYPE $k5_cv_type_endrpcent" >>confdefs.h
11696
11697
11698
11699# bswap_16 is a macro in byteswap.h under GNU libc
11700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_16" >&5
11701printf %s "checking for bswap_16... " >&6; }
11702if test ${krb5_cv_bswap_16+y}
11703then :
11704  printf %s "(cached) " >&6
11705else $as_nop
11706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707/* end confdefs.h.  */
11708#if HAVE_BYTESWAP_H
11709      #include <byteswap.h>
11710      #endif
11711
11712int
11713main (void)
11714{
11715bswap_16(37);
11716  ;
11717  return 0;
11718}
11719_ACEOF
11720if ac_fn_c_try_link "$LINENO"
11721then :
11722  krb5_cv_bswap_16=yes
11723else $as_nop
11724  krb5_cv_bswap_16=no
11725fi
11726rm -f core conftest.err conftest.$ac_objext conftest.beam \
11727    conftest$ac_exeext conftest.$ac_ext
11728fi
11729
11730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_bswap_16" >&5
11731printf "%s\n" "$krb5_cv_bswap_16" >&6; }
11732if test "$krb5_cv_bswap_16" = yes; then
11733
11734printf "%s\n" "#define HAVE_BSWAP_16 1" >>confdefs.h
11735
11736fi
11737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_64" >&5
11738printf %s "checking for bswap_64... " >&6; }
11739if test ${krb5_cv_bswap_64+y}
11740then :
11741  printf %s "(cached) " >&6
11742else $as_nop
11743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h.  */
11745#if HAVE_BYTESWAP_H
11746      #include <byteswap.h>
11747      #endif
11748
11749int
11750main (void)
11751{
11752bswap_64(37);
11753  ;
11754  return 0;
11755}
11756_ACEOF
11757if ac_fn_c_try_link "$LINENO"
11758then :
11759  krb5_cv_bswap_64=yes
11760else $as_nop
11761  krb5_cv_bswap_64=no
11762fi
11763rm -f core conftest.err conftest.$ac_objext conftest.beam \
11764    conftest$ac_exeext conftest.$ac_ext
11765fi
11766
11767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_bswap_64" >&5
11768printf "%s\n" "$krb5_cv_bswap_64" >&6; }
11769if test "$krb5_cv_bswap_64" = yes; then
11770
11771printf "%s\n" "#define HAVE_BSWAP_64 1" >>confdefs.h
11772
11773fi
11774
11775# Needed for ksu and some appl stuff.
11776
11777case $krb5_cv_host in
11778alpha*-dec-osf*)
11779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setluid in -lsecurity" >&5
11780printf %s "checking for setluid in -lsecurity... " >&6; }
11781if test ${ac_cv_lib_security_setluid+y}
11782then :
11783  printf %s "(cached) " >&6
11784else $as_nop
11785  ac_check_lib_save_LIBS=$LIBS
11786LIBS="-lsecurity  $LIBS"
11787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788/* end confdefs.h.  */
11789
11790/* Override any GCC internal prototype to avoid an error.
11791   Use char because int might match the return type of a GCC
11792   builtin and then its argument prototype would still apply.  */
11793char setluid ();
11794int
11795main (void)
11796{
11797return setluid ();
11798  ;
11799  return 0;
11800}
11801_ACEOF
11802if ac_fn_c_try_link "$LINENO"
11803then :
11804  ac_cv_lib_security_setluid=yes
11805else $as_nop
11806  ac_cv_lib_security_setluid=no
11807fi
11808rm -f core conftest.err conftest.$ac_objext conftest.beam \
11809    conftest$ac_exeext conftest.$ac_ext
11810LIBS=$ac_check_lib_save_LIBS
11811fi
11812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_setluid" >&5
11813printf "%s\n" "$ac_cv_lib_security_setluid" >&6; }
11814if test "x$ac_cv_lib_security_setluid" = xyes
11815then :
11816
11817printf "%s\n" "#define HAVE_SETLUID 1" >>confdefs.h
11818
11819		KSU_LIBS="-lsecurity"
11820
11821fi
11822
11823	;;
11824esac
11825
11826
11827if test $ac_cv_func_setenv = no || test $ac_cv_func_unsetenv = no \
11828  || test $ac_cv_func_getenv = no; then
11829  SETENVOBJ=setenv.o
11830else
11831  SETENVOBJ=
11832fi
11833
11834
11835# Check what the return types for gethostbyname_r and getservbyname_r are.
11836
11837ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
11838if test "x$ac_cv_func_gethostbyname_r" = xyes
11839then :
11840
11841ac_cv_func_gethostbyname_r=yes
11842if test "$ac_cv_func_gethostbyname_r" = yes; then
11843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r returns an int" >&5
11844printf %s "checking if gethostbyname_r returns an int... " >&6; }
11845  if test ${krb5_cv_gethostbyname_r_returns_int+y}
11846then :
11847  printf %s "(cached) " >&6
11848else $as_nop
11849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850/* end confdefs.h.  */
11851#include <netdb.h>
11852        extern int gethostbyname_r();
11853_ACEOF
11854if ac_fn_c_try_compile "$LINENO"
11855then :
11856  krb5_cv_gethostbyname_r_returns_int=yes
11857else $as_nop
11858  krb5_cv_gethostbyname_r_returns_int=no
11859fi
11860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11861fi
11862
11863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gethostbyname_r_returns_int" >&5
11864printf "%s\n" "$krb5_cv_gethostbyname_r_returns_int" >&6; }
11865
11866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r returns a pointer" >&5
11867printf %s "checking if gethostbyname_r returns a pointer... " >&6; }
11868  if test ${krb5_cv_gethostbyname_r_returns_ptr+y}
11869then :
11870  printf %s "(cached) " >&6
11871else $as_nop
11872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873/* end confdefs.h.  */
11874#include <netdb.h>
11875        extern struct hostent *gethostbyname_r();
11876_ACEOF
11877if ac_fn_c_try_compile "$LINENO"
11878then :
11879  krb5_cv_gethostbyname_r_returns_ptr=yes
11880else $as_nop
11881  krb5_cv_gethostbyname_r_returns_ptr=no
11882fi
11883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11884fi
11885
11886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gethostbyname_r_returns_ptr" >&5
11887printf "%s\n" "$krb5_cv_gethostbyname_r_returns_ptr" >&6; }
11888
11889  if test "$krb5_cv_gethostbyname_r_returns_int" = "$krb5_cv_gethostbyname_r_returns_ptr"; then
11890    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine return type of gethostbyname_r -- disabling" >&5
11891printf "%s\n" "$as_me: WARNING: cannot determine return type of gethostbyname_r -- disabling" >&2;}
11892    ac_cv_func_gethostbyname_r=no
11893  fi
11894  if test "$krb5_cv_gethostbyname_r_returns_int" = yes; then
11895
11896printf "%s\n" "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
11897
11898  fi
11899fi
11900if test "$ac_cv_func_gethostbyname_r" = yes; then
11901
11902printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11903
11904  ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
11905if test "x$ac_cv_func_gethostbyaddr_r" = xyes
11906then :
11907
11908fi
11909
11910fi
11911
11912fi
11913
11914
11915
11916# PTHREAD_CFLAGS changes which variant of these functions is declared
11917# on Solaris 11, so use it for these tests.
11918old_CFLAGS=$CFLAGS
11919CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11920ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
11921if test "x$ac_cv_func_getpwnam_r" = xyes
11922then :
11923  ac_cv_func_getpwnam_r=yes
11924else $as_nop
11925  ac_cv_func_getpwnam_r=no
11926fi
11927
11928ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
11929if test "x$ac_cv_func_getpwuid_r" = xyes
11930then :
11931  ac_cv_func_getpwuid_r=yes
11932else $as_nop
11933  ac_cv_func_getpwuid_r=no
11934fi
11935
11936if test "$ac_cv_func_getpwnam_r" = yes; then
11937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of getpwnam_r" >&5
11938printf %s "checking return type of getpwnam_r... " >&6; }
11939  if test ${krb5_cv_getpwnam_r_return_type+y}
11940then :
11941  printf %s "(cached) " >&6
11942else $as_nop
11943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h.  */
11945#include <pwd.h>
11946        extern int getpwnam_r();
11947_ACEOF
11948if ac_fn_c_try_compile "$LINENO"
11949then :
11950  getpwnam_r_returns_int=yes
11951else $as_nop
11952  getpwnam_r_returns_int=no
11953fi
11954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956/* end confdefs.h.  */
11957#include <pwd.h>
11958        extern struct passwd *getpwnam_r();
11959_ACEOF
11960if ac_fn_c_try_compile "$LINENO"
11961then :
11962  getpwnam_r_returns_ptr=yes
11963else $as_nop
11964  getpwnam_r_returns_ptr=no
11965fi
11966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11967   case "$getpwnam_r_returns_int/$getpwnam_r_returns_ptr" in
11968     yes/no) krb5_cv_getpwnam_r_return_type=int ;;
11969     no/yes) krb5_cv_getpwnam_r_return_type=ptr ;;
11970     *) krb5_cv_getpwnam_r_return_type=unknown ;;
11971   esac
11972fi
11973
11974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getpwnam_r_return_type" >&5
11975printf "%s\n" "$krb5_cv_getpwnam_r_return_type" >&6; }
11976  if test $krb5_cv_getpwnam_r_return_type = int; then
11977
11978printf "%s\n" "#define GETPWNAM_R_RETURNS_INT 1" >>confdefs.h
11979
11980  elif test $krb5_cv_getpwnam_r_return_type = unknown; then
11981    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine getpwnam_r return type, disabling getpwnam_r" >&5
11982printf "%s\n" "$as_me: WARNING: Cannot determine getpwnam_r return type, disabling getpwnam_r" >&2;}
11983    ac_cv_func_getpwnam_r=no
11984  fi
11985fi
11986if test "$ac_cv_func_getpwnam_r" = yes; then
11987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to getpwnam_r" >&5
11988printf %s "checking number of arguments to getpwnam_r... " >&6; }
11989  if test ${krb5_cv_getpwnam_r_args+y}
11990then :
11991  printf %s "(cached) " >&6
11992else $as_nop
11993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994/* end confdefs.h.  */
11995#include <pwd.h>
11996        struct passwd pwx; char buf[1024];
11997int
11998main (void)
11999{
12000getpwnam_r("", &pwx, buf, sizeof(buf));
12001  ;
12002  return 0;
12003}
12004_ACEOF
12005if ac_fn_c_try_compile "$LINENO"
12006then :
12007  args4=yes
12008else $as_nop
12009  args4=no
12010fi
12011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013/* end confdefs.h.  */
12014#include <pwd.h>
12015         struct passwd pwx, *p;
12016         char buf[1024];
12017int
12018main (void)
12019{
12020getpwnam_r("", &pwx, buf, sizeof(buf), &p);
12021  ;
12022  return 0;
12023}
12024_ACEOF
12025if ac_fn_c_try_compile "$LINENO"
12026then :
12027  args5=yes
12028else $as_nop
12029  args5=no
12030fi
12031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12032   case $args4/$args5 in
12033     yes/no) krb5_cv_getpwnam_r_args=4 ;;
12034     no/yes) krb5_cv_getpwnam_r_args=5 ;;
12035     *) krb5_cv_getpwnam_r_args=unknown ;;
12036   esac
12037fi
12038
12039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getpwnam_r_args" >&5
12040printf "%s\n" "$krb5_cv_getpwnam_r_args" >&6; }
12041  if test "$krb5_cv_getpwnam_r_args" = unknown; then
12042    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine number of arguments to getpwnam_r, disabling its use." >&5
12043printf "%s\n" "$as_me: WARNING: Cannot determine number of arguments to getpwnam_r, disabling its use." >&2;}
12044    ac_cv_func_getpwnam_r=no
12045  else
12046
12047printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
12048
12049    if test "$krb5_cv_getpwnam_r_args" = 4; then
12050
12051printf "%s\n" "#define GETPWNAM_R_4_ARGS 1" >>confdefs.h
12052
12053    fi
12054  fi
12055fi
12056CFLAGS=$old_CFLAGS
12057
12058if test "$ac_cv_func_getpwnam_r" = no && test "$ac_cv_func_getpwuid_r" = yes; then
12059  # Actually, we could do this check, and the corresponding checks
12060  # for return type and number of arguments, but I doubt we'll run
12061  # into a system where we'd get to use getpwuid_r but not getpwnam_r.
12062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: getpwnam_r not useful, so disabling getpwuid_r too" >&5
12063printf "%s\n" "$as_me: getpwnam_r not useful, so disabling getpwuid_r too" >&6;}
12064  ac_cv_func_getpwuid_r=no
12065fi
12066if test "$ac_cv_func_getpwuid_r" = yes; then
12067
12068printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
12069
12070  # Hack: Assume getpwuid_r is the shorter form if getpwnam_r is.
12071  if test "$krb5_cv_getpwnam_r_args" = 4; then
12072
12073printf "%s\n" "#define GETPWUID_R_4_ARGS 1" >>confdefs.h
12074
12075  fi
12076fi
12077
12078if test "$ac_cv_func_gmtime_r" = yes; then
12079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gmtime_r returns int" >&5
12080printf %s "checking whether gmtime_r returns int... " >&6; }
12081  if test ${krb5_cv_gmtime_r_returns_int+y}
12082then :
12083  printf %s "(cached) " >&6
12084else $as_nop
12085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086/* end confdefs.h.  */
12087#include <time.h>
12088        extern int gmtime_r();
12089_ACEOF
12090if ac_fn_c_try_compile "$LINENO"
12091then :
12092  return_int=yes
12093else $as_nop
12094  return_int=no
12095fi
12096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h.  */
12099
12100     #include <time.h>
12101         extern struct tm *gmtime_r();
12102_ACEOF
12103if ac_fn_c_try_compile "$LINENO"
12104then :
12105  return_ptr=yes
12106else $as_nop
12107  return_ptr=no
12108fi
12109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12110   case $return_int/$return_ptr in
12111     yes/no) krb5_cv_gmtime_r_returns_int=yes ;;
12112     no/yes) krb5_cv_gmtime_r_returns_int=no ;;
12113     *)      # Can't figure it out, punt the function.
12114             ac_cv_func_gmtime_r=no ;;
12115   esac
12116fi
12117
12118  if test "$ac_cv_func_gmtime_r" = no; then
12119    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown -- ignoring gmtime_r" >&5
12120printf "%s\n" "unknown -- ignoring gmtime_r" >&6; }
12121  else
12122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gmtime_r_returns_int" >&5
12123printf "%s\n" "$krb5_cv_gmtime_r_returns_int" >&6; }
12124    if test "$krb5_cv_gmtime_r_returns_int" = yes; then
12125
12126printf "%s\n" "#define GMTIME_R_RETURNS_INT 1" >>confdefs.h
12127
12128    fi
12129  fi
12130fi
12131
12132ac_fn_c_check_func "$LINENO" "getservbyname_r" "ac_cv_func_getservbyname_r"
12133if test "x$ac_cv_func_getservbyname_r" = xyes
12134then :
12135
12136ac_cv_func_getservbyname_r=yes
12137if test "$ac_cv_func_getservbyname_r" = yes; then
12138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyname_r returns an int" >&5
12139printf %s "checking if getservbyname_r returns an int... " >&6; }
12140  if test ${krb5_cv_getservbyname_r_returns_int+y}
12141then :
12142  printf %s "(cached) " >&6
12143else $as_nop
12144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h.  */
12146#include <netdb.h>
12147        extern int getservbyname_r();
12148_ACEOF
12149if ac_fn_c_try_compile "$LINENO"
12150then :
12151  krb5_cv_getservbyname_r_returns_int=yes
12152else $as_nop
12153  krb5_cv_getservbyname_r_returns_int=no
12154fi
12155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12156fi
12157
12158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getservbyname_r_returns_int" >&5
12159printf "%s\n" "$krb5_cv_getservbyname_r_returns_int" >&6; }
12160
12161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyname_r returns a pointer" >&5
12162printf %s "checking if getservbyname_r returns a pointer... " >&6; }
12163  if test ${krb5_cv_getservbyname_r_returns_ptr+y}
12164then :
12165  printf %s "(cached) " >&6
12166else $as_nop
12167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168/* end confdefs.h.  */
12169#include <netdb.h>
12170        extern struct servent *getservbyname_r();
12171_ACEOF
12172if ac_fn_c_try_compile "$LINENO"
12173then :
12174  krb5_cv_getservbyname_r_returns_ptr=yes
12175else $as_nop
12176  krb5_cv_getservbyname_r_returns_ptr=no
12177fi
12178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12179fi
12180
12181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getservbyname_r_returns_ptr" >&5
12182printf "%s\n" "$krb5_cv_getservbyname_r_returns_ptr" >&6; }
12183
12184  if test "$krb5_cv_getservbyname_r_returns_int" = "$krb5_cv_getservbyname_r_returns_ptr"; then
12185    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine return type of getservbyname_r -- disabling" >&5
12186printf "%s\n" "$as_me: WARNING: cannot determine return type of getservbyname_r -- disabling" >&2;}
12187    ac_cv_func_getservbyname_r=no
12188  fi
12189  if test "$krb5_cv_getservbyname_r_returns_int" = yes; then
12190
12191printf "%s\n" "#define GETSERVBYNAME_R_RETURNS_INT 1" >>confdefs.h
12192
12193  fi
12194fi
12195if test "$ac_cv_func_getservbyname_r" = yes; then
12196
12197printf "%s\n" "#define HAVE_GETSERVBYNAME_R 1" >>confdefs.h
12198
12199  ac_fn_c_check_func "$LINENO" "getservbyport_r" "ac_cv_func_getservbyport_r"
12200if test "x$ac_cv_func_getservbyport_r" = xyes
12201then :
12202
12203fi
12204
12205fi
12206
12207fi
12208
12209
12210
12211ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
12212if test "x$ac_cv_header_dirent_h" = xyes
12213then :
12214
12215printf "%s\n" "#define USE_DIRENT_H 1" >>confdefs.h
12216
12217fi
12218
12219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12220printf %s "checking for uid_t in sys/types.h... " >&6; }
12221if test ${ac_cv_type_uid_t+y}
12222then :
12223  printf %s "(cached) " >&6
12224else $as_nop
12225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226/* end confdefs.h.  */
12227#include <sys/types.h>
12228
12229_ACEOF
12230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12231  $EGREP "uid_t" >/dev/null 2>&1
12232then :
12233  ac_cv_type_uid_t=yes
12234else $as_nop
12235  ac_cv_type_uid_t=no
12236fi
12237rm -rf conftest*
12238
12239fi
12240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12241printf "%s\n" "$ac_cv_type_uid_t" >&6; }
12242if test $ac_cv_type_uid_t = no; then
12243
12244printf "%s\n" "#define uid_t int" >>confdefs.h
12245
12246
12247printf "%s\n" "#define gid_t int" >>confdefs.h
12248
12249fi
12250
12251
12252ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
12253if test "x$ac_cv_header_termios_h" = xyes
12254then :
12255  ac_fn_c_check_func "$LINENO" "tcsetattr" "ac_cv_func_tcsetattr"
12256if test "x$ac_cv_func_tcsetattr" = xyes
12257then :
12258
12259printf "%s\n" "#define POSIX_TERMIOS 1" >>confdefs.h
12260
12261fi
12262
12263fi
12264
12265
12266ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12267if test "x$ac_cv_header_poll_h" = xyes
12268then :
12269  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
12270
12271fi
12272ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12273if test "x$ac_cv_header_stdlib_h" = xyes
12274then :
12275  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12276
12277fi
12278ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
12279if test "x$ac_cv_header_string_h" = xyes
12280then :
12281  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
12282
12283fi
12284ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
12285if test "x$ac_cv_header_stddef_h" = xyes
12286then :
12287  printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
12288
12289fi
12290ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12291if test "x$ac_cv_header_sys_types_h" = xyes
12292then :
12293  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12294
12295fi
12296ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12297if test "x$ac_cv_header_sys_file_h" = xyes
12298then :
12299  printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12300
12301fi
12302ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12303if test "x$ac_cv_header_sys_param_h" = xyes
12304then :
12305  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
12306
12307fi
12308ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12309if test "x$ac_cv_header_sys_stat_h" = xyes
12310then :
12311  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12312
12313fi
12314ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12315if test "x$ac_cv_header_sys_time_h" = xyes
12316then :
12317  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12318
12319fi
12320ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12321if test "x$ac_cv_header_netinet_in_h" = xyes
12322then :
12323  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12324
12325fi
12326ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
12327if test "x$ac_cv_header_sys_uio_h" = xyes
12328then :
12329  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
12330
12331fi
12332ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
12333if test "x$ac_cv_header_sys_filio_h" = xyes
12334then :
12335  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
12336
12337fi
12338ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12339if test "x$ac_cv_header_sys_select_h" = xyes
12340then :
12341  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12342
12343fi
12344ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12345if test "x$ac_cv_header_time_h" = xyes
12346then :
12347  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
12348
12349fi
12350ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
12351if test "x$ac_cv_header_paths_h" = xyes
12352then :
12353  printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
12354
12355fi
12356ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
12357if test "x$ac_cv_header_errno_h" = xyes
12358then :
12359  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
12360
12361fi
12362
12363
12364# If compiling with IPv6 support, test if in6addr_any functions.
12365# Irix 6.5.16 defines it, but lacks support in the C library.
12366if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes ; then
12367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6addr_any definition in library" >&5
12368printf %s "checking for in6addr_any definition in library... " >&6; }
12369if test ${krb5_cv_var_in6addr_any+y}
12370then :
12371  printf %s "(cached) " >&6
12372else $as_nop
12373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374/* end confdefs.h.  */
12375#ifdef HAVE_SYS_TYPES_H
12376        #include <sys/types.h>
12377        #endif
12378        #include <sys/socket.h>
12379        #include <netinet/in.h>
12380        #include <netdb.h>
12381        #include <stdio.h>
12382
12383int
12384main (void)
12385{
12386struct sockaddr_in6 in;
12387        in.sin6_addr = in6addr_any;
12388        printf("%x", &in);
12389  ;
12390  return 0;
12391}
12392_ACEOF
12393if ac_fn_c_try_link "$LINENO"
12394then :
12395  krb5_cv_var_in6addr_any=yes
12396else $as_nop
12397  krb5_cv_var_in6addr_any=no
12398fi
12399rm -f core conftest.err conftest.$ac_objext conftest.beam \
12400    conftest$ac_exeext conftest.$ac_ext
12401fi
12402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_var_in6addr_any" >&5
12403printf "%s\n" "$krb5_cv_var_in6addr_any" >&6; }
12404  if test $krb5_cv_var_in6addr_any = no; then
12405
12406printf "%s\n" "#define NEED_INSIXADDR_ANY 1" >>confdefs.h
12407
12408  fi
12409fi
12410
12411# then from osconf.h, we have
12412
12413ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
12414if test "x$ac_cv_type_time_t" = xyes
12415then :
12416
12417else $as_nop
12418
12419printf "%s\n" "#define time_t long" >>confdefs.h
12420
12421fi
12422
12423# The cast to long int works around a bug in the HP C Compiler
12424# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12425# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12426# This bug is HP SR number 8606223364.
12427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12428printf %s "checking size of time_t... " >&6; }
12429if test ${ac_cv_sizeof_time_t+y}
12430then :
12431  printf %s "(cached) " >&6
12432else $as_nop
12433  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
12434then :
12435
12436else $as_nop
12437  if test "$ac_cv_type_time_t" = yes; then
12438     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12439printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12440as_fn_error 77 "cannot compute sizeof (time_t)
12441See \`config.log' for more details" "$LINENO" 5; }
12442   else
12443     ac_cv_sizeof_time_t=0
12444   fi
12445fi
12446
12447fi
12448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12449printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12450
12451
12452
12453printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12454
12455
12456SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12457
12458
12459# Determine where to put the replay cache.
12460
12461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for replay cache directory" >&5
12462printf %s "checking for replay cache directory... " >&6; }
12463if test ${krb5_cv_sys_rcdir+y}
12464then :
12465  printf %s "(cached) " >&6
12466else $as_nop
12467
12468if test $cross_compiling = yes; then
12469	krb5_cv_sys_rcdir=/var/tmp
12470else
12471	for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do
12472		test -d $t_dir || continue
12473		krb5_cv_sys_rcdir=$t_dir
12474		break
12475	done
12476fi
12477fi
12478
12479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_sys_rcdir" >&5
12480printf "%s\n" "$krb5_cv_sys_rcdir" >&6; }
12481KRB5_RCTMPDIR=$krb5_cv_sys_rcdir
12482
12483
12484
12485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
12486printf %s "checking for socklen_t... " >&6; }
12487if test ${krb5_cv_has_type_socklen_t+y}
12488then :
12489  printf %s "(cached) " >&6
12490else $as_nop
12491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492/* end confdefs.h.  */
12493#include <sys/types.h>
12494      #include <sys/socket.h>
12495
12496int
12497main (void)
12498{
12499sizeof(socklen_t);
12500  ;
12501  return 0;
12502}
12503_ACEOF
12504if ac_fn_c_try_compile "$LINENO"
12505then :
12506  krb5_cv_has_type_socklen_t=yes
12507else $as_nop
12508  krb5_cv_has_type_socklen_t=no
12509fi
12510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12511fi
12512
12513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_type_socklen_t" >&5
12514printf "%s\n" "$krb5_cv_has_type_socklen_t" >&6; }
12515if test $krb5_cv_has_type_socklen_t = yes; then
12516
12517printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
12518
12519fi
12520
12521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
12522printf %s "checking for struct lifconf... " >&6; }
12523if test ${krb5_cv_has_struct_lifconf+y}
12524then :
12525  printf %s "(cached) " >&6
12526else $as_nop
12527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528/* end confdefs.h.  */
12529#include <sys/socket.h>
12530      #include <net/if.h>
12531
12532int
12533main (void)
12534{
12535sizeof (struct lifconf);
12536  ;
12537  return 0;
12538}
12539_ACEOF
12540if ac_fn_c_try_compile "$LINENO"
12541then :
12542  krb5_cv_has_struct_lifconf=yes
12543else $as_nop
12544  krb5_cv_has_struct_lifconf=no
12545fi
12546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12547fi
12548
12549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_struct_lifconf" >&5
12550printf "%s\n" "$krb5_cv_has_struct_lifconf" >&6; }
12551if test $krb5_cv_has_struct_lifconf = yes; then
12552
12553printf "%s\n" "#define HAVE_STRUCT_LIFCONF 1" >>confdefs.h
12554
12555fi
12556# HP-UX 11 uses stuct if_laddrconf
12557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
12558printf %s "checking for struct if_laddrconf... " >&6; }
12559if test ${krb5_cv_has_struct_if_laddrconf+y}
12560then :
12561  printf %s "(cached) " >&6
12562else $as_nop
12563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564/* end confdefs.h.  */
12565#include <sys/socket.h>
12566      #include <net/if.h>
12567      #include <net/if6.h>
12568
12569int
12570main (void)
12571{
12572sizeof(struct if_laddrconf);
12573  ;
12574  return 0;
12575}
12576_ACEOF
12577if ac_fn_c_try_compile "$LINENO"
12578then :
12579  krb5_cv_has_struct_if_laddrconf=yes
12580else $as_nop
12581  krb5_cv_has_struct_if_laddrconf=no
12582fi
12583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12584fi
12585
12586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_struct_if_laddrconf" >&5
12587printf "%s\n" "$krb5_cv_has_struct_if_laddrconf" >&6; }
12588if test $krb5_cv_has_struct_if_laddrconf = yes; then
12589
12590printf "%s\n" "#define HAVE_STRUCT_IF_LADDRCONF 1" >>confdefs.h
12591
12592fi
12593
12594
12595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
12596printf %s "checking for h_errno in netdb.h... " >&6; }
12597if test ${krb5_cv_header_netdb_h_h_errno+y}
12598then :
12599  printf %s "(cached) " >&6
12600else $as_nop
12601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602/* end confdefs.h.  */
12603#include <netdb.h>
12604int
12605main (void)
12606{
12607int x = h_errno;
12608  ;
12609  return 0;
12610}
12611_ACEOF
12612if ac_fn_c_try_compile "$LINENO"
12613then :
12614  krb5_cv_header_netdb_h_h_errno=yes
12615else $as_nop
12616  krb5_cv_header_netdb_h_h_errno=no
12617fi
12618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12619fi
12620
12621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_netdb_h_h_errno" >&5
12622printf "%s\n" "$krb5_cv_header_netdb_h_h_errno" >&6; }
12623if test $krb5_cv_header_netdb_h_h_errno = yes; then
12624
12625printf "%s\n" "#define HAVE_NETDB_H_H_ERRNO 1" >>confdefs.h
12626
12627fi
12628
12629
12630# Check whether --enable-athena was given.
12631if test ${enable_athena+y}
12632then :
12633  enableval=$enable_athena;
12634printf "%s\n" "#define KRB5_ATHENA_COMPAT 1" >>confdefs.h
12635
12636fi
12637
12638
12639
12640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12641printf %s "checking for inline... " >&6; }
12642if test ${ac_cv_c_inline+y}
12643then :
12644  printf %s "(cached) " >&6
12645else $as_nop
12646  ac_cv_c_inline=no
12647for ac_kw in inline __inline__ __inline; do
12648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h.  */
12650#ifndef __cplusplus
12651typedef int foo_t;
12652static $ac_kw foo_t static_foo (void) {return 0; }
12653$ac_kw foo_t foo (void) {return 0; }
12654#endif
12655
12656_ACEOF
12657if ac_fn_c_try_compile "$LINENO"
12658then :
12659  ac_cv_c_inline=$ac_kw
12660fi
12661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12662  test "$ac_cv_c_inline" != no && break
12663done
12664
12665fi
12666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12667printf "%s\n" "$ac_cv_c_inline" >&6; }
12668
12669case $ac_cv_c_inline in
12670  inline | yes) ;;
12671  *)
12672    case $ac_cv_c_inline in
12673      no) ac_val=;;
12674      *) ac_val=$ac_cv_c_inline;;
12675    esac
12676    cat >>confdefs.h <<_ACEOF
12677#ifndef __cplusplus
12678#define inline $ac_val
12679#endif
12680_ACEOF
12681    ;;
12682esac
12683
12684
12685
12686
12687ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "
12688#include <sys/types.h>
12689#include <sys/socket.h>
12690#include <netinet/in.h>
12691
12692"
12693if test "x$ac_cv_type_struct_cmsghdr" = xyes
12694then :
12695
12696printf "%s\n" "#define HAVE_STRUCT_CMSGHDR 1" >>confdefs.h
12697
12698
12699fi
12700ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "
12701#include <sys/types.h>
12702#include <sys/socket.h>
12703#include <netinet/in.h>
12704
12705"
12706if test "x$ac_cv_type_struct_in_pktinfo" = xyes
12707then :
12708
12709printf "%s\n" "#define HAVE_STRUCT_IN_PKTINFO 1" >>confdefs.h
12710
12711
12712fi
12713ac_fn_c_check_type "$LINENO" "struct in6_pktinfo" "ac_cv_type_struct_in6_pktinfo" "
12714#include <sys/types.h>
12715#include <sys/socket.h>
12716#include <netinet/in.h>
12717
12718"
12719if test "x$ac_cv_type_struct_in6_pktinfo" = xyes
12720then :
12721
12722printf "%s\n" "#define HAVE_STRUCT_IN6_PKTINFO 1" >>confdefs.h
12723
12724
12725fi
12726ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12727#include <sys/types.h>
12728#include <sys/socket.h>
12729#include <netinet/in.h>
12730
12731"
12732if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
12733then :
12734
12735printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12736
12737
12738fi
12739
12740ac_fn_c_check_type "$LINENO" "struct rt_msghdr" "ac_cv_type_struct_rt_msghdr" "
12741#include <sys/socket.h>
12742#include <net/if.h>
12743#include <net/route.h>
12744
12745"
12746if test "x$ac_cv_type_struct_rt_msghdr" = xyes
12747then :
12748
12749printf "%s\n" "#define HAVE_STRUCT_RT_MSGHDR 1" >>confdefs.h
12750
12751
12752fi
12753
12754
12755# Tests for 64-bit edwards25519 code.
12756# The cast to long int works around a bug in the HP C Compiler
12757# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12758# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12759# This bug is HP SR number 8606223364.
12760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12761printf %s "checking size of size_t... " >&6; }
12762if test ${ac_cv_sizeof_size_t+y}
12763then :
12764  printf %s "(cached) " >&6
12765else $as_nop
12766  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"
12767then :
12768
12769else $as_nop
12770  if test "$ac_cv_type_size_t" = yes; then
12771     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12772printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12773as_fn_error 77 "cannot compute sizeof (size_t)
12774See \`config.log' for more details" "$LINENO" 5; }
12775   else
12776     ac_cv_sizeof_size_t=0
12777   fi
12778fi
12779
12780fi
12781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12782printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
12783
12784
12785
12786printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
12787
12788
12789ac_fn_c_check_type "$LINENO" "__int128_t" "ac_cv_type___int128_t" "$ac_includes_default"
12790if test "x$ac_cv_type___int128_t" = xyes
12791then :
12792
12793printf "%s\n" "#define HAVE___INT128_T 1" >>confdefs.h
12794
12795
12796fi
12797ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
12798if test "x$ac_cv_type___uint128_t" = xyes
12799then :
12800
12801printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h
12802
12803
12804fi
12805
12806
12807# types libdb2 wants
12808
12809ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12810if test "x$ac_cv_type_ssize_t" = xyes
12811then :
12812
12813printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
12814
12815
12816fi
12817ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
12818if test "x$ac_cv_type_u_char" = xyes
12819then :
12820
12821printf "%s\n" "#define HAVE_U_CHAR 1" >>confdefs.h
12822
12823
12824fi
12825ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12826if test "x$ac_cv_type_u_int" = xyes
12827then :
12828
12829printf "%s\n" "#define HAVE_U_INT 1" >>confdefs.h
12830
12831
12832fi
12833ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12834if test "x$ac_cv_type_u_long" = xyes
12835then :
12836
12837printf "%s\n" "#define HAVE_U_LONG 1" >>confdefs.h
12838
12839
12840fi
12841ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
12842if test "x$ac_cv_type_u_int8_t" = xyes
12843then :
12844
12845printf "%s\n" "#define HAVE_U_INT8_T 1" >>confdefs.h
12846
12847
12848fi
12849ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
12850if test "x$ac_cv_type_u_int16_t" = xyes
12851then :
12852
12853printf "%s\n" "#define HAVE_U_INT16_T 1" >>confdefs.h
12854
12855
12856fi
12857ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
12858if test "x$ac_cv_type_u_int32_t" = xyes
12859then :
12860
12861printf "%s\n" "#define HAVE_U_INT32_T 1" >>confdefs.h
12862
12863
12864fi
12865ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12866if test "x$ac_cv_type_int8_t" = xyes
12867then :
12868
12869printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
12870
12871
12872fi
12873ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12874if test "x$ac_cv_type_int16_t" = xyes
12875then :
12876
12877printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
12878
12879
12880fi
12881ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12882if test "x$ac_cv_type_int32_t" = xyes
12883then :
12884
12885printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
12886
12887
12888fi
12889
12890
12891# Some libdb2 test programs want a shell that supports functions.
12892FCTSH=false
12893# Extract the first word of "sh", so it can be a program name with args.
12894set dummy sh; ac_word=$2
12895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12896printf %s "checking for $ac_word... " >&6; }
12897if test ${ac_cv_path_SH+y}
12898then :
12899  printf %s "(cached) " >&6
12900else $as_nop
12901  case $SH in
12902  [\\/]* | ?:[\\/]*)
12903  ac_cv_path_SH="$SH" # Let the user override the test with a path.
12904  ;;
12905  *)
12906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907for as_dir in $PATH
12908do
12909  IFS=$as_save_IFS
12910  case $as_dir in #(((
12911    '') as_dir=./ ;;
12912    */) ;;
12913    *) as_dir=$as_dir/ ;;
12914  esac
12915    for ac_exec_ext in '' $ac_executable_extensions; do
12916  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12917    ac_cv_path_SH="$as_dir$ac_word$ac_exec_ext"
12918    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12919    break 2
12920  fi
12921done
12922  done
12923IFS=$as_save_IFS
12924
12925  test -z "$ac_cv_path_SH" && ac_cv_path_SH="false"
12926  ;;
12927esac
12928fi
12929SH=$ac_cv_path_SH
12930if test -n "$SH"; then
12931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
12932printf "%s\n" "$SH" >&6; }
12933else
12934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935printf "%s\n" "no" >&6; }
12936fi
12937
12938
12939# Extract the first word of "sh5", so it can be a program name with args.
12940set dummy sh5; ac_word=$2
12941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942printf %s "checking for $ac_word... " >&6; }
12943if test ${ac_cv_path_SH5+y}
12944then :
12945  printf %s "(cached) " >&6
12946else $as_nop
12947  case $SH5 in
12948  [\\/]* | ?:[\\/]*)
12949  ac_cv_path_SH5="$SH5" # Let the user override the test with a path.
12950  ;;
12951  *)
12952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953for as_dir in $PATH
12954do
12955  IFS=$as_save_IFS
12956  case $as_dir in #(((
12957    '') as_dir=./ ;;
12958    */) ;;
12959    *) as_dir=$as_dir/ ;;
12960  esac
12961    for ac_exec_ext in '' $ac_executable_extensions; do
12962  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12963    ac_cv_path_SH5="$as_dir$ac_word$ac_exec_ext"
12964    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12965    break 2
12966  fi
12967done
12968  done
12969IFS=$as_save_IFS
12970
12971  test -z "$ac_cv_path_SH5" && ac_cv_path_SH5="false"
12972  ;;
12973esac
12974fi
12975SH5=$ac_cv_path_SH5
12976if test -n "$SH5"; then
12977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SH5" >&5
12978printf "%s\n" "$SH5" >&6; }
12979else
12980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981printf "%s\n" "no" >&6; }
12982fi
12983
12984
12985# Extract the first word of "bash", so it can be a program name with args.
12986set dummy bash; ac_word=$2
12987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988printf %s "checking for $ac_word... " >&6; }
12989if test ${ac_cv_path_BASH+y}
12990then :
12991  printf %s "(cached) " >&6
12992else $as_nop
12993  case $BASH in
12994  [\\/]* | ?:[\\/]*)
12995  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
12996  ;;
12997  *)
12998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999for as_dir in $PATH
13000do
13001  IFS=$as_save_IFS
13002  case $as_dir in #(((
13003    '') as_dir=./ ;;
13004    */) ;;
13005    *) as_dir=$as_dir/ ;;
13006  esac
13007    for ac_exec_ext in '' $ac_executable_extensions; do
13008  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13009    ac_cv_path_BASH="$as_dir$ac_word$ac_exec_ext"
13010    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13011    break 2
13012  fi
13013done
13014  done
13015IFS=$as_save_IFS
13016
13017  test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="false"
13018  ;;
13019esac
13020fi
13021BASH=$ac_cv_path_BASH
13022if test -n "$BASH"; then
13023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
13024printf "%s\n" "$BASH" >&6; }
13025else
13026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027printf "%s\n" "no" >&6; }
13028fi
13029
13030
13031for prog in $SH $SH5 $BASH; do
13032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $prog supports functions" >&5
13033printf %s "checking if $prog supports functions... " >&6; }
13034  if $prog -c 'foo() { true; }; foo' >/dev/null 2>&1; then
13035    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13036printf "%s\n" "yes" >&6; }
13037    FCTSH=$prog
13038    break
13039  else
13040    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041printf "%s\n" "no" >&6; }
13042  fi
13043done
13044
13045
13046# Test for POSIX 2001 *printf support (X/Open System Interfaces extension
13047# to ANSI/ISO C 1999 specification).  Specifically, positional
13048# specifications; not checking for other features like %zx at present.
13049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for POSIX printf positional specification support" >&5
13050printf %s "checking for POSIX printf positional specification support... " >&6; }
13051if test ${ac_cv_printf_positional+y}
13052then :
13053  printf %s "(cached) " >&6
13054else $as_nop
13055  if test "$cross_compiling" = yes
13056then :
13057  as_fn_error $? "Cannot test for printf positional argument support when cross compiling" "$LINENO" 5
13058else $as_nop
13059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h.  */
13061#include <stdio.h>
13062      #include <string.h>
13063      const char expected[] = "200 100";
13064      int main()
13065      {
13066          char buf[30];
13067          sprintf(buf, "%2\$x %1\$d", 100, 512);
13068          if (strcmp(expected, buf)) {
13069              fprintf(stderr, "bad result: <%s> wanted: <%s>\n",
13070                      buf, expected);
13071              return 1;
13072          }
13073          return 0;
13074      }
13075_ACEOF
13076if ac_fn_c_try_run "$LINENO"
13077then :
13078  ac_cv_printf_positional=yes
13079else $as_nop
13080  ac_cv_printf_positional=no
13081fi
13082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13083  conftest.$ac_objext conftest.beam conftest.$ac_ext
13084fi
13085
13086fi
13087
13088# Nothing for autoconf.h for now.
13089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_printf_positional" >&5
13090printf "%s\n" "$ac_cv_printf_positional" >&6; }
13091
13092
13093# for t_locate_kdc test
13094
13095# Extract the first word of "dig", so it can be a program name with args.
13096set dummy dig; ac_word=$2
13097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098printf %s "checking for $ac_word... " >&6; }
13099if test ${ac_cv_path_DIG+y}
13100then :
13101  printf %s "(cached) " >&6
13102else $as_nop
13103  case $DIG in
13104  [\\/]* | ?:[\\/]*)
13105  ac_cv_path_DIG="$DIG" # Let the user override the test with a path.
13106  ;;
13107  *)
13108  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109for as_dir in $PATH
13110do
13111  IFS=$as_save_IFS
13112  case $as_dir in #(((
13113    '') as_dir=./ ;;
13114    */) ;;
13115    *) as_dir=$as_dir/ ;;
13116  esac
13117    for ac_exec_ext in '' $ac_executable_extensions; do
13118  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13119    ac_cv_path_DIG="$as_dir$ac_word$ac_exec_ext"
13120    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13121    break 2
13122  fi
13123done
13124  done
13125IFS=$as_save_IFS
13126
13127  test -z "$ac_cv_path_DIG" && ac_cv_path_DIG="false"
13128  ;;
13129esac
13130fi
13131DIG=$ac_cv_path_DIG
13132if test -n "$DIG"; then
13133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIG" >&5
13134printf "%s\n" "$DIG" >&6; }
13135else
13136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137printf "%s\n" "no" >&6; }
13138fi
13139
13140
13141# Extract the first word of "nslookup", so it can be a program name with args.
13142set dummy nslookup; ac_word=$2
13143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144printf %s "checking for $ac_word... " >&6; }
13145if test ${ac_cv_path_NSLOOKUP+y}
13146then :
13147  printf %s "(cached) " >&6
13148else $as_nop
13149  case $NSLOOKUP in
13150  [\\/]* | ?:[\\/]*)
13151  ac_cv_path_NSLOOKUP="$NSLOOKUP" # Let the user override the test with a path.
13152  ;;
13153  *)
13154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155for as_dir in $PATH
13156do
13157  IFS=$as_save_IFS
13158  case $as_dir in #(((
13159    '') as_dir=./ ;;
13160    */) ;;
13161    *) as_dir=$as_dir/ ;;
13162  esac
13163    for ac_exec_ext in '' $ac_executable_extensions; do
13164  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13165    ac_cv_path_NSLOOKUP="$as_dir$ac_word$ac_exec_ext"
13166    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13167    break 2
13168  fi
13169done
13170  done
13171IFS=$as_save_IFS
13172
13173  test -z "$ac_cv_path_NSLOOKUP" && ac_cv_path_NSLOOKUP="false"
13174  ;;
13175esac
13176fi
13177NSLOOKUP=$ac_cv_path_NSLOOKUP
13178if test -n "$NSLOOKUP"; then
13179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NSLOOKUP" >&5
13180printf "%s\n" "$NSLOOKUP" >&6; }
13181else
13182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183printf "%s\n" "no" >&6; }
13184fi
13185
13186
13187
13188# for kadmin
13189
13190for ac_prog in 'bison -y' byacc
13191do
13192  # Extract the first word of "$ac_prog", so it can be a program name with args.
13193set dummy $ac_prog; ac_word=$2
13194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195printf %s "checking for $ac_word... " >&6; }
13196if test ${ac_cv_prog_YACC+y}
13197then :
13198  printf %s "(cached) " >&6
13199else $as_nop
13200  if test -n "$YACC"; then
13201  ac_cv_prog_YACC="$YACC" # Let the user override the test.
13202else
13203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204for as_dir in $PATH
13205do
13206  IFS=$as_save_IFS
13207  case $as_dir in #(((
13208    '') as_dir=./ ;;
13209    */) ;;
13210    *) as_dir=$as_dir/ ;;
13211  esac
13212    for ac_exec_ext in '' $ac_executable_extensions; do
13213  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13214    ac_cv_prog_YACC="$ac_prog"
13215    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13216    break 2
13217  fi
13218done
13219  done
13220IFS=$as_save_IFS
13221
13222fi
13223fi
13224YACC=$ac_cv_prog_YACC
13225if test -n "$YACC"; then
13226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13227printf "%s\n" "$YACC" >&6; }
13228else
13229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230printf "%s\n" "no" >&6; }
13231fi
13232
13233
13234  test -n "$YACC" && break
13235done
13236test -n "$YACC" || YACC="yacc"
13237
13238ath_compat=
13239# Check whether --enable-athena was given.
13240if test ${enable_athena+y}
13241then :
13242  enableval=$enable_athena; ath_compat=compat
13243fi
13244
13245
13246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use priocntl hack" >&5
13247printf %s "checking whether to use priocntl hack... " >&6; }
13248if test ${krb5_cv_priocntl_hack+y}
13249then :
13250  printf %s "(cached) " >&6
13251else $as_nop
13252  case $krb5_cv_host in
13253*-*-solaris2.9*)
13254	if test "$cross_compiling" = yes; then
13255		krb5_cv_priocntl_hack=yes
13256	else
13257		# Solaris patch 117171-11 (sparc) or 117172-11 (x86)
13258		# fixes the Solaris 9 bug where final pty output
13259		# gets lost on close.
13260		if showrev -p | $AWK 'BEGIN { e = 1 }
13261/Patch: 11717[12]/ { x = index($2, "-");
13262if (substr($2, x + 1, length($2) - x) >= 11)
13263{ e = 0 } else { e = 1 } }
13264END { exit e; }'; then
13265			krb5_cv_priocntl_hack=no
13266		else
13267			krb5_cv_priocntl_hack=yes
13268		fi
13269	fi
13270	;;
13271*)
13272	krb5_cv_priocntl_hack=no
13273	;;
13274esac
13275fi
13276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_priocntl_hack" >&5
13277printf "%s\n" "$krb5_cv_priocntl_hack" >&6; }
13278if test "$krb5_cv_priocntl_hack" = yes; then
13279	PRIOCNTL_HACK=1
13280else
13281	PRIOCNTL_HACK=0
13282fi
13283
13284
13285# Extract the first word of "perl", so it can be a program name with args.
13286set dummy perl; ac_word=$2
13287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288printf %s "checking for $ac_word... " >&6; }
13289if test ${ac_cv_prog_PERL+y}
13290then :
13291  printf %s "(cached) " >&6
13292else $as_nop
13293  if test -n "$PERL"; then
13294  ac_cv_prog_PERL="$PERL" # Let the user override the test.
13295else
13296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299  IFS=$as_save_IFS
13300  case $as_dir in #(((
13301    '') as_dir=./ ;;
13302    */) ;;
13303    *) as_dir=$as_dir/ ;;
13304  esac
13305    for ac_exec_ext in '' $ac_executable_extensions; do
13306  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13307    ac_cv_prog_PERL="perl"
13308    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13309    break 2
13310  fi
13311done
13312  done
13313IFS=$as_save_IFS
13314
13315fi
13316fi
13317PERL=$ac_cv_prog_PERL
13318if test -n "$PERL"; then
13319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13320printf "%s\n" "$PERL" >&6; }
13321else
13322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323printf "%s\n" "no" >&6; }
13324fi
13325
13326
13327
13328# lib/gssapi
13329ac_fn_c_check_header_compile "$LINENO" "xom.h" "ac_cv_header_xom_h" "$ac_includes_default"
13330if test "x$ac_cv_header_xom_h" = xyes
13331then :
13332
13333	include_xom='awk '\''END{printf("%cinclude <xom.h>\n", 35);}'\'' < /dev/null'
13334else $as_nop
13335
13336	include_xom='echo "/* no xom.h */"'
13337fi
13338
13339
13340
13341
13342# lib/rpc
13343### Check where struct rpcent is declared.
13344
13345# This is necessary to determine:
13346# 1. If /usr/include/netdb.h declares struct rpcent
13347# 2. If /usr/include/rpc/netdb.h declares struct rpcent
13348
13349# We have our own rpc/netdb.h, and if /usr/include/netdb.h includes
13350# rpc/netdb.h, then nastiness could happen.
13351
13352# Logic: If /usr/include/netdb.h declares struct rpcent, then check
13353# rpc/netdb.h.  If /usr/include/rpc/netdb.h declares struct rpcent,
13354# then define STRUCT_RPCENT_IN_RPC_NETDB_H, otherwise do not.  If
13355# neither netdb.h nor rpc/netdb.h declares struct rpcent, then define
13356# STRUCT_RPCENT_IN_RPC_NETDB_H anyway.
13357
13358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where struct rpcent is declared" >&5
13359printf %s "checking where struct rpcent is declared... " >&6; }
13360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361/* end confdefs.h.  */
13362#include <netdb.h>
13363
13364int
13365main (void)
13366{
13367struct rpcent e;
13368      char c = e.r_name[0];
13369      int i = e.r_number;
13370  ;
13371  return 0;
13372}
13373_ACEOF
13374if ac_fn_c_try_compile "$LINENO"
13375then :
13376  netdb_rpcent=yes
13377else $as_nop
13378  netdb_rpcent=no
13379fi
13380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13381if test "$netdb_rpcent" = yes; then
13382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383/* end confdefs.h.  */
13384#include <rpc/netdb.h>
13385
13386int
13387main (void)
13388{
13389struct rpcent e;
13390        char c = e.r_name[0];
13391        int i = e.r_number;
13392  ;
13393  return 0;
13394}
13395_ACEOF
13396if ac_fn_c_try_compile "$LINENO"
13397then :
13398  rpc_netdb_rpcent=yes
13399else $as_nop
13400  rpc_netdb_rpcent=no
13401fi
13402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13403  if test "$rpc_netdb_rpcent" = yes; then
13404    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: rpc/netdb.h" >&5
13405printf "%s\n" "rpc/netdb.h" >&6; }
13406    rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H'
13407  else
13408    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: netdb.h" >&5
13409printf "%s\n" "netdb.h" >&6; }
13410  fi
13411else
13412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
13413printf "%s\n" "nowhere" >&6; }
13414  rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H'
13415fi
13416
13417
13418ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13419if test "x$ac_cv_header_sys_select_h" = xyes
13420then :
13421  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
13422
13423fi
13424ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13425if test "x$ac_cv_header_sys_time_h" = xyes
13426then :
13427  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13428
13429fi
13430ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13431if test "x$ac_cv_header_unistd_h" = xyes
13432then :
13433  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13434
13435fi
13436
13437if test $ac_cv_header_sys_select_h = yes; then
13438  GSSRPC__SYS_SELECT_H='#include <sys/select.h>'
13439else
13440  GSSRPC__SYS_SELECT_H='/* #include <sys/select.h> */'
13441fi
13442
13443if test $ac_cv_header_sys_time_h = yes; then
13444  GSSRPC__SYS_TIME_H='#include <sys/time.h>'
13445else
13446  GSSRPC__SYS_TIME_H='/* #include <sys/time.h> */'
13447fi
13448
13449if test $ac_cv_header_unistd_h = yes; then
13450  GSSRPC__UNISTD_H='#include <unistd.h>'
13451else
13452  GSSRPC__UNISTD_H='/* #include <unistd.h> */'
13453fi
13454
13455
13456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN in sys/param.h" >&5
13457printf %s "checking for MAXHOSTNAMELEN in sys/param.h... " >&6; }
13458if test ${krb5_cv_header_sys_param_h_maxhostnamelen+y}
13459then :
13460  printf %s "(cached) " >&6
13461else $as_nop
13462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463/* end confdefs.h.  */
13464#include <sys/param.h>
13465
13466int
13467main (void)
13468{
13469int i = MAXHOSTNAMELEN;
13470  ;
13471  return 0;
13472}
13473_ACEOF
13474if ac_fn_c_try_compile "$LINENO"
13475then :
13476  krb5_cv_header_sys_param_h_maxhostnamelen=yes
13477else $as_nop
13478  krb5_cv_header_sys_param_h_maxhostnamelen=no
13479fi
13480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13481fi
13482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_sys_param_h_maxhostnamelen" >&5
13483printf "%s\n" "$krb5_cv_header_sys_param_h_maxhostnamelen" >&6; }
13484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN in netdb.h" >&5
13485printf %s "checking for MAXHOSTNAMELEN in netdb.h... " >&6; }
13486if test ${krb5_cv_header_netdb_h_maxhostnamelen+y}
13487then :
13488  printf %s "(cached) " >&6
13489else $as_nop
13490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h.  */
13492#include <netdb.h>
13493
13494int
13495main (void)
13496{
13497int i = MAXHOSTNAMELEN;
13498  ;
13499  return 0;
13500}
13501_ACEOF
13502if ac_fn_c_try_compile "$LINENO"
13503then :
13504  krb5_cv_header_netdb_h_maxhostnamelen=yes
13505else $as_nop
13506  krb5_cv_header_netdb_h_maxhostnamelen=no
13507fi
13508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13509fi
13510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_netdb_h_maxhostnamelen" >&5
13511printf "%s\n" "$krb5_cv_header_netdb_h_maxhostnamelen" >&6; }
13512
13513GSSRPC__SYS_PARAM_H='/* #include <sys/param.h> */'
13514GSSRPC__NETDB_H='/* #include <netdb.h> */'
13515if test $krb5_cv_header_sys_param_h_maxhostnamelen = yes; then
13516  GSSRPC__SYS_PARAM_H='#include <sys/param.h>'
13517else
13518  if test $krb5_cv_header_netdb_h_maxhostnamelen = yes; then
13519    GSSRPC__NETDB_H='#include <netdb.h>'
13520  else
13521    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find MAXHOSTNAMELEN definition; faking it" >&5
13522printf "%s\n" "$as_me: WARNING: can't find MAXHOSTNAMELEN definition; faking it" >&2;}
13523  fi
13524fi
13525
13526
13527
13528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD type aliases" >&5
13529printf %s "checking for BSD type aliases... " >&6; }
13530if test ${krb5_cv_type_bsdaliases+y}
13531then :
13532  printf %s "(cached) " >&6
13533else $as_nop
13534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535/* end confdefs.h.  */
13536#include <sys/types.h>
13537      #if HAVE_UNISTD_H
13538      #include <unistd.h>
13539      #endif
13540
13541int
13542main (void)
13543{
13544u_char c;
13545      u_int i;
13546      u_long l;
13547  ;
13548  return 0;
13549}
13550_ACEOF
13551if ac_fn_c_try_compile "$LINENO"
13552then :
13553  krb5_cv_type_bsdaliases=yes
13554else $as_nop
13555  krb5_cv_type_bsdaliases=no
13556fi
13557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13558fi
13559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_bsdaliases" >&5
13560printf "%s\n" "$krb5_cv_type_bsdaliases" >&6; }
13561if test $krb5_cv_type_bsdaliases = yes; then
13562  GSSRPC__BSD_TYPEALIASES='/* #undef GSSRPC__BSD_TYPEALIASES */'
13563else
13564  GSSRPC__BSD_TYPEALIASES='#define GSSRPC__BSD_TYPEALIASES 1'
13565fi
13566
13567
13568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of setrpcent" >&5
13569printf %s "checking return type of setrpcent... " >&6; }
13570if test ${k5_cv_type_setrpcent+y}
13571then :
13572  printf %s "(cached) " >&6
13573else $as_nop
13574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575/* end confdefs.h.  */
13576#include <netdb.h>
13577      extern void setrpcent();
13578_ACEOF
13579if ac_fn_c_try_compile "$LINENO"
13580then :
13581  k5_cv_type_setrpcent=void
13582else $as_nop
13583  k5_cv_type_setrpcent=int
13584fi
13585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13586fi
13587
13588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_setrpcent" >&5
13589printf "%s\n" "$k5_cv_type_setrpcent" >&6; }
13590
13591printf "%s\n" "#define SETRPCENT_TYPE $k5_cv_type_setrpcent" >>confdefs.h
13592
13593
13594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of endrpcent" >&5
13595printf %s "checking return type of endrpcent... " >&6; }
13596if test ${k5_cv_type_endrpcent+y}
13597then :
13598  printf %s "(cached) " >&6
13599else $as_nop
13600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601/* end confdefs.h.  */
13602#include <netdb.h>
13603      extern void endrpcent();
13604_ACEOF
13605if ac_fn_c_try_compile "$LINENO"
13606then :
13607  k5_cv_type_endrpcent=void
13608else $as_nop
13609  k5_cv_type_endrpcent=int
13610fi
13611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13612fi
13613
13614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_endrpcent" >&5
13615printf "%s\n" "$k5_cv_type_endrpcent" >&6; }
13616
13617printf "%s\n" "#define ENDRPCENT_TYPE $k5_cv_type_endrpcent" >>confdefs.h
13618
13619ac_config_files="$ac_config_files include/gssrpc/types.h:include/gssrpc/types.hin"
13620
13621
13622# for pkinit
13623# Check whether --enable-pkinit was given.
13624if test ${enable_pkinit+y}
13625then :
13626  enableval=$enable_pkinit;
13627else $as_nop
13628  enable_pkinit=try
13629fi
13630
13631if test "$enable_pkinit" = yes || test "$enable_pkinit" = try; then
13632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a recent enough OpenSSL" >&5
13633printf %s "checking for a recent enough OpenSSL... " >&6; }
13634if test ${k5_cv_openssl_version_okay+y}
13635then :
13636  printf %s "(cached) " >&6
13637else $as_nop
13638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639/* end confdefs.h.  */
13640#include <openssl/opensslv.h>
13641#if OPENSSL_VERSION_NUMBER < 0x10000000L
13642# error openssl is too old, need 1.0.0
13643#endif
13644int i = 1;
13645
13646_ACEOF
13647if ac_fn_c_try_compile "$LINENO"
13648then :
13649  k5_cv_openssl_version_okay=yes
13650else $as_nop
13651  k5_cv_openssl_version_okay=no
13652fi
13653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13654fi
13655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_openssl_version_okay" >&5
13656printf "%s\n" "$k5_cv_openssl_version_okay" >&6; }
13657  old_LIBS="$LIBS"
13658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PKCS7_get_signer_info in -lcrypto" >&5
13659printf %s "checking for PKCS7_get_signer_info in -lcrypto... " >&6; }
13660if test ${ac_cv_lib_crypto_PKCS7_get_signer_info+y}
13661then :
13662  printf %s "(cached) " >&6
13663else $as_nop
13664  ac_check_lib_save_LIBS=$LIBS
13665LIBS="-lcrypto  $LIBS"
13666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667/* end confdefs.h.  */
13668
13669/* Override any GCC internal prototype to avoid an error.
13670   Use char because int might match the return type of a GCC
13671   builtin and then its argument prototype would still apply.  */
13672char PKCS7_get_signer_info ();
13673int
13674main (void)
13675{
13676return PKCS7_get_signer_info ();
13677  ;
13678  return 0;
13679}
13680_ACEOF
13681if ac_fn_c_try_link "$LINENO"
13682then :
13683  ac_cv_lib_crypto_PKCS7_get_signer_info=yes
13684else $as_nop
13685  ac_cv_lib_crypto_PKCS7_get_signer_info=no
13686fi
13687rm -f core conftest.err conftest.$ac_objext conftest.beam \
13688    conftest$ac_exeext conftest.$ac_ext
13689LIBS=$ac_check_lib_save_LIBS
13690fi
13691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_PKCS7_get_signer_info" >&5
13692printf "%s\n" "$ac_cv_lib_crypto_PKCS7_get_signer_info" >&6; }
13693if test "x$ac_cv_lib_crypto_PKCS7_get_signer_info" = xyes
13694then :
13695  printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13696
13697  LIBS="-lcrypto $LIBS"
13698
13699fi
13700
13701  ac_fn_c_check_func "$LINENO" "EVP_PKEY_get_bn_param" "ac_cv_func_EVP_PKEY_get_bn_param"
13702if test "x$ac_cv_func_EVP_PKEY_get_bn_param" = xyes
13703then :
13704  printf "%s\n" "#define HAVE_EVP_PKEY_GET_BN_PARAM 1" >>confdefs.h
13705
13706fi
13707
13708  LIBS="$old_LIBS"
13709fi
13710if test "$k5_cv_openssl_version_okay" = yes && (test "$enable_pkinit" = yes || test "$enable_pkinit" = try); then
13711  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"
13712
13713
13714
13715  PKINIT=yes
13716elif test "$k5_cv_openssl_version_okay" = no && test "$enable_pkinit" = yes; then
13717  as_fn_error $? "Version of OpenSSL is too old; cannot enable PKINIT." "$LINENO" 5
13718else
13719
13720printf "%s\n" "#define DISABLE_PKINIT 1" >>confdefs.h
13721
13722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling PKINIT support." >&5
13723printf "%s\n" "$as_me: Disabling PKINIT support." >&6;}
13724  PKINIT=no
13725fi
13726
13727
13728# for lib/apputils
13729ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13730if test "x$ac_cv_func_daemon" = xyes
13731then :
13732  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
13733
13734else $as_nop
13735  case " $LIBOBJS " in
13736  *" daemon.$ac_objext "* ) ;;
13737  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
13738 ;;
13739esac
13740
13741fi
13742
13743
13744# For Python tests.  Python version 3.4 is required for
13745# ssl.create_default_context().
13746PYTHON_MINVERSION=3.4
13747
13748# Extract the first word of "python3", so it can be a program name with args.
13749set dummy python3; ac_word=$2
13750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751printf %s "checking for $ac_word... " >&6; }
13752if test ${ac_cv_prog_PYTHON+y}
13753then :
13754  printf %s "(cached) " >&6
13755else $as_nop
13756  if test -n "$PYTHON"; then
13757  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
13758else
13759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760for as_dir in $PATH
13761do
13762  IFS=$as_save_IFS
13763  case $as_dir in #(((
13764    '') as_dir=./ ;;
13765    */) ;;
13766    *) as_dir=$as_dir/ ;;
13767  esac
13768    for ac_exec_ext in '' $ac_executable_extensions; do
13769  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13770    ac_cv_prog_PYTHON="python3"
13771    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13772    break 2
13773  fi
13774done
13775  done
13776IFS=$as_save_IFS
13777
13778fi
13779fi
13780PYTHON=$ac_cv_prog_PYTHON
13781if test -n "$PYTHON"; then
13782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13783printf "%s\n" "$PYTHON" >&6; }
13784else
13785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786printf "%s\n" "no" >&6; }
13787fi
13788
13789
13790if test x"$PYTHON" = x; then
13791	# Extract the first word of "python", so it can be a program name with args.
13792set dummy python; ac_word=$2
13793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13794printf %s "checking for $ac_word... " >&6; }
13795if test ${ac_cv_prog_PYTHON+y}
13796then :
13797  printf %s "(cached) " >&6
13798else $as_nop
13799  if test -n "$PYTHON"; then
13800  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
13801else
13802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803for as_dir in $PATH
13804do
13805  IFS=$as_save_IFS
13806  case $as_dir in #(((
13807    '') as_dir=./ ;;
13808    */) ;;
13809    *) as_dir=$as_dir/ ;;
13810  esac
13811    for ac_exec_ext in '' $ac_executable_extensions; do
13812  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13813    ac_cv_prog_PYTHON="python"
13814    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13815    break 2
13816  fi
13817done
13818  done
13819IFS=$as_save_IFS
13820
13821fi
13822fi
13823PYTHON=$ac_cv_prog_PYTHON
13824if test -n "$PYTHON"; then
13825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13826printf "%s\n" "$PYTHON" >&6; }
13827else
13828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829printf "%s\n" "no" >&6; }
13830fi
13831
13832
13833fi
13834HAVE_PYTHON=no
13835if test x"$PYTHON" != x; then
13836	wantver="(sys.hexversion >= 0x30400F0)"
13837	if "$PYTHON" -c "import sys; sys.exit(not $wantver and 1 or 0)"; then
13838		HAVE_PYTHON=yes
13839	fi
13840fi
13841
13842
13843# For cmocka tests.
13844CMOCKA_LIBS=
13845HAVE_CMOCKA=no
13846HAVE_CMOCKA_H=no
13847HAVE_CMOCKA_LIB=no
13848ac_fn_c_check_header_compile "$LINENO" "cmocka.h" "ac_cv_header_cmocka_h" "
13849#include <stdarg.h>
13850#include <stddef.h>
13851#include <setjmp.h>
13852"
13853if test "x$ac_cv_header_cmocka_h" = xyes
13854then :
13855  HAVE_CMOCKA_H=yes
13856else $as_nop
13857  :
13858fi
13859
13860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _cmocka_run_group_tests in -lcmocka" >&5
13861printf %s "checking for _cmocka_run_group_tests in -lcmocka... " >&6; }
13862if test ${ac_cv_lib_cmocka__cmocka_run_group_tests+y}
13863then :
13864  printf %s "(cached) " >&6
13865else $as_nop
13866  ac_check_lib_save_LIBS=$LIBS
13867LIBS="-lcmocka  $LIBS"
13868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869/* end confdefs.h.  */
13870
13871/* Override any GCC internal prototype to avoid an error.
13872   Use char because int might match the return type of a GCC
13873   builtin and then its argument prototype would still apply.  */
13874char _cmocka_run_group_tests ();
13875int
13876main (void)
13877{
13878return _cmocka_run_group_tests ();
13879  ;
13880  return 0;
13881}
13882_ACEOF
13883if ac_fn_c_try_link "$LINENO"
13884then :
13885  ac_cv_lib_cmocka__cmocka_run_group_tests=yes
13886else $as_nop
13887  ac_cv_lib_cmocka__cmocka_run_group_tests=no
13888fi
13889rm -f core conftest.err conftest.$ac_objext conftest.beam \
13890    conftest$ac_exeext conftest.$ac_ext
13891LIBS=$ac_check_lib_save_LIBS
13892fi
13893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cmocka__cmocka_run_group_tests" >&5
13894printf "%s\n" "$ac_cv_lib_cmocka__cmocka_run_group_tests" >&6; }
13895if test "x$ac_cv_lib_cmocka__cmocka_run_group_tests" = xyes
13896then :
13897  HAVE_CMOCKA_LIB=yes
13898fi
13899
13900if test "$HAVE_CMOCKA_LIB" = yes && test "$HAVE_CMOCKA_H" = yes; then
13901    HAVE_CMOCKA=yes
13902    CMOCKA_LIBS='-lcmocka'
13903
13904printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h
13905
13906fi
13907
13908
13909
13910# For URI lookup tests. Requires resolv_wrapper >= 1.1.5 for URI
13911# support.
13912HAVE_RESOLV_WRAPPER=0
13913if test -n "$PKG_CONFIG" && \
13914    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"resolv_wrapper >= 1.1.5\""; } >&5
13915  ($PKG_CONFIG --exists --print-errors "resolv_wrapper >= 1.1.5") 2>&5
13916  ac_status=$?
13917  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13918  test $ac_status = 0; }; then
13919  HAVE_RESOLV_WRAPPER=1
13920fi
13921
13922
13923# for plugins/kdb/db2
13924
13925# AIX is unusual in that it wants all symbols resolved at link time
13926#  Fortunately, it will allow us to link the kdb library now, even if
13927# it is linked again later.
13928case $krb5_cv_host in
13929*-*-aix*)
13930	DB_EXTRA_LIBS=-ldb
13931	;;
13932*)
13933	DB_EXTRA_LIBS=
13934	;;
13935esac
13936
13937
13938
13939
13940# Warn about possible thread safety issues.  These functions have all
13941# been checked for previously.
13942tsfuncs="getpwnam_r getpwuid_r gethostbyname_r getservbyname_r gmtime_r localtime_r"
13943if test "$enable_thread_support" = yes; then
13944  tsmissing=""
13945  for ts in $tsfuncs; do
13946    if eval "test \"\${ac_cv_func_$ts}\" != yes"; then
13947      tsmissing="$tsmissing $ts"
13948    fi
13949  done
13950  if test "$ac_cv_func_res_nsearch/$ac_cv_lib_resolv_res_nsearch" = "no/no"; then
13951    tsmissing="$tsmissing res_nsearch"
13952  fi
13953  if test "$tsmissing" != ""; then
13954    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Some functions that are needed for library thread" >&5
13955printf "%s\n" "$as_me: WARNING: Some functions that are needed for library thread" >&2;}
13956    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: safety appear to be missing." >&5
13957printf "%s\n" "$as_me: WARNING: safety appear to be missing." >&2;}
13958    for ts in $tsmissing; do
13959      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:   missing thread-safe function: $ts" >&5
13960printf "%s\n" "$as_me: WARNING:   missing thread-safe function: $ts" >&2;}
13961    done
13962    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Without these functions, the installed libraries" >&5
13963printf "%s\n" "$as_me: WARNING: Without these functions, the installed libraries" >&2;}
13964    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: may not be thread-safe." >&5
13965printf "%s\n" "$as_me: WARNING: may not be thread-safe." >&2;}
13966  fi # tsmissing not empty
13967fi # enable_thread_support
13968
13969# Sadly, we seem to have accidentally committed ourselves in 1.4 to
13970# an ABI that includes the existence of libkrb5support.0 even
13971# though random apps should never use anything from it.  And on
13972# the Mac, to which that didn't apply, we can't use major version 0.
13973
13974case $krb5_cv_host in
13975*-*-darwin* | *-*-rhapsody*) SUPPORTLIB_MAJOR=1 ;;
13976*)			     SUPPORTLIB_MAJOR=0 ;;
13977esac
13978
13979
13980
13981if test "$COM_ERR_VERSION" = k5 ; then
13982  ac_config_files="$ac_config_files util/et/Makefile:$srcdir/./config/pre.in:util/et/Makefile.in:util/et/deps:$srcdir/./config/post.in"
13983
13984
13985
13986fi
13987if test "$SS_VERSION" = k5 ; then
13988  ac_config_files="$ac_config_files util/ss/Makefile:$srcdir/./config/pre.in:util/ss/Makefile.in:util/ss/deps:$srcdir/./config/post.in"
13989
13990
13991
13992fi
13993
13994
13995ldap_plugin_dir=""
13996ldap_lib=""
13997if test -n "$OPENLDAP_PLUGIN"; then
13998         for ac_header in ldap.h lber.h
13999do :
14000  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14001ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14002if eval test \"x\$"$as_ac_Header"\" = x"yes"
14003then :
14004  cat >>confdefs.h <<_ACEOF
14005#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14006_ACEOF
14007 :
14008else $as_nop
14009  as_fn_error $? "$ac_header not found" "$LINENO" 5
14010fi
14011
14012done
14013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_str2dn in -lldap" >&5
14014printf %s "checking for ldap_str2dn in -lldap... " >&6; }
14015if test ${ac_cv_lib_ldap_ldap_str2dn+y}
14016then :
14017  printf %s "(cached) " >&6
14018else $as_nop
14019  ac_check_lib_save_LIBS=$LIBS
14020LIBS="-lldap  $LIBS"
14021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022/* end confdefs.h.  */
14023
14024/* Override any GCC internal prototype to avoid an error.
14025   Use char because int might match the return type of a GCC
14026   builtin and then its argument prototype would still apply.  */
14027char ldap_str2dn ();
14028int
14029main (void)
14030{
14031return ldap_str2dn ();
14032  ;
14033  return 0;
14034}
14035_ACEOF
14036if ac_fn_c_try_link "$LINENO"
14037then :
14038  ac_cv_lib_ldap_ldap_str2dn=yes
14039else $as_nop
14040  ac_cv_lib_ldap_ldap_str2dn=no
14041fi
14042rm -f core conftest.err conftest.$ac_objext conftest.beam \
14043    conftest$ac_exeext conftest.$ac_ext
14044LIBS=$ac_check_lib_save_LIBS
14045fi
14046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_str2dn" >&5
14047printf "%s\n" "$ac_cv_lib_ldap_ldap_str2dn" >&6; }
14048if test "x$ac_cv_lib_ldap_ldap_str2dn" = xyes
14049then :
14050  :
14051else $as_nop
14052  as_fn_error $? "libldap not found or missing ldap_str2dn" "$LINENO" 5
14053fi
14054
14055
14056  BER_OKAY=0
14057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_init in -lldap" >&5
14058printf %s "checking for ber_init in -lldap... " >&6; }
14059if test ${ac_cv_lib_ldap_ber_init+y}
14060then :
14061  printf %s "(cached) " >&6
14062else $as_nop
14063  ac_check_lib_save_LIBS=$LIBS
14064LIBS="-lldap  $LIBS"
14065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066/* end confdefs.h.  */
14067
14068/* Override any GCC internal prototype to avoid an error.
14069   Use char because int might match the return type of a GCC
14070   builtin and then its argument prototype would still apply.  */
14071char ber_init ();
14072int
14073main (void)
14074{
14075return ber_init ();
14076  ;
14077  return 0;
14078}
14079_ACEOF
14080if ac_fn_c_try_link "$LINENO"
14081then :
14082  ac_cv_lib_ldap_ber_init=yes
14083else $as_nop
14084  ac_cv_lib_ldap_ber_init=no
14085fi
14086rm -f core conftest.err conftest.$ac_objext conftest.beam \
14087    conftest$ac_exeext conftest.$ac_ext
14088LIBS=$ac_check_lib_save_LIBS
14089fi
14090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ber_init" >&5
14091printf "%s\n" "$ac_cv_lib_ldap_ber_init" >&6; }
14092if test "x$ac_cv_lib_ldap_ber_init" = xyes
14093then :
14094  BER_OKAY=1
14095fi
14096
14097  if test "$BER_OKAY" = "1"; then
14098    LDAP_LIBS='-lldap'
14099  else
14100    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14101printf %s "checking for ber_init in -llber... " >&6; }
14102if test ${ac_cv_lib_lber_ber_init+y}
14103then :
14104  printf %s "(cached) " >&6
14105else $as_nop
14106  ac_check_lib_save_LIBS=$LIBS
14107LIBS="-llber  $LIBS"
14108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109/* end confdefs.h.  */
14110
14111/* Override any GCC internal prototype to avoid an error.
14112   Use char because int might match the return type of a GCC
14113   builtin and then its argument prototype would still apply.  */
14114char ber_init ();
14115int
14116main (void)
14117{
14118return ber_init ();
14119  ;
14120  return 0;
14121}
14122_ACEOF
14123if ac_fn_c_try_link "$LINENO"
14124then :
14125  ac_cv_lib_lber_ber_init=yes
14126else $as_nop
14127  ac_cv_lib_lber_ber_init=no
14128fi
14129rm -f core conftest.err conftest.$ac_objext conftest.beam \
14130    conftest$ac_exeext conftest.$ac_ext
14131LIBS=$ac_check_lib_save_LIBS
14132fi
14133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14134printf "%s\n" "$ac_cv_lib_lber_ber_init" >&6; }
14135if test "x$ac_cv_lib_lber_ber_init" = xyes
14136then :
14137  BER_OKAY=1
14138else $as_nop
14139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libber not found" >&5
14140printf "%s\n" "$as_me: WARNING: libber not found" >&2;}
14141fi
14142
14143    if test "$BER_OKAY" = "1"; then
14144      LDAP_LIBS='-lldap -llber'
14145    else
14146      as_fn_error $? "\"BER library missing - cannot build LDAP database module\"" "$LINENO" 5
14147    fi
14148  fi
14149
14150printf "%s\n" "#define ENABLE_LDAP 1" >>confdefs.h
14151
14152
14153
14154         for ac_header in sasl/sasl.h
14155do :
14156  ac_fn_c_check_header_compile "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14157if test "x$ac_cv_header_sasl_sasl_h" = xyes
14158then :
14159  printf "%s\n" "#define HAVE_SASL_SASL_H 1" >>confdefs.h
14160 HAVE_SASL=yes
14161else $as_nop
14162  HAVE_SASL=no
14163fi
14164
14165done
14166
14167  if test "$HAVE_SASL" = no; then
14168    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building LDAP SASL support" >&5
14169printf "%s\n" "$as_me: WARNING: not building LDAP SASL support" >&2;}
14170  fi
14171
14172  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"
14173
14174
14175
14176  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"
14177
14178
14179
14180  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"
14181
14182
14183
14184  ldap_plugin_dir='plugins/kdb/ldap plugins/kdb/ldap/ldap_util'
14185  LDAP=yes
14186else
14187  LDAP=no
14188fi
14189
14190
14191# This check is for plugins/preauth/securid_sam2
14192sam2_plugin=""
14193old_CFLAGS=$CFLAGS
14194CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
14196printf %s "checking for SD_Init in -laceclnt... " >&6; }
14197if test ${ac_cv_lib_aceclnt_SD_Init+y}
14198then :
14199  printf %s "(cached) " >&6
14200else $as_nop
14201  ac_check_lib_save_LIBS=$LIBS
14202LIBS="-laceclnt  $LIBS"
14203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h.  */
14205
14206/* Override any GCC internal prototype to avoid an error.
14207   Use char because int might match the return type of a GCC
14208   builtin and then its argument prototype would still apply.  */
14209char SD_Init ();
14210int
14211main (void)
14212{
14213return SD_Init ();
14214  ;
14215  return 0;
14216}
14217_ACEOF
14218if ac_fn_c_try_link "$LINENO"
14219then :
14220  ac_cv_lib_aceclnt_SD_Init=yes
14221else $as_nop
14222  ac_cv_lib_aceclnt_SD_Init=no
14223fi
14224rm -f core conftest.err conftest.$ac_objext conftest.beam \
14225    conftest$ac_exeext conftest.$ac_ext
14226LIBS=$ac_check_lib_save_LIBS
14227fi
14228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init" >&5
14229printf "%s\n" "$ac_cv_lib_aceclnt_SD_Init" >&6; }
14230if test "x$ac_cv_lib_aceclnt_SD_Init" = xyes
14231then :
14232
14233	     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling RSA securID support" >&5
14234printf "%s\n" "$as_me: Enabling RSA securID support" >&6;}
14235	     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"
14236
14237
14238
14239	     sam2_plugin=plugins/preauth/securid_sam2
14240
14241fi
14242
14243
14244CFLAGS=$old_CFLAGS
14245
14246lmdb_plugin_dir=""
14247HAVE_LMDB=no
14248
14249# Check whether --with-lmdb was given.
14250if test ${with_lmdb+y}
14251then :
14252  withval=$with_lmdb;
14253else $as_nop
14254  withval=auto
14255fi
14256
14257if test "$withval" = auto -o "$withval" = yes; then
14258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5
14259printf %s "checking for mdb_env_create in -llmdb... " >&6; }
14260if test ${ac_cv_lib_lmdb_mdb_env_create+y}
14261then :
14262  printf %s "(cached) " >&6
14263else $as_nop
14264  ac_check_lib_save_LIBS=$LIBS
14265LIBS="-llmdb  $LIBS"
14266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267/* end confdefs.h.  */
14268
14269/* Override any GCC internal prototype to avoid an error.
14270   Use char because int might match the return type of a GCC
14271   builtin and then its argument prototype would still apply.  */
14272char mdb_env_create ();
14273int
14274main (void)
14275{
14276return mdb_env_create ();
14277  ;
14278  return 0;
14279}
14280_ACEOF
14281if ac_fn_c_try_link "$LINENO"
14282then :
14283  ac_cv_lib_lmdb_mdb_env_create=yes
14284else $as_nop
14285  ac_cv_lib_lmdb_mdb_env_create=no
14286fi
14287rm -f core conftest.err conftest.$ac_objext conftest.beam \
14288    conftest$ac_exeext conftest.$ac_ext
14289LIBS=$ac_check_lib_save_LIBS
14290fi
14291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5
14292printf "%s\n" "$ac_cv_lib_lmdb_mdb_env_create" >&6; }
14293if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes
14294then :
14295  have_lmdb=true
14296else $as_nop
14297  have_lmdb=false
14298fi
14299
14300  if test "$have_lmdb" = true; then
14301    LMDB_LIBS=-llmdb
14302    HAVE_LMDB=yes
14303    lmdb_plugin_dir='plugins/kdb/lmdb'
14304    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"
14305
14306
14307
14308  elif test "$withval" = yes; then
14309    as_fn_error $? "liblmdb not found" "$LINENO" 5
14310  fi
14311fi
14312
14313
14314
14315
14316# Kludge for simple server --- FIXME is this the best way to do this?
14317
14318if test "$ac_cv_lib_socket" = "yes" -a "$ac_cv_lib_nsl" = "yes"; then
14319
14320printf "%s\n" "#define BROKEN_STREAMS_SOCKETS 1" >>confdefs.h
14321
14322fi
14323
14324# Compile with libedit support in ss by default if available.  Compile
14325# with readline only if asked, to avoid a default GPL dependency.
14326
14327# Check whether --with-libedit was given.
14328if test ${with_libedit+y}
14329then :
14330  withval=$with_libedit;
14331else $as_nop
14332  with_libedit=default
14333fi
14334
14335
14336# Check whether --with-readline was given.
14337if test ${with_readline+y}
14338then :
14339  withval=$with_readline;
14340else $as_nop
14341  with_readline=no
14342fi
14343
14344if test "x$with_readline" = xyes; then
14345  with_libedit=no
14346fi
14347RL_CFLAGS=
14348RL_LIBS=
14349if test "x$with_libedit" != xno; then
14350
14351pkg_failed=no
14352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
14353printf %s "checking for libedit... " >&6; }
14354
14355if test -n "$LIBEDIT_CFLAGS"; then
14356    pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
14357 elif test -n "$PKG_CONFIG"; then
14358    if test -n "$PKG_CONFIG" && \
14359    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
14360  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
14361  ac_status=$?
14362  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14363  test $ac_status = 0; }; then
14364  pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
14365		      test "x$?" != "x0" && pkg_failed=yes
14366else
14367  pkg_failed=yes
14368fi
14369 else
14370    pkg_failed=untried
14371fi
14372if test -n "$LIBEDIT_LIBS"; then
14373    pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
14374 elif test -n "$PKG_CONFIG"; then
14375    if test -n "$PKG_CONFIG" && \
14376    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
14377  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
14378  ac_status=$?
14379  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14380  test $ac_status = 0; }; then
14381  pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
14382		      test "x$?" != "x0" && pkg_failed=yes
14383else
14384  pkg_failed=yes
14385fi
14386 else
14387    pkg_failed=untried
14388fi
14389
14390
14391
14392if test $pkg_failed = yes; then
14393        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394printf "%s\n" "no" >&6; }
14395
14396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14397        _pkg_short_errors_supported=yes
14398else
14399        _pkg_short_errors_supported=no
14400fi
14401        if test $_pkg_short_errors_supported = yes; then
14402	        LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
14403        else
14404	        LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
14405        fi
14406	# Put the nasty error message in config.log where it belongs
14407	echo "$LIBEDIT_PKG_ERRORS" >&5
14408
14409	have_libedit=no
14410elif test $pkg_failed = untried; then
14411        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412printf "%s\n" "no" >&6; }
14413	have_libedit=no
14414else
14415	LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
14416	LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
14417        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14418printf "%s\n" "yes" >&6; }
14419	have_libedit=yes
14420fi
14421  if test "x$have_libedit" = xyes; then
14422    RL_CFLAGS=$LIBEDIT_CFLAGS
14423    RL_LIBS=$LIBEDIT_LIBS
14424
14425printf "%s\n" "#define HAVE_LIBEDIT 1" >>confdefs.h
14426
14427    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using libedit for readline support" >&5
14428printf "%s\n" "$as_me: Using libedit for readline support" >&6;}
14429  elif test "x$with_libedit" = xyes; then
14430    # We were explicitly asked for libedit and couldn't find it.
14431    as_fn_error $? "Could not detect libedit with pkg-config" "$LINENO" 5
14432  else
14433    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not using any readline support" >&5
14434printf "%s\n" "$as_me: Not using any readline support" >&6;}
14435  fi
14436elif test "x$with_readline" = xyes; then
14437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using GNU Readline" >&5
14438printf "%s\n" "$as_me: Using GNU Readline" >&6;}
14439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
14440printf %s "checking for main in -lreadline... " >&6; }
14441if test ${ac_cv_lib_readline_main+y}
14442then :
14443  printf %s "(cached) " >&6
14444else $as_nop
14445  ac_check_lib_save_LIBS=$LIBS
14446LIBS="-lreadline  $LIBS"
14447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448/* end confdefs.h.  */
14449
14450
14451int
14452main (void)
14453{
14454return main ();
14455  ;
14456  return 0;
14457}
14458_ACEOF
14459if ac_fn_c_try_link "$LINENO"
14460then :
14461  ac_cv_lib_readline_main=yes
14462else $as_nop
14463  ac_cv_lib_readline_main=no
14464fi
14465rm -f core conftest.err conftest.$ac_objext conftest.beam \
14466    conftest$ac_exeext conftest.$ac_ext
14467LIBS=$ac_check_lib_save_LIBS
14468fi
14469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
14470printf "%s\n" "$ac_cv_lib_readline_main" >&6; }
14471if test "x$ac_cv_lib_readline_main" = xyes
14472then :
14473  :
14474else $as_nop
14475  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14476printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14477as_fn_error $? "Cannot find readline library.
14478See \`config.log' for more details" "$LINENO" 5; }
14479fi
14480
14481
14482printf "%s\n" "#define HAVE_READLINE 1" >>confdefs.h
14483
14484  RL_LIBS='-lreadline'
14485else
14486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not using any readline support" >&5
14487printf "%s\n" "Not using any readline support" >&6; }
14488fi
14489
14490
14491
14492
14493# Check whether --with-system-verto was given.
14494if test ${with_system_verto+y}
14495then :
14496  withval=$with_system_verto;
14497else $as_nop
14498  with_system_verto=default
14499fi
14500
14501VERTO_VERSION=k5
14502if test "x$with_system_verto" != xno; then
14503
14504pkg_failed=no
14505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libverto" >&5
14506printf %s "checking for libverto... " >&6; }
14507
14508if test -n "$VERTO_CFLAGS"; then
14509    pkg_cv_VERTO_CFLAGS="$VERTO_CFLAGS"
14510 elif test -n "$PKG_CONFIG"; then
14511    if test -n "$PKG_CONFIG" && \
14512    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libverto\""; } >&5
14513  ($PKG_CONFIG --exists --print-errors "libverto") 2>&5
14514  ac_status=$?
14515  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14516  test $ac_status = 0; }; then
14517  pkg_cv_VERTO_CFLAGS=`$PKG_CONFIG --cflags "libverto" 2>/dev/null`
14518		      test "x$?" != "x0" && pkg_failed=yes
14519else
14520  pkg_failed=yes
14521fi
14522 else
14523    pkg_failed=untried
14524fi
14525if test -n "$VERTO_LIBS"; then
14526    pkg_cv_VERTO_LIBS="$VERTO_LIBS"
14527 elif test -n "$PKG_CONFIG"; then
14528    if test -n "$PKG_CONFIG" && \
14529    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libverto\""; } >&5
14530  ($PKG_CONFIG --exists --print-errors "libverto") 2>&5
14531  ac_status=$?
14532  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14533  test $ac_status = 0; }; then
14534  pkg_cv_VERTO_LIBS=`$PKG_CONFIG --libs "libverto" 2>/dev/null`
14535		      test "x$?" != "x0" && pkg_failed=yes
14536else
14537  pkg_failed=yes
14538fi
14539 else
14540    pkg_failed=untried
14541fi
14542
14543
14544
14545if test $pkg_failed = yes; then
14546        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14547printf "%s\n" "no" >&6; }
14548
14549if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14550        _pkg_short_errors_supported=yes
14551else
14552        _pkg_short_errors_supported=no
14553fi
14554        if test $_pkg_short_errors_supported = yes; then
14555	        VERTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libverto" 2>&1`
14556        else
14557	        VERTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libverto" 2>&1`
14558        fi
14559	# Put the nasty error message in config.log where it belongs
14560	echo "$VERTO_PKG_ERRORS" >&5
14561
14562	have_sysverto=no
14563elif test $pkg_failed = untried; then
14564        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565printf "%s\n" "no" >&6; }
14566	have_sysverto=no
14567else
14568	VERTO_CFLAGS=$pkg_cv_VERTO_CFLAGS
14569	VERTO_LIBS=$pkg_cv_VERTO_LIBS
14570        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14571printf "%s\n" "yes" >&6; }
14572	have_sysverto=yes
14573fi
14574  if test "x$have_sysverto" = xyes; then
14575    VERTO_VERSION=sys
14576  elif test "x$with_system_verto" = xyes; then
14577    as_fn_error $? "cannot detect system libverto" "$LINENO" 5
14578  fi
14579fi
14580if test "x$VERTO_VERSION" = xsys; then
14581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using system libverto" >&5
14582printf "%s\n" "$as_me: Using system libverto" >&6;}
14583else
14584  VERTO_CFLAGS=
14585  VERTO_LIBS="-lverto"
14586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using built-in libverto" >&5
14587printf "%s\n" "$as_me: Using built-in libverto" >&6;}
14588fi
14589
14590
14591
14592
14593# Extract the first word of "groff", so it can be a program name with args.
14594set dummy groff; ac_word=$2
14595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14596printf %s "checking for $ac_word... " >&6; }
14597if test ${ac_cv_path_GROFF+y}
14598then :
14599  printf %s "(cached) " >&6
14600else $as_nop
14601  case $GROFF in
14602  [\\/]* | ?:[\\/]*)
14603  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
14604  ;;
14605  *)
14606  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14607for as_dir in $PATH
14608do
14609  IFS=$as_save_IFS
14610  case $as_dir in #(((
14611    '') as_dir=./ ;;
14612    */) ;;
14613    *) as_dir=$as_dir/ ;;
14614  esac
14615    for ac_exec_ext in '' $ac_executable_extensions; do
14616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14617    ac_cv_path_GROFF="$as_dir$ac_word$ac_exec_ext"
14618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14619    break 2
14620  fi
14621done
14622  done
14623IFS=$as_save_IFS
14624
14625  ;;
14626esac
14627fi
14628GROFF=$ac_cv_path_GROFF
14629if test -n "$GROFF"; then
14630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
14631printf "%s\n" "$GROFF" >&6; }
14632else
14633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634printf "%s\n" "no" >&6; }
14635fi
14636
14637
14638
14639# Make localedir work in autoconf 2.5x.
14640if test "${localedir+set}" != set; then
14641    localedir='$(datadir)/locale'
14642fi
14643
14644
14645# Determine the default macOS ccache type and whether to build the KCM
14646# Mach RPC support.
14647MACOS_FRAMEWORK=
14648case $host in
14649*-*-darwin[0-9].* | *-*-darwin10.*)
14650  # Use the normal default cache type for macOS 10.6 (Darwin 10) and
14651  # prior.  Build the KCM Mach RPC support.
14652  OSX=osx
14653  ;;
14654*-*-darwin*)
14655  # macOS 10.6 (Darwin 11) uses the KCM type by default.  macOS 11
14656  # (Darwin 20) uses an xpc-based cache type called XCACHE by default.
14657  # We can access either of these collections via a macos-specific
14658  # implementation of the API cache type.  Build the KCM Mach RPC
14659  # support.
14660  OSX=osx
14661  macos_defccname=API:
14662  MACOS_FRAMEWORK="-framework Kerberos"
14663  ;;
14664*)
14665  # This is not macOS; do not build the Mach RPC support and use the
14666  # normal default cache type.
14667  OSX=no
14668  ;;
14669esac
14670if test "$macos_defccname" = API:; then
14671
14672printf "%s\n" "#define USE_CCAPI_MACOS 1" >>confdefs.h
14673
14674fi
14675
14676
14677
14678# Build-time default ccache, keytab, and client keytab names.  These
14679# can be given as variable arguments DEFCCNAME, DEFKTNAME, and
14680# DEFCKTNAME.  Otherwise, we try to get the OS defaults from
14681# krb5-config if we can, or fall back to hardcoded defaults.
14682
14683
14684
14685
14686# Check whether --with-krb5-config was given.
14687if test ${with_krb5_config+y}
14688then :
14689  withval=$with_krb5_config;
14690else $as_nop
14691  with_krb5_config=krb5-config
14692fi
14693
14694if test "x$with_krb5_config" != xno; then
14695	if test "x$with_krb5_config" = xyes; then
14696		with_krb5_config=krb5-config
14697	fi
14698	if $with_krb5_config --help 2>&1 | grep defccname >/dev/null; then
14699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using $with_krb5_config for build defaults" >&5
14700printf "%s\n" "$as_me: Using $with_krb5_config for build defaults" >&6;}
14701		: "${DEFCCNAME=`$with_krb5_config --defccname`}"
14702		: "${DEFKTNAME=`$with_krb5_config --defktname`}"
14703		: "${DEFCKTNAME=`$with_krb5_config --defcktname`}"
14704	fi
14705fi
14706if test "${DEFCCNAME+set}" != set; then
14707	if test "${macos_defccname+set}" = set; then
14708		DEFCCNAME=$macos_defccname
14709	else
14710		DEFCCNAME=FILE:/tmp/krb5cc_%{uid}
14711	fi
14712fi
14713if test "${DEFKTNAME+set}" != set; then
14714	DEFKTNAME=FILE:/etc/krb5.keytab
14715fi
14716if test "${DEFCKTNAME+set}" != set; then
14717	_lcl_receval="$localstatedir"
14718exp_localstatedir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14719     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
14720     _lcl_receval_old=''
14721     while test "$_lcl_receval_old" != "$_lcl_receval"; do
14722       _lcl_receval_old="$_lcl_receval"
14723       eval _lcl_receval="\"$_lcl_receval\""
14724     done
14725     echo "$_lcl_receval")`
14726	DEFCKTNAME=FILE:$exp_localstatedir/krb5/user/%{euid}/client.keytab
14727fi
14728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default ccache name: $DEFCCNAME" >&5
14729printf "%s\n" "$as_me: Default ccache name: $DEFCCNAME" >&6;}
14730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default keytab name: $DEFKTNAME" >&5
14731printf "%s\n" "$as_me: Default keytab name: $DEFKTNAME" >&6;}
14732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default client keytab name: $DEFCKTNAME" >&5
14733printf "%s\n" "$as_me: Default client keytab name: $DEFCKTNAME" >&6;}
14734
14735printf "%s\n" "#define DEFCCNAME \"$DEFCCNAME\"" >>confdefs.h
14736
14737
14738printf "%s\n" "#define DEFKTNAME \"$DEFKTNAME\"" >>confdefs.h
14739
14740
14741printf "%s\n" "#define DEFCKTNAME \"$DEFCKTNAME\"" >>confdefs.h
14742
14743
14744
14745if test "${PKCS11_MODNAME+set}" != set; then
14746	PKCS11_MODNAME=opensc-pkcs11.so
14747fi
14748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default PKCS11 module name: $PKCS11_MODNAME" >&5
14749printf "%s\n" "$as_me: Default PKCS11 module name: $PKCS11_MODNAME" >&6;}
14750
14751printf "%s\n" "#define PKCS11_MODNAME \"$PKCS11_MODNAME\"" >>confdefs.h
14752
14753
14754ac_config_files="$ac_config_files build-tools/krb5-config"
14755
14756ac_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"
14757
14758
14759 ac_config_files="$ac_config_files ./Makefile:$srcdir/./config/pre.in:./Makefile.in:./deps:$srcdir/./config/post.in"
14760 ac_config_files="$ac_config_files util/Makefile:$srcdir/./config/pre.in:util/Makefile.in:util/deps:$srcdir/./config/post.in"
14761 ac_config_files="$ac_config_files util/support/Makefile:$srcdir/./config/pre.in:util/support/Makefile.in:util/support/deps:$srcdir/./config/post.in"
14762 ac_config_files="$ac_config_files util/profile/Makefile:$srcdir/./config/pre.in:util/profile/Makefile.in:util/profile/deps:$srcdir/./config/post.in"
14763 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"
14764 ac_config_files="$ac_config_files util/verto/Makefile:$srcdir/./config/pre.in:util/verto/Makefile.in:util/verto/deps:$srcdir/./config/post.in"
14765 ac_config_files="$ac_config_files lib/Makefile:$srcdir/./config/pre.in:lib/Makefile.in:lib/deps:$srcdir/./config/post.in"
14766 ac_config_files="$ac_config_files lib/kdb/Makefile:$srcdir/./config/pre.in:lib/kdb/Makefile.in:lib/kdb/deps:$srcdir/./config/post.in"
14767 ac_config_files="$ac_config_files lib/crypto/Makefile:$srcdir/./config/pre.in:lib/crypto/Makefile.in:lib/crypto/deps:$srcdir/./config/post.in"
14768 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"
14769 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"
14770 ac_config_files="$ac_config_files lib/crypto/builtin/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/Makefile.in:lib/crypto/builtin/deps:$srcdir/./config/post.in"
14771 ac_config_files="$ac_config_files lib/crypto/builtin/des/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/des/Makefile.in:lib/crypto/builtin/des/deps:$srcdir/./config/post.in"
14772 ac_config_files="$ac_config_files lib/crypto/builtin/aes/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/aes/Makefile.in:lib/crypto/builtin/aes/deps:$srcdir/./config/post.in"
14773 ac_config_files="$ac_config_files lib/crypto/builtin/camellia/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/camellia/Makefile.in:lib/crypto/builtin/camellia/deps:$srcdir/./config/post.in"
14774 ac_config_files="$ac_config_files lib/crypto/builtin/md4/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/md4/Makefile.in:lib/crypto/builtin/md4/deps:$srcdir/./config/post.in"
14775 ac_config_files="$ac_config_files lib/crypto/builtin/md5/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/md5/Makefile.in:lib/crypto/builtin/md5/deps:$srcdir/./config/post.in"
14776 ac_config_files="$ac_config_files lib/crypto/builtin/sha1/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/sha1/Makefile.in:lib/crypto/builtin/sha1/deps:$srcdir/./config/post.in"
14777 ac_config_files="$ac_config_files lib/crypto/builtin/sha2/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/sha2/Makefile.in:lib/crypto/builtin/sha2/deps:$srcdir/./config/post.in"
14778 ac_config_files="$ac_config_files lib/crypto/builtin/enc_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/enc_provider/Makefile.in:lib/crypto/builtin/enc_provider/deps:$srcdir/./config/post.in"
14779 ac_config_files="$ac_config_files lib/crypto/builtin/hash_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/hash_provider/Makefile.in:lib/crypto/builtin/hash_provider/deps:$srcdir/./config/post.in"
14780 ac_config_files="$ac_config_files lib/crypto/openssl/Makefile:$srcdir/./config/pre.in:lib/crypto/openssl/Makefile.in:lib/crypto/openssl/deps:$srcdir/./config/post.in"
14781 ac_config_files="$ac_config_files lib/crypto/openssl/des/Makefile:$srcdir/./config/pre.in:lib/crypto/openssl/des/Makefile.in:lib/crypto/openssl/des/deps:$srcdir/./config/post.in"
14782 ac_config_files="$ac_config_files lib/crypto/openssl/enc_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/openssl/enc_provider/Makefile.in:lib/crypto/openssl/enc_provider/deps:$srcdir/./config/post.in"
14783 ac_config_files="$ac_config_files lib/crypto/openssl/hash_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/openssl/hash_provider/Makefile.in:lib/crypto/openssl/hash_provider/deps:$srcdir/./config/post.in"
14784 ac_config_files="$ac_config_files lib/krb5/Makefile:$srcdir/./config/pre.in:lib/krb5/Makefile.in:lib/krb5/deps:$srcdir/./config/post.in"
14785 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"
14786 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"
14787 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"
14788 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"
14789 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"
14790 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"
14791 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"
14792 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"
14793 ac_config_files="$ac_config_files lib/gssapi/Makefile:$srcdir/./config/pre.in:lib/gssapi/Makefile.in:lib/gssapi/deps:$srcdir/./config/post.in"
14794 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"
14795 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"
14796 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"
14797 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"
14798 ac_config_files="$ac_config_files lib/rpc/Makefile:$srcdir/./config/pre.in:lib/rpc/Makefile.in:lib/rpc/deps:$srcdir/./config/post.in"
14799 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"
14800 ac_config_files="$ac_config_files lib/kadm5/Makefile:$srcdir/./config/pre.in:lib/kadm5/Makefile.in:lib/kadm5/deps:$srcdir/./config/post.in"
14801 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"
14802 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"
14803 ac_config_files="$ac_config_files lib/krad/Makefile:$srcdir/./config/pre.in:lib/krad/Makefile.in:lib/krad/deps:$srcdir/./config/post.in"
14804 ac_config_files="$ac_config_files lib/apputils/Makefile:$srcdir/./config/pre.in:lib/apputils/Makefile.in:lib/apputils/deps:$srcdir/./config/post.in"
14805 ac_config_files="$ac_config_files kdc/Makefile:$srcdir/./config/pre.in:kdc/Makefile.in:kdc/deps:$srcdir/./config/post.in"
14806 ac_config_files="$ac_config_files kprop/Makefile:$srcdir/./config/pre.in:kprop/Makefile.in:kprop/deps:$srcdir/./config/post.in"
14807 ac_config_files="$ac_config_files config-files/Makefile:$srcdir/./config/pre.in:config-files/Makefile.in:config-files/deps:$srcdir/./config/post.in"
14808 ac_config_files="$ac_config_files build-tools/Makefile:$srcdir/./config/pre.in:build-tools/Makefile.in:build-tools/deps:$srcdir/./config/post.in"
14809 ac_config_files="$ac_config_files man/Makefile:$srcdir/./config/pre.in:man/Makefile.in:man/deps:$srcdir/./config/post.in"
14810 ac_config_files="$ac_config_files doc/Makefile:$srcdir/./config/pre.in:doc/Makefile.in:doc/deps:$srcdir/./config/post.in"
14811 ac_config_files="$ac_config_files include/Makefile:$srcdir/./config/pre.in:include/Makefile.in:include/deps:$srcdir/./config/post.in"
14812 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"
14813 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"
14814 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"
14815 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"
14816 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"
14817 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"
14818 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"
14819 ac_config_files="$ac_config_files plugins/audit/Makefile:$srcdir/./config/pre.in:plugins/audit/Makefile.in:plugins/audit/deps:$srcdir/./config/post.in"
14820 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"
14821 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"
14822 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"
14823 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"
14824 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"
14825 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"
14826 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"
14827 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"
14828 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"
14829 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"
14830 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"
14831 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"
14832 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"
14833 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"
14834 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"
14835 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"
14836 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"
14837 ac_config_files="$ac_config_files clients/Makefile:$srcdir/./config/pre.in:clients/Makefile.in:clients/deps:$srcdir/./config/post.in"
14838 ac_config_files="$ac_config_files clients/klist/Makefile:$srcdir/./config/pre.in:clients/klist/Makefile.in:clients/klist/deps:$srcdir/./config/post.in"
14839 ac_config_files="$ac_config_files clients/kinit/Makefile:$srcdir/./config/pre.in:clients/kinit/Makefile.in:clients/kinit/deps:$srcdir/./config/post.in"
14840 ac_config_files="$ac_config_files clients/kvno/Makefile:$srcdir/./config/pre.in:clients/kvno/Makefile.in:clients/kvno/deps:$srcdir/./config/post.in"
14841 ac_config_files="$ac_config_files clients/kdestroy/Makefile:$srcdir/./config/pre.in:clients/kdestroy/Makefile.in:clients/kdestroy/deps:$srcdir/./config/post.in"
14842 ac_config_files="$ac_config_files clients/kpasswd/Makefile:$srcdir/./config/pre.in:clients/kpasswd/Makefile.in:clients/kpasswd/deps:$srcdir/./config/post.in"
14843 ac_config_files="$ac_config_files clients/ksu/Makefile:$srcdir/./config/pre.in:clients/ksu/Makefile.in:clients/ksu/deps:$srcdir/./config/post.in"
14844 ac_config_files="$ac_config_files clients/kswitch/Makefile:$srcdir/./config/pre.in:clients/kswitch/Makefile.in:clients/kswitch/deps:$srcdir/./config/post.in"
14845 ac_config_files="$ac_config_files kadmin/Makefile:$srcdir/./config/pre.in:kadmin/Makefile.in:kadmin/deps:$srcdir/./config/post.in"
14846 ac_config_files="$ac_config_files kadmin/cli/Makefile:$srcdir/./config/pre.in:kadmin/cli/Makefile.in:kadmin/cli/deps:$srcdir/./config/post.in"
14847 ac_config_files="$ac_config_files kadmin/dbutil/Makefile:$srcdir/./config/pre.in:kadmin/dbutil/Makefile.in:kadmin/dbutil/deps:$srcdir/./config/post.in"
14848 ac_config_files="$ac_config_files kadmin/ktutil/Makefile:$srcdir/./config/pre.in:kadmin/ktutil/Makefile.in:kadmin/ktutil/deps:$srcdir/./config/post.in"
14849 ac_config_files="$ac_config_files kadmin/server/Makefile:$srcdir/./config/pre.in:kadmin/server/Makefile.in:kadmin/server/deps:$srcdir/./config/post.in"
14850 ac_config_files="$ac_config_files appl/Makefile:$srcdir/./config/pre.in:appl/Makefile.in:appl/deps:$srcdir/./config/post.in"
14851 ac_config_files="$ac_config_files appl/sample/Makefile:$srcdir/./config/pre.in:appl/sample/Makefile.in:appl/sample/deps:$srcdir/./config/post.in"
14852 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"
14853 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"
14854 ac_config_files="$ac_config_files appl/simple/Makefile:$srcdir/./config/pre.in:appl/simple/Makefile.in:appl/simple/deps:$srcdir/./config/post.in"
14855 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"
14856 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"
14857 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"
14858 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"
14859 ac_config_files="$ac_config_files tests/Makefile:$srcdir/./config/pre.in:tests/Makefile.in:tests/deps:$srcdir/./config/post.in"
14860 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"
14861 ac_config_files="$ac_config_files tests/create/Makefile:$srcdir/./config/pre.in:tests/create/Makefile.in:tests/create/deps:$srcdir/./config/post.in"
14862 ac_config_files="$ac_config_files tests/hammer/Makefile:$srcdir/./config/pre.in:tests/hammer/Makefile.in:tests/hammer/deps:$srcdir/./config/post.in"
14863 ac_config_files="$ac_config_files tests/verify/Makefile:$srcdir/./config/pre.in:tests/verify/Makefile.in:tests/verify/deps:$srcdir/./config/post.in"
14864 ac_config_files="$ac_config_files tests/gssapi/Makefile:$srcdir/./config/pre.in:tests/gssapi/Makefile.in:tests/gssapi/deps:$srcdir/./config/post.in"
14865 ac_config_files="$ac_config_files tests/threads/Makefile:$srcdir/./config/pre.in:tests/threads/Makefile.in:tests/threads/deps:$srcdir/./config/post.in"
14866 ac_config_files="$ac_config_files tests/shlib/Makefile:$srcdir/./config/pre.in:tests/shlib/Makefile.in:tests/shlib/deps:$srcdir/./config/post.in"
14867 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"
14868 ac_config_files="$ac_config_files tests/misc/Makefile:$srcdir/./config/pre.in:tests/misc/Makefile.in:tests/misc/deps:$srcdir/./config/post.in"
14869
14870cat >confcache <<\_ACEOF
14871# This file is a shell script that caches the results of configure
14872# tests run on this system so they can be shared between configure
14873# scripts and configure runs, see configure's option --config-cache.
14874# It is not useful on other systems.  If it contains results you don't
14875# want to keep, you may remove or edit it.
14876#
14877# config.status only pays attention to the cache file if you give it
14878# the --recheck option to rerun configure.
14879#
14880# `ac_cv_env_foo' variables (set or unset) will be overridden when
14881# loading this file, other *unset* `ac_cv_foo' will be assigned the
14882# following values.
14883
14884_ACEOF
14885
14886# The following way of writing the cache mishandles newlines in values,
14887# but we know of no workaround that is simple, portable, and efficient.
14888# So, we kill variables containing newlines.
14889# Ultrix sh set writes to stderr and can't be redirected directly,
14890# and sets the high bit in the cache file unless we assign to the vars.
14891(
14892  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14893    eval ac_val=\$$ac_var
14894    case $ac_val in #(
14895    *${as_nl}*)
14896      case $ac_var in #(
14897      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14898printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14899      esac
14900      case $ac_var in #(
14901      _ | IFS | as_nl) ;; #(
14902      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14903      *) { eval $ac_var=; unset $ac_var;} ;;
14904      esac ;;
14905    esac
14906  done
14907
14908  (set) 2>&1 |
14909    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14910    *${as_nl}ac_space=\ *)
14911      # `set' does not quote correctly, so add quotes: double-quote
14912      # substitution turns \\\\ into \\, and sed turns \\ into \.
14913      sed -n \
14914	"s/'/'\\\\''/g;
14915	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14916      ;; #(
14917    *)
14918      # `set' quotes correctly as required by POSIX, so do not add quotes.
14919      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14920      ;;
14921    esac |
14922    sort
14923) |
14924  sed '
14925     /^ac_cv_env_/b end
14926     t clear
14927     :clear
14928     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14929     t end
14930     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14931     :end' >>confcache
14932if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14933  if test -w "$cache_file"; then
14934    if test "x$cache_file" != "x/dev/null"; then
14935      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14936printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14937      if test ! -f "$cache_file" || test -h "$cache_file"; then
14938	cat confcache >"$cache_file"
14939      else
14940        case $cache_file in #(
14941        */* | ?:*)
14942	  mv -f confcache "$cache_file"$$ &&
14943	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14944        *)
14945	  mv -f confcache "$cache_file" ;;
14946	esac
14947      fi
14948    fi
14949  else
14950    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14951printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14952  fi
14953fi
14954rm -f confcache
14955
14956test "x$prefix" = xNONE && prefix=$ac_default_prefix
14957# Let make expand exec_prefix.
14958test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14959
14960DEFS=-DHAVE_CONFIG_H
14961
14962ac_libobjs=
14963ac_ltlibobjs=
14964U=
14965for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14966  # 1. Remove the extension, and $U if already installed.
14967  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14968  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14969  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14970  #    will be set to the directory where LIBOBJS objects are built.
14971  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14972  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14973done
14974LIBOBJS=$ac_libobjs
14975
14976LTLIBOBJS=$ac_ltlibobjs
14977
14978
14979
14980: "${CONFIG_STATUS=./config.status}"
14981ac_write_fail=0
14982ac_clean_files_save=$ac_clean_files
14983ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14985printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14986as_write_fail=0
14987cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14988#! $SHELL
14989# Generated by $as_me.
14990# Run this file to recreate the current configuration.
14991# Compiler output produced by configure, useful for debugging
14992# configure, is in config.log if it exists.
14993
14994debug=false
14995ac_cs_recheck=false
14996ac_cs_silent=false
14997
14998SHELL=\${CONFIG_SHELL-$SHELL}
14999export SHELL
15000_ASEOF
15001cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15002## -------------------- ##
15003## M4sh Initialization. ##
15004## -------------------- ##
15005
15006# Be more Bourne compatible
15007DUALCASE=1; export DUALCASE # for MKS sh
15008as_nop=:
15009if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15010then :
15011  emulate sh
15012  NULLCMD=:
15013  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15014  # is contrary to our usage.  Disable this feature.
15015  alias -g '${1+"$@"}'='"$@"'
15016  setopt NO_GLOB_SUBST
15017else $as_nop
15018  case `(set -o) 2>/dev/null` in #(
15019  *posix*) :
15020    set -o posix ;; #(
15021  *) :
15022     ;;
15023esac
15024fi
15025
15026
15027
15028# Reset variables that may have inherited troublesome values from
15029# the environment.
15030
15031# IFS needs to be set, to space, tab, and newline, in precisely that order.
15032# (If _AS_PATH_WALK were called with IFS unset, it would have the
15033# side effect of setting IFS to empty, thus disabling word splitting.)
15034# Quoting is to prevent editors from complaining about space-tab.
15035as_nl='
15036'
15037export as_nl
15038IFS=" ""	$as_nl"
15039
15040PS1='$ '
15041PS2='> '
15042PS4='+ '
15043
15044# Ensure predictable behavior from utilities with locale-dependent output.
15045LC_ALL=C
15046export LC_ALL
15047LANGUAGE=C
15048export LANGUAGE
15049
15050# We cannot yet rely on "unset" to work, but we need these variables
15051# to be unset--not just set to an empty or harmless value--now, to
15052# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15053# also avoids known problems related to "unset" and subshell syntax
15054# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15055for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15056do eval test \${$as_var+y} \
15057  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15058done
15059
15060# Ensure that fds 0, 1, and 2 are open.
15061if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15062if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15063if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15064
15065# The user is always right.
15066if ${PATH_SEPARATOR+false} :; then
15067  PATH_SEPARATOR=:
15068  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15069    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15070      PATH_SEPARATOR=';'
15071  }
15072fi
15073
15074
15075# Find who we are.  Look in the path if we contain no directory separator.
15076as_myself=
15077case $0 in #((
15078  *[\\/]* ) as_myself=$0 ;;
15079  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080for as_dir in $PATH
15081do
15082  IFS=$as_save_IFS
15083  case $as_dir in #(((
15084    '') as_dir=./ ;;
15085    */) ;;
15086    *) as_dir=$as_dir/ ;;
15087  esac
15088    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15089  done
15090IFS=$as_save_IFS
15091
15092     ;;
15093esac
15094# We did not find ourselves, most probably we were run as `sh COMMAND'
15095# in which case we are not to be found in the path.
15096if test "x$as_myself" = x; then
15097  as_myself=$0
15098fi
15099if test ! -f "$as_myself"; then
15100  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15101  exit 1
15102fi
15103
15104
15105
15106# as_fn_error STATUS ERROR [LINENO LOG_FD]
15107# ----------------------------------------
15108# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15109# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15110# script with STATUS, using 1 if that was 0.
15111as_fn_error ()
15112{
15113  as_status=$1; test $as_status -eq 0 && as_status=1
15114  if test "$4"; then
15115    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15116    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15117  fi
15118  printf "%s\n" "$as_me: error: $2" >&2
15119  as_fn_exit $as_status
15120} # as_fn_error
15121
15122
15123
15124# as_fn_set_status STATUS
15125# -----------------------
15126# Set $? to STATUS, without forking.
15127as_fn_set_status ()
15128{
15129  return $1
15130} # as_fn_set_status
15131
15132# as_fn_exit STATUS
15133# -----------------
15134# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15135as_fn_exit ()
15136{
15137  set +e
15138  as_fn_set_status $1
15139  exit $1
15140} # as_fn_exit
15141
15142# as_fn_unset VAR
15143# ---------------
15144# Portably unset VAR.
15145as_fn_unset ()
15146{
15147  { eval $1=; unset $1;}
15148}
15149as_unset=as_fn_unset
15150
15151# as_fn_append VAR VALUE
15152# ----------------------
15153# Append the text in VALUE to the end of the definition contained in VAR. Take
15154# advantage of any shell optimizations that allow amortized linear growth over
15155# repeated appends, instead of the typical quadratic growth present in naive
15156# implementations.
15157if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15158then :
15159  eval 'as_fn_append ()
15160  {
15161    eval $1+=\$2
15162  }'
15163else $as_nop
15164  as_fn_append ()
15165  {
15166    eval $1=\$$1\$2
15167  }
15168fi # as_fn_append
15169
15170# as_fn_arith ARG...
15171# ------------------
15172# Perform arithmetic evaluation on the ARGs, and store the result in the
15173# global $as_val. Take advantage of shells that can avoid forks. The arguments
15174# must be portable across $(()) and expr.
15175if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15176then :
15177  eval 'as_fn_arith ()
15178  {
15179    as_val=$(( $* ))
15180  }'
15181else $as_nop
15182  as_fn_arith ()
15183  {
15184    as_val=`expr "$@" || test $? -eq 1`
15185  }
15186fi # as_fn_arith
15187
15188
15189if expr a : '\(a\)' >/dev/null 2>&1 &&
15190   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15191  as_expr=expr
15192else
15193  as_expr=false
15194fi
15195
15196if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15197  as_basename=basename
15198else
15199  as_basename=false
15200fi
15201
15202if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15203  as_dirname=dirname
15204else
15205  as_dirname=false
15206fi
15207
15208as_me=`$as_basename -- "$0" ||
15209$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15210	 X"$0" : 'X\(//\)$' \| \
15211	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15212printf "%s\n" X/"$0" |
15213    sed '/^.*\/\([^/][^/]*\)\/*$/{
15214	    s//\1/
15215	    q
15216	  }
15217	  /^X\/\(\/\/\)$/{
15218	    s//\1/
15219	    q
15220	  }
15221	  /^X\/\(\/\).*/{
15222	    s//\1/
15223	    q
15224	  }
15225	  s/.*/./; q'`
15226
15227# Avoid depending upon Character Ranges.
15228as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15229as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15230as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15231as_cr_digits='0123456789'
15232as_cr_alnum=$as_cr_Letters$as_cr_digits
15233
15234
15235# Determine whether it's possible to make 'echo' print without a newline.
15236# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15237# for compatibility with existing Makefiles.
15238ECHO_C= ECHO_N= ECHO_T=
15239case `echo -n x` in #(((((
15240-n*)
15241  case `echo 'xy\c'` in
15242  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15243  xy)  ECHO_C='\c';;
15244  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15245       ECHO_T='	';;
15246  esac;;
15247*)
15248  ECHO_N='-n';;
15249esac
15250
15251# For backward compatibility with old third-party macros, we provide
15252# the shell variables $as_echo and $as_echo_n.  New code should use
15253# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15254as_echo='printf %s\n'
15255as_echo_n='printf %s'
15256
15257rm -f conf$$ conf$$.exe conf$$.file
15258if test -d conf$$.dir; then
15259  rm -f conf$$.dir/conf$$.file
15260else
15261  rm -f conf$$.dir
15262  mkdir conf$$.dir 2>/dev/null
15263fi
15264if (echo >conf$$.file) 2>/dev/null; then
15265  if ln -s conf$$.file conf$$ 2>/dev/null; then
15266    as_ln_s='ln -s'
15267    # ... but there are two gotchas:
15268    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15269    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15270    # In both cases, we have to default to `cp -pR'.
15271    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15272      as_ln_s='cp -pR'
15273  elif ln conf$$.file conf$$ 2>/dev/null; then
15274    as_ln_s=ln
15275  else
15276    as_ln_s='cp -pR'
15277  fi
15278else
15279  as_ln_s='cp -pR'
15280fi
15281rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15282rmdir conf$$.dir 2>/dev/null
15283
15284
15285# as_fn_mkdir_p
15286# -------------
15287# Create "$as_dir" as a directory, including parents if necessary.
15288as_fn_mkdir_p ()
15289{
15290
15291  case $as_dir in #(
15292  -*) as_dir=./$as_dir;;
15293  esac
15294  test -d "$as_dir" || eval $as_mkdir_p || {
15295    as_dirs=
15296    while :; do
15297      case $as_dir in #(
15298      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15299      *) as_qdir=$as_dir;;
15300      esac
15301      as_dirs="'$as_qdir' $as_dirs"
15302      as_dir=`$as_dirname -- "$as_dir" ||
15303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15304	 X"$as_dir" : 'X\(//\)[^/]' \| \
15305	 X"$as_dir" : 'X\(//\)$' \| \
15306	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15307printf "%s\n" X"$as_dir" |
15308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15309	    s//\1/
15310	    q
15311	  }
15312	  /^X\(\/\/\)[^/].*/{
15313	    s//\1/
15314	    q
15315	  }
15316	  /^X\(\/\/\)$/{
15317	    s//\1/
15318	    q
15319	  }
15320	  /^X\(\/\).*/{
15321	    s//\1/
15322	    q
15323	  }
15324	  s/.*/./; q'`
15325      test -d "$as_dir" && break
15326    done
15327    test -z "$as_dirs" || eval "mkdir $as_dirs"
15328  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15329
15330
15331} # as_fn_mkdir_p
15332if mkdir -p . 2>/dev/null; then
15333  as_mkdir_p='mkdir -p "$as_dir"'
15334else
15335  test -d ./-p && rmdir ./-p
15336  as_mkdir_p=false
15337fi
15338
15339
15340# as_fn_executable_p FILE
15341# -----------------------
15342# Test if FILE is an executable regular file.
15343as_fn_executable_p ()
15344{
15345  test -f "$1" && test -x "$1"
15346} # as_fn_executable_p
15347as_test_x='test -x'
15348as_executable_p=as_fn_executable_p
15349
15350# Sed expression to map a string onto a valid CPP name.
15351as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15352
15353# Sed expression to map a string onto a valid variable name.
15354as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15355
15356
15357exec 6>&1
15358## ----------------------------------- ##
15359## Main body of $CONFIG_STATUS script. ##
15360## ----------------------------------- ##
15361_ASEOF
15362test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15363
15364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15365# Save the log message, to keep $0 and so on meaningful, and to
15366# report actual input values of CONFIG_FILES etc. instead of their
15367# values after options handling.
15368ac_log="
15369This file was extended by Kerberos 5 $as_me 1.22.1, which was
15370generated by GNU Autoconf 2.71.  Invocation command line was
15371
15372  CONFIG_FILES    = $CONFIG_FILES
15373  CONFIG_HEADERS  = $CONFIG_HEADERS
15374  CONFIG_LINKS    = $CONFIG_LINKS
15375  CONFIG_COMMANDS = $CONFIG_COMMANDS
15376  $ $0 $@
15377
15378on `(hostname || uname -n) 2>/dev/null | sed 1q`
15379"
15380
15381_ACEOF
15382
15383case $ac_config_files in *"
15384"*) set x $ac_config_files; shift; ac_config_files=$*;;
15385esac
15386
15387case $ac_config_headers in *"
15388"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15389esac
15390
15391
15392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15393# Files that config.status was made for.
15394config_files="$ac_config_files"
15395config_headers="$ac_config_headers"
15396
15397_ACEOF
15398
15399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15400ac_cs_usage="\
15401\`$as_me' instantiates files and other configuration actions
15402from templates according to the current configuration.  Unless the files
15403and actions are specified as TAGs, all are instantiated by default.
15404
15405Usage: $0 [OPTION]... [TAG]...
15406
15407  -h, --help       print this help, then exit
15408  -V, --version    print version number and configuration settings, then exit
15409      --config     print configuration, then exit
15410  -q, --quiet, --silent
15411                   do not print progress messages
15412  -d, --debug      don't remove temporary files
15413      --recheck    update $as_me by reconfiguring in the same conditions
15414      --file=FILE[:TEMPLATE]
15415                   instantiate the configuration file FILE
15416      --header=FILE[:TEMPLATE]
15417                   instantiate the configuration header FILE
15418
15419Configuration files:
15420$config_files
15421
15422Configuration headers:
15423$config_headers
15424
15425Report bugs to <krb5-bugs@mit.edu>."
15426
15427_ACEOF
15428ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15429ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15431ac_cs_config='$ac_cs_config_escaped'
15432ac_cs_version="\\
15433Kerberos 5 config.status 1.22.1
15434configured by $0, generated by GNU Autoconf 2.71,
15435  with options \\"\$ac_cs_config\\"
15436
15437Copyright (C) 2021 Free Software Foundation, Inc.
15438This config.status script is free software; the Free Software Foundation
15439gives unlimited permission to copy, distribute and modify it."
15440
15441ac_pwd='$ac_pwd'
15442srcdir='$srcdir'
15443INSTALL='$INSTALL'
15444AWK='$AWK'
15445test -n "\$AWK" || AWK=awk
15446_ACEOF
15447
15448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15449# The default lists apply if the user does not specify any file.
15450ac_need_defaults=:
15451while test $# != 0
15452do
15453  case $1 in
15454  --*=?*)
15455    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15456    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15457    ac_shift=:
15458    ;;
15459  --*=)
15460    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15461    ac_optarg=
15462    ac_shift=:
15463    ;;
15464  *)
15465    ac_option=$1
15466    ac_optarg=$2
15467    ac_shift=shift
15468    ;;
15469  esac
15470
15471  case $ac_option in
15472  # Handling of the options.
15473  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15474    ac_cs_recheck=: ;;
15475  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15476    printf "%s\n" "$ac_cs_version"; exit ;;
15477  --config | --confi | --conf | --con | --co | --c )
15478    printf "%s\n" "$ac_cs_config"; exit ;;
15479  --debug | --debu | --deb | --de | --d | -d )
15480    debug=: ;;
15481  --file | --fil | --fi | --f )
15482    $ac_shift
15483    case $ac_optarg in
15484    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15485    '') as_fn_error $? "missing file argument" ;;
15486    esac
15487    as_fn_append CONFIG_FILES " '$ac_optarg'"
15488    ac_need_defaults=false;;
15489  --header | --heade | --head | --hea )
15490    $ac_shift
15491    case $ac_optarg in
15492    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15493    esac
15494    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15495    ac_need_defaults=false;;
15496  --he | --h)
15497    # Conflict between --help and --header
15498    as_fn_error $? "ambiguous option: \`$1'
15499Try \`$0 --help' for more information.";;
15500  --help | --hel | -h )
15501    printf "%s\n" "$ac_cs_usage"; exit ;;
15502  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15503  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15504    ac_cs_silent=: ;;
15505
15506  # This is an error.
15507  -*) as_fn_error $? "unrecognized option: \`$1'
15508Try \`$0 --help' for more information." ;;
15509
15510  *) as_fn_append ac_config_targets " $1"
15511     ac_need_defaults=false ;;
15512
15513  esac
15514  shift
15515done
15516
15517ac_configure_extra_args=
15518
15519if $ac_cs_silent; then
15520  exec 6>/dev/null
15521  ac_configure_extra_args="$ac_configure_extra_args --silent"
15522fi
15523
15524_ACEOF
15525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15526if \$ac_cs_recheck; then
15527  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15528  shift
15529  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15530  CONFIG_SHELL='$SHELL'
15531  export CONFIG_SHELL
15532  exec "\$@"
15533fi
15534
15535_ACEOF
15536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15537exec 5>>config.log
15538{
15539  echo
15540  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15541## Running $as_me. ##
15542_ASBOX
15543  printf "%s\n" "$ac_log"
15544} >&5
15545
15546_ACEOF
15547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15548_ACEOF
15549
15550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15551
15552# Handling of arguments.
15553for ac_config_target in $ac_config_targets
15554do
15555  case $ac_config_target in
15556    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile:$srcdir/./config/pre.in:po/Makefile.in:po/deps:$srcdir/./config/post.in" ;;
15557    "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" ;;
15558    "tests/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fuzzing/Makefile:$srcdir/./config/pre.in:tests/fuzzing/Makefile.in:tests/fuzzing/deps:$srcdir/./config/post.in" ;;
15559    "include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
15560    "include/gssrpc/types.h") CONFIG_FILES="$CONFIG_FILES include/gssrpc/types.h:include/gssrpc/types.hin" ;;
15561    "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" ;;
15562    "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" ;;
15563    "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" ;;
15564    "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" ;;
15565    "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" ;;
15566    "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" ;;
15567    "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" ;;
15568    "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" ;;
15569    "build-tools/krb5-config") CONFIG_FILES="$CONFIG_FILES build-tools/krb5-config" ;;
15570    "build-tools/kadm-server.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kadm-server.pc" ;;
15571    "build-tools/kadm-client.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kadm-client.pc" ;;
15572    "build-tools/kdb.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kdb.pc" ;;
15573    "build-tools/krb5.pc") CONFIG_FILES="$CONFIG_FILES build-tools/krb5.pc" ;;
15574    "build-tools/krb5-gssapi.pc") CONFIG_FILES="$CONFIG_FILES build-tools/krb5-gssapi.pc" ;;
15575    "build-tools/mit-krb5.pc") CONFIG_FILES="$CONFIG_FILES build-tools/mit-krb5.pc" ;;
15576    "build-tools/mit-krb5-gssapi.pc") CONFIG_FILES="$CONFIG_FILES build-tools/mit-krb5-gssapi.pc" ;;
15577    "build-tools/gssrpc.pc") CONFIG_FILES="$CONFIG_FILES build-tools/gssrpc.pc" ;;
15578    "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/./config/pre.in:./Makefile.in:./deps:$srcdir/./config/post.in" ;;
15579    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile:$srcdir/./config/pre.in:util/Makefile.in:util/deps:$srcdir/./config/post.in" ;;
15580    "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" ;;
15581    "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" ;;
15582    "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" ;;
15583    "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" ;;
15584    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile:$srcdir/./config/pre.in:lib/Makefile.in:lib/deps:$srcdir/./config/post.in" ;;
15585    "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" ;;
15586    "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" ;;
15587    "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" ;;
15588    "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" ;;
15589    "lib/crypto/builtin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/Makefile.in:lib/crypto/builtin/deps:$srcdir/./config/post.in" ;;
15590    "lib/crypto/builtin/des/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/des/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/des/Makefile.in:lib/crypto/builtin/des/deps:$srcdir/./config/post.in" ;;
15591    "lib/crypto/builtin/aes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/aes/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/aes/Makefile.in:lib/crypto/builtin/aes/deps:$srcdir/./config/post.in" ;;
15592    "lib/crypto/builtin/camellia/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/camellia/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/camellia/Makefile.in:lib/crypto/builtin/camellia/deps:$srcdir/./config/post.in" ;;
15593    "lib/crypto/builtin/md4/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/md4/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/md4/Makefile.in:lib/crypto/builtin/md4/deps:$srcdir/./config/post.in" ;;
15594    "lib/crypto/builtin/md5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/md5/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/md5/Makefile.in:lib/crypto/builtin/md5/deps:$srcdir/./config/post.in" ;;
15595    "lib/crypto/builtin/sha1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/sha1/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/sha1/Makefile.in:lib/crypto/builtin/sha1/deps:$srcdir/./config/post.in" ;;
15596    "lib/crypto/builtin/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/sha2/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/sha2/Makefile.in:lib/crypto/builtin/sha2/deps:$srcdir/./config/post.in" ;;
15597    "lib/crypto/builtin/enc_provider/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/enc_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/enc_provider/Makefile.in:lib/crypto/builtin/enc_provider/deps:$srcdir/./config/post.in" ;;
15598    "lib/crypto/builtin/hash_provider/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/builtin/hash_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/builtin/hash_provider/Makefile.in:lib/crypto/builtin/hash_provider/deps:$srcdir/./config/post.in" ;;
15599    "lib/crypto/openssl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/openssl/Makefile:$srcdir/./config/pre.in:lib/crypto/openssl/Makefile.in:lib/crypto/openssl/deps:$srcdir/./config/post.in" ;;
15600    "lib/crypto/openssl/des/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/openssl/des/Makefile:$srcdir/./config/pre.in:lib/crypto/openssl/des/Makefile.in:lib/crypto/openssl/des/deps:$srcdir/./config/post.in" ;;
15601    "lib/crypto/openssl/enc_provider/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/openssl/enc_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/openssl/enc_provider/Makefile.in:lib/crypto/openssl/enc_provider/deps:$srcdir/./config/post.in" ;;
15602    "lib/crypto/openssl/hash_provider/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/openssl/hash_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/openssl/hash_provider/Makefile.in:lib/crypto/openssl/hash_provider/deps:$srcdir/./config/post.in" ;;
15603    "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" ;;
15604    "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" ;;
15605    "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" ;;
15606    "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" ;;
15607    "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" ;;
15608    "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" ;;
15609    "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" ;;
15610    "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" ;;
15611    "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" ;;
15612    "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" ;;
15613    "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" ;;
15614    "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" ;;
15615    "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" ;;
15616    "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" ;;
15617    "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" ;;
15618    "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" ;;
15619    "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" ;;
15620    "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" ;;
15621    "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" ;;
15622    "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" ;;
15623    "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" ;;
15624    "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile:$srcdir/./config/pre.in:kdc/Makefile.in:kdc/deps:$srcdir/./config/post.in" ;;
15625    "kprop/Makefile") CONFIG_FILES="$CONFIG_FILES kprop/Makefile:$srcdir/./config/pre.in:kprop/Makefile.in:kprop/deps:$srcdir/./config/post.in" ;;
15626    "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" ;;
15627    "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" ;;
15628    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile:$srcdir/./config/pre.in:man/Makefile.in:man/deps:$srcdir/./config/post.in" ;;
15629    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:$srcdir/./config/pre.in:doc/Makefile.in:doc/deps:$srcdir/./config/post.in" ;;
15630    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:$srcdir/./config/pre.in:include/Makefile.in:include/deps:$srcdir/./config/post.in" ;;
15631    "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" ;;
15632    "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" ;;
15633    "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" ;;
15634    "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" ;;
15635    "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" ;;
15636    "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" ;;
15637    "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" ;;
15638    "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" ;;
15639    "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" ;;
15640    "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" ;;
15641    "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" ;;
15642    "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" ;;
15643    "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" ;;
15644    "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" ;;
15645    "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" ;;
15646    "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" ;;
15647    "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" ;;
15648    "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" ;;
15649    "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" ;;
15650    "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" ;;
15651    "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" ;;
15652    "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" ;;
15653    "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" ;;
15654    "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" ;;
15655    "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" ;;
15656    "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:$srcdir/./config/pre.in:clients/Makefile.in:clients/deps:$srcdir/./config/post.in" ;;
15657    "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" ;;
15658    "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" ;;
15659    "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" ;;
15660    "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" ;;
15661    "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" ;;
15662    "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" ;;
15663    "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" ;;
15664    "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile:$srcdir/./config/pre.in:kadmin/Makefile.in:kadmin/deps:$srcdir/./config/post.in" ;;
15665    "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" ;;
15666    "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" ;;
15667    "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" ;;
15668    "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" ;;
15669    "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile:$srcdir/./config/pre.in:appl/Makefile.in:appl/deps:$srcdir/./config/post.in" ;;
15670    "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" ;;
15671    "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" ;;
15672    "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" ;;
15673    "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" ;;
15674    "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" ;;
15675    "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" ;;
15676    "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" ;;
15677    "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" ;;
15678    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:$srcdir/./config/pre.in:tests/Makefile.in:tests/deps:$srcdir/./config/post.in" ;;
15679    "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" ;;
15680    "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" ;;
15681    "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" ;;
15682    "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" ;;
15683    "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" ;;
15684    "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" ;;
15685    "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" ;;
15686    "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" ;;
15687    "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" ;;
15688
15689  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15690  esac
15691done
15692
15693
15694# If the user did not use the arguments to specify the items to instantiate,
15695# then the envvar interface is used.  Set only those that are not.
15696# We use the long form for the default assignment because of an extremely
15697# bizarre bug on SunOS 4.1.3.
15698if $ac_need_defaults; then
15699  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15700  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15701fi
15702
15703# Have a temporary directory for convenience.  Make it in the build tree
15704# simply because there is no reason against having it here, and in addition,
15705# creating and moving files from /tmp can sometimes cause problems.
15706# Hook for its removal unless debugging.
15707# Note that there is a small window in which the directory will not be cleaned:
15708# after its creation but before its name has been assigned to `$tmp'.
15709$debug ||
15710{
15711  tmp= ac_tmp=
15712  trap 'exit_status=$?
15713  : "${ac_tmp:=$tmp}"
15714  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15715' 0
15716  trap 'as_fn_exit 1' 1 2 13 15
15717}
15718# Create a (secure) tmp directory for tmp files.
15719
15720{
15721  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15722  test -d "$tmp"
15723}  ||
15724{
15725  tmp=./conf$$-$RANDOM
15726  (umask 077 && mkdir "$tmp")
15727} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15728ac_tmp=$tmp
15729
15730# Set up the scripts for CONFIG_FILES section.
15731# No need to generate them if there are no CONFIG_FILES.
15732# This happens for instance with `./config.status config.h'.
15733if test -n "$CONFIG_FILES"; then
15734
15735if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15736  ac_cs_awk_getline=:
15737  ac_cs_awk_pipe_init=
15738  ac_cs_awk_read_file='
15739      while ((getline aline < (F[key])) > 0)
15740	print(aline)
15741      close(F[key])'
15742  ac_cs_awk_pipe_fini=
15743else
15744  ac_cs_awk_getline=false
15745  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15746  ac_cs_awk_read_file='
15747      print "|#_!!_#|"
15748      print "cat " F[key] " &&"
15749      '$ac_cs_awk_pipe_init
15750  # The final `:' finishes the AND list.
15751  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15752fi
15753ac_cr=`echo X | tr X '\015'`
15754# On cygwin, bash can eat \r inside `` if the user requested igncr.
15755# But we know of no other shell where ac_cr would be empty at this
15756# point, so we can use a bashism as a fallback.
15757if test "x$ac_cr" = x; then
15758  eval ac_cr=\$\'\\r\'
15759fi
15760ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15761if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15762  ac_cs_awk_cr='\\r'
15763else
15764  ac_cs_awk_cr=$ac_cr
15765fi
15766
15767echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15768_ACEOF
15769
15770# Create commands to substitute file output variables.
15771{
15772  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15773  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15774  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15775  echo "_ACAWK" &&
15776  echo "_ACEOF"
15777} >conf$$files.sh &&
15778. ./conf$$files.sh ||
15779  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15780rm -f conf$$files.sh
15781
15782{
15783  echo "cat >conf$$subs.awk <<_ACEOF" &&
15784  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15785  echo "_ACEOF"
15786} >conf$$subs.sh ||
15787  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15788ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15789ac_delim='%!_!# '
15790for ac_last_try in false false false false false :; do
15791  . ./conf$$subs.sh ||
15792    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15793
15794  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15795  if test $ac_delim_n = $ac_delim_num; then
15796    break
15797  elif $ac_last_try; then
15798    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15799  else
15800    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15801  fi
15802done
15803rm -f conf$$subs.sh
15804
15805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15806cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15807_ACEOF
15808sed -n '
15809h
15810s/^/S["/; s/!.*/"]=/
15811p
15812g
15813s/^[^!]*!//
15814:repl
15815t repl
15816s/'"$ac_delim"'$//
15817t delim
15818:nl
15819h
15820s/\(.\{148\}\)..*/\1/
15821t more1
15822s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15823p
15824n
15825b repl
15826:more1
15827s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15828p
15829g
15830s/.\{148\}//
15831t nl
15832:delim
15833h
15834s/\(.\{148\}\)..*/\1/
15835t more2
15836s/["\\]/\\&/g; s/^/"/; s/$/"/
15837p
15838b
15839:more2
15840s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15841p
15842g
15843s/.\{148\}//
15844t delim
15845' <conf$$subs.awk | sed '
15846/^[^""]/{
15847  N
15848  s/\n//
15849}
15850' >>$CONFIG_STATUS || ac_write_fail=1
15851rm -f conf$$subs.awk
15852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853_ACAWK
15854cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15855  for (key in S) S_is_set[key] = 1
15856  FS = ""
15857  \$ac_cs_awk_pipe_init
15858}
15859{
15860  line = $ 0
15861  nfields = split(line, field, "@")
15862  substed = 0
15863  len = length(field[1])
15864  for (i = 2; i < nfields; i++) {
15865    key = field[i]
15866    keylen = length(key)
15867    if (S_is_set[key]) {
15868      value = S[key]
15869      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15870      len += length(value) + length(field[++i])
15871      substed = 1
15872    } else
15873      len += 1 + keylen
15874  }
15875  if (nfields == 3 && !substed) {
15876    key = field[2]
15877    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
15878      \$ac_cs_awk_read_file
15879      next
15880    }
15881  }
15882  print line
15883}
15884\$ac_cs_awk_pipe_fini
15885_ACAWK
15886_ACEOF
15887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15889  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15890else
15891  cat
15892fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15893  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15894_ACEOF
15895
15896# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15897# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15898# trailing colons and then remove the whole line if VPATH becomes empty
15899# (actually we leave an empty line to preserve line numbers).
15900if test "x$srcdir" = x.; then
15901  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15902h
15903s///
15904s/^/:/
15905s/[	 ]*$/:/
15906s/:\$(srcdir):/:/g
15907s/:\${srcdir}:/:/g
15908s/:@srcdir@:/:/g
15909s/^:*//
15910s/:*$//
15911x
15912s/\(=[	 ]*\).*/\1/
15913G
15914s/\n//
15915s/^[^=]*=[	 ]*$//
15916}'
15917fi
15918
15919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15920fi # test -n "$CONFIG_FILES"
15921
15922# Set up the scripts for CONFIG_HEADERS section.
15923# No need to generate them if there are no CONFIG_HEADERS.
15924# This happens for instance with `./config.status Makefile'.
15925if test -n "$CONFIG_HEADERS"; then
15926cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15927BEGIN {
15928_ACEOF
15929
15930# Transform confdefs.h into an awk script `defines.awk', embedded as
15931# here-document in config.status, that substitutes the proper values into
15932# config.h.in to produce config.h.
15933
15934# Create a delimiter string that does not exist in confdefs.h, to ease
15935# handling of long lines.
15936ac_delim='%!_!# '
15937for ac_last_try in false false :; do
15938  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15939  if test -z "$ac_tt"; then
15940    break
15941  elif $ac_last_try; then
15942    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15943  else
15944    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15945  fi
15946done
15947
15948# For the awk script, D is an array of macro values keyed by name,
15949# likewise P contains macro parameters if any.  Preserve backslash
15950# newline sequences.
15951
15952ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15953sed -n '
15954s/.\{148\}/&'"$ac_delim"'/g
15955t rset
15956:rset
15957s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15958t def
15959d
15960:def
15961s/\\$//
15962t bsnl
15963s/["\\]/\\&/g
15964s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15965D["\1"]=" \3"/p
15966s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15967d
15968:bsnl
15969s/["\\]/\\&/g
15970s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15971D["\1"]=" \3\\\\\\n"\\/p
15972t cont
15973s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15974t cont
15975d
15976:cont
15977n
15978s/.\{148\}/&'"$ac_delim"'/g
15979t clear
15980:clear
15981s/\\$//
15982t bsnlc
15983s/["\\]/\\&/g; s/^/"/; s/$/"/p
15984d
15985:bsnlc
15986s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15987b cont
15988' <confdefs.h | sed '
15989s/'"$ac_delim"'/"\\\
15990"/g' >>$CONFIG_STATUS || ac_write_fail=1
15991
15992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15993  for (key in D) D_is_set[key] = 1
15994  FS = ""
15995}
15996/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15997  line = \$ 0
15998  split(line, arg, " ")
15999  if (arg[1] == "#") {
16000    defundef = arg[2]
16001    mac1 = arg[3]
16002  } else {
16003    defundef = substr(arg[1], 2)
16004    mac1 = arg[2]
16005  }
16006  split(mac1, mac2, "(") #)
16007  macro = mac2[1]
16008  prefix = substr(line, 1, index(line, defundef) - 1)
16009  if (D_is_set[macro]) {
16010    # Preserve the white space surrounding the "#".
16011    print prefix "define", macro P[macro] D[macro]
16012    next
16013  } else {
16014    # Replace #undef with comments.  This is necessary, for example,
16015    # in the case of _POSIX_SOURCE, which is predefined and required
16016    # on some systems where configure will not decide to define it.
16017    if (defundef == "undef") {
16018      print "/*", prefix defundef, macro, "*/"
16019      next
16020    }
16021  }
16022}
16023{ print }
16024_ACAWK
16025_ACEOF
16026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16028fi # test -n "$CONFIG_HEADERS"
16029
16030
16031eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
16032shift
16033for ac_tag
16034do
16035  case $ac_tag in
16036  :[FHLC]) ac_mode=$ac_tag; continue;;
16037  esac
16038  case $ac_mode$ac_tag in
16039  :[FHL]*:*);;
16040  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16041  :[FH]-) ac_tag=-:-;;
16042  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16043  esac
16044  ac_save_IFS=$IFS
16045  IFS=:
16046  set x $ac_tag
16047  IFS=$ac_save_IFS
16048  shift
16049  ac_file=$1
16050  shift
16051
16052  case $ac_mode in
16053  :L) ac_source=$1;;
16054  :[FH])
16055    ac_file_inputs=
16056    for ac_f
16057    do
16058      case $ac_f in
16059      -) ac_f="$ac_tmp/stdin";;
16060      *) # Look for the file first in the build tree, then in the source tree
16061	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16062	 # because $ac_f cannot contain `:'.
16063	 test -f "$ac_f" ||
16064	   case $ac_f in
16065	   [\\/$]*) false;;
16066	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16067	   esac ||
16068	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16069      esac
16070      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16071      as_fn_append ac_file_inputs " '$ac_f'"
16072    done
16073
16074    # Let's still pretend it is `configure' which instantiates (i.e., don't
16075    # use $as_me), people would be surprised to read:
16076    #    /* config.h.  Generated by config.status.  */
16077    configure_input='Generated from '`
16078	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16079	`' by configure.'
16080    if test x"$ac_file" != x-; then
16081      configure_input="$ac_file.  $configure_input"
16082      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16083printf "%s\n" "$as_me: creating $ac_file" >&6;}
16084    fi
16085    # Neutralize special characters interpreted by sed in replacement strings.
16086    case $configure_input in #(
16087    *\&* | *\|* | *\\* )
16088       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16089       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16090    *) ac_sed_conf_input=$configure_input;;
16091    esac
16092
16093    case $ac_tag in
16094    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16095      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16096    esac
16097    ;;
16098  esac
16099
16100  ac_dir=`$as_dirname -- "$ac_file" ||
16101$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16102	 X"$ac_file" : 'X\(//\)[^/]' \| \
16103	 X"$ac_file" : 'X\(//\)$' \| \
16104	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16105printf "%s\n" X"$ac_file" |
16106    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16107	    s//\1/
16108	    q
16109	  }
16110	  /^X\(\/\/\)[^/].*/{
16111	    s//\1/
16112	    q
16113	  }
16114	  /^X\(\/\/\)$/{
16115	    s//\1/
16116	    q
16117	  }
16118	  /^X\(\/\).*/{
16119	    s//\1/
16120	    q
16121	  }
16122	  s/.*/./; q'`
16123  as_dir="$ac_dir"; as_fn_mkdir_p
16124  ac_builddir=.
16125
16126case "$ac_dir" in
16127.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16128*)
16129  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16130  # A ".." for each directory in $ac_dir_suffix.
16131  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16132  case $ac_top_builddir_sub in
16133  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16134  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16135  esac ;;
16136esac
16137ac_abs_top_builddir=$ac_pwd
16138ac_abs_builddir=$ac_pwd$ac_dir_suffix
16139# for backward compatibility:
16140ac_top_builddir=$ac_top_build_prefix
16141
16142case $srcdir in
16143  .)  # We are building in place.
16144    ac_srcdir=.
16145    ac_top_srcdir=$ac_top_builddir_sub
16146    ac_abs_top_srcdir=$ac_pwd ;;
16147  [\\/]* | ?:[\\/]* )  # Absolute name.
16148    ac_srcdir=$srcdir$ac_dir_suffix;
16149    ac_top_srcdir=$srcdir
16150    ac_abs_top_srcdir=$srcdir ;;
16151  *) # Relative name.
16152    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16153    ac_top_srcdir=$ac_top_build_prefix$srcdir
16154    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16155esac
16156ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16157
16158
16159  case $ac_mode in
16160  :F)
16161  #
16162  # CONFIG_FILE
16163  #
16164
16165  case $INSTALL in
16166  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16167  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16168  esac
16169_ACEOF
16170
16171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16172# If the template does not know about datarootdir, expand it.
16173# FIXME: This hack should be removed a few years after 2.60.
16174ac_datarootdir_hack=; ac_datarootdir_seen=
16175ac_sed_dataroot='
16176/datarootdir/ {
16177  p
16178  q
16179}
16180/@datadir@/p
16181/@docdir@/p
16182/@infodir@/p
16183/@localedir@/p
16184/@mandir@/p'
16185case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16186*datarootdir*) ac_datarootdir_seen=yes;;
16187*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16189printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16190_ACEOF
16191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16192  ac_datarootdir_hack='
16193  s&@datadir@&$datadir&g
16194  s&@docdir@&$docdir&g
16195  s&@infodir@&$infodir&g
16196  s&@localedir@&$localedir&g
16197  s&@mandir@&$mandir&g
16198  s&\\\${datarootdir}&$datarootdir&g' ;;
16199esac
16200_ACEOF
16201
16202# Neutralize VPATH when `$srcdir' = `.'.
16203# Shell code in configure.ac might set extrasub.
16204# FIXME: do we really want to maintain this feature?
16205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16206ac_sed_extra="$ac_vpsub
16207$extrasub
16208_ACEOF
16209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16210:t
16211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16212s|@configure_input@|$ac_sed_conf_input|;t t
16213s&@top_builddir@&$ac_top_builddir_sub&;t t
16214s&@top_build_prefix@&$ac_top_build_prefix&;t t
16215s&@srcdir@&$ac_srcdir&;t t
16216s&@abs_srcdir@&$ac_abs_srcdir&;t t
16217s&@top_srcdir@&$ac_top_srcdir&;t t
16218s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16219s&@builddir@&$ac_builddir&;t t
16220s&@abs_builddir@&$ac_abs_builddir&;t t
16221s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16222s&@INSTALL@&$ac_INSTALL&;t t
16223$ac_datarootdir_hack
16224"
16225eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16226if $ac_cs_awk_getline; then
16227  $AWK -f "$ac_tmp/subs.awk"
16228else
16229  $AWK -f "$ac_tmp/subs.awk" | $SHELL
16230fi \
16231  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16232
16233test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16234  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16235  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16236      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16238which seems to be undefined.  Please make sure it is defined" >&5
16239printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16240which seems to be undefined.  Please make sure it is defined" >&2;}
16241
16242  rm -f "$ac_tmp/stdin"
16243  case $ac_file in
16244  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16245  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16246  esac \
16247  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16248 ;;
16249  :H)
16250  #
16251  # CONFIG_HEADER
16252  #
16253  if test x"$ac_file" != x-; then
16254    {
16255      printf "%s\n" "/* $configure_input  */" >&1 \
16256      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16257    } >"$ac_tmp/config.h" \
16258      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16259    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16260      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16261printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16262    else
16263      rm -f "$ac_file"
16264      mv "$ac_tmp/config.h" "$ac_file" \
16265	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16266    fi
16267  else
16268    printf "%s\n" "/* $configure_input  */" >&1 \
16269      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16270      || as_fn_error $? "could not create -" "$LINENO" 5
16271  fi
16272 ;;
16273
16274
16275  esac
16276
16277
16278  case $ac_file$ac_mode in
16279    "include/autoconf.h":H) echo timestamp > include/autoconf.stamp ;;
16280    "build-tools/krb5-config":F) chmod +x build-tools/krb5-config ;;
16281
16282  esac
16283done # for ac_tag
16284
16285
16286as_fn_exit 0
16287_ACEOF
16288ac_clean_files=$ac_clean_files_save
16289
16290test $ac_write_fail = 0 ||
16291  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16292
16293
16294# configure is writing to config.log, and then calls config.status.
16295# config.status does its own redirection, appending to config.log.
16296# Unfortunately, on DOS this fails, as config.log is still kept open
16297# by configure, so config.status won't be able to write to it; its
16298# output is simply discarded.  So we exec the FD to /dev/null,
16299# effectively closing config.log, so it can be properly (re)opened and
16300# appended to by config.status.  When coming back to configure, we
16301# need to make the FD available again.
16302if test "$no_create" != yes; then
16303  ac_cs_success=:
16304  ac_config_status_args=
16305  test "$silent" = yes &&
16306    ac_config_status_args="$ac_config_status_args --quiet"
16307  exec 5>/dev/null
16308  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16309  exec 5>>config.log
16310  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16311  # would make configure fail if this is the last instruction.
16312  $ac_cs_success || as_fn_exit 1
16313fi
16314if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16316printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16317fi
16318
16319
16320