xref: /freebsd/crypto/krb5/src/configure (revision 4b15965daa99044daf184221b7c283bf7f2d7e66)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for Kerberos 5 1.21.3.
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.21.3'
619PACKAGE_STRING='Kerberos 5 1.21.3'
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
715ASAN
716ASAN_FLAGS
717KRB5_RUN_VARS
718KRB5_RUN_ENV
719AESNI_FLAGS
720AESNI_OBJ
721YASM
722SPAKE_OPENSSL_LIBS
723HAVE_SPAKE_OPENSSL
724TLS_IMPL_LIBS
725TLS_IMPL_CFLAGS
726TLS_IMPL
727CRYPTO_BUILTIN_TESTS
728CRYPTO_IMPL_LIBS
729CRYPTO_IMPL_CFLAGS
730audit_plugin
731AUDIT_IMPL_LIBS
732AWK
733SECURE_GETENV_INIT
734SECURE_GETENV_ST_OBJ
735SECURE_GETENV_OBJ
736PRINTF_ST_OBJ
737PRINTF_OBJ
738FNMATCH_ST_OBJ
739FNMATCH_OBJ
740GETOPT_LONG_ST_OBJ
741GETOPT_LONG_OBJ
742GETOPT_ST_OBJ
743GETOPT_OBJ
744STRLCPY_ST_OBJ
745STRLCPY_OBJ
746po
747MSGFMT
748LIBUTIL
749PROG_RPATH_FLAGS
750RPATH_FLAG
751CXX_LINK
752CC_LINK
753GEN_LIB
754UNDEF_CHECK
755MAKE_DYNOBJ_COMMAND
756DYNOBJEXT
757LIBINSTLIST
758PFLIBEXT
759DEPLIBEXT
760SHLIBSEXT
761SHLIBVEXT
762SHLIBEXT
763STLIBEXT
764INSTALL_SHLIB
765DYNOBJ_EXPFLAGS
766DYNOBJ_EXPDEPS
767SHLIB_EXPORT_FILE_DEP
768SHLIB_EXPFLAGS
769SHLIB_RPATH_FLAGS
770MAKE_SHLIB_COMMAND
771KDB5_PLUGIN_LIBS
772KDB5_PLUGIN_DEPLIBS
773PLUGININST
774PLUGINLINK
775PLUGIN
776LIBLINKS
777LIBLIST
778PERL
779AR
780INSTALL_DATA
781INSTALL_SCRIPT
782INSTALL_PROGRAM
783RANLIB
784LN_S
785PROFFLAGS
786PICFLAGS
787PFOBJEXT
788SHOBJEXT
789STOBJEXT
790OBJLISTS
791KRB5_VERSION
792DL_LIB
793THREAD_SUPPORT
794PTHREAD_CFLAGS
795PTHREAD_LIBS
796PTHREAD_CXX
797PTHREAD_CC
798ax_pthread_config
799EGREP
800GREP
801SED
802krb5_cv_host
803host_os
804host_vendor
805host_cpu
806host
807build_os
808build_vendor
809build_cpu
810build
811CONFIG_RELTOPDIR
812MAINT
813MAINTAINER_MODE_FALSE
814MAINTAINER_MODE_TRUE
815HESIOD_LIBS
816HESIOD_DEFS
817KDB5_DB_LIB
818DB_HEADER_VERSION
819DB_VERSION
820DB_LIB
821DB_HEADER
822SS_VERSION
823SS_LIB
824COM_ERR_LIB
825COM_ERR_VERSION
826compile_et
827COM_ERR_LIBS
828COM_ERR_CFLAGS
829PKG_CONFIG_LIBDIR
830PKG_CONFIG_PATH
831PKG_CONFIG
832LD
833CPP
834WARN_CXXFLAGS
835WARN_CFLAGS
836HAVE_GCC
837ac_ct_CXX
838CXXFLAGS
839CXX
840OBJEXT
841EXEEXT
842ac_ct_CC
843CPPFLAGS
844LDFLAGS
845CFLAGS
846CC
847EXTRA_FILES
848SYSCONFCONF
849target_alias
850host_alias
851build_alias
852LIBS
853ECHO_T
854ECHO_N
855ECHO_C
856DEFS
857mandir
858localedir
859libdir
860psdir
861pdfdir
862dvidir
863htmldir
864infodir
865docdir
866oldincludedir
867includedir
868runstatedir
869localstatedir
870sharedstatedir
871sysconfdir
872datadir
873datarootdir
874libexecdir
875sbindir
876bindir
877program_transform_name
878prefix
879exec_prefix
880PACKAGE_URL
881PACKAGE_BUGREPORT
882PACKAGE_STRING
883PACKAGE_VERSION
884PACKAGE_TARNAME
885PACKAGE_NAME
886PATH_SEPARATOR
887SHELL'
888ac_subst_files='lib_frag
889libobj_frag
890libnover_frag
891libpriv_frag
892libnodeps_frag'
893ac_user_opts='
894enable_option_checking
895with_size_optimizations
896with_system_et
897with_system_ss
898with_system_db
899with_netlib
900enable_dns_for_realm
901with_hesiod
902enable_maintainer_mode
903with_ldap
904enable_delayed_initialization
905enable_thread_support
906enable_static
907enable_shared
908enable_rpath
909enable_profiled
910enable_athena
911enable_nls
912with_vague_errors
913enable_audit_plugin
914with_crypto_impl
915with_tls_impl
916with_keyutils
917with_spake_openssl
918enable_aesni
919enable_kdc_lookaside_cache
920enable_asan
921enable_pkinit
922with_lmdb
923with_libedit
924with_readline
925with_system_verto
926with_krb5_config
927'
928      ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934LIBS
935CPPFLAGS
936CXX
937CXXFLAGS
938CCC
939CPP
940LD
941PKG_CONFIG
942PKG_CONFIG_PATH
943PKG_CONFIG_LIBDIR
944COM_ERR_CFLAGS
945COM_ERR_LIBS
946SS_LIB
947DB_HEADER
948DB_LIB
949YACC
950YFLAGS
951LIBEDIT_CFLAGS
952LIBEDIT_LIBS
953VERTO_CFLAGS
954VERTO_LIBS
955DEFCCNAME
956DEFKTNAME
957DEFCKTNAME
958PKCS11_MODNAME'
959
960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964ac_unrecognized_opts=
965ac_unrecognized_sep=
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997runstatedir='${localstatedir}/run'
998includedir='${prefix}/include'
999oldincludedir='/usr/include'
1000docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001infodir='${datarootdir}/info'
1002htmldir='${docdir}'
1003dvidir='${docdir}'
1004pdfdir='${docdir}'
1005psdir='${docdir}'
1006libdir='${exec_prefix}/lib'
1007localedir='${datarootdir}/locale'
1008mandir='${datarootdir}/man'
1009
1010ac_prev=
1011ac_dashdash=
1012for ac_option
1013do
1014  # If the previous option needs an argument, assign it.
1015  if test -n "$ac_prev"; then
1016    eval $ac_prev=\$ac_option
1017    ac_prev=
1018    continue
1019  fi
1020
1021  case $ac_option in
1022  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023  *=)   ac_optarg= ;;
1024  *)    ac_optarg=yes ;;
1025  esac
1026
1027  case $ac_dashdash$ac_option in
1028  --)
1029    ac_dashdash=yes ;;
1030
1031  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032    ac_prev=bindir ;;
1033  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034    bindir=$ac_optarg ;;
1035
1036  -build | --build | --buil | --bui | --bu)
1037    ac_prev=build_alias ;;
1038  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039    build_alias=$ac_optarg ;;
1040
1041  -cache-file | --cache-file | --cache-fil | --cache-fi \
1042  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043    ac_prev=cache_file ;;
1044  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046    cache_file=$ac_optarg ;;
1047
1048  --config-cache | -C)
1049    cache_file=config.cache ;;
1050
1051  -datadir | --datadir | --datadi | --datad)
1052    ac_prev=datadir ;;
1053  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054    datadir=$ac_optarg ;;
1055
1056  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057  | --dataroo | --dataro | --datar)
1058    ac_prev=datarootdir ;;
1059  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061    datarootdir=$ac_optarg ;;
1062
1063  -disable-* | --disable-*)
1064    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065    # Reject names that are not valid shell variable names.
1066    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1068    ac_useropt_orig=$ac_useropt
1069    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1070    case $ac_user_opts in
1071      *"
1072"enable_$ac_useropt"
1073"*) ;;
1074      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075	 ac_unrecognized_sep=', ';;
1076    esac
1077    eval enable_$ac_useropt=no ;;
1078
1079  -docdir | --docdir | --docdi | --doc | --do)
1080    ac_prev=docdir ;;
1081  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1082    docdir=$ac_optarg ;;
1083
1084  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1085    ac_prev=dvidir ;;
1086  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1087    dvidir=$ac_optarg ;;
1088
1089  -enable-* | --enable-*)
1090    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091    # Reject names that are not valid shell variable names.
1092    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1094    ac_useropt_orig=$ac_useropt
1095    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1096    case $ac_user_opts in
1097      *"
1098"enable_$ac_useropt"
1099"*) ;;
1100      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101	 ac_unrecognized_sep=', ';;
1102    esac
1103    eval enable_$ac_useropt=\$ac_optarg ;;
1104
1105  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107  | --exec | --exe | --ex)
1108    ac_prev=exec_prefix ;;
1109  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111  | --exec=* | --exe=* | --ex=*)
1112    exec_prefix=$ac_optarg ;;
1113
1114  -gas | --gas | --ga | --g)
1115    # Obsolete; use --with-gas.
1116    with_gas=yes ;;
1117
1118  -help | --help | --hel | --he | -h)
1119    ac_init_help=long ;;
1120  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121    ac_init_help=recursive ;;
1122  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123    ac_init_help=short ;;
1124
1125  -host | --host | --hos | --ho)
1126    ac_prev=host_alias ;;
1127  -host=* | --host=* | --hos=* | --ho=*)
1128    host_alias=$ac_optarg ;;
1129
1130  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131    ac_prev=htmldir ;;
1132  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133  | --ht=*)
1134    htmldir=$ac_optarg ;;
1135
1136  -includedir | --includedir | --includedi | --included | --include \
1137  | --includ | --inclu | --incl | --inc)
1138    ac_prev=includedir ;;
1139  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140  | --includ=* | --inclu=* | --incl=* | --inc=*)
1141    includedir=$ac_optarg ;;
1142
1143  -infodir | --infodir | --infodi | --infod | --info | --inf)
1144    ac_prev=infodir ;;
1145  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146    infodir=$ac_optarg ;;
1147
1148  -libdir | --libdir | --libdi | --libd)
1149    ac_prev=libdir ;;
1150  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151    libdir=$ac_optarg ;;
1152
1153  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154  | --libexe | --libex | --libe)
1155    ac_prev=libexecdir ;;
1156  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157  | --libexe=* | --libex=* | --libe=*)
1158    libexecdir=$ac_optarg ;;
1159
1160  -localedir | --localedir | --localedi | --localed | --locale)
1161    ac_prev=localedir ;;
1162  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163    localedir=$ac_optarg ;;
1164
1165  -localstatedir | --localstatedir | --localstatedi | --localstated \
1166  | --localstate | --localstat | --localsta | --localst | --locals)
1167    ac_prev=localstatedir ;;
1168  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170    localstatedir=$ac_optarg ;;
1171
1172  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173    ac_prev=mandir ;;
1174  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175    mandir=$ac_optarg ;;
1176
1177  -nfp | --nfp | --nf)
1178    # Obsolete; use --without-fp.
1179    with_fp=no ;;
1180
1181  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182  | --no-cr | --no-c | -n)
1183    no_create=yes ;;
1184
1185  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187    no_recursion=yes ;;
1188
1189  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191  | --oldin | --oldi | --old | --ol | --o)
1192    ac_prev=oldincludedir ;;
1193  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196    oldincludedir=$ac_optarg ;;
1197
1198  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199    ac_prev=prefix ;;
1200  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201    prefix=$ac_optarg ;;
1202
1203  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204  | --program-pre | --program-pr | --program-p)
1205    ac_prev=program_prefix ;;
1206  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208    program_prefix=$ac_optarg ;;
1209
1210  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211  | --program-suf | --program-su | --program-s)
1212    ac_prev=program_suffix ;;
1213  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215    program_suffix=$ac_optarg ;;
1216
1217  -program-transform-name | --program-transform-name \
1218  | --program-transform-nam | --program-transform-na \
1219  | --program-transform-n | --program-transform- \
1220  | --program-transform | --program-transfor \
1221  | --program-transfo | --program-transf \
1222  | --program-trans | --program-tran \
1223  | --progr-tra | --program-tr | --program-t)
1224    ac_prev=program_transform_name ;;
1225  -program-transform-name=* | --program-transform-name=* \
1226  | --program-transform-nam=* | --program-transform-na=* \
1227  | --program-transform-n=* | --program-transform-=* \
1228  | --program-transform=* | --program-transfor=* \
1229  | --program-transfo=* | --program-transf=* \
1230  | --program-trans=* | --program-tran=* \
1231  | --progr-tra=* | --program-tr=* | --program-t=*)
1232    program_transform_name=$ac_optarg ;;
1233
1234  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235    ac_prev=pdfdir ;;
1236  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237    pdfdir=$ac_optarg ;;
1238
1239  -psdir | --psdir | --psdi | --psd | --ps)
1240    ac_prev=psdir ;;
1241  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242    psdir=$ac_optarg ;;
1243
1244  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245  | -silent | --silent | --silen | --sile | --sil)
1246    silent=yes ;;
1247
1248  -runstatedir | --runstatedir | --runstatedi | --runstated \
1249  | --runstate | --runstat | --runsta | --runst | --runs \
1250  | --run | --ru | --r)
1251    ac_prev=runstatedir ;;
1252  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1253  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1254  | --run=* | --ru=* | --r=*)
1255    runstatedir=$ac_optarg ;;
1256
1257  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1258    ac_prev=sbindir ;;
1259  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1260  | --sbi=* | --sb=*)
1261    sbindir=$ac_optarg ;;
1262
1263  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1264  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1265  | --sharedst | --shareds | --shared | --share | --shar \
1266  | --sha | --sh)
1267    ac_prev=sharedstatedir ;;
1268  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1269  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1270  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1271  | --sha=* | --sh=*)
1272    sharedstatedir=$ac_optarg ;;
1273
1274  -site | --site | --sit)
1275    ac_prev=site ;;
1276  -site=* | --site=* | --sit=*)
1277    site=$ac_optarg ;;
1278
1279  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1280    ac_prev=srcdir ;;
1281  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1282    srcdir=$ac_optarg ;;
1283
1284  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1285  | --syscon | --sysco | --sysc | --sys | --sy)
1286    ac_prev=sysconfdir ;;
1287  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1288  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1289    sysconfdir=$ac_optarg ;;
1290
1291  -target | --target | --targe | --targ | --tar | --ta | --t)
1292    ac_prev=target_alias ;;
1293  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1294    target_alias=$ac_optarg ;;
1295
1296  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1297    verbose=yes ;;
1298
1299  -version | --version | --versio | --versi | --vers | -V)
1300    ac_init_version=: ;;
1301
1302  -with-* | --with-*)
1303    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1304    # Reject names that are not valid shell variable names.
1305    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306      as_fn_error $? "invalid package name: \`$ac_useropt'"
1307    ac_useropt_orig=$ac_useropt
1308    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1309    case $ac_user_opts in
1310      *"
1311"with_$ac_useropt"
1312"*) ;;
1313      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1314	 ac_unrecognized_sep=', ';;
1315    esac
1316    eval with_$ac_useropt=\$ac_optarg ;;
1317
1318  -without-* | --without-*)
1319    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1320    # Reject names that are not valid shell variable names.
1321    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322      as_fn_error $? "invalid package name: \`$ac_useropt'"
1323    ac_useropt_orig=$ac_useropt
1324    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1325    case $ac_user_opts in
1326      *"
1327"with_$ac_useropt"
1328"*) ;;
1329      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1330	 ac_unrecognized_sep=', ';;
1331    esac
1332    eval with_$ac_useropt=no ;;
1333
1334  --x)
1335    # Obsolete; use --with-x.
1336    with_x=yes ;;
1337
1338  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1339  | --x-incl | --x-inc | --x-in | --x-i)
1340    ac_prev=x_includes ;;
1341  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1342  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1343    x_includes=$ac_optarg ;;
1344
1345  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1346  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1347    ac_prev=x_libraries ;;
1348  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1349  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1350    x_libraries=$ac_optarg ;;
1351
1352  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1353Try \`$0 --help' for more information"
1354    ;;
1355
1356  *=*)
1357    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358    # Reject names that are not valid shell variable names.
1359    case $ac_envvar in #(
1360      '' | [0-9]* | *[!_$as_cr_alnum]* )
1361      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1362    esac
1363    eval $ac_envvar=\$ac_optarg
1364    export $ac_envvar ;;
1365
1366  *)
1367    # FIXME: should be removed in autoconf 3.0.
1368    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1369    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1371    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1372    ;;
1373
1374  esac
1375done
1376
1377if test -n "$ac_prev"; then
1378  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1379  as_fn_error $? "missing argument to $ac_option"
1380fi
1381
1382if test -n "$ac_unrecognized_opts"; then
1383  case $enable_option_checking in
1384    no) ;;
1385    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1386    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387  esac
1388fi
1389
1390# Check all directory arguments for consistency.
1391for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392		datadir sysconfdir sharedstatedir localstatedir includedir \
1393		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394		libdir localedir mandir runstatedir
1395do
1396  eval ac_val=\$$ac_var
1397  # Remove trailing slashes.
1398  case $ac_val in
1399    */ )
1400      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401      eval $ac_var=\$ac_val;;
1402  esac
1403  # Be sure to have absolute directory names.
1404  case $ac_val in
1405    [\\/$]* | ?:[\\/]* )  continue;;
1406    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407  esac
1408  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1409done
1410
1411# There might be people who depend on the old broken behavior: `$host'
1412# used to hold the argument of --host etc.
1413# FIXME: To remove some day.
1414build=$build_alias
1415host=$host_alias
1416target=$target_alias
1417
1418# FIXME: To remove some day.
1419if test "x$host_alias" != x; then
1420  if test "x$build_alias" = x; then
1421    cross_compiling=maybe
1422  elif test "x$build_alias" != "x$host_alias"; then
1423    cross_compiling=yes
1424  fi
1425fi
1426
1427ac_tool_prefix=
1428test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429
1430test "$silent" = yes && exec 6>/dev/null
1431
1432
1433ac_pwd=`pwd` && test -n "$ac_pwd" &&
1434ac_ls_di=`ls -di .` &&
1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1436  as_fn_error $? "working directory cannot be determined"
1437test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1438  as_fn_error $? "pwd does not report name of working directory"
1439
1440
1441# Find the source files, if location was not specified.
1442if test -z "$srcdir"; then
1443  ac_srcdir_defaulted=yes
1444  # Try the directory containing this script, then the parent directory.
1445  ac_confdir=`$as_dirname -- "$as_myself" ||
1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447	 X"$as_myself" : 'X\(//\)[^/]' \| \
1448	 X"$as_myself" : 'X\(//\)$' \| \
1449	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450printf "%s\n" X"$as_myself" |
1451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452	    s//\1/
1453	    q
1454	  }
1455	  /^X\(\/\/\)[^/].*/{
1456	    s//\1/
1457	    q
1458	  }
1459	  /^X\(\/\/\)$/{
1460	    s//\1/
1461	    q
1462	  }
1463	  /^X\(\/\).*/{
1464	    s//\1/
1465	    q
1466	  }
1467	  s/.*/./; q'`
1468  srcdir=$ac_confdir
1469  if test ! -r "$srcdir/$ac_unique_file"; then
1470    srcdir=..
1471  fi
1472else
1473  ac_srcdir_defaulted=no
1474fi
1475if test ! -r "$srcdir/$ac_unique_file"; then
1476  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1478fi
1479ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480ac_abs_confdir=`(
1481	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1482	pwd)`
1483# When building in place, set srcdir=.
1484if test "$ac_abs_confdir" = "$ac_pwd"; then
1485  srcdir=.
1486fi
1487# Remove unnecessary trailing slashes from srcdir.
1488# Double slashes in file names in object file debugging info
1489# mess up M-x gdb in Emacs.
1490case $srcdir in
1491*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492esac
1493for ac_var in $ac_precious_vars; do
1494  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1495  eval ac_env_${ac_var}_value=\$${ac_var}
1496  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1497  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1498done
1499
1500#
1501# Report the --help message.
1502#
1503if test "$ac_init_help" = "long"; then
1504  # Omit some internal or obsolete options to make the list less imposing.
1505  # This message is too long to be a string in the A/UX 3.1 sh.
1506  cat <<_ACEOF
1507\`configure' configures Kerberos 5 1.21.3 to adapt to many kinds of systems.
1508
1509Usage: $0 [OPTION]... [VAR=VALUE]...
1510
1511To assign environment variables (e.g., CC, CFLAGS...), specify them as
1512VAR=VALUE.  See below for descriptions of some of the useful variables.
1513
1514Defaults for the options are specified in brackets.
1515
1516Configuration:
1517  -h, --help              display this help and exit
1518      --help=short        display options specific to this package
1519      --help=recursive    display the short help of all the included packages
1520  -V, --version           display version information and exit
1521  -q, --quiet, --silent   do not print \`checking ...' messages
1522      --cache-file=FILE   cache test results in FILE [disabled]
1523  -C, --config-cache      alias for \`--cache-file=config.cache'
1524  -n, --no-create         do not create output files
1525      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1526
1527Installation directories:
1528  --prefix=PREFIX         install architecture-independent files in PREFIX
1529                          [$ac_default_prefix]
1530  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1531                          [PREFIX]
1532
1533By default, \`make install' will install all the files in
1534\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1535an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1536for instance \`--prefix=\$HOME'.
1537
1538For better control, use the options below.
1539
1540Fine tuning of the installation directories:
1541  --bindir=DIR            user executables [EPREFIX/bin]
1542  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1543  --libexecdir=DIR        program executables [EPREFIX/libexec]
1544  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1545  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1546  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1547  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1548  --libdir=DIR            object code libraries [EPREFIX/lib]
1549  --includedir=DIR        C header files [PREFIX/include]
1550  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1551  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1552  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1553  --infodir=DIR           info documentation [DATAROOTDIR/info]
1554  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1555  --mandir=DIR            man documentation [DATAROOTDIR/man]
1556  --docdir=DIR            documentation root [DATAROOTDIR/doc/krb5]
1557  --htmldir=DIR           html documentation [DOCDIR]
1558  --dvidir=DIR            dvi documentation [DOCDIR]
1559  --pdfdir=DIR            pdf documentation [DOCDIR]
1560  --psdir=DIR             ps documentation [DOCDIR]
1561_ACEOF
1562
1563  cat <<\_ACEOF
1564
1565Program names:
1566  --program-prefix=PREFIX            prepend PREFIX to installed program names
1567  --program-suffix=SUFFIX            append SUFFIX to installed program names
1568  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1569
1570System types:
1571  --build=BUILD     configure for building on BUILD [guessed]
1572  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1573_ACEOF
1574fi
1575
1576if test -n "$ac_init_help"; then
1577  case $ac_init_help in
1578     short | recursive ) echo "Configuration of Kerberos 5 1.21.3:";;
1579   esac
1580  cat <<\_ACEOF
1581
1582Optional Features:
1583  --disable-option-checking  ignore unrecognized --enable/--with options
1584  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1585  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1586  --enable-dns-for-realm  enable DNS lookups of Kerberos realm names
1587  --enable-maintainer-mode
1588                          enable rebuilding of source files, Makefiles, etc
1589  --disable-delayed-initialization
1590                          initialize library code when loaded [delay until
1591                          first use]
1592  --disable-thread-support
1593                          don't enable thread support [enabled]
1594
1595  --disable-rpath         suppress run path flags in link lines
1596  --enable-athena         build with MIT Project Athena configuration
1597  --disable-nls           disable native language support
1598  --enable-audit-plugin=IMPL
1599                          use audit plugin [ do not use audit ]
1600  --disable-aesni         Do not build with AES-NI support
1601  --disable-kdc-lookaside-cache
1602                          Disable the cache which detects client retransmits
1603  --enable-asan           Build with asan memory checking
1604  --disable-pkinit        disable PKINIT plugin support
1605
1606Optional Packages:
1607  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1608  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1609  --with-size-optimizations enable a few optimizations to reduce code size
1610                          possibly at some run-time cost
1611  --with-system-et        use system compile_et and -lcom_err [default: build
1612                          and install a local version]
1613  --with-system-ss        use system -lss and mk_cmds [private version]
1614  --with-system-db        use system Berkeley db [private version]
1615  --with-netlib=LIBS      use user defined resolver library
1616  --with-hesiod=path      compile with hesiod support [omitted]
1617  --with-ldap             compile OpenLDAP database backend module
1618  --with-vague-errors     Do not [do] send helpful errors to client
1619  --with-crypto-impl=IMPL use specified crypto implementation [builtin]
1620  --with-tls-impl=IMPL    use specified TLS implementation [auto]
1621  --without-keyutils      do not link with libkeyutils
1622  --with-spake-openssl    use OpenSSL for SPAKE preauth [auto]
1623  --with-lmdb             compile LMDB database backend module [auto]
1624  --without-libedit       do not compile with libedit
1625  --with-readline         compile with GNU Readline
1626  --with-system-verto     always use system verto library
1627  --with-krb5-config=PATH path to existing krb5-config program for defaults
1628
1629Some influential environment variables:
1630  CC          C compiler command
1631  CFLAGS      C compiler flags
1632  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1633              nonstandard directory <lib dir>
1634  LIBS        libraries to pass to the linker, e.g. -l<library>
1635  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636              you have headers in a nonstandard directory <include dir>
1637  CXX         C++ compiler command
1638  CXXFLAGS    C++ compiler flags
1639  CPP         C preprocessor
1640  LD          linker command [CC]
1641  PKG_CONFIG  path to pkg-config utility
1642  PKG_CONFIG_PATH
1643              directories to add to pkg-config's search path
1644  PKG_CONFIG_LIBDIR
1645              path overriding pkg-config's built-in search path
1646  COM_ERR_CFLAGS
1647              C compiler flags for COM_ERR, overriding pkg-config
1648  COM_ERR_LIBS
1649              linker flags for COM_ERR, overriding pkg-config
1650  SS_LIB      system libraries for 'ss' package [-lss]
1651  DB_HEADER   header file for system Berkeley db package [db.h]
1652  DB_LIB      library for system Berkeley db package [-ldb]
1653  YACC        The `Yet Another Compiler Compiler' implementation to use.
1654              Defaults to the first program found out of: `bison -y', `byacc',
1655              `yacc'.
1656  YFLAGS      The list of arguments that will be passed by default to $YACC.
1657              This script will default YFLAGS to the empty string to avoid a
1658              default value of `-d' given by some make applications.
1659  LIBEDIT_CFLAGS
1660              C compiler flags for LIBEDIT, overriding pkg-config
1661  LIBEDIT_LIBS
1662              linker flags for LIBEDIT, overriding pkg-config
1663  VERTO_CFLAGS
1664              C compiler flags for VERTO, overriding pkg-config
1665  VERTO_LIBS  linker flags for VERTO, overriding pkg-config
1666  DEFCCNAME   Default ccache name
1667  DEFKTNAME   Default keytab name
1668  DEFCKTNAME  Default client keytab name
1669  PKCS11_MODNAME
1670              Default PKCS11 module name
1671
1672Use these variables to override the choices made by `configure' or to help
1673it to find libraries and programs with nonstandard names/locations.
1674
1675Report bugs to <krb5-bugs@mit.edu>.
1676_ACEOF
1677ac_status=$?
1678fi
1679
1680if test "$ac_init_help" = "recursive"; then
1681  # If there are subdirs, report their specific --help.
1682  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1683    test -d "$ac_dir" ||
1684      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1685      continue
1686    ac_builddir=.
1687
1688case "$ac_dir" in
1689.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690*)
1691  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1692  # A ".." for each directory in $ac_dir_suffix.
1693  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1694  case $ac_top_builddir_sub in
1695  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1697  esac ;;
1698esac
1699ac_abs_top_builddir=$ac_pwd
1700ac_abs_builddir=$ac_pwd$ac_dir_suffix
1701# for backward compatibility:
1702ac_top_builddir=$ac_top_build_prefix
1703
1704case $srcdir in
1705  .)  # We are building in place.
1706    ac_srcdir=.
1707    ac_top_srcdir=$ac_top_builddir_sub
1708    ac_abs_top_srcdir=$ac_pwd ;;
1709  [\\/]* | ?:[\\/]* )  # Absolute name.
1710    ac_srcdir=$srcdir$ac_dir_suffix;
1711    ac_top_srcdir=$srcdir
1712    ac_abs_top_srcdir=$srcdir ;;
1713  *) # Relative name.
1714    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1715    ac_top_srcdir=$ac_top_build_prefix$srcdir
1716    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1717esac
1718ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1719
1720    cd "$ac_dir" || { ac_status=$?; continue; }
1721    # Check for configure.gnu first; this name is used for a wrapper for
1722    # Metaconfig's "Configure" on case-insensitive file systems.
1723    if test -f "$ac_srcdir/configure.gnu"; then
1724      echo &&
1725      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726    elif test -f "$ac_srcdir/configure"; then
1727      echo &&
1728      $SHELL "$ac_srcdir/configure" --help=recursive
1729    else
1730      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731    fi || ac_status=$?
1732    cd "$ac_pwd" || { ac_status=$?; break; }
1733  done
1734fi
1735
1736test -n "$ac_init_help" && exit $ac_status
1737if $ac_init_version; then
1738  cat <<\_ACEOF
1739Kerberos 5 configure 1.21.3
1740generated by GNU Autoconf 2.71
1741
1742Copyright (C) 2021 Free Software Foundation, Inc.
1743This configure script is free software; the Free Software Foundation
1744gives unlimited permission to copy, distribute and modify it.
1745
1746Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
1747Massachusetts Institute of Technology.
1748
1749_ACEOF
1750  exit
1751fi
1752
1753## ------------------------ ##
1754## Autoconf initialization. ##
1755## ------------------------ ##
1756
1757# ac_fn_c_try_compile LINENO
1758# --------------------------
1759# Try to compile conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_compile ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  rm -f conftest.$ac_objext conftest.beam
1764  if { { ac_try="$ac_compile"
1765case "(($ac_try" in
1766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767  *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770printf "%s\n" "$ac_try_echo"; } >&5
1771  (eval "$ac_compile") 2>conftest.err
1772  ac_status=$?
1773  if test -s conftest.err; then
1774    grep -v '^ *+' conftest.err >conftest.er1
1775    cat conftest.er1 >&5
1776    mv -f conftest.er1 conftest.err
1777  fi
1778  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && {
1780	 test -z "$ac_c_werror_flag" ||
1781	 test ! -s conftest.err
1782       } && test -s conftest.$ac_objext
1783then :
1784  ac_retval=0
1785else $as_nop
1786  printf "%s\n" "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789	ac_retval=1
1790fi
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792  as_fn_set_status $ac_retval
1793
1794} # ac_fn_c_try_compile
1795
1796# ac_fn_cxx_try_compile LINENO
1797# ----------------------------
1798# Try to compile conftest.$ac_ext, and return whether this succeeded.
1799ac_fn_cxx_try_compile ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  rm -f conftest.$ac_objext conftest.beam
1803  if { { ac_try="$ac_compile"
1804case "(($ac_try" in
1805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806  *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809printf "%s\n" "$ac_try_echo"; } >&5
1810  (eval "$ac_compile") 2>conftest.err
1811  ac_status=$?
1812  if test -s conftest.err; then
1813    grep -v '^ *+' conftest.err >conftest.er1
1814    cat conftest.er1 >&5
1815    mv -f conftest.er1 conftest.err
1816  fi
1817  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818  test $ac_status = 0; } && {
1819	 test -z "$ac_cxx_werror_flag" ||
1820	 test ! -s conftest.err
1821       } && test -s conftest.$ac_objext
1822then :
1823  ac_retval=0
1824else $as_nop
1825  printf "%s\n" "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828	ac_retval=1
1829fi
1830  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831  as_fn_set_status $ac_retval
1832
1833} # ac_fn_cxx_try_compile
1834
1835# ac_fn_c_try_cpp LINENO
1836# ----------------------
1837# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838ac_fn_c_try_cpp ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  if { { ac_try="$ac_cpp conftest.$ac_ext"
1842case "(($ac_try" in
1843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844  *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847printf "%s\n" "$ac_try_echo"; } >&5
1848  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1849  ac_status=$?
1850  if test -s conftest.err; then
1851    grep -v '^ *+' conftest.err >conftest.er1
1852    cat conftest.er1 >&5
1853    mv -f conftest.er1 conftest.err
1854  fi
1855  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856  test $ac_status = 0; } > conftest.i && {
1857	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1858	 test ! -s conftest.err
1859       }
1860then :
1861  ac_retval=0
1862else $as_nop
1863  printf "%s\n" "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866    ac_retval=1
1867fi
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869  as_fn_set_status $ac_retval
1870
1871} # ac_fn_c_try_cpp
1872
1873# ac_fn_c_try_link LINENO
1874# -----------------------
1875# Try to link conftest.$ac_ext, and return whether this succeeded.
1876ac_fn_c_try_link ()
1877{
1878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1880  if { { ac_try="$ac_link"
1881case "(($ac_try" in
1882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883  *) ac_try_echo=$ac_try;;
1884esac
1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886printf "%s\n" "$ac_try_echo"; } >&5
1887  (eval "$ac_link") 2>conftest.err
1888  ac_status=$?
1889  if test -s conftest.err; then
1890    grep -v '^ *+' conftest.err >conftest.er1
1891    cat conftest.er1 >&5
1892    mv -f conftest.er1 conftest.err
1893  fi
1894  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895  test $ac_status = 0; } && {
1896	 test -z "$ac_c_werror_flag" ||
1897	 test ! -s conftest.err
1898       } && test -s conftest$ac_exeext && {
1899	 test "$cross_compiling" = yes ||
1900	 test -x conftest$ac_exeext
1901       }
1902then :
1903  ac_retval=0
1904else $as_nop
1905  printf "%s\n" "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908	ac_retval=1
1909fi
1910  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912  # interfere with the next link command; also delete a directory that is
1913  # left behind by Apple's compiler.  We do this before executing the actions.
1914  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916  as_fn_set_status $ac_retval
1917
1918} # ac_fn_c_try_link
1919
1920# ac_fn_c_try_run LINENO
1921# ----------------------
1922# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1923# executables *can* be run.
1924ac_fn_c_try_run ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  if { { ac_try="$ac_link"
1928case "(($ac_try" in
1929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930  *) ac_try_echo=$ac_try;;
1931esac
1932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933printf "%s\n" "$ac_try_echo"; } >&5
1934  (eval "$ac_link") 2>&5
1935  ac_status=$?
1936  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1938  { { case "(($ac_try" in
1939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940  *) ac_try_echo=$ac_try;;
1941esac
1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943printf "%s\n" "$ac_try_echo"; } >&5
1944  (eval "$ac_try") 2>&5
1945  ac_status=$?
1946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947  test $ac_status = 0; }; }
1948then :
1949  ac_retval=0
1950else $as_nop
1951  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1952       printf "%s\n" "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955       ac_retval=$ac_status
1956fi
1957  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959  as_fn_set_status $ac_retval
1960
1961} # ac_fn_c_try_run
1962
1963# ac_fn_c_check_func LINENO FUNC VAR
1964# ----------------------------------
1965# Tests whether FUNC exists, setting the cache variable VAR accordingly
1966ac_fn_c_check_func ()
1967{
1968  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970printf %s "checking for $2... " >&6; }
1971if eval test \${$3+y}
1972then :
1973  printf %s "(cached) " >&6
1974else $as_nop
1975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h.  */
1977/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1978   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1979#define $2 innocuous_$2
1980
1981/* System header to define __stub macros and hopefully few prototypes,
1982   which can conflict with char $2 (); below.  */
1983
1984#include <limits.h>
1985#undef $2
1986
1987/* Override any GCC internal prototype to avoid an error.
1988   Use char because int might match the return type of a GCC
1989   builtin and then its argument prototype would still apply.  */
1990#ifdef __cplusplus
1991extern "C"
1992#endif
1993char $2 ();
1994/* The GNU C library defines this for functions which it implements
1995    to always fail with ENOSYS.  Some functions are actually named
1996    something starting with __ and the normal name is an alias.  */
1997#if defined __stub_$2 || defined __stub___$2
1998choke me
1999#endif
2000
2001int
2002main (void)
2003{
2004return $2 ();
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_link "$LINENO"
2010then :
2011  eval "$3=yes"
2012else $as_nop
2013  eval "$3=no"
2014fi
2015rm -f core conftest.err conftest.$ac_objext conftest.beam \
2016    conftest$ac_exeext conftest.$ac_ext
2017fi
2018eval ac_res=\$$3
2019	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020printf "%s\n" "$ac_res" >&6; }
2021  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023} # ac_fn_c_check_func
2024
2025# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2026# -------------------------------------------------------
2027# Tests whether HEADER exists and can be compiled using the include files in
2028# INCLUDES, setting the cache variable VAR accordingly.
2029ac_fn_c_check_header_compile ()
2030{
2031  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033printf %s "checking for $2... " >&6; }
2034if eval test \${$3+y}
2035then :
2036  printf %s "(cached) " >&6
2037else $as_nop
2038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040$4
2041#include <$2>
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"
2044then :
2045  eval "$3=yes"
2046else $as_nop
2047  eval "$3=no"
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2050fi
2051eval ac_res=\$$3
2052	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053printf "%s\n" "$ac_res" >&6; }
2054  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056} # ac_fn_c_check_header_compile
2057
2058# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059# -------------------------------------------
2060# Tests whether TYPE exists after having included INCLUDES, setting cache
2061# variable VAR accordingly.
2062ac_fn_c_check_type ()
2063{
2064  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066printf %s "checking for $2... " >&6; }
2067if eval test \${$3+y}
2068then :
2069  printf %s "(cached) " >&6
2070else $as_nop
2071  eval "$3=no"
2072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h.  */
2074$4
2075int
2076main (void)
2077{
2078if (sizeof ($2))
2079	 return 0;
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"
2085then :
2086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$4
2089int
2090main (void)
2091{
2092if (sizeof (($2)))
2093	    return 0;
2094  ;
2095  return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"
2099then :
2100
2101else $as_nop
2102  eval "$3=yes"
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2107fi
2108eval ac_res=\$$3
2109	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110printf "%s\n" "$ac_res" >&6; }
2111  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_type
2114
2115# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116# ----------------------------------------------------
2117# Tries to find if the field MEMBER exists in type AGGR, after including
2118# INCLUDES, setting cache variable VAR accordingly.
2119ac_fn_c_check_member ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123printf %s "checking for $2.$3... " >&6; }
2124if eval test \${$4+y}
2125then :
2126  printf %s "(cached) " >&6
2127else $as_nop
2128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130$5
2131int
2132main (void)
2133{
2134static $2 ac_aggr;
2135if (ac_aggr.$3)
2136return 0;
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"
2142then :
2143  eval "$4=yes"
2144else $as_nop
2145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h.  */
2147$5
2148int
2149main (void)
2150{
2151static $2 ac_aggr;
2152if (sizeof ac_aggr.$3)
2153return 0;
2154  ;
2155  return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"
2159then :
2160  eval "$4=yes"
2161else $as_nop
2162  eval "$4=no"
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2167fi
2168eval ac_res=\$$4
2169	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170printf "%s\n" "$ac_res" >&6; }
2171  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2173} # ac_fn_c_check_member
2174
2175# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2176# ------------------------------------------------------------------
2177# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2178# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2179ac_fn_check_decl ()
2180{
2181  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182  as_decl_name=`echo $2|sed 's/ *(.*//'`
2183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2184printf %s "checking whether $as_decl_name is declared... " >&6; }
2185if eval test \${$3+y}
2186then :
2187  printf %s "(cached) " >&6
2188else $as_nop
2189  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2190  eval ac_save_FLAGS=\$$6
2191  as_fn_append $6 " $5"
2192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h.  */
2194$4
2195int
2196main (void)
2197{
2198#ifndef $as_decl_name
2199#ifdef __cplusplus
2200  (void) $as_decl_use;
2201#else
2202  (void) $as_decl_name;
2203#endif
2204#endif
2205
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210if ac_fn_c_try_compile "$LINENO"
2211then :
2212  eval "$3=yes"
2213else $as_nop
2214  eval "$3=no"
2215fi
2216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2217  eval $6=\$ac_save_FLAGS
2218
2219fi
2220eval ac_res=\$$3
2221	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222printf "%s\n" "$ac_res" >&6; }
2223  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224
2225} # ac_fn_check_decl
2226
2227# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2228# --------------------------------------------
2229# Tries to find the compile-time value of EXPR in a program that includes
2230# INCLUDES, setting VAR accordingly. Returns whether the value could be
2231# computed
2232ac_fn_c_compute_int ()
2233{
2234  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235  if test "$cross_compiling" = yes; then
2236    # Depending upon the size, compute the lo and hi bounds.
2237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h.  */
2239$4
2240int
2241main (void)
2242{
2243static int test_array [1 - 2 * !(($2) >= 0)];
2244test_array [0] = 0;
2245return test_array [0];
2246
2247  ;
2248  return 0;
2249}
2250_ACEOF
2251if ac_fn_c_try_compile "$LINENO"
2252then :
2253  ac_lo=0 ac_mid=0
2254  while :; do
2255    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256/* end confdefs.h.  */
2257$4
2258int
2259main (void)
2260{
2261static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2262test_array [0] = 0;
2263return test_array [0];
2264
2265  ;
2266  return 0;
2267}
2268_ACEOF
2269if ac_fn_c_try_compile "$LINENO"
2270then :
2271  ac_hi=$ac_mid; break
2272else $as_nop
2273  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2274			if test $ac_lo -le $ac_mid; then
2275			  ac_lo= ac_hi=
2276			  break
2277			fi
2278			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2279fi
2280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2281  done
2282else $as_nop
2283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284/* end confdefs.h.  */
2285$4
2286int
2287main (void)
2288{
2289static int test_array [1 - 2 * !(($2) < 0)];
2290test_array [0] = 0;
2291return test_array [0];
2292
2293  ;
2294  return 0;
2295}
2296_ACEOF
2297if ac_fn_c_try_compile "$LINENO"
2298then :
2299  ac_hi=-1 ac_mid=-1
2300  while :; do
2301    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h.  */
2303$4
2304int
2305main (void)
2306{
2307static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2308test_array [0] = 0;
2309return test_array [0];
2310
2311  ;
2312  return 0;
2313}
2314_ACEOF
2315if ac_fn_c_try_compile "$LINENO"
2316then :
2317  ac_lo=$ac_mid; break
2318else $as_nop
2319  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2320			if test $ac_mid -le $ac_hi; then
2321			  ac_lo= ac_hi=
2322			  break
2323			fi
2324			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2325fi
2326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2327  done
2328else $as_nop
2329  ac_lo= ac_hi=
2330fi
2331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2332fi
2333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2334# Binary search between lo and hi bounds.
2335while test "x$ac_lo" != "x$ac_hi"; do
2336  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338/* end confdefs.h.  */
2339$4
2340int
2341main (void)
2342{
2343static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2344test_array [0] = 0;
2345return test_array [0];
2346
2347  ;
2348  return 0;
2349}
2350_ACEOF
2351if ac_fn_c_try_compile "$LINENO"
2352then :
2353  ac_hi=$ac_mid
2354else $as_nop
2355  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2358done
2359case $ac_lo in #((
2360?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2361'') ac_retval=1 ;;
2362esac
2363  else
2364    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365/* end confdefs.h.  */
2366$4
2367static long int longval (void) { return $2; }
2368static unsigned long int ulongval (void) { return $2; }
2369#include <stdio.h>
2370#include <stdlib.h>
2371int
2372main (void)
2373{
2374
2375  FILE *f = fopen ("conftest.val", "w");
2376  if (! f)
2377    return 1;
2378  if (($2) < 0)
2379    {
2380      long int i = longval ();
2381      if (i != ($2))
2382	return 1;
2383      fprintf (f, "%ld", i);
2384    }
2385  else
2386    {
2387      unsigned long int i = ulongval ();
2388      if (i != ($2))
2389	return 1;
2390      fprintf (f, "%lu", i);
2391    }
2392  /* Do not output a trailing newline, as this causes \r\n confusion
2393     on some platforms.  */
2394  return ferror (f) || fclose (f) != 0;
2395
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400if ac_fn_c_try_run "$LINENO"
2401then :
2402  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2403else $as_nop
2404  ac_retval=1
2405fi
2406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2407  conftest.$ac_objext conftest.beam conftest.$ac_ext
2408rm -f conftest.val
2409
2410  fi
2411  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412  as_fn_set_status $ac_retval
2413
2414} # ac_fn_c_compute_int
2415ac_configure_args_raw=
2416for ac_arg
2417do
2418  case $ac_arg in
2419  *\'*)
2420    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421  esac
2422  as_fn_append ac_configure_args_raw " '$ac_arg'"
2423done
2424
2425case $ac_configure_args_raw in
2426  *$as_nl*)
2427    ac_safe_unquote= ;;
2428  *)
2429    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2430    ac_unsafe_a="$ac_unsafe_z#~"
2431    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2432    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2433esac
2434
2435cat >config.log <<_ACEOF
2436This file contains any messages produced by compilers while
2437running configure, to aid debugging if configure makes a mistake.
2438
2439It was created by Kerberos 5 $as_me 1.21.3, which was
2440generated by GNU Autoconf 2.71.  Invocation command line was
2441
2442  $ $0$ac_configure_args_raw
2443
2444_ACEOF
2445exec 5>>config.log
2446{
2447cat <<_ASUNAME
2448## --------- ##
2449## Platform. ##
2450## --------- ##
2451
2452hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2453uname -m = `(uname -m) 2>/dev/null || echo unknown`
2454uname -r = `(uname -r) 2>/dev/null || echo unknown`
2455uname -s = `(uname -s) 2>/dev/null || echo unknown`
2456uname -v = `(uname -v) 2>/dev/null || echo unknown`
2457
2458/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2459/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2460
2461/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2462/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2463/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2464/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2465/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2466/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2467/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2468
2469_ASUNAME
2470
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474  IFS=$as_save_IFS
2475  case $as_dir in #(((
2476    '') as_dir=./ ;;
2477    */) ;;
2478    *) as_dir=$as_dir/ ;;
2479  esac
2480    printf "%s\n" "PATH: $as_dir"
2481  done
2482IFS=$as_save_IFS
2483
2484} >&5
2485
2486cat >&5 <<_ACEOF
2487
2488
2489## ----------- ##
2490## Core tests. ##
2491## ----------- ##
2492
2493_ACEOF
2494
2495
2496# Keep a trace of the command line.
2497# Strip out --no-create and --no-recursion so they do not pile up.
2498# Strip out --silent because we don't want to record it for future runs.
2499# Also quote any args containing shell meta-characters.
2500# Make two passes to allow for proper duplicate-argument suppression.
2501ac_configure_args=
2502ac_configure_args0=
2503ac_configure_args1=
2504ac_must_keep_next=false
2505for ac_pass in 1 2
2506do
2507  for ac_arg
2508  do
2509    case $ac_arg in
2510    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2511    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2512    | -silent | --silent | --silen | --sile | --sil)
2513      continue ;;
2514    *\'*)
2515      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2516    esac
2517    case $ac_pass in
2518    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2519    2)
2520      as_fn_append ac_configure_args1 " '$ac_arg'"
2521      if test $ac_must_keep_next = true; then
2522	ac_must_keep_next=false # Got value, back to normal.
2523      else
2524	case $ac_arg in
2525	  *=* | --config-cache | -C | -disable-* | --disable-* \
2526	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2527	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2528	  | -with-* | --with-* | -without-* | --without-* | --x)
2529	    case "$ac_configure_args0 " in
2530	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2531	    esac
2532	    ;;
2533	  -* ) ac_must_keep_next=true ;;
2534	esac
2535      fi
2536      as_fn_append ac_configure_args " '$ac_arg'"
2537      ;;
2538    esac
2539  done
2540done
2541{ ac_configure_args0=; unset ac_configure_args0;}
2542{ ac_configure_args1=; unset ac_configure_args1;}
2543
2544# When interrupted or exit'd, cleanup temporary files, and complete
2545# config.log.  We remove comments because anyway the quotes in there
2546# would cause problems or look ugly.
2547# WARNING: Use '\'' to represent an apostrophe within the trap.
2548# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2549trap 'exit_status=$?
2550  # Sanitize IFS.
2551  IFS=" ""	$as_nl"
2552  # Save into config.log some information that might help in debugging.
2553  {
2554    echo
2555
2556    printf "%s\n" "## ---------------- ##
2557## Cache variables. ##
2558## ---------------- ##"
2559    echo
2560    # The following way of writing the cache mishandles newlines in values,
2561(
2562  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2563    eval ac_val=\$$ac_var
2564    case $ac_val in #(
2565    *${as_nl}*)
2566      case $ac_var in #(
2567      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2568printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2569      esac
2570      case $ac_var in #(
2571      _ | IFS | as_nl) ;; #(
2572      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2573      *) { eval $ac_var=; unset $ac_var;} ;;
2574      esac ;;
2575    esac
2576  done
2577  (set) 2>&1 |
2578    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2579    *${as_nl}ac_space=\ *)
2580      sed -n \
2581	"s/'\''/'\''\\\\'\'''\''/g;
2582	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2583      ;; #(
2584    *)
2585      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2586      ;;
2587    esac |
2588    sort
2589)
2590    echo
2591
2592    printf "%s\n" "## ----------------- ##
2593## Output variables. ##
2594## ----------------- ##"
2595    echo
2596    for ac_var in $ac_subst_vars
2597    do
2598      eval ac_val=\$$ac_var
2599      case $ac_val in
2600      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2601      esac
2602      printf "%s\n" "$ac_var='\''$ac_val'\''"
2603    done | sort
2604    echo
2605
2606    if test -n "$ac_subst_files"; then
2607      printf "%s\n" "## ------------------- ##
2608## File substitutions. ##
2609## ------------------- ##"
2610      echo
2611      for ac_var in $ac_subst_files
2612      do
2613	eval ac_val=\$$ac_var
2614	case $ac_val in
2615	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2616	esac
2617	printf "%s\n" "$ac_var='\''$ac_val'\''"
2618      done | sort
2619      echo
2620    fi
2621
2622    if test -s confdefs.h; then
2623      printf "%s\n" "## ----------- ##
2624## confdefs.h. ##
2625## ----------- ##"
2626      echo
2627      cat confdefs.h
2628      echo
2629    fi
2630    test "$ac_signal" != 0 &&
2631      printf "%s\n" "$as_me: caught signal $ac_signal"
2632    printf "%s\n" "$as_me: exit $exit_status"
2633  } >&5
2634  rm -f core *.core core.conftest.* &&
2635    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2636    exit $exit_status
2637' 0
2638for ac_signal in 1 2 13 15; do
2639  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2640done
2641ac_signal=0
2642
2643# confdefs.h avoids OS command line length limits that DEFS can exceed.
2644rm -f -r conftest* confdefs.h
2645
2646printf "%s\n" "/* confdefs.h */" > confdefs.h
2647
2648# Predefined preprocessor variables.
2649
2650printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2651
2652printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2653
2654printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2655
2656printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2657
2658printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2659
2660printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2661
2662
2663# Let the site file select an alternate cache file if it wants to.
2664# Prefer an explicitly selected file to automatically selected ones.
2665if test -n "$CONFIG_SITE"; then
2666  ac_site_files="$CONFIG_SITE"
2667elif test "x$prefix" != xNONE; then
2668  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2669else
2670  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2671fi
2672
2673for ac_site_file in $ac_site_files
2674do
2675  case $ac_site_file in #(
2676  */*) :
2677     ;; #(
2678  *) :
2679    ac_site_file=./$ac_site_file ;;
2680esac
2681  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2682    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2683printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2684    sed 's/^/| /' "$ac_site_file" >&5
2685    . "$ac_site_file" \
2686      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2688as_fn_error $? "failed to load site script $ac_site_file
2689See \`config.log' for more details" "$LINENO" 5; }
2690  fi
2691done
2692
2693if test -r "$cache_file"; then
2694  # Some versions of bash will fail to source /dev/null (special files
2695  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2696  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2697    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2698printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2699    case $cache_file in
2700      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2701      *)                      . "./$cache_file";;
2702    esac
2703  fi
2704else
2705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2706printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2707  >$cache_file
2708fi
2709
2710# Test code for whether the C compiler supports C89 (global declarations)
2711ac_c_conftest_c89_globals='
2712/* Does the compiler advertise C89 conformance?
2713   Do not test the value of __STDC__, because some compilers set it to 0
2714   while being otherwise adequately conformant. */
2715#if !defined __STDC__
2716# error "Compiler does not advertise C89 conformance"
2717#endif
2718
2719#include <stddef.h>
2720#include <stdarg.h>
2721struct stat;
2722/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2723struct buf { int x; };
2724struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2725static char *e (p, i)
2726     char **p;
2727     int i;
2728{
2729  return p[i];
2730}
2731static char *f (char * (*g) (char **, int), char **p, ...)
2732{
2733  char *s;
2734  va_list v;
2735  va_start (v,p);
2736  s = g (p, va_arg (v,int));
2737  va_end (v);
2738  return s;
2739}
2740
2741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2742   function prototypes and stuff, but not \xHH hex character constants.
2743   These do not provoke an error unfortunately, instead are silently treated
2744   as an "x".  The following induces an error, until -std is added to get
2745   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2746   array size at least.  It is necessary to write \x00 == 0 to get something
2747   that is true only with -std.  */
2748int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2749
2750/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751   inside strings and character constants.  */
2752#define FOO(x) '\''x'\''
2753int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2754
2755int test (int i, double x);
2756struct s1 {int (*f) (int a);};
2757struct s2 {int (*f) (double a);};
2758int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2759               int, int);'
2760
2761# Test code for whether the C compiler supports C89 (body of main).
2762ac_c_conftest_c89_main='
2763ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2764'
2765
2766# Test code for whether the C compiler supports C99 (global declarations)
2767ac_c_conftest_c99_globals='
2768// Does the compiler advertise C99 conformance?
2769#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2770# error "Compiler does not advertise C99 conformance"
2771#endif
2772
2773#include <stdbool.h>
2774extern int puts (const char *);
2775extern int printf (const char *, ...);
2776extern int dprintf (int, const char *, ...);
2777extern void *malloc (size_t);
2778
2779// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2780// dprintf is used instead of fprintf to avoid needing to declare
2781// FILE and stderr.
2782#define debug(...) dprintf (2, __VA_ARGS__)
2783#define showlist(...) puts (#__VA_ARGS__)
2784#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2785static void
2786test_varargs_macros (void)
2787{
2788  int x = 1234;
2789  int y = 5678;
2790  debug ("Flag");
2791  debug ("X = %d\n", x);
2792  showlist (The first, second, and third items.);
2793  report (x>y, "x is %d but y is %d", x, y);
2794}
2795
2796// Check long long types.
2797#define BIG64 18446744073709551615ull
2798#define BIG32 4294967295ul
2799#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2800#if !BIG_OK
2801  #error "your preprocessor is broken"
2802#endif
2803#if BIG_OK
2804#else
2805  #error "your preprocessor is broken"
2806#endif
2807static long long int bignum = -9223372036854775807LL;
2808static unsigned long long int ubignum = BIG64;
2809
2810struct incomplete_array
2811{
2812  int datasize;
2813  double data[];
2814};
2815
2816struct named_init {
2817  int number;
2818  const wchar_t *name;
2819  double average;
2820};
2821
2822typedef const char *ccp;
2823
2824static inline int
2825test_restrict (ccp restrict text)
2826{
2827  // See if C++-style comments work.
2828  // Iterate through items via the restricted pointer.
2829  // Also check for declarations in for loops.
2830  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2831    continue;
2832  return 0;
2833}
2834
2835// Check varargs and va_copy.
2836static bool
2837test_varargs (const char *format, ...)
2838{
2839  va_list args;
2840  va_start (args, format);
2841  va_list args_copy;
2842  va_copy (args_copy, args);
2843
2844  const char *str = "";
2845  int number = 0;
2846  float fnumber = 0;
2847
2848  while (*format)
2849    {
2850      switch (*format++)
2851	{
2852	case '\''s'\'': // string
2853	  str = va_arg (args_copy, const char *);
2854	  break;
2855	case '\''d'\'': // int
2856	  number = va_arg (args_copy, int);
2857	  break;
2858	case '\''f'\'': // float
2859	  fnumber = va_arg (args_copy, double);
2860	  break;
2861	default:
2862	  break;
2863	}
2864    }
2865  va_end (args_copy);
2866  va_end (args);
2867
2868  return *str && number && fnumber;
2869}
2870'
2871
2872# Test code for whether the C compiler supports C99 (body of main).
2873ac_c_conftest_c99_main='
2874  // Check bool.
2875  _Bool success = false;
2876  success |= (argc != 0);
2877
2878  // Check restrict.
2879  if (test_restrict ("String literal") == 0)
2880    success = true;
2881  char *restrict newvar = "Another string";
2882
2883  // Check varargs.
2884  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2885  test_varargs_macros ();
2886
2887  // Check flexible array members.
2888  struct incomplete_array *ia =
2889    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2890  ia->datasize = 10;
2891  for (int i = 0; i < ia->datasize; ++i)
2892    ia->data[i] = i * 1.234;
2893
2894  // Check named initializers.
2895  struct named_init ni = {
2896    .number = 34,
2897    .name = L"Test wide string",
2898    .average = 543.34343,
2899  };
2900
2901  ni.number = 58;
2902
2903  int dynamic_array[ni.number];
2904  dynamic_array[0] = argv[0][0];
2905  dynamic_array[ni.number - 1] = 543;
2906
2907  // work around unused variable warnings
2908  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2909	 || dynamic_array[ni.number - 1] != 543);
2910'
2911
2912# Test code for whether the C compiler supports C11 (global declarations)
2913ac_c_conftest_c11_globals='
2914// Does the compiler advertise C11 conformance?
2915#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2916# error "Compiler does not advertise C11 conformance"
2917#endif
2918
2919// Check _Alignas.
2920char _Alignas (double) aligned_as_double;
2921char _Alignas (0) no_special_alignment;
2922extern char aligned_as_int;
2923char _Alignas (0) _Alignas (int) aligned_as_int;
2924
2925// Check _Alignof.
2926enum
2927{
2928  int_alignment = _Alignof (int),
2929  int_array_alignment = _Alignof (int[100]),
2930  char_alignment = _Alignof (char)
2931};
2932_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2933
2934// Check _Noreturn.
2935int _Noreturn does_not_return (void) { for (;;) continue; }
2936
2937// Check _Static_assert.
2938struct test_static_assert
2939{
2940  int x;
2941  _Static_assert (sizeof (int) <= sizeof (long int),
2942                  "_Static_assert does not work in struct");
2943  long int y;
2944};
2945
2946// Check UTF-8 literals.
2947#define u8 syntax error!
2948char const utf8_literal[] = u8"happens to be ASCII" "another string";
2949
2950// Check duplicate typedefs.
2951typedef long *long_ptr;
2952typedef long int *long_ptr;
2953typedef long_ptr long_ptr;
2954
2955// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2956struct anonymous
2957{
2958  union {
2959    struct { int i; int j; };
2960    struct { int k; long int l; } w;
2961  };
2962  int m;
2963} v1;
2964'
2965
2966# Test code for whether the C compiler supports C11 (body of main).
2967ac_c_conftest_c11_main='
2968  _Static_assert ((offsetof (struct anonymous, i)
2969		   == offsetof (struct anonymous, w.k)),
2970		  "Anonymous union alignment botch");
2971  v1.i = 2;
2972  v1.w.k = 5;
2973  ok |= v1.i != 5;
2974'
2975
2976# Test code for whether the C compiler supports C11 (complete).
2977ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2978${ac_c_conftest_c99_globals}
2979${ac_c_conftest_c11_globals}
2980
2981int
2982main (int argc, char **argv)
2983{
2984  int ok = 0;
2985  ${ac_c_conftest_c89_main}
2986  ${ac_c_conftest_c99_main}
2987  ${ac_c_conftest_c11_main}
2988  return ok;
2989}
2990"
2991
2992# Test code for whether the C compiler supports C99 (complete).
2993ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2994${ac_c_conftest_c99_globals}
2995
2996int
2997main (int argc, char **argv)
2998{
2999  int ok = 0;
3000  ${ac_c_conftest_c89_main}
3001  ${ac_c_conftest_c99_main}
3002  return ok;
3003}
3004"
3005
3006# Test code for whether the C compiler supports C89 (complete).
3007ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3008
3009int
3010main (int argc, char **argv)
3011{
3012  int ok = 0;
3013  ${ac_c_conftest_c89_main}
3014  return ok;
3015}
3016"
3017
3018# Test code for whether the C++ compiler supports C++98 (global declarations)
3019ac_cxx_conftest_cxx98_globals='
3020// Does the compiler advertise C++98 conformance?
3021#if !defined __cplusplus || __cplusplus < 199711L
3022# error "Compiler does not advertise C++98 conformance"
3023#endif
3024
3025// These inclusions are to reject old compilers that
3026// lack the unsuffixed header files.
3027#include <cstdlib>
3028#include <exception>
3029
3030// <cassert> and <cstring> are *not* freestanding headers in C++98.
3031extern void assert (int);
3032namespace std {
3033  extern int strcmp (const char *, const char *);
3034}
3035
3036// Namespaces, exceptions, and templates were all added after "C++ 2.0".
3037using std::exception;
3038using std::strcmp;
3039
3040namespace {
3041
3042void test_exception_syntax()
3043{
3044  try {
3045    throw "test";
3046  } catch (const char *s) {
3047    // Extra parentheses suppress a warning when building autoconf itself,
3048    // due to lint rules shared with more typical C programs.
3049    assert (!(strcmp) (s, "test"));
3050  }
3051}
3052
3053template <typename T> struct test_template
3054{
3055  T const val;
3056  explicit test_template(T t) : val(t) {}
3057  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3058};
3059
3060} // anonymous namespace
3061'
3062
3063# Test code for whether the C++ compiler supports C++98 (body of main)
3064ac_cxx_conftest_cxx98_main='
3065  assert (argc);
3066  assert (! argv[0]);
3067{
3068  test_exception_syntax ();
3069  test_template<double> tt (2.0);
3070  assert (tt.add (4) == 6.0);
3071  assert (true && !false);
3072}
3073'
3074
3075# Test code for whether the C++ compiler supports C++11 (global declarations)
3076ac_cxx_conftest_cxx11_globals='
3077// Does the compiler advertise C++ 2011 conformance?
3078#if !defined __cplusplus || __cplusplus < 201103L
3079# error "Compiler does not advertise C++11 conformance"
3080#endif
3081
3082namespace cxx11test
3083{
3084  constexpr int get_val() { return 20; }
3085
3086  struct testinit
3087  {
3088    int i;
3089    double d;
3090  };
3091
3092  class delegate
3093  {
3094  public:
3095    delegate(int n) : n(n) {}
3096    delegate(): delegate(2354) {}
3097
3098    virtual int getval() { return this->n; };
3099  protected:
3100    int n;
3101  };
3102
3103  class overridden : public delegate
3104  {
3105  public:
3106    overridden(int n): delegate(n) {}
3107    virtual int getval() override final { return this->n * 2; }
3108  };
3109
3110  class nocopy
3111  {
3112  public:
3113    nocopy(int i): i(i) {}
3114    nocopy() = default;
3115    nocopy(const nocopy&) = delete;
3116    nocopy & operator=(const nocopy&) = delete;
3117  private:
3118    int i;
3119  };
3120
3121  // for testing lambda expressions
3122  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3123  {
3124    return f(v);
3125  }
3126
3127  // for testing variadic templates and trailing return types
3128  template <typename V> auto sum(V first) -> V
3129  {
3130    return first;
3131  }
3132  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3133  {
3134    return first + sum(rest...);
3135  }
3136}
3137'
3138
3139# Test code for whether the C++ compiler supports C++11 (body of main)
3140ac_cxx_conftest_cxx11_main='
3141{
3142  // Test auto and decltype
3143  auto a1 = 6538;
3144  auto a2 = 48573953.4;
3145  auto a3 = "String literal";
3146
3147  int total = 0;
3148  for (auto i = a3; *i; ++i) { total += *i; }
3149
3150  decltype(a2) a4 = 34895.034;
3151}
3152{
3153  // Test constexpr
3154  short sa[cxx11test::get_val()] = { 0 };
3155}
3156{
3157  // Test initializer lists
3158  cxx11test::testinit il = { 4323, 435234.23544 };
3159}
3160{
3161  // Test range-based for
3162  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3163                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3164  for (auto &x : array) { x += 23; }
3165}
3166{
3167  // Test lambda expressions
3168  using cxx11test::eval;
3169  assert (eval ([](int x) { return x*2; }, 21) == 42);
3170  double d = 2.0;
3171  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3172  assert (d == 5.0);
3173  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3174  assert (d == 5.0);
3175}
3176{
3177  // Test use of variadic templates
3178  using cxx11test::sum;
3179  auto a = sum(1);
3180  auto b = sum(1, 2);
3181  auto c = sum(1.0, 2.0, 3.0);
3182}
3183{
3184  // Test constructor delegation
3185  cxx11test::delegate d1;
3186  cxx11test::delegate d2();
3187  cxx11test::delegate d3(45);
3188}
3189{
3190  // Test override and final
3191  cxx11test::overridden o1(55464);
3192}
3193{
3194  // Test nullptr
3195  char *c = nullptr;
3196}
3197{
3198  // Test template brackets
3199  test_template<::test_template<int>> v(test_template<int>(12));
3200}
3201{
3202  // Unicode literals
3203  char const *utf8 = u8"UTF-8 string \u2500";
3204  char16_t const *utf16 = u"UTF-8 string \u2500";
3205  char32_t const *utf32 = U"UTF-32 string \u2500";
3206}
3207'
3208
3209# Test code for whether the C compiler supports C++11 (complete).
3210ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3211${ac_cxx_conftest_cxx11_globals}
3212
3213int
3214main (int argc, char **argv)
3215{
3216  int ok = 0;
3217  ${ac_cxx_conftest_cxx98_main}
3218  ${ac_cxx_conftest_cxx11_main}
3219  return ok;
3220}
3221"
3222
3223# Test code for whether the C compiler supports C++98 (complete).
3224ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3225int
3226main (int argc, char **argv)
3227{
3228  int ok = 0;
3229  ${ac_cxx_conftest_cxx98_main}
3230  return ok;
3231}
3232"
3233
3234as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3235as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3236as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3237as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3238as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3239as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3240as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3241as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3242as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3243
3244# Auxiliary files required by this configure script.
3245ac_aux_files="install-sh config.guess config.sub"
3246
3247# Locations in which to look for auxiliary files.
3248ac_aux_dir_candidates="${srcdir}/./config"
3249
3250# Search for a directory containing all of the required auxiliary files,
3251# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3252# If we don't find one directory that contains all the files we need,
3253# we report the set of missing files from the *first* directory in
3254# $ac_aux_dir_candidates and give up.
3255ac_missing_aux_files=""
3256ac_first_candidate=:
3257printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259as_found=false
3260for as_dir in $ac_aux_dir_candidates
3261do
3262  IFS=$as_save_IFS
3263  case $as_dir in #(((
3264    '') as_dir=./ ;;
3265    */) ;;
3266    *) as_dir=$as_dir/ ;;
3267  esac
3268  as_found=:
3269
3270  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3271  ac_aux_dir_found=yes
3272  ac_install_sh=
3273  for ac_aux in $ac_aux_files
3274  do
3275    # As a special case, if "install-sh" is required, that requirement
3276    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3277    # and $ac_install_sh is set appropriately for whichever one is found.
3278    if test x"$ac_aux" = x"install-sh"
3279    then
3280      if test -f "${as_dir}install-sh"; then
3281        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3282        ac_install_sh="${as_dir}install-sh -c"
3283      elif 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}shtool"; then
3287        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3288        ac_install_sh="${as_dir}shtool install -c"
3289      else
3290        ac_aux_dir_found=no
3291        if $ac_first_candidate; then
3292          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3293        else
3294          break
3295        fi
3296      fi
3297    else
3298      if test -f "${as_dir}${ac_aux}"; then
3299        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3300      else
3301        ac_aux_dir_found=no
3302        if $ac_first_candidate; then
3303          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3304        else
3305          break
3306        fi
3307      fi
3308    fi
3309  done
3310  if test "$ac_aux_dir_found" = yes; then
3311    ac_aux_dir="$as_dir"
3312    break
3313  fi
3314  ac_first_candidate=false
3315
3316  as_found=false
3317done
3318IFS=$as_save_IFS
3319if $as_found
3320then :
3321
3322else $as_nop
3323  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3324fi
3325
3326
3327# These three variables are undocumented and unsupported,
3328# and are intended to be withdrawn in a future Autoconf release.
3329# They can cause serious problems if a builder's source tree is in a directory
3330# whose full name contains unusual characters.
3331if test -f "${ac_aux_dir}config.guess"; then
3332  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3333fi
3334if test -f "${ac_aux_dir}config.sub"; then
3335  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3336fi
3337if test -f "$ac_aux_dir/configure"; then
3338  ac_configure="$SHELL ${ac_aux_dir}configure"
3339fi
3340
3341# Check that the precious variables saved in the cache have kept the same
3342# value.
3343ac_cache_corrupted=false
3344for ac_var in $ac_precious_vars; do
3345  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3346  eval ac_new_set=\$ac_env_${ac_var}_set
3347  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3348  eval ac_new_val=\$ac_env_${ac_var}_value
3349  case $ac_old_set,$ac_new_set in
3350    set,)
3351      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3352printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3353      ac_cache_corrupted=: ;;
3354    ,set)
3355      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3356printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3357      ac_cache_corrupted=: ;;
3358    ,);;
3359    *)
3360      if test "x$ac_old_val" != "x$ac_new_val"; then
3361	# differences in whitespace do not lead to failure.
3362	ac_old_val_w=`echo x $ac_old_val`
3363	ac_new_val_w=`echo x $ac_new_val`
3364	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3365	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3366printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3367	  ac_cache_corrupted=:
3368	else
3369	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3370printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3371	  eval $ac_var=\$ac_old_val
3372	fi
3373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3374printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3376printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3377      fi;;
3378  esac
3379  # Pass precious variables to config.status.
3380  if test "$ac_new_set" = set; then
3381    case $ac_new_val in
3382    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3383    *) ac_arg=$ac_var=$ac_new_val ;;
3384    esac
3385    case " $ac_configure_args " in
3386      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3387      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3388    esac
3389  fi
3390done
3391if $ac_cache_corrupted; then
3392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3395printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3396  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3397	    and start over" "$LINENO" 5
3398fi
3399## -------------------- ##
3400## Main body of script. ##
3401## -------------------- ##
3402
3403ac_ext=c
3404ac_cpp='$CPP $CPPFLAGS'
3405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409
3410
3411build_dynobj=no
3412
3413# If $runstatedir isn't set by autoconf (<2.70), set it manually.
3414if test x"$runstatedir" = x; then
3415  runstatedir='${localstatedir}/run'
3416fi
3417
3418
3419# Don't make duplicate profile path entries for /etc/krb5.conf if
3420# $sysconfdir is /etc
3421if test "$sysconfdir" = /etc; then
3422  SYSCONFCONF=""
3423else
3424  SYSCONFCONF=":${sysconfdir}/krb5.conf"
3425fi
3426
3427
3428ac_reltopdir="."
3429if test ! -r "$srcdir/./aclocal.m4"; then
3430  as_fn_error $? "Configure could not determine the relative topdir" "$LINENO" 5
3431fi
3432ac_topdir=$srcdir/$ac_reltopdir
3433ac_config_fragdir=$ac_reltopdir/config
3434# echo "Looking for $srcdir/$ac_config_fragdir"
3435
3436
3437
3438
3439
3440krb5_ac_cflags_set=${CFLAGS+set}
3441krb5_ac_cxxflags_set=${CXXFLAGS+set}
3442krb5_ac_warn_cflags_set=${WARN_CFLAGS+set}
3443krb5_ac_warn_cxxflags_set=${WARN_CXXFLAGS+set}
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459if test -n "$ac_tool_prefix"; then
3460  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3461set dummy ${ac_tool_prefix}gcc; ac_word=$2
3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463printf %s "checking for $ac_word... " >&6; }
3464if test ${ac_cv_prog_CC+y}
3465then :
3466  printf %s "(cached) " >&6
3467else $as_nop
3468  if test -n "$CC"; then
3469  ac_cv_prog_CC="$CC" # Let the user override the test.
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474  IFS=$as_save_IFS
3475  case $as_dir in #(((
3476    '') as_dir=./ ;;
3477    */) ;;
3478    *) as_dir=$as_dir/ ;;
3479  esac
3480    for ac_exec_ext in '' $ac_executable_extensions; do
3481  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3482    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3483    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3484    break 2
3485  fi
3486done
3487  done
3488IFS=$as_save_IFS
3489
3490fi
3491fi
3492CC=$ac_cv_prog_CC
3493if test -n "$CC"; then
3494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495printf "%s\n" "$CC" >&6; }
3496else
3497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498printf "%s\n" "no" >&6; }
3499fi
3500
3501
3502fi
3503if test -z "$ac_cv_prog_CC"; then
3504  ac_ct_CC=$CC
3505  # Extract the first word of "gcc", so it can be a program name with args.
3506set dummy gcc; ac_word=$2
3507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508printf %s "checking for $ac_word... " >&6; }
3509if test ${ac_cv_prog_ac_ct_CC+y}
3510then :
3511  printf %s "(cached) " >&6
3512else $as_nop
3513  if test -n "$ac_ct_CC"; then
3514  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519  IFS=$as_save_IFS
3520  case $as_dir in #(((
3521    '') as_dir=./ ;;
3522    */) ;;
3523    *) as_dir=$as_dir/ ;;
3524  esac
3525    for ac_exec_ext in '' $ac_executable_extensions; do
3526  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3527    ac_cv_prog_ac_ct_CC="gcc"
3528    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3529    break 2
3530  fi
3531done
3532  done
3533IFS=$as_save_IFS
3534
3535fi
3536fi
3537ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538if test -n "$ac_ct_CC"; then
3539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3540printf "%s\n" "$ac_ct_CC" >&6; }
3541else
3542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543printf "%s\n" "no" >&6; }
3544fi
3545
3546  if test "x$ac_ct_CC" = x; then
3547    CC=""
3548  else
3549    case $cross_compiling:$ac_tool_warned in
3550yes:)
3551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553ac_tool_warned=yes ;;
3554esac
3555    CC=$ac_ct_CC
3556  fi
3557else
3558  CC="$ac_cv_prog_CC"
3559fi
3560
3561if test -z "$CC"; then
3562          if test -n "$ac_tool_prefix"; then
3563    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3564set dummy ${ac_tool_prefix}cc; ac_word=$2
3565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566printf %s "checking for $ac_word... " >&6; }
3567if test ${ac_cv_prog_CC+y}
3568then :
3569  printf %s "(cached) " >&6
3570else $as_nop
3571  if test -n "$CC"; then
3572  ac_cv_prog_CC="$CC" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577  IFS=$as_save_IFS
3578  case $as_dir in #(((
3579    '') as_dir=./ ;;
3580    */) ;;
3581    *) as_dir=$as_dir/ ;;
3582  esac
3583    for ac_exec_ext in '' $ac_executable_extensions; do
3584  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3585    ac_cv_prog_CC="${ac_tool_prefix}cc"
3586    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3587    break 2
3588  fi
3589done
3590  done
3591IFS=$as_save_IFS
3592
3593fi
3594fi
3595CC=$ac_cv_prog_CC
3596if test -n "$CC"; then
3597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598printf "%s\n" "$CC" >&6; }
3599else
3600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601printf "%s\n" "no" >&6; }
3602fi
3603
3604
3605  fi
3606fi
3607if test -z "$CC"; then
3608  # Extract the first word of "cc", so it can be a program name with args.
3609set dummy cc; ac_word=$2
3610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611printf %s "checking for $ac_word... " >&6; }
3612if test ${ac_cv_prog_CC+y}
3613then :
3614  printf %s "(cached) " >&6
3615else $as_nop
3616  if test -n "$CC"; then
3617  ac_cv_prog_CC="$CC" # Let the user override the test.
3618else
3619  ac_prog_rejected=no
3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
3623  IFS=$as_save_IFS
3624  case $as_dir in #(((
3625    '') as_dir=./ ;;
3626    */) ;;
3627    *) as_dir=$as_dir/ ;;
3628  esac
3629    for ac_exec_ext in '' $ac_executable_extensions; do
3630  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3631    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3632       ac_prog_rejected=yes
3633       continue
3634     fi
3635    ac_cv_prog_CC="cc"
3636    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3637    break 2
3638  fi
3639done
3640  done
3641IFS=$as_save_IFS
3642
3643if test $ac_prog_rejected = yes; then
3644  # We found a bogon in the path, so make sure we never use it.
3645  set dummy $ac_cv_prog_CC
3646  shift
3647  if test $# != 0; then
3648    # We chose a different compiler from the bogus one.
3649    # However, it has the same basename, so the bogon will be chosen
3650    # first if we set CC to just the basename; use the full file name.
3651    shift
3652    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3653  fi
3654fi
3655fi
3656fi
3657CC=$ac_cv_prog_CC
3658if test -n "$CC"; then
3659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660printf "%s\n" "$CC" >&6; }
3661else
3662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663printf "%s\n" "no" >&6; }
3664fi
3665
3666
3667fi
3668if test -z "$CC"; then
3669  if test -n "$ac_tool_prefix"; then
3670  for ac_prog in cl.exe
3671  do
3672    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675printf %s "checking for $ac_word... " >&6; }
3676if test ${ac_cv_prog_CC+y}
3677then :
3678  printf %s "(cached) " >&6
3679else $as_nop
3680  if test -n "$CC"; then
3681  ac_cv_prog_CC="$CC" # Let the user override the test.
3682else
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686  IFS=$as_save_IFS
3687  case $as_dir in #(((
3688    '') as_dir=./ ;;
3689    */) ;;
3690    *) as_dir=$as_dir/ ;;
3691  esac
3692    for ac_exec_ext in '' $ac_executable_extensions; do
3693  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3694    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3695    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3696    break 2
3697  fi
3698done
3699  done
3700IFS=$as_save_IFS
3701
3702fi
3703fi
3704CC=$ac_cv_prog_CC
3705if test -n "$CC"; then
3706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707printf "%s\n" "$CC" >&6; }
3708else
3709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710printf "%s\n" "no" >&6; }
3711fi
3712
3713
3714    test -n "$CC" && break
3715  done
3716fi
3717if test -z "$CC"; then
3718  ac_ct_CC=$CC
3719  for ac_prog in cl.exe
3720do
3721  # Extract the first word of "$ac_prog", so it can be a program name with args.
3722set dummy $ac_prog; ac_word=$2
3723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724printf %s "checking for $ac_word... " >&6; }
3725if test ${ac_cv_prog_ac_ct_CC+y}
3726then :
3727  printf %s "(cached) " >&6
3728else $as_nop
3729  if test -n "$ac_ct_CC"; then
3730  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735  IFS=$as_save_IFS
3736  case $as_dir in #(((
3737    '') as_dir=./ ;;
3738    */) ;;
3739    *) as_dir=$as_dir/ ;;
3740  esac
3741    for ac_exec_ext in '' $ac_executable_extensions; do
3742  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3743    ac_cv_prog_ac_ct_CC="$ac_prog"
3744    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3745    break 2
3746  fi
3747done
3748  done
3749IFS=$as_save_IFS
3750
3751fi
3752fi
3753ac_ct_CC=$ac_cv_prog_ac_ct_CC
3754if test -n "$ac_ct_CC"; then
3755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3756printf "%s\n" "$ac_ct_CC" >&6; }
3757else
3758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759printf "%s\n" "no" >&6; }
3760fi
3761
3762
3763  test -n "$ac_ct_CC" && break
3764done
3765
3766  if test "x$ac_ct_CC" = x; then
3767    CC=""
3768  else
3769    case $cross_compiling:$ac_tool_warned in
3770yes:)
3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773ac_tool_warned=yes ;;
3774esac
3775    CC=$ac_ct_CC
3776  fi
3777fi
3778
3779fi
3780if test -z "$CC"; then
3781  if test -n "$ac_tool_prefix"; then
3782  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3783set dummy ${ac_tool_prefix}clang; ac_word=$2
3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785printf %s "checking for $ac_word... " >&6; }
3786if test ${ac_cv_prog_CC+y}
3787then :
3788  printf %s "(cached) " >&6
3789else $as_nop
3790  if test -n "$CC"; then
3791  ac_cv_prog_CC="$CC" # Let the user override the test.
3792else
3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796  IFS=$as_save_IFS
3797  case $as_dir in #(((
3798    '') as_dir=./ ;;
3799    */) ;;
3800    *) as_dir=$as_dir/ ;;
3801  esac
3802    for ac_exec_ext in '' $ac_executable_extensions; do
3803  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3804    ac_cv_prog_CC="${ac_tool_prefix}clang"
3805    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3806    break 2
3807  fi
3808done
3809  done
3810IFS=$as_save_IFS
3811
3812fi
3813fi
3814CC=$ac_cv_prog_CC
3815if test -n "$CC"; then
3816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817printf "%s\n" "$CC" >&6; }
3818else
3819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820printf "%s\n" "no" >&6; }
3821fi
3822
3823
3824fi
3825if test -z "$ac_cv_prog_CC"; then
3826  ac_ct_CC=$CC
3827  # Extract the first word of "clang", so it can be a program name with args.
3828set dummy clang; ac_word=$2
3829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830printf %s "checking for $ac_word... " >&6; }
3831if test ${ac_cv_prog_ac_ct_CC+y}
3832then :
3833  printf %s "(cached) " >&6
3834else $as_nop
3835  if test -n "$ac_ct_CC"; then
3836  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3837else
3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH
3840do
3841  IFS=$as_save_IFS
3842  case $as_dir in #(((
3843    '') as_dir=./ ;;
3844    */) ;;
3845    *) as_dir=$as_dir/ ;;
3846  esac
3847    for ac_exec_ext in '' $ac_executable_extensions; do
3848  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3849    ac_cv_prog_ac_ct_CC="clang"
3850    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3851    break 2
3852  fi
3853done
3854  done
3855IFS=$as_save_IFS
3856
3857fi
3858fi
3859ac_ct_CC=$ac_cv_prog_ac_ct_CC
3860if test -n "$ac_ct_CC"; then
3861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3862printf "%s\n" "$ac_ct_CC" >&6; }
3863else
3864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865printf "%s\n" "no" >&6; }
3866fi
3867
3868  if test "x$ac_ct_CC" = x; then
3869    CC=""
3870  else
3871    case $cross_compiling:$ac_tool_warned in
3872yes:)
3873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875ac_tool_warned=yes ;;
3876esac
3877    CC=$ac_ct_CC
3878  fi
3879else
3880  CC="$ac_cv_prog_CC"
3881fi
3882
3883fi
3884
3885
3886test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3888as_fn_error $? "no acceptable C compiler found in \$PATH
3889See \`config.log' for more details" "$LINENO" 5; }
3890
3891# Provide some information about the compiler.
3892printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3893set X $ac_compile
3894ac_compiler=$2
3895for ac_option in --version -v -V -qversion -version; do
3896  { { ac_try="$ac_compiler $ac_option >&5"
3897case "(($ac_try" in
3898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899  *) ac_try_echo=$ac_try;;
3900esac
3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902printf "%s\n" "$ac_try_echo"; } >&5
3903  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3904  ac_status=$?
3905  if test -s conftest.err; then
3906    sed '10a\
3907... rest of stderr output deleted ...
3908         10q' conftest.err >conftest.er1
3909    cat conftest.er1 >&5
3910  fi
3911  rm -f conftest.er1 conftest.err
3912  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913  test $ac_status = 0; }
3914done
3915
3916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h.  */
3918
3919int
3920main (void)
3921{
3922
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927ac_clean_files_save=$ac_clean_files
3928ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3929# Try to create an executable without -o first, disregard a.out.
3930# It will help us diagnose broken compilers, and finding out an intuition
3931# of exeext.
3932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3933printf %s "checking whether the C compiler works... " >&6; }
3934ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3935
3936# The possible output files:
3937ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3938
3939ac_rmfiles=
3940for ac_file in $ac_files
3941do
3942  case $ac_file in
3943    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3944    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3945  esac
3946done
3947rm -f $ac_rmfiles
3948
3949if { { ac_try="$ac_link_default"
3950case "(($ac_try" in
3951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952  *) ac_try_echo=$ac_try;;
3953esac
3954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955printf "%s\n" "$ac_try_echo"; } >&5
3956  (eval "$ac_link_default") 2>&5
3957  ac_status=$?
3958  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959  test $ac_status = 0; }
3960then :
3961  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3962# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3963# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3964# so that the user can short-circuit this test for compilers unknown to
3965# Autoconf.
3966for ac_file in $ac_files ''
3967do
3968  test -f "$ac_file" || continue
3969  case $ac_file in
3970    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3971	;;
3972    [ab].out )
3973	# We found the default executable, but exeext='' is most
3974	# certainly right.
3975	break;;
3976    *.* )
3977	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3978	then :; else
3979	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980	fi
3981	# We set ac_cv_exeext here because the later test for it is not
3982	# safe: cross compilers may not add the suffix if given an `-o'
3983	# argument, so we may need to know it at that point already.
3984	# Even if this section looks crufty: it has the advantage of
3985	# actually working.
3986	break;;
3987    * )
3988	break;;
3989  esac
3990done
3991test "$ac_cv_exeext" = no && ac_cv_exeext=
3992
3993else $as_nop
3994  ac_file=''
3995fi
3996if test -z "$ac_file"
3997then :
3998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999printf "%s\n" "no" >&6; }
4000printf "%s\n" "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4005as_fn_error 77 "C compiler cannot create executables
4006See \`config.log' for more details" "$LINENO" 5; }
4007else $as_nop
4008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009printf "%s\n" "yes" >&6; }
4010fi
4011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4012printf %s "checking for C compiler default output file name... " >&6; }
4013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4014printf "%s\n" "$ac_file" >&6; }
4015ac_exeext=$ac_cv_exeext
4016
4017rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4018ac_clean_files=$ac_clean_files_save
4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4020printf %s "checking for suffix of executables... " >&6; }
4021if { { ac_try="$ac_link"
4022case "(($ac_try" in
4023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024  *) ac_try_echo=$ac_try;;
4025esac
4026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027printf "%s\n" "$ac_try_echo"; } >&5
4028  (eval "$ac_link") 2>&5
4029  ac_status=$?
4030  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031  test $ac_status = 0; }
4032then :
4033  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4034# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4035# work properly (i.e., refer to `conftest.exe'), while it won't with
4036# `rm'.
4037for ac_file in conftest.exe conftest conftest.*; do
4038  test -f "$ac_file" || continue
4039  case $ac_file in
4040    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4041    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042	  break;;
4043    * ) break;;
4044  esac
4045done
4046else $as_nop
4047  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4049as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4050See \`config.log' for more details" "$LINENO" 5; }
4051fi
4052rm -f conftest conftest$ac_cv_exeext
4053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4054printf "%s\n" "$ac_cv_exeext" >&6; }
4055
4056rm -f conftest.$ac_ext
4057EXEEXT=$ac_cv_exeext
4058ac_exeext=$EXEEXT
4059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061#include <stdio.h>
4062int
4063main (void)
4064{
4065FILE *f = fopen ("conftest.out", "w");
4066 return ferror (f) || fclose (f) != 0;
4067
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072ac_clean_files="$ac_clean_files conftest.out"
4073# Check that the compiler produces executables we can run.  If not, either
4074# the compiler is broken, or we cross compile.
4075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4076printf %s "checking whether we are cross compiling... " >&6; }
4077if test "$cross_compiling" != yes; then
4078  { { ac_try="$ac_link"
4079case "(($ac_try" in
4080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081  *) ac_try_echo=$ac_try;;
4082esac
4083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084printf "%s\n" "$ac_try_echo"; } >&5
4085  (eval "$ac_link") 2>&5
4086  ac_status=$?
4087  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088  test $ac_status = 0; }
4089  if { ac_try='./conftest$ac_cv_exeext'
4090  { { case "(($ac_try" in
4091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092  *) ac_try_echo=$ac_try;;
4093esac
4094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095printf "%s\n" "$ac_try_echo"; } >&5
4096  (eval "$ac_try") 2>&5
4097  ac_status=$?
4098  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099  test $ac_status = 0; }; }; then
4100    cross_compiling=no
4101  else
4102    if test "$cross_compiling" = maybe; then
4103	cross_compiling=yes
4104    else
4105	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4107as_fn_error 77 "cannot run C compiled programs.
4108If you meant to cross compile, use \`--host'.
4109See \`config.log' for more details" "$LINENO" 5; }
4110    fi
4111  fi
4112fi
4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4114printf "%s\n" "$cross_compiling" >&6; }
4115
4116rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4117ac_clean_files=$ac_clean_files_save
4118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4119printf %s "checking for suffix of object files... " >&6; }
4120if test ${ac_cv_objext+y}
4121then :
4122  printf %s "(cached) " >&6
4123else $as_nop
4124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126
4127int
4128main (void)
4129{
4130
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135rm -f conftest.o conftest.obj
4136if { { ac_try="$ac_compile"
4137case "(($ac_try" in
4138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139  *) ac_try_echo=$ac_try;;
4140esac
4141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142printf "%s\n" "$ac_try_echo"; } >&5
4143  (eval "$ac_compile") 2>&5
4144  ac_status=$?
4145  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146  test $ac_status = 0; }
4147then :
4148  for ac_file in conftest.o conftest.obj conftest.*; do
4149  test -f "$ac_file" || continue;
4150  case $ac_file in
4151    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4152    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4153       break;;
4154  esac
4155done
4156else $as_nop
4157  printf "%s\n" "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
4160{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4162as_fn_error $? "cannot compute suffix of object files: cannot compile
4163See \`config.log' for more details" "$LINENO" 5; }
4164fi
4165rm -f conftest.$ac_cv_objext conftest.$ac_ext
4166fi
4167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4168printf "%s\n" "$ac_cv_objext" >&6; }
4169OBJEXT=$ac_cv_objext
4170ac_objext=$OBJEXT
4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4172printf %s "checking whether the compiler supports GNU C... " >&6; }
4173if test ${ac_cv_c_compiler_gnu+y}
4174then :
4175  printf %s "(cached) " >&6
4176else $as_nop
4177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178/* end confdefs.h.  */
4179
4180int
4181main (void)
4182{
4183#ifndef __GNUC__
4184       choke me
4185#endif
4186
4187  ;
4188  return 0;
4189}
4190_ACEOF
4191if ac_fn_c_try_compile "$LINENO"
4192then :
4193  ac_compiler_gnu=yes
4194else $as_nop
4195  ac_compiler_gnu=no
4196fi
4197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4198ac_cv_c_compiler_gnu=$ac_compiler_gnu
4199
4200fi
4201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4202printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4203ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204
4205if test $ac_compiler_gnu = yes; then
4206  GCC=yes
4207else
4208  GCC=
4209fi
4210ac_test_CFLAGS=${CFLAGS+y}
4211ac_save_CFLAGS=$CFLAGS
4212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4213printf %s "checking whether $CC accepts -g... " >&6; }
4214if test ${ac_cv_prog_cc_g+y}
4215then :
4216  printf %s "(cached) " >&6
4217else $as_nop
4218  ac_save_c_werror_flag=$ac_c_werror_flag
4219   ac_c_werror_flag=yes
4220   ac_cv_prog_cc_g=no
4221   CFLAGS="-g"
4222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223/* end confdefs.h.  */
4224
4225int
4226main (void)
4227{
4228
4229  ;
4230  return 0;
4231}
4232_ACEOF
4233if ac_fn_c_try_compile "$LINENO"
4234then :
4235  ac_cv_prog_cc_g=yes
4236else $as_nop
4237  CFLAGS=""
4238      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h.  */
4240
4241int
4242main (void)
4243{
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249if ac_fn_c_try_compile "$LINENO"
4250then :
4251
4252else $as_nop
4253  ac_c_werror_flag=$ac_save_c_werror_flag
4254	 CFLAGS="-g"
4255	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256/* end confdefs.h.  */
4257
4258int
4259main (void)
4260{
4261
4262  ;
4263  return 0;
4264}
4265_ACEOF
4266if ac_fn_c_try_compile "$LINENO"
4267then :
4268  ac_cv_prog_cc_g=yes
4269fi
4270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4271fi
4272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4273fi
4274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4275   ac_c_werror_flag=$ac_save_c_werror_flag
4276fi
4277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4278printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4279if test $ac_test_CFLAGS; then
4280  CFLAGS=$ac_save_CFLAGS
4281elif test $ac_cv_prog_cc_g = yes; then
4282  if test "$GCC" = yes; then
4283    CFLAGS="-g -O2"
4284  else
4285    CFLAGS="-g"
4286  fi
4287else
4288  if test "$GCC" = yes; then
4289    CFLAGS="-O2"
4290  else
4291    CFLAGS=
4292  fi
4293fi
4294ac_prog_cc_stdc=no
4295if test x$ac_prog_cc_stdc = xno
4296then :
4297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4298printf %s "checking for $CC option to enable C11 features... " >&6; }
4299if test ${ac_cv_prog_cc_c11+y}
4300then :
4301  printf %s "(cached) " >&6
4302else $as_nop
4303  ac_cv_prog_cc_c11=no
4304ac_save_CC=$CC
4305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307$ac_c_conftest_c11_program
4308_ACEOF
4309for ac_arg in '' -std=gnu11
4310do
4311  CC="$ac_save_CC $ac_arg"
4312  if ac_fn_c_try_compile "$LINENO"
4313then :
4314  ac_cv_prog_cc_c11=$ac_arg
4315fi
4316rm -f core conftest.err conftest.$ac_objext conftest.beam
4317  test "x$ac_cv_prog_cc_c11" != "xno" && break
4318done
4319rm -f conftest.$ac_ext
4320CC=$ac_save_CC
4321fi
4322
4323if test "x$ac_cv_prog_cc_c11" = xno
4324then :
4325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4326printf "%s\n" "unsupported" >&6; }
4327else $as_nop
4328  if test "x$ac_cv_prog_cc_c11" = x
4329then :
4330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4331printf "%s\n" "none needed" >&6; }
4332else $as_nop
4333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4334printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4335     CC="$CC $ac_cv_prog_cc_c11"
4336fi
4337  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4338  ac_prog_cc_stdc=c11
4339fi
4340fi
4341if test x$ac_prog_cc_stdc = xno
4342then :
4343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4344printf %s "checking for $CC option to enable C99 features... " >&6; }
4345if test ${ac_cv_prog_cc_c99+y}
4346then :
4347  printf %s "(cached) " >&6
4348else $as_nop
4349  ac_cv_prog_cc_c99=no
4350ac_save_CC=$CC
4351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353$ac_c_conftest_c99_program
4354_ACEOF
4355for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4356do
4357  CC="$ac_save_CC $ac_arg"
4358  if ac_fn_c_try_compile "$LINENO"
4359then :
4360  ac_cv_prog_cc_c99=$ac_arg
4361fi
4362rm -f core conftest.err conftest.$ac_objext conftest.beam
4363  test "x$ac_cv_prog_cc_c99" != "xno" && break
4364done
4365rm -f conftest.$ac_ext
4366CC=$ac_save_CC
4367fi
4368
4369if test "x$ac_cv_prog_cc_c99" = xno
4370then :
4371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4372printf "%s\n" "unsupported" >&6; }
4373else $as_nop
4374  if test "x$ac_cv_prog_cc_c99" = x
4375then :
4376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4377printf "%s\n" "none needed" >&6; }
4378else $as_nop
4379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4380printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4381     CC="$CC $ac_cv_prog_cc_c99"
4382fi
4383  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4384  ac_prog_cc_stdc=c99
4385fi
4386fi
4387if test x$ac_prog_cc_stdc = xno
4388then :
4389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4390printf %s "checking for $CC option to enable C89 features... " >&6; }
4391if test ${ac_cv_prog_cc_c89+y}
4392then :
4393  printf %s "(cached) " >&6
4394else $as_nop
4395  ac_cv_prog_cc_c89=no
4396ac_save_CC=$CC
4397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399$ac_c_conftest_c89_program
4400_ACEOF
4401for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4402do
4403  CC="$ac_save_CC $ac_arg"
4404  if ac_fn_c_try_compile "$LINENO"
4405then :
4406  ac_cv_prog_cc_c89=$ac_arg
4407fi
4408rm -f core conftest.err conftest.$ac_objext conftest.beam
4409  test "x$ac_cv_prog_cc_c89" != "xno" && break
4410done
4411rm -f conftest.$ac_ext
4412CC=$ac_save_CC
4413fi
4414
4415if test "x$ac_cv_prog_cc_c89" = xno
4416then :
4417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4418printf "%s\n" "unsupported" >&6; }
4419else $as_nop
4420  if test "x$ac_cv_prog_cc_c89" = x
4421then :
4422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4423printf "%s\n" "none needed" >&6; }
4424else $as_nop
4425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4426printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4427     CC="$CC $ac_cv_prog_cc_c89"
4428fi
4429  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4430  ac_prog_cc_stdc=c89
4431fi
4432fi
4433
4434ac_ext=c
4435ac_cpp='$CPP $CPPFLAGS'
4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439
4440
4441
4442
4443
4444
4445
4446ac_ext=cpp
4447ac_cpp='$CXXCPP $CPPFLAGS'
4448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4451if test -z "$CXX"; then
4452  if test -n "$CCC"; then
4453    CXX=$CCC
4454  else
4455    if test -n "$ac_tool_prefix"; then
4456  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4457  do
4458    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4459set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461printf %s "checking for $ac_word... " >&6; }
4462if test ${ac_cv_prog_CXX+y}
4463then :
4464  printf %s "(cached) " >&6
4465else $as_nop
4466  if test -n "$CXX"; then
4467  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472  IFS=$as_save_IFS
4473  case $as_dir in #(((
4474    '') as_dir=./ ;;
4475    */) ;;
4476    *) as_dir=$as_dir/ ;;
4477  esac
4478    for ac_exec_ext in '' $ac_executable_extensions; do
4479  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4480    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4481    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4482    break 2
4483  fi
4484done
4485  done
4486IFS=$as_save_IFS
4487
4488fi
4489fi
4490CXX=$ac_cv_prog_CXX
4491if test -n "$CXX"; then
4492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4493printf "%s\n" "$CXX" >&6; }
4494else
4495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496printf "%s\n" "no" >&6; }
4497fi
4498
4499
4500    test -n "$CXX" && break
4501  done
4502fi
4503if test -z "$CXX"; then
4504  ac_ct_CXX=$CXX
4505  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4506do
4507  # Extract the first word of "$ac_prog", so it can be a program name with args.
4508set dummy $ac_prog; ac_word=$2
4509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510printf %s "checking for $ac_word... " >&6; }
4511if test ${ac_cv_prog_ac_ct_CXX+y}
4512then :
4513  printf %s "(cached) " >&6
4514else $as_nop
4515  if test -n "$ac_ct_CXX"; then
4516  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521  IFS=$as_save_IFS
4522  case $as_dir in #(((
4523    '') as_dir=./ ;;
4524    */) ;;
4525    *) as_dir=$as_dir/ ;;
4526  esac
4527    for ac_exec_ext in '' $ac_executable_extensions; do
4528  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4529    ac_cv_prog_ac_ct_CXX="$ac_prog"
4530    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534  done
4535IFS=$as_save_IFS
4536
4537fi
4538fi
4539ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4540if test -n "$ac_ct_CXX"; then
4541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4542printf "%s\n" "$ac_ct_CXX" >&6; }
4543else
4544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545printf "%s\n" "no" >&6; }
4546fi
4547
4548
4549  test -n "$ac_ct_CXX" && break
4550done
4551
4552  if test "x$ac_ct_CXX" = x; then
4553    CXX="g++"
4554  else
4555    case $cross_compiling:$ac_tool_warned in
4556yes:)
4557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4558printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4559ac_tool_warned=yes ;;
4560esac
4561    CXX=$ac_ct_CXX
4562  fi
4563fi
4564
4565  fi
4566fi
4567# Provide some information about the compiler.
4568printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4569set X $ac_compile
4570ac_compiler=$2
4571for ac_option in --version -v -V -qversion; do
4572  { { ac_try="$ac_compiler $ac_option >&5"
4573case "(($ac_try" in
4574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575  *) ac_try_echo=$ac_try;;
4576esac
4577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4578printf "%s\n" "$ac_try_echo"; } >&5
4579  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4580  ac_status=$?
4581  if test -s conftest.err; then
4582    sed '10a\
4583... rest of stderr output deleted ...
4584         10q' conftest.err >conftest.er1
4585    cat conftest.er1 >&5
4586  fi
4587  rm -f conftest.er1 conftest.err
4588  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589  test $ac_status = 0; }
4590done
4591
4592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4593printf %s "checking whether the compiler supports GNU C++... " >&6; }
4594if test ${ac_cv_cxx_compiler_gnu+y}
4595then :
4596  printf %s "(cached) " >&6
4597else $as_nop
4598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h.  */
4600
4601int
4602main (void)
4603{
4604#ifndef __GNUC__
4605       choke me
4606#endif
4607
4608  ;
4609  return 0;
4610}
4611_ACEOF
4612if ac_fn_cxx_try_compile "$LINENO"
4613then :
4614  ac_compiler_gnu=yes
4615else $as_nop
4616  ac_compiler_gnu=no
4617fi
4618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4619ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4620
4621fi
4622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4623printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4625
4626if test $ac_compiler_gnu = yes; then
4627  GXX=yes
4628else
4629  GXX=
4630fi
4631ac_test_CXXFLAGS=${CXXFLAGS+y}
4632ac_save_CXXFLAGS=$CXXFLAGS
4633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4634printf %s "checking whether $CXX accepts -g... " >&6; }
4635if test ${ac_cv_prog_cxx_g+y}
4636then :
4637  printf %s "(cached) " >&6
4638else $as_nop
4639  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4640   ac_cxx_werror_flag=yes
4641   ac_cv_prog_cxx_g=no
4642   CXXFLAGS="-g"
4643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h.  */
4645
4646int
4647main (void)
4648{
4649
4650  ;
4651  return 0;
4652}
4653_ACEOF
4654if ac_fn_cxx_try_compile "$LINENO"
4655then :
4656  ac_cv_prog_cxx_g=yes
4657else $as_nop
4658  CXXFLAGS=""
4659      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661
4662int
4663main (void)
4664{
4665
4666  ;
4667  return 0;
4668}
4669_ACEOF
4670if ac_fn_cxx_try_compile "$LINENO"
4671then :
4672
4673else $as_nop
4674  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4675	 CXXFLAGS="-g"
4676	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h.  */
4678
4679int
4680main (void)
4681{
4682
4683  ;
4684  return 0;
4685}
4686_ACEOF
4687if ac_fn_cxx_try_compile "$LINENO"
4688then :
4689  ac_cv_prog_cxx_g=yes
4690fi
4691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4692fi
4693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4694fi
4695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4696   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4697fi
4698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4699printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4700if test $ac_test_CXXFLAGS; then
4701  CXXFLAGS=$ac_save_CXXFLAGS
4702elif test $ac_cv_prog_cxx_g = yes; then
4703  if test "$GXX" = yes; then
4704    CXXFLAGS="-g -O2"
4705  else
4706    CXXFLAGS="-g"
4707  fi
4708else
4709  if test "$GXX" = yes; then
4710    CXXFLAGS="-O2"
4711  else
4712    CXXFLAGS=
4713  fi
4714fi
4715ac_prog_cxx_stdcxx=no
4716if test x$ac_prog_cxx_stdcxx = xno
4717then :
4718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4719printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4720if test ${ac_cv_prog_cxx_11+y}
4721then :
4722  printf %s "(cached) " >&6
4723else $as_nop
4724  ac_cv_prog_cxx_11=no
4725ac_save_CXX=$CXX
4726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h.  */
4728$ac_cxx_conftest_cxx11_program
4729_ACEOF
4730for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4731do
4732  CXX="$ac_save_CXX $ac_arg"
4733  if ac_fn_cxx_try_compile "$LINENO"
4734then :
4735  ac_cv_prog_cxx_cxx11=$ac_arg
4736fi
4737rm -f core conftest.err conftest.$ac_objext conftest.beam
4738  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4739done
4740rm -f conftest.$ac_ext
4741CXX=$ac_save_CXX
4742fi
4743
4744if test "x$ac_cv_prog_cxx_cxx11" = xno
4745then :
4746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4747printf "%s\n" "unsupported" >&6; }
4748else $as_nop
4749  if test "x$ac_cv_prog_cxx_cxx11" = x
4750then :
4751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4752printf "%s\n" "none needed" >&6; }
4753else $as_nop
4754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4755printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4756     CXX="$CXX $ac_cv_prog_cxx_cxx11"
4757fi
4758  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4759  ac_prog_cxx_stdcxx=cxx11
4760fi
4761fi
4762if test x$ac_prog_cxx_stdcxx = xno
4763then :
4764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4765printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4766if test ${ac_cv_prog_cxx_98+y}
4767then :
4768  printf %s "(cached) " >&6
4769else $as_nop
4770  ac_cv_prog_cxx_98=no
4771ac_save_CXX=$CXX
4772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h.  */
4774$ac_cxx_conftest_cxx98_program
4775_ACEOF
4776for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4777do
4778  CXX="$ac_save_CXX $ac_arg"
4779  if ac_fn_cxx_try_compile "$LINENO"
4780then :
4781  ac_cv_prog_cxx_cxx98=$ac_arg
4782fi
4783rm -f core conftest.err conftest.$ac_objext conftest.beam
4784  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4785done
4786rm -f conftest.$ac_ext
4787CXX=$ac_save_CXX
4788fi
4789
4790if test "x$ac_cv_prog_cxx_cxx98" = xno
4791then :
4792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4793printf "%s\n" "unsupported" >&6; }
4794else $as_nop
4795  if test "x$ac_cv_prog_cxx_cxx98" = x
4796then :
4797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4798printf "%s\n" "none needed" >&6; }
4799else $as_nop
4800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4801printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4802     CXX="$CXX $ac_cv_prog_cxx_cxx98"
4803fi
4804  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4805  ac_prog_cxx_stdcxx=cxx98
4806fi
4807fi
4808
4809ac_ext=c
4810ac_cpp='$CPP $CPPFLAGS'
4811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814
4815
4816  cflags_warning_test_flags=
4817    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`
4818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=unknown-warning-option" >&5
4819printf %s "checking if C compiler supports -Werror=unknown-warning-option... " >&6; }
4820if eval test \${$cachevar+y}
4821then :
4822  printf %s "(cached) " >&6
4823else $as_nop
4824  # first try without, then with
4825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h.  */
4827
4828int
4829main (void)
4830{
48311;
4832  ;
4833  return 0;
4834}
4835_ACEOF
4836if ac_fn_c_try_compile "$LINENO"
4837then :
4838  old_cflags="$CFLAGS"
4839     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=unknown-warning-option"
4840     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841/* end confdefs.h.  */
4842
4843int
4844main (void)
4845{
48461;
4847  ;
4848  return 0;
4849}
4850_ACEOF
4851if ac_fn_c_try_compile "$LINENO"
4852then :
4853  eval $cachevar=yes
4854else $as_nop
4855  eval $cachevar=no
4856fi
4857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4858     CFLAGS="$old_cflags"
4859else $as_nop
4860  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
4861fi
4862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4863fi
4864eval ac_res=\$$cachevar
4865	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4866printf "%s\n" "$ac_res" >&6; }
4867  if eval test '"${'$cachevar'}"' = yes; then
4868    WARN_CFLAGS="$WARN_CFLAGS -Werror=unknown-warning-option"
4869  fi
4870  eval flag_supported='${'$cachevar'}'
4871
4872  if test $flag_supported = yes; then
4873    cflags_warning_test_flags=-Werror=unknown-warning-option
4874  fi
4875
4876ac_ext=c
4877ac_cpp='$CPP $CPPFLAGS'
4878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4882printf %s "checking how to run the C preprocessor... " >&6; }
4883# On Suns, sometimes $CPP names a directory.
4884if test -n "$CPP" && test -d "$CPP"; then
4885  CPP=
4886fi
4887if test -z "$CPP"; then
4888  if test ${ac_cv_prog_CPP+y}
4889then :
4890  printf %s "(cached) " >&6
4891else $as_nop
4892      # Double quotes because $CC needs to be expanded
4893    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4894    do
4895      ac_preproc_ok=false
4896for ac_c_preproc_warn_flag in '' yes
4897do
4898  # Use a header file that comes with gcc, so configuring glibc
4899  # with a fresh cross-compiler works.
4900  # On the NeXT, cc -E runs the code through the compiler's parser,
4901  # not just through cpp. "Syntax error" is here to catch this case.
4902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903/* end confdefs.h.  */
4904#include <limits.h>
4905		     Syntax error
4906_ACEOF
4907if ac_fn_c_try_cpp "$LINENO"
4908then :
4909
4910else $as_nop
4911  # Broken: fails on valid input.
4912continue
4913fi
4914rm -f conftest.err conftest.i conftest.$ac_ext
4915
4916  # OK, works on sane cases.  Now check whether nonexistent headers
4917  # can be detected and how.
4918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919/* end confdefs.h.  */
4920#include <ac_nonexistent.h>
4921_ACEOF
4922if ac_fn_c_try_cpp "$LINENO"
4923then :
4924  # Broken: success on invalid input.
4925continue
4926else $as_nop
4927  # Passes both tests.
4928ac_preproc_ok=:
4929break
4930fi
4931rm -f conftest.err conftest.i conftest.$ac_ext
4932
4933done
4934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4935rm -f conftest.i conftest.err conftest.$ac_ext
4936if $ac_preproc_ok
4937then :
4938  break
4939fi
4940
4941    done
4942    ac_cv_prog_CPP=$CPP
4943
4944fi
4945  CPP=$ac_cv_prog_CPP
4946else
4947  ac_cv_prog_CPP=$CPP
4948fi
4949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4950printf "%s\n" "$CPP" >&6; }
4951ac_preproc_ok=false
4952for ac_c_preproc_warn_flag in '' yes
4953do
4954  # Use a header file that comes with gcc, so configuring glibc
4955  # with a fresh cross-compiler works.
4956  # On the NeXT, cc -E runs the code through the compiler's parser,
4957  # not just through cpp. "Syntax error" is here to catch this case.
4958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h.  */
4960#include <limits.h>
4961		     Syntax error
4962_ACEOF
4963if ac_fn_c_try_cpp "$LINENO"
4964then :
4965
4966else $as_nop
4967  # Broken: fails on valid input.
4968continue
4969fi
4970rm -f conftest.err conftest.i conftest.$ac_ext
4971
4972  # OK, works on sane cases.  Now check whether nonexistent headers
4973  # can be detected and how.
4974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976#include <ac_nonexistent.h>
4977_ACEOF
4978if ac_fn_c_try_cpp "$LINENO"
4979then :
4980  # Broken: success on invalid input.
4981continue
4982else $as_nop
4983  # Passes both tests.
4984ac_preproc_ok=:
4985break
4986fi
4987rm -f conftest.err conftest.i conftest.$ac_ext
4988
4989done
4990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4991rm -f conftest.i conftest.err conftest.$ac_ext
4992if $ac_preproc_ok
4993then :
4994
4995else $as_nop
4996  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4997printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4998as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4999See \`config.log' for more details" "$LINENO" 5; }
5000fi
5001
5002ac_ext=c
5003ac_cpp='$CPP $CPPFLAGS'
5004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5017	if test -n "$ac_tool_prefix"; then
5018  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5019set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021printf %s "checking for $ac_word... " >&6; }
5022if test ${ac_cv_path_PKG_CONFIG+y}
5023then :
5024  printf %s "(cached) " >&6
5025else $as_nop
5026  case $PKG_CONFIG in
5027  [\\/]* | ?:[\\/]*)
5028  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5029  ;;
5030  *)
5031  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034  IFS=$as_save_IFS
5035  case $as_dir in #(((
5036    '') as_dir=./ ;;
5037    */) ;;
5038    *) as_dir=$as_dir/ ;;
5039  esac
5040    for ac_exec_ext in '' $ac_executable_extensions; do
5041  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5042    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5043    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5044    break 2
5045  fi
5046done
5047  done
5048IFS=$as_save_IFS
5049
5050  ;;
5051esac
5052fi
5053PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5054if test -n "$PKG_CONFIG"; then
5055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5056printf "%s\n" "$PKG_CONFIG" >&6; }
5057else
5058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059printf "%s\n" "no" >&6; }
5060fi
5061
5062
5063fi
5064if test -z "$ac_cv_path_PKG_CONFIG"; then
5065  ac_pt_PKG_CONFIG=$PKG_CONFIG
5066  # Extract the first word of "pkg-config", so it can be a program name with args.
5067set dummy pkg-config; ac_word=$2
5068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069printf %s "checking for $ac_word... " >&6; }
5070if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5071then :
5072  printf %s "(cached) " >&6
5073else $as_nop
5074  case $ac_pt_PKG_CONFIG in
5075  [\\/]* | ?:[\\/]*)
5076  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5077  ;;
5078  *)
5079  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082  IFS=$as_save_IFS
5083  case $as_dir in #(((
5084    '') as_dir=./ ;;
5085    */) ;;
5086    *) as_dir=$as_dir/ ;;
5087  esac
5088    for ac_exec_ext in '' $ac_executable_extensions; do
5089  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5090    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5091    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5092    break 2
5093  fi
5094done
5095  done
5096IFS=$as_save_IFS
5097
5098  ;;
5099esac
5100fi
5101ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5102if test -n "$ac_pt_PKG_CONFIG"; then
5103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5104printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5105else
5106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107printf "%s\n" "no" >&6; }
5108fi
5109
5110  if test "x$ac_pt_PKG_CONFIG" = x; then
5111    PKG_CONFIG=""
5112  else
5113    case $cross_compiling:$ac_tool_warned in
5114yes:)
5115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5116printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117ac_tool_warned=yes ;;
5118esac
5119    PKG_CONFIG=$ac_pt_PKG_CONFIG
5120  fi
5121else
5122  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5123fi
5124
5125fi
5126if test -n "$PKG_CONFIG"; then
5127	_pkg_min_version=0.9.0
5128	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5129printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5130	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5132printf "%s\n" "yes" >&6; }
5133	else
5134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135printf "%s\n" "no" >&6; }
5136		PKG_CONFIG=""
5137	fi
5138fi
5139test "$program_prefix" != NONE &&
5140  program_transform_name="s&^&$program_prefix&;$program_transform_name"
5141# Use a double $ so make ignores it.
5142test "$program_suffix" != NONE &&
5143  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5144# Double any \ or $.
5145# By default was `s,x,x', remove it if useless.
5146ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5147program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
5148
5149
5150
5151
5152  # Make sure we can run config.sub.
5153$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5154  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5155
5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5157printf %s "checking build system type... " >&6; }
5158if test ${ac_cv_build+y}
5159then :
5160  printf %s "(cached) " >&6
5161else $as_nop
5162  ac_build_alias=$build_alias
5163test "x$ac_build_alias" = x &&
5164  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5165test "x$ac_build_alias" = x &&
5166  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5167ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5168  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5169
5170fi
5171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5172printf "%s\n" "$ac_cv_build" >&6; }
5173case $ac_cv_build in
5174*-*-*) ;;
5175*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5176esac
5177build=$ac_cv_build
5178ac_save_IFS=$IFS; IFS='-'
5179set x $ac_cv_build
5180shift
5181build_cpu=$1
5182build_vendor=$2
5183shift; shift
5184# Remember, the first character of IFS is used to create $*,
5185# except with old shells:
5186build_os=$*
5187IFS=$ac_save_IFS
5188case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5189
5190
5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5192printf %s "checking host system type... " >&6; }
5193if test ${ac_cv_host+y}
5194then :
5195  printf %s "(cached) " >&6
5196else $as_nop
5197  if test "x$host_alias" = x; then
5198  ac_cv_host=$ac_cv_build
5199else
5200  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5201    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5202fi
5203
5204fi
5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5206printf "%s\n" "$ac_cv_host" >&6; }
5207case $ac_cv_host in
5208*-*-*) ;;
5209*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5210esac
5211host=$ac_cv_host
5212ac_save_IFS=$IFS; IFS='-'
5213set x $ac_cv_host
5214shift
5215host_cpu=$1
5216host_vendor=$2
5217shift; shift
5218# Remember, the first character of IFS is used to create $*,
5219# except with old shells:
5220host_os=$*
5221IFS=$ac_save_IFS
5222case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5223
5224
5225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5226printf %s "checking for a sed that does not truncate output... " >&6; }
5227if test ${ac_cv_path_SED+y}
5228then :
5229  printf %s "(cached) " >&6
5230else $as_nop
5231            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5232     for ac_i in 1 2 3 4 5 6 7; do
5233       ac_script="$ac_script$as_nl$ac_script"
5234     done
5235     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5236     { ac_script=; unset ac_script;}
5237     if test -z "$SED"; then
5238  ac_path_SED_found=false
5239  # Loop through the user's path and test for each of PROGNAME-LIST
5240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243  IFS=$as_save_IFS
5244  case $as_dir in #(((
5245    '') as_dir=./ ;;
5246    */) ;;
5247    *) as_dir=$as_dir/ ;;
5248  esac
5249    for ac_prog in sed gsed
5250   do
5251    for ac_exec_ext in '' $ac_executable_extensions; do
5252      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5253      as_fn_executable_p "$ac_path_SED" || continue
5254# Check for GNU ac_path_SED and select it if it is found.
5255  # Check for GNU $ac_path_SED
5256case `"$ac_path_SED" --version 2>&1` in
5257*GNU*)
5258  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5259*)
5260  ac_count=0
5261  printf %s 0123456789 >"conftest.in"
5262  while :
5263  do
5264    cat "conftest.in" "conftest.in" >"conftest.tmp"
5265    mv "conftest.tmp" "conftest.in"
5266    cp "conftest.in" "conftest.nl"
5267    printf "%s\n" '' >> "conftest.nl"
5268    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5269    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5270    as_fn_arith $ac_count + 1 && ac_count=$as_val
5271    if test $ac_count -gt ${ac_path_SED_max-0}; then
5272      # Best one so far, save it but keep looking for a better one
5273      ac_cv_path_SED="$ac_path_SED"
5274      ac_path_SED_max=$ac_count
5275    fi
5276    # 10*(2^10) chars as input seems more than enough
5277    test $ac_count -gt 10 && break
5278  done
5279  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5280esac
5281
5282      $ac_path_SED_found && break 3
5283    done
5284  done
5285  done
5286IFS=$as_save_IFS
5287  if test -z "$ac_cv_path_SED"; then
5288    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5289  fi
5290else
5291  ac_cv_path_SED=$SED
5292fi
5293
5294fi
5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5296printf "%s\n" "$ac_cv_path_SED" >&6; }
5297 SED="$ac_cv_path_SED"
5298  rm -f conftest.sed
5299
5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5301printf %s "checking for grep that handles long lines and -e... " >&6; }
5302if test ${ac_cv_path_GREP+y}
5303then :
5304  printf %s "(cached) " >&6
5305else $as_nop
5306  if test -z "$GREP"; then
5307  ac_path_GREP_found=false
5308  # Loop through the user's path and test for each of PROGNAME-LIST
5309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5311do
5312  IFS=$as_save_IFS
5313  case $as_dir in #(((
5314    '') as_dir=./ ;;
5315    */) ;;
5316    *) as_dir=$as_dir/ ;;
5317  esac
5318    for ac_prog in grep ggrep
5319   do
5320    for ac_exec_ext in '' $ac_executable_extensions; do
5321      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5322      as_fn_executable_p "$ac_path_GREP" || continue
5323# Check for GNU ac_path_GREP and select it if it is found.
5324  # Check for GNU $ac_path_GREP
5325case `"$ac_path_GREP" --version 2>&1` in
5326*GNU*)
5327  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5328*)
5329  ac_count=0
5330  printf %s 0123456789 >"conftest.in"
5331  while :
5332  do
5333    cat "conftest.in" "conftest.in" >"conftest.tmp"
5334    mv "conftest.tmp" "conftest.in"
5335    cp "conftest.in" "conftest.nl"
5336    printf "%s\n" 'GREP' >> "conftest.nl"
5337    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5338    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5339    as_fn_arith $ac_count + 1 && ac_count=$as_val
5340    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5341      # Best one so far, save it but keep looking for a better one
5342      ac_cv_path_GREP="$ac_path_GREP"
5343      ac_path_GREP_max=$ac_count
5344    fi
5345    # 10*(2^10) chars as input seems more than enough
5346    test $ac_count -gt 10 && break
5347  done
5348  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5349esac
5350
5351      $ac_path_GREP_found && break 3
5352    done
5353  done
5354  done
5355IFS=$as_save_IFS
5356  if test -z "$ac_cv_path_GREP"; then
5357    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5358  fi
5359else
5360  ac_cv_path_GREP=$GREP
5361fi
5362
5363fi
5364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5365printf "%s\n" "$ac_cv_path_GREP" >&6; }
5366 GREP="$ac_cv_path_GREP"
5367
5368
5369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5370printf %s "checking for egrep... " >&6; }
5371if test ${ac_cv_path_EGREP+y}
5372then :
5373  printf %s "(cached) " >&6
5374else $as_nop
5375  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5376   then ac_cv_path_EGREP="$GREP -E"
5377   else
5378     if test -z "$EGREP"; then
5379  ac_path_EGREP_found=false
5380  # Loop through the user's path and test for each of PROGNAME-LIST
5381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5383do
5384  IFS=$as_save_IFS
5385  case $as_dir in #(((
5386    '') as_dir=./ ;;
5387    */) ;;
5388    *) as_dir=$as_dir/ ;;
5389  esac
5390    for ac_prog in egrep
5391   do
5392    for ac_exec_ext in '' $ac_executable_extensions; do
5393      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5394      as_fn_executable_p "$ac_path_EGREP" || continue
5395# Check for GNU ac_path_EGREP and select it if it is found.
5396  # Check for GNU $ac_path_EGREP
5397case `"$ac_path_EGREP" --version 2>&1` in
5398*GNU*)
5399  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5400*)
5401  ac_count=0
5402  printf %s 0123456789 >"conftest.in"
5403  while :
5404  do
5405    cat "conftest.in" "conftest.in" >"conftest.tmp"
5406    mv "conftest.tmp" "conftest.in"
5407    cp "conftest.in" "conftest.nl"
5408    printf "%s\n" 'EGREP' >> "conftest.nl"
5409    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5410    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5411    as_fn_arith $ac_count + 1 && ac_count=$as_val
5412    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5413      # Best one so far, save it but keep looking for a better one
5414      ac_cv_path_EGREP="$ac_path_EGREP"
5415      ac_path_EGREP_max=$ac_count
5416    fi
5417    # 10*(2^10) chars as input seems more than enough
5418    test $ac_count -gt 10 && break
5419  done
5420  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5421esac
5422
5423      $ac_path_EGREP_found && break 3
5424    done
5425  done
5426  done
5427IFS=$as_save_IFS
5428  if test -z "$ac_cv_path_EGREP"; then
5429    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5430  fi
5431else
5432  ac_cv_path_EGREP=$EGREP
5433fi
5434
5435   fi
5436fi
5437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5438printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5439 EGREP="$ac_cv_path_EGREP"
5440
5441
5442 EXTRA_FILES=""
5443
5444
5445printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5446
5447
5448printf "%s\n" "#define __STDC_WANT_LIB_EXT1__ 1" >>confdefs.h
5449
5450
5451if test $ac_cv_c_compiler_gnu = yes ; then
5452     HAVE_GCC=yes
5453     else HAVE_GCC=
5454fi
5455
5456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU linker" >&5
5457printf %s "checking for GNU linker... " >&6; }
5458if test ${krb5_cv_prog_gnu_ld+y}
5459then :
5460  printf %s "(cached) " >&6
5461else $as_nop
5462  krb5_cv_prog_gnu_ld=no
5463if test "$GCC" = yes; then
5464  if { ac_try='$CC -Wl,-v 2>&1 			| grep "GNU ld" > /dev/null'
5465  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5466  (eval $ac_try) 2>&5
5467  ac_status=$?
5468  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5469  test $ac_status = 0; }; }; then
5470    krb5_cv_prog_gnu_ld=yes
5471  fi
5472fi
5473fi
5474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_prog_gnu_ld" >&5
5475printf "%s\n" "$krb5_cv_prog_gnu_ld" >&6; }
5476
5477# Check whether --with-size-optimizations was given.
5478if test ${with_size_optimizations+y}
5479then :
5480  withval=$with_size_optimizations;
5481else $as_nop
5482  withval=no
5483fi
5484
5485if test "$withval" = yes; then
5486
5487printf "%s\n" "#define CONFIG_SMALL 1" >>confdefs.h
5488
5489fi
5490# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
5491extra_gcc_warn_opts="-Wall -Wcast-align -Wshadow"
5492# -Wmissing-prototypes
5493if test "$GCC" = yes ; then
5494  # Putting this here means we get -Os after -O2, which works.
5495  if test "$with_size_optimizations" = yes && test "x$krb5_ac_cflags_set" != xset; then
5496    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding -Os optimization option" >&5
5497printf "%s\n" "$as_me: adding -Os optimization option" >&6;}
5498    case "$CFLAGS" in
5499      "-g -O2") CFLAGS="-g -Os" ;;
5500      "-O2")    CFLAGS="-Os" ;;
5501      *)        CFLAGS="$CFLAGS -Os" ;;
5502    esac
5503  fi
5504  if test "x$krb5_ac_warn_cflags_set" = xset ; then
5505    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not adding extra gcc warning flags because WARN_CFLAGS was set" >&5
5506printf "%s\n" "$as_me: not adding extra gcc warning flags because WARN_CFLAGS was set" >&6;}
5507  else
5508    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding extra warning flags for gcc" >&5
5509printf "%s\n" "$as_me: adding extra warning flags for gcc" >&6;}
5510    WARN_CFLAGS="$WARN_CFLAGS $extra_gcc_warn_opts -Wmissing-prototypes"
5511    if test "`uname -s`" = Darwin ; then
5512      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Darwin" >&5
5513printf "%s\n" "$as_me: skipping pedantic warnings on Darwin" >&6;}
5514    elif test "`uname -s`" = Linux ; then
5515      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Linux" >&5
5516printf "%s\n" "$as_me: skipping pedantic warnings on Linux" >&6;}
5517    else
5518      WARN_CFLAGS="$WARN_CFLAGS -pedantic"
5519    fi
5520    if test "$ac_cv_cxx_compiler_gnu" = yes; then
5521      if test "x$krb5_ac_warn_cxxflags_set" = xset ; then
5522        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&5
5523printf "%s\n" "$as_me: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&6;}
5524      else
5525        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding extra warning flags for g++" >&5
5526printf "%s\n" "$as_me: adding extra warning flags for g++" >&6;}
5527        WARN_CXXFLAGS="$WARN_CXXFLAGS $extra_gcc_warn_opts"
5528      fi
5529    fi
5530    # Currently, G++ does not support -Wno-format-zero-length.
5531      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`
5532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Wno-format-zero-length" >&5
5533printf %s "checking if C compiler supports -Wno-format-zero-length... " >&6; }
5534if eval test \${$cachevar+y}
5535then :
5536  printf %s "(cached) " >&6
5537else $as_nop
5538  # first try without, then with
5539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h.  */
5541
5542int
5543main (void)
5544{
55451;
5546  ;
5547  return 0;
5548}
5549_ACEOF
5550if ac_fn_c_try_compile "$LINENO"
5551then :
5552  old_cflags="$CFLAGS"
5553     CFLAGS="$CFLAGS $cflags_warning_test_flags -Wno-format-zero-length"
5554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h.  */
5556
5557int
5558main (void)
5559{
55601;
5561  ;
5562  return 0;
5563}
5564_ACEOF
5565if ac_fn_c_try_compile "$LINENO"
5566then :
5567  eval $cachevar=yes
5568else $as_nop
5569  eval $cachevar=no
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5572     CFLAGS="$old_cflags"
5573else $as_nop
5574  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5575fi
5576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5577fi
5578eval ac_res=\$$cachevar
5579	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5580printf "%s\n" "$ac_res" >&6; }
5581  if eval test '"${'$cachevar'}"' = yes; then
5582    WARN_CFLAGS="$WARN_CFLAGS -Wno-format-zero-length"
5583  fi
5584  eval flag_supported='${'$cachevar'}'
5585
5586    # Other flags here may not be supported on some versions of
5587    # gcc that people want to use.
5588    for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof error=uninitialized no-maybe-uninitialized error=pointer-arith error=int-conversion error=incompatible-pointer-types error=discarded-qualifiers error=implicit-int ; do
5589        cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
5590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5
5591printf %s "checking if C compiler supports -W$flag... " >&6; }
5592if eval test \${$cachevar+y}
5593then :
5594  printf %s "(cached) " >&6
5595else $as_nop
5596  # first try without, then with
5597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599
5600int
5601main (void)
5602{
56031;
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"
5609then :
5610  old_cflags="$CFLAGS"
5611     CFLAGS="$CFLAGS $cflags_warning_test_flags -W$flag"
5612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h.  */
5614
5615int
5616main (void)
5617{
56181;
5619  ;
5620  return 0;
5621}
5622_ACEOF
5623if ac_fn_c_try_compile "$LINENO"
5624then :
5625  eval $cachevar=yes
5626else $as_nop
5627  eval $cachevar=no
5628fi
5629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5630     CFLAGS="$old_cflags"
5631else $as_nop
5632  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5633fi
5634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5635fi
5636eval ac_res=\$$cachevar
5637	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5638printf "%s\n" "$ac_res" >&6; }
5639  if eval test '"${'$cachevar'}"' = yes; then
5640    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
5641  fi
5642  eval flag_supported='${'$cachevar'}'
5643
5644    done
5645    #  old-style-definition? generates many, many warnings
5646    #
5647    # Warnings that we'd like to turn into errors on versions of gcc
5648    # that support promoting only specific warnings to errors, but
5649    # we'll take as warnings on older compilers.  (If such a warning
5650    # is added after the -Werror=foo feature, you can just put
5651    # error=foo in the above list, and skip the test for the
5652    # warning-only form.)  At least in some versions, -Werror= doesn't
5653    # seem to make the conditions actual errors, but still issues
5654    # warnings; I guess we'll take what we can get.
5655    #
5656    # We're currently targeting C89+, not C99, so disallow some
5657    # constructs.
5658    for flag in declaration-after-statement ; do
5659        cachevar=`echo "krb5_cv_cc_flag_-Werror=$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
5660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=$flag" >&5
5661printf %s "checking if C compiler supports -Werror=$flag... " >&6; }
5662if eval test \${$cachevar+y}
5663then :
5664  printf %s "(cached) " >&6
5665else $as_nop
5666  # first try without, then with
5667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668/* end confdefs.h.  */
5669
5670int
5671main (void)
5672{
56731;
5674  ;
5675  return 0;
5676}
5677_ACEOF
5678if ac_fn_c_try_compile "$LINENO"
5679then :
5680  old_cflags="$CFLAGS"
5681     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=$flag"
5682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h.  */
5684
5685int
5686main (void)
5687{
56881;
5689  ;
5690  return 0;
5691}
5692_ACEOF
5693if ac_fn_c_try_compile "$LINENO"
5694then :
5695  eval $cachevar=yes
5696else $as_nop
5697  eval $cachevar=no
5698fi
5699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5700     CFLAGS="$old_cflags"
5701else $as_nop
5702  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5703fi
5704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5705fi
5706eval ac_res=\$$cachevar
5707	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5708printf "%s\n" "$ac_res" >&6; }
5709  if eval test '"${'$cachevar'}"' = yes; then
5710    WARN_CFLAGS="$WARN_CFLAGS -Werror=$flag"
5711  fi
5712  eval flag_supported='${'$cachevar'}'
5713
5714      if test "$flag_supported" = no; then
5715          cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
5716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5
5717printf %s "checking if C compiler supports -W$flag... " >&6; }
5718if eval test \${$cachevar+y}
5719then :
5720  printf %s "(cached) " >&6
5721else $as_nop
5722  # first try without, then with
5723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725
5726int
5727main (void)
5728{
57291;
5730  ;
5731  return 0;
5732}
5733_ACEOF
5734if ac_fn_c_try_compile "$LINENO"
5735then :
5736  old_cflags="$CFLAGS"
5737     CFLAGS="$CFLAGS $cflags_warning_test_flags -W$flag"
5738     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740
5741int
5742main (void)
5743{
57441;
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"
5750then :
5751  eval $cachevar=yes
5752else $as_nop
5753  eval $cachevar=no
5754fi
5755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5756     CFLAGS="$old_cflags"
5757else $as_nop
5758  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5759fi
5760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5761fi
5762eval ac_res=\$$cachevar
5763	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5764printf "%s\n" "$ac_res" >&6; }
5765  if eval test '"${'$cachevar'}"' = yes; then
5766    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
5767  fi
5768  eval flag_supported='${'$cachevar'}'
5769
5770      fi
5771    done
5772    # We require function declarations now.
5773    #
5774    # In some compiler versions -- e.g., "gcc version 4.2.1 (Apple
5775    # Inc. build 5664)" -- the -Werror- option works, but the -Werror=
5776    # version doesn't cause implicitly declared functions to be
5777    # flagged as errors.  If neither works, -Wall implies
5778    # -Wimplicit-function-declaration so don't bother.
5779      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`
5780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror-implicit-function-declaration" >&5
5781printf %s "checking if C compiler supports -Werror-implicit-function-declaration... " >&6; }
5782if eval test \${$cachevar+y}
5783then :
5784  printf %s "(cached) " >&6
5785else $as_nop
5786  # first try without, then with
5787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789
5790int
5791main (void)
5792{
57931;
5794  ;
5795  return 0;
5796}
5797_ACEOF
5798if ac_fn_c_try_compile "$LINENO"
5799then :
5800  old_cflags="$CFLAGS"
5801     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror-implicit-function-declaration"
5802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h.  */
5804
5805int
5806main (void)
5807{
58081;
5809  ;
5810  return 0;
5811}
5812_ACEOF
5813if ac_fn_c_try_compile "$LINENO"
5814then :
5815  eval $cachevar=yes
5816else $as_nop
5817  eval $cachevar=no
5818fi
5819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5820     CFLAGS="$old_cflags"
5821else $as_nop
5822  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5823fi
5824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5825fi
5826eval ac_res=\$$cachevar
5827	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5828printf "%s\n" "$ac_res" >&6; }
5829  if eval test '"${'$cachevar'}"' = yes; then
5830    WARN_CFLAGS="$WARN_CFLAGS -Werror-implicit-function-declaration"
5831  fi
5832  eval flag_supported='${'$cachevar'}'
5833
5834    if test "implicit-function-declaration_supported" = no; then
5835        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`
5836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=implicit-function-declaration" >&5
5837printf %s "checking if C compiler supports -Werror=implicit-function-declaration... " >&6; }
5838if eval test \${$cachevar+y}
5839then :
5840  printf %s "(cached) " >&6
5841else $as_nop
5842  # first try without, then with
5843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h.  */
5845
5846int
5847main (void)
5848{
58491;
5850  ;
5851  return 0;
5852}
5853_ACEOF
5854if ac_fn_c_try_compile "$LINENO"
5855then :
5856  old_cflags="$CFLAGS"
5857     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=implicit-function-declaration"
5858     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h.  */
5860
5861int
5862main (void)
5863{
58641;
5865  ;
5866  return 0;
5867}
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"
5870then :
5871  eval $cachevar=yes
5872else $as_nop
5873  eval $cachevar=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5876     CFLAGS="$old_cflags"
5877else $as_nop
5878  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
5879fi
5880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5881fi
5882eval ac_res=\$$cachevar
5883	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5884printf "%s\n" "$ac_res" >&6; }
5885  if eval test '"${'$cachevar'}"' = yes; then
5886    WARN_CFLAGS="$WARN_CFLAGS -Werror=implicit-function-declaration"
5887  fi
5888  eval flag_supported='${'$cachevar'}'
5889
5890    fi
5891    #
5892  fi
5893  if test "`uname -s`" = Darwin ; then
5894    # Someday this should be a feature test.
5895    # One current (Jaguar = OS 10.2) problem:
5896    # Archive library with foo.o undef sym X and bar.o common sym X,
5897    # if foo.o is pulled in at link time, bar.o may not be, causing
5898    # the linker to complain.
5899    # Dynamic library problems too?
5900    case "$CC $CFLAGS" in
5901    *-fcommon*) ;; # why someone would do this, I don't know
5902    *-fno-common*) ;; # okay, they're already doing the right thing
5903    *)
5904      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disabling the use of common storage on Darwin" >&5
5905printf "%s\n" "$as_me: disabling the use of common storage on Darwin" >&6;}
5906      CFLAGS="$CFLAGS -fno-common"
5907      ;;
5908    esac
5909  fi
5910else
5911  if test "`uname -s`" = AIX ; then
5912    # Using AIX but not GCC, assume native compiler.
5913    # The native compiler appears not to give a nonzero exit
5914    # status for certain classes of errors, like missing arguments
5915    # in function calls.  Let's try to fix that with -qhalt=e.
5916    case "$CC $CFLAGS" in
5917      *-qhalt=*) ;;
5918      *)
5919	CFLAGS="$CFLAGS -qhalt=e"
5920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding -qhalt=e for better error reporting" >&5
5921printf "%s\n" "$as_me: adding -qhalt=e for better error reporting" >&6;}
5922	;;
5923    esac
5924    # Also, the optimizer isn't turned on by default, which means
5925    # the static inline functions get left in random object files,
5926    # leading to references to pthread_mutex_lock from anything that
5927    # includes k5-int.h whether it uses threads or not.
5928    case "$CC $CFLAGS" in
5929      *-O*) ;;
5930      *)
5931	CFLAGS="$CFLAGS -O"
5932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: adding -O for inline thread-support function elimination" >&5
5933printf "%s\n" "$as_me: adding -O for inline thread-support function elimination" >&6;}
5934	;;
5935    esac
5936  fi
5937  if test "`uname -s`" = SunOS ; then
5938    # Using Solaris but not GCC, assume Sunsoft compiler.
5939    # We have some error-out-on-warning options available.
5940    # Sunsoft 12 compiler defaults to -xc99=all, it appears, so "inline"
5941    # works, but it also means that declaration-in-code warnings won't
5942    # be issued.
5943    # -v -fd -errwarn=E_DECLARATION_IN_CODE ...
5944    if test "x$krb5_ac_warn_cflags_set" = xset ; then
5945      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not adding extra warning flags because WARN_CFLAGS was set" >&5
5946printf "%s\n" "$as_me: not adding extra warning flags because WARN_CFLAGS was set" >&6;}
5947    else
5948      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"
5949    fi
5950    if test "x$krb5_ac_warn_cxxflags_set" = xset ; then
5951      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not adding extra warning flags because WARN_CXXFLAGS was set" >&5
5952printf "%s\n" "$as_me: not adding extra warning flags because WARN_CXXFLAGS was set" >&6;}
5953    else
5954      WARN_CXXFLAGS="-errtags=yes +w +w2 -xport64"
5955    fi
5956  fi
5957fi
5958
5959
5960
5961if test -z "$LD" ; then LD=$CC; fi
5962
5963
5964
5965# Check whether --with-system-et was given.
5966if test ${with_system_et+y}
5967then :
5968  withval=$with_system_et;
5969fi
5970
5971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which version of com_err to use" >&5
5972printf %s "checking which version of com_err to use... " >&6; }
5973if test "x$with_system_et" = xyes ; then
5974  # This will be changed to "intlsys" if textdomain support is present.
5975  COM_ERR_VERSION=sys
5976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: system" >&5
5977printf "%s\n" "system" >&6; }
5978else
5979  COM_ERR_VERSION=k5
5980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: krb5" >&5
5981printf "%s\n" "krb5" >&6; }
5982fi
5983OLDLIBS="$LIBS"
5984COM_ERR_LIB=-lcom_err
5985if test $COM_ERR_VERSION = sys; then
5986
5987pkg_failed=no
5988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err" >&5
5989printf %s "checking for com_err... " >&6; }
5990
5991if test -n "$COM_ERR_CFLAGS"; then
5992    pkg_cv_COM_ERR_CFLAGS="$COM_ERR_CFLAGS"
5993 elif test -n "$PKG_CONFIG"; then
5994    if test -n "$PKG_CONFIG" && \
5995    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5
5996  ($PKG_CONFIG --exists --print-errors "com_err") 2>&5
5997  ac_status=$?
5998  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999  test $ac_status = 0; }; then
6000  pkg_cv_COM_ERR_CFLAGS=`$PKG_CONFIG --cflags "com_err" 2>/dev/null`
6001		      test "x$?" != "x0" && pkg_failed=yes
6002else
6003  pkg_failed=yes
6004fi
6005 else
6006    pkg_failed=untried
6007fi
6008if test -n "$COM_ERR_LIBS"; then
6009    pkg_cv_COM_ERR_LIBS="$COM_ERR_LIBS"
6010 elif test -n "$PKG_CONFIG"; then
6011    if test -n "$PKG_CONFIG" && \
6012    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err\""; } >&5
6013  ($PKG_CONFIG --exists --print-errors "com_err") 2>&5
6014  ac_status=$?
6015  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6016  test $ac_status = 0; }; then
6017  pkg_cv_COM_ERR_LIBS=`$PKG_CONFIG --libs "com_err" 2>/dev/null`
6018		      test "x$?" != "x0" && pkg_failed=yes
6019else
6020  pkg_failed=yes
6021fi
6022 else
6023    pkg_failed=untried
6024fi
6025
6026
6027
6028if test $pkg_failed = yes; then
6029        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030printf "%s\n" "no" >&6; }
6031
6032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6033        _pkg_short_errors_supported=yes
6034else
6035        _pkg_short_errors_supported=no
6036fi
6037        if test $_pkg_short_errors_supported = yes; then
6038	        COM_ERR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "com_err" 2>&1`
6039        else
6040	        COM_ERR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "com_err" 2>&1`
6041        fi
6042	# Put the nasty error message in config.log where it belongs
6043	echo "$COM_ERR_PKG_ERRORS" >&5
6044
6045	have_com_err=no
6046elif test $pkg_failed = untried; then
6047        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048printf "%s\n" "no" >&6; }
6049	have_com_err=no
6050else
6051	COM_ERR_CFLAGS=$pkg_cv_COM_ERR_CFLAGS
6052	COM_ERR_LIBS=$pkg_cv_COM_ERR_LIBS
6053        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6054printf "%s\n" "yes" >&6; }
6055	have_com_err=yes
6056fi
6057  if test "x$have_com_err = xyes"; then
6058    COM_ERR_LIB="$COM_ERR_LIBS"
6059  fi
6060  LIBS="$LIBS $COM_ERR_LIB"
6061  # check for various functions we need
6062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for add_error_table in -lcom_err" >&5
6063printf %s "checking for add_error_table in -lcom_err... " >&6; }
6064if test ${ac_cv_lib_com_err_add_error_table+y}
6065then :
6066  printf %s "(cached) " >&6
6067else $as_nop
6068  ac_check_lib_save_LIBS=$LIBS
6069LIBS="-lcom_err  $LIBS"
6070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071/* end confdefs.h.  */
6072
6073/* Override any GCC internal prototype to avoid an error.
6074   Use char because int might match the return type of a GCC
6075   builtin and then its argument prototype would still apply.  */
6076char add_error_table ();
6077int
6078main (void)
6079{
6080return add_error_table ();
6081  ;
6082  return 0;
6083}
6084_ACEOF
6085if ac_fn_c_try_link "$LINENO"
6086then :
6087  ac_cv_lib_com_err_add_error_table=yes
6088else $as_nop
6089  ac_cv_lib_com_err_add_error_table=no
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.beam \
6092    conftest$ac_exeext conftest.$ac_ext
6093LIBS=$ac_check_lib_save_LIBS
6094fi
6095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_add_error_table" >&5
6096printf "%s\n" "$ac_cv_lib_com_err_add_error_table" >&6; }
6097if test "x$ac_cv_lib_com_err_add_error_table" = xyes
6098then :
6099  :
6100else $as_nop
6101  as_fn_error $? "cannot find add_error_table in com_err library" "$LINENO" 5
6102fi
6103
6104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove_error_table in -lcom_err" >&5
6105printf %s "checking for remove_error_table in -lcom_err... " >&6; }
6106if test ${ac_cv_lib_com_err_remove_error_table+y}
6107then :
6108  printf %s "(cached) " >&6
6109else $as_nop
6110  ac_check_lib_save_LIBS=$LIBS
6111LIBS="-lcom_err  $LIBS"
6112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113/* end confdefs.h.  */
6114
6115/* Override any GCC internal prototype to avoid an error.
6116   Use char because int might match the return type of a GCC
6117   builtin and then its argument prototype would still apply.  */
6118char remove_error_table ();
6119int
6120main (void)
6121{
6122return remove_error_table ();
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_link "$LINENO"
6128then :
6129  ac_cv_lib_com_err_remove_error_table=yes
6130else $as_nop
6131  ac_cv_lib_com_err_remove_error_table=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.beam \
6134    conftest$ac_exeext conftest.$ac_ext
6135LIBS=$ac_check_lib_save_LIBS
6136fi
6137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_remove_error_table" >&5
6138printf "%s\n" "$ac_cv_lib_com_err_remove_error_table" >&6; }
6139if test "x$ac_cv_lib_com_err_remove_error_table" = xyes
6140then :
6141  :
6142else $as_nop
6143  as_fn_error $? "cannot find remove_error_table in com_err library" "$LINENO" 5
6144fi
6145
6146  # make sure compile_et provides "et_foo" name
6147  cat >> conf$$e.et <<EOF
6148error_table foo
6149error_code ERR_FOO, "foo"
6150end
6151EOF
6152  for ac_prog in compile_et
6153do
6154  # Extract the first word of "$ac_prog", so it can be a program name with args.
6155set dummy $ac_prog; ac_word=$2
6156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157printf %s "checking for $ac_word... " >&6; }
6158if test ${ac_cv_prog_compile_et+y}
6159then :
6160  printf %s "(cached) " >&6
6161else $as_nop
6162  if test -n "$compile_et"; then
6163  ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168  IFS=$as_save_IFS
6169  case $as_dir in #(((
6170    '') as_dir=./ ;;
6171    */) ;;
6172    *) as_dir=$as_dir/ ;;
6173  esac
6174    for ac_exec_ext in '' $ac_executable_extensions; do
6175  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6176    ac_cv_prog_compile_et="$ac_prog"
6177    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6178    break 2
6179  fi
6180done
6181  done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186compile_et=$ac_cv_prog_compile_et
6187if test -n "$compile_et"; then
6188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compile_et" >&5
6189printf "%s\n" "$compile_et" >&6; }
6190else
6191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192printf "%s\n" "no" >&6; }
6193fi
6194
6195
6196  test -n "$compile_et" && break
6197done
6198test -n "$compile_et" || compile_et="false"
6199
6200  if test "$compile_et" = false; then
6201    as_fn_error $? "cannot find compile_et" "$LINENO" 5
6202  fi
6203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compile_et is useful" >&5
6204printf %s "checking whether compile_et is useful... " >&6; }
6205if test ${krb5_cv_compile_et_useful+y}
6206then :
6207  printf %s "(cached) " >&6
6208else $as_nop
6209
6210  if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else
6211    as_fn_error $? "execution failed" "$LINENO" 5
6212  fi
6213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h.  */
6215#include "conf$$e.h"
6216
6217int
6218main (void)
6219{
6220&et_foo_error_table;
6221  ;
6222  return 0;
6223}
6224_ACEOF
6225if ac_fn_c_try_compile "$LINENO"
6226then :
6227
6228else $as_nop
6229  as_fn_error $? "cannot use et_foo_error_table" "$LINENO" 5
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6232  # Anything else we need to test for?
6233  rm -f conf$$e.c conf$$e.h
6234  krb5_cv_compile_et_useful=yes
6235
6236fi
6237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_compile_et_useful" >&5
6238printf "%s\n" "$krb5_cv_compile_et_useful" >&6; }
6239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compile_et supports --textdomain" >&5
6240printf %s "checking whether compile_et supports --textdomain... " >&6; }
6241if test ${krb5_cv_compile_et_textdomain+y}
6242then :
6243  printf %s "(cached) " >&6
6244else $as_nop
6245
6246  krb5_cv_compile_et_textdomain=no
6247  if compile_et --textdomain=xyzw conf$$e.et >/dev/null 2>&1 ; then
6248    if grep -q xyzw conf$$e.c; then
6249      krb5_cv_compile_et_textdomain=yes
6250    fi
6251  fi
6252  rm -f conf$$e.c conf$$e.h
6253
6254fi
6255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_compile_et_textdomain" >&5
6256printf "%s\n" "$krb5_cv_compile_et_textdomain" >&6; }
6257  if test "$krb5_cv_compile_et_textdomain" = yes; then
6258    COM_ERR_VERSION=intlsys
6259  fi
6260  rm -f conf$$e.et
6261fi
6262
6263
6264LIBS="$OLDLIBS"
6265if test "$COM_ERR_VERSION" = k5 -o "$COM_ERR_VERSION" = intlsys; then
6266
6267printf "%s\n" "#define HAVE_COM_ERR_INTL 1" >>confdefs.h
6268
6269fi
6270
6271
6272# Check whether --with-system-ss was given.
6273if test ${with_system_ss+y}
6274then :
6275  withval=$with_system_ss;
6276fi
6277
6278
6279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which version of subsystem package to use" >&5
6280printf %s "checking which version of subsystem package to use... " >&6; }
6281if test "x$with_system_ss" = xyes ; then
6282  SS_VERSION=sys
6283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: system" >&5
6284printf "%s\n" "system" >&6; }
6285  # todo: check for various libraries we might need
6286  # in the meantime...
6287  test "x${SS_LIB+set}" = xset || SS_LIB=-lss
6288  old_LIBS="$LIBS"
6289  LIBS="$LIBS $SS_LIB"
6290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system ss package works" >&5
6291printf %s "checking whether system ss package works... " >&6; }
6292if test ${krb5_cv_system_ss_okay+y}
6293then :
6294  printf %s "(cached) " >&6
6295else $as_nop
6296  if test "$cross_compiling" = yes
6297then :
6298  krb5_cv_system_ss_okay=assumed
6299else $as_nop
6300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h.  */
6302#include <ss/ss.h>
6303        int main(int argc, char *argv[]) {
6304            if (argc == 42) {
6305                int i, err;
6306                i = ss_create_invocation("foo","foo","",0,&err);
6307                ss_listen(i);
6308            }
6309            return 0;
6310        }
6311_ACEOF
6312if ac_fn_c_try_run "$LINENO"
6313then :
6314  krb5_cv_system_ss_okay=yes
6315else $as_nop
6316  as_fn_error $? "cannot run test program" "$LINENO" 5
6317fi
6318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6319  conftest.$ac_objext conftest.beam conftest.$ac_ext
6320fi
6321
6322fi
6323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_system_ss_okay" >&5
6324printf "%s\n" "$krb5_cv_system_ss_okay" >&6; }
6325  LIBS="$old_LIBS"
6326
6327
6328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ss_execute_command needs a prototype provided" >&5
6329printf %s "checking if ss_execute_command needs a prototype provided... " >&6; }
6330if test ${krb5_cv_func_ss_execute_command_noproto+y}
6331then :
6332  printf %s "(cached) " >&6
6333else $as_nop
6334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335/* end confdefs.h.  */
6336#include <ss/ss.h>
6337int
6338main (void)
6339{
6340#undef ss_execute_command
6341      struct k5foo {int foo; } xx;
6342      extern int ss_execute_command (struct k5foo*);
6343      ss_execute_command(&xx);
6344  ;
6345  return 0;
6346}
6347_ACEOF
6348if ac_fn_c_try_compile "$LINENO"
6349then :
6350  krb5_cv_func_ss_execute_command_noproto=yes
6351else $as_nop
6352  krb5_cv_func_ss_execute_command_noproto=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6355fi
6356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_ss_execute_command_noproto" >&5
6357printf "%s\n" "$krb5_cv_func_ss_execute_command_noproto" >&6; }
6358if test $krb5_cv_func_ss_execute_command_noproto = yes; then
6359
6360printf "%s\n" "#define NEED_SS_EXECUTE_COMMAND_PROTO 1" >>confdefs.h
6361
6362fi
6363
6364
6365else
6366  SS_VERSION=k5
6367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: krb5" >&5
6368printf "%s\n" "krb5" >&6; }
6369fi
6370
6371
6372
6373
6374# Check whether --with-system-db was given.
6375if test ${with_system_db+y}
6376then :
6377  withval=$with_system_db;
6378fi
6379
6380
6381
6382if test "x$with_system_db" = xyes ; then
6383  DB_VERSION=sys
6384  # TODO: Do we have specific routines we should check for?
6385  # How about known, easily recognizable bugs?
6386  # We want to use bt_rseq in some cases, but no other version but
6387  # ours has it right now.
6388  #
6389  # Okay, check the variables.
6390  test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h
6391  test "x${DB_LIB+set}" = xset || DB_LIB=-ldb
6392  #
6393  if test "x${DB_HEADER}" = xdb.h ; then
6394    DB_HEADER_VERSION=sys
6395  else
6396    DB_HEADER_VERSION=redirect
6397  fi
6398  KDB5_DB_LIB="$DB_LIB"
6399else
6400  DB_VERSION=k5
6401
6402printf "%s\n" "#define HAVE_BT_RSEQ 1" >>confdefs.h
6403
6404  DB_HEADER=db.h
6405  DB_HEADER_VERSION=k5
6406  # libdb gets sucked into libkdb
6407  KDB5_DB_LIB=
6408  # needed for a couple of things that need libdb for its own sake
6409  DB_LIB=-ldb
6410fi
6411
6412
6413
6414
6415
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6417printf %s "checking for an ANSI C-conforming const... " >&6; }
6418if test ${ac_cv_c_const+y}
6419then :
6420  printf %s "(cached) " >&6
6421else $as_nop
6422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h.  */
6424
6425int
6426main (void)
6427{
6428
6429#ifndef __cplusplus
6430  /* Ultrix mips cc rejects this sort of thing.  */
6431  typedef int charset[2];
6432  const charset cs = { 0, 0 };
6433  /* SunOS 4.1.1 cc rejects this.  */
6434  char const *const *pcpcc;
6435  char **ppc;
6436  /* NEC SVR4.0.2 mips cc rejects this.  */
6437  struct point {int x, y;};
6438  static struct point const zero = {0,0};
6439  /* IBM XL C 1.02.0.0 rejects this.
6440     It does not let you subtract one const X* pointer from another in
6441     an arm of an if-expression whose if-part is not a constant
6442     expression */
6443  const char *g = "string";
6444  pcpcc = &g + (g ? g-g : 0);
6445  /* HPUX 7.0 cc rejects these. */
6446  ++pcpcc;
6447  ppc = (char**) pcpcc;
6448  pcpcc = (char const *const *) ppc;
6449  { /* SCO 3.2v4 cc rejects this sort of thing.  */
6450    char tx;
6451    char *t = &tx;
6452    char const *s = 0 ? (char *) 0 : (char const *) 0;
6453
6454    *t++ = 0;
6455    if (s) return 0;
6456  }
6457  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6458    int x[] = {25, 17};
6459    const int *foo = &x[0];
6460    ++foo;
6461  }
6462  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6463    typedef const int *iptr;
6464    iptr p = 0;
6465    ++p;
6466  }
6467  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
6468       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6469    struct s { int j; const int *ap[3]; } bx;
6470    struct s *b = &bx; b->j = 5;
6471  }
6472  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6473    const int foo = 10;
6474    if (!foo) return 0;
6475  }
6476  return !cs[0] && !zero.x;
6477#endif
6478
6479  ;
6480  return 0;
6481}
6482_ACEOF
6483if ac_fn_c_try_compile "$LINENO"
6484then :
6485  ac_cv_c_const=yes
6486else $as_nop
6487  ac_cv_c_const=no
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6490fi
6491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6492printf "%s\n" "$ac_cv_c_const" >&6; }
6493if test $ac_cv_c_const = no; then
6494
6495printf "%s\n" "#define const /**/" >>confdefs.h
6496
6497fi
6498
6499
6500# Check whether --with-netlib was given.
6501if test ${with_netlib+y}
6502then :
6503  withval=$with_netlib;   if test "$withval" = yes -o "$withval" = no ; then
6504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"netlib will link with C library resolver only\"" >&5
6505printf "%s\n" "\"netlib will link with C library resolver only\"" >&6; }
6506  else
6507	LIBS="$LIBS $withval"
6508	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"netlib will use \'$withval\'\"" >&5
6509printf "%s\n" "\"netlib will use \'$withval\'\"" >&6; }
6510  fi
6511
6512else $as_nop
6513
6514   # Most operating systems have gethostbyname() in the default searched
6515   # libraries (i.e. libc):
6516   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6517if test "x$ac_cv_func_gethostbyname" = xyes
6518then :
6519
6520else $as_nop
6521
6522     # Some OSes (eg. Solaris) place it in libnsl:
6523     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6524printf %s "checking for gethostbyname in -lnsl... " >&6; }
6525if test ${ac_cv_lib_nsl_gethostbyname+y}
6526then :
6527  printf %s "(cached) " >&6
6528else $as_nop
6529  ac_check_lib_save_LIBS=$LIBS
6530LIBS="-lnsl  $LIBS"
6531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532/* end confdefs.h.  */
6533
6534/* Override any GCC internal prototype to avoid an error.
6535   Use char because int might match the return type of a GCC
6536   builtin and then its argument prototype would still apply.  */
6537char gethostbyname ();
6538int
6539main (void)
6540{
6541return gethostbyname ();
6542  ;
6543  return 0;
6544}
6545_ACEOF
6546if ac_fn_c_try_link "$LINENO"
6547then :
6548  ac_cv_lib_nsl_gethostbyname=yes
6549else $as_nop
6550  ac_cv_lib_nsl_gethostbyname=no
6551fi
6552rm -f core conftest.err conftest.$ac_objext conftest.beam \
6553    conftest$ac_exeext conftest.$ac_ext
6554LIBS=$ac_check_lib_save_LIBS
6555fi
6556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6557printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
6558if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
6559then :
6560  printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
6561
6562  LIBS="-lnsl $LIBS"
6563
6564else $as_nop
6565
6566       # Some strange OSes (SINIX) have it in libsocket:
6567       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
6568printf %s "checking for gethostbyname in -lsocket... " >&6; }
6569if test ${ac_cv_lib_socket_gethostbyname+y}
6570then :
6571  printf %s "(cached) " >&6
6572else $as_nop
6573  ac_check_lib_save_LIBS=$LIBS
6574LIBS="-lsocket  $LIBS"
6575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h.  */
6577
6578/* Override any GCC internal prototype to avoid an error.
6579   Use char because int might match the return type of a GCC
6580   builtin and then its argument prototype would still apply.  */
6581char gethostbyname ();
6582int
6583main (void)
6584{
6585return gethostbyname ();
6586  ;
6587  return 0;
6588}
6589_ACEOF
6590if ac_fn_c_try_link "$LINENO"
6591then :
6592  ac_cv_lib_socket_gethostbyname=yes
6593else $as_nop
6594  ac_cv_lib_socket_gethostbyname=no
6595fi
6596rm -f core conftest.err conftest.$ac_objext conftest.beam \
6597    conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS
6599fi
6600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
6601printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
6602if test "x$ac_cv_lib_socket_gethostbyname" = xyes
6603then :
6604  printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
6605
6606  LIBS="-lsocket $LIBS"
6607
6608else $as_nop
6609
6610          # Unfortunately libsocket sometimes depends on libnsl.
6611          # AC_CHECK_LIB's API is essentially broken so the following
6612          # ugliness is necessary:
6613          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
6614printf %s "checking for gethostbyname in -lsocket... " >&6; }
6615if test ${ac_cv_lib_socket_gethostbyname+y}
6616then :
6617  printf %s "(cached) " >&6
6618else $as_nop
6619  ac_check_lib_save_LIBS=$LIBS
6620LIBS="-lsocket -lnsl $LIBS"
6621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h.  */
6623
6624/* Override any GCC internal prototype to avoid an error.
6625   Use char because int might match the return type of a GCC
6626   builtin and then its argument prototype would still apply.  */
6627char gethostbyname ();
6628int
6629main (void)
6630{
6631return gethostbyname ();
6632  ;
6633  return 0;
6634}
6635_ACEOF
6636if ac_fn_c_try_link "$LINENO"
6637then :
6638  ac_cv_lib_socket_gethostbyname=yes
6639else $as_nop
6640  ac_cv_lib_socket_gethostbyname=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.beam \
6643    conftest$ac_exeext conftest.$ac_ext
6644LIBS=$ac_check_lib_save_LIBS
6645fi
6646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
6647printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
6648if test "x$ac_cv_lib_socket_gethostbyname" = xyes
6649then :
6650  LIBS="-lsocket -lnsl $LIBS"
6651else $as_nop
6652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
6653printf %s "checking for gethostbyname in -lresolv... " >&6; }
6654if test ${ac_cv_lib_resolv_gethostbyname+y}
6655then :
6656  printf %s "(cached) " >&6
6657else $as_nop
6658  ac_check_lib_save_LIBS=$LIBS
6659LIBS="-lresolv  $LIBS"
6660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h.  */
6662
6663/* Override any GCC internal prototype to avoid an error.
6664   Use char because int might match the return type of a GCC
6665   builtin and then its argument prototype would still apply.  */
6666char gethostbyname ();
6667int
6668main (void)
6669{
6670return gethostbyname ();
6671  ;
6672  return 0;
6673}
6674_ACEOF
6675if ac_fn_c_try_link "$LINENO"
6676then :
6677  ac_cv_lib_resolv_gethostbyname=yes
6678else $as_nop
6679  ac_cv_lib_resolv_gethostbyname=no
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.beam \
6682    conftest$ac_exeext conftest.$ac_ext
6683LIBS=$ac_check_lib_save_LIBS
6684fi
6685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
6686printf "%s\n" "$ac_cv_lib_resolv_gethostbyname" >&6; }
6687if test "x$ac_cv_lib_resolv_gethostbyname" = xyes
6688then :
6689  LIBS="-lresolv $LIBS"
6690fi
6691
6692fi
6693
6694
6695fi
6696
6697
6698fi
6699
6700
6701fi
6702
6703  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
6704if test "x$ac_cv_func_socket" = xyes
6705then :
6706
6707else $as_nop
6708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6709printf %s "checking for socket in -lsocket... " >&6; }
6710if test ${ac_cv_lib_socket_socket+y}
6711then :
6712  printf %s "(cached) " >&6
6713else $as_nop
6714  ac_check_lib_save_LIBS=$LIBS
6715LIBS="-lsocket  $LIBS"
6716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h.  */
6718
6719/* Override any GCC internal prototype to avoid an error.
6720   Use char because int might match the return type of a GCC
6721   builtin and then its argument prototype would still apply.  */
6722char socket ();
6723int
6724main (void)
6725{
6726return socket ();
6727  ;
6728  return 0;
6729}
6730_ACEOF
6731if ac_fn_c_try_link "$LINENO"
6732then :
6733  ac_cv_lib_socket_socket=yes
6734else $as_nop
6735  ac_cv_lib_socket_socket=no
6736fi
6737rm -f core conftest.err conftest.$ac_objext conftest.beam \
6738    conftest$ac_exeext conftest.$ac_ext
6739LIBS=$ac_check_lib_save_LIBS
6740fi
6741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6742printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
6743if test "x$ac_cv_lib_socket_socket" = xyes
6744then :
6745  printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
6746
6747  LIBS="-lsocket $LIBS"
6748
6749else $as_nop
6750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6751printf %s "checking for socket in -lsocket... " >&6; }
6752if test ${ac_cv_lib_socket_socket+y}
6753then :
6754  printf %s "(cached) " >&6
6755else $as_nop
6756  ac_check_lib_save_LIBS=$LIBS
6757LIBS="-lsocket -lnsl $LIBS"
6758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759/* end confdefs.h.  */
6760
6761/* Override any GCC internal prototype to avoid an error.
6762   Use char because int might match the return type of a GCC
6763   builtin and then its argument prototype would still apply.  */
6764char socket ();
6765int
6766main (void)
6767{
6768return socket ();
6769  ;
6770  return 0;
6771}
6772_ACEOF
6773if ac_fn_c_try_link "$LINENO"
6774then :
6775  ac_cv_lib_socket_socket=yes
6776else $as_nop
6777  ac_cv_lib_socket_socket=no
6778fi
6779rm -f core conftest.err conftest.$ac_objext conftest.beam \
6780    conftest$ac_exeext conftest.$ac_ext
6781LIBS=$ac_check_lib_save_LIBS
6782fi
6783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6784printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
6785if test "x$ac_cv_lib_socket_socket" = xyes
6786then :
6787  LIBS="-lsocket -lnsl $LIBS"
6788fi
6789
6790fi
6791
6792fi
6793
6794
6795enable_dns=yes
6796  # Check whether --enable-dns-for-realm was given.
6797if test ${enable_dns_for_realm+y}
6798then :
6799  enableval=$enable_dns_for_realm;
6800else $as_nop
6801  enable_dns_for_realm=no
6802fi
6803
6804  if test "$enable_dns_for_realm" = yes; then
6805
6806printf "%s\n" "#define KRB5_DNS_LOOKUP_REALM 1" >>confdefs.h
6807
6808  fi
6809
6810
6811printf "%s\n" "#define KRB5_DNS_LOOKUP 1" >>confdefs.h
6812
6813
6814
6815  if test "$enable_dns" = yes ; then
6816    # We assume that if libresolv exists we can link against it.
6817    # This may get us a gethostby* that doesn't respect nsswitch.
6818    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
6819printf %s "checking for main in -lresolv... " >&6; }
6820if test ${ac_cv_lib_resolv_main+y}
6821then :
6822  printf %s "(cached) " >&6
6823else $as_nop
6824  ac_check_lib_save_LIBS=$LIBS
6825LIBS="-lresolv  $LIBS"
6826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h.  */
6828
6829
6830int
6831main (void)
6832{
6833return main ();
6834  ;
6835  return 0;
6836}
6837_ACEOF
6838if ac_fn_c_try_link "$LINENO"
6839then :
6840  ac_cv_lib_resolv_main=yes
6841else $as_nop
6842  ac_cv_lib_resolv_main=no
6843fi
6844rm -f core conftest.err conftest.$ac_objext conftest.beam \
6845    conftest$ac_exeext conftest.$ac_ext
6846LIBS=$ac_check_lib_save_LIBS
6847fi
6848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
6849printf "%s\n" "$ac_cv_lib_resolv_main" >&6; }
6850if test "x$ac_cv_lib_resolv_main" = xyes
6851then :
6852  printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
6853
6854  LIBS="-lresolv $LIBS"
6855
6856fi
6857
6858
6859for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
6860
6861# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but
6862# doesn't export it from libresolv.so, so we use extreme paranoia here
6863# and check both for the declaration and that we can link against the
6864# function.
6865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $krb5_func" >&5
6866printf %s "checking for $krb5_func... " >&6; }
6867if eval test \${krb5_cv_func_$krb5_func+y}
6868then :
6869  printf %s "(cached) " >&6
6870else $as_nop
6871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h.  */
6873#include <sys/types.h>
6874      #include <netinet/in.h>
6875      #include <arpa/nameser.h>
6876      #include <resolv.h>
6877
6878int
6879main (void)
6880{
6881/*
6882       * Use volatile, or else optimization can cause false positives.
6883       */
6884      void (* volatile p)() = (void (*)())$krb5_func;
6885  ;
6886  return 0;
6887}
6888_ACEOF
6889if ac_fn_c_try_link "$LINENO"
6890then :
6891  eval "krb5_cv_func_$krb5_func=yes"
6892else $as_nop
6893  eval "krb5_cv_func_$krb5_func=no"
6894fi
6895rm -f core conftest.err conftest.$ac_objext conftest.beam \
6896    conftest$ac_exeext conftest.$ac_ext
6897fi
6898eval ac_res=\$krb5_cv_func_$krb5_func
6899	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6900printf "%s\n" "$ac_res" >&6; }
6901if test `eval 'as_val=${'krb5_cv_func_$krb5_func'};printf "%s\n" "$as_val"'` = yes
6902then :
6903
6904cat >>confdefs.h <<_ACEOF
6905#define `printf "%s\n" "HAVE_$krb5_func" | $as_tr_cpp` 1
6906_ACEOF
6907
6908fi
6909done
6910
6911    if test $krb5_cv_func_res_nsearch = no \
6912      && test $krb5_cv_func_res_search = no; then
6913	# Attempt to link with res_search(), in case it's not prototyped.
6914	ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
6915if test "x$ac_cv_func_res_search" = xyes
6916then :
6917
6918printf "%s\n" "#define HAVE_RES_SEARCH 1" >>confdefs.h
6919
6920else $as_nop
6921  as_fn_error $? "cannot find res_nsearch or res_search" "$LINENO" 5
6922fi
6923
6924    fi
6925  fi
6926
6927
6928fi
6929
6930# Check whether --with-hesiod was given.
6931if test ${with_hesiod+y}
6932then :
6933  withval=$with_hesiod; hesiod=$with_hesiod
6934else $as_nop
6935  with_hesiod=no
6936fi
6937
6938if test "$with_hesiod" != "no"; then
6939	HESIOD_DEFS=-DHESIOD
6940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
6941printf %s "checking for res_send in -lresolv... " >&6; }
6942if test ${ac_cv_lib_resolv_res_send+y}
6943then :
6944  printf %s "(cached) " >&6
6945else $as_nop
6946  ac_check_lib_save_LIBS=$LIBS
6947LIBS="-lresolv  $LIBS"
6948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h.  */
6950
6951/* Override any GCC internal prototype to avoid an error.
6952   Use char because int might match the return type of a GCC
6953   builtin and then its argument prototype would still apply.  */
6954char res_send ();
6955int
6956main (void)
6957{
6958return res_send ();
6959  ;
6960  return 0;
6961}
6962_ACEOF
6963if ac_fn_c_try_link "$LINENO"
6964then :
6965  ac_cv_lib_resolv_res_send=yes
6966else $as_nop
6967  ac_cv_lib_resolv_res_send=no
6968fi
6969rm -f core conftest.err conftest.$ac_objext conftest.beam \
6970    conftest$ac_exeext conftest.$ac_ext
6971LIBS=$ac_check_lib_save_LIBS
6972fi
6973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
6974printf "%s\n" "$ac_cv_lib_resolv_res_send" >&6; }
6975if test "x$ac_cv_lib_resolv_res_send" = xyes
6976then :
6977  res_lib=-lresolv
6978fi
6979
6980	if test "$hesiod" != "yes"; then
6981		HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
6982	else
6983		HESIOD_LIBS="-lhesiod $res_lib"
6984	fi
6985else
6986	HESIOD_DEFS=
6987	HESIOD_LIBS=
6988fi
6989
6990 # Check whether --enable-maintainer-mode was given.
6991if test ${enable_maintainer_mode+y}
6992then :
6993  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6994else $as_nop
6995  USE_MAINTAINER_MODE=no
6996fi
6997
6998if test "$USE_MAINTAINER_MODE" = yes; then
6999  MAINTAINER_MODE_TRUE=
7000  MAINTAINER_MODE_FALSE='#'
7001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: enabling maintainer mode" >&5
7002printf "%s\n" "$as_me: enabling maintainer mode" >&6;}
7003else
7004  MAINTAINER_MODE_TRUE='#'
7005  MAINTAINER_MODE_FALSE=
7006fi
7007MAINT=$MAINTAINER_MODE_TRUE
7008
7009
7010
7011  CONFIG_RELTOPDIR=$ac_reltopdir
7012
7013lib_frag=$srcdir/$ac_config_fragdir/lib.in
7014
7015libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
7016
7017libnover_frag=$srcdir/$ac_config_fragdir/libnover.in
7018
7019libpriv_frag=$srcdir/$ac_config_fragdir/libpriv.in
7020
7021libnodeps_frag=$srcdir/$ac_config_fragdir/libnodeps.in
7022
7023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pragma weak references are supported" >&5
7024printf %s "checking whether pragma weak references are supported... " >&6; }
7025if test ${krb5_cv_pragma_weak_ref+y}
7026then :
7027  printf %s "(cached) " >&6
7028else $as_nop
7029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030/* end confdefs.h.  */
7031#pragma weak flurbl
7032      extern int flurbl(void);
7033int
7034main (void)
7035{
7036if (&flurbl != 0) return flurbl();
7037  ;
7038  return 0;
7039}
7040_ACEOF
7041if ac_fn_c_try_link "$LINENO"
7042then :
7043  krb5_cv_pragma_weak_ref=yes
7044else $as_nop
7045  krb5_cv_pragma_weak_ref=no
7046fi
7047rm -f core conftest.err conftest.$ac_objext conftest.beam \
7048    conftest$ac_exeext conftest.$ac_ext
7049fi
7050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_pragma_weak_ref" >&5
7051printf "%s\n" "$krb5_cv_pragma_weak_ref" >&6; }
7052if test $krb5_cv_pragma_weak_ref = yes ; then
7053
7054printf "%s\n" "#define HAVE_PRAGMA_WEAK_REF 1" >>confdefs.h
7055
7056fi
7057
7058
7059# Check whether --with-ldap was given.
7060if test ${with_ldap+y}
7061then :
7062  withval=$with_ldap; case "$withval" in
7063    OPENLDAP) with_ldap=yes ;;
7064    yes | no) ;;
7065    *)  as_fn_error $? "Invalid option value --with-ldap=\"$withval\"" "$LINENO" 5 ;;
7066esac
7067else $as_nop
7068  with_ldap=no
7069fi
7070
7071if test "$with_ldap" = yes; then
7072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: enabling OpenLDAP database backend module support" >&5
7073printf "%s\n" "$as_me: enabling OpenLDAP database backend module support" >&6;}
7074  OPENLDAP_PLUGIN=yes
7075fi
7076
7077krb5_cv_host=$host
7078
7079. $ac_topdir/config/shlib.conf
7080
7081# Check whether --enable-delayed-initialization was given.
7082if test ${enable_delayed_initialization+y}
7083then :
7084  enableval=$enable_delayed_initialization;
7085else $as_nop
7086  enable_delayed_initialization=yes
7087fi
7088
7089case "$enable_delayed_initialization" in
7090  yes)
7091
7092printf "%s\n" "#define DELAY_INITIALIZER 1" >>confdefs.h
7093 ;;
7094  no) ;;
7095  *)  as_fn_error $? "invalid option $enable_delayed_initialization for delayed-initialization" "$LINENO" 5 ;;
7096esac
7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for constructor/destructor attribute support" >&5
7098printf %s "checking for constructor/destructor attribute support... " >&6; }
7099if test ${krb5_cv_attr_constructor_destructor+y}
7100then :
7101  printf %s "(cached) " >&6
7102else $as_nop
7103  rm -f conftest.1 conftest.2
7104if test -r conftest.1 || test -r conftest.2 ; then
7105  as_fn_error $? "write error in local file system?" "$LINENO" 5
7106fi
7107true > conftest.1
7108true > conftest.2
7109if test -r conftest.1 && test -r conftest.2 ; then true ; else
7110  as_fn_error $? "write error in local file system?" "$LINENO" 5
7111fi
7112a=no
7113b=no
7114# blindly assume we have 'unlink' and unistd.h.
7115if test "$cross_compiling" = yes
7116then :
7117  as_fn_error $? "Cannot test for constructor/destructor support when cross compiling" "$LINENO" 5
7118else $as_nop
7119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120/* end confdefs.h.  */
7121#include <unistd.h>
7122      void foo1() __attribute__((constructor));
7123      void foo1() { unlink("conftest.1"); }
7124      void foo2() __attribute__((destructor));
7125      void foo2() { unlink("conftest.2"); }
7126      int main () { return 0; }
7127_ACEOF
7128if ac_fn_c_try_run "$LINENO"
7129then :
7130  test -r conftest.1 || a=yes
7131     test -r conftest.2 || b=yes
7132fi
7133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7134  conftest.$ac_objext conftest.beam conftest.$ac_ext
7135fi
7136
7137case $krb5_cv_host in
7138*-*-aix4.*)
7139	# Under AIX 4.3.3, at least, shared library destructor functions
7140	# appear to get executed in reverse link order (right to left),
7141	# so that a library's destructor function may run after that of
7142	# libraries it depends on, and may still have to access in the
7143	# destructor.
7144	#
7145	# That counts as "not working", for me, but it's a much more
7146	# complicated test case to set up.
7147	b=no
7148	;;
7149esac
7150krb5_cv_attr_constructor_destructor="$a,$b"
7151
7152fi
7153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_attr_constructor_destructor" >&5
7154printf "%s\n" "$krb5_cv_attr_constructor_destructor" >&6; }
7155# Okay, krb5_cv_... should be set now.
7156case $krb5_cv_attr_constructor_destructor in
7157  yes,*)
7158
7159printf "%s\n" "#define CONSTRUCTOR_ATTR_WORKS 1" >>confdefs.h
7160 ;;
7161esac
7162case $krb5_cv_attr_constructor_destructor in
7163  *,yes)
7164
7165printf "%s\n" "#define DESTRUCTOR_ATTR_WORKS 1" >>confdefs.h
7166 ;;
7167esac
7168
7169if test -z "$use_linker_init_option" ; then
7170  as_fn_error $? "ran INITFINI before checking shlib.conf?" "$LINENO" 5
7171fi
7172if test "$use_linker_init_option" = yes; then
7173
7174printf "%s\n" "#define USE_LINKER_INIT_OPTION 1" >>confdefs.h
7175
7176fi
7177if test "$use_linker_fini_option" = yes; then
7178
7179printf "%s\n" "#define USE_LINKER_FINI_OPTION 1" >>confdefs.h
7180
7181fi
7182
7183
7184# Check whether --enable-thread-support was given.
7185if test ${enable_thread_support+y}
7186then :
7187  enableval=$enable_thread_support;
7188else $as_nop
7189  enable_thread_support=yes
7190fi
7191
7192if test "$enable_thread_support" = yes ; then
7193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: enabling thread support" >&5
7194printf "%s\n" "$as_me: enabling thread support" >&6;}
7195
7196printf "%s\n" "#define ENABLE_THREADS 1" >>confdefs.h
7197
7198fi
7199if test "$enable_thread_support" = yes; then
7200
7201
7202
7203
7204ac_ext=c
7205ac_cpp='$CPP $CPPFLAGS'
7206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209
7210ax_pthread_ok=no
7211
7212# We used to check for pthread.h first, but this fails if pthread.h
7213# requires special compiler flags (e.g. on Tru64 or Sequent).
7214# It gets checked for in the link test anyway.
7215
7216# First of all, check if the user has set any of the PTHREAD_LIBS,
7217# etcetera environment variables, and if threads linking works using
7218# them:
7219if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7220        ax_pthread_save_CC="$CC"
7221        ax_pthread_save_CFLAGS="$CFLAGS"
7222        ax_pthread_save_LIBS="$LIBS"
7223        if test "x$PTHREAD_CC" != "x"
7224then :
7225  CC="$PTHREAD_CC"
7226fi
7227        if test "x$PTHREAD_CXX" != "x"
7228then :
7229  CXX="$PTHREAD_CXX"
7230fi
7231        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7232        LIBS="$PTHREAD_LIBS $LIBS"
7233        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7234printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7235        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h.  */
7237
7238/* Override any GCC internal prototype to avoid an error.
7239   Use char because int might match the return type of a GCC
7240   builtin and then its argument prototype would still apply.  */
7241char pthread_join ();
7242int
7243main (void)
7244{
7245return pthread_join ();
7246  ;
7247  return 0;
7248}
7249_ACEOF
7250if ac_fn_c_try_link "$LINENO"
7251then :
7252  ax_pthread_ok=yes
7253fi
7254rm -f core conftest.err conftest.$ac_objext conftest.beam \
7255    conftest$ac_exeext conftest.$ac_ext
7256        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7257printf "%s\n" "$ax_pthread_ok" >&6; }
7258        if test "x$ax_pthread_ok" = "xno"; then
7259                PTHREAD_LIBS=""
7260                PTHREAD_CFLAGS=""
7261        fi
7262        CC="$ax_pthread_save_CC"
7263        CFLAGS="$ax_pthread_save_CFLAGS"
7264        LIBS="$ax_pthread_save_LIBS"
7265fi
7266
7267# We must check for the threads library under a number of different
7268# names; the ordering is very important because some systems
7269# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7270# libraries is broken (non-POSIX).
7271
7272# Create a list of thread flags to try. Items with a "," contain both
7273# C compiler flags (before ",") and linker flags (after ","). Other items
7274# starting with a "-" are C compiler flags, and remaining items are
7275# library names, except for "none" which indicates that we try without
7276# any flags at all, and "pthread-config" which is a program returning
7277# the flags for the Pth emulation library.
7278
7279ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7280
7281# The ordering *is* (sometimes) important.  Some notes on the
7282# individual items follow:
7283
7284# pthreads: AIX (must check this before -lpthread)
7285# none: in case threads are in libc; should be tried before -Kthread and
7286#       other compiler flags to prevent continual compiler warnings
7287# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7288# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7289#           (Note: HP C rejects this with "bad form for `-t' option")
7290# -pthreads: Solaris/gcc (Note: HP C also rejects)
7291# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7292#      doesn't hurt to check since this sometimes defines pthreads and
7293#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7294#      is present but should not be used directly; and before -mthreads,
7295#      because the compiler interprets this as "-mt" + "-hreads")
7296# -mthreads: Mingw32/gcc, Lynx/gcc
7297# pthread: Linux, etcetera
7298# --thread-safe: KAI C++
7299# pthread-config: use pthread-config program (for GNU Pth library)
7300
7301case $host_os in
7302
7303        freebsd*)
7304
7305        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7306        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7307
7308        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7309        ;;
7310
7311        hpux*)
7312
7313        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7314        # multi-threading and also sets -lpthread."
7315
7316        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7317        ;;
7318
7319        openedition*)
7320
7321        # IBM z/OS requires a feature-test macro to be defined in order to
7322        # enable POSIX threads at all, so give the user a hint if this is
7323        # not set. (We don't define these ourselves, as they can affect
7324        # other portions of the system API in unpredictable ways.)
7325
7326        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328
7329#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7330             AX_PTHREAD_ZOS_MISSING
7331#            endif
7332
7333_ACEOF
7334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7335  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7336then :
7337  { 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
7338printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7339fi
7340rm -rf conftest*
7341
7342        ;;
7343
7344        solaris*)
7345
7346        # On Solaris (at least, for some versions), libc contains stubbed
7347        # (non-functional) versions of the pthreads routines, so link-based
7348        # tests will erroneously succeed. (N.B.: The stubs are missing
7349        # pthread_cleanup_push, or rather a function called by this macro,
7350        # so we could check for that, but who knows whether they'll stub
7351        # that too in a future libc.)  So we'll check first for the
7352        # standard Solaris way of linking pthreads (-mt -lpthread).
7353
7354        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7355        ;;
7356esac
7357
7358# Are we compiling with Clang?
7359
7360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7361printf %s "checking whether $CC is Clang... " >&6; }
7362if test ${ax_cv_PTHREAD_CLANG+y}
7363then :
7364  printf %s "(cached) " >&6
7365else $as_nop
7366  ax_cv_PTHREAD_CLANG=no
7367     # Note that Autoconf sets GCC=yes for Clang as well as GCC
7368     if test "x$GCC" = "xyes"; then
7369        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370/* end confdefs.h.  */
7371/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7372#            if defined(__clang__) && defined(__llvm__)
7373             AX_PTHREAD_CC_IS_CLANG
7374#            endif
7375
7376_ACEOF
7377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7378  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7379then :
7380  ax_cv_PTHREAD_CLANG=yes
7381fi
7382rm -rf conftest*
7383
7384     fi
7385
7386fi
7387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7388printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7389ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7390
7391
7392# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7393
7394# Note that for GCC and Clang -pthread generally implies -lpthread,
7395# except when -nostdlib is passed.
7396# This is problematic using libtool to build C++ shared libraries with pthread:
7397# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7398# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7399# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7400# To solve this, first try -pthread together with -lpthread for GCC
7401
7402if test "x$GCC" = "xyes"
7403then :
7404  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7405fi
7406
7407# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7408
7409if test "x$ax_pthread_clang" = "xyes"
7410then :
7411  ax_pthread_flags="-pthread,-lpthread -pthread"
7412fi
7413
7414
7415# The presence of a feature test macro requesting re-entrant function
7416# definitions is, on some systems, a strong hint that pthreads support is
7417# correctly enabled
7418
7419case $host_os in
7420        darwin* | hpux* | linux* | osf* | solaris*)
7421        ax_pthread_check_macro="_REENTRANT"
7422        ;;
7423
7424        aix*)
7425        ax_pthread_check_macro="_THREAD_SAFE"
7426        ;;
7427
7428        *)
7429        ax_pthread_check_macro="--"
7430        ;;
7431esac
7432if test "x$ax_pthread_check_macro" = "x--"
7433then :
7434  ax_pthread_check_cond=0
7435else $as_nop
7436  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7437fi
7438
7439
7440if test "x$ax_pthread_ok" = "xno"; then
7441for ax_pthread_try_flag in $ax_pthread_flags; do
7442
7443        case $ax_pthread_try_flag in
7444                none)
7445                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7446printf %s "checking whether pthreads work without any flags... " >&6; }
7447                ;;
7448
7449                *,*)
7450                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7451                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7452                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7453printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7454                ;;
7455
7456                -*)
7457                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7458printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7459                PTHREAD_CFLAGS="$ax_pthread_try_flag"
7460                ;;
7461
7462                pthread-config)
7463                # Extract the first word of "pthread-config", so it can be a program name with args.
7464set dummy pthread-config; ac_word=$2
7465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466printf %s "checking for $ac_word... " >&6; }
7467if test ${ac_cv_prog_ax_pthread_config+y}
7468then :
7469  printf %s "(cached) " >&6
7470else $as_nop
7471  if test -n "$ax_pthread_config"; then
7472  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477  IFS=$as_save_IFS
7478  case $as_dir in #(((
7479    '') as_dir=./ ;;
7480    */) ;;
7481    *) as_dir=$as_dir/ ;;
7482  esac
7483    for ac_exec_ext in '' $ac_executable_extensions; do
7484  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7485    ac_cv_prog_ax_pthread_config="yes"
7486    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7487    break 2
7488  fi
7489done
7490  done
7491IFS=$as_save_IFS
7492
7493  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7494fi
7495fi
7496ax_pthread_config=$ac_cv_prog_ax_pthread_config
7497if test -n "$ax_pthread_config"; then
7498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7499printf "%s\n" "$ax_pthread_config" >&6; }
7500else
7501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502printf "%s\n" "no" >&6; }
7503fi
7504
7505
7506                if test "x$ax_pthread_config" = "xno"
7507then :
7508  continue
7509fi
7510                PTHREAD_CFLAGS="`pthread-config --cflags`"
7511                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7512                ;;
7513
7514                *)
7515                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7516printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7517                PTHREAD_LIBS="-l$ax_pthread_try_flag"
7518                ;;
7519        esac
7520
7521        ax_pthread_save_CFLAGS="$CFLAGS"
7522        ax_pthread_save_LIBS="$LIBS"
7523        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7524        LIBS="$PTHREAD_LIBS $LIBS"
7525
7526        # Check for various functions.  We must include pthread.h,
7527        # since some functions may be macros.  (On the Sequent, we
7528        # need a special flag -Kthread to make this header compile.)
7529        # We check for pthread_join because it is in -lpthread on IRIX
7530        # while pthread_create is in libc.  We check for pthread_attr_init
7531        # due to DEC craziness with -lpthreads.  We check for
7532        # pthread_cleanup_push because it is one of the few pthread
7533        # functions on Solaris that doesn't have a non-functional libc stub.
7534        # We try pthread_create on general principles.
7535
7536        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h.  */
7538#include <pthread.h>
7539#                       if $ax_pthread_check_cond
7540#                        error "$ax_pthread_check_macro must be defined"
7541#                       endif
7542                        static void *some_global = NULL;
7543                        static void routine(void *a)
7544                          {
7545                             /* To avoid any unused-parameter or
7546                                unused-but-set-parameter warning.  */
7547                             some_global = a;
7548                          }
7549                        static void *start_routine(void *a) { return a; }
7550int
7551main (void)
7552{
7553pthread_t th; pthread_attr_t attr;
7554                        pthread_create(&th, 0, start_routine, 0);
7555                        pthread_join(th, 0);
7556                        pthread_attr_init(&attr);
7557                        pthread_cleanup_push(routine, 0);
7558                        pthread_cleanup_pop(0) /* ; */
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563if ac_fn_c_try_link "$LINENO"
7564then :
7565  ax_pthread_ok=yes
7566fi
7567rm -f core conftest.err conftest.$ac_objext conftest.beam \
7568    conftest$ac_exeext conftest.$ac_ext
7569
7570        CFLAGS="$ax_pthread_save_CFLAGS"
7571        LIBS="$ax_pthread_save_LIBS"
7572
7573        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7574printf "%s\n" "$ax_pthread_ok" >&6; }
7575        if test "x$ax_pthread_ok" = "xyes"
7576then :
7577  break
7578fi
7579
7580        PTHREAD_LIBS=""
7581        PTHREAD_CFLAGS=""
7582done
7583fi
7584
7585
7586# Clang needs special handling, because older versions handle the -pthread
7587# option in a rather... idiosyncratic way
7588
7589if test "x$ax_pthread_clang" = "xyes"; then
7590
7591        # Clang takes -pthread; it has never supported any other flag
7592
7593        # (Note 1: This will need to be revisited if a system that Clang
7594        # supports has POSIX threads in a separate library.  This tends not
7595        # to be the way of modern systems, but it's conceivable.)
7596
7597        # (Note 2: On some systems, notably Darwin, -pthread is not needed
7598        # to get POSIX threads support; the API is always present and
7599        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7600        # -pthread does define _REENTRANT, and while the Darwin headers
7601        # ignore this macro, third-party headers might not.)
7602
7603        # However, older versions of Clang make a point of warning the user
7604        # that, in an invocation where only linking and no compilation is
7605        # taking place, the -pthread option has no effect ("argument unused
7606        # during compilation").  They expect -pthread to be passed in only
7607        # when source code is being compiled.
7608        #
7609        # Problem is, this is at odds with the way Automake and most other
7610        # C build frameworks function, which is that the same flags used in
7611        # compilation (CFLAGS) are also used in linking.  Many systems
7612        # supported by AX_PTHREAD require exactly this for POSIX threads
7613        # support, and in fact it is often not straightforward to specify a
7614        # flag that is used only in the compilation phase and not in
7615        # linking.  Such a scenario is extremely rare in practice.
7616        #
7617        # Even though use of the -pthread flag in linking would only print
7618        # a warning, this can be a nuisance for well-run software projects
7619        # that build with -Werror.  So if the active version of Clang has
7620        # this misfeature, we search for an option to squash it.
7621
7622        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7623printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7624if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7625then :
7626  printf %s "(cached) " >&6
7627else $as_nop
7628  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7629             # Create an alternate version of $ac_link that compiles and
7630             # links in two steps (.c -> .o, .o -> exe) instead of one
7631             # (.c -> exe), because the warning occurs only in the second
7632             # step
7633             ax_pthread_save_ac_link="$ac_link"
7634             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7635             ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7636             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7637             ax_pthread_save_CFLAGS="$CFLAGS"
7638             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7639                if test "x$ax_pthread_try" = "xunknown"
7640then :
7641  break
7642fi
7643                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7644                ac_link="$ax_pthread_save_ac_link"
7645                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646/* end confdefs.h.  */
7647int main(void){return 0;}
7648_ACEOF
7649if ac_fn_c_try_link "$LINENO"
7650then :
7651  ac_link="$ax_pthread_2step_ac_link"
7652                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653/* end confdefs.h.  */
7654int main(void){return 0;}
7655_ACEOF
7656if ac_fn_c_try_link "$LINENO"
7657then :
7658  break
7659fi
7660rm -f core conftest.err conftest.$ac_objext conftest.beam \
7661    conftest$ac_exeext conftest.$ac_ext
7662
7663fi
7664rm -f core conftest.err conftest.$ac_objext conftest.beam \
7665    conftest$ac_exeext conftest.$ac_ext
7666             done
7667             ac_link="$ax_pthread_save_ac_link"
7668             CFLAGS="$ax_pthread_save_CFLAGS"
7669             if test "x$ax_pthread_try" = "x"
7670then :
7671  ax_pthread_try=no
7672fi
7673             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7674
7675fi
7676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7677printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7678
7679        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7680                no | unknown) ;;
7681                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7682        esac
7683
7684fi # $ax_pthread_clang = yes
7685
7686
7687
7688# Various other checks:
7689if test "x$ax_pthread_ok" = "xyes"; then
7690        ax_pthread_save_CFLAGS="$CFLAGS"
7691        ax_pthread_save_LIBS="$LIBS"
7692        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7693        LIBS="$PTHREAD_LIBS $LIBS"
7694
7695        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7696        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7697printf %s "checking for joinable pthread attribute... " >&6; }
7698if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7699then :
7700  printf %s "(cached) " >&6
7701else $as_nop
7702  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7703             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7704                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705/* end confdefs.h.  */
7706#include <pthread.h>
7707int
7708main (void)
7709{
7710int attr = $ax_pthread_attr; return attr /* ; */
7711  ;
7712  return 0;
7713}
7714_ACEOF
7715if ac_fn_c_try_link "$LINENO"
7716then :
7717  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7718fi
7719rm -f core conftest.err conftest.$ac_objext conftest.beam \
7720    conftest$ac_exeext conftest.$ac_ext
7721             done
7722
7723fi
7724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7725printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7726        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7727               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7728               test "x$ax_pthread_joinable_attr_defined" != "xyes"
7729then :
7730
7731printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7732
7733               ax_pthread_joinable_attr_defined=yes
7734
7735fi
7736
7737        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7738printf %s "checking whether more special flags are required for pthreads... " >&6; }
7739if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7740then :
7741  printf %s "(cached) " >&6
7742else $as_nop
7743  ax_cv_PTHREAD_SPECIAL_FLAGS=no
7744             case $host_os in
7745             solaris*)
7746             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7747             ;;
7748             esac
7749
7750fi
7751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7752printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7753        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7754               test "x$ax_pthread_special_flags_added" != "xyes"
7755then :
7756  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7757               ax_pthread_special_flags_added=yes
7758fi
7759
7760        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7761printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7762if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7763then :
7764  printf %s "(cached) " >&6
7765else $as_nop
7766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767/* end confdefs.h.  */
7768#include <pthread.h>
7769int
7770main (void)
7771{
7772int i = PTHREAD_PRIO_INHERIT;
7773                                               return i;
7774  ;
7775  return 0;
7776}
7777_ACEOF
7778if ac_fn_c_try_link "$LINENO"
7779then :
7780  ax_cv_PTHREAD_PRIO_INHERIT=yes
7781else $as_nop
7782  ax_cv_PTHREAD_PRIO_INHERIT=no
7783fi
7784rm -f core conftest.err conftest.$ac_objext conftest.beam \
7785    conftest$ac_exeext conftest.$ac_ext
7786
7787fi
7788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7789printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7790        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7791               test "x$ax_pthread_prio_inherit_defined" != "xyes"
7792then :
7793
7794printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7795
7796               ax_pthread_prio_inherit_defined=yes
7797
7798fi
7799
7800        CFLAGS="$ax_pthread_save_CFLAGS"
7801        LIBS="$ax_pthread_save_LIBS"
7802
7803        # More AIX lossage: compile with *_r variant
7804        if test "x$GCC" != "xyes"; then
7805            case $host_os in
7806                aix*)
7807                case "x/$CC" in #(
7808  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7809    #handle absolute path differently from PATH based program lookup
7810                     case "x$CC" in #(
7811  x/*) :
7812
7813			   if as_fn_executable_p ${CC}_r
7814then :
7815  PTHREAD_CC="${CC}_r"
7816fi
7817			   if test "x${CXX}" != "x"
7818then :
7819  if as_fn_executable_p ${CXX}_r
7820then :
7821  PTHREAD_CXX="${CXX}_r"
7822fi
7823fi
7824			  ;; #(
7825  *) :
7826
7827			   for ac_prog in ${CC}_r
7828do
7829  # Extract the first word of "$ac_prog", so it can be a program name with args.
7830set dummy $ac_prog; ac_word=$2
7831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832printf %s "checking for $ac_word... " >&6; }
7833if test ${ac_cv_prog_PTHREAD_CC+y}
7834then :
7835  printf %s "(cached) " >&6
7836else $as_nop
7837  if test -n "$PTHREAD_CC"; then
7838  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7839else
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843  IFS=$as_save_IFS
7844  case $as_dir in #(((
7845    '') as_dir=./ ;;
7846    */) ;;
7847    *) as_dir=$as_dir/ ;;
7848  esac
7849    for ac_exec_ext in '' $ac_executable_extensions; do
7850  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7851    ac_cv_prog_PTHREAD_CC="$ac_prog"
7852    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7853    break 2
7854  fi
7855done
7856  done
7857IFS=$as_save_IFS
7858
7859fi
7860fi
7861PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7862if test -n "$PTHREAD_CC"; then
7863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7864printf "%s\n" "$PTHREAD_CC" >&6; }
7865else
7866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867printf "%s\n" "no" >&6; }
7868fi
7869
7870
7871  test -n "$PTHREAD_CC" && break
7872done
7873test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7874
7875			   if test "x${CXX}" != "x"
7876then :
7877  for ac_prog in ${CXX}_r
7878do
7879  # Extract the first word of "$ac_prog", so it can be a program name with args.
7880set dummy $ac_prog; ac_word=$2
7881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882printf %s "checking for $ac_word... " >&6; }
7883if test ${ac_cv_prog_PTHREAD_CXX+y}
7884then :
7885  printf %s "(cached) " >&6
7886else $as_nop
7887  if test -n "$PTHREAD_CXX"; then
7888  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7889else
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893  IFS=$as_save_IFS
7894  case $as_dir in #(((
7895    '') as_dir=./ ;;
7896    */) ;;
7897    *) as_dir=$as_dir/ ;;
7898  esac
7899    for ac_exec_ext in '' $ac_executable_extensions; do
7900  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7901    ac_cv_prog_PTHREAD_CXX="$ac_prog"
7902    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7903    break 2
7904  fi
7905done
7906  done
7907IFS=$as_save_IFS
7908
7909fi
7910fi
7911PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7912if test -n "$PTHREAD_CXX"; then
7913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7914printf "%s\n" "$PTHREAD_CXX" >&6; }
7915else
7916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917printf "%s\n" "no" >&6; }
7918fi
7919
7920
7921  test -n "$PTHREAD_CXX" && break
7922done
7923test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7924
7925fi
7926
7927                      ;;
7928esac
7929                     ;; #(
7930  *) :
7931     ;;
7932esac
7933                ;;
7934            esac
7935        fi
7936fi
7937
7938test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7939test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7940
7941
7942
7943
7944
7945
7946# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7947if test "x$ax_pthread_ok" = "xyes"; then
7948
7949printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7950
7951        :
7952else
7953        ax_pthread_ok=no
7954        as_fn_error $? "cannot determine options for enabling thread support; try --disable-thread-support" "$LINENO" 5
7955fi
7956ac_ext=c
7957ac_cpp='$CPP $CPPFLAGS'
7958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7960ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961
7962
7963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PTHREAD_CC = $PTHREAD_CC" >&5
7964printf "%s\n" "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;}
7965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5
7966printf "%s\n" "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;}
7967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PTHREAD_LIBS = $PTHREAD_LIBS" >&5
7968printf "%s\n" "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;}
7969      # AIX and Tru64 don't support weak references, and don't have
7970  # stub versions of the pthread code in libc.
7971  case "${host_os}" in
7972    aix* | osf*)
7973      # On these platforms, we'll always pull in the thread support.
7974      LIBS="$LIBS $PTHREAD_LIBS"
7975      CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7976      # We don't need to sometimes add the flags we've just folded in...
7977      PTHREAD_LIBS=
7978      PTHREAD_CFLAGS=
7979      ;;
7980    hpux*)
7981      # These are the flags that "gcc -pthread" adds.  But we don't
7982      # want "-pthread" because that has link-time effects, and we
7983      # don't exclude CFLAGS when linking.  *sigh*
7984      PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
7985      ;;
7986    solaris2.[1-9])
7987      # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
7988      # get the right result.   XXX What about Solaris 9 and earlier?
7989      if test "$GCC" = yes ; then
7990        PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
7991      fi
7992      ;;
7993    solaris*)
7994      # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
7995      # get the right result.
7996      if test "$GCC" = yes ; then
7997        PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
7998      fi
7999      # On Solaris 10, the thread support is always available in libc.
8000
8001printf "%s\n" "#define NO_WEAK_PTHREADS 1" >>confdefs.h
8002
8003      ;;
8004  esac
8005  THREAD_SUPPORT=1
8006else
8007  PTHREAD_CC="$CC"
8008  PTHREAD_CFLAGS=""
8009  PTHREAD_LIBS=""
8010  THREAD_SUPPORT=0
8011fi
8012
8013ac_fn_c_check_func "$LINENO" "pthread_once" "ac_cv_func_pthread_once"
8014if test "x$ac_cv_func_pthread_once" = xyes
8015then :
8016  printf "%s\n" "#define HAVE_PTHREAD_ONCE 1" >>confdefs.h
8017
8018fi
8019ac_fn_c_check_func "$LINENO" "pthread_rwlock_init" "ac_cv_func_pthread_rwlock_init"
8020if test "x$ac_cv_func_pthread_rwlock_init" = xyes
8021then :
8022  printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
8023
8024fi
8025
8026old_CC="$CC"
8027test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
8028old_CFLAGS="$CFLAGS"
8029# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
8030CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8031
8032old_LIBS="$LIBS"
8033LIBS="$PTHREAD_LIBS $LIBS"
8034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: rechecking with PTHREAD_... options" >&5
8035printf "%s\n" "$as_me: rechecking with PTHREAD_... options" >&6;}
8036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lc" >&5
8037printf %s "checking for pthread_rwlock_init in -lc... " >&6; }
8038if test ${ac_cv_lib_c_pthread_rwlock_init+y}
8039then :
8040  printf %s "(cached) " >&6
8041else $as_nop
8042  ac_check_lib_save_LIBS=$LIBS
8043LIBS="-lc  $LIBS"
8044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045/* end confdefs.h.  */
8046
8047/* Override any GCC internal prototype to avoid an error.
8048   Use char because int might match the return type of a GCC
8049   builtin and then its argument prototype would still apply.  */
8050char pthread_rwlock_init ();
8051int
8052main (void)
8053{
8054return pthread_rwlock_init ();
8055  ;
8056  return 0;
8057}
8058_ACEOF
8059if ac_fn_c_try_link "$LINENO"
8060then :
8061  ac_cv_lib_c_pthread_rwlock_init=yes
8062else $as_nop
8063  ac_cv_lib_c_pthread_rwlock_init=no
8064fi
8065rm -f core conftest.err conftest.$ac_objext conftest.beam \
8066    conftest$ac_exeext conftest.$ac_ext
8067LIBS=$ac_check_lib_save_LIBS
8068fi
8069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_rwlock_init" >&5
8070printf "%s\n" "$ac_cv_lib_c_pthread_rwlock_init" >&6; }
8071if test "x$ac_cv_lib_c_pthread_rwlock_init" = xyes
8072then :
8073
8074printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1" >>confdefs.h
8075
8076fi
8077
8078LIBS="$old_LIBS"
8079CC="$old_CC"
8080CFLAGS="$old_CFLAGS"
8081
8082
8083old_LIBS="$LIBS"
8084DL_LIB=
8085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8086printf %s "checking for library containing dlopen... " >&6; }
8087if test ${ac_cv_search_dlopen+y}
8088then :
8089  printf %s "(cached) " >&6
8090else $as_nop
8091  ac_func_search_save_LIBS=$LIBS
8092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093/* end confdefs.h.  */
8094
8095/* Override any GCC internal prototype to avoid an error.
8096   Use char because int might match the return type of a GCC
8097   builtin and then its argument prototype would still apply.  */
8098char dlopen ();
8099int
8100main (void)
8101{
8102return dlopen ();
8103  ;
8104  return 0;
8105}
8106_ACEOF
8107for ac_lib in '' dl
8108do
8109  if test -z "$ac_lib"; then
8110    ac_res="none required"
8111  else
8112    ac_res=-l$ac_lib
8113    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8114  fi
8115  if ac_fn_c_try_link "$LINENO"
8116then :
8117  ac_cv_search_dlopen=$ac_res
8118fi
8119rm -f core conftest.err conftest.$ac_objext conftest.beam \
8120    conftest$ac_exeext
8121  if test ${ac_cv_search_dlopen+y}
8122then :
8123  break
8124fi
8125done
8126if test ${ac_cv_search_dlopen+y}
8127then :
8128
8129else $as_nop
8130  ac_cv_search_dlopen=no
8131fi
8132rm conftest.$ac_ext
8133LIBS=$ac_func_search_save_LIBS
8134fi
8135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8136printf "%s\n" "$ac_cv_search_dlopen" >&6; }
8137ac_res=$ac_cv_search_dlopen
8138if test "$ac_res" != no
8139then :
8140  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8141
8142if test "$ac_cv_search_dlopen" != "none required"; then
8143  DL_LIB=$ac_cv_search_dlopen
8144fi
8145LIBS="$old_LIBS"
8146
8147printf "%s\n" "#define USE_DLOPEN 1" >>confdefs.h
8148
8149fi
8150
8151
8152
8153
8154KRB5_VERSION=1.21.3
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8168	if test -n "$ac_tool_prefix"; then
8169  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8170set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172printf %s "checking for $ac_word... " >&6; }
8173if test ${ac_cv_path_PKG_CONFIG+y}
8174then :
8175  printf %s "(cached) " >&6
8176else $as_nop
8177  case $PKG_CONFIG in
8178  [\\/]* | ?:[\\/]*)
8179  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8180  ;;
8181  *)
8182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185  IFS=$as_save_IFS
8186  case $as_dir in #(((
8187    '') as_dir=./ ;;
8188    */) ;;
8189    *) as_dir=$as_dir/ ;;
8190  esac
8191    for ac_exec_ext in '' $ac_executable_extensions; do
8192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8193    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
8194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8195    break 2
8196  fi
8197done
8198  done
8199IFS=$as_save_IFS
8200
8201  ;;
8202esac
8203fi
8204PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8205if test -n "$PKG_CONFIG"; then
8206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8207printf "%s\n" "$PKG_CONFIG" >&6; }
8208else
8209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210printf "%s\n" "no" >&6; }
8211fi
8212
8213
8214fi
8215if test -z "$ac_cv_path_PKG_CONFIG"; then
8216  ac_pt_PKG_CONFIG=$PKG_CONFIG
8217  # Extract the first word of "pkg-config", so it can be a program name with args.
8218set dummy pkg-config; ac_word=$2
8219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220printf %s "checking for $ac_word... " >&6; }
8221if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
8222then :
8223  printf %s "(cached) " >&6
8224else $as_nop
8225  case $ac_pt_PKG_CONFIG in
8226  [\\/]* | ?:[\\/]*)
8227  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8228  ;;
8229  *)
8230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233  IFS=$as_save_IFS
8234  case $as_dir in #(((
8235    '') as_dir=./ ;;
8236    */) ;;
8237    *) as_dir=$as_dir/ ;;
8238  esac
8239    for ac_exec_ext in '' $ac_executable_extensions; do
8240  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8241    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
8242    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8243    break 2
8244  fi
8245done
8246  done
8247IFS=$as_save_IFS
8248
8249  ;;
8250esac
8251fi
8252ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8253if test -n "$ac_pt_PKG_CONFIG"; then
8254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8255printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
8256else
8257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258printf "%s\n" "no" >&6; }
8259fi
8260
8261  if test "x$ac_pt_PKG_CONFIG" = x; then
8262    PKG_CONFIG=""
8263  else
8264    case $cross_compiling:$ac_tool_warned in
8265yes:)
8266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268ac_tool_warned=yes ;;
8269esac
8270    PKG_CONFIG=$ac_pt_PKG_CONFIG
8271  fi
8272else
8273  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8274fi
8275
8276fi
8277if test -n "$PKG_CONFIG"; then
8278	_pkg_min_version=0.9.0
8279	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8280printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8281	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283printf "%s\n" "yes" >&6; }
8284	else
8285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286printf "%s\n" "no" >&6; }
8287		PKG_CONFIG=""
8288	fi
8289fi
8290
8291ac_header= ac_cache=
8292for ac_item in $ac_header_c_list
8293do
8294  if test $ac_cache; then
8295    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8296    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8297      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8298    fi
8299    ac_header= ac_cache=
8300  elif test $ac_header; then
8301    ac_cache=$ac_item
8302  else
8303    ac_header=$ac_item
8304  fi
8305done
8306
8307
8308
8309
8310
8311
8312
8313
8314if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8315then :
8316
8317printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8318
8319fi
8320ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8321if test "x$ac_cv_header_stdint_h" = xyes
8322then :
8323
8324else $as_nop
8325  as_fn_error $? "stdint.h is required" "$LINENO" 5
8326fi
8327
8328
8329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether integers are two's complement" >&5
8330printf %s "checking whether integers are two's complement... " >&6; }
8331if test ${krb5_cv_ints_twos_compl+y}
8332then :
8333  printf %s "(cached) " >&6
8334else $as_nop
8335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h.  */
8337#include <limits.h>
8338
8339int
8340main (void)
8341{
8342static int test_array [1 - 2 * !(/* Basic two's complement check */
8343	  ~(-1) == 0 && ~(-1L) == 0L &&
8344	  /* Check that values with sign bit 1 and value bits 0 are valid */
8345	  -(INT_MIN + 1) == INT_MAX && -(LONG_MIN + 1) == LONG_MAX &&
8346	  /* Check that unsigned-to-signed conversions preserve bit patterns */
8347	  (int)((unsigned int)INT_MAX + 1) == INT_MIN &&
8348	  (long)((unsigned long)LONG_MAX + 1) == LONG_MIN)];
8349test_array [0] = 0;
8350return test_array [0];
8351
8352  ;
8353  return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_compile "$LINENO"
8357then :
8358  krb5_cv_ints_twos_compl=yes
8359else $as_nop
8360  krb5_cv_ints_twos_compl=no
8361fi
8362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8363fi
8364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_ints_twos_compl" >&5
8365printf "%s\n" "$krb5_cv_ints_twos_compl" >&6; }
8366
8367if test "$krb5_cv_ints_twos_compl" = "no"; then
8368  as_fn_error $? "integers are not two's complement" "$LINENO" 5
8369fi
8370
8371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CHAR_BIT is 8" >&5
8372printf %s "checking whether CHAR_BIT is 8... " >&6; }
8373if test ${krb5_cv_char_bit_8+y}
8374then :
8375  printf %s "(cached) " >&6
8376else $as_nop
8377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h.  */
8379#include <limits.h>
8380#if CHAR_BIT != 8
8381  #error CHAR_BIT != 8
8382#endif
8383
8384_ACEOF
8385if ac_fn_c_try_cpp "$LINENO"
8386then :
8387  krb5_cv_char_bit_8=yes
8388else $as_nop
8389  krb5_cv_char_bit_8=no
8390fi
8391rm -f conftest.err conftest.i conftest.$ac_ext
8392fi
8393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_char_bit_8" >&5
8394printf "%s\n" "$krb5_cv_char_bit_8" >&6; }
8395
8396if test "$krb5_cv_char_bit_8" = "no"; then
8397  as_fn_error $? "CHAR_BIT is not 8" "$LINENO" 5
8398fi
8399
8400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if va_copy is available" >&5
8401printf %s "checking if va_copy is available... " >&6; }
8402if test ${krb5_cv_va_copy+y}
8403then :
8404  printf %s "(cached) " >&6
8405else $as_nop
8406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h.  */
8408
8409#include <stdarg.h>
8410void f(va_list ap) {
8411  va_list ap2;
8412  va_copy(ap2, ap);
8413  va_end(ap2);
8414}
8415va_list x;
8416int main()
8417{
8418  f(x);
8419  return 0;
8420}
8421_ACEOF
8422if ac_fn_c_try_link "$LINENO"
8423then :
8424  krb5_cv_va_copy=yes
8425else $as_nop
8426  krb5_cv_va_copy=no
8427fi
8428rm -f core conftest.err conftest.$ac_objext conftest.beam \
8429    conftest$ac_exeext conftest.$ac_ext
8430fi
8431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_va_copy" >&5
8432printf "%s\n" "$krb5_cv_va_copy" >&6; }
8433if test "$krb5_cv_va_copy" = yes; then
8434
8435printf "%s\n" "#define HAS_VA_COPY 1" >>confdefs.h
8436
8437fi
8438
8439# Note that this isn't checking if the copied value *works*, just
8440# whether the C language constraints permit the copying.  If
8441# va_list is defined as an array type, it can't be assigned.
8442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if va_list objects can be copied by assignment" >&5
8443printf %s "checking if va_list objects can be copied by assignment... " >&6; }
8444if test ${krb5_cv_va_simple_copy+y}
8445then :
8446  printf %s "(cached) " >&6
8447else $as_nop
8448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450
8451#include <stdarg.h>
8452void f(va_list va2) {
8453  va_list va1;
8454  va1 = va2;
8455}
8456_ACEOF
8457if ac_fn_c_try_compile "$LINENO"
8458then :
8459  krb5_cv_va_simple_copy=yes
8460else $as_nop
8461  krb5_cv_va_simple_copy=no
8462fi
8463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8464fi
8465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_va_simple_copy" >&5
8466printf "%s\n" "$krb5_cv_va_simple_copy" >&6; }
8467if test "$krb5_cv_va_simple_copy" = yes; then
8468
8469printf "%s\n" "#define CAN_COPY_VA_LIST 1" >>confdefs.h
8470
8471fi
8472
8473# The following lines are so that configure --help gives some global
8474# configuration options.
8475
8476
8477# Check whether --enable-static was given.
8478if test ${enable_static+y}
8479then :
8480  enableval=$enable_static;
8481else $as_nop
8482  enable_static=no
8483fi
8484
8485# Check whether --enable-shared was given.
8486if test ${enable_shared+y}
8487then :
8488  enableval=$enable_shared;
8489else $as_nop
8490  enable_shared=yes
8491fi
8492
8493
8494if test "x$enable_static" = "x$enable_shared"; then
8495  as_fn_error $? "--enable-static must be specified with --disable-shared" "$LINENO" 5
8496fi
8497
8498# Check whether --enable-rpath was given.
8499if test ${enable_rpath+y}
8500then :
8501  enableval=$enable_rpath;
8502else $as_nop
8503  enable_rpath=yes
8504fi
8505
8506
8507if test "x$enable_rpath" != xyes ; then
8508	# Unset the rpath flag values set by shlib.conf
8509	SHLIB_RPATH_FLAGS=
8510	RPATH_FLAG=
8511	PROG_RPATH_FLAGS=
8512fi
8513
8514if test "$SHLIBEXT" = ".so-nobuild"; then
8515   as_fn_error $? "Shared libraries are not yet supported on this platform." "$LINENO" 5
8516fi
8517
8518DEPLIBEXT=$SHLIBEXT
8519
8520if test "x$enable_static" = xyes; then
8521	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: using static libraries" >&5
8522printf "%s\n" "$as_me: using static libraries" >&6;}
8523	LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
8524	LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
8525	PLUGIN='libkrb5_$(LIBBASE)$(STLIBEXT)'
8526	PLUGINLINK='$(TOPLIBD)/libkrb5_$(LIBBASE)$(STLIBEXT)'
8527	PLUGININST=install-static
8528	OBJLISTS=OBJS.ST
8529	LIBINSTLIST=install-static
8530	DEPLIBEXT=$STLIBEXT
8531
8532printf "%s\n" "#define STATIC_PLUGINS 1" >>confdefs.h
8533
8534
8535	KDB5_PLUGIN_DEPLIBS='$(TOPLIBD)/libkrb5_db2$(DEPLIBEXT)'
8536	KDB5_PLUGIN_LIBS='-lkrb5_db2'
8537	if test "x$OPENLDAP_PLUGIN" = xyes; then
8538		KDB5_PLUGIN_DEBLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkrb5_ldap$(DEPLIBEXT) $(TOPLIBD)/libkdb_ldap$(DEPLIBEXT)'
8539		KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkrb5_kldap -lkdb_ldap $(LDAP_LIBS)'
8540	fi
8541	# kadm5srv_mit normally comes before kdb on the link line.  Add it
8542	# again after the KDB plugins, since they depend on it for XDR stuff.
8543	KDB5_PLUGIN_DEPLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkadm5srv_mit$(DEPLIBEXT)'
8544	KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkadm5srv_mit'
8545
8546	# avoid duplicate rules generation for AIX and such
8547	SHLIBEXT=.so-nobuild
8548	SHLIBVEXT=.so.v-nobuild
8549	SHLIBSEXT=.so.s-nobuild
8550else
8551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: using shared libraries" >&5
8552printf "%s\n" "$as_me: using shared libraries" >&6;}
8553
8554	# Clear some stuff in case of AIX, etc.
8555	if test "$STLIBEXT" = "$SHLIBEXT" ; then
8556		STLIBEXT=.a-nobuild
8557	fi
8558	case "$SHLIBSEXT" in
8559	.so.s-nobuild)
8560		LIBLIST='lib$(LIBBASE)$(SHLIBEXT)'
8561		LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
8562		LIBINSTLIST="install-shared"
8563		;;
8564	*)
8565		LIBLIST='lib$(LIBBASE)$(SHLIBEXT) lib$(LIBBASE)$(SHLIBSEXT)'
8566		LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
8567		LIBINSTLIST="install-shlib-soname"
8568		;;
8569	esac
8570	OBJLISTS="OBJS.SH"
8571	PLUGIN='$(LIBBASE)$(DYNOBJEXT)'
8572	PLUGINLINK='../$(PLUGIN)'
8573	PLUGININST=install-plugin
8574	KDB5_PLUGIN_DEPLIBS=
8575	KDB5_PLUGIN_LIBS=
8576fi
8577CC_LINK="$CC_LINK_SHARED"
8578CXX_LINK="$CXX_LINK_SHARED"
8579
8580if test -z "$LIBLIST"; then
8581	as_fn_error $? "must enable one of shared or static libraries" "$LINENO" 5
8582fi
8583
8584# Check whether to build profiled libraries.
8585# Check whether --enable-profiled was given.
8586if test ${enable_profiled+y}
8587then :
8588  enableval=$enable_profiled; if test "$enableval" = yes; then
8589  as_fn_error $? "Sorry, profiled libraries do not work in this release." "$LINENO" 5
8590fi
8591fi
8592
8593# Check whether --enable-athena was given.
8594if test ${enable_athena+y}
8595then :
8596  enableval=$enable_athena;
8597fi
8598
8599
8600# Begin autoconf tests for the Makefiles generated out of the top-level
8601# configure.in...
8602
8603
8604
8605
8606
8607
8608
8609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8610printf %s "checking whether ln -s works... " >&6; }
8611LN_S=$as_ln_s
8612if test "$LN_S" = "ln -s"; then
8613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8614printf "%s\n" "yes" >&6; }
8615else
8616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8617printf "%s\n" "no, using $LN_S" >&6; }
8618fi
8619
8620if test -n "$ac_tool_prefix"; then
8621  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624printf %s "checking for $ac_word... " >&6; }
8625if test ${ac_cv_prog_RANLIB+y}
8626then :
8627  printf %s "(cached) " >&6
8628else $as_nop
8629  if test -n "$RANLIB"; then
8630  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8631else
8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635  IFS=$as_save_IFS
8636  case $as_dir in #(((
8637    '') as_dir=./ ;;
8638    */) ;;
8639    *) as_dir=$as_dir/ ;;
8640  esac
8641    for ac_exec_ext in '' $ac_executable_extensions; do
8642  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8643    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8644    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8645    break 2
8646  fi
8647done
8648  done
8649IFS=$as_save_IFS
8650
8651fi
8652fi
8653RANLIB=$ac_cv_prog_RANLIB
8654if test -n "$RANLIB"; then
8655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8656printf "%s\n" "$RANLIB" >&6; }
8657else
8658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659printf "%s\n" "no" >&6; }
8660fi
8661
8662
8663fi
8664if test -z "$ac_cv_prog_RANLIB"; then
8665  ac_ct_RANLIB=$RANLIB
8666  # Extract the first word of "ranlib", so it can be a program name with args.
8667set dummy ranlib; ac_word=$2
8668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669printf %s "checking for $ac_word... " >&6; }
8670if test ${ac_cv_prog_ac_ct_RANLIB+y}
8671then :
8672  printf %s "(cached) " >&6
8673else $as_nop
8674  if test -n "$ac_ct_RANLIB"; then
8675  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8676else
8677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678for as_dir in $PATH
8679do
8680  IFS=$as_save_IFS
8681  case $as_dir in #(((
8682    '') as_dir=./ ;;
8683    */) ;;
8684    *) as_dir=$as_dir/ ;;
8685  esac
8686    for ac_exec_ext in '' $ac_executable_extensions; do
8687  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8688    ac_cv_prog_ac_ct_RANLIB="ranlib"
8689    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8690    break 2
8691  fi
8692done
8693  done
8694IFS=$as_save_IFS
8695
8696fi
8697fi
8698ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8699if test -n "$ac_ct_RANLIB"; then
8700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8701printf "%s\n" "$ac_ct_RANLIB" >&6; }
8702else
8703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704printf "%s\n" "no" >&6; }
8705fi
8706
8707  if test "x$ac_ct_RANLIB" = x; then
8708    RANLIB=":"
8709  else
8710    case $cross_compiling:$ac_tool_warned in
8711yes:)
8712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8713printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8714ac_tool_warned=yes ;;
8715esac
8716    RANLIB=$ac_ct_RANLIB
8717  fi
8718else
8719  RANLIB="$ac_cv_prog_RANLIB"
8720fi
8721
8722
8723  # Find a good install program.  We prefer a C program (faster),
8724# so one script is as good as another.  But avoid the broken or
8725# incompatible versions:
8726# SysV /etc/install, /usr/sbin/install
8727# SunOS /usr/etc/install
8728# IRIX /sbin/install
8729# AIX /bin/install
8730# AmigaOS /C/install, which installs bootblocks on floppy discs
8731# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8732# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8733# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8734# OS/2's system install, which has a completely different semantic
8735# ./install, which can be erroneously created by make from ./install.sh.
8736# Reject install programs that cannot install multiple files.
8737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8738printf %s "checking for a BSD-compatible install... " >&6; }
8739if test -z "$INSTALL"; then
8740if test ${ac_cv_path_install+y}
8741then :
8742  printf %s "(cached) " >&6
8743else $as_nop
8744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747  IFS=$as_save_IFS
8748  case $as_dir in #(((
8749    '') as_dir=./ ;;
8750    */) ;;
8751    *) as_dir=$as_dir/ ;;
8752  esac
8753    # Account for fact that we put trailing slashes in our PATH walk.
8754case $as_dir in #((
8755  ./ | /[cC]/* | \
8756  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8757  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8758  /usr/ucb/* ) ;;
8759  *)
8760    # OSF1 and SCO ODT 3.0 have their own names for install.
8761    # Don't use installbsd from OSF since it installs stuff as root
8762    # by default.
8763    for ac_prog in ginstall scoinst install; do
8764      for ac_exec_ext in '' $ac_executable_extensions; do
8765	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8766	  if test $ac_prog = install &&
8767	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8768	    # AIX install.  It has an incompatible calling convention.
8769	    :
8770	  elif test $ac_prog = install &&
8771	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8772	    # program-specific install script used by HP pwplus--don't use.
8773	    :
8774	  else
8775	    rm -rf conftest.one conftest.two conftest.dir
8776	    echo one > conftest.one
8777	    echo two > conftest.two
8778	    mkdir conftest.dir
8779	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8780	      test -s conftest.one && test -s conftest.two &&
8781	      test -s conftest.dir/conftest.one &&
8782	      test -s conftest.dir/conftest.two
8783	    then
8784	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8785	      break 3
8786	    fi
8787	  fi
8788	fi
8789      done
8790    done
8791    ;;
8792esac
8793
8794  done
8795IFS=$as_save_IFS
8796
8797rm -rf conftest.one conftest.two conftest.dir
8798
8799fi
8800  if test ${ac_cv_path_install+y}; then
8801    INSTALL=$ac_cv_path_install
8802  else
8803    # As a last resort, use the slow shell script.  Don't cache a
8804    # value for INSTALL within a source directory, because that will
8805    # break other packages using the cache if that directory is
8806    # removed, or if the value is a relative name.
8807    INSTALL=$ac_install_sh
8808  fi
8809fi
8810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8811printf "%s\n" "$INSTALL" >&6; }
8812
8813# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8814# It thinks the first close brace ends the variable substitution.
8815test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8816
8817test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8818
8819test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8820
8821if test -n "$ac_tool_prefix"; then
8822  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8823set dummy ${ac_tool_prefix}ar; ac_word=$2
8824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825printf %s "checking for $ac_word... " >&6; }
8826if test ${ac_cv_prog_AR+y}
8827then :
8828  printf %s "(cached) " >&6
8829else $as_nop
8830  if test -n "$AR"; then
8831  ac_cv_prog_AR="$AR" # Let the user override the test.
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836  IFS=$as_save_IFS
8837  case $as_dir in #(((
8838    '') as_dir=./ ;;
8839    */) ;;
8840    *) as_dir=$as_dir/ ;;
8841  esac
8842    for ac_exec_ext in '' $ac_executable_extensions; do
8843  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8844    ac_cv_prog_AR="${ac_tool_prefix}ar"
8845    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8846    break 2
8847  fi
8848done
8849  done
8850IFS=$as_save_IFS
8851
8852fi
8853fi
8854AR=$ac_cv_prog_AR
8855if test -n "$AR"; then
8856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8857printf "%s\n" "$AR" >&6; }
8858else
8859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860printf "%s\n" "no" >&6; }
8861fi
8862
8863
8864fi
8865if test -z "$ac_cv_prog_AR"; then
8866  ac_ct_AR=$AR
8867  # Extract the first word of "ar", so it can be a program name with args.
8868set dummy ar; ac_word=$2
8869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8870printf %s "checking for $ac_word... " >&6; }
8871if test ${ac_cv_prog_ac_ct_AR+y}
8872then :
8873  printf %s "(cached) " >&6
8874else $as_nop
8875  if test -n "$ac_ct_AR"; then
8876  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8877else
8878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879for as_dir in $PATH
8880do
8881  IFS=$as_save_IFS
8882  case $as_dir in #(((
8883    '') as_dir=./ ;;
8884    */) ;;
8885    *) as_dir=$as_dir/ ;;
8886  esac
8887    for ac_exec_ext in '' $ac_executable_extensions; do
8888  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8889    ac_cv_prog_ac_ct_AR="ar"
8890    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8891    break 2
8892  fi
8893done
8894  done
8895IFS=$as_save_IFS
8896
8897fi
8898fi
8899ac_ct_AR=$ac_cv_prog_ac_ct_AR
8900if test -n "$ac_ct_AR"; then
8901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8902printf "%s\n" "$ac_ct_AR" >&6; }
8903else
8904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905printf "%s\n" "no" >&6; }
8906fi
8907
8908  if test "x$ac_ct_AR" = x; then
8909    AR="false"
8910  else
8911    case $cross_compiling:$ac_tool_warned in
8912yes:)
8913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915ac_tool_warned=yes ;;
8916esac
8917    AR=$ac_ct_AR
8918  fi
8919else
8920  AR="$ac_cv_prog_AR"
8921fi
8922
8923if test "$AR" = "false"; then
8924  as_fn_error $? "ar not found in PATH" "$LINENO" 5
8925fi
8926# Extract the first word of "perl", so it can be a program name with args.
8927set dummy perl; ac_word=$2
8928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929printf %s "checking for $ac_word... " >&6; }
8930if test ${ac_cv_prog_PERL+y}
8931then :
8932  printf %s "(cached) " >&6
8933else $as_nop
8934  if test -n "$PERL"; then
8935  ac_cv_prog_PERL="$PERL" # Let the user override the test.
8936else
8937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938for as_dir in $PATH
8939do
8940  IFS=$as_save_IFS
8941  case $as_dir in #(((
8942    '') as_dir=./ ;;
8943    */) ;;
8944    *) as_dir=$as_dir/ ;;
8945  esac
8946    for ac_exec_ext in '' $ac_executable_extensions; do
8947  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8948    ac_cv_prog_PERL="perl"
8949    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8950    break 2
8951  fi
8952done
8953  done
8954IFS=$as_save_IFS
8955
8956  test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
8957fi
8958fi
8959PERL=$ac_cv_prog_PERL
8960if test -n "$PERL"; then
8961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8962printf "%s\n" "$PERL" >&6; }
8963else
8964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965printf "%s\n" "no" >&6; }
8966fi
8967
8968
8969if test "$ac_cv_prog_PERL" = "false"; then
8970  as_fn_error $? "Perl is now required for Kerberos builds." "$LINENO" 5
8971fi
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working regcomp" >&5
8999printf %s "checking for working regcomp... " >&6; }
9000if test ${ac_cv_func_regcomp+y}
9001then :
9002  printf %s "(cached) " >&6
9003else $as_nop
9004  if test "$cross_compiling" = yes
9005then :
9006  as_fn_error $? "Cannot test regcomp when cross compiling" "$LINENO" 5
9007else $as_nop
9008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009/* end confdefs.h.  */
9010#include <sys/types.h>
9011      #include <regex.h>
9012      regex_t x; regmatch_t m;
9013int
9014main (void)
9015{
9016return regcomp(&x,"pat.*",0) || regexec(&x,"pattern",1,&m,0);
9017  ;
9018  return 0;
9019}
9020_ACEOF
9021if ac_fn_c_try_run "$LINENO"
9022then :
9023  ac_cv_func_regcomp=yes
9024else $as_nop
9025  ac_cv_func_regcomp=no
9026fi
9027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9028  conftest.$ac_objext conftest.beam conftest.$ac_ext
9029fi
9030
9031fi
9032
9033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_regcomp" >&5
9034printf "%s\n" "$ac_cv_func_regcomp" >&6; }
9035test $ac_cv_func_regcomp = yes &&
9036printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
9037
9038if test $ac_cv_func_regcomp = no; then
9039 save_LIBS="$LIBS"
9040 LIBS=-lgen
9041 ac_fn_c_check_func "$LINENO" "compile" "ac_cv_func_compile"
9042if test "x$ac_cv_func_compile" = xyes
9043then :
9044  printf "%s\n" "#define HAVE_COMPILE 1" >>confdefs.h
9045
9046fi
9047ac_fn_c_check_func "$LINENO" "step" "ac_cv_func_step"
9048if test "x$ac_cv_func_step" = xyes
9049then :
9050  printf "%s\n" "#define HAVE_STEP 1" >>confdefs.h
9051
9052fi
9053
9054 LIBS="$save_LIBS"
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compile in -lgen" >&5
9056printf %s "checking for compile in -lgen... " >&6; }
9057if test ${ac_cv_lib_gen_compile+y}
9058then :
9059  printf %s "(cached) " >&6
9060else $as_nop
9061  ac_check_lib_save_LIBS=$LIBS
9062LIBS="-lgen  $LIBS"
9063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064/* end confdefs.h.  */
9065
9066/* Override any GCC internal prototype to avoid an error.
9067   Use char because int might match the return type of a GCC
9068   builtin and then its argument prototype would still apply.  */
9069char compile ();
9070int
9071main (void)
9072{
9073return compile ();
9074  ;
9075  return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_link "$LINENO"
9079then :
9080  ac_cv_lib_gen_compile=yes
9081else $as_nop
9082  ac_cv_lib_gen_compile=no
9083fi
9084rm -f core conftest.err conftest.$ac_objext conftest.beam \
9085    conftest$ac_exeext conftest.$ac_ext
9086LIBS=$ac_check_lib_save_LIBS
9087fi
9088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_compile" >&5
9089printf "%s\n" "$ac_cv_lib_gen_compile" >&6; }
9090if test "x$ac_cv_lib_gen_compile" = xyes
9091then :
9092  GEN_LIB=-lgen
9093else $as_nop
9094  GEN_LIB=
9095fi
9096
9097
9098fi
9099
9100
9101
9102
9103
9104
9105# for kprop
9106ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9107if test "x$ac_cv_type_mode_t" = xyes
9108then :
9109
9110else $as_nop
9111
9112printf "%s\n" "#define mode_t int" >>confdefs.h
9113
9114fi
9115
9116
9117
9118
9119
9120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype provided" >&5
9121printf %s "checking if daemon needs a prototype provided... " >&6; }
9122if test ${krb5_cv_func_daemon_noproto+y}
9123then :
9124  printf %s "(cached) " >&6
9125else $as_nop
9126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128#ifdef HAVE_UNISTD_H
9129#include <unistd.h>
9130#endif
9131int
9132main (void)
9133{
9134#undef daemon
9135      struct k5foo {int foo; } xx;
9136      extern int daemon (struct k5foo*);
9137      daemon(&xx);
9138  ;
9139  return 0;
9140}
9141_ACEOF
9142if ac_fn_c_try_compile "$LINENO"
9143then :
9144  krb5_cv_func_daemon_noproto=yes
9145else $as_nop
9146  krb5_cv_func_daemon_noproto=no
9147fi
9148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9149fi
9150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_daemon_noproto" >&5
9151printf "%s\n" "$krb5_cv_func_daemon_noproto" >&6; }
9152if test $krb5_cv_func_daemon_noproto = yes; then
9153
9154printf "%s\n" "#define NEED_DAEMON_PROTO 1" >>confdefs.h
9155
9156fi
9157
9158
9159
9160sock_set=no
9161for sock_arg1 in "struct sockaddr *" "void *"
9162do
9163  for sock_arg2 in "size_t *" "int *" "socklen_t *"
9164  do
9165	if test $sock_set = no; then
9166
9167krb5_lib_var=`echo "$sock_arg1 $sock_arg2" | sed 'y% ./+-*%___p_p%'`
9168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname() takes arguments $sock_arg1 and $sock_arg2" >&5
9169printf %s "checking if getsockname() takes arguments $sock_arg1 and $sock_arg2... " >&6; }
9170if eval test \${krb5_cv_getsockname_proto_$krb5_lib_var+y}
9171then :
9172  printf %s "(cached) " >&6
9173else $as_nop
9174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175/* end confdefs.h.  */
9176#include <sys/types.h>
9177      #include <sys/socket.h>
9178      extern int getsockname(int, $sock_arg1, $sock_arg2);
9179_ACEOF
9180if ac_fn_c_try_compile "$LINENO"
9181then :
9182  eval "krb5_cv_getsockname_proto_$krb5_lib_var=yes"
9183else $as_nop
9184  eval "krb5_cv_getsockname_proto_$krb5_lib_var=no"
9185fi
9186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9187fi
9188
9189if eval "test \"`echo '$krb5_cv_getsockname_proto_'$krb5_lib_var`\" = yes"; then
9190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9191printf "%s\n" "yes" >&6; }
9192	sock_set=yes; res1="$sock_arg1"; res2="$sock_arg2"
9193else
9194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195printf "%s\n" "no" >&6; }
9196fi
9197
9198	fi
9199  done
9200done
9201if test "$sock_set" = no; then
9202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: assuming struct sockaddr and socklen_t for getsockname args" >&5
9203printf "%s\n" "$as_me: assuming struct sockaddr and socklen_t for getsockname args" >&6;}
9204  res1="struct sockaddr *"
9205  res2="socklen_t *"
9206fi
9207res1=`echo "$res1" | tr -d '*' | sed -e 's/ *$//'`
9208res2=`echo "$res2" | tr -d '*' | sed -e 's/ *$//'`
9209
9210printf "%s\n" "#define GETSOCKNAME_ARG3_TYPE $res2" >>confdefs.h
9211
9212
9213
9214
9215printf "%s\n" "#define GETPEERNAME_ARG3_TYPE GETSOCKNAME_ARG3_TYPE" >>confdefs.h
9216
9217
9218LIBUTIL=
9219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lutil" >&5
9220printf %s "checking for main in -lutil... " >&6; }
9221if test ${ac_cv_lib_util_main+y}
9222then :
9223  printf %s "(cached) " >&6
9224else $as_nop
9225  ac_check_lib_save_LIBS=$LIBS
9226LIBS="-lutil  $LIBS"
9227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228/* end confdefs.h.  */
9229
9230
9231int
9232main (void)
9233{
9234return main ();
9235  ;
9236  return 0;
9237}
9238_ACEOF
9239if ac_fn_c_try_link "$LINENO"
9240then :
9241  ac_cv_lib_util_main=yes
9242else $as_nop
9243  ac_cv_lib_util_main=no
9244fi
9245rm -f core conftest.err conftest.$ac_objext conftest.beam \
9246    conftest$ac_exeext conftest.$ac_ext
9247LIBS=$ac_check_lib_save_LIBS
9248fi
9249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_main" >&5
9250printf "%s\n" "$ac_cv_lib_util_main" >&6; }
9251if test "x$ac_cv_lib_util_main" = xyes
9252then :
9253
9254printf "%s\n" "#define HAVE_LIBUTIL 1" >>confdefs.h
9255
9256LIBUTIL=-lutil
9257
9258fi
9259
9260
9261
9262# Determine if NLS is desired and supported.
9263po=
9264# Check whether --enable-nls was given.
9265if test ${enable_nls+y}
9266then :
9267  enableval=$enable_nls;
9268else $as_nop
9269  enable_nls=check
9270fi
9271
9272if test "$enable_nls" != no; then
9273  ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9274if test "x$ac_cv_header_libintl_h" = xyes
9275then :
9276
9277    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dgettext" >&5
9278printf %s "checking for library containing dgettext... " >&6; }
9279if test ${ac_cv_search_dgettext+y}
9280then :
9281  printf %s "(cached) " >&6
9282else $as_nop
9283  ac_func_search_save_LIBS=$LIBS
9284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h.  */
9286
9287/* Override any GCC internal prototype to avoid an error.
9288   Use char because int might match the return type of a GCC
9289   builtin and then its argument prototype would still apply.  */
9290char dgettext ();
9291int
9292main (void)
9293{
9294return dgettext ();
9295  ;
9296  return 0;
9297}
9298_ACEOF
9299for ac_lib in '' intl
9300do
9301  if test -z "$ac_lib"; then
9302    ac_res="none required"
9303  else
9304    ac_res=-l$ac_lib
9305    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9306  fi
9307  if ac_fn_c_try_link "$LINENO"
9308then :
9309  ac_cv_search_dgettext=$ac_res
9310fi
9311rm -f core conftest.err conftest.$ac_objext conftest.beam \
9312    conftest$ac_exeext
9313  if test ${ac_cv_search_dgettext+y}
9314then :
9315  break
9316fi
9317done
9318if test ${ac_cv_search_dgettext+y}
9319then :
9320
9321else $as_nop
9322  ac_cv_search_dgettext=no
9323fi
9324rm conftest.$ac_ext
9325LIBS=$ac_func_search_save_LIBS
9326fi
9327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgettext" >&5
9328printf "%s\n" "$ac_cv_search_dgettext" >&6; }
9329ac_res=$ac_cv_search_dgettext
9330if test "$ac_res" != no
9331then :
9332  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9333
9334
9335printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
9336
9337      nls_enabled=yes
9338fi
9339
9340fi
9341
9342
9343  # Extract the first word of "msgfmt", so it can be a program name with args.
9344set dummy msgfmt; ac_word=$2
9345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346printf %s "checking for $ac_word... " >&6; }
9347if test ${ac_cv_prog_MSGFMT+y}
9348then :
9349  printf %s "(cached) " >&6
9350else $as_nop
9351  if test -n "$MSGFMT"; then
9352  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
9353else
9354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357  IFS=$as_save_IFS
9358  case $as_dir in #(((
9359    '') as_dir=./ ;;
9360    */) ;;
9361    *) as_dir=$as_dir/ ;;
9362  esac
9363    for ac_exec_ext in '' $ac_executable_extensions; do
9364  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9365    ac_cv_prog_MSGFMT="msgfmt"
9366    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9367    break 2
9368  fi
9369done
9370  done
9371IFS=$as_save_IFS
9372
9373fi
9374fi
9375MSGFMT=$ac_cv_prog_MSGFMT
9376if test -n "$MSGFMT"; then
9377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9378printf "%s\n" "$MSGFMT" >&6; }
9379else
9380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381printf "%s\n" "no" >&6; }
9382fi
9383
9384
9385  if test x"$MSGFMT" != x; then
9386    ac_config_files="$ac_config_files po/Makefile:$srcdir/./config/pre.in:po/Makefile.in:po/deps:$srcdir/./config/post.in"
9387
9388
9389
9390    po=po
9391  fi
9392
9393  # Error out if --enable-nls was explicitly requested but can't be enabled.
9394  if test "$enable_nls" = yes; then
9395    if test "$nls_enabled" != yes -o "x$po" = x; then
9396      as_fn_error $? "NLS support requested but cannot be built" "$LINENO" 5
9397    fi
9398  fi
9399fi
9400
9401
9402# for kdc
9403ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
9404if test "x$ac_cv_header_sys_sockio_h" = xyes
9405then :
9406  printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
9407
9408fi
9409ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
9410if test "x$ac_cv_header_ifaddrs_h" = xyes
9411then :
9412  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
9413
9414fi
9415ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
9416if test "x$ac_cv_header_unistd_h" = xyes
9417then :
9418  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
9419
9420fi
9421ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
9422if test "x$ac_cv_header_fnmatch_h" = xyes
9423then :
9424  printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
9425
9426fi
9427
9428ac_fn_c_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
9429if test "x$ac_cv_func_vsprintf" = xyes
9430then :
9431  printf "%s\n" "#define HAVE_VSPRINTF 1" >>confdefs.h
9432
9433fi
9434ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
9435if test "x$ac_cv_func_vasprintf" = xyes
9436then :
9437  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
9438
9439fi
9440ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
9441if test "x$ac_cv_func_vsnprintf" = xyes
9442then :
9443  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
9444
9445fi
9446ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
9447if test "x$ac_cv_func_strlcpy" = xyes
9448then :
9449  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
9450
9451fi
9452ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
9453if test "x$ac_cv_func_fnmatch" = xyes
9454then :
9455  printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
9456
9457fi
9458ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
9459if test "x$ac_cv_func_secure_getenv" = xyes
9460then :
9461  printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
9462
9463fi
9464
9465
9466EXTRA_SUPPORT_SYMS=
9467ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
9468if test "x$ac_cv_func_strlcpy" = xyes
9469then :
9470  STRLCPY_ST_OBJ=
9471STRLCPY_OBJ=
9472else $as_nop
9473  STRLCPY_ST_OBJ=strlcpy.o
9474STRLCPY_OBJ='$(OUTPRE)strlcpy.$(OBJEXT)'
9475EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_strlcpy krb5int_strlcat"
9476fi
9477
9478
9479
9480
9481ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
9482if test "x$ac_cv_func_getopt" = xyes
9483then :
9484  GETOPT_ST_OBJ=
9485GETOPT_OBJ=
9486
9487printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
9488
9489else $as_nop
9490  GETOPT_ST_OBJ='getopt.o'
9491GETOPT_OBJ='$(OUTPRE)getopt.$(OBJEXT)'
9492EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_optind k5_optarg k5_opterr k5_optopt k5_getopt"
9493fi
9494
9495
9496
9497
9498ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
9499if test "x$ac_cv_func_getopt_long" = xyes
9500then :
9501  GETOPT_LONG_ST_OBJ=
9502GETOPT_LONG_OBJ=
9503
9504printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
9505
9506else $as_nop
9507  GETOPT_LONG_ST_OBJ='getopt_long.o'
9508GETOPT_LONG_OBJ='$(OUTPRE)getopt_long.$(OBJEXT)'
9509EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_getopt_long"
9510fi
9511
9512
9513
9514
9515ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
9516if test "x$ac_cv_func_fnmatch" = xyes
9517then :
9518  FNMATCH_ST_OBJ=
9519FNMATCH_OBJ=
9520else $as_nop
9521  FNMATCH_ST_OBJ=fnmatch.o
9522FNMATCH_OBJ='$(OUTPRE)fnmatch.$(OBJEXT)'
9523EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_fnmatch"
9524fi
9525
9526
9527
9528
9529ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
9530if test "x$ac_cv_func_vasprintf" = xyes
9531then :
9532  PRINTF_ST_OBJ=
9533PRINTF_OBJ=
9534else $as_nop
9535  PRINTF_ST_OBJ=printf.o
9536PRINTF_OBJ='$(OUTPRE)printf.$(OBJEXT)'
9537EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_asprintf krb5int_vasprintf"
9538fi
9539
9540
9541
9542
9543if test "x$ac_cv_func_vasprintf" = xyes; then
9544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype provided" >&5
9545printf %s "checking if vasprintf needs a prototype provided... " >&6; }
9546if test ${krb5_cv_func_vasprintf_noproto+y}
9547then :
9548  printf %s "(cached) " >&6
9549else $as_nop
9550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551/* end confdefs.h.  */
9552#include <stdarg.h>
9553#include <stdio.h>
9554
9555int
9556main (void)
9557{
9558#undef vasprintf
9559      struct k5foo {int foo; } xx;
9560      extern int vasprintf (struct k5foo*);
9561      vasprintf(&xx);
9562  ;
9563  return 0;
9564}
9565_ACEOF
9566if ac_fn_c_try_compile "$LINENO"
9567then :
9568  krb5_cv_func_vasprintf_noproto=yes
9569else $as_nop
9570  krb5_cv_func_vasprintf_noproto=no
9571fi
9572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9573fi
9574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_vasprintf_noproto" >&5
9575printf "%s\n" "$krb5_cv_func_vasprintf_noproto" >&6; }
9576if test $krb5_cv_func_vasprintf_noproto = yes; then
9577
9578printf "%s\n" "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h
9579
9580fi
9581fi
9582
9583
9584
9585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if swab needs a prototype provided" >&5
9586printf %s "checking if swab needs a prototype provided... " >&6; }
9587if test ${krb5_cv_func_swab_noproto+y}
9588then :
9589  printf %s "(cached) " >&6
9590else $as_nop
9591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h.  */
9593#include <string.h>
9594#ifdef HAVE_UNISTD_H
9595#include <unistd.h>
9596#endif
9597/* Solaris 8 declares swab in stdlib.h.  */
9598#include <stdlib.h>
9599
9600int
9601main (void)
9602{
9603#undef swab
9604      struct k5foo {int foo; } xx;
9605      extern int swab (struct k5foo*);
9606      swab(&xx);
9607  ;
9608  return 0;
9609}
9610_ACEOF
9611if ac_fn_c_try_compile "$LINENO"
9612then :
9613  krb5_cv_func_swab_noproto=yes
9614else $as_nop
9615  krb5_cv_func_swab_noproto=no
9616fi
9617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9618fi
9619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_swab_noproto" >&5
9620printf "%s\n" "$krb5_cv_func_swab_noproto" >&6; }
9621if test $krb5_cv_func_swab_noproto = yes; then
9622
9623printf "%s\n" "#define NEED_SWAB_PROTO 1" >>confdefs.h
9624
9625fi
9626
9627
9628
9629ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
9630if test "x$ac_cv_func_secure_getenv" = xyes
9631then :
9632  SECURE_GETENV_ST_OBJ=
9633SECURE_GETENV_OBJ=
9634SECURE_GETENV_INIT=
9635else $as_nop
9636  SECURE_GETENV_ST_OBJ=secure_getenv.o
9637SECURE_GETENV_OBJ='$(OUTPRE)secure_getenv.$(OBJEXT)'
9638SECURE_GETENV_INIT=k5_secure_getenv_init
9639EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_secure_getenv"
9640fi
9641
9642
9643
9644
9645
9646for ac_prog in gawk mawk nawk awk
9647do
9648  # Extract the first word of "$ac_prog", so it can be a program name with args.
9649set dummy $ac_prog; ac_word=$2
9650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9651printf %s "checking for $ac_word... " >&6; }
9652if test ${ac_cv_prog_AWK+y}
9653then :
9654  printf %s "(cached) " >&6
9655else $as_nop
9656  if test -n "$AWK"; then
9657  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9658else
9659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662  IFS=$as_save_IFS
9663  case $as_dir in #(((
9664    '') as_dir=./ ;;
9665    */) ;;
9666    *) as_dir=$as_dir/ ;;
9667  esac
9668    for ac_exec_ext in '' $ac_executable_extensions; do
9669  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9670    ac_cv_prog_AWK="$ac_prog"
9671    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9672    break 2
9673  fi
9674done
9675  done
9676IFS=$as_save_IFS
9677
9678fi
9679fi
9680AWK=$ac_cv_prog_AWK
9681if test -n "$AWK"; then
9682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9683printf "%s\n" "$AWK" >&6; }
9684else
9685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686printf "%s\n" "no" >&6; }
9687fi
9688
9689
9690  test -n "$AWK" && break
9691done
9692
9693 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
9694#include <sys/socket.h>
9695"
9696if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
9697then :
9698
9699printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
9700
9701
9702fi
9703
9704
9705ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
9706if test "x$ac_cv_header_sys_types_h" = xyes
9707then :
9708  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
9709
9710fi
9711ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9712if test "x$ac_cv_header_sys_socket_h" = xyes
9713then :
9714  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
9715
9716fi
9717ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9718if test "x$ac_cv_header_netinet_in_h" = xyes
9719then :
9720  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
9721
9722fi
9723ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9724if test "x$ac_cv_header_netdb_h" = xyes
9725then :
9726  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
9727
9728fi
9729
9730ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
9731if test "x$ac_cv_func_inet_ntop" = xyes
9732then :
9733  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
9734
9735fi
9736ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
9737if test "x$ac_cv_func_inet_pton" = xyes
9738then :
9739  printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
9740
9741fi
9742ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
9743if test "x$ac_cv_func_getnameinfo" = xyes
9744then :
9745  printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
9746
9747fi
9748
9749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
9750printf %s "checking for getaddrinfo... " >&6; }
9751if test ${ac_cv_func_getaddrinfo+y}
9752then :
9753  printf %s "(cached) " >&6
9754else $as_nop
9755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756/* end confdefs.h.  */
9757#ifdef HAVE_NETDB_H
9758      #include <netdb.h>
9759      #endif
9760
9761int
9762main (void)
9763{
9764struct addrinfo *ai;
9765      getaddrinfo("kerberos.mit.edu", "echo", 0, &ai);
9766  ;
9767  return 0;
9768}
9769_ACEOF
9770if ac_fn_c_try_link "$LINENO"
9771then :
9772  ac_cv_func_getaddrinfo=yes
9773else $as_nop
9774  ac_cv_func_getaddrinfo=no
9775fi
9776rm -f core conftest.err conftest.$ac_objext conftest.beam \
9777    conftest$ac_exeext conftest.$ac_ext
9778fi
9779
9780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
9781printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
9782if test $ac_cv_func_getaddrinfo = yes; then
9783
9784printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
9785
9786fi
9787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support without -DINET6" >&5
9788printf %s "checking for IPv6 compile-time support without -DINET6... " >&6; }
9789if test ${krb5_cv_inet6+y}
9790then :
9791  printf %s "(cached) " >&6
9792else $as_nop
9793
9794if test "$ac_cv_func_inet_ntop" != "yes" ; then
9795  krb5_cv_inet6=no
9796else
9797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798/* end confdefs.h.  */
9799#ifdef HAVE_SYS_TYPES_H
9800        #include <sys/types.h>
9801        #endif
9802        #include <sys/socket.h>
9803        #include <netinet/in.h>
9804        #include <netdb.h>
9805
9806int
9807main (void)
9808{
9809struct sockaddr_in6 in;
9810        AF_INET6;
9811        IN6_IS_ADDR_LINKLOCAL(&in.sin6_addr);
9812  ;
9813  return 0;
9814}
9815_ACEOF
9816if ac_fn_c_try_compile "$LINENO"
9817then :
9818  krb5_cv_inet6=yes
9819else $as_nop
9820  krb5_cv_inet6=no
9821fi
9822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9823fi
9824fi
9825
9826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6" >&5
9827printf "%s\n" "$krb5_cv_inet6" >&6; }
9828if test "$krb5_cv_inet6" = no && test "$ac_cv_func_inet_ntop" = yes; then
9829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support with -DINET6" >&5
9830printf %s "checking for IPv6 compile-time support with -DINET6... " >&6; }
9831if test ${krb5_cv_inet6_with_dinet6+y}
9832then :
9833  printf %s "(cached) " >&6
9834else $as_nop
9835
9836old_CC="$CC"
9837CC="$CC -DINET6"
9838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839/* end confdefs.h.  */
9840#ifdef HAVE_SYS_TYPES_H
9841      #include <sys/types.h>
9842      #endif
9843      #include <sys/socket.h>
9844      #include <netinet/in.h>
9845      #include <netdb.h>
9846
9847int
9848main (void)
9849{
9850struct sockaddr_in6 in;
9851      AF_INET6;
9852      IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr);
9853  ;
9854  return 0;
9855}
9856_ACEOF
9857if ac_fn_c_try_compile "$LINENO"
9858then :
9859  krb5_cv_inet6_with_dinet6=yes
9860else $as_nop
9861  krb5_cv_inet6_with_dinet6=no
9862fi
9863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9864CC="$old_CC"
9865fi
9866
9867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6_with_dinet6" >&5
9868printf "%s\n" "$krb5_cv_inet6_with_dinet6" >&6; }
9869fi
9870if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes; then
9871  if test "$krb5_cv_inet6_with_dinet6" = yes; then
9872
9873printf "%s\n" "#define INET6 1" >>confdefs.h
9874
9875  fi
9876fi
9877
9878 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
9879#include <sys/socket.h>
9880"
9881if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
9882then :
9883
9884printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
9885
9886
9887fi
9888
9889
9890ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
9891if test "x$ac_cv_func_sigprocmask" = xyes
9892then :
9893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigset_t and POSIX_SIGNALS" >&5
9894printf %s "checking for sigset_t and POSIX_SIGNALS... " >&6; }
9895if test ${krb5_cv_type_sigset_t+y}
9896then :
9897  printf %s "(cached) " >&6
9898else $as_nop
9899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900/* end confdefs.h.  */
9901#include <signal.h>
9902
9903int
9904main (void)
9905{
9906sigset_t x
9907  ;
9908  return 0;
9909}
9910_ACEOF
9911if ac_fn_c_try_compile "$LINENO"
9912then :
9913  krb5_cv_type_sigset_t=yes
9914else $as_nop
9915  krb5_cv_type_sigset_t=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9918fi
9919
9920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_sigset_t" >&5
9921printf "%s\n" "$krb5_cv_type_sigset_t" >&6; }
9922if test $krb5_cv_type_sigset_t = yes; then
9923
9924printf "%s\n" "#define POSIX_SIGNALS 1" >>confdefs.h
9925
9926fi
9927
9928fi
9929
9930
9931# --with-vague-errors disables useful error messages.
9932
9933
9934# Check whether --with-vague-errors was given.
9935if test ${with_vague_errors+y}
9936then :
9937  withval=$with_vague_errors;
9938else $as_nop
9939  withval=no
9940fi
9941
9942if test "$withval" = yes; then
9943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Supplying vague error messages to KDC clients" >&5
9944printf "%s\n" "$as_me: Supplying vague error messages to KDC clients" >&6;}
9945
9946printf "%s\n" "#define KRBCONF_VAGUE_ERRORS 1" >>confdefs.h
9947
9948fi
9949
9950# Check which (if any) audit plugin to build
9951audit_plugin=""
9952# Check whether --enable-audit-plugin was given.
9953if test ${enable_audit_plugin+y}
9954then :
9955  enableval=$enable_audit_plugin;
9956else $as_nop
9957  enableval=no
9958fi
9959
9960if test "$enableval" != no; then
9961    case "$enableval" in
9962    simple)
9963        # if audit_log_user_message is found, we assume
9964        # that audit_open and audit_close are also defined.
9965        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_message in -laudit" >&5
9966printf %s "checking for audit_log_user_message in -laudit... " >&6; }
9967if test ${ac_cv_lib_audit_audit_log_user_message+y}
9968then :
9969  printf %s "(cached) " >&6
9970else $as_nop
9971  ac_check_lib_save_LIBS=$LIBS
9972LIBS="-laudit  $LIBS"
9973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h.  */
9975
9976/* Override any GCC internal prototype to avoid an error.
9977   Use char because int might match the return type of a GCC
9978   builtin and then its argument prototype would still apply.  */
9979char audit_log_user_message ();
9980int
9981main (void)
9982{
9983return audit_log_user_message ();
9984  ;
9985  return 0;
9986}
9987_ACEOF
9988if ac_fn_c_try_link "$LINENO"
9989then :
9990  ac_cv_lib_audit_audit_log_user_message=yes
9991else $as_nop
9992  ac_cv_lib_audit_audit_log_user_message=no
9993fi
9994rm -f core conftest.err conftest.$ac_objext conftest.beam \
9995    conftest$ac_exeext conftest.$ac_ext
9996LIBS=$ac_check_lib_save_LIBS
9997fi
9998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_message" >&5
9999printf "%s\n" "$ac_cv_lib_audit_audit_log_user_message" >&6; }
10000if test "x$ac_cv_lib_audit_audit_log_user_message" = xyes
10001then :
10002  AUDIT_IMPL_LIBS=-laudit
10003                     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"
10004
10005
10006
10007                     audit_plugin=plugins/audit/simple
10008else $as_nop
10009  as_fn_error $? "libaudit not found or undefined symbol audit_log_user_message" "$LINENO" 5
10010fi
10011
10012        ;;
10013    *)
10014        as_fn_error $? "Unknown audit plugin implementation $enableval." "$LINENO" 5
10015        ;;
10016    esac
10017fi
10018
10019
10020
10021# WITH_CRYPTO_IMPL
10022
10023CRYPTO_IMPL=builtin
10024
10025# Check whether --with-crypto-impl was given.
10026if test ${with_crypto_impl+y}
10027then :
10028  withval=$with_crypto_impl; CRYPTO_IMPL=$withval
10029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: k5crypto will use '$withval'" >&5
10030printf "%s\n" "$as_me: k5crypto will use '$withval'" >&6;}
10031fi
10032
10033
10034CRYPTO_BUILTIN_TESTS=no
10035case $CRYPTO_IMPL in
10036builtin)
10037  CRYPTO_BUILTIN_TESTS=yes
10038  ;;
10039openssl)
10040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PKCS7_get_signer_info in -lcrypto" >&5
10041printf %s "checking for PKCS7_get_signer_info in -lcrypto... " >&6; }
10042if test ${ac_cv_lib_crypto_PKCS7_get_signer_info+y}
10043then :
10044  printf %s "(cached) " >&6
10045else $as_nop
10046  ac_check_lib_save_LIBS=$LIBS
10047LIBS="-lcrypto  $LIBS"
10048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049/* end confdefs.h.  */
10050
10051/* Override any GCC internal prototype to avoid an error.
10052   Use char because int might match the return type of a GCC
10053   builtin and then its argument prototype would still apply.  */
10054char PKCS7_get_signer_info ();
10055int
10056main (void)
10057{
10058return PKCS7_get_signer_info ();
10059  ;
10060  return 0;
10061}
10062_ACEOF
10063if ac_fn_c_try_link "$LINENO"
10064then :
10065  ac_cv_lib_crypto_PKCS7_get_signer_info=yes
10066else $as_nop
10067  ac_cv_lib_crypto_PKCS7_get_signer_info=no
10068fi
10069rm -f core conftest.err conftest.$ac_objext conftest.beam \
10070    conftest$ac_exeext conftest.$ac_ext
10071LIBS=$ac_check_lib_save_LIBS
10072fi
10073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_PKCS7_get_signer_info" >&5
10074printf "%s\n" "$ac_cv_lib_crypto_PKCS7_get_signer_info" >&6; }
10075if test "x$ac_cv_lib_crypto_PKCS7_get_signer_info" = xyes
10076then :
10077  printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
10078
10079  LIBS="-lcrypto $LIBS"
10080
10081fi
10082
10083
10084printf "%s\n" "#define CRYPTO_OPENSSL 1" >>confdefs.h
10085
10086  ;;
10087*)
10088  as_fn_error $? "Unknown crypto implementation $withval" "$LINENO" 5
10089  ;;
10090esac
10091
10092
10093
10094
10095# WITH_TLS_IMPL
10096
10097
10098# Check whether --with-tls-impl was given.
10099if test ${with_tls_impl+y}
10100then :
10101  withval=$with_tls_impl; TLS_IMPL=$withval
10102else $as_nop
10103  TLS_IMPL=auto
10104fi
10105
10106case "$TLS_IMPL" in
10107openssl|auto)
10108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
10109printf %s "checking for SSL_CTX_new in -lssl... " >&6; }
10110if test ${ac_cv_lib_ssl_SSL_CTX_new+y}
10111then :
10112  printf %s "(cached) " >&6
10113else $as_nop
10114  ac_check_lib_save_LIBS=$LIBS
10115LIBS="-lssl -lcrypto $LIBS"
10116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118
10119/* Override any GCC internal prototype to avoid an error.
10120   Use char because int might match the return type of a GCC
10121   builtin and then its argument prototype would still apply.  */
10122char SSL_CTX_new ();
10123int
10124main (void)
10125{
10126return SSL_CTX_new ();
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131if ac_fn_c_try_link "$LINENO"
10132then :
10133  ac_cv_lib_ssl_SSL_CTX_new=yes
10134else $as_nop
10135  ac_cv_lib_ssl_SSL_CTX_new=no
10136fi
10137rm -f core conftest.err conftest.$ac_objext conftest.beam \
10138    conftest$ac_exeext conftest.$ac_ext
10139LIBS=$ac_check_lib_save_LIBS
10140fi
10141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
10142printf "%s\n" "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
10143if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
10144then :
10145  have_lib_ssl=true
10146else $as_nop
10147  have_lib_ssl=false
10148fi
10149
10150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
10151printf %s "checking for OpenSSL... " >&6; }
10152  if test x$have_lib_ssl = xtrue ; then
10153
10154printf "%s\n" "#define TLS_IMPL_OPENSSL 1" >>confdefs.h
10155
10156    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10157printf "%s\n" "yes" >&6; }
10158    TLS_IMPL_LIBS="-lssl -lcrypto"
10159    TLS_IMPL=openssl
10160    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: TLS module will use OpenSSL" >&5
10161printf "%s\n" "$as_me: TLS module will use OpenSSL" >&6;}
10162  else
10163    if test "$TLS_IMPL" = openssl ; then
10164      as_fn_error $? "OpenSSL not found!" "$LINENO" 5
10165    else
10166      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found!" >&5
10167printf "%s\n" "$as_me: WARNING: OpenSSL not found!" >&2;}
10168    fi
10169    TLS_IMPL=no
10170    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: building without TLS support" >&5
10171printf "%s\n" "$as_me: building without TLS support" >&6;}
10172  fi
10173  ;;
10174no)
10175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: building without TLS support" >&5
10176printf "%s\n" "$as_me: building without TLS support" >&6;}
10177  ;;
10178*)
10179  as_fn_error $? "Unsupported TLS implementation $withval" "$LINENO" 5
10180  ;;
10181esac
10182
10183if test "$TLS_IMPL" = no; then
10184
10185printf "%s\n" "#define TLS_IMPL_NONE 1" >>confdefs.h
10186
10187fi
10188
10189
10190
10191
10192
10193
10194# Check whether --with-keyutils was given.
10195if test ${with_keyutils+y}
10196then :
10197  withval=$with_keyutils;
10198else $as_nop
10199  with_keyutils=check
10200fi
10201
10202if test "$with_keyutils" != no; then
10203  have_keyutils=false
10204         for ac_header in keyutils.h
10205do :
10206  ac_fn_c_check_header_compile "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
10207if test "x$ac_cv_header_keyutils_h" = xyes
10208then :
10209  printf "%s\n" "#define HAVE_KEYUTILS_H 1" >>confdefs.h
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for add_key in -lkeyutils" >&5
10211printf %s "checking for add_key in -lkeyutils... " >&6; }
10212if test ${ac_cv_lib_keyutils_add_key+y}
10213then :
10214  printf %s "(cached) " >&6
10215else $as_nop
10216  ac_check_lib_save_LIBS=$LIBS
10217LIBS="-lkeyutils  $LIBS"
10218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h.  */
10220
10221/* Override any GCC internal prototype to avoid an error.
10222   Use char because int might match the return type of a GCC
10223   builtin and then its argument prototype would still apply.  */
10224char add_key ();
10225int
10226main (void)
10227{
10228return add_key ();
10229  ;
10230  return 0;
10231}
10232_ACEOF
10233if ac_fn_c_try_link "$LINENO"
10234then :
10235  ac_cv_lib_keyutils_add_key=yes
10236else $as_nop
10237  ac_cv_lib_keyutils_add_key=no
10238fi
10239rm -f core conftest.err conftest.$ac_objext conftest.beam \
10240    conftest$ac_exeext conftest.$ac_ext
10241LIBS=$ac_check_lib_save_LIBS
10242fi
10243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_add_key" >&5
10244printf "%s\n" "$ac_cv_lib_keyutils_add_key" >&6; }
10245if test "x$ac_cv_lib_keyutils_add_key" = xyes
10246then :
10247  have_keyutils=true
10248fi
10249
10250fi
10251
10252done
10253  if test "$have_keyutils" = true; then
10254
10255printf "%s\n" "#define USE_KEYRING_CCACHE 1" >>confdefs.h
10256
10257    LIBS="-lkeyutils $LIBS"
10258    # If libkeyutils supports persistent keyrings, use them.
10259    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for keyctl_get_persistent in -lkeyutils" >&5
10260printf %s "checking for keyctl_get_persistent in -lkeyutils... " >&6; }
10261if test ${ac_cv_lib_keyutils_keyctl_get_persistent+y}
10262then :
10263  printf %s "(cached) " >&6
10264else $as_nop
10265  ac_check_lib_save_LIBS=$LIBS
10266LIBS="-lkeyutils  $LIBS"
10267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268/* end confdefs.h.  */
10269
10270/* Override any GCC internal prototype to avoid an error.
10271   Use char because int might match the return type of a GCC
10272   builtin and then its argument prototype would still apply.  */
10273char keyctl_get_persistent ();
10274int
10275main (void)
10276{
10277return keyctl_get_persistent ();
10278  ;
10279  return 0;
10280}
10281_ACEOF
10282if ac_fn_c_try_link "$LINENO"
10283then :
10284  ac_cv_lib_keyutils_keyctl_get_persistent=yes
10285else $as_nop
10286  ac_cv_lib_keyutils_keyctl_get_persistent=no
10287fi
10288rm -f core conftest.err conftest.$ac_objext conftest.beam \
10289    conftest$ac_exeext conftest.$ac_ext
10290LIBS=$ac_check_lib_save_LIBS
10291fi
10292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_get_persistent" >&5
10293printf "%s\n" "$ac_cv_lib_keyutils_keyctl_get_persistent" >&6; }
10294if test "x$ac_cv_lib_keyutils_keyctl_get_persistent" = xyes
10295then :
10296
10297printf "%s\n" "#define HAVE_PERSISTENT_KEYRING 1" >>confdefs.h
10298
10299
10300fi
10301
10302  elif test "$with_keyutils" = yes; then
10303    as_fn_error $? "libkeyutils not found" "$LINENO" 5
10304  fi
10305fi
10306
10307# The SPAKE preauth plugin currently supports edwards25519 natively,
10308# and can support three NIST groups using OpenSSL.
10309HAVE_SPAKE_OPENSSL=no
10310
10311# Check whether --with-spake-openssl was given.
10312if test ${with_spake_openssl+y}
10313then :
10314  withval=$with_spake_openssl;
10315else $as_nop
10316  withval=auto
10317fi
10318
10319if test "$withval" = auto -o "$withval" = yes; then
10320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EC_POINT_new in -lcrypto" >&5
10321printf %s "checking for EC_POINT_new in -lcrypto... " >&6; }
10322if test ${ac_cv_lib_crypto_EC_POINT_new+y}
10323then :
10324  printf %s "(cached) " >&6
10325else $as_nop
10326  ac_check_lib_save_LIBS=$LIBS
10327LIBS="-lcrypto  $LIBS"
10328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h.  */
10330
10331/* Override any GCC internal prototype to avoid an error.
10332   Use char because int might match the return type of a GCC
10333   builtin and then its argument prototype would still apply.  */
10334char EC_POINT_new ();
10335int
10336main (void)
10337{
10338return EC_POINT_new ();
10339  ;
10340  return 0;
10341}
10342_ACEOF
10343if ac_fn_c_try_link "$LINENO"
10344then :
10345  ac_cv_lib_crypto_EC_POINT_new=yes
10346else $as_nop
10347  ac_cv_lib_crypto_EC_POINT_new=no
10348fi
10349rm -f core conftest.err conftest.$ac_objext conftest.beam \
10350    conftest$ac_exeext conftest.$ac_ext
10351LIBS=$ac_check_lib_save_LIBS
10352fi
10353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EC_POINT_new" >&5
10354printf "%s\n" "$ac_cv_lib_crypto_EC_POINT_new" >&6; }
10355if test "x$ac_cv_lib_crypto_EC_POINT_new" = xyes
10356then :
10357  have_crypto=true
10358else $as_nop
10359  have_crypto=false
10360fi
10361
10362  if test "$have_crypto" = true; then
10363
10364printf "%s\n" "#define SPAKE_OPENSSL 1" >>confdefs.h
10365
10366    SPAKE_OPENSSL_LIBS=-lcrypto
10367    HAVE_SPAKE_OPENSSL=yes
10368  elif test "$withval" = yes; then
10369    as_fn_error $? "OpenSSL libcrypto not found" "$LINENO" 5
10370  fi
10371fi
10372
10373
10374
10375# Check whether --enable-aesni was given.
10376if test ${enable_aesni+y}
10377then :
10378  enableval=$enable_aesni;
10379else $as_nop
10380  enable_aesni=check
10381fi
10382
10383if test "$CRYPTO_IMPL" = builtin -a "x$enable_aesni" != xno; then
10384    case "$host" in
10385    i686-*)
10386	aesni_obj=iaesx86.o
10387	aesni_machine=x86
10388	;;
10389    x86_64-*)
10390	aesni_obj=iaesx64.o
10391	aesni_machine=amd64
10392	;;
10393    esac
10394    case "$host" in
10395    *-*-linux* | *-*-gnu* | *-*-*bsd* | *-*-solaris*)
10396	# All Unix-like platforms need -D__linux__ for iaesx64.s to
10397	# use the System V x86-64 calling convention.
10398	aesni_flags="-D__linux__ -f elf -m $aesni_machine"
10399	;;
10400    esac
10401    if test "x$aesni_obj" != x && test "x$aesni_flags" != x; then
10402	# Extract the first word of "yasm", so it can be a program name with args.
10403set dummy yasm; ac_word=$2
10404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10405printf %s "checking for $ac_word... " >&6; }
10406if test ${ac_cv_prog_YASM+y}
10407then :
10408  printf %s "(cached) " >&6
10409else $as_nop
10410  if test -n "$YASM"; then
10411  ac_cv_prog_YASM="$YASM" # Let the user override the test.
10412else
10413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414for as_dir in $PATH
10415do
10416  IFS=$as_save_IFS
10417  case $as_dir in #(((
10418    '') as_dir=./ ;;
10419    */) ;;
10420    *) as_dir=$as_dir/ ;;
10421  esac
10422    for ac_exec_ext in '' $ac_executable_extensions; do
10423  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10424    ac_cv_prog_YASM="yasm"
10425    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10426    break 2
10427  fi
10428done
10429  done
10430IFS=$as_save_IFS
10431
10432fi
10433fi
10434YASM=$ac_cv_prog_YASM
10435if test -n "$YASM"; then
10436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YASM" >&5
10437printf "%s\n" "$YASM" >&6; }
10438else
10439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440printf "%s\n" "no" >&6; }
10441fi
10442
10443
10444	ac_fn_c_check_header_compile "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
10445if test "x$ac_cv_header_cpuid_h" = xyes
10446then :
10447  printf "%s\n" "#define HAVE_CPUID_H 1" >>confdefs.h
10448
10449fi
10450
10451	if test x"$YASM" != x -a "x$ac_cv_header_cpuid_h" = xyes; then
10452	    AESNI_OBJ=$aesni_obj
10453	    AESNI_FLAGS=$aesni_flags
10454
10455printf "%s\n" "#define AESNI 1" >>confdefs.h
10456
10457	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building with AES-NI support" >&5
10458printf "%s\n" "$as_me: Building with AES-NI support" >&6;}
10459	fi
10460    fi
10461    if test "x$enable_aesni" = xyes -a "x$AESNI_OBJ" = x; then
10462	as_fn_error $? "AES-NI support requested but cannot be built" "$LINENO" 5
10463    fi
10464fi
10465
10466
10467
10468# Check whether --enable-kdc-lookaside-cache was given.
10469if test ${enable_kdc_lookaside_cache+y}
10470then :
10471  enableval=$enable_kdc_lookaside_cache;
10472else $as_nop
10473  enableval=yes
10474fi
10475
10476if test "$enableval" = no ; then
10477
10478printf "%s\n" "#define NOCACHE 1" >>confdefs.h
10479
10480fi
10481KRB5_RUN_ENV="$RUN_ENV"
10482KRB5_RUN_VARS="$RUN_VARS"
10483
10484
10485
10486# asan is a gcc and clang facility to instrument the code with memory
10487# error checking.  To use it, we compile C and C++ source files with
10488# -fsanitize=address, and set ASAN=yes to suppress the undefined
10489# symbols check when building shared libraries.
10490# Check whether --enable-asan was given.
10491if test ${enable_asan+y}
10492then :
10493  enableval=$enable_asan;
10494else $as_nop
10495  enable_asan=no
10496fi
10497
10498if test "$enable_asan" != no; then
10499    if test "$enable_asan" = yes; then
10500        enable_asan=address
10501    fi
10502    ASAN_FLAGS="$DEFS -fsanitize=$enable_asan"
10503    ASAN=yes
10504    UNDEF_CHECK=
10505else
10506    ASAN_FLAGS=
10507    ASAN=no
10508fi
10509
10510
10511
10512# from old include/configure.in
10513
10514
10515ac_config_headers="$ac_config_headers include/autoconf.h"
10516
10517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10518printf %s "checking for an ANSI C-conforming const... " >&6; }
10519if test ${ac_cv_c_const+y}
10520then :
10521  printf %s "(cached) " >&6
10522else $as_nop
10523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524/* end confdefs.h.  */
10525
10526int
10527main (void)
10528{
10529
10530#ifndef __cplusplus
10531  /* Ultrix mips cc rejects this sort of thing.  */
10532  typedef int charset[2];
10533  const charset cs = { 0, 0 };
10534  /* SunOS 4.1.1 cc rejects this.  */
10535  char const *const *pcpcc;
10536  char **ppc;
10537  /* NEC SVR4.0.2 mips cc rejects this.  */
10538  struct point {int x, y;};
10539  static struct point const zero = {0,0};
10540  /* IBM XL C 1.02.0.0 rejects this.
10541     It does not let you subtract one const X* pointer from another in
10542     an arm of an if-expression whose if-part is not a constant
10543     expression */
10544  const char *g = "string";
10545  pcpcc = &g + (g ? g-g : 0);
10546  /* HPUX 7.0 cc rejects these. */
10547  ++pcpcc;
10548  ppc = (char**) pcpcc;
10549  pcpcc = (char const *const *) ppc;
10550  { /* SCO 3.2v4 cc rejects this sort of thing.  */
10551    char tx;
10552    char *t = &tx;
10553    char const *s = 0 ? (char *) 0 : (char const *) 0;
10554
10555    *t++ = 0;
10556    if (s) return 0;
10557  }
10558  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10559    int x[] = {25, 17};
10560    const int *foo = &x[0];
10561    ++foo;
10562  }
10563  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10564    typedef const int *iptr;
10565    iptr p = 0;
10566    ++p;
10567  }
10568  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
10569       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10570    struct s { int j; const int *ap[3]; } bx;
10571    struct s *b = &bx; b->j = 5;
10572  }
10573  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10574    const int foo = 10;
10575    if (!foo) return 0;
10576  }
10577  return !cs[0] && !zero.x;
10578#endif
10579
10580  ;
10581  return 0;
10582}
10583_ACEOF
10584if ac_fn_c_try_compile "$LINENO"
10585then :
10586  ac_cv_c_const=yes
10587else $as_nop
10588  ac_cv_c_const=no
10589fi
10590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10591fi
10592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10593printf "%s\n" "$ac_cv_c_const" >&6; }
10594if test $ac_cv_c_const = no; then
10595
10596printf "%s\n" "#define const /**/" >>confdefs.h
10597
10598fi
10599
10600ac_header_dirent=no
10601for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10602  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10604printf %s "checking for $ac_hdr that defines DIR... " >&6; }
10605if eval test \${$as_ac_Header+y}
10606then :
10607  printf %s "(cached) " >&6
10608else $as_nop
10609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610/* end confdefs.h.  */
10611#include <sys/types.h>
10612#include <$ac_hdr>
10613
10614int
10615main (void)
10616{
10617if ((DIR *) 0)
10618return 0;
10619  ;
10620  return 0;
10621}
10622_ACEOF
10623if ac_fn_c_try_compile "$LINENO"
10624then :
10625  eval "$as_ac_Header=yes"
10626else $as_nop
10627  eval "$as_ac_Header=no"
10628fi
10629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10630fi
10631eval ac_res=\$$as_ac_Header
10632	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10633printf "%s\n" "$ac_res" >&6; }
10634if eval test \"x\$"$as_ac_Header"\" = x"yes"
10635then :
10636  cat >>confdefs.h <<_ACEOF
10637#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
10638_ACEOF
10639
10640ac_header_dirent=$ac_hdr; break
10641fi
10642
10643done
10644# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10645if test $ac_header_dirent = dirent.h; then
10646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10647printf %s "checking for library containing opendir... " >&6; }
10648if test ${ac_cv_search_opendir+y}
10649then :
10650  printf %s "(cached) " >&6
10651else $as_nop
10652  ac_func_search_save_LIBS=$LIBS
10653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654/* end confdefs.h.  */
10655
10656/* Override any GCC internal prototype to avoid an error.
10657   Use char because int might match the return type of a GCC
10658   builtin and then its argument prototype would still apply.  */
10659char opendir ();
10660int
10661main (void)
10662{
10663return opendir ();
10664  ;
10665  return 0;
10666}
10667_ACEOF
10668for ac_lib in '' dir
10669do
10670  if test -z "$ac_lib"; then
10671    ac_res="none required"
10672  else
10673    ac_res=-l$ac_lib
10674    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10675  fi
10676  if ac_fn_c_try_link "$LINENO"
10677then :
10678  ac_cv_search_opendir=$ac_res
10679fi
10680rm -f core conftest.err conftest.$ac_objext conftest.beam \
10681    conftest$ac_exeext
10682  if test ${ac_cv_search_opendir+y}
10683then :
10684  break
10685fi
10686done
10687if test ${ac_cv_search_opendir+y}
10688then :
10689
10690else $as_nop
10691  ac_cv_search_opendir=no
10692fi
10693rm conftest.$ac_ext
10694LIBS=$ac_func_search_save_LIBS
10695fi
10696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10697printf "%s\n" "$ac_cv_search_opendir" >&6; }
10698ac_res=$ac_cv_search_opendir
10699if test "$ac_res" != no
10700then :
10701  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10702
10703fi
10704
10705else
10706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10707printf %s "checking for library containing opendir... " >&6; }
10708if test ${ac_cv_search_opendir+y}
10709then :
10710  printf %s "(cached) " >&6
10711else $as_nop
10712  ac_func_search_save_LIBS=$LIBS
10713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714/* end confdefs.h.  */
10715
10716/* Override any GCC internal prototype to avoid an error.
10717   Use char because int might match the return type of a GCC
10718   builtin and then its argument prototype would still apply.  */
10719char opendir ();
10720int
10721main (void)
10722{
10723return opendir ();
10724  ;
10725  return 0;
10726}
10727_ACEOF
10728for ac_lib in '' x
10729do
10730  if test -z "$ac_lib"; then
10731    ac_res="none required"
10732  else
10733    ac_res=-l$ac_lib
10734    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10735  fi
10736  if ac_fn_c_try_link "$LINENO"
10737then :
10738  ac_cv_search_opendir=$ac_res
10739fi
10740rm -f core conftest.err conftest.$ac_objext conftest.beam \
10741    conftest$ac_exeext
10742  if test ${ac_cv_search_opendir+y}
10743then :
10744  break
10745fi
10746done
10747if test ${ac_cv_search_opendir+y}
10748then :
10749
10750else $as_nop
10751  ac_cv_search_opendir=no
10752fi
10753rm conftest.$ac_ext
10754LIBS=$ac_func_search_save_LIBS
10755fi
10756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10757printf "%s\n" "$ac_cv_search_opendir" >&6; }
10758ac_res=$ac_cv_search_opendir
10759if test "$ac_res" != no
10760then :
10761  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10762
10763fi
10764
10765fi
10766
10767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
10768printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
10769if test ${ac_cv_c_undeclared_builtin_options+y}
10770then :
10771  printf %s "(cached) " >&6
10772else $as_nop
10773  ac_save_CFLAGS=$CFLAGS
10774   ac_cv_c_undeclared_builtin_options='cannot detect'
10775   for ac_arg in '' -fno-builtin; do
10776     CFLAGS="$ac_save_CFLAGS $ac_arg"
10777     # This test program should *not* compile successfully.
10778     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779/* end confdefs.h.  */
10780
10781int
10782main (void)
10783{
10784(void) strchr;
10785  ;
10786  return 0;
10787}
10788_ACEOF
10789if ac_fn_c_try_compile "$LINENO"
10790then :
10791
10792else $as_nop
10793  # This test program should compile successfully.
10794        # No library function is consistently available on
10795        # freestanding implementations, so test against a dummy
10796        # declaration.  Include always-available headers on the
10797        # off chance that they somehow elicit warnings.
10798        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799/* end confdefs.h.  */
10800#include <float.h>
10801#include <limits.h>
10802#include <stdarg.h>
10803#include <stddef.h>
10804extern void ac_decl (int, char *);
10805
10806int
10807main (void)
10808{
10809(void) ac_decl (0, (char *) 0);
10810  (void) ac_decl;
10811
10812  ;
10813  return 0;
10814}
10815_ACEOF
10816if ac_fn_c_try_compile "$LINENO"
10817then :
10818  if test x"$ac_arg" = x
10819then :
10820  ac_cv_c_undeclared_builtin_options='none needed'
10821else $as_nop
10822  ac_cv_c_undeclared_builtin_options=$ac_arg
10823fi
10824          break
10825fi
10826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10827fi
10828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10829    done
10830    CFLAGS=$ac_save_CFLAGS
10831
10832fi
10833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
10834printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
10835  case $ac_cv_c_undeclared_builtin_options in #(
10836  'cannot detect') :
10837    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10838printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
10839as_fn_error $? "cannot make $CC report undeclared builtins
10840See \`config.log' for more details" "$LINENO" 5; } ;; #(
10841  'none needed') :
10842    ac_c_undeclared_builtin_options='' ;; #(
10843  *) :
10844    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
10845esac
10846
10847ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
10848if test "x$ac_cv_have_decl_strerror_r" = xyes
10849then :
10850  ac_have_decl=1
10851else $as_nop
10852  ac_have_decl=0
10853fi
10854printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
10855
10856
10857if test $ac_cv_have_decl_strerror_r = yes; then
10858  # For backward compatibility's sake, define HAVE_STRERROR_R.
10859  # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
10860  # as AC_CHECK_DECLS_ONCE.)
10861
10862printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
10863
10864fi
10865
10866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
10867printf %s "checking whether strerror_r returns char *... " >&6; }
10868if test ${ac_cv_func_strerror_r_char_p+y}
10869then :
10870  printf %s "(cached) " >&6
10871else $as_nop
10872
10873    ac_cv_func_strerror_r_char_p=no
10874    if test $ac_cv_have_decl_strerror_r = yes; then
10875      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876/* end confdefs.h.  */
10877#include <string.h>
10878int
10879main (void)
10880{
10881
10882	  char buf[100];
10883	  char x = *strerror_r (0, buf, sizeof buf);
10884	  char *p = strerror_r (0, buf, sizeof buf);
10885	  return !p || x;
10886
10887  ;
10888  return 0;
10889}
10890_ACEOF
10891if ac_fn_c_try_compile "$LINENO"
10892then :
10893  ac_cv_func_strerror_r_char_p=yes
10894fi
10895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10896
10897    fi
10898
10899fi
10900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
10901printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
10902if test $ac_cv_func_strerror_r_char_p = yes; then
10903
10904printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
10905
10906fi
10907
10908ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
10909if test "x$ac_cv_func_strdup" = xyes
10910then :
10911  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
10912
10913fi
10914ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
10915if test "x$ac_cv_func_setvbuf" = xyes
10916then :
10917  printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
10918
10919fi
10920ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
10921if test "x$ac_cv_func_seteuid" = xyes
10922then :
10923  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
10924
10925fi
10926ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
10927if test "x$ac_cv_func_setresuid" = xyes
10928then :
10929  printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
10930
10931fi
10932ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
10933if test "x$ac_cv_func_setreuid" = xyes
10934then :
10935  printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
10936
10937fi
10938ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
10939if test "x$ac_cv_func_setegid" = xyes
10940then :
10941  printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
10942
10943fi
10944ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
10945if test "x$ac_cv_func_setresgid" = xyes
10946then :
10947  printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
10948
10949fi
10950ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
10951if test "x$ac_cv_func_setregid" = xyes
10952then :
10953  printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
10954
10955fi
10956ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
10957if test "x$ac_cv_func_setsid" = xyes
10958then :
10959  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
10960
10961fi
10962ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
10963if test "x$ac_cv_func_flock" = xyes
10964then :
10965  printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
10966
10967fi
10968ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
10969if test "x$ac_cv_func_fchmod" = xyes
10970then :
10971  printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
10972
10973fi
10974ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
10975if test "x$ac_cv_func_chmod" = xyes
10976then :
10977  printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
10978
10979fi
10980ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
10981if test "x$ac_cv_func_strptime" = xyes
10982then :
10983  printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
10984
10985fi
10986ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
10987if test "x$ac_cv_func_geteuid" = xyes
10988then :
10989  printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
10990
10991fi
10992ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
10993if test "x$ac_cv_func_setenv" = xyes
10994then :
10995  printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
10996
10997fi
10998ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
10999if test "x$ac_cv_func_unsetenv" = xyes
11000then :
11001  printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
11002
11003fi
11004ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
11005if test "x$ac_cv_func_getenv" = xyes
11006then :
11007  printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
11008
11009fi
11010ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
11011if test "x$ac_cv_func_gmtime_r" = xyes
11012then :
11013  printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
11014
11015fi
11016ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
11017if test "x$ac_cv_func_localtime_r" = xyes
11018then :
11019  printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
11020
11021fi
11022ac_fn_c_check_func "$LINENO" "bswap16" "ac_cv_func_bswap16"
11023if test "x$ac_cv_func_bswap16" = xyes
11024then :
11025  printf "%s\n" "#define HAVE_BSWAP16 1" >>confdefs.h
11026
11027fi
11028ac_fn_c_check_func "$LINENO" "bswap64" "ac_cv_func_bswap64"
11029if test "x$ac_cv_func_bswap64" = xyes
11030then :
11031  printf "%s\n" "#define HAVE_BSWAP64 1" >>confdefs.h
11032
11033fi
11034ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11035if test "x$ac_cv_func_mkstemp" = xyes
11036then :
11037  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11038
11039fi
11040ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell"
11041if test "x$ac_cv_func_getusershell" = xyes
11042then :
11043  printf "%s\n" "#define HAVE_GETUSERSHELL 1" >>confdefs.h
11044
11045fi
11046ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
11047if test "x$ac_cv_func_access" = xyes
11048then :
11049  printf "%s\n" "#define HAVE_ACCESS 1" >>confdefs.h
11050
11051fi
11052ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
11053if test "x$ac_cv_func_getcwd" = xyes
11054then :
11055  printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
11056
11057fi
11058ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
11059if test "x$ac_cv_func_srand48" = xyes
11060then :
11061  printf "%s\n" "#define HAVE_SRAND48 1" >>confdefs.h
11062
11063fi
11064ac_fn_c_check_func "$LINENO" "srand" "ac_cv_func_srand"
11065if test "x$ac_cv_func_srand" = xyes
11066then :
11067  printf "%s\n" "#define HAVE_SRAND 1" >>confdefs.h
11068
11069fi
11070ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
11071if test "x$ac_cv_func_srandom" = xyes
11072then :
11073  printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
11074
11075fi
11076ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
11077if test "x$ac_cv_func_stat" = xyes
11078then :
11079  printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
11080
11081fi
11082ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
11083if test "x$ac_cv_func_strchr" = xyes
11084then :
11085  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
11086
11087fi
11088ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
11089if test "x$ac_cv_func_strerror" = xyes
11090then :
11091  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
11092
11093fi
11094ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
11095if test "x$ac_cv_func_timegm" = xyes
11096then :
11097  printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
11098
11099fi
11100ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
11101if test "x$ac_cv_func_explicit_bzero" = xyes
11102then :
11103  printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
11104
11105fi
11106ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
11107if test "x$ac_cv_func_explicit_memset" = xyes
11108then :
11109  printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
11110
11111fi
11112ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
11113if test "x$ac_cv_func_getresuid" = xyes
11114then :
11115  printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
11116
11117fi
11118ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"
11119if test "x$ac_cv_func_getresgid" = xyes
11120then :
11121  printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h
11122
11123fi
11124
11125
11126ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11127if test "x$ac_cv_func_mkstemp" = xyes
11128then :
11129  MKSTEMP_ST_OBJ=
11130MKSTEMP_OBJ=
11131else $as_nop
11132  MKSTEMP_ST_OBJ='mkstemp.o'
11133MKSTEMP_OBJ='$(OUTPRE)mkstemp.$(OBJEXT)'
11134EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_mkstemp"
11135fi
11136
11137
11138
11139
11140ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11141if test "x$ac_cv_func_gettimeofday" = xyes
11142then :
11143  GETTIMEOFDAY_ST_OBJ=
11144	GETTIMEOFDAY_OBJ=
11145
11146printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
11147
11148
11149else $as_nop
11150  GETTIMEOFDAY_ST_OBJ='gettimeofday.o'
11151	GETTIMEOFDAY_OBJ='$(OUTPRE)gettimeofday.$(OBJEXT)'
11152	EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_gettimeofday"
11153fi
11154
11155
11156
11157
11158
11159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_errlist declaration" >&5
11160printf %s "checking for sys_errlist declaration... " >&6; }
11161if test ${krb5_cv_decl_sys_errlist+y}
11162then :
11163  printf %s "(cached) " >&6
11164else $as_nop
11165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166/* end confdefs.h.  */
11167#include <stdio.h>
11168      #include <errno.h>
11169
11170int
11171main (void)
11172{
111731+sys_nerr;
11174  ;
11175  return 0;
11176}
11177_ACEOF
11178if ac_fn_c_try_compile "$LINENO"
11179then :
11180  krb5_cv_decl_sys_errlist=yes
11181else $as_nop
11182  krb5_cv_decl_sys_errlist=no
11183fi
11184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11185fi
11186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_decl_sys_errlist" >&5
11187printf "%s\n" "$krb5_cv_decl_sys_errlist" >&6; }
11188# assume sys_nerr won't be declared w/o being in libc
11189if test $krb5_cv_decl_sys_errlist = yes; then
11190
11191printf "%s\n" "#define SYS_ERRLIST_DECLARED 1" >>confdefs.h
11192
11193
11194printf "%s\n" "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
11195
11196else
11197  # This means that sys_errlist is not declared in errno.h, but may still
11198  # be in libc.
11199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_errlist in libc" >&5
11200printf %s "checking for sys_errlist in libc... " >&6; }
11201if test ${krb5_cv_var_sys_errlist+y}
11202then :
11203  printf %s "(cached) " >&6
11204else $as_nop
11205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206/* end confdefs.h.  */
11207extern int sys_nerr;
11208int
11209main (void)
11210{
11211if (1+sys_nerr < 0) return 1;
11212  ;
11213  return 0;
11214}
11215_ACEOF
11216if ac_fn_c_try_link "$LINENO"
11217then :
11218  krb5_cv_var_sys_errlist=yes
11219else $as_nop
11220  krb5_cv_var_sys_errlist=no
11221fi
11222rm -f core conftest.err conftest.$ac_objext conftest.beam \
11223    conftest$ac_exeext conftest.$ac_ext
11224fi
11225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_var_sys_errlist" >&5
11226printf "%s\n" "$krb5_cv_var_sys_errlist" >&6; }
11227  if test $krb5_cv_var_sys_errlist = yes; then
11228
11229printf "%s\n" "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
11230
11231    # Do this cruft for backwards compatibility for now.
11232
11233printf "%s\n" "#define NEED_SYS_ERRLIST 1" >>confdefs.h
11234
11235  else
11236    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sys_errlist is neither in errno.h nor in libc" >&5
11237printf "%s\n" "$as_me: WARNING: sys_errlist is neither in errno.h nor in libc" >&2;}
11238  fi
11239fi
11240ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11241if test "x$ac_cv_header_unistd_h" = xyes
11242then :
11243  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11244
11245fi
11246ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11247if test "x$ac_cv_header_paths_h" = xyes
11248then :
11249  printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11250
11251fi
11252ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
11253if test "x$ac_cv_header_regex_h" = xyes
11254then :
11255  printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
11256
11257fi
11258ac_fn_c_check_header_compile "$LINENO" "regexpr.h" "ac_cv_header_regexpr_h" "$ac_includes_default"
11259if test "x$ac_cv_header_regexpr_h" = xyes
11260then :
11261  printf "%s\n" "#define HAVE_REGEXPR_H 1" >>confdefs.h
11262
11263fi
11264ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
11265if test "x$ac_cv_header_fcntl_h" = xyes
11266then :
11267  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
11268
11269fi
11270ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
11271if test "x$ac_cv_header_memory_h" = xyes
11272then :
11273  printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
11274
11275fi
11276ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
11277if test "x$ac_cv_header_ifaddrs_h" = xyes
11278then :
11279  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
11280
11281fi
11282ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
11283if test "x$ac_cv_header_sys_filio_h" = xyes
11284then :
11285  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
11286
11287fi
11288ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
11289if test "x$ac_cv_header_byteswap_h" = xyes
11290then :
11291  printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
11292
11293fi
11294ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
11295if test "x$ac_cv_header_machine_endian_h" = xyes
11296then :
11297  printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
11298
11299fi
11300ac_fn_c_check_header_compile "$LINENO" "machine/byte_order.h" "ac_cv_header_machine_byte_order_h" "$ac_includes_default"
11301if test "x$ac_cv_header_machine_byte_order_h" = xyes
11302then :
11303  printf "%s\n" "#define HAVE_MACHINE_BYTE_ORDER_H 1" >>confdefs.h
11304
11305fi
11306ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default"
11307if test "x$ac_cv_header_sys_bswap_h" = xyes
11308then :
11309  printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h
11310
11311fi
11312ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
11313if test "x$ac_cv_header_endian_h" = xyes
11314then :
11315  printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
11316
11317fi
11318ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
11319if test "x$ac_cv_header_pwd_h" = xyes
11320then :
11321  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
11322
11323fi
11324ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
11325if test "x$ac_cv_header_arpa_inet_h" = xyes
11326then :
11327  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
11328
11329fi
11330ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
11331if test "x$ac_cv_header_alloca_h" = xyes
11332then :
11333  printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
11334
11335fi
11336ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
11337if test "x$ac_cv_header_dlfcn_h" = xyes
11338then :
11339  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11340
11341fi
11342ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
11343if test "x$ac_cv_header_limits_h" = xyes
11344then :
11345  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
11346
11347fi
11348
11349ac_fn_c_check_header_compile "$LINENO" "regexp.h" "ac_cv_header_regexp_h" "#define INIT char *sp = instring;
11350#define GETC() (*sp++)
11351#define PEEKC() (*sp)
11352#define UNGETC(c) (--sp)
11353#define RETURN(c) return(c)
11354#define ERROR(c)
11355
11356"
11357if test "x$ac_cv_header_regexp_h" = xyes
11358then :
11359
11360fi
11361
11362ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/types.h>
11363#include <sys/stat.h>
11364"
11365if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
11366then :
11367
11368printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
11369
11370
11371fi
11372ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "#include <sys/types.h>
11373#include <sys/stat.h>
11374"
11375if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes
11376then :
11377
11378printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1" >>confdefs.h
11379
11380
11381fi
11382ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/types.h>
11383#include <sys/stat.h>
11384"
11385if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes
11386then :
11387
11388printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h
11389
11390
11391fi
11392
11393
11394ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
11395if test "x$ac_cv_func_re_comp" = xyes
11396then :
11397  printf "%s\n" "#define HAVE_RE_COMP 1" >>confdefs.h
11398
11399fi
11400ac_fn_c_check_func "$LINENO" "re_exec" "ac_cv_func_re_exec"
11401if test "x$ac_cv_func_re_exec" = xyes
11402then :
11403  printf "%s\n" "#define HAVE_RE_EXEC 1" >>confdefs.h
11404
11405fi
11406ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec"
11407if test "x$ac_cv_func_regexec" = xyes
11408then :
11409  printf "%s\n" "#define HAVE_REGEXEC 1" >>confdefs.h
11410
11411fi
11412
11413
11414ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11415if test "x$ac_cv_type_off_t" = xyes
11416then :
11417
11418else $as_nop
11419
11420printf "%s\n" "#define off_t long int" >>confdefs.h
11421
11422fi
11423
11424
11425# Fancy caching of perror result...
11426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perror declaration" >&5
11427printf %s "checking for perror declaration... " >&6; }
11428if test ${krb5_cv_decl_perror+y}
11429then :
11430  printf %s "(cached) " >&6
11431else $as_nop
11432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433/* end confdefs.h.  */
11434#include <errno.h>
11435
11436_ACEOF
11437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11438  $EGREP "perror" >/dev/null 2>&1
11439then :
11440  krb5_cv_decl_perror=yes
11441else $as_nop
11442  krb5_cv_decl_perror=no
11443fi
11444rm -rf conftest*
11445
11446fi
11447
11448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_decl_perror" >&5
11449printf "%s\n" "$krb5_cv_decl_perror" >&6; }
11450if test $krb5_cv_decl_perror = yes; then
11451
11452printf "%s\n" "#define HDR_HAS_PERROR 1" >>confdefs.h
11453
11454fi
11455
11456
11457if test "x$ac_cv_func_strptime" = xyes; then
11458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strptime needs a prototype provided" >&5
11459printf %s "checking if strptime needs a prototype provided... " >&6; }
11460if test ${krb5_cv_func_strptime_noproto+y}
11461then :
11462  printf %s "(cached) " >&6
11463else $as_nop
11464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465/* end confdefs.h.  */
11466#include <time.h>
11467int
11468main (void)
11469{
11470#undef strptime
11471      struct k5foo {int foo; } xx;
11472      extern int strptime (struct k5foo*);
11473      strptime(&xx);
11474  ;
11475  return 0;
11476}
11477_ACEOF
11478if ac_fn_c_try_compile "$LINENO"
11479then :
11480  krb5_cv_func_strptime_noproto=yes
11481else $as_nop
11482  krb5_cv_func_strptime_noproto=no
11483fi
11484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11485fi
11486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_strptime_noproto" >&5
11487printf "%s\n" "$krb5_cv_func_strptime_noproto" >&6; }
11488if test $krb5_cv_func_strptime_noproto = yes; then
11489
11490printf "%s\n" "#define NEED_STRPTIME_PROTO 1" >>confdefs.h
11491
11492fi
11493fi
11494
11495
11496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argument to wait is int *" >&5
11497printf %s "checking if argument to wait is int *... " >&6; }
11498if test ${krb5_cv_struct_wait+y}
11499then :
11500  printf %s "(cached) " >&6
11501else $as_nop
11502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503/* end confdefs.h.  */
11504#include <sys/types.h>
11505      #include <sys/wait.h>
11506      extern pid_t wait(int *);
11507_ACEOF
11508if ac_fn_c_try_compile "$LINENO"
11509then :
11510  krb5_cv_struct_wait=no
11511else $as_nop
11512    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h.  */
11514#include <sys/wait.h>
11515
11516int
11517main (void)
11518{
11519union wait i;
11520        #ifdef WEXITSTATUS
11521        WEXITSTATUS (i);
11522        #endif
11523
11524  ;
11525  return 0;
11526}
11527_ACEOF
11528if ac_fn_c_try_compile "$LINENO"
11529then :
11530  krb5_cv_struct_wait=yes
11531else $as_nop
11532  krb5_cv_struct_wait=no
11533fi
11534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11535fi
11536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11537fi
11538
11539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_wait" >&5
11540printf "%s\n" "$krb5_cv_struct_wait" >&6; }
11541if test $krb5_cv_struct_wait = no; then
11542
11543printf "%s\n" "#define WAIT_USES_INT 1" >>confdefs.h
11544
11545fi
11546
11547
11548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of sigprocmask" >&5
11549printf %s "checking for use of sigprocmask... " >&6; }
11550if test ${krb5_cv_func_sigprocmask_use+y}
11551then :
11552  printf %s "(cached) " >&6
11553else $as_nop
11554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555/* end confdefs.h.  */
11556#include <signal.h>
11557
11558int
11559main (void)
11560{
11561sigprocmask(SIG_SETMASK, 0, 0);
11562  ;
11563  return 0;
11564}
11565_ACEOF
11566if ac_fn_c_try_link "$LINENO"
11567then :
11568  krb5_cv_func_sigprocmask_use=yes
11569else $as_nop
11570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571/* end confdefs.h.  */
11572#include <signal.h>
11573
11574int
11575main (void)
11576{
11577sigmask(1);
11578  ;
11579  return 0;
11580}
11581_ACEOF
11582if ac_fn_c_try_link "$LINENO"
11583then :
11584  krb5_cv_func_sigprocmask_use=no
11585else $as_nop
11586  krb5_cv_func_sigprocmask_use=yes
11587fi
11588rm -f core conftest.err conftest.$ac_objext conftest.beam \
11589    conftest$ac_exeext conftest.$ac_ext
11590fi
11591rm -f core conftest.err conftest.$ac_objext conftest.beam \
11592    conftest$ac_exeext conftest.$ac_ext
11593fi
11594
11595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_sigprocmask_use" >&5
11596printf "%s\n" "$krb5_cv_func_sigprocmask_use" >&6; }
11597if test $krb5_cv_func_sigprocmask_use = yes; then
11598
11599printf "%s\n" "#define USE_SIGPROCMASK 1" >>confdefs.h
11600
11601fi
11602
11603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11604printf %s "checking for uid_t in sys/types.h... " >&6; }
11605if test ${ac_cv_type_uid_t+y}
11606then :
11607  printf %s "(cached) " >&6
11608else $as_nop
11609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610/* end confdefs.h.  */
11611#include <sys/types.h>
11612
11613_ACEOF
11614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11615  $EGREP "uid_t" >/dev/null 2>&1
11616then :
11617  ac_cv_type_uid_t=yes
11618else $as_nop
11619  ac_cv_type_uid_t=no
11620fi
11621rm -rf conftest*
11622
11623fi
11624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11625printf "%s\n" "$ac_cv_type_uid_t" >&6; }
11626if test $ac_cv_type_uid_t = no; then
11627
11628printf "%s\n" "#define uid_t int" >>confdefs.h
11629
11630
11631printf "%s\n" "#define gid_t int" >>confdefs.h
11632
11633fi
11634
11635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
11636printf %s "checking type of array argument to getgroups... " >&6; }
11637if test ${ac_cv_type_getgroups+y}
11638then :
11639  printf %s "(cached) " >&6
11640else $as_nop
11641  if test "$cross_compiling" = yes
11642then :
11643  ac_cv_type_getgroups=cross
11644else $as_nop
11645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646/* end confdefs.h.  */
11647/* Thanks to Mike Rendell for this test.  */
11648$ac_includes_default
11649#define NGID 256
11650#undef MAX
11651#define MAX(x, y) ((x) > (y) ? (x) : (y))
11652
11653int
11654main (void)
11655{
11656  gid_t gidset[NGID];
11657  int i, n;
11658  union { gid_t gval; long int lval; }  val;
11659
11660  val.lval = -1;
11661  for (i = 0; i < NGID; i++)
11662    gidset[i] = val.gval;
11663  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11664		 gidset);
11665  /* Exit non-zero if getgroups seems to require an array of ints.  This
11666     happens when gid_t is short int but getgroups modifies an array
11667     of ints.  */
11668  return n > 0 && gidset[n] != val.gval;
11669}
11670_ACEOF
11671if ac_fn_c_try_run "$LINENO"
11672then :
11673  ac_cv_type_getgroups=gid_t
11674else $as_nop
11675  ac_cv_type_getgroups=int
11676fi
11677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11678  conftest.$ac_objext conftest.beam conftest.$ac_ext
11679fi
11680
11681if test $ac_cv_type_getgroups = cross; then
11682        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683/* end confdefs.h.  */
11684#include <unistd.h>
11685
11686_ACEOF
11687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11688  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1
11689then :
11690  ac_cv_type_getgroups=gid_t
11691else $as_nop
11692  ac_cv_type_getgroups=int
11693fi
11694rm -rf conftest*
11695
11696fi
11697fi
11698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
11699printf "%s\n" "$ac_cv_type_getgroups" >&6; }
11700
11701printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h
11702
11703
11704
11705ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
11706if test "x$ac_cv_func_sigsetjmp" = xyes
11707then :
11708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigjmp_buf" >&5
11709printf %s "checking for sigjmp_buf... " >&6; }
11710if test ${krb5_cv_struct_sigjmp_buf+y}
11711then :
11712  printf %s "(cached) " >&6
11713else $as_nop
11714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715/* end confdefs.h.  */
11716#include <setjmp.h>
11717
11718int
11719main (void)
11720{
11721sigjmp_buf x
11722  ;
11723  return 0;
11724}
11725_ACEOF
11726if ac_fn_c_try_compile "$LINENO"
11727then :
11728  krb5_cv_struct_sigjmp_buf=yes
11729else $as_nop
11730  krb5_cv_struct_sigjmp_buf=no
11731fi
11732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11733fi
11734
11735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_sigjmp_buf" >&5
11736printf "%s\n" "$krb5_cv_struct_sigjmp_buf" >&6; }
11737if test $krb5_cv_struct_sigjmp_buf = yes; then
11738
11739printf "%s\n" "#define POSIX_SETJMP 1" >>confdefs.h
11740
11741fi
11742
11743fi
11744
11745
11746# *rpcent return types needed for lib/rpc
11747
11748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of setrpcent" >&5
11749printf %s "checking return type of setrpcent... " >&6; }
11750if test ${k5_cv_type_setrpcent+y}
11751then :
11752  printf %s "(cached) " >&6
11753else $as_nop
11754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755/* end confdefs.h.  */
11756#include <netdb.h>
11757                    extern void setrpcent();
11758_ACEOF
11759if ac_fn_c_try_compile "$LINENO"
11760then :
11761  k5_cv_type_setrpcent=void
11762else $as_nop
11763  k5_cv_type_setrpcent=int
11764fi
11765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11766fi
11767
11768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_setrpcent" >&5
11769printf "%s\n" "$k5_cv_type_setrpcent" >&6; }
11770
11771printf "%s\n" "#define SETRPCENT_TYPE $k5_cv_type_setrpcent" >>confdefs.h
11772
11773
11774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of endrpcent" >&5
11775printf %s "checking return type of endrpcent... " >&6; }
11776if test ${k5_cv_type_endrpcent+y}
11777then :
11778  printf %s "(cached) " >&6
11779else $as_nop
11780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781/* end confdefs.h.  */
11782#include <netdb.h>
11783      extern void endrpcent();
11784_ACEOF
11785if ac_fn_c_try_compile "$LINENO"
11786then :
11787  k5_cv_type_endrpcent=void
11788else $as_nop
11789  k5_cv_type_endrpcent=int
11790fi
11791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11792fi
11793
11794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_endrpcent" >&5
11795printf "%s\n" "$k5_cv_type_endrpcent" >&6; }
11796
11797printf "%s\n" "#define ENDRPCENT_TYPE $k5_cv_type_endrpcent" >>confdefs.h
11798
11799
11800
11801# bswap_16 is a macro in byteswap.h under GNU libc
11802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_16" >&5
11803printf %s "checking for bswap_16... " >&6; }
11804if test ${krb5_cv_bswap_16+y}
11805then :
11806  printf %s "(cached) " >&6
11807else $as_nop
11808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809/* end confdefs.h.  */
11810#if HAVE_BYTESWAP_H
11811      #include <byteswap.h>
11812      #endif
11813
11814int
11815main (void)
11816{
11817bswap_16(37);
11818  ;
11819  return 0;
11820}
11821_ACEOF
11822if ac_fn_c_try_link "$LINENO"
11823then :
11824  krb5_cv_bswap_16=yes
11825else $as_nop
11826  krb5_cv_bswap_16=no
11827fi
11828rm -f core conftest.err conftest.$ac_objext conftest.beam \
11829    conftest$ac_exeext conftest.$ac_ext
11830fi
11831
11832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_bswap_16" >&5
11833printf "%s\n" "$krb5_cv_bswap_16" >&6; }
11834if test "$krb5_cv_bswap_16" = yes; then
11835
11836printf "%s\n" "#define HAVE_BSWAP_16 1" >>confdefs.h
11837
11838fi
11839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_64" >&5
11840printf %s "checking for bswap_64... " >&6; }
11841if test ${krb5_cv_bswap_64+y}
11842then :
11843  printf %s "(cached) " >&6
11844else $as_nop
11845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846/* end confdefs.h.  */
11847#if HAVE_BYTESWAP_H
11848      #include <byteswap.h>
11849      #endif
11850
11851int
11852main (void)
11853{
11854bswap_64(37);
11855  ;
11856  return 0;
11857}
11858_ACEOF
11859if ac_fn_c_try_link "$LINENO"
11860then :
11861  krb5_cv_bswap_64=yes
11862else $as_nop
11863  krb5_cv_bswap_64=no
11864fi
11865rm -f core conftest.err conftest.$ac_objext conftest.beam \
11866    conftest$ac_exeext conftest.$ac_ext
11867fi
11868
11869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_bswap_64" >&5
11870printf "%s\n" "$krb5_cv_bswap_64" >&6; }
11871if test "$krb5_cv_bswap_64" = yes; then
11872
11873printf "%s\n" "#define HAVE_BSWAP_64 1" >>confdefs.h
11874
11875fi
11876
11877# Needed for ksu and some appl stuff.
11878
11879case $krb5_cv_host in
11880alpha*-dec-osf*)
11881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setluid in -lsecurity" >&5
11882printf %s "checking for setluid in -lsecurity... " >&6; }
11883if test ${ac_cv_lib_security_setluid+y}
11884then :
11885  printf %s "(cached) " >&6
11886else $as_nop
11887  ac_check_lib_save_LIBS=$LIBS
11888LIBS="-lsecurity  $LIBS"
11889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890/* end confdefs.h.  */
11891
11892/* Override any GCC internal prototype to avoid an error.
11893   Use char because int might match the return type of a GCC
11894   builtin and then its argument prototype would still apply.  */
11895char setluid ();
11896int
11897main (void)
11898{
11899return setluid ();
11900  ;
11901  return 0;
11902}
11903_ACEOF
11904if ac_fn_c_try_link "$LINENO"
11905then :
11906  ac_cv_lib_security_setluid=yes
11907else $as_nop
11908  ac_cv_lib_security_setluid=no
11909fi
11910rm -f core conftest.err conftest.$ac_objext conftest.beam \
11911    conftest$ac_exeext conftest.$ac_ext
11912LIBS=$ac_check_lib_save_LIBS
11913fi
11914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_setluid" >&5
11915printf "%s\n" "$ac_cv_lib_security_setluid" >&6; }
11916if test "x$ac_cv_lib_security_setluid" = xyes
11917then :
11918
11919printf "%s\n" "#define HAVE_SETLUID 1" >>confdefs.h
11920
11921		KSU_LIBS="-lsecurity"
11922
11923fi
11924
11925	;;
11926esac
11927
11928
11929if test $ac_cv_func_setenv = no || test $ac_cv_func_unsetenv = no \
11930  || test $ac_cv_func_getenv = no; then
11931  SETENVOBJ=setenv.o
11932else
11933  SETENVOBJ=
11934fi
11935
11936
11937# Check what the return types for gethostbyname_r and getservbyname_r are.
11938
11939ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
11940if test "x$ac_cv_func_gethostbyname_r" = xyes
11941then :
11942
11943ac_cv_func_gethostbyname_r=yes
11944if test "$ac_cv_func_gethostbyname_r" = yes; then
11945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r returns an int" >&5
11946printf %s "checking if gethostbyname_r returns an int... " >&6; }
11947  if test ${krb5_cv_gethostbyname_r_returns_int+y}
11948then :
11949  printf %s "(cached) " >&6
11950else $as_nop
11951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h.  */
11953#include <netdb.h>
11954        extern int gethostbyname_r();
11955_ACEOF
11956if ac_fn_c_try_compile "$LINENO"
11957then :
11958  krb5_cv_gethostbyname_r_returns_int=yes
11959else $as_nop
11960  krb5_cv_gethostbyname_r_returns_int=no
11961fi
11962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11963fi
11964
11965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gethostbyname_r_returns_int" >&5
11966printf "%s\n" "$krb5_cv_gethostbyname_r_returns_int" >&6; }
11967
11968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r returns a pointer" >&5
11969printf %s "checking if gethostbyname_r returns a pointer... " >&6; }
11970  if test ${krb5_cv_gethostbyname_r_returns_ptr+y}
11971then :
11972  printf %s "(cached) " >&6
11973else $as_nop
11974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975/* end confdefs.h.  */
11976#include <netdb.h>
11977        extern struct hostent *gethostbyname_r();
11978_ACEOF
11979if ac_fn_c_try_compile "$LINENO"
11980then :
11981  krb5_cv_gethostbyname_r_returns_ptr=yes
11982else $as_nop
11983  krb5_cv_gethostbyname_r_returns_ptr=no
11984fi
11985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11986fi
11987
11988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gethostbyname_r_returns_ptr" >&5
11989printf "%s\n" "$krb5_cv_gethostbyname_r_returns_ptr" >&6; }
11990
11991  if test "$krb5_cv_gethostbyname_r_returns_int" = "$krb5_cv_gethostbyname_r_returns_ptr"; then
11992    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine return type of gethostbyname_r -- disabling" >&5
11993printf "%s\n" "$as_me: WARNING: cannot determine return type of gethostbyname_r -- disabling" >&2;}
11994    ac_cv_func_gethostbyname_r=no
11995  fi
11996  if test "$krb5_cv_gethostbyname_r_returns_int" = yes; then
11997
11998printf "%s\n" "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
11999
12000  fi
12001fi
12002if test "$ac_cv_func_gethostbyname_r" = yes; then
12003
12004printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
12005
12006  ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
12007if test "x$ac_cv_func_gethostbyaddr_r" = xyes
12008then :
12009
12010fi
12011
12012fi
12013
12014fi
12015
12016
12017
12018# PTHREAD_CFLAGS changes which variant of these functions is declared
12019# on Solaris 11, so use it for these tests.
12020old_CFLAGS=$CFLAGS
12021CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12022ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
12023if test "x$ac_cv_func_getpwnam_r" = xyes
12024then :
12025  ac_cv_func_getpwnam_r=yes
12026else $as_nop
12027  ac_cv_func_getpwnam_r=no
12028fi
12029
12030ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
12031if test "x$ac_cv_func_getpwuid_r" = xyes
12032then :
12033  ac_cv_func_getpwuid_r=yes
12034else $as_nop
12035  ac_cv_func_getpwuid_r=no
12036fi
12037
12038if test "$ac_cv_func_getpwnam_r" = yes; then
12039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of getpwnam_r" >&5
12040printf %s "checking return type of getpwnam_r... " >&6; }
12041  if test ${krb5_cv_getpwnam_r_return_type+y}
12042then :
12043  printf %s "(cached) " >&6
12044else $as_nop
12045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h.  */
12047#include <pwd.h>
12048        extern int getpwnam_r();
12049_ACEOF
12050if ac_fn_c_try_compile "$LINENO"
12051then :
12052  getpwnam_r_returns_int=yes
12053else $as_nop
12054  getpwnam_r_returns_int=no
12055fi
12056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058/* end confdefs.h.  */
12059#include <pwd.h>
12060        extern struct passwd *getpwnam_r();
12061_ACEOF
12062if ac_fn_c_try_compile "$LINENO"
12063then :
12064  getpwnam_r_returns_ptr=yes
12065else $as_nop
12066  getpwnam_r_returns_ptr=no
12067fi
12068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12069   case "$getpwnam_r_returns_int/$getpwnam_r_returns_ptr" in
12070     yes/no) krb5_cv_getpwnam_r_return_type=int ;;
12071     no/yes) krb5_cv_getpwnam_r_return_type=ptr ;;
12072     *) krb5_cv_getpwnam_r_return_type=unknown ;;
12073   esac
12074fi
12075
12076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getpwnam_r_return_type" >&5
12077printf "%s\n" "$krb5_cv_getpwnam_r_return_type" >&6; }
12078  if test $krb5_cv_getpwnam_r_return_type = int; then
12079
12080printf "%s\n" "#define GETPWNAM_R_RETURNS_INT 1" >>confdefs.h
12081
12082  elif test $krb5_cv_getpwnam_r_return_type = unknown; then
12083    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine getpwnam_r return type, disabling getpwnam_r" >&5
12084printf "%s\n" "$as_me: WARNING: Cannot determine getpwnam_r return type, disabling getpwnam_r" >&2;}
12085    ac_cv_func_getpwnam_r=no
12086  fi
12087fi
12088if test "$ac_cv_func_getpwnam_r" = yes; then
12089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to getpwnam_r" >&5
12090printf %s "checking number of arguments to getpwnam_r... " >&6; }
12091  if test ${krb5_cv_getpwnam_r_args+y}
12092then :
12093  printf %s "(cached) " >&6
12094else $as_nop
12095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h.  */
12097#include <pwd.h>
12098        struct passwd pwx; char buf[1024];
12099int
12100main (void)
12101{
12102getpwnam_r("", &pwx, buf, sizeof(buf));
12103  ;
12104  return 0;
12105}
12106_ACEOF
12107if ac_fn_c_try_compile "$LINENO"
12108then :
12109  args4=yes
12110else $as_nop
12111  args4=no
12112fi
12113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115/* end confdefs.h.  */
12116#include <pwd.h>
12117         struct passwd pwx, *p;
12118         char buf[1024];
12119int
12120main (void)
12121{
12122getpwnam_r("", &pwx, buf, sizeof(buf), &p);
12123  ;
12124  return 0;
12125}
12126_ACEOF
12127if ac_fn_c_try_compile "$LINENO"
12128then :
12129  args5=yes
12130else $as_nop
12131  args5=no
12132fi
12133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12134   case $args4/$args5 in
12135     yes/no) krb5_cv_getpwnam_r_args=4 ;;
12136     no/yes) krb5_cv_getpwnam_r_args=5 ;;
12137     *) krb5_cv_getpwnam_r_args=unknown ;;
12138   esac
12139fi
12140
12141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getpwnam_r_args" >&5
12142printf "%s\n" "$krb5_cv_getpwnam_r_args" >&6; }
12143  if test "$krb5_cv_getpwnam_r_args" = unknown; then
12144    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine number of arguments to getpwnam_r, disabling its use." >&5
12145printf "%s\n" "$as_me: WARNING: Cannot determine number of arguments to getpwnam_r, disabling its use." >&2;}
12146    ac_cv_func_getpwnam_r=no
12147  else
12148
12149printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
12150
12151    if test "$krb5_cv_getpwnam_r_args" = 4; then
12152
12153printf "%s\n" "#define GETPWNAM_R_4_ARGS 1" >>confdefs.h
12154
12155    fi
12156  fi
12157fi
12158CFLAGS=$old_CFLAGS
12159
12160if test "$ac_cv_func_getpwnam_r" = no && test "$ac_cv_func_getpwuid_r" = yes; then
12161  # Actually, we could do this check, and the corresponding checks
12162  # for return type and number of arguments, but I doubt we'll run
12163  # into a system where we'd get to use getpwuid_r but not getpwnam_r.
12164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: getpwnam_r not useful, so disabling getpwuid_r too" >&5
12165printf "%s\n" "$as_me: getpwnam_r not useful, so disabling getpwuid_r too" >&6;}
12166  ac_cv_func_getpwuid_r=no
12167fi
12168if test "$ac_cv_func_getpwuid_r" = yes; then
12169
12170printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
12171
12172  # Hack: Assume getpwuid_r is the shorter form if getpwnam_r is.
12173  if test "$krb5_cv_getpwnam_r_args" = 4; then
12174
12175printf "%s\n" "#define GETPWUID_R_4_ARGS 1" >>confdefs.h
12176
12177  fi
12178fi
12179
12180if test "$ac_cv_func_gmtime_r" = yes; then
12181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gmtime_r returns int" >&5
12182printf %s "checking whether gmtime_r returns int... " >&6; }
12183  if test ${krb5_cv_gmtime_r_returns_int+y}
12184then :
12185  printf %s "(cached) " >&6
12186else $as_nop
12187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188/* end confdefs.h.  */
12189#include <time.h>
12190        extern int gmtime_r();
12191_ACEOF
12192if ac_fn_c_try_compile "$LINENO"
12193then :
12194  return_int=yes
12195else $as_nop
12196  return_int=no
12197fi
12198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200/* end confdefs.h.  */
12201
12202     #include <time.h>
12203         extern struct tm *gmtime_r();
12204_ACEOF
12205if ac_fn_c_try_compile "$LINENO"
12206then :
12207  return_ptr=yes
12208else $as_nop
12209  return_ptr=no
12210fi
12211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12212   case $return_int/$return_ptr in
12213     yes/no) krb5_cv_gmtime_r_returns_int=yes ;;
12214     no/yes) krb5_cv_gmtime_r_returns_int=no ;;
12215     *)      # Can't figure it out, punt the function.
12216             ac_cv_func_gmtime_r=no ;;
12217   esac
12218fi
12219
12220  if test "$ac_cv_func_gmtime_r" = no; then
12221    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown -- ignoring gmtime_r" >&5
12222printf "%s\n" "unknown -- ignoring gmtime_r" >&6; }
12223  else
12224    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gmtime_r_returns_int" >&5
12225printf "%s\n" "$krb5_cv_gmtime_r_returns_int" >&6; }
12226    if test "$krb5_cv_gmtime_r_returns_int" = yes; then
12227
12228printf "%s\n" "#define GMTIME_R_RETURNS_INT 1" >>confdefs.h
12229
12230    fi
12231  fi
12232fi
12233
12234ac_fn_c_check_func "$LINENO" "getservbyname_r" "ac_cv_func_getservbyname_r"
12235if test "x$ac_cv_func_getservbyname_r" = xyes
12236then :
12237
12238ac_cv_func_getservbyname_r=yes
12239if test "$ac_cv_func_getservbyname_r" = yes; then
12240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyname_r returns an int" >&5
12241printf %s "checking if getservbyname_r returns an int... " >&6; }
12242  if test ${krb5_cv_getservbyname_r_returns_int+y}
12243then :
12244  printf %s "(cached) " >&6
12245else $as_nop
12246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247/* end confdefs.h.  */
12248#include <netdb.h>
12249        extern int getservbyname_r();
12250_ACEOF
12251if ac_fn_c_try_compile "$LINENO"
12252then :
12253  krb5_cv_getservbyname_r_returns_int=yes
12254else $as_nop
12255  krb5_cv_getservbyname_r_returns_int=no
12256fi
12257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12258fi
12259
12260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getservbyname_r_returns_int" >&5
12261printf "%s\n" "$krb5_cv_getservbyname_r_returns_int" >&6; }
12262
12263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyname_r returns a pointer" >&5
12264printf %s "checking if getservbyname_r returns a pointer... " >&6; }
12265  if test ${krb5_cv_getservbyname_r_returns_ptr+y}
12266then :
12267  printf %s "(cached) " >&6
12268else $as_nop
12269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h.  */
12271#include <netdb.h>
12272        extern struct servent *getservbyname_r();
12273_ACEOF
12274if ac_fn_c_try_compile "$LINENO"
12275then :
12276  krb5_cv_getservbyname_r_returns_ptr=yes
12277else $as_nop
12278  krb5_cv_getservbyname_r_returns_ptr=no
12279fi
12280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12281fi
12282
12283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getservbyname_r_returns_ptr" >&5
12284printf "%s\n" "$krb5_cv_getservbyname_r_returns_ptr" >&6; }
12285
12286  if test "$krb5_cv_getservbyname_r_returns_int" = "$krb5_cv_getservbyname_r_returns_ptr"; then
12287    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine return type of getservbyname_r -- disabling" >&5
12288printf "%s\n" "$as_me: WARNING: cannot determine return type of getservbyname_r -- disabling" >&2;}
12289    ac_cv_func_getservbyname_r=no
12290  fi
12291  if test "$krb5_cv_getservbyname_r_returns_int" = yes; then
12292
12293printf "%s\n" "#define GETSERVBYNAME_R_RETURNS_INT 1" >>confdefs.h
12294
12295  fi
12296fi
12297if test "$ac_cv_func_getservbyname_r" = yes; then
12298
12299printf "%s\n" "#define HAVE_GETSERVBYNAME_R 1" >>confdefs.h
12300
12301  ac_fn_c_check_func "$LINENO" "getservbyport_r" "ac_cv_func_getservbyport_r"
12302if test "x$ac_cv_func_getservbyport_r" = xyes
12303then :
12304
12305fi
12306
12307fi
12308
12309fi
12310
12311
12312
12313ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
12314if test "x$ac_cv_header_dirent_h" = xyes
12315then :
12316
12317printf "%s\n" "#define USE_DIRENT_H 1" >>confdefs.h
12318
12319fi
12320
12321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12322printf %s "checking for uid_t in sys/types.h... " >&6; }
12323if test ${ac_cv_type_uid_t+y}
12324then :
12325  printf %s "(cached) " >&6
12326else $as_nop
12327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328/* end confdefs.h.  */
12329#include <sys/types.h>
12330
12331_ACEOF
12332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12333  $EGREP "uid_t" >/dev/null 2>&1
12334then :
12335  ac_cv_type_uid_t=yes
12336else $as_nop
12337  ac_cv_type_uid_t=no
12338fi
12339rm -rf conftest*
12340
12341fi
12342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12343printf "%s\n" "$ac_cv_type_uid_t" >&6; }
12344if test $ac_cv_type_uid_t = no; then
12345
12346printf "%s\n" "#define uid_t int" >>confdefs.h
12347
12348
12349printf "%s\n" "#define gid_t int" >>confdefs.h
12350
12351fi
12352
12353
12354ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
12355if test "x$ac_cv_header_termios_h" = xyes
12356then :
12357  ac_fn_c_check_func "$LINENO" "tcsetattr" "ac_cv_func_tcsetattr"
12358if test "x$ac_cv_func_tcsetattr" = xyes
12359then :
12360
12361printf "%s\n" "#define POSIX_TERMIOS 1" >>confdefs.h
12362
12363fi
12364
12365fi
12366
12367
12368ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12369if test "x$ac_cv_header_poll_h" = xyes
12370then :
12371  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
12372
12373fi
12374ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12375if test "x$ac_cv_header_stdlib_h" = xyes
12376then :
12377  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12378
12379fi
12380ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
12381if test "x$ac_cv_header_string_h" = xyes
12382then :
12383  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
12384
12385fi
12386ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
12387if test "x$ac_cv_header_stddef_h" = xyes
12388then :
12389  printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
12390
12391fi
12392ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12393if test "x$ac_cv_header_sys_types_h" = xyes
12394then :
12395  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12396
12397fi
12398ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12399if test "x$ac_cv_header_sys_file_h" = xyes
12400then :
12401  printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12402
12403fi
12404ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12405if test "x$ac_cv_header_sys_param_h" = xyes
12406then :
12407  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
12408
12409fi
12410ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12411if test "x$ac_cv_header_sys_stat_h" = xyes
12412then :
12413  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12414
12415fi
12416ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12417if test "x$ac_cv_header_sys_time_h" = xyes
12418then :
12419  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12420
12421fi
12422ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12423if test "x$ac_cv_header_netinet_in_h" = xyes
12424then :
12425  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12426
12427fi
12428ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
12429if test "x$ac_cv_header_sys_uio_h" = xyes
12430then :
12431  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
12432
12433fi
12434ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
12435if test "x$ac_cv_header_sys_filio_h" = xyes
12436then :
12437  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
12438
12439fi
12440ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12441if test "x$ac_cv_header_sys_select_h" = xyes
12442then :
12443  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12444
12445fi
12446ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12447if test "x$ac_cv_header_time_h" = xyes
12448then :
12449  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
12450
12451fi
12452ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
12453if test "x$ac_cv_header_paths_h" = xyes
12454then :
12455  printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
12456
12457fi
12458ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
12459if test "x$ac_cv_header_errno_h" = xyes
12460then :
12461  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
12462
12463fi
12464
12465
12466# If compiling with IPv6 support, test if in6addr_any functions.
12467# Irix 6.5.16 defines it, but lacks support in the C library.
12468if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes ; then
12469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6addr_any definition in library" >&5
12470printf %s "checking for in6addr_any definition in library... " >&6; }
12471if test ${krb5_cv_var_in6addr_any+y}
12472then :
12473  printf %s "(cached) " >&6
12474else $as_nop
12475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476/* end confdefs.h.  */
12477#ifdef HAVE_SYS_TYPES_H
12478        #include <sys/types.h>
12479        #endif
12480        #include <sys/socket.h>
12481        #include <netinet/in.h>
12482        #include <netdb.h>
12483        #include <stdio.h>
12484
12485int
12486main (void)
12487{
12488struct sockaddr_in6 in;
12489        in.sin6_addr = in6addr_any;
12490        printf("%x", &in);
12491  ;
12492  return 0;
12493}
12494_ACEOF
12495if ac_fn_c_try_link "$LINENO"
12496then :
12497  krb5_cv_var_in6addr_any=yes
12498else $as_nop
12499  krb5_cv_var_in6addr_any=no
12500fi
12501rm -f core conftest.err conftest.$ac_objext conftest.beam \
12502    conftest$ac_exeext conftest.$ac_ext
12503fi
12504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_var_in6addr_any" >&5
12505printf "%s\n" "$krb5_cv_var_in6addr_any" >&6; }
12506  if test $krb5_cv_var_in6addr_any = no; then
12507
12508printf "%s\n" "#define NEED_INSIXADDR_ANY 1" >>confdefs.h
12509
12510  fi
12511fi
12512
12513# then from osconf.h, we have
12514
12515ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
12516if test "x$ac_cv_type_time_t" = xyes
12517then :
12518
12519else $as_nop
12520
12521printf "%s\n" "#define time_t long" >>confdefs.h
12522
12523fi
12524
12525# The cast to long int works around a bug in the HP C Compiler
12526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12528# This bug is HP SR number 8606223364.
12529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12530printf %s "checking size of time_t... " >&6; }
12531if test ${ac_cv_sizeof_time_t+y}
12532then :
12533  printf %s "(cached) " >&6
12534else $as_nop
12535  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
12536then :
12537
12538else $as_nop
12539  if test "$ac_cv_type_time_t" = yes; then
12540     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12541printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12542as_fn_error 77 "cannot compute sizeof (time_t)
12543See \`config.log' for more details" "$LINENO" 5; }
12544   else
12545     ac_cv_sizeof_time_t=0
12546   fi
12547fi
12548
12549fi
12550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12551printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12552
12553
12554
12555printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12556
12557
12558SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12559
12560
12561# Determine where to put the replay cache.
12562
12563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for replay cache directory" >&5
12564printf %s "checking for replay cache directory... " >&6; }
12565if test ${krb5_cv_sys_rcdir+y}
12566then :
12567  printf %s "(cached) " >&6
12568else $as_nop
12569
12570if test $cross_compiling = yes; then
12571	krb5_cv_sys_rcdir=/var/tmp
12572else
12573	for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do
12574		test -d $t_dir || continue
12575		krb5_cv_sys_rcdir=$t_dir
12576		break
12577	done
12578fi
12579fi
12580
12581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_sys_rcdir" >&5
12582printf "%s\n" "$krb5_cv_sys_rcdir" >&6; }
12583KRB5_RCTMPDIR=$krb5_cv_sys_rcdir
12584
12585
12586
12587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
12588printf %s "checking for socklen_t... " >&6; }
12589if test ${krb5_cv_has_type_socklen_t+y}
12590then :
12591  printf %s "(cached) " >&6
12592else $as_nop
12593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594/* end confdefs.h.  */
12595#include <sys/types.h>
12596      #include <sys/socket.h>
12597
12598int
12599main (void)
12600{
12601sizeof(socklen_t);
12602  ;
12603  return 0;
12604}
12605_ACEOF
12606if ac_fn_c_try_compile "$LINENO"
12607then :
12608  krb5_cv_has_type_socklen_t=yes
12609else $as_nop
12610  krb5_cv_has_type_socklen_t=no
12611fi
12612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12613fi
12614
12615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_type_socklen_t" >&5
12616printf "%s\n" "$krb5_cv_has_type_socklen_t" >&6; }
12617if test $krb5_cv_has_type_socklen_t = yes; then
12618
12619printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
12620
12621fi
12622
12623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
12624printf %s "checking for struct lifconf... " >&6; }
12625if test ${krb5_cv_has_struct_lifconf+y}
12626then :
12627  printf %s "(cached) " >&6
12628else $as_nop
12629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630/* end confdefs.h.  */
12631#include <sys/socket.h>
12632      #include <net/if.h>
12633
12634int
12635main (void)
12636{
12637sizeof (struct lifconf);
12638  ;
12639  return 0;
12640}
12641_ACEOF
12642if ac_fn_c_try_compile "$LINENO"
12643then :
12644  krb5_cv_has_struct_lifconf=yes
12645else $as_nop
12646  krb5_cv_has_struct_lifconf=no
12647fi
12648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12649fi
12650
12651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_struct_lifconf" >&5
12652printf "%s\n" "$krb5_cv_has_struct_lifconf" >&6; }
12653if test $krb5_cv_has_struct_lifconf = yes; then
12654
12655printf "%s\n" "#define HAVE_STRUCT_LIFCONF 1" >>confdefs.h
12656
12657fi
12658# HP-UX 11 uses stuct if_laddrconf
12659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
12660printf %s "checking for struct if_laddrconf... " >&6; }
12661if test ${krb5_cv_has_struct_if_laddrconf+y}
12662then :
12663  printf %s "(cached) " >&6
12664else $as_nop
12665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666/* end confdefs.h.  */
12667#include <sys/socket.h>
12668      #include <net/if.h>
12669      #include <net/if6.h>
12670
12671int
12672main (void)
12673{
12674sizeof(struct if_laddrconf);
12675  ;
12676  return 0;
12677}
12678_ACEOF
12679if ac_fn_c_try_compile "$LINENO"
12680then :
12681  krb5_cv_has_struct_if_laddrconf=yes
12682else $as_nop
12683  krb5_cv_has_struct_if_laddrconf=no
12684fi
12685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12686fi
12687
12688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_struct_if_laddrconf" >&5
12689printf "%s\n" "$krb5_cv_has_struct_if_laddrconf" >&6; }
12690if test $krb5_cv_has_struct_if_laddrconf = yes; then
12691
12692printf "%s\n" "#define HAVE_STRUCT_IF_LADDRCONF 1" >>confdefs.h
12693
12694fi
12695
12696
12697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
12698printf %s "checking for h_errno in netdb.h... " >&6; }
12699if test ${krb5_cv_header_netdb_h_h_errno+y}
12700then :
12701  printf %s "(cached) " >&6
12702else $as_nop
12703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704/* end confdefs.h.  */
12705#include <netdb.h>
12706int
12707main (void)
12708{
12709int x = h_errno;
12710  ;
12711  return 0;
12712}
12713_ACEOF
12714if ac_fn_c_try_compile "$LINENO"
12715then :
12716  krb5_cv_header_netdb_h_h_errno=yes
12717else $as_nop
12718  krb5_cv_header_netdb_h_h_errno=no
12719fi
12720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12721fi
12722
12723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_netdb_h_h_errno" >&5
12724printf "%s\n" "$krb5_cv_header_netdb_h_h_errno" >&6; }
12725if test $krb5_cv_header_netdb_h_h_errno = yes; then
12726
12727printf "%s\n" "#define HAVE_NETDB_H_H_ERRNO 1" >>confdefs.h
12728
12729fi
12730
12731
12732# Check whether --enable-athena was given.
12733if test ${enable_athena+y}
12734then :
12735  enableval=$enable_athena;
12736printf "%s\n" "#define KRB5_ATHENA_COMPAT 1" >>confdefs.h
12737
12738fi
12739
12740
12741
12742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12743printf %s "checking for inline... " >&6; }
12744if test ${ac_cv_c_inline+y}
12745then :
12746  printf %s "(cached) " >&6
12747else $as_nop
12748  ac_cv_c_inline=no
12749for ac_kw in inline __inline__ __inline; do
12750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751/* end confdefs.h.  */
12752#ifndef __cplusplus
12753typedef int foo_t;
12754static $ac_kw foo_t static_foo (void) {return 0; }
12755$ac_kw foo_t foo (void) {return 0; }
12756#endif
12757
12758_ACEOF
12759if ac_fn_c_try_compile "$LINENO"
12760then :
12761  ac_cv_c_inline=$ac_kw
12762fi
12763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12764  test "$ac_cv_c_inline" != no && break
12765done
12766
12767fi
12768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12769printf "%s\n" "$ac_cv_c_inline" >&6; }
12770
12771case $ac_cv_c_inline in
12772  inline | yes) ;;
12773  *)
12774    case $ac_cv_c_inline in
12775      no) ac_val=;;
12776      *) ac_val=$ac_cv_c_inline;;
12777    esac
12778    cat >>confdefs.h <<_ACEOF
12779#ifndef __cplusplus
12780#define inline $ac_val
12781#endif
12782_ACEOF
12783    ;;
12784esac
12785
12786
12787
12788
12789ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "
12790#include <sys/types.h>
12791#include <sys/socket.h>
12792#include <netinet/in.h>
12793
12794"
12795if test "x$ac_cv_type_struct_cmsghdr" = xyes
12796then :
12797
12798printf "%s\n" "#define HAVE_STRUCT_CMSGHDR 1" >>confdefs.h
12799
12800
12801fi
12802ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "
12803#include <sys/types.h>
12804#include <sys/socket.h>
12805#include <netinet/in.h>
12806
12807"
12808if test "x$ac_cv_type_struct_in_pktinfo" = xyes
12809then :
12810
12811printf "%s\n" "#define HAVE_STRUCT_IN_PKTINFO 1" >>confdefs.h
12812
12813
12814fi
12815ac_fn_c_check_type "$LINENO" "struct in6_pktinfo" "ac_cv_type_struct_in6_pktinfo" "
12816#include <sys/types.h>
12817#include <sys/socket.h>
12818#include <netinet/in.h>
12819
12820"
12821if test "x$ac_cv_type_struct_in6_pktinfo" = xyes
12822then :
12823
12824printf "%s\n" "#define HAVE_STRUCT_IN6_PKTINFO 1" >>confdefs.h
12825
12826
12827fi
12828ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12829#include <sys/types.h>
12830#include <sys/socket.h>
12831#include <netinet/in.h>
12832
12833"
12834if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
12835then :
12836
12837printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12838
12839
12840fi
12841
12842ac_fn_c_check_type "$LINENO" "struct rt_msghdr" "ac_cv_type_struct_rt_msghdr" "
12843#include <sys/socket.h>
12844#include <net/if.h>
12845#include <net/route.h>
12846
12847"
12848if test "x$ac_cv_type_struct_rt_msghdr" = xyes
12849then :
12850
12851printf "%s\n" "#define HAVE_STRUCT_RT_MSGHDR 1" >>confdefs.h
12852
12853
12854fi
12855
12856
12857# Tests for 64-bit edwards25519 code.
12858# The cast to long int works around a bug in the HP C Compiler
12859# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12860# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12861# This bug is HP SR number 8606223364.
12862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12863printf %s "checking size of size_t... " >&6; }
12864if test ${ac_cv_sizeof_size_t+y}
12865then :
12866  printf %s "(cached) " >&6
12867else $as_nop
12868  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"
12869then :
12870
12871else $as_nop
12872  if test "$ac_cv_type_size_t" = yes; then
12873     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12874printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12875as_fn_error 77 "cannot compute sizeof (size_t)
12876See \`config.log' for more details" "$LINENO" 5; }
12877   else
12878     ac_cv_sizeof_size_t=0
12879   fi
12880fi
12881
12882fi
12883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12884printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
12885
12886
12887
12888printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
12889
12890
12891ac_fn_c_check_type "$LINENO" "__int128_t" "ac_cv_type___int128_t" "$ac_includes_default"
12892if test "x$ac_cv_type___int128_t" = xyes
12893then :
12894
12895printf "%s\n" "#define HAVE___INT128_T 1" >>confdefs.h
12896
12897
12898fi
12899ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
12900if test "x$ac_cv_type___uint128_t" = xyes
12901then :
12902
12903printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h
12904
12905
12906fi
12907
12908
12909# types libdb2 wants
12910
12911ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12912if test "x$ac_cv_type_ssize_t" = xyes
12913then :
12914
12915printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
12916
12917
12918fi
12919ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
12920if test "x$ac_cv_type_u_char" = xyes
12921then :
12922
12923printf "%s\n" "#define HAVE_U_CHAR 1" >>confdefs.h
12924
12925
12926fi
12927ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12928if test "x$ac_cv_type_u_int" = xyes
12929then :
12930
12931printf "%s\n" "#define HAVE_U_INT 1" >>confdefs.h
12932
12933
12934fi
12935ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12936if test "x$ac_cv_type_u_long" = xyes
12937then :
12938
12939printf "%s\n" "#define HAVE_U_LONG 1" >>confdefs.h
12940
12941
12942fi
12943ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
12944if test "x$ac_cv_type_u_int8_t" = xyes
12945then :
12946
12947printf "%s\n" "#define HAVE_U_INT8_T 1" >>confdefs.h
12948
12949
12950fi
12951ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
12952if test "x$ac_cv_type_u_int16_t" = xyes
12953then :
12954
12955printf "%s\n" "#define HAVE_U_INT16_T 1" >>confdefs.h
12956
12957
12958fi
12959ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
12960if test "x$ac_cv_type_u_int32_t" = xyes
12961then :
12962
12963printf "%s\n" "#define HAVE_U_INT32_T 1" >>confdefs.h
12964
12965
12966fi
12967ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12968if test "x$ac_cv_type_int8_t" = xyes
12969then :
12970
12971printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
12972
12973
12974fi
12975ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12976if test "x$ac_cv_type_int16_t" = xyes
12977then :
12978
12979printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
12980
12981
12982fi
12983ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12984if test "x$ac_cv_type_int32_t" = xyes
12985then :
12986
12987printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
12988
12989
12990fi
12991
12992
12993# Some libdb2 test programs want a shell that supports functions.
12994FCTSH=false
12995# Extract the first word of "sh", so it can be a program name with args.
12996set dummy sh; ac_word=$2
12997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998printf %s "checking for $ac_word... " >&6; }
12999if test ${ac_cv_path_SH+y}
13000then :
13001  printf %s "(cached) " >&6
13002else $as_nop
13003  case $SH in
13004  [\\/]* | ?:[\\/]*)
13005  ac_cv_path_SH="$SH" # Let the user override the test with a path.
13006  ;;
13007  *)
13008  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009for as_dir in $PATH
13010do
13011  IFS=$as_save_IFS
13012  case $as_dir in #(((
13013    '') as_dir=./ ;;
13014    */) ;;
13015    *) as_dir=$as_dir/ ;;
13016  esac
13017    for ac_exec_ext in '' $ac_executable_extensions; do
13018  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13019    ac_cv_path_SH="$as_dir$ac_word$ac_exec_ext"
13020    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13021    break 2
13022  fi
13023done
13024  done
13025IFS=$as_save_IFS
13026
13027  test -z "$ac_cv_path_SH" && ac_cv_path_SH="false"
13028  ;;
13029esac
13030fi
13031SH=$ac_cv_path_SH
13032if test -n "$SH"; then
13033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
13034printf "%s\n" "$SH" >&6; }
13035else
13036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037printf "%s\n" "no" >&6; }
13038fi
13039
13040
13041# Extract the first word of "sh5", so it can be a program name with args.
13042set dummy sh5; ac_word=$2
13043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044printf %s "checking for $ac_word... " >&6; }
13045if test ${ac_cv_path_SH5+y}
13046then :
13047  printf %s "(cached) " >&6
13048else $as_nop
13049  case $SH5 in
13050  [\\/]* | ?:[\\/]*)
13051  ac_cv_path_SH5="$SH5" # Let the user override the test with a path.
13052  ;;
13053  *)
13054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055for as_dir in $PATH
13056do
13057  IFS=$as_save_IFS
13058  case $as_dir in #(((
13059    '') as_dir=./ ;;
13060    */) ;;
13061    *) as_dir=$as_dir/ ;;
13062  esac
13063    for ac_exec_ext in '' $ac_executable_extensions; do
13064  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13065    ac_cv_path_SH5="$as_dir$ac_word$ac_exec_ext"
13066    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13067    break 2
13068  fi
13069done
13070  done
13071IFS=$as_save_IFS
13072
13073  test -z "$ac_cv_path_SH5" && ac_cv_path_SH5="false"
13074  ;;
13075esac
13076fi
13077SH5=$ac_cv_path_SH5
13078if test -n "$SH5"; then
13079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SH5" >&5
13080printf "%s\n" "$SH5" >&6; }
13081else
13082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083printf "%s\n" "no" >&6; }
13084fi
13085
13086
13087# Extract the first word of "bash", so it can be a program name with args.
13088set dummy bash; ac_word=$2
13089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090printf %s "checking for $ac_word... " >&6; }
13091if test ${ac_cv_path_BASH+y}
13092then :
13093  printf %s "(cached) " >&6
13094else $as_nop
13095  case $BASH in
13096  [\\/]* | ?:[\\/]*)
13097  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
13098  ;;
13099  *)
13100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103  IFS=$as_save_IFS
13104  case $as_dir in #(((
13105    '') as_dir=./ ;;
13106    */) ;;
13107    *) as_dir=$as_dir/ ;;
13108  esac
13109    for ac_exec_ext in '' $ac_executable_extensions; do
13110  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13111    ac_cv_path_BASH="$as_dir$ac_word$ac_exec_ext"
13112    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13113    break 2
13114  fi
13115done
13116  done
13117IFS=$as_save_IFS
13118
13119  test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="false"
13120  ;;
13121esac
13122fi
13123BASH=$ac_cv_path_BASH
13124if test -n "$BASH"; then
13125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
13126printf "%s\n" "$BASH" >&6; }
13127else
13128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129printf "%s\n" "no" >&6; }
13130fi
13131
13132
13133for prog in $SH $SH5 $BASH; do
13134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $prog supports functions" >&5
13135printf %s "checking if $prog supports functions... " >&6; }
13136  if $prog -c 'foo() { true; }; foo' >/dev/null 2>&1; then
13137    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13138printf "%s\n" "yes" >&6; }
13139    FCTSH=$prog
13140    break
13141  else
13142    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143printf "%s\n" "no" >&6; }
13144  fi
13145done
13146
13147
13148# Test for POSIX 2001 *printf support (X/Open System Interfaces extension
13149# to ANSI/ISO C 1999 specification).  Specifically, positional
13150# specifications; not checking for other features like %zx at present.
13151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for POSIX printf positional specification support" >&5
13152printf %s "checking for POSIX printf positional specification support... " >&6; }
13153if test ${ac_cv_printf_positional+y}
13154then :
13155  printf %s "(cached) " >&6
13156else $as_nop
13157  if test "$cross_compiling" = yes
13158then :
13159  as_fn_error $? "Cannot test for printf positional argument support when cross compiling" "$LINENO" 5
13160else $as_nop
13161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162/* end confdefs.h.  */
13163#include <stdio.h>
13164      #include <string.h>
13165      const char expected[] = "200 100";
13166      int main()
13167      {
13168          char buf[30];
13169          sprintf(buf, "%2\$x %1\$d", 100, 512);
13170          if (strcmp(expected, buf)) {
13171              fprintf(stderr, "bad result: <%s> wanted: <%s>\n",
13172                      buf, expected);
13173              return 1;
13174          }
13175          return 0;
13176      }
13177_ACEOF
13178if ac_fn_c_try_run "$LINENO"
13179then :
13180  ac_cv_printf_positional=yes
13181else $as_nop
13182  ac_cv_printf_positional=no
13183fi
13184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13185  conftest.$ac_objext conftest.beam conftest.$ac_ext
13186fi
13187
13188fi
13189
13190# Nothing for autoconf.h for now.
13191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_printf_positional" >&5
13192printf "%s\n" "$ac_cv_printf_positional" >&6; }
13193
13194
13195# for t_locate_kdc test
13196
13197# Extract the first word of "dig", so it can be a program name with args.
13198set dummy dig; ac_word=$2
13199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200printf %s "checking for $ac_word... " >&6; }
13201if test ${ac_cv_path_DIG+y}
13202then :
13203  printf %s "(cached) " >&6
13204else $as_nop
13205  case $DIG in
13206  [\\/]* | ?:[\\/]*)
13207  ac_cv_path_DIG="$DIG" # Let the user override the test with a path.
13208  ;;
13209  *)
13210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213  IFS=$as_save_IFS
13214  case $as_dir in #(((
13215    '') as_dir=./ ;;
13216    */) ;;
13217    *) as_dir=$as_dir/ ;;
13218  esac
13219    for ac_exec_ext in '' $ac_executable_extensions; do
13220  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13221    ac_cv_path_DIG="$as_dir$ac_word$ac_exec_ext"
13222    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13223    break 2
13224  fi
13225done
13226  done
13227IFS=$as_save_IFS
13228
13229  test -z "$ac_cv_path_DIG" && ac_cv_path_DIG="false"
13230  ;;
13231esac
13232fi
13233DIG=$ac_cv_path_DIG
13234if test -n "$DIG"; then
13235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIG" >&5
13236printf "%s\n" "$DIG" >&6; }
13237else
13238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239printf "%s\n" "no" >&6; }
13240fi
13241
13242
13243# Extract the first word of "nslookup", so it can be a program name with args.
13244set dummy nslookup; ac_word=$2
13245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246printf %s "checking for $ac_word... " >&6; }
13247if test ${ac_cv_path_NSLOOKUP+y}
13248then :
13249  printf %s "(cached) " >&6
13250else $as_nop
13251  case $NSLOOKUP in
13252  [\\/]* | ?:[\\/]*)
13253  ac_cv_path_NSLOOKUP="$NSLOOKUP" # Let the user override the test with a path.
13254  ;;
13255  *)
13256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257for as_dir in $PATH
13258do
13259  IFS=$as_save_IFS
13260  case $as_dir in #(((
13261    '') as_dir=./ ;;
13262    */) ;;
13263    *) as_dir=$as_dir/ ;;
13264  esac
13265    for ac_exec_ext in '' $ac_executable_extensions; do
13266  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13267    ac_cv_path_NSLOOKUP="$as_dir$ac_word$ac_exec_ext"
13268    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13269    break 2
13270  fi
13271done
13272  done
13273IFS=$as_save_IFS
13274
13275  test -z "$ac_cv_path_NSLOOKUP" && ac_cv_path_NSLOOKUP="false"
13276  ;;
13277esac
13278fi
13279NSLOOKUP=$ac_cv_path_NSLOOKUP
13280if test -n "$NSLOOKUP"; then
13281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NSLOOKUP" >&5
13282printf "%s\n" "$NSLOOKUP" >&6; }
13283else
13284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285printf "%s\n" "no" >&6; }
13286fi
13287
13288
13289
13290# for kadmin
13291
13292for ac_prog in 'bison -y' byacc
13293do
13294  # Extract the first word of "$ac_prog", so it can be a program name with args.
13295set dummy $ac_prog; ac_word=$2
13296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297printf %s "checking for $ac_word... " >&6; }
13298if test ${ac_cv_prog_YACC+y}
13299then :
13300  printf %s "(cached) " >&6
13301else $as_nop
13302  if test -n "$YACC"; then
13303  ac_cv_prog_YACC="$YACC" # Let the user override the test.
13304else
13305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306for as_dir in $PATH
13307do
13308  IFS=$as_save_IFS
13309  case $as_dir in #(((
13310    '') as_dir=./ ;;
13311    */) ;;
13312    *) as_dir=$as_dir/ ;;
13313  esac
13314    for ac_exec_ext in '' $ac_executable_extensions; do
13315  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13316    ac_cv_prog_YACC="$ac_prog"
13317    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13318    break 2
13319  fi
13320done
13321  done
13322IFS=$as_save_IFS
13323
13324fi
13325fi
13326YACC=$ac_cv_prog_YACC
13327if test -n "$YACC"; then
13328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13329printf "%s\n" "$YACC" >&6; }
13330else
13331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332printf "%s\n" "no" >&6; }
13333fi
13334
13335
13336  test -n "$YACC" && break
13337done
13338test -n "$YACC" || YACC="yacc"
13339
13340ath_compat=
13341# Check whether --enable-athena was given.
13342if test ${enable_athena+y}
13343then :
13344  enableval=$enable_athena; ath_compat=compat
13345fi
13346
13347
13348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use priocntl hack" >&5
13349printf %s "checking whether to use priocntl hack... " >&6; }
13350if test ${krb5_cv_priocntl_hack+y}
13351then :
13352  printf %s "(cached) " >&6
13353else $as_nop
13354  case $krb5_cv_host in
13355*-*-solaris2.9*)
13356	if test "$cross_compiling" = yes; then
13357		krb5_cv_priocntl_hack=yes
13358	else
13359		# Solaris patch 117171-11 (sparc) or 117172-11 (x86)
13360		# fixes the Solaris 9 bug where final pty output
13361		# gets lost on close.
13362		if showrev -p | $AWK 'BEGIN { e = 1 }
13363/Patch: 11717[12]/ { x = index($2, "-");
13364if (substr($2, x + 1, length($2) - x) >= 11)
13365{ e = 0 } else { e = 1 } }
13366END { exit e; }'; then
13367			krb5_cv_priocntl_hack=no
13368		else
13369			krb5_cv_priocntl_hack=yes
13370		fi
13371	fi
13372	;;
13373*)
13374	krb5_cv_priocntl_hack=no
13375	;;
13376esac
13377fi
13378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_priocntl_hack" >&5
13379printf "%s\n" "$krb5_cv_priocntl_hack" >&6; }
13380if test "$krb5_cv_priocntl_hack" = yes; then
13381	PRIOCNTL_HACK=1
13382else
13383	PRIOCNTL_HACK=0
13384fi
13385
13386
13387# Extract the first word of "perl", so it can be a program name with args.
13388set dummy perl; ac_word=$2
13389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13390printf %s "checking for $ac_word... " >&6; }
13391if test ${ac_cv_prog_PERL+y}
13392then :
13393  printf %s "(cached) " >&6
13394else $as_nop
13395  if test -n "$PERL"; then
13396  ac_cv_prog_PERL="$PERL" # Let the user override the test.
13397else
13398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399for as_dir in $PATH
13400do
13401  IFS=$as_save_IFS
13402  case $as_dir in #(((
13403    '') as_dir=./ ;;
13404    */) ;;
13405    *) as_dir=$as_dir/ ;;
13406  esac
13407    for ac_exec_ext in '' $ac_executable_extensions; do
13408  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13409    ac_cv_prog_PERL="perl"
13410    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13411    break 2
13412  fi
13413done
13414  done
13415IFS=$as_save_IFS
13416
13417fi
13418fi
13419PERL=$ac_cv_prog_PERL
13420if test -n "$PERL"; then
13421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13422printf "%s\n" "$PERL" >&6; }
13423else
13424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425printf "%s\n" "no" >&6; }
13426fi
13427
13428
13429
13430# lib/gssapi
13431ac_fn_c_check_header_compile "$LINENO" "xom.h" "ac_cv_header_xom_h" "$ac_includes_default"
13432if test "x$ac_cv_header_xom_h" = xyes
13433then :
13434
13435	include_xom='awk '\''END{printf("%cinclude <xom.h>\n", 35);}'\'' < /dev/null'
13436else $as_nop
13437
13438	include_xom='echo "/* no xom.h */"'
13439fi
13440
13441
13442
13443
13444# lib/rpc
13445### Check where struct rpcent is declared.
13446
13447# This is necessary to determine:
13448# 1. If /usr/include/netdb.h declares struct rpcent
13449# 2. If /usr/include/rpc/netdb.h declares struct rpcent
13450
13451# We have our own rpc/netdb.h, and if /usr/include/netdb.h includes
13452# rpc/netdb.h, then nastiness could happen.
13453
13454# Logic: If /usr/include/netdb.h declares struct rpcent, then check
13455# rpc/netdb.h.  If /usr/include/rpc/netdb.h declares struct rpcent,
13456# then define STRUCT_RPCENT_IN_RPC_NETDB_H, otherwise do not.  If
13457# neither netdb.h nor rpc/netdb.h declares struct rpcent, then define
13458# STRUCT_RPCENT_IN_RPC_NETDB_H anyway.
13459
13460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where struct rpcent is declared" >&5
13461printf %s "checking where struct rpcent is declared... " >&6; }
13462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463/* end confdefs.h.  */
13464#include <netdb.h>
13465
13466int
13467main (void)
13468{
13469struct rpcent e;
13470      char c = e.r_name[0];
13471      int i = e.r_number;
13472  ;
13473  return 0;
13474}
13475_ACEOF
13476if ac_fn_c_try_compile "$LINENO"
13477then :
13478  netdb_rpcent=yes
13479else $as_nop
13480  netdb_rpcent=no
13481fi
13482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13483if test "$netdb_rpcent" = yes; then
13484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485/* end confdefs.h.  */
13486#include <rpc/netdb.h>
13487
13488int
13489main (void)
13490{
13491struct rpcent e;
13492        char c = e.r_name[0];
13493        int i = e.r_number;
13494  ;
13495  return 0;
13496}
13497_ACEOF
13498if ac_fn_c_try_compile "$LINENO"
13499then :
13500  rpc_netdb_rpcent=yes
13501else $as_nop
13502  rpc_netdb_rpcent=no
13503fi
13504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13505  if test "$rpc_netdb_rpcent" = yes; then
13506    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: rpc/netdb.h" >&5
13507printf "%s\n" "rpc/netdb.h" >&6; }
13508    rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H'
13509  else
13510    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: netdb.h" >&5
13511printf "%s\n" "netdb.h" >&6; }
13512  fi
13513else
13514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
13515printf "%s\n" "nowhere" >&6; }
13516  rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H'
13517fi
13518
13519
13520ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13521if test "x$ac_cv_header_sys_select_h" = xyes
13522then :
13523  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
13524
13525fi
13526ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13527if test "x$ac_cv_header_sys_time_h" = xyes
13528then :
13529  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13530
13531fi
13532ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13533if test "x$ac_cv_header_unistd_h" = xyes
13534then :
13535  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13536
13537fi
13538
13539if test $ac_cv_header_sys_select_h = yes; then
13540  GSSRPC__SYS_SELECT_H='#include <sys/select.h>'
13541else
13542  GSSRPC__SYS_SELECT_H='/* #include <sys/select.h> */'
13543fi
13544
13545if test $ac_cv_header_sys_time_h = yes; then
13546  GSSRPC__SYS_TIME_H='#include <sys/time.h>'
13547else
13548  GSSRPC__SYS_TIME_H='/* #include <sys/time.h> */'
13549fi
13550
13551if test $ac_cv_header_unistd_h = yes; then
13552  GSSRPC__UNISTD_H='#include <unistd.h>'
13553else
13554  GSSRPC__UNISTD_H='/* #include <unistd.h> */'
13555fi
13556
13557
13558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN in sys/param.h" >&5
13559printf %s "checking for MAXHOSTNAMELEN in sys/param.h... " >&6; }
13560if test ${krb5_cv_header_sys_param_h_maxhostnamelen+y}
13561then :
13562  printf %s "(cached) " >&6
13563else $as_nop
13564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565/* end confdefs.h.  */
13566#include <sys/param.h>
13567
13568int
13569main (void)
13570{
13571int i = MAXHOSTNAMELEN;
13572  ;
13573  return 0;
13574}
13575_ACEOF
13576if ac_fn_c_try_compile "$LINENO"
13577then :
13578  krb5_cv_header_sys_param_h_maxhostnamelen=yes
13579else $as_nop
13580  krb5_cv_header_sys_param_h_maxhostnamelen=no
13581fi
13582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13583fi
13584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_sys_param_h_maxhostnamelen" >&5
13585printf "%s\n" "$krb5_cv_header_sys_param_h_maxhostnamelen" >&6; }
13586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN in netdb.h" >&5
13587printf %s "checking for MAXHOSTNAMELEN in netdb.h... " >&6; }
13588if test ${krb5_cv_header_netdb_h_maxhostnamelen+y}
13589then :
13590  printf %s "(cached) " >&6
13591else $as_nop
13592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593/* end confdefs.h.  */
13594#include <netdb.h>
13595
13596int
13597main (void)
13598{
13599int i = MAXHOSTNAMELEN;
13600  ;
13601  return 0;
13602}
13603_ACEOF
13604if ac_fn_c_try_compile "$LINENO"
13605then :
13606  krb5_cv_header_netdb_h_maxhostnamelen=yes
13607else $as_nop
13608  krb5_cv_header_netdb_h_maxhostnamelen=no
13609fi
13610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13611fi
13612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_netdb_h_maxhostnamelen" >&5
13613printf "%s\n" "$krb5_cv_header_netdb_h_maxhostnamelen" >&6; }
13614
13615GSSRPC__SYS_PARAM_H='/* #include <sys/param.h> */'
13616GSSRPC__NETDB_H='/* #include <netdb.h> */'
13617if test $krb5_cv_header_sys_param_h_maxhostnamelen = yes; then
13618  GSSRPC__SYS_PARAM_H='#include <sys/param.h>'
13619else
13620  if test $krb5_cv_header_netdb_h_maxhostnamelen = yes; then
13621    GSSRPC__NETDB_H='#include <netdb.h>'
13622  else
13623    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find MAXHOSTNAMELEN definition; faking it" >&5
13624printf "%s\n" "$as_me: WARNING: can't find MAXHOSTNAMELEN definition; faking it" >&2;}
13625  fi
13626fi
13627
13628
13629
13630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD type aliases" >&5
13631printf %s "checking for BSD type aliases... " >&6; }
13632if test ${krb5_cv_type_bsdaliases+y}
13633then :
13634  printf %s "(cached) " >&6
13635else $as_nop
13636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637/* end confdefs.h.  */
13638#include <sys/types.h>
13639      #if HAVE_UNISTD_H
13640      #include <unistd.h>
13641      #endif
13642
13643int
13644main (void)
13645{
13646u_char c;
13647      u_int i;
13648      u_long l;
13649  ;
13650  return 0;
13651}
13652_ACEOF
13653if ac_fn_c_try_compile "$LINENO"
13654then :
13655  krb5_cv_type_bsdaliases=yes
13656else $as_nop
13657  krb5_cv_type_bsdaliases=no
13658fi
13659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13660fi
13661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_bsdaliases" >&5
13662printf "%s\n" "$krb5_cv_type_bsdaliases" >&6; }
13663if test $krb5_cv_type_bsdaliases = yes; then
13664  GSSRPC__BSD_TYPEALIASES='/* #undef GSSRPC__BSD_TYPEALIASES */'
13665else
13666  GSSRPC__BSD_TYPEALIASES='#define GSSRPC__BSD_TYPEALIASES 1'
13667fi
13668
13669
13670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of setrpcent" >&5
13671printf %s "checking return type of setrpcent... " >&6; }
13672if test ${k5_cv_type_setrpcent+y}
13673then :
13674  printf %s "(cached) " >&6
13675else $as_nop
13676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677/* end confdefs.h.  */
13678#include <netdb.h>
13679      extern void setrpcent();
13680_ACEOF
13681if ac_fn_c_try_compile "$LINENO"
13682then :
13683  k5_cv_type_setrpcent=void
13684else $as_nop
13685  k5_cv_type_setrpcent=int
13686fi
13687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13688fi
13689
13690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_setrpcent" >&5
13691printf "%s\n" "$k5_cv_type_setrpcent" >&6; }
13692
13693printf "%s\n" "#define SETRPCENT_TYPE $k5_cv_type_setrpcent" >>confdefs.h
13694
13695
13696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of endrpcent" >&5
13697printf %s "checking return type of endrpcent... " >&6; }
13698if test ${k5_cv_type_endrpcent+y}
13699then :
13700  printf %s "(cached) " >&6
13701else $as_nop
13702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703/* end confdefs.h.  */
13704#include <netdb.h>
13705      extern void endrpcent();
13706_ACEOF
13707if ac_fn_c_try_compile "$LINENO"
13708then :
13709  k5_cv_type_endrpcent=void
13710else $as_nop
13711  k5_cv_type_endrpcent=int
13712fi
13713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13714fi
13715
13716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_endrpcent" >&5
13717printf "%s\n" "$k5_cv_type_endrpcent" >&6; }
13718
13719printf "%s\n" "#define ENDRPCENT_TYPE $k5_cv_type_endrpcent" >>confdefs.h
13720
13721ac_config_files="$ac_config_files include/gssrpc/types.h:include/gssrpc/types.hin"
13722
13723
13724# for pkinit
13725# Check whether --enable-pkinit was given.
13726if test ${enable_pkinit+y}
13727then :
13728  enableval=$enable_pkinit;
13729else $as_nop
13730  enable_pkinit=try
13731fi
13732
13733if test "$enable_pkinit" = yes || test "$enable_pkinit" = try; then
13734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a recent enough OpenSSL" >&5
13735printf %s "checking for a recent enough OpenSSL... " >&6; }
13736if test ${k5_cv_openssl_version_okay+y}
13737then :
13738  printf %s "(cached) " >&6
13739else $as_nop
13740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741/* end confdefs.h.  */
13742#include <openssl/opensslv.h>
13743#if OPENSSL_VERSION_NUMBER < 0x10000000L
13744# error openssl is too old, need 1.0.0
13745#endif
13746int i = 1;
13747
13748_ACEOF
13749if ac_fn_c_try_compile "$LINENO"
13750then :
13751  k5_cv_openssl_version_okay=yes
13752else $as_nop
13753  k5_cv_openssl_version_okay=no
13754fi
13755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13756fi
13757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $k5_cv_openssl_version_okay" >&5
13758printf "%s\n" "$k5_cv_openssl_version_okay" >&6; }
13759  old_LIBS="$LIBS"
13760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PKCS7_get_signer_info in -lcrypto" >&5
13761printf %s "checking for PKCS7_get_signer_info in -lcrypto... " >&6; }
13762if test ${ac_cv_lib_crypto_PKCS7_get_signer_info+y}
13763then :
13764  printf %s "(cached) " >&6
13765else $as_nop
13766  ac_check_lib_save_LIBS=$LIBS
13767LIBS="-lcrypto  $LIBS"
13768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769/* end confdefs.h.  */
13770
13771/* Override any GCC internal prototype to avoid an error.
13772   Use char because int might match the return type of a GCC
13773   builtin and then its argument prototype would still apply.  */
13774char PKCS7_get_signer_info ();
13775int
13776main (void)
13777{
13778return PKCS7_get_signer_info ();
13779  ;
13780  return 0;
13781}
13782_ACEOF
13783if ac_fn_c_try_link "$LINENO"
13784then :
13785  ac_cv_lib_crypto_PKCS7_get_signer_info=yes
13786else $as_nop
13787  ac_cv_lib_crypto_PKCS7_get_signer_info=no
13788fi
13789rm -f core conftest.err conftest.$ac_objext conftest.beam \
13790    conftest$ac_exeext conftest.$ac_ext
13791LIBS=$ac_check_lib_save_LIBS
13792fi
13793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_PKCS7_get_signer_info" >&5
13794printf "%s\n" "$ac_cv_lib_crypto_PKCS7_get_signer_info" >&6; }
13795if test "x$ac_cv_lib_crypto_PKCS7_get_signer_info" = xyes
13796then :
13797  printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13798
13799  LIBS="-lcrypto $LIBS"
13800
13801fi
13802
13803  ac_fn_c_check_func "$LINENO" "EVP_PKEY_get_bn_param" "ac_cv_func_EVP_PKEY_get_bn_param"
13804if test "x$ac_cv_func_EVP_PKEY_get_bn_param" = xyes
13805then :
13806  printf "%s\n" "#define HAVE_EVP_PKEY_GET_BN_PARAM 1" >>confdefs.h
13807
13808fi
13809
13810  LIBS="$old_LIBS"
13811fi
13812if test "$k5_cv_openssl_version_okay" = yes && (test "$enable_pkinit" = yes || test "$enable_pkinit" = try); then
13813  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"
13814
13815
13816
13817  ac_config_files="$ac_config_files tests/softpkcs11/Makefile:$srcdir/./config/pre.in:tests/softpkcs11/Makefile.in:tests/softpkcs11/deps:$srcdir/./config/post.in"
13818
13819
13820
13821  PKINIT=yes
13822elif test "$k5_cv_openssl_version_okay" = no && test "$enable_pkinit" = yes; then
13823  as_fn_error $? "Version of OpenSSL is too old; cannot enable PKINIT." "$LINENO" 5
13824else
13825
13826printf "%s\n" "#define DISABLE_PKINIT 1" >>confdefs.h
13827
13828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling PKINIT support." >&5
13829printf "%s\n" "$as_me: Disabling PKINIT support." >&6;}
13830  PKINIT=no
13831fi
13832
13833
13834# for lib/apputils
13835ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13836if test "x$ac_cv_func_daemon" = xyes
13837then :
13838  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
13839
13840else $as_nop
13841  case " $LIBOBJS " in
13842  *" daemon.$ac_objext "* ) ;;
13843  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
13844 ;;
13845esac
13846
13847fi
13848
13849
13850# For Python tests.  Python version 3.2.4 is required as prior
13851# versions do not accept string input to subprocess.Popen.communicate
13852# when universal_newlines is set.
13853PYTHON_MINVERSION=3.2.4
13854
13855# Extract the first word of "python3", so it can be a program name with args.
13856set dummy python3; ac_word=$2
13857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13858printf %s "checking for $ac_word... " >&6; }
13859if test ${ac_cv_prog_PYTHON+y}
13860then :
13861  printf %s "(cached) " >&6
13862else $as_nop
13863  if test -n "$PYTHON"; then
13864  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
13865else
13866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13867for as_dir in $PATH
13868do
13869  IFS=$as_save_IFS
13870  case $as_dir in #(((
13871    '') as_dir=./ ;;
13872    */) ;;
13873    *) as_dir=$as_dir/ ;;
13874  esac
13875    for ac_exec_ext in '' $ac_executable_extensions; do
13876  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13877    ac_cv_prog_PYTHON="python3"
13878    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13879    break 2
13880  fi
13881done
13882  done
13883IFS=$as_save_IFS
13884
13885fi
13886fi
13887PYTHON=$ac_cv_prog_PYTHON
13888if test -n "$PYTHON"; then
13889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13890printf "%s\n" "$PYTHON" >&6; }
13891else
13892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893printf "%s\n" "no" >&6; }
13894fi
13895
13896
13897if test x"$PYTHON" = x; then
13898	# Extract the first word of "python", so it can be a program name with args.
13899set dummy python; ac_word=$2
13900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13901printf %s "checking for $ac_word... " >&6; }
13902if test ${ac_cv_prog_PYTHON+y}
13903then :
13904  printf %s "(cached) " >&6
13905else $as_nop
13906  if test -n "$PYTHON"; then
13907  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
13908else
13909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13910for as_dir in $PATH
13911do
13912  IFS=$as_save_IFS
13913  case $as_dir in #(((
13914    '') as_dir=./ ;;
13915    */) ;;
13916    *) as_dir=$as_dir/ ;;
13917  esac
13918    for ac_exec_ext in '' $ac_executable_extensions; do
13919  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13920    ac_cv_prog_PYTHON="python"
13921    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13922    break 2
13923  fi
13924done
13925  done
13926IFS=$as_save_IFS
13927
13928fi
13929fi
13930PYTHON=$ac_cv_prog_PYTHON
13931if test -n "$PYTHON"; then
13932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13933printf "%s\n" "$PYTHON" >&6; }
13934else
13935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936printf "%s\n" "no" >&6; }
13937fi
13938
13939
13940fi
13941HAVE_PYTHON=no
13942if test x"$PYTHON" != x; then
13943	wantver="(sys.hexversion >= 0x30204F0)"
13944	if "$PYTHON" -c "import sys; sys.exit(not $wantver and 1 or 0)"; then
13945		HAVE_PYTHON=yes
13946	fi
13947fi
13948
13949
13950# For cmocka tests.
13951CMOCKA_LIBS=
13952HAVE_CMOCKA=no
13953HAVE_CMOCKA_H=no
13954HAVE_CMOCKA_LIB=no
13955ac_fn_c_check_header_compile "$LINENO" "cmocka.h" "ac_cv_header_cmocka_h" "
13956#include <stdarg.h>
13957#include <stddef.h>
13958#include <setjmp.h>
13959"
13960if test "x$ac_cv_header_cmocka_h" = xyes
13961then :
13962  HAVE_CMOCKA_H=yes
13963else $as_nop
13964  :
13965fi
13966
13967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _cmocka_run_group_tests in -lcmocka" >&5
13968printf %s "checking for _cmocka_run_group_tests in -lcmocka... " >&6; }
13969if test ${ac_cv_lib_cmocka__cmocka_run_group_tests+y}
13970then :
13971  printf %s "(cached) " >&6
13972else $as_nop
13973  ac_check_lib_save_LIBS=$LIBS
13974LIBS="-lcmocka  $LIBS"
13975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976/* end confdefs.h.  */
13977
13978/* Override any GCC internal prototype to avoid an error.
13979   Use char because int might match the return type of a GCC
13980   builtin and then its argument prototype would still apply.  */
13981char _cmocka_run_group_tests ();
13982int
13983main (void)
13984{
13985return _cmocka_run_group_tests ();
13986  ;
13987  return 0;
13988}
13989_ACEOF
13990if ac_fn_c_try_link "$LINENO"
13991then :
13992  ac_cv_lib_cmocka__cmocka_run_group_tests=yes
13993else $as_nop
13994  ac_cv_lib_cmocka__cmocka_run_group_tests=no
13995fi
13996rm -f core conftest.err conftest.$ac_objext conftest.beam \
13997    conftest$ac_exeext conftest.$ac_ext
13998LIBS=$ac_check_lib_save_LIBS
13999fi
14000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cmocka__cmocka_run_group_tests" >&5
14001printf "%s\n" "$ac_cv_lib_cmocka__cmocka_run_group_tests" >&6; }
14002if test "x$ac_cv_lib_cmocka__cmocka_run_group_tests" = xyes
14003then :
14004  HAVE_CMOCKA_LIB=yes
14005fi
14006
14007if test "$HAVE_CMOCKA_LIB" = yes && test "$HAVE_CMOCKA_H" = yes; then
14008    HAVE_CMOCKA=yes
14009    CMOCKA_LIBS='-lcmocka'
14010
14011printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h
14012
14013fi
14014
14015
14016
14017# For URI lookup tests. Requires resolv_wrapper >= 1.1.5 for URI
14018# support.
14019HAVE_RESOLV_WRAPPER=0
14020if test -n "$PKG_CONFIG" && \
14021    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"resolv_wrapper >= 1.1.5\""; } >&5
14022  ($PKG_CONFIG --exists --print-errors "resolv_wrapper >= 1.1.5") 2>&5
14023  ac_status=$?
14024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14025  test $ac_status = 0; }; then
14026  HAVE_RESOLV_WRAPPER=1
14027fi
14028
14029
14030# for plugins/kdb/db2
14031
14032# AIX is unusual in that it wants all symbols resolved at link time
14033#  Fortunately, it will allow us to link the kdb library now, even if
14034# it is linked again later.
14035case $krb5_cv_host in
14036*-*-aix*)
14037	DB_EXTRA_LIBS=-ldb
14038	;;
14039*)
14040	DB_EXTRA_LIBS=
14041	;;
14042esac
14043
14044
14045
14046
14047# Warn about possible thread safety issues.  These functions have all
14048# been checked for previously.
14049tsfuncs="getpwnam_r getpwuid_r gethostbyname_r getservbyname_r gmtime_r localtime_r"
14050if test "$enable_thread_support" = yes; then
14051  tsmissing=""
14052  for ts in $tsfuncs; do
14053    if eval "test \"\${ac_cv_func_$ts}\" != yes"; then
14054      tsmissing="$tsmissing $ts"
14055    fi
14056  done
14057  if test "$ac_cv_func_res_nsearch/$ac_cv_lib_resolv_res_nsearch" = "no/no"; then
14058    tsmissing="$tsmissing res_nsearch"
14059  fi
14060  if test "$tsmissing" != ""; then
14061    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Some functions that are needed for library thread" >&5
14062printf "%s\n" "$as_me: WARNING: Some functions that are needed for library thread" >&2;}
14063    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: safety appear to be missing." >&5
14064printf "%s\n" "$as_me: WARNING: safety appear to be missing." >&2;}
14065    for ts in $tsmissing; do
14066      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:   missing thread-safe function: $ts" >&5
14067printf "%s\n" "$as_me: WARNING:   missing thread-safe function: $ts" >&2;}
14068    done
14069    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Without these functions, the installed libraries" >&5
14070printf "%s\n" "$as_me: WARNING: Without these functions, the installed libraries" >&2;}
14071    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: may not be thread-safe." >&5
14072printf "%s\n" "$as_me: WARNING: may not be thread-safe." >&2;}
14073  fi # tsmissing not empty
14074fi # enable_thread_support
14075
14076# Sadly, we seem to have accidentally committed ourselves in 1.4 to
14077# an ABI that includes the existence of libkrb5support.0 even
14078# though random apps should never use anything from it.  And on
14079# the Mac, to which that didn't apply, we can't use major version 0.
14080
14081case $krb5_cv_host in
14082*-*-darwin* | *-*-rhapsody*) SUPPORTLIB_MAJOR=1 ;;
14083*)			     SUPPORTLIB_MAJOR=0 ;;
14084esac
14085
14086
14087
14088if test "$COM_ERR_VERSION" = k5 ; then
14089  ac_config_files="$ac_config_files util/et/Makefile:$srcdir/./config/pre.in:util/et/Makefile.in:util/et/deps:$srcdir/./config/post.in"
14090
14091
14092
14093fi
14094if test "$SS_VERSION" = k5 ; then
14095  ac_config_files="$ac_config_files util/ss/Makefile:$srcdir/./config/pre.in:util/ss/Makefile.in:util/ss/deps:$srcdir/./config/post.in"
14096
14097
14098
14099fi
14100
14101
14102ldap_plugin_dir=""
14103ldap_lib=""
14104if test -n "$OPENLDAP_PLUGIN"; then
14105         for ac_header in ldap.h lber.h
14106do :
14107  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14108ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14109if eval test \"x\$"$as_ac_Header"\" = x"yes"
14110then :
14111  cat >>confdefs.h <<_ACEOF
14112#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14113_ACEOF
14114 :
14115else $as_nop
14116  as_fn_error $? "$ac_header not found" "$LINENO" 5
14117fi
14118
14119done
14120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_str2dn in -lldap" >&5
14121printf %s "checking for ldap_str2dn in -lldap... " >&6; }
14122if test ${ac_cv_lib_ldap_ldap_str2dn+y}
14123then :
14124  printf %s "(cached) " >&6
14125else $as_nop
14126  ac_check_lib_save_LIBS=$LIBS
14127LIBS="-lldap  $LIBS"
14128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129/* end confdefs.h.  */
14130
14131/* Override any GCC internal prototype to avoid an error.
14132   Use char because int might match the return type of a GCC
14133   builtin and then its argument prototype would still apply.  */
14134char ldap_str2dn ();
14135int
14136main (void)
14137{
14138return ldap_str2dn ();
14139  ;
14140  return 0;
14141}
14142_ACEOF
14143if ac_fn_c_try_link "$LINENO"
14144then :
14145  ac_cv_lib_ldap_ldap_str2dn=yes
14146else $as_nop
14147  ac_cv_lib_ldap_ldap_str2dn=no
14148fi
14149rm -f core conftest.err conftest.$ac_objext conftest.beam \
14150    conftest$ac_exeext conftest.$ac_ext
14151LIBS=$ac_check_lib_save_LIBS
14152fi
14153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_str2dn" >&5
14154printf "%s\n" "$ac_cv_lib_ldap_ldap_str2dn" >&6; }
14155if test "x$ac_cv_lib_ldap_ldap_str2dn" = xyes
14156then :
14157  :
14158else $as_nop
14159  as_fn_error $? "libldap not found or missing ldap_str2dn" "$LINENO" 5
14160fi
14161
14162
14163  BER_OKAY=0
14164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_init in -lldap" >&5
14165printf %s "checking for ber_init in -lldap... " >&6; }
14166if test ${ac_cv_lib_ldap_ber_init+y}
14167then :
14168  printf %s "(cached) " >&6
14169else $as_nop
14170  ac_check_lib_save_LIBS=$LIBS
14171LIBS="-lldap  $LIBS"
14172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173/* end confdefs.h.  */
14174
14175/* Override any GCC internal prototype to avoid an error.
14176   Use char because int might match the return type of a GCC
14177   builtin and then its argument prototype would still apply.  */
14178char ber_init ();
14179int
14180main (void)
14181{
14182return ber_init ();
14183  ;
14184  return 0;
14185}
14186_ACEOF
14187if ac_fn_c_try_link "$LINENO"
14188then :
14189  ac_cv_lib_ldap_ber_init=yes
14190else $as_nop
14191  ac_cv_lib_ldap_ber_init=no
14192fi
14193rm -f core conftest.err conftest.$ac_objext conftest.beam \
14194    conftest$ac_exeext conftest.$ac_ext
14195LIBS=$ac_check_lib_save_LIBS
14196fi
14197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ber_init" >&5
14198printf "%s\n" "$ac_cv_lib_ldap_ber_init" >&6; }
14199if test "x$ac_cv_lib_ldap_ber_init" = xyes
14200then :
14201  BER_OKAY=1
14202fi
14203
14204  if test "$BER_OKAY" = "1"; then
14205    LDAP_LIBS='-lldap'
14206  else
14207    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14208printf %s "checking for ber_init in -llber... " >&6; }
14209if test ${ac_cv_lib_lber_ber_init+y}
14210then :
14211  printf %s "(cached) " >&6
14212else $as_nop
14213  ac_check_lib_save_LIBS=$LIBS
14214LIBS="-llber  $LIBS"
14215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216/* end confdefs.h.  */
14217
14218/* Override any GCC internal prototype to avoid an error.
14219   Use char because int might match the return type of a GCC
14220   builtin and then its argument prototype would still apply.  */
14221char ber_init ();
14222int
14223main (void)
14224{
14225return ber_init ();
14226  ;
14227  return 0;
14228}
14229_ACEOF
14230if ac_fn_c_try_link "$LINENO"
14231then :
14232  ac_cv_lib_lber_ber_init=yes
14233else $as_nop
14234  ac_cv_lib_lber_ber_init=no
14235fi
14236rm -f core conftest.err conftest.$ac_objext conftest.beam \
14237    conftest$ac_exeext conftest.$ac_ext
14238LIBS=$ac_check_lib_save_LIBS
14239fi
14240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14241printf "%s\n" "$ac_cv_lib_lber_ber_init" >&6; }
14242if test "x$ac_cv_lib_lber_ber_init" = xyes
14243then :
14244  BER_OKAY=1
14245else $as_nop
14246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libber not found" >&5
14247printf "%s\n" "$as_me: WARNING: libber not found" >&2;}
14248fi
14249
14250    if test "$BER_OKAY" = "1"; then
14251      LDAP_LIBS='-lldap -llber'
14252    else
14253      as_fn_error $? "\"BER library missing - cannot build LDAP database module\"" "$LINENO" 5
14254    fi
14255  fi
14256
14257printf "%s\n" "#define ENABLE_LDAP 1" >>confdefs.h
14258
14259
14260
14261         for ac_header in sasl/sasl.h
14262do :
14263  ac_fn_c_check_header_compile "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14264if test "x$ac_cv_header_sasl_sasl_h" = xyes
14265then :
14266  printf "%s\n" "#define HAVE_SASL_SASL_H 1" >>confdefs.h
14267 HAVE_SASL=yes
14268else $as_nop
14269  HAVE_SASL=no
14270fi
14271
14272done
14273
14274  if test "$HAVE_SASL" = no; then
14275    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building LDAP SASL support" >&5
14276printf "%s\n" "$as_me: WARNING: not building LDAP SASL support" >&2;}
14277  fi
14278
14279  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"
14280
14281
14282
14283  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"
14284
14285
14286
14287  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"
14288
14289
14290
14291  ldap_plugin_dir='plugins/kdb/ldap plugins/kdb/ldap/ldap_util'
14292  LDAP=yes
14293else
14294  LDAP=no
14295fi
14296
14297
14298# This check is for plugins/preauth/securid_sam2
14299sam2_plugin=""
14300old_CFLAGS=$CFLAGS
14301CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
14303printf %s "checking for SD_Init in -laceclnt... " >&6; }
14304if test ${ac_cv_lib_aceclnt_SD_Init+y}
14305then :
14306  printf %s "(cached) " >&6
14307else $as_nop
14308  ac_check_lib_save_LIBS=$LIBS
14309LIBS="-laceclnt  $LIBS"
14310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311/* end confdefs.h.  */
14312
14313/* Override any GCC internal prototype to avoid an error.
14314   Use char because int might match the return type of a GCC
14315   builtin and then its argument prototype would still apply.  */
14316char SD_Init ();
14317int
14318main (void)
14319{
14320return SD_Init ();
14321  ;
14322  return 0;
14323}
14324_ACEOF
14325if ac_fn_c_try_link "$LINENO"
14326then :
14327  ac_cv_lib_aceclnt_SD_Init=yes
14328else $as_nop
14329  ac_cv_lib_aceclnt_SD_Init=no
14330fi
14331rm -f core conftest.err conftest.$ac_objext conftest.beam \
14332    conftest$ac_exeext conftest.$ac_ext
14333LIBS=$ac_check_lib_save_LIBS
14334fi
14335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init" >&5
14336printf "%s\n" "$ac_cv_lib_aceclnt_SD_Init" >&6; }
14337if test "x$ac_cv_lib_aceclnt_SD_Init" = xyes
14338then :
14339
14340	     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling RSA securID support" >&5
14341printf "%s\n" "$as_me: Enabling RSA securID support" >&6;}
14342	     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"
14343
14344
14345
14346	     sam2_plugin=plugins/preauth/securid_sam2
14347
14348fi
14349
14350
14351CFLAGS=$old_CFLAGS
14352
14353lmdb_plugin_dir=""
14354HAVE_LMDB=no
14355
14356# Check whether --with-lmdb was given.
14357if test ${with_lmdb+y}
14358then :
14359  withval=$with_lmdb;
14360else $as_nop
14361  withval=auto
14362fi
14363
14364if test "$withval" = auto -o "$withval" = yes; then
14365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5
14366printf %s "checking for mdb_env_create in -llmdb... " >&6; }
14367if test ${ac_cv_lib_lmdb_mdb_env_create+y}
14368then :
14369  printf %s "(cached) " >&6
14370else $as_nop
14371  ac_check_lib_save_LIBS=$LIBS
14372LIBS="-llmdb  $LIBS"
14373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374/* end confdefs.h.  */
14375
14376/* Override any GCC internal prototype to avoid an error.
14377   Use char because int might match the return type of a GCC
14378   builtin and then its argument prototype would still apply.  */
14379char mdb_env_create ();
14380int
14381main (void)
14382{
14383return mdb_env_create ();
14384  ;
14385  return 0;
14386}
14387_ACEOF
14388if ac_fn_c_try_link "$LINENO"
14389then :
14390  ac_cv_lib_lmdb_mdb_env_create=yes
14391else $as_nop
14392  ac_cv_lib_lmdb_mdb_env_create=no
14393fi
14394rm -f core conftest.err conftest.$ac_objext conftest.beam \
14395    conftest$ac_exeext conftest.$ac_ext
14396LIBS=$ac_check_lib_save_LIBS
14397fi
14398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5
14399printf "%s\n" "$ac_cv_lib_lmdb_mdb_env_create" >&6; }
14400if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes
14401then :
14402  have_lmdb=true
14403else $as_nop
14404  have_lmdb=false
14405fi
14406
14407  if test "$have_lmdb" = true; then
14408    LMDB_LIBS=-llmdb
14409    HAVE_LMDB=yes
14410    lmdb_plugin_dir='plugins/kdb/lmdb'
14411    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"
14412
14413
14414
14415  elif test "$withval" = yes; then
14416    as_fn_error $? "liblmdb not found" "$LINENO" 5
14417  fi
14418fi
14419
14420
14421
14422
14423# Kludge for simple server --- FIXME is this the best way to do this?
14424
14425if test "$ac_cv_lib_socket" = "yes" -a "$ac_cv_lib_nsl" = "yes"; then
14426
14427printf "%s\n" "#define BROKEN_STREAMS_SOCKETS 1" >>confdefs.h
14428
14429fi
14430
14431# Compile with libedit support in ss by default if available.  Compile
14432# with readline only if asked, to avoid a default GPL dependency.
14433
14434# Check whether --with-libedit was given.
14435if test ${with_libedit+y}
14436then :
14437  withval=$with_libedit;
14438else $as_nop
14439  with_libedit=default
14440fi
14441
14442
14443# Check whether --with-readline was given.
14444if test ${with_readline+y}
14445then :
14446  withval=$with_readline;
14447else $as_nop
14448  with_readline=no
14449fi
14450
14451if test "x$with_readline" = xyes; then
14452  with_libedit=no
14453fi
14454RL_CFLAGS=
14455RL_LIBS=
14456if test "x$with_libedit" != xno; then
14457
14458pkg_failed=no
14459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
14460printf %s "checking for libedit... " >&6; }
14461
14462if test -n "$LIBEDIT_CFLAGS"; then
14463    pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
14464 elif test -n "$PKG_CONFIG"; then
14465    if test -n "$PKG_CONFIG" && \
14466    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
14467  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
14468  ac_status=$?
14469  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14470  test $ac_status = 0; }; then
14471  pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
14472		      test "x$?" != "x0" && pkg_failed=yes
14473else
14474  pkg_failed=yes
14475fi
14476 else
14477    pkg_failed=untried
14478fi
14479if test -n "$LIBEDIT_LIBS"; then
14480    pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
14481 elif test -n "$PKG_CONFIG"; then
14482    if test -n "$PKG_CONFIG" && \
14483    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
14484  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
14485  ac_status=$?
14486  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14487  test $ac_status = 0; }; then
14488  pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
14489		      test "x$?" != "x0" && pkg_failed=yes
14490else
14491  pkg_failed=yes
14492fi
14493 else
14494    pkg_failed=untried
14495fi
14496
14497
14498
14499if test $pkg_failed = yes; then
14500        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14501printf "%s\n" "no" >&6; }
14502
14503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14504        _pkg_short_errors_supported=yes
14505else
14506        _pkg_short_errors_supported=no
14507fi
14508        if test $_pkg_short_errors_supported = yes; then
14509	        LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
14510        else
14511	        LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
14512        fi
14513	# Put the nasty error message in config.log where it belongs
14514	echo "$LIBEDIT_PKG_ERRORS" >&5
14515
14516	have_libedit=no
14517elif test $pkg_failed = untried; then
14518        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14519printf "%s\n" "no" >&6; }
14520	have_libedit=no
14521else
14522	LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
14523	LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
14524        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14525printf "%s\n" "yes" >&6; }
14526	have_libedit=yes
14527fi
14528  if test "x$have_libedit" = xyes; then
14529    RL_CFLAGS=$LIBEDIT_CFLAGS
14530    RL_LIBS=$LIBEDIT_LIBS
14531
14532printf "%s\n" "#define HAVE_LIBEDIT 1" >>confdefs.h
14533
14534    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using libedit for readline support" >&5
14535printf "%s\n" "$as_me: Using libedit for readline support" >&6;}
14536  elif test "x$with_libedit" = xyes; then
14537    # We were explicitly asked for libedit and couldn't find it.
14538    as_fn_error $? "Could not detect libedit with pkg-config" "$LINENO" 5
14539  else
14540    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not using any readline support" >&5
14541printf "%s\n" "$as_me: Not using any readline support" >&6;}
14542  fi
14543elif test "x$with_readline" = xyes; then
14544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using GNU Readline" >&5
14545printf "%s\n" "$as_me: Using GNU Readline" >&6;}
14546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
14547printf %s "checking for main in -lreadline... " >&6; }
14548if test ${ac_cv_lib_readline_main+y}
14549then :
14550  printf %s "(cached) " >&6
14551else $as_nop
14552  ac_check_lib_save_LIBS=$LIBS
14553LIBS="-lreadline  $LIBS"
14554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555/* end confdefs.h.  */
14556
14557
14558int
14559main (void)
14560{
14561return main ();
14562  ;
14563  return 0;
14564}
14565_ACEOF
14566if ac_fn_c_try_link "$LINENO"
14567then :
14568  ac_cv_lib_readline_main=yes
14569else $as_nop
14570  ac_cv_lib_readline_main=no
14571fi
14572rm -f core conftest.err conftest.$ac_objext conftest.beam \
14573    conftest$ac_exeext conftest.$ac_ext
14574LIBS=$ac_check_lib_save_LIBS
14575fi
14576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
14577printf "%s\n" "$ac_cv_lib_readline_main" >&6; }
14578if test "x$ac_cv_lib_readline_main" = xyes
14579then :
14580  :
14581else $as_nop
14582  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14583printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14584as_fn_error $? "Cannot find readline library.
14585See \`config.log' for more details" "$LINENO" 5; }
14586fi
14587
14588
14589printf "%s\n" "#define HAVE_READLINE 1" >>confdefs.h
14590
14591  RL_LIBS='-lreadline'
14592else
14593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not using any readline support" >&5
14594printf "%s\n" "Not using any readline support" >&6; }
14595fi
14596
14597
14598
14599
14600# Check whether --with-system-verto was given.
14601if test ${with_system_verto+y}
14602then :
14603  withval=$with_system_verto;
14604else $as_nop
14605  with_system_verto=default
14606fi
14607
14608VERTO_VERSION=k5
14609if test "x$with_system_verto" != xno; then
14610
14611pkg_failed=no
14612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libverto" >&5
14613printf %s "checking for libverto... " >&6; }
14614
14615if test -n "$VERTO_CFLAGS"; then
14616    pkg_cv_VERTO_CFLAGS="$VERTO_CFLAGS"
14617 elif test -n "$PKG_CONFIG"; then
14618    if test -n "$PKG_CONFIG" && \
14619    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libverto\""; } >&5
14620  ($PKG_CONFIG --exists --print-errors "libverto") 2>&5
14621  ac_status=$?
14622  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14623  test $ac_status = 0; }; then
14624  pkg_cv_VERTO_CFLAGS=`$PKG_CONFIG --cflags "libverto" 2>/dev/null`
14625		      test "x$?" != "x0" && pkg_failed=yes
14626else
14627  pkg_failed=yes
14628fi
14629 else
14630    pkg_failed=untried
14631fi
14632if test -n "$VERTO_LIBS"; then
14633    pkg_cv_VERTO_LIBS="$VERTO_LIBS"
14634 elif test -n "$PKG_CONFIG"; then
14635    if test -n "$PKG_CONFIG" && \
14636    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libverto\""; } >&5
14637  ($PKG_CONFIG --exists --print-errors "libverto") 2>&5
14638  ac_status=$?
14639  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14640  test $ac_status = 0; }; then
14641  pkg_cv_VERTO_LIBS=`$PKG_CONFIG --libs "libverto" 2>/dev/null`
14642		      test "x$?" != "x0" && pkg_failed=yes
14643else
14644  pkg_failed=yes
14645fi
14646 else
14647    pkg_failed=untried
14648fi
14649
14650
14651
14652if test $pkg_failed = yes; then
14653        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654printf "%s\n" "no" >&6; }
14655
14656if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14657        _pkg_short_errors_supported=yes
14658else
14659        _pkg_short_errors_supported=no
14660fi
14661        if test $_pkg_short_errors_supported = yes; then
14662	        VERTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libverto" 2>&1`
14663        else
14664	        VERTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libverto" 2>&1`
14665        fi
14666	# Put the nasty error message in config.log where it belongs
14667	echo "$VERTO_PKG_ERRORS" >&5
14668
14669	have_sysverto=no
14670elif test $pkg_failed = untried; then
14671        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672printf "%s\n" "no" >&6; }
14673	have_sysverto=no
14674else
14675	VERTO_CFLAGS=$pkg_cv_VERTO_CFLAGS
14676	VERTO_LIBS=$pkg_cv_VERTO_LIBS
14677        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14678printf "%s\n" "yes" >&6; }
14679	have_sysverto=yes
14680fi
14681  if test "x$have_sysverto" = xyes; then
14682    VERTO_VERSION=sys
14683  elif test "x$with_system_verto" = xyes; then
14684    as_fn_error $? "cannot detect system libverto" "$LINENO" 5
14685  fi
14686fi
14687if test "x$VERTO_VERSION" = xsys; then
14688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using system libverto" >&5
14689printf "%s\n" "$as_me: Using system libverto" >&6;}
14690else
14691  VERTO_CFLAGS=
14692  VERTO_LIBS="-lverto"
14693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using built-in libverto" >&5
14694printf "%s\n" "$as_me: Using built-in libverto" >&6;}
14695fi
14696
14697
14698
14699
14700# Extract the first word of "groff", so it can be a program name with args.
14701set dummy groff; ac_word=$2
14702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703printf %s "checking for $ac_word... " >&6; }
14704if test ${ac_cv_path_GROFF+y}
14705then :
14706  printf %s "(cached) " >&6
14707else $as_nop
14708  case $GROFF in
14709  [\\/]* | ?:[\\/]*)
14710  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
14711  ;;
14712  *)
14713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714for as_dir in $PATH
14715do
14716  IFS=$as_save_IFS
14717  case $as_dir in #(((
14718    '') as_dir=./ ;;
14719    */) ;;
14720    *) as_dir=$as_dir/ ;;
14721  esac
14722    for ac_exec_ext in '' $ac_executable_extensions; do
14723  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14724    ac_cv_path_GROFF="$as_dir$ac_word$ac_exec_ext"
14725    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14726    break 2
14727  fi
14728done
14729  done
14730IFS=$as_save_IFS
14731
14732  ;;
14733esac
14734fi
14735GROFF=$ac_cv_path_GROFF
14736if test -n "$GROFF"; then
14737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
14738printf "%s\n" "$GROFF" >&6; }
14739else
14740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741printf "%s\n" "no" >&6; }
14742fi
14743
14744
14745
14746# Make localedir work in autoconf 2.5x.
14747if test "${localedir+set}" != set; then
14748    localedir='$(datadir)/locale'
14749fi
14750
14751
14752# Determine the default macOS ccache type and whether to build the KCM
14753# Mach RPC support.
14754MACOS_FRAMEWORK=
14755case $host in
14756*-*-darwin[0-9].* | *-*-darwin10.*)
14757  # Use the normal default cache type for macOS 10.6 (Darwin 10) and
14758  # prior.  Build the KCM Mach RPC support.
14759  OSX=osx
14760  ;;
14761*-*-darwin*)
14762  # macOS 10.6 (Darwin 11) uses the KCM type by default.  macOS 11
14763  # (Darwin 20) uses an xpc-based cache type called XCACHE by default.
14764  # We can access either of these collections via a macos-specific
14765  # implementation of the API cache type.  Build the KCM Mach RPC
14766  # support.
14767  OSX=osx
14768  macos_defccname=API:
14769  MACOS_FRAMEWORK="-framework Kerberos"
14770  ;;
14771*)
14772  # This is not macOS; do not build the Mach RPC support and use the
14773  # normal default cache type.
14774  OSX=no
14775  ;;
14776esac
14777if test "$macos_defccname" = API:; then
14778
14779printf "%s\n" "#define USE_CCAPI_MACOS 1" >>confdefs.h
14780
14781fi
14782
14783
14784
14785# Build-time default ccache, keytab, and client keytab names.  These
14786# can be given as variable arguments DEFCCNAME, DEFKTNAME, and
14787# DEFCKTNAME.  Otherwise, we try to get the OS defaults from
14788# krb5-config if we can, or fall back to hardcoded defaults.
14789
14790
14791
14792
14793# Check whether --with-krb5-config was given.
14794if test ${with_krb5_config+y}
14795then :
14796  withval=$with_krb5_config;
14797else $as_nop
14798  with_krb5_config=krb5-config
14799fi
14800
14801if test "x$with_krb5_config" != xno; then
14802	if test "x$with_krb5_config" = xyes; then
14803		with_krb5_config=krb5-config
14804	fi
14805	if $with_krb5_config --help 2>&1 | grep defccname >/dev/null; then
14806		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using $with_krb5_config for build defaults" >&5
14807printf "%s\n" "$as_me: Using $with_krb5_config for build defaults" >&6;}
14808		: "${DEFCCNAME=`$with_krb5_config --defccname`}"
14809		: "${DEFKTNAME=`$with_krb5_config --defktname`}"
14810		: "${DEFCKTNAME=`$with_krb5_config --defcktname`}"
14811	fi
14812fi
14813if test "${DEFCCNAME+set}" != set; then
14814	if test "${macos_defccname+set}" = set; then
14815		DEFCCNAME=$macos_defccname
14816	else
14817		DEFCCNAME=FILE:/tmp/krb5cc_%{uid}
14818	fi
14819fi
14820if test "${DEFKTNAME+set}" != set; then
14821	DEFKTNAME=FILE:/etc/krb5.keytab
14822fi
14823if test "${DEFCKTNAME+set}" != set; then
14824	_lcl_receval="$localstatedir"
14825exp_localstatedir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14826     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
14827     _lcl_receval_old=''
14828     while test "$_lcl_receval_old" != "$_lcl_receval"; do
14829       _lcl_receval_old="$_lcl_receval"
14830       eval _lcl_receval="\"$_lcl_receval\""
14831     done
14832     echo "$_lcl_receval")`
14833	DEFCKTNAME=FILE:$exp_localstatedir/krb5/user/%{euid}/client.keytab
14834fi
14835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default ccache name: $DEFCCNAME" >&5
14836printf "%s\n" "$as_me: Default ccache name: $DEFCCNAME" >&6;}
14837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default keytab name: $DEFKTNAME" >&5
14838printf "%s\n" "$as_me: Default keytab name: $DEFKTNAME" >&6;}
14839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default client keytab name: $DEFCKTNAME" >&5
14840printf "%s\n" "$as_me: Default client keytab name: $DEFCKTNAME" >&6;}
14841
14842printf "%s\n" "#define DEFCCNAME \"$DEFCCNAME\"" >>confdefs.h
14843
14844
14845printf "%s\n" "#define DEFKTNAME \"$DEFKTNAME\"" >>confdefs.h
14846
14847
14848printf "%s\n" "#define DEFCKTNAME \"$DEFCKTNAME\"" >>confdefs.h
14849
14850
14851
14852if test "${PKCS11_MODNAME+set}" != set; then
14853	PKCS11_MODNAME=opensc-pkcs11.so
14854fi
14855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default PKCS11 module name: $PKCS11_MODNAME" >&5
14856printf "%s\n" "$as_me: Default PKCS11 module name: $PKCS11_MODNAME" >&6;}
14857
14858printf "%s\n" "#define PKCS11_MODNAME \"$PKCS11_MODNAME\"" >>confdefs.h
14859
14860
14861ac_config_files="$ac_config_files build-tools/krb5-config"
14862
14863ac_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"
14864
14865
14866 ac_config_files="$ac_config_files ./Makefile:$srcdir/./config/pre.in:./Makefile.in:./deps:$srcdir/./config/post.in"
14867 ac_config_files="$ac_config_files util/Makefile:$srcdir/./config/pre.in:util/Makefile.in:util/deps:$srcdir/./config/post.in"
14868 ac_config_files="$ac_config_files util/support/Makefile:$srcdir/./config/pre.in:util/support/Makefile.in:util/support/deps:$srcdir/./config/post.in"
14869 ac_config_files="$ac_config_files util/profile/Makefile:$srcdir/./config/pre.in:util/profile/Makefile.in:util/profile/deps:$srcdir/./config/post.in"
14870 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"
14871 ac_config_files="$ac_config_files util/verto/Makefile:$srcdir/./config/pre.in:util/verto/Makefile.in:util/verto/deps:$srcdir/./config/post.in"
14872 ac_config_files="$ac_config_files lib/Makefile:$srcdir/./config/pre.in:lib/Makefile.in:lib/deps:$srcdir/./config/post.in"
14873 ac_config_files="$ac_config_files lib/kdb/Makefile:$srcdir/./config/pre.in:lib/kdb/Makefile.in:lib/kdb/deps:$srcdir/./config/post.in"
14874 ac_config_files="$ac_config_files lib/crypto/Makefile:$srcdir/./config/pre.in:lib/crypto/Makefile.in:lib/crypto/deps:$srcdir/./config/post.in"
14875 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"
14876 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"
14877 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"
14878 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"
14879 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"
14880 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"
14881 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"
14882 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"
14883 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"
14884 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"
14885 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"
14886 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"
14887 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"
14888 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"
14889 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"
14890 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"
14891 ac_config_files="$ac_config_files lib/krb5/Makefile:$srcdir/./config/pre.in:lib/krb5/Makefile.in:lib/krb5/deps:$srcdir/./config/post.in"
14892 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"
14893 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"
14894 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"
14895 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"
14896 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"
14897 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"
14898 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"
14899 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"
14900 ac_config_files="$ac_config_files lib/gssapi/Makefile:$srcdir/./config/pre.in:lib/gssapi/Makefile.in:lib/gssapi/deps:$srcdir/./config/post.in"
14901 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"
14902 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"
14903 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"
14904 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"
14905 ac_config_files="$ac_config_files lib/rpc/Makefile:$srcdir/./config/pre.in:lib/rpc/Makefile.in:lib/rpc/deps:$srcdir/./config/post.in"
14906 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"
14907 ac_config_files="$ac_config_files lib/kadm5/Makefile:$srcdir/./config/pre.in:lib/kadm5/Makefile.in:lib/kadm5/deps:$srcdir/./config/post.in"
14908 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"
14909 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"
14910 ac_config_files="$ac_config_files lib/krad/Makefile:$srcdir/./config/pre.in:lib/krad/Makefile.in:lib/krad/deps:$srcdir/./config/post.in"
14911 ac_config_files="$ac_config_files lib/apputils/Makefile:$srcdir/./config/pre.in:lib/apputils/Makefile.in:lib/apputils/deps:$srcdir/./config/post.in"
14912 ac_config_files="$ac_config_files kdc/Makefile:$srcdir/./config/pre.in:kdc/Makefile.in:kdc/deps:$srcdir/./config/post.in"
14913 ac_config_files="$ac_config_files kprop/Makefile:$srcdir/./config/pre.in:kprop/Makefile.in:kprop/deps:$srcdir/./config/post.in"
14914 ac_config_files="$ac_config_files config-files/Makefile:$srcdir/./config/pre.in:config-files/Makefile.in:config-files/deps:$srcdir/./config/post.in"
14915 ac_config_files="$ac_config_files build-tools/Makefile:$srcdir/./config/pre.in:build-tools/Makefile.in:build-tools/deps:$srcdir/./config/post.in"
14916 ac_config_files="$ac_config_files man/Makefile:$srcdir/./config/pre.in:man/Makefile.in:man/deps:$srcdir/./config/post.in"
14917 ac_config_files="$ac_config_files doc/Makefile:$srcdir/./config/pre.in:doc/Makefile.in:doc/deps:$srcdir/./config/post.in"
14918 ac_config_files="$ac_config_files include/Makefile:$srcdir/./config/pre.in:include/Makefile.in:include/deps:$srcdir/./config/post.in"
14919 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"
14920 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"
14921 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"
14922 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"
14923 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"
14924 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"
14925 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"
14926 ac_config_files="$ac_config_files plugins/audit/Makefile:$srcdir/./config/pre.in:plugins/audit/Makefile.in:plugins/audit/deps:$srcdir/./config/post.in"
14927 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"
14928 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"
14929 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"
14930 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"
14931 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"
14932 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"
14933 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"
14934 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"
14935 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"
14936 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"
14937 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"
14938 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"
14939 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"
14940 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"
14941 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"
14942 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"
14943 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"
14944 ac_config_files="$ac_config_files clients/Makefile:$srcdir/./config/pre.in:clients/Makefile.in:clients/deps:$srcdir/./config/post.in"
14945 ac_config_files="$ac_config_files clients/klist/Makefile:$srcdir/./config/pre.in:clients/klist/Makefile.in:clients/klist/deps:$srcdir/./config/post.in"
14946 ac_config_files="$ac_config_files clients/kinit/Makefile:$srcdir/./config/pre.in:clients/kinit/Makefile.in:clients/kinit/deps:$srcdir/./config/post.in"
14947 ac_config_files="$ac_config_files clients/kvno/Makefile:$srcdir/./config/pre.in:clients/kvno/Makefile.in:clients/kvno/deps:$srcdir/./config/post.in"
14948 ac_config_files="$ac_config_files clients/kdestroy/Makefile:$srcdir/./config/pre.in:clients/kdestroy/Makefile.in:clients/kdestroy/deps:$srcdir/./config/post.in"
14949 ac_config_files="$ac_config_files clients/kpasswd/Makefile:$srcdir/./config/pre.in:clients/kpasswd/Makefile.in:clients/kpasswd/deps:$srcdir/./config/post.in"
14950 ac_config_files="$ac_config_files clients/ksu/Makefile:$srcdir/./config/pre.in:clients/ksu/Makefile.in:clients/ksu/deps:$srcdir/./config/post.in"
14951 ac_config_files="$ac_config_files clients/kswitch/Makefile:$srcdir/./config/pre.in:clients/kswitch/Makefile.in:clients/kswitch/deps:$srcdir/./config/post.in"
14952 ac_config_files="$ac_config_files kadmin/Makefile:$srcdir/./config/pre.in:kadmin/Makefile.in:kadmin/deps:$srcdir/./config/post.in"
14953 ac_config_files="$ac_config_files kadmin/cli/Makefile:$srcdir/./config/pre.in:kadmin/cli/Makefile.in:kadmin/cli/deps:$srcdir/./config/post.in"
14954 ac_config_files="$ac_config_files kadmin/dbutil/Makefile:$srcdir/./config/pre.in:kadmin/dbutil/Makefile.in:kadmin/dbutil/deps:$srcdir/./config/post.in"
14955 ac_config_files="$ac_config_files kadmin/ktutil/Makefile:$srcdir/./config/pre.in:kadmin/ktutil/Makefile.in:kadmin/ktutil/deps:$srcdir/./config/post.in"
14956 ac_config_files="$ac_config_files kadmin/server/Makefile:$srcdir/./config/pre.in:kadmin/server/Makefile.in:kadmin/server/deps:$srcdir/./config/post.in"
14957 ac_config_files="$ac_config_files appl/Makefile:$srcdir/./config/pre.in:appl/Makefile.in:appl/deps:$srcdir/./config/post.in"
14958 ac_config_files="$ac_config_files appl/sample/Makefile:$srcdir/./config/pre.in:appl/sample/Makefile.in:appl/sample/deps:$srcdir/./config/post.in"
14959 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"
14960 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"
14961 ac_config_files="$ac_config_files appl/simple/Makefile:$srcdir/./config/pre.in:appl/simple/Makefile.in:appl/simple/deps:$srcdir/./config/post.in"
14962 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"
14963 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"
14964 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"
14965 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"
14966 ac_config_files="$ac_config_files tests/Makefile:$srcdir/./config/pre.in:tests/Makefile.in:tests/deps:$srcdir/./config/post.in"
14967 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"
14968 ac_config_files="$ac_config_files tests/create/Makefile:$srcdir/./config/pre.in:tests/create/Makefile.in:tests/create/deps:$srcdir/./config/post.in"
14969 ac_config_files="$ac_config_files tests/hammer/Makefile:$srcdir/./config/pre.in:tests/hammer/Makefile.in:tests/hammer/deps:$srcdir/./config/post.in"
14970 ac_config_files="$ac_config_files tests/verify/Makefile:$srcdir/./config/pre.in:tests/verify/Makefile.in:tests/verify/deps:$srcdir/./config/post.in"
14971 ac_config_files="$ac_config_files tests/gssapi/Makefile:$srcdir/./config/pre.in:tests/gssapi/Makefile.in:tests/gssapi/deps:$srcdir/./config/post.in"
14972 ac_config_files="$ac_config_files tests/threads/Makefile:$srcdir/./config/pre.in:tests/threads/Makefile.in:tests/threads/deps:$srcdir/./config/post.in"
14973 ac_config_files="$ac_config_files tests/shlib/Makefile:$srcdir/./config/pre.in:tests/shlib/Makefile.in:tests/shlib/deps:$srcdir/./config/post.in"
14974 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"
14975 ac_config_files="$ac_config_files tests/misc/Makefile:$srcdir/./config/pre.in:tests/misc/Makefile.in:tests/misc/deps:$srcdir/./config/post.in"
14976
14977cat >confcache <<\_ACEOF
14978# This file is a shell script that caches the results of configure
14979# tests run on this system so they can be shared between configure
14980# scripts and configure runs, see configure's option --config-cache.
14981# It is not useful on other systems.  If it contains results you don't
14982# want to keep, you may remove or edit it.
14983#
14984# config.status only pays attention to the cache file if you give it
14985# the --recheck option to rerun configure.
14986#
14987# `ac_cv_env_foo' variables (set or unset) will be overridden when
14988# loading this file, other *unset* `ac_cv_foo' will be assigned the
14989# following values.
14990
14991_ACEOF
14992
14993# The following way of writing the cache mishandles newlines in values,
14994# but we know of no workaround that is simple, portable, and efficient.
14995# So, we kill variables containing newlines.
14996# Ultrix sh set writes to stderr and can't be redirected directly,
14997# and sets the high bit in the cache file unless we assign to the vars.
14998(
14999  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15000    eval ac_val=\$$ac_var
15001    case $ac_val in #(
15002    *${as_nl}*)
15003      case $ac_var in #(
15004      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15005printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15006      esac
15007      case $ac_var in #(
15008      _ | IFS | as_nl) ;; #(
15009      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15010      *) { eval $ac_var=; unset $ac_var;} ;;
15011      esac ;;
15012    esac
15013  done
15014
15015  (set) 2>&1 |
15016    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15017    *${as_nl}ac_space=\ *)
15018      # `set' does not quote correctly, so add quotes: double-quote
15019      # substitution turns \\\\ into \\, and sed turns \\ into \.
15020      sed -n \
15021	"s/'/'\\\\''/g;
15022	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15023      ;; #(
15024    *)
15025      # `set' quotes correctly as required by POSIX, so do not add quotes.
15026      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15027      ;;
15028    esac |
15029    sort
15030) |
15031  sed '
15032     /^ac_cv_env_/b end
15033     t clear
15034     :clear
15035     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15036     t end
15037     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15038     :end' >>confcache
15039if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15040  if test -w "$cache_file"; then
15041    if test "x$cache_file" != "x/dev/null"; then
15042      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15043printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15044      if test ! -f "$cache_file" || test -h "$cache_file"; then
15045	cat confcache >"$cache_file"
15046      else
15047        case $cache_file in #(
15048        */* | ?:*)
15049	  mv -f confcache "$cache_file"$$ &&
15050	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15051        *)
15052	  mv -f confcache "$cache_file" ;;
15053	esac
15054      fi
15055    fi
15056  else
15057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15058printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15059  fi
15060fi
15061rm -f confcache
15062
15063test "x$prefix" = xNONE && prefix=$ac_default_prefix
15064# Let make expand exec_prefix.
15065test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15066
15067DEFS=-DHAVE_CONFIG_H
15068
15069ac_libobjs=
15070ac_ltlibobjs=
15071U=
15072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15073  # 1. Remove the extension, and $U if already installed.
15074  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15075  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15076  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15077  #    will be set to the directory where LIBOBJS objects are built.
15078  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15079  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15080done
15081LIBOBJS=$ac_libobjs
15082
15083LTLIBOBJS=$ac_ltlibobjs
15084
15085
15086
15087: "${CONFIG_STATUS=./config.status}"
15088ac_write_fail=0
15089ac_clean_files_save=$ac_clean_files
15090ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15092printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15093as_write_fail=0
15094cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15095#! $SHELL
15096# Generated by $as_me.
15097# Run this file to recreate the current configuration.
15098# Compiler output produced by configure, useful for debugging
15099# configure, is in config.log if it exists.
15100
15101debug=false
15102ac_cs_recheck=false
15103ac_cs_silent=false
15104
15105SHELL=\${CONFIG_SHELL-$SHELL}
15106export SHELL
15107_ASEOF
15108cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15109## -------------------- ##
15110## M4sh Initialization. ##
15111## -------------------- ##
15112
15113# Be more Bourne compatible
15114DUALCASE=1; export DUALCASE # for MKS sh
15115as_nop=:
15116if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15117then :
15118  emulate sh
15119  NULLCMD=:
15120  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15121  # is contrary to our usage.  Disable this feature.
15122  alias -g '${1+"$@"}'='"$@"'
15123  setopt NO_GLOB_SUBST
15124else $as_nop
15125  case `(set -o) 2>/dev/null` in #(
15126  *posix*) :
15127    set -o posix ;; #(
15128  *) :
15129     ;;
15130esac
15131fi
15132
15133
15134
15135# Reset variables that may have inherited troublesome values from
15136# the environment.
15137
15138# IFS needs to be set, to space, tab, and newline, in precisely that order.
15139# (If _AS_PATH_WALK were called with IFS unset, it would have the
15140# side effect of setting IFS to empty, thus disabling word splitting.)
15141# Quoting is to prevent editors from complaining about space-tab.
15142as_nl='
15143'
15144export as_nl
15145IFS=" ""	$as_nl"
15146
15147PS1='$ '
15148PS2='> '
15149PS4='+ '
15150
15151# Ensure predictable behavior from utilities with locale-dependent output.
15152LC_ALL=C
15153export LC_ALL
15154LANGUAGE=C
15155export LANGUAGE
15156
15157# We cannot yet rely on "unset" to work, but we need these variables
15158# to be unset--not just set to an empty or harmless value--now, to
15159# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15160# also avoids known problems related to "unset" and subshell syntax
15161# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15162for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15163do eval test \${$as_var+y} \
15164  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15165done
15166
15167# Ensure that fds 0, 1, and 2 are open.
15168if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15169if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15170if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15171
15172# The user is always right.
15173if ${PATH_SEPARATOR+false} :; then
15174  PATH_SEPARATOR=:
15175  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15176    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15177      PATH_SEPARATOR=';'
15178  }
15179fi
15180
15181
15182# Find who we are.  Look in the path if we contain no directory separator.
15183as_myself=
15184case $0 in #((
15185  *[\\/]* ) as_myself=$0 ;;
15186  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15187for as_dir in $PATH
15188do
15189  IFS=$as_save_IFS
15190  case $as_dir in #(((
15191    '') as_dir=./ ;;
15192    */) ;;
15193    *) as_dir=$as_dir/ ;;
15194  esac
15195    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15196  done
15197IFS=$as_save_IFS
15198
15199     ;;
15200esac
15201# We did not find ourselves, most probably we were run as `sh COMMAND'
15202# in which case we are not to be found in the path.
15203if test "x$as_myself" = x; then
15204  as_myself=$0
15205fi
15206if test ! -f "$as_myself"; then
15207  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15208  exit 1
15209fi
15210
15211
15212
15213# as_fn_error STATUS ERROR [LINENO LOG_FD]
15214# ----------------------------------------
15215# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15216# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15217# script with STATUS, using 1 if that was 0.
15218as_fn_error ()
15219{
15220  as_status=$1; test $as_status -eq 0 && as_status=1
15221  if test "$4"; then
15222    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15223    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15224  fi
15225  printf "%s\n" "$as_me: error: $2" >&2
15226  as_fn_exit $as_status
15227} # as_fn_error
15228
15229
15230
15231# as_fn_set_status STATUS
15232# -----------------------
15233# Set $? to STATUS, without forking.
15234as_fn_set_status ()
15235{
15236  return $1
15237} # as_fn_set_status
15238
15239# as_fn_exit STATUS
15240# -----------------
15241# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15242as_fn_exit ()
15243{
15244  set +e
15245  as_fn_set_status $1
15246  exit $1
15247} # as_fn_exit
15248
15249# as_fn_unset VAR
15250# ---------------
15251# Portably unset VAR.
15252as_fn_unset ()
15253{
15254  { eval $1=; unset $1;}
15255}
15256as_unset=as_fn_unset
15257
15258# as_fn_append VAR VALUE
15259# ----------------------
15260# Append the text in VALUE to the end of the definition contained in VAR. Take
15261# advantage of any shell optimizations that allow amortized linear growth over
15262# repeated appends, instead of the typical quadratic growth present in naive
15263# implementations.
15264if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15265then :
15266  eval 'as_fn_append ()
15267  {
15268    eval $1+=\$2
15269  }'
15270else $as_nop
15271  as_fn_append ()
15272  {
15273    eval $1=\$$1\$2
15274  }
15275fi # as_fn_append
15276
15277# as_fn_arith ARG...
15278# ------------------
15279# Perform arithmetic evaluation on the ARGs, and store the result in the
15280# global $as_val. Take advantage of shells that can avoid forks. The arguments
15281# must be portable across $(()) and expr.
15282if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15283then :
15284  eval 'as_fn_arith ()
15285  {
15286    as_val=$(( $* ))
15287  }'
15288else $as_nop
15289  as_fn_arith ()
15290  {
15291    as_val=`expr "$@" || test $? -eq 1`
15292  }
15293fi # as_fn_arith
15294
15295
15296if expr a : '\(a\)' >/dev/null 2>&1 &&
15297   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15298  as_expr=expr
15299else
15300  as_expr=false
15301fi
15302
15303if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15304  as_basename=basename
15305else
15306  as_basename=false
15307fi
15308
15309if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15310  as_dirname=dirname
15311else
15312  as_dirname=false
15313fi
15314
15315as_me=`$as_basename -- "$0" ||
15316$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15317	 X"$0" : 'X\(//\)$' \| \
15318	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15319printf "%s\n" X/"$0" |
15320    sed '/^.*\/\([^/][^/]*\)\/*$/{
15321	    s//\1/
15322	    q
15323	  }
15324	  /^X\/\(\/\/\)$/{
15325	    s//\1/
15326	    q
15327	  }
15328	  /^X\/\(\/\).*/{
15329	    s//\1/
15330	    q
15331	  }
15332	  s/.*/./; q'`
15333
15334# Avoid depending upon Character Ranges.
15335as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15336as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15337as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15338as_cr_digits='0123456789'
15339as_cr_alnum=$as_cr_Letters$as_cr_digits
15340
15341
15342# Determine whether it's possible to make 'echo' print without a newline.
15343# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15344# for compatibility with existing Makefiles.
15345ECHO_C= ECHO_N= ECHO_T=
15346case `echo -n x` in #(((((
15347-n*)
15348  case `echo 'xy\c'` in
15349  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15350  xy)  ECHO_C='\c';;
15351  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15352       ECHO_T='	';;
15353  esac;;
15354*)
15355  ECHO_N='-n';;
15356esac
15357
15358# For backward compatibility with old third-party macros, we provide
15359# the shell variables $as_echo and $as_echo_n.  New code should use
15360# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15361as_echo='printf %s\n'
15362as_echo_n='printf %s'
15363
15364rm -f conf$$ conf$$.exe conf$$.file
15365if test -d conf$$.dir; then
15366  rm -f conf$$.dir/conf$$.file
15367else
15368  rm -f conf$$.dir
15369  mkdir conf$$.dir 2>/dev/null
15370fi
15371if (echo >conf$$.file) 2>/dev/null; then
15372  if ln -s conf$$.file conf$$ 2>/dev/null; then
15373    as_ln_s='ln -s'
15374    # ... but there are two gotchas:
15375    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15376    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15377    # In both cases, we have to default to `cp -pR'.
15378    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15379      as_ln_s='cp -pR'
15380  elif ln conf$$.file conf$$ 2>/dev/null; then
15381    as_ln_s=ln
15382  else
15383    as_ln_s='cp -pR'
15384  fi
15385else
15386  as_ln_s='cp -pR'
15387fi
15388rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15389rmdir conf$$.dir 2>/dev/null
15390
15391
15392# as_fn_mkdir_p
15393# -------------
15394# Create "$as_dir" as a directory, including parents if necessary.
15395as_fn_mkdir_p ()
15396{
15397
15398  case $as_dir in #(
15399  -*) as_dir=./$as_dir;;
15400  esac
15401  test -d "$as_dir" || eval $as_mkdir_p || {
15402    as_dirs=
15403    while :; do
15404      case $as_dir in #(
15405      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15406      *) as_qdir=$as_dir;;
15407      esac
15408      as_dirs="'$as_qdir' $as_dirs"
15409      as_dir=`$as_dirname -- "$as_dir" ||
15410$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15411	 X"$as_dir" : 'X\(//\)[^/]' \| \
15412	 X"$as_dir" : 'X\(//\)$' \| \
15413	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15414printf "%s\n" X"$as_dir" |
15415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15416	    s//\1/
15417	    q
15418	  }
15419	  /^X\(\/\/\)[^/].*/{
15420	    s//\1/
15421	    q
15422	  }
15423	  /^X\(\/\/\)$/{
15424	    s//\1/
15425	    q
15426	  }
15427	  /^X\(\/\).*/{
15428	    s//\1/
15429	    q
15430	  }
15431	  s/.*/./; q'`
15432      test -d "$as_dir" && break
15433    done
15434    test -z "$as_dirs" || eval "mkdir $as_dirs"
15435  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15436
15437
15438} # as_fn_mkdir_p
15439if mkdir -p . 2>/dev/null; then
15440  as_mkdir_p='mkdir -p "$as_dir"'
15441else
15442  test -d ./-p && rmdir ./-p
15443  as_mkdir_p=false
15444fi
15445
15446
15447# as_fn_executable_p FILE
15448# -----------------------
15449# Test if FILE is an executable regular file.
15450as_fn_executable_p ()
15451{
15452  test -f "$1" && test -x "$1"
15453} # as_fn_executable_p
15454as_test_x='test -x'
15455as_executable_p=as_fn_executable_p
15456
15457# Sed expression to map a string onto a valid CPP name.
15458as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15459
15460# Sed expression to map a string onto a valid variable name.
15461as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15462
15463
15464exec 6>&1
15465## ----------------------------------- ##
15466## Main body of $CONFIG_STATUS script. ##
15467## ----------------------------------- ##
15468_ASEOF
15469test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15470
15471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15472# Save the log message, to keep $0 and so on meaningful, and to
15473# report actual input values of CONFIG_FILES etc. instead of their
15474# values after options handling.
15475ac_log="
15476This file was extended by Kerberos 5 $as_me 1.21.3, which was
15477generated by GNU Autoconf 2.71.  Invocation command line was
15478
15479  CONFIG_FILES    = $CONFIG_FILES
15480  CONFIG_HEADERS  = $CONFIG_HEADERS
15481  CONFIG_LINKS    = $CONFIG_LINKS
15482  CONFIG_COMMANDS = $CONFIG_COMMANDS
15483  $ $0 $@
15484
15485on `(hostname || uname -n) 2>/dev/null | sed 1q`
15486"
15487
15488_ACEOF
15489
15490case $ac_config_files in *"
15491"*) set x $ac_config_files; shift; ac_config_files=$*;;
15492esac
15493
15494case $ac_config_headers in *"
15495"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15496esac
15497
15498
15499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15500# Files that config.status was made for.
15501config_files="$ac_config_files"
15502config_headers="$ac_config_headers"
15503
15504_ACEOF
15505
15506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15507ac_cs_usage="\
15508\`$as_me' instantiates files and other configuration actions
15509from templates according to the current configuration.  Unless the files
15510and actions are specified as TAGs, all are instantiated by default.
15511
15512Usage: $0 [OPTION]... [TAG]...
15513
15514  -h, --help       print this help, then exit
15515  -V, --version    print version number and configuration settings, then exit
15516      --config     print configuration, then exit
15517  -q, --quiet, --silent
15518                   do not print progress messages
15519  -d, --debug      don't remove temporary files
15520      --recheck    update $as_me by reconfiguring in the same conditions
15521      --file=FILE[:TEMPLATE]
15522                   instantiate the configuration file FILE
15523      --header=FILE[:TEMPLATE]
15524                   instantiate the configuration header FILE
15525
15526Configuration files:
15527$config_files
15528
15529Configuration headers:
15530$config_headers
15531
15532Report bugs to <krb5-bugs@mit.edu>."
15533
15534_ACEOF
15535ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15536ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538ac_cs_config='$ac_cs_config_escaped'
15539ac_cs_version="\\
15540Kerberos 5 config.status 1.21.3
15541configured by $0, generated by GNU Autoconf 2.71,
15542  with options \\"\$ac_cs_config\\"
15543
15544Copyright (C) 2021 Free Software Foundation, Inc.
15545This config.status script is free software; the Free Software Foundation
15546gives unlimited permission to copy, distribute and modify it."
15547
15548ac_pwd='$ac_pwd'
15549srcdir='$srcdir'
15550INSTALL='$INSTALL'
15551AWK='$AWK'
15552test -n "\$AWK" || AWK=awk
15553_ACEOF
15554
15555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556# The default lists apply if the user does not specify any file.
15557ac_need_defaults=:
15558while test $# != 0
15559do
15560  case $1 in
15561  --*=?*)
15562    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15563    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15564    ac_shift=:
15565    ;;
15566  --*=)
15567    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15568    ac_optarg=
15569    ac_shift=:
15570    ;;
15571  *)
15572    ac_option=$1
15573    ac_optarg=$2
15574    ac_shift=shift
15575    ;;
15576  esac
15577
15578  case $ac_option in
15579  # Handling of the options.
15580  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15581    ac_cs_recheck=: ;;
15582  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15583    printf "%s\n" "$ac_cs_version"; exit ;;
15584  --config | --confi | --conf | --con | --co | --c )
15585    printf "%s\n" "$ac_cs_config"; exit ;;
15586  --debug | --debu | --deb | --de | --d | -d )
15587    debug=: ;;
15588  --file | --fil | --fi | --f )
15589    $ac_shift
15590    case $ac_optarg in
15591    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15592    '') as_fn_error $? "missing file argument" ;;
15593    esac
15594    as_fn_append CONFIG_FILES " '$ac_optarg'"
15595    ac_need_defaults=false;;
15596  --header | --heade | --head | --hea )
15597    $ac_shift
15598    case $ac_optarg in
15599    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15600    esac
15601    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15602    ac_need_defaults=false;;
15603  --he | --h)
15604    # Conflict between --help and --header
15605    as_fn_error $? "ambiguous option: \`$1'
15606Try \`$0 --help' for more information.";;
15607  --help | --hel | -h )
15608    printf "%s\n" "$ac_cs_usage"; exit ;;
15609  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15610  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15611    ac_cs_silent=: ;;
15612
15613  # This is an error.
15614  -*) as_fn_error $? "unrecognized option: \`$1'
15615Try \`$0 --help' for more information." ;;
15616
15617  *) as_fn_append ac_config_targets " $1"
15618     ac_need_defaults=false ;;
15619
15620  esac
15621  shift
15622done
15623
15624ac_configure_extra_args=
15625
15626if $ac_cs_silent; then
15627  exec 6>/dev/null
15628  ac_configure_extra_args="$ac_configure_extra_args --silent"
15629fi
15630
15631_ACEOF
15632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633if \$ac_cs_recheck; then
15634  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15635  shift
15636  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15637  CONFIG_SHELL='$SHELL'
15638  export CONFIG_SHELL
15639  exec "\$@"
15640fi
15641
15642_ACEOF
15643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15644exec 5>>config.log
15645{
15646  echo
15647  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15648## Running $as_me. ##
15649_ASBOX
15650  printf "%s\n" "$ac_log"
15651} >&5
15652
15653_ACEOF
15654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15655_ACEOF
15656
15657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15658
15659# Handling of arguments.
15660for ac_config_target in $ac_config_targets
15661do
15662  case $ac_config_target in
15663    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile:$srcdir/./config/pre.in:po/Makefile.in:po/deps:$srcdir/./config/post.in" ;;
15664    "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" ;;
15665    "include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
15666    "include/gssrpc/types.h") CONFIG_FILES="$CONFIG_FILES include/gssrpc/types.h:include/gssrpc/types.hin" ;;
15667    "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" ;;
15668    "tests/softpkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES tests/softpkcs11/Makefile:$srcdir/./config/pre.in:tests/softpkcs11/Makefile.in:tests/softpkcs11/deps:$srcdir/./config/post.in" ;;
15669    "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" ;;
15670    "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" ;;
15671    "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" ;;
15672    "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" ;;
15673    "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" ;;
15674    "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" ;;
15675    "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" ;;
15676    "build-tools/krb5-config") CONFIG_FILES="$CONFIG_FILES build-tools/krb5-config" ;;
15677    "build-tools/kadm-server.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kadm-server.pc" ;;
15678    "build-tools/kadm-client.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kadm-client.pc" ;;
15679    "build-tools/kdb.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kdb.pc" ;;
15680    "build-tools/krb5.pc") CONFIG_FILES="$CONFIG_FILES build-tools/krb5.pc" ;;
15681    "build-tools/krb5-gssapi.pc") CONFIG_FILES="$CONFIG_FILES build-tools/krb5-gssapi.pc" ;;
15682    "build-tools/mit-krb5.pc") CONFIG_FILES="$CONFIG_FILES build-tools/mit-krb5.pc" ;;
15683    "build-tools/mit-krb5-gssapi.pc") CONFIG_FILES="$CONFIG_FILES build-tools/mit-krb5-gssapi.pc" ;;
15684    "build-tools/gssrpc.pc") CONFIG_FILES="$CONFIG_FILES build-tools/gssrpc.pc" ;;
15685    "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/./config/pre.in:./Makefile.in:./deps:$srcdir/./config/post.in" ;;
15686    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile:$srcdir/./config/pre.in:util/Makefile.in:util/deps:$srcdir/./config/post.in" ;;
15687    "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" ;;
15688    "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" ;;
15689    "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" ;;
15690    "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" ;;
15691    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile:$srcdir/./config/pre.in:lib/Makefile.in:lib/deps:$srcdir/./config/post.in" ;;
15692    "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" ;;
15693    "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" ;;
15694    "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" ;;
15695    "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" ;;
15696    "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" ;;
15697    "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" ;;
15698    "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" ;;
15699    "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" ;;
15700    "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" ;;
15701    "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" ;;
15702    "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" ;;
15703    "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" ;;
15704    "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" ;;
15705    "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" ;;
15706    "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" ;;
15707    "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" ;;
15708    "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" ;;
15709    "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" ;;
15710    "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" ;;
15711    "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" ;;
15712    "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" ;;
15713    "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" ;;
15714    "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" ;;
15715    "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" ;;
15716    "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" ;;
15717    "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" ;;
15718    "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" ;;
15719    "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" ;;
15720    "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" ;;
15721    "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" ;;
15722    "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" ;;
15723    "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" ;;
15724    "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" ;;
15725    "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" ;;
15726    "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" ;;
15727    "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" ;;
15728    "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" ;;
15729    "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" ;;
15730    "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" ;;
15731    "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile:$srcdir/./config/pre.in:kdc/Makefile.in:kdc/deps:$srcdir/./config/post.in" ;;
15732    "kprop/Makefile") CONFIG_FILES="$CONFIG_FILES kprop/Makefile:$srcdir/./config/pre.in:kprop/Makefile.in:kprop/deps:$srcdir/./config/post.in" ;;
15733    "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" ;;
15734    "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" ;;
15735    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile:$srcdir/./config/pre.in:man/Makefile.in:man/deps:$srcdir/./config/post.in" ;;
15736    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:$srcdir/./config/pre.in:doc/Makefile.in:doc/deps:$srcdir/./config/post.in" ;;
15737    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:$srcdir/./config/pre.in:include/Makefile.in:include/deps:$srcdir/./config/post.in" ;;
15738    "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" ;;
15739    "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" ;;
15740    "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" ;;
15741    "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" ;;
15742    "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" ;;
15743    "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" ;;
15744    "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" ;;
15745    "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" ;;
15746    "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" ;;
15747    "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" ;;
15748    "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" ;;
15749    "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" ;;
15750    "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" ;;
15751    "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" ;;
15752    "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" ;;
15753    "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" ;;
15754    "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" ;;
15755    "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" ;;
15756    "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" ;;
15757    "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" ;;
15758    "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" ;;
15759    "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" ;;
15760    "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" ;;
15761    "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" ;;
15762    "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" ;;
15763    "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:$srcdir/./config/pre.in:clients/Makefile.in:clients/deps:$srcdir/./config/post.in" ;;
15764    "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" ;;
15765    "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" ;;
15766    "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" ;;
15767    "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" ;;
15768    "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" ;;
15769    "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" ;;
15770    "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" ;;
15771    "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile:$srcdir/./config/pre.in:kadmin/Makefile.in:kadmin/deps:$srcdir/./config/post.in" ;;
15772    "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" ;;
15773    "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" ;;
15774    "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" ;;
15775    "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" ;;
15776    "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile:$srcdir/./config/pre.in:appl/Makefile.in:appl/deps:$srcdir/./config/post.in" ;;
15777    "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" ;;
15778    "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" ;;
15779    "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" ;;
15780    "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" ;;
15781    "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" ;;
15782    "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" ;;
15783    "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" ;;
15784    "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" ;;
15785    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:$srcdir/./config/pre.in:tests/Makefile.in:tests/deps:$srcdir/./config/post.in" ;;
15786    "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" ;;
15787    "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" ;;
15788    "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" ;;
15789    "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" ;;
15790    "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" ;;
15791    "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" ;;
15792    "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" ;;
15793    "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" ;;
15794    "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" ;;
15795
15796  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15797  esac
15798done
15799
15800
15801# If the user did not use the arguments to specify the items to instantiate,
15802# then the envvar interface is used.  Set only those that are not.
15803# We use the long form for the default assignment because of an extremely
15804# bizarre bug on SunOS 4.1.3.
15805if $ac_need_defaults; then
15806  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15807  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15808fi
15809
15810# Have a temporary directory for convenience.  Make it in the build tree
15811# simply because there is no reason against having it here, and in addition,
15812# creating and moving files from /tmp can sometimes cause problems.
15813# Hook for its removal unless debugging.
15814# Note that there is a small window in which the directory will not be cleaned:
15815# after its creation but before its name has been assigned to `$tmp'.
15816$debug ||
15817{
15818  tmp= ac_tmp=
15819  trap 'exit_status=$?
15820  : "${ac_tmp:=$tmp}"
15821  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15822' 0
15823  trap 'as_fn_exit 1' 1 2 13 15
15824}
15825# Create a (secure) tmp directory for tmp files.
15826
15827{
15828  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15829  test -d "$tmp"
15830}  ||
15831{
15832  tmp=./conf$$-$RANDOM
15833  (umask 077 && mkdir "$tmp")
15834} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15835ac_tmp=$tmp
15836
15837# Set up the scripts for CONFIG_FILES section.
15838# No need to generate them if there are no CONFIG_FILES.
15839# This happens for instance with `./config.status config.h'.
15840if test -n "$CONFIG_FILES"; then
15841
15842if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15843  ac_cs_awk_getline=:
15844  ac_cs_awk_pipe_init=
15845  ac_cs_awk_read_file='
15846      while ((getline aline < (F[key])) > 0)
15847	print(aline)
15848      close(F[key])'
15849  ac_cs_awk_pipe_fini=
15850else
15851  ac_cs_awk_getline=false
15852  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15853  ac_cs_awk_read_file='
15854      print "|#_!!_#|"
15855      print "cat " F[key] " &&"
15856      '$ac_cs_awk_pipe_init
15857  # The final `:' finishes the AND list.
15858  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15859fi
15860ac_cr=`echo X | tr X '\015'`
15861# On cygwin, bash can eat \r inside `` if the user requested igncr.
15862# But we know of no other shell where ac_cr would be empty at this
15863# point, so we can use a bashism as a fallback.
15864if test "x$ac_cr" = x; then
15865  eval ac_cr=\$\'\\r\'
15866fi
15867ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15868if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15869  ac_cs_awk_cr='\\r'
15870else
15871  ac_cs_awk_cr=$ac_cr
15872fi
15873
15874echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15875_ACEOF
15876
15877# Create commands to substitute file output variables.
15878{
15879  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15880  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15881  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15882  echo "_ACAWK" &&
15883  echo "_ACEOF"
15884} >conf$$files.sh &&
15885. ./conf$$files.sh ||
15886  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15887rm -f conf$$files.sh
15888
15889{
15890  echo "cat >conf$$subs.awk <<_ACEOF" &&
15891  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15892  echo "_ACEOF"
15893} >conf$$subs.sh ||
15894  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15895ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15896ac_delim='%!_!# '
15897for ac_last_try in false false false false false :; do
15898  . ./conf$$subs.sh ||
15899    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15900
15901  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15902  if test $ac_delim_n = $ac_delim_num; then
15903    break
15904  elif $ac_last_try; then
15905    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15906  else
15907    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15908  fi
15909done
15910rm -f conf$$subs.sh
15911
15912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15913cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15914_ACEOF
15915sed -n '
15916h
15917s/^/S["/; s/!.*/"]=/
15918p
15919g
15920s/^[^!]*!//
15921:repl
15922t repl
15923s/'"$ac_delim"'$//
15924t delim
15925:nl
15926h
15927s/\(.\{148\}\)..*/\1/
15928t more1
15929s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15930p
15931n
15932b repl
15933:more1
15934s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15935p
15936g
15937s/.\{148\}//
15938t nl
15939:delim
15940h
15941s/\(.\{148\}\)..*/\1/
15942t more2
15943s/["\\]/\\&/g; s/^/"/; s/$/"/
15944p
15945b
15946:more2
15947s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15948p
15949g
15950s/.\{148\}//
15951t delim
15952' <conf$$subs.awk | sed '
15953/^[^""]/{
15954  N
15955  s/\n//
15956}
15957' >>$CONFIG_STATUS || ac_write_fail=1
15958rm -f conf$$subs.awk
15959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15960_ACAWK
15961cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15962  for (key in S) S_is_set[key] = 1
15963  FS = ""
15964  \$ac_cs_awk_pipe_init
15965}
15966{
15967  line = $ 0
15968  nfields = split(line, field, "@")
15969  substed = 0
15970  len = length(field[1])
15971  for (i = 2; i < nfields; i++) {
15972    key = field[i]
15973    keylen = length(key)
15974    if (S_is_set[key]) {
15975      value = S[key]
15976      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15977      len += length(value) + length(field[++i])
15978      substed = 1
15979    } else
15980      len += 1 + keylen
15981  }
15982  if (nfields == 3 && !substed) {
15983    key = field[2]
15984    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
15985      \$ac_cs_awk_read_file
15986      next
15987    }
15988  }
15989  print line
15990}
15991\$ac_cs_awk_pipe_fini
15992_ACAWK
15993_ACEOF
15994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15995if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15996  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15997else
15998  cat
15999fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16000  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16001_ACEOF
16002
16003# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16004# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16005# trailing colons and then remove the whole line if VPATH becomes empty
16006# (actually we leave an empty line to preserve line numbers).
16007if test "x$srcdir" = x.; then
16008  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16009h
16010s///
16011s/^/:/
16012s/[	 ]*$/:/
16013s/:\$(srcdir):/:/g
16014s/:\${srcdir}:/:/g
16015s/:@srcdir@:/:/g
16016s/^:*//
16017s/:*$//
16018x
16019s/\(=[	 ]*\).*/\1/
16020G
16021s/\n//
16022s/^[^=]*=[	 ]*$//
16023}'
16024fi
16025
16026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027fi # test -n "$CONFIG_FILES"
16028
16029# Set up the scripts for CONFIG_HEADERS section.
16030# No need to generate them if there are no CONFIG_HEADERS.
16031# This happens for instance with `./config.status Makefile'.
16032if test -n "$CONFIG_HEADERS"; then
16033cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16034BEGIN {
16035_ACEOF
16036
16037# Transform confdefs.h into an awk script `defines.awk', embedded as
16038# here-document in config.status, that substitutes the proper values into
16039# config.h.in to produce config.h.
16040
16041# Create a delimiter string that does not exist in confdefs.h, to ease
16042# handling of long lines.
16043ac_delim='%!_!# '
16044for ac_last_try in false false :; do
16045  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16046  if test -z "$ac_tt"; then
16047    break
16048  elif $ac_last_try; then
16049    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16050  else
16051    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16052  fi
16053done
16054
16055# For the awk script, D is an array of macro values keyed by name,
16056# likewise P contains macro parameters if any.  Preserve backslash
16057# newline sequences.
16058
16059ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16060sed -n '
16061s/.\{148\}/&'"$ac_delim"'/g
16062t rset
16063:rset
16064s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16065t def
16066d
16067:def
16068s/\\$//
16069t bsnl
16070s/["\\]/\\&/g
16071s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16072D["\1"]=" \3"/p
16073s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16074d
16075:bsnl
16076s/["\\]/\\&/g
16077s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16078D["\1"]=" \3\\\\\\n"\\/p
16079t cont
16080s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16081t cont
16082d
16083:cont
16084n
16085s/.\{148\}/&'"$ac_delim"'/g
16086t clear
16087:clear
16088s/\\$//
16089t bsnlc
16090s/["\\]/\\&/g; s/^/"/; s/$/"/p
16091d
16092:bsnlc
16093s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16094b cont
16095' <confdefs.h | sed '
16096s/'"$ac_delim"'/"\\\
16097"/g' >>$CONFIG_STATUS || ac_write_fail=1
16098
16099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16100  for (key in D) D_is_set[key] = 1
16101  FS = ""
16102}
16103/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16104  line = \$ 0
16105  split(line, arg, " ")
16106  if (arg[1] == "#") {
16107    defundef = arg[2]
16108    mac1 = arg[3]
16109  } else {
16110    defundef = substr(arg[1], 2)
16111    mac1 = arg[2]
16112  }
16113  split(mac1, mac2, "(") #)
16114  macro = mac2[1]
16115  prefix = substr(line, 1, index(line, defundef) - 1)
16116  if (D_is_set[macro]) {
16117    # Preserve the white space surrounding the "#".
16118    print prefix "define", macro P[macro] D[macro]
16119    next
16120  } else {
16121    # Replace #undef with comments.  This is necessary, for example,
16122    # in the case of _POSIX_SOURCE, which is predefined and required
16123    # on some systems where configure will not decide to define it.
16124    if (defundef == "undef") {
16125      print "/*", prefix defundef, macro, "*/"
16126      next
16127    }
16128  }
16129}
16130{ print }
16131_ACAWK
16132_ACEOF
16133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16134  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16135fi # test -n "$CONFIG_HEADERS"
16136
16137
16138eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
16139shift
16140for ac_tag
16141do
16142  case $ac_tag in
16143  :[FHLC]) ac_mode=$ac_tag; continue;;
16144  esac
16145  case $ac_mode$ac_tag in
16146  :[FHL]*:*);;
16147  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16148  :[FH]-) ac_tag=-:-;;
16149  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16150  esac
16151  ac_save_IFS=$IFS
16152  IFS=:
16153  set x $ac_tag
16154  IFS=$ac_save_IFS
16155  shift
16156  ac_file=$1
16157  shift
16158
16159  case $ac_mode in
16160  :L) ac_source=$1;;
16161  :[FH])
16162    ac_file_inputs=
16163    for ac_f
16164    do
16165      case $ac_f in
16166      -) ac_f="$ac_tmp/stdin";;
16167      *) # Look for the file first in the build tree, then in the source tree
16168	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16169	 # because $ac_f cannot contain `:'.
16170	 test -f "$ac_f" ||
16171	   case $ac_f in
16172	   [\\/$]*) false;;
16173	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16174	   esac ||
16175	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16176      esac
16177      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16178      as_fn_append ac_file_inputs " '$ac_f'"
16179    done
16180
16181    # Let's still pretend it is `configure' which instantiates (i.e., don't
16182    # use $as_me), people would be surprised to read:
16183    #    /* config.h.  Generated by config.status.  */
16184    configure_input='Generated from '`
16185	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16186	`' by configure.'
16187    if test x"$ac_file" != x-; then
16188      configure_input="$ac_file.  $configure_input"
16189      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16190printf "%s\n" "$as_me: creating $ac_file" >&6;}
16191    fi
16192    # Neutralize special characters interpreted by sed in replacement strings.
16193    case $configure_input in #(
16194    *\&* | *\|* | *\\* )
16195       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16196       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16197    *) ac_sed_conf_input=$configure_input;;
16198    esac
16199
16200    case $ac_tag in
16201    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16202      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16203    esac
16204    ;;
16205  esac
16206
16207  ac_dir=`$as_dirname -- "$ac_file" ||
16208$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16209	 X"$ac_file" : 'X\(//\)[^/]' \| \
16210	 X"$ac_file" : 'X\(//\)$' \| \
16211	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16212printf "%s\n" X"$ac_file" |
16213    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16214	    s//\1/
16215	    q
16216	  }
16217	  /^X\(\/\/\)[^/].*/{
16218	    s//\1/
16219	    q
16220	  }
16221	  /^X\(\/\/\)$/{
16222	    s//\1/
16223	    q
16224	  }
16225	  /^X\(\/\).*/{
16226	    s//\1/
16227	    q
16228	  }
16229	  s/.*/./; q'`
16230  as_dir="$ac_dir"; as_fn_mkdir_p
16231  ac_builddir=.
16232
16233case "$ac_dir" in
16234.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16235*)
16236  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16237  # A ".." for each directory in $ac_dir_suffix.
16238  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16239  case $ac_top_builddir_sub in
16240  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16241  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16242  esac ;;
16243esac
16244ac_abs_top_builddir=$ac_pwd
16245ac_abs_builddir=$ac_pwd$ac_dir_suffix
16246# for backward compatibility:
16247ac_top_builddir=$ac_top_build_prefix
16248
16249case $srcdir in
16250  .)  # We are building in place.
16251    ac_srcdir=.
16252    ac_top_srcdir=$ac_top_builddir_sub
16253    ac_abs_top_srcdir=$ac_pwd ;;
16254  [\\/]* | ?:[\\/]* )  # Absolute name.
16255    ac_srcdir=$srcdir$ac_dir_suffix;
16256    ac_top_srcdir=$srcdir
16257    ac_abs_top_srcdir=$srcdir ;;
16258  *) # Relative name.
16259    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16260    ac_top_srcdir=$ac_top_build_prefix$srcdir
16261    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16262esac
16263ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16264
16265
16266  case $ac_mode in
16267  :F)
16268  #
16269  # CONFIG_FILE
16270  #
16271
16272  case $INSTALL in
16273  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16274  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16275  esac
16276_ACEOF
16277
16278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16279# If the template does not know about datarootdir, expand it.
16280# FIXME: This hack should be removed a few years after 2.60.
16281ac_datarootdir_hack=; ac_datarootdir_seen=
16282ac_sed_dataroot='
16283/datarootdir/ {
16284  p
16285  q
16286}
16287/@datadir@/p
16288/@docdir@/p
16289/@infodir@/p
16290/@localedir@/p
16291/@mandir@/p'
16292case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16293*datarootdir*) ac_datarootdir_seen=yes;;
16294*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16296printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16297_ACEOF
16298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16299  ac_datarootdir_hack='
16300  s&@datadir@&$datadir&g
16301  s&@docdir@&$docdir&g
16302  s&@infodir@&$infodir&g
16303  s&@localedir@&$localedir&g
16304  s&@mandir@&$mandir&g
16305  s&\\\${datarootdir}&$datarootdir&g' ;;
16306esac
16307_ACEOF
16308
16309# Neutralize VPATH when `$srcdir' = `.'.
16310# Shell code in configure.ac might set extrasub.
16311# FIXME: do we really want to maintain this feature?
16312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16313ac_sed_extra="$ac_vpsub
16314$extrasub
16315_ACEOF
16316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16317:t
16318/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16319s|@configure_input@|$ac_sed_conf_input|;t t
16320s&@top_builddir@&$ac_top_builddir_sub&;t t
16321s&@top_build_prefix@&$ac_top_build_prefix&;t t
16322s&@srcdir@&$ac_srcdir&;t t
16323s&@abs_srcdir@&$ac_abs_srcdir&;t t
16324s&@top_srcdir@&$ac_top_srcdir&;t t
16325s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16326s&@builddir@&$ac_builddir&;t t
16327s&@abs_builddir@&$ac_abs_builddir&;t t
16328s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16329s&@INSTALL@&$ac_INSTALL&;t t
16330$ac_datarootdir_hack
16331"
16332eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16333if $ac_cs_awk_getline; then
16334  $AWK -f "$ac_tmp/subs.awk"
16335else
16336  $AWK -f "$ac_tmp/subs.awk" | $SHELL
16337fi \
16338  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16339
16340test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16341  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16342  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16343      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16345which seems to be undefined.  Please make sure it is defined" >&5
16346printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16347which seems to be undefined.  Please make sure it is defined" >&2;}
16348
16349  rm -f "$ac_tmp/stdin"
16350  case $ac_file in
16351  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16352  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16353  esac \
16354  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16355 ;;
16356  :H)
16357  #
16358  # CONFIG_HEADER
16359  #
16360  if test x"$ac_file" != x-; then
16361    {
16362      printf "%s\n" "/* $configure_input  */" >&1 \
16363      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16364    } >"$ac_tmp/config.h" \
16365      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16366    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16367      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16368printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16369    else
16370      rm -f "$ac_file"
16371      mv "$ac_tmp/config.h" "$ac_file" \
16372	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16373    fi
16374  else
16375    printf "%s\n" "/* $configure_input  */" >&1 \
16376      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16377      || as_fn_error $? "could not create -" "$LINENO" 5
16378  fi
16379 ;;
16380
16381
16382  esac
16383
16384
16385  case $ac_file$ac_mode in
16386    "include/autoconf.h":H) echo timestamp > include/autoconf.stamp ;;
16387    "build-tools/krb5-config":F) chmod +x build-tools/krb5-config ;;
16388
16389  esac
16390done # for ac_tag
16391
16392
16393as_fn_exit 0
16394_ACEOF
16395ac_clean_files=$ac_clean_files_save
16396
16397test $ac_write_fail = 0 ||
16398  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16399
16400
16401# configure is writing to config.log, and then calls config.status.
16402# config.status does its own redirection, appending to config.log.
16403# Unfortunately, on DOS this fails, as config.log is still kept open
16404# by configure, so config.status won't be able to write to it; its
16405# output is simply discarded.  So we exec the FD to /dev/null,
16406# effectively closing config.log, so it can be properly (re)opened and
16407# appended to by config.status.  When coming back to configure, we
16408# need to make the FD available again.
16409if test "$no_create" != yes; then
16410  ac_cs_success=:
16411  ac_config_status_args=
16412  test "$silent" = yes &&
16413    ac_config_status_args="$ac_config_status_args --quiet"
16414  exec 5>/dev/null
16415  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16416  exec 5>>config.log
16417  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16418  # would make configure fail if this is the last instruction.
16419  $ac_cs_success || as_fn_exit 1
16420fi
16421if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16423printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16424fi
16425
16426
16427