1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65.
4#
5# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
6# Massachusetts Institute of Technology.
7#
8#
9#
10# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
12# Inc.
13#
14#
15# This configure script is free software; the Free Software Foundation
16# gives unlimited permission to copy, distribute and modify it.
17## -------------------- ##
18## M4sh Initialization. ##
19## -------------------- ##
20
21# Be more Bourne compatible
22DUALCASE=1; export DUALCASE # for MKS sh
23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24  emulate sh
25  NULLCMD=:
26  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27  # is contrary to our usage.  Disable this feature.
28  alias -g '${1+"$@"}'='"$@"'
29  setopt NO_GLOB_SUBST
30else
31  case `(set -o) 2>/dev/null` in #(
32  *posix*) :
33    set -o posix ;; #(
34  *) :
35     ;;
36esac
37fi
38
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47# Prefer a ksh shell builtin over an external printf program on Solaris,
48# but without wasting forks for bash or zsh.
49if test -z "$BASH_VERSION$ZSH_VERSION" \
50    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='print -r --'
52  as_echo_n='print -rn --'
53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54  as_echo='printf %s\n'
55  as_echo_n='printf %s'
56else
57  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59    as_echo_n='/usr/ucb/echo -n'
60  else
61    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62    as_echo_n_body='eval
63      arg=$1;
64      case $arg in #(
65      *"$as_nl"*)
66	expr "X$arg" : "X\\(.*\\)$as_nl";
67	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68      esac;
69      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70    '
71    export as_echo_n_body
72    as_echo_n='sh -c $as_echo_n_body as_echo'
73  fi
74  export as_echo_body
75  as_echo='sh -c $as_echo_body as_echo'
76fi
77
78# The user is always right.
79if test "${PATH_SEPARATOR+set}" != set; then
80  PATH_SEPARATOR=:
81  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83      PATH_SEPARATOR=';'
84  }
85fi
86
87
88# IFS
89# We need space, tab and new line, in precisely that order.  Quoting is
90# there to prevent editors from complaining about space-tab.
91# (If _AS_PATH_WALK were called with IFS unset, it would disable word
92# splitting by setting IFS to empty value.)
93IFS=" ""	$as_nl"
94
95# Find who we are.  Look in the path if we contain no directory separator.
96case $0 in #((
97  *[\\/]* ) as_myself=$0 ;;
98  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101  IFS=$as_save_IFS
102  test -z "$as_dir" && as_dir=.
103    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104  done
105IFS=$as_save_IFS
106
107     ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112  as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116  exit 1
117fi
118
119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there.  '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142  emulate sh
143  NULLCMD=:
144  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145  # is contrary to our usage.  Disable this feature.
146  alias -g '\${1+\"\$@\"}'='\"\$@\"'
147  setopt NO_GLOB_SUBST
148else
149  case \`(set -o) 2>/dev/null\` in #(
150  *posix*) :
151    set -o posix ;; #(
152  *) :
153     ;;
154esac
155fi
156"
157  as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171  exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179  if (eval "$as_required") 2>/dev/null; then :
180  as_have_required=yes
181else
182  as_have_required=no
183fi
184  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do
191  IFS=$as_save_IFS
192  test -z "$as_dir" && as_dir=.
193  as_found=:
194  case $as_dir in #(
195	 /*)
196	   for as_base in sh bash ksh sh5; do
197	     # Try only shells that exist, to save several forks.
198	     as_shell=$as_dir/$as_base
199	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  CONFIG_SHELL=$as_shell as_have_required=yes
202		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  break 2
204fi
205fi
206	   done;;
207       esac
208  as_found=false
209done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212  CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS
215
216
217      if test "x$CONFIG_SHELL" != x; then :
218  # We cannot yet assume a decent shell, so we have to provide a
219	# neutralization value for shells without unset; and this also
220	# works around shells that cannot unset nonexistent variables.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226fi
227
228    if test x$as_have_required = xno; then :
229  $as_echo "$0: This script requires a shell more modern than all"
230  $as_echo "$0: the shells that I found on your system."
231  if test x${ZSH_VERSION+set} = xset ; then
232    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234  else
235    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
236$0: including any error possibly output before this
237$0: message. Then install a modern shell, or manually run
238$0: the script under such a shell if you do have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533test -n "$DJDIR" || exec 7<&0 </dev/null
534exec 6>&1
535
536# Name of the host.
537# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538# so uname gets run too.
539ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540
541#
542# Initializations.
543#
544ac_default_prefix=/usr/local
545ac_clean_files=
546ac_config_libobj_dir=.
547LIBOBJS=
548cross_compiling=no
549subdirs=
550MFLAGS=
551MAKEFLAGS=
552
553# Identity of this package.
554PACKAGE_NAME=
555PACKAGE_TARNAME=
556PACKAGE_VERSION=
557PACKAGE_STRING=
558PACKAGE_BUGREPORT=
559PACKAGE_URL=
560
561ac_unique_file="Kerberos 5 applications"
562ac_unique_file="k5-platform.h"
563# Factoring default headers for most tests.
564ac_includes_default="\
565#include <stdio.h>
566#ifdef HAVE_SYS_TYPES_H
567# include <sys/types.h>
568#endif
569#ifdef HAVE_SYS_STAT_H
570# include <sys/stat.h>
571#endif
572#ifdef STDC_HEADERS
573# include <stdlib.h>
574# include <stddef.h>
575#else
576# ifdef HAVE_STDLIB_H
577#  include <stdlib.h>
578# endif
579#endif
580#ifdef HAVE_STRING_H
581# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
582#  include <memory.h>
583# endif
584# include <string.h>
585#endif
586#ifdef HAVE_STRINGS_H
587# include <strings.h>
588#endif
589#ifdef HAVE_INTTYPES_H
590# include <inttypes.h>
591#endif
592#ifdef HAVE_STDINT_H
593# include <stdint.h>
594#endif
595#ifdef HAVE_UNISTD_H
596# include <unistd.h>
597#endif"
598
599ac_subst_vars='LTLIBOBJS
600HAVE_RUNTEST
601RUNTEST
602TELNETD_LIBS
603TELNET_LIBS
604FTPD_LIBS
605LOGINLIBS
606KRSHDLIBS
607LIBOBJS
608UTIL_LIB
609MAINT
610MAINTAINER_MODE_FALSE
611MAINTAINER_MODE_TRUE
612UCB_RCP
613UCB_RSH
614UCB_RLOGIN
615EGREP
616GREP
617CPP
618AR
619YFLAGS
620YACC
621INSTALL_DATA
622INSTALL_SCRIPT
623INSTALL_PROGRAM
624ARADD
625ARCHIVE
626RANLIB
627LN_S
628LD
629WARN_CFLAGS
630HAVE_GCC
631ac_ct_CXX
632CXXFLAGS
633CXX
634OBJEXT
635EXEEXT
636ac_ct_CC
637CPPFLAGS
638LDFLAGS
639CFLAGS
640CC
641host_os
642host_vendor
643host_cpu
644host
645build_os
646build_vendor
647build_cpu
648build
649KRB5_SBINDIR
650KRB5_BINDIR
651GSS_LIBS
652KRB5_BASE_LIBS
653KRB5_CFLAGS
654target_alias
655host_alias
656build_alias
657LIBS
658ECHO_T
659ECHO_N
660ECHO_C
661DEFS
662mandir
663localedir
664libdir
665psdir
666pdfdir
667dvidir
668htmldir
669infodir
670docdir
671oldincludedir
672includedir
673localstatedir
674sharedstatedir
675sysconfdir
676datadir
677datarootdir
678libexecdir
679sbindir
680bindir
681program_transform_name
682prefix
683exec_prefix
684PACKAGE_URL
685PACKAGE_BUGREPORT
686PACKAGE_STRING
687PACKAGE_VERSION
688PACKAGE_TARNAME
689PACKAGE_NAME
690PATH_SEPARATOR
691SHELL'
692ac_subst_files=''
693ac_user_opts='
694enable_option_checking
695with_krb5
696enable_maintainer_mode
697with_afs
698'
699      ac_precious_vars='build_alias
700host_alias
701target_alias
702CC
703CFLAGS
704LDFLAGS
705LIBS
706CPPFLAGS
707CXX
708CXXFLAGS
709CCC
710LD
711YACC
712YFLAGS
713CPP'
714
715
716# Initialize some variables set by options.
717ac_init_help=
718ac_init_version=false
719ac_unrecognized_opts=
720ac_unrecognized_sep=
721# The variables have the same names as the options, with
722# dashes changed to underlines.
723cache_file=/dev/null
724exec_prefix=NONE
725no_create=
726no_recursion=
727prefix=NONE
728program_prefix=NONE
729program_suffix=NONE
730program_transform_name=s,x,x,
731silent=
732site=
733srcdir=
734verbose=
735x_includes=NONE
736x_libraries=NONE
737
738# Installation directory options.
739# These are left unexpanded so users can "make install exec_prefix=/foo"
740# and all the variables that are supposed to be based on exec_prefix
741# by default will actually change.
742# Use braces instead of parens because sh, perl, etc. also accept them.
743# (The list follows the same order as the GNU Coding Standards.)
744bindir='${exec_prefix}/bin'
745sbindir='${exec_prefix}/sbin'
746libexecdir='${exec_prefix}/libexec'
747datarootdir='${prefix}/share'
748datadir='${datarootdir}'
749sysconfdir='${prefix}/etc'
750sharedstatedir='${prefix}/com'
751localstatedir='${prefix}/var'
752includedir='${prefix}/include'
753oldincludedir='/usr/include'
754docdir='${datarootdir}/doc/${PACKAGE}'
755infodir='${datarootdir}/info'
756htmldir='${docdir}'
757dvidir='${docdir}'
758pdfdir='${docdir}'
759psdir='${docdir}'
760libdir='${exec_prefix}/lib'
761localedir='${datarootdir}/locale'
762mandir='${datarootdir}/man'
763
764ac_prev=
765ac_dashdash=
766for ac_option
767do
768  # If the previous option needs an argument, assign it.
769  if test -n "$ac_prev"; then
770    eval $ac_prev=\$ac_option
771    ac_prev=
772    continue
773  fi
774
775  case $ac_option in
776  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777  *)	ac_optarg=yes ;;
778  esac
779
780  # Accept the important Cygnus configure options, so we can diagnose typos.
781
782  case $ac_dashdash$ac_option in
783  --)
784    ac_dashdash=yes ;;
785
786  -bindir | --bindir | --bindi | --bind | --bin | --bi)
787    ac_prev=bindir ;;
788  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789    bindir=$ac_optarg ;;
790
791  -build | --build | --buil | --bui | --bu)
792    ac_prev=build_alias ;;
793  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794    build_alias=$ac_optarg ;;
795
796  -cache-file | --cache-file | --cache-fil | --cache-fi \
797  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798    ac_prev=cache_file ;;
799  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801    cache_file=$ac_optarg ;;
802
803  --config-cache | -C)
804    cache_file=config.cache ;;
805
806  -datadir | --datadir | --datadi | --datad)
807    ac_prev=datadir ;;
808  -datadir=* | --datadir=* | --datadi=* | --datad=*)
809    datadir=$ac_optarg ;;
810
811  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812  | --dataroo | --dataro | --datar)
813    ac_prev=datarootdir ;;
814  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816    datarootdir=$ac_optarg ;;
817
818  -disable-* | --disable-*)
819    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
820    # Reject names that are not valid shell variable names.
821    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
822      as_fn_error "invalid feature name: $ac_useropt"
823    ac_useropt_orig=$ac_useropt
824    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
825    case $ac_user_opts in
826      *"
827"enable_$ac_useropt"
828"*) ;;
829      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
830	 ac_unrecognized_sep=', ';;
831    esac
832    eval enable_$ac_useropt=no ;;
833
834  -docdir | --docdir | --docdi | --doc | --do)
835    ac_prev=docdir ;;
836  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
837    docdir=$ac_optarg ;;
838
839  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840    ac_prev=dvidir ;;
841  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
842    dvidir=$ac_optarg ;;
843
844  -enable-* | --enable-*)
845    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
846    # Reject names that are not valid shell variable names.
847    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848      as_fn_error "invalid feature name: $ac_useropt"
849    ac_useropt_orig=$ac_useropt
850    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851    case $ac_user_opts in
852      *"
853"enable_$ac_useropt"
854"*) ;;
855      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
856	 ac_unrecognized_sep=', ';;
857    esac
858    eval enable_$ac_useropt=\$ac_optarg ;;
859
860  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
861  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
862  | --exec | --exe | --ex)
863    ac_prev=exec_prefix ;;
864  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
865  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
866  | --exec=* | --exe=* | --ex=*)
867    exec_prefix=$ac_optarg ;;
868
869  -gas | --gas | --ga | --g)
870    # Obsolete; use --with-gas.
871    with_gas=yes ;;
872
873  -help | --help | --hel | --he | -h)
874    ac_init_help=long ;;
875  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
876    ac_init_help=recursive ;;
877  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
878    ac_init_help=short ;;
879
880  -host | --host | --hos | --ho)
881    ac_prev=host_alias ;;
882  -host=* | --host=* | --hos=* | --ho=*)
883    host_alias=$ac_optarg ;;
884
885  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886    ac_prev=htmldir ;;
887  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888  | --ht=*)
889    htmldir=$ac_optarg ;;
890
891  -includedir | --includedir | --includedi | --included | --include \
892  | --includ | --inclu | --incl | --inc)
893    ac_prev=includedir ;;
894  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
895  | --includ=* | --inclu=* | --incl=* | --inc=*)
896    includedir=$ac_optarg ;;
897
898  -infodir | --infodir | --infodi | --infod | --info | --inf)
899    ac_prev=infodir ;;
900  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
901    infodir=$ac_optarg ;;
902
903  -libdir | --libdir | --libdi | --libd)
904    ac_prev=libdir ;;
905  -libdir=* | --libdir=* | --libdi=* | --libd=*)
906    libdir=$ac_optarg ;;
907
908  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
909  | --libexe | --libex | --libe)
910    ac_prev=libexecdir ;;
911  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
912  | --libexe=* | --libex=* | --libe=*)
913    libexecdir=$ac_optarg ;;
914
915  -localedir | --localedir | --localedi | --localed | --locale)
916    ac_prev=localedir ;;
917  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
918    localedir=$ac_optarg ;;
919
920  -localstatedir | --localstatedir | --localstatedi | --localstated \
921  | --localstate | --localstat | --localsta | --localst | --locals)
922    ac_prev=localstatedir ;;
923  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
924  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
925    localstatedir=$ac_optarg ;;
926
927  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928    ac_prev=mandir ;;
929  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930    mandir=$ac_optarg ;;
931
932  -nfp | --nfp | --nf)
933    # Obsolete; use --without-fp.
934    with_fp=no ;;
935
936  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
937  | --no-cr | --no-c | -n)
938    no_create=yes ;;
939
940  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
941  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
942    no_recursion=yes ;;
943
944  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
945  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
946  | --oldin | --oldi | --old | --ol | --o)
947    ac_prev=oldincludedir ;;
948  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
949  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
950  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
951    oldincludedir=$ac_optarg ;;
952
953  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954    ac_prev=prefix ;;
955  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956    prefix=$ac_optarg ;;
957
958  -program-prefix | --program-prefix | --program-prefi | --program-pref \
959  | --program-pre | --program-pr | --program-p)
960    ac_prev=program_prefix ;;
961  -program-prefix=* | --program-prefix=* | --program-prefi=* \
962  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
963    program_prefix=$ac_optarg ;;
964
965  -program-suffix | --program-suffix | --program-suffi | --program-suff \
966  | --program-suf | --program-su | --program-s)
967    ac_prev=program_suffix ;;
968  -program-suffix=* | --program-suffix=* | --program-suffi=* \
969  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
970    program_suffix=$ac_optarg ;;
971
972  -program-transform-name | --program-transform-name \
973  | --program-transform-nam | --program-transform-na \
974  | --program-transform-n | --program-transform- \
975  | --program-transform | --program-transfor \
976  | --program-transfo | --program-transf \
977  | --program-trans | --program-tran \
978  | --progr-tra | --program-tr | --program-t)
979    ac_prev=program_transform_name ;;
980  -program-transform-name=* | --program-transform-name=* \
981  | --program-transform-nam=* | --program-transform-na=* \
982  | --program-transform-n=* | --program-transform-=* \
983  | --program-transform=* | --program-transfor=* \
984  | --program-transfo=* | --program-transf=* \
985  | --program-trans=* | --program-tran=* \
986  | --progr-tra=* | --program-tr=* | --program-t=*)
987    program_transform_name=$ac_optarg ;;
988
989  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990    ac_prev=pdfdir ;;
991  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992    pdfdir=$ac_optarg ;;
993
994  -psdir | --psdir | --psdi | --psd | --ps)
995    ac_prev=psdir ;;
996  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997    psdir=$ac_optarg ;;
998
999  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000  | -silent | --silent | --silen | --sile | --sil)
1001    silent=yes ;;
1002
1003  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004    ac_prev=sbindir ;;
1005  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006  | --sbi=* | --sb=*)
1007    sbindir=$ac_optarg ;;
1008
1009  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1010  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1011  | --sharedst | --shareds | --shared | --share | --shar \
1012  | --sha | --sh)
1013    ac_prev=sharedstatedir ;;
1014  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1015  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1016  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017  | --sha=* | --sh=*)
1018    sharedstatedir=$ac_optarg ;;
1019
1020  -site | --site | --sit)
1021    ac_prev=site ;;
1022  -site=* | --site=* | --sit=*)
1023    site=$ac_optarg ;;
1024
1025  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026    ac_prev=srcdir ;;
1027  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1028    srcdir=$ac_optarg ;;
1029
1030  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1031  | --syscon | --sysco | --sysc | --sys | --sy)
1032    ac_prev=sysconfdir ;;
1033  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1034  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1035    sysconfdir=$ac_optarg ;;
1036
1037  -target | --target | --targe | --targ | --tar | --ta | --t)
1038    ac_prev=target_alias ;;
1039  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1040    target_alias=$ac_optarg ;;
1041
1042  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043    verbose=yes ;;
1044
1045  -version | --version | --versio | --versi | --vers | -V)
1046    ac_init_version=: ;;
1047
1048  -with-* | --with-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error "invalid package name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"with_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval with_$ac_useropt=\$ac_optarg ;;
1063
1064  -without-* | --without-*)
1065    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1066    # Reject names that are not valid shell variable names.
1067    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068      as_fn_error "invalid package name: $ac_useropt"
1069    ac_useropt_orig=$ac_useropt
1070    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071    case $ac_user_opts in
1072      *"
1073"with_$ac_useropt"
1074"*) ;;
1075      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1076	 ac_unrecognized_sep=', ';;
1077    esac
1078    eval with_$ac_useropt=no ;;
1079
1080  --x)
1081    # Obsolete; use --with-x.
1082    with_x=yes ;;
1083
1084  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1085  | --x-incl | --x-inc | --x-in | --x-i)
1086    ac_prev=x_includes ;;
1087  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1088  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1089    x_includes=$ac_optarg ;;
1090
1091  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1092  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1093    ac_prev=x_libraries ;;
1094  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1095  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1096    x_libraries=$ac_optarg ;;
1097
1098  -*) as_fn_error "unrecognized option: \`$ac_option'
1099Try \`$0 --help' for more information."
1100    ;;
1101
1102  *=*)
1103    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104    # Reject names that are not valid shell variable names.
1105    case $ac_envvar in #(
1106      '' | [0-9]* | *[!_$as_cr_alnum]* )
1107      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1108    esac
1109    eval $ac_envvar=\$ac_optarg
1110    export $ac_envvar ;;
1111
1112  *)
1113    # FIXME: should be removed in autoconf 3.0.
1114    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1115    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1116      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1117    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1118    ;;
1119
1120  esac
1121done
1122
1123if test -n "$ac_prev"; then
1124  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1125  as_fn_error "missing argument to $ac_option"
1126fi
1127
1128if test -n "$ac_unrecognized_opts"; then
1129  case $enable_option_checking in
1130    no) ;;
1131    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1132    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1133  esac
1134fi
1135
1136# Check all directory arguments for consistency.
1137for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138		datadir sysconfdir sharedstatedir localstatedir includedir \
1139		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140		libdir localedir mandir
1141do
1142  eval ac_val=\$$ac_var
1143  # Remove trailing slashes.
1144  case $ac_val in
1145    */ )
1146      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1147      eval $ac_var=\$ac_val;;
1148  esac
1149  # Be sure to have absolute directory names.
1150  case $ac_val in
1151    [\\/$]* | ?:[\\/]* )  continue;;
1152    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1153  esac
1154  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1155done
1156
1157# There might be people who depend on the old broken behavior: `$host'
1158# used to hold the argument of --host etc.
1159# FIXME: To remove some day.
1160build=$build_alias
1161host=$host_alias
1162target=$target_alias
1163
1164# FIXME: To remove some day.
1165if test "x$host_alias" != x; then
1166  if test "x$build_alias" = x; then
1167    cross_compiling=maybe
1168    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169    If a cross compiler is detected then cross compile mode will be used." >&2
1170  elif test "x$build_alias" != "x$host_alias"; then
1171    cross_compiling=yes
1172  fi
1173fi
1174
1175ac_tool_prefix=
1176test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177
1178test "$silent" = yes && exec 6>/dev/null
1179
1180
1181ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182ac_ls_di=`ls -di .` &&
1183ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184  as_fn_error "working directory cannot be determined"
1185test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1186  as_fn_error "pwd does not report name of working directory"
1187
1188
1189# Find the source files, if location was not specified.
1190if test -z "$srcdir"; then
1191  ac_srcdir_defaulted=yes
1192  # Try the directory containing this script, then the parent directory.
1193  ac_confdir=`$as_dirname -- "$as_myself" ||
1194$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195	 X"$as_myself" : 'X\(//\)[^/]' \| \
1196	 X"$as_myself" : 'X\(//\)$' \| \
1197	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1198$as_echo X"$as_myself" |
1199    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200	    s//\1/
1201	    q
1202	  }
1203	  /^X\(\/\/\)[^/].*/{
1204	    s//\1/
1205	    q
1206	  }
1207	  /^X\(\/\/\)$/{
1208	    s//\1/
1209	    q
1210	  }
1211	  /^X\(\/\).*/{
1212	    s//\1/
1213	    q
1214	  }
1215	  s/.*/./; q'`
1216  srcdir=$ac_confdir
1217  if test ! -r "$srcdir/$ac_unique_file"; then
1218    srcdir=..
1219  fi
1220else
1221  ac_srcdir_defaulted=no
1222fi
1223if test ! -r "$srcdir/$ac_unique_file"; then
1224  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1225  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1226fi
1227ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1228ac_abs_confdir=`(
1229	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1230	pwd)`
1231# When building in place, set srcdir=.
1232if test "$ac_abs_confdir" = "$ac_pwd"; then
1233  srcdir=.
1234fi
1235# Remove unnecessary trailing slashes from srcdir.
1236# Double slashes in file names in object file debugging info
1237# mess up M-x gdb in Emacs.
1238case $srcdir in
1239*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240esac
1241for ac_var in $ac_precious_vars; do
1242  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243  eval ac_env_${ac_var}_value=\$${ac_var}
1244  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246done
1247
1248#
1249# Report the --help message.
1250#
1251if test "$ac_init_help" = "long"; then
1252  # Omit some internal or obsolete options to make the list less imposing.
1253  # This message is too long to be a string in the A/UX 3.1 sh.
1254  cat <<_ACEOF
1255\`configure' configures this package to adapt to many kinds of systems.
1256
1257Usage: $0 [OPTION]... [VAR=VALUE]...
1258
1259To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260VAR=VALUE.  See below for descriptions of some of the useful variables.
1261
1262Defaults for the options are specified in brackets.
1263
1264Configuration:
1265  -h, --help              display this help and exit
1266      --help=short        display options specific to this package
1267      --help=recursive    display the short help of all the included packages
1268  -V, --version           display version information and exit
1269  -q, --quiet, --silent   do not print \`checking...' messages
1270      --cache-file=FILE   cache test results in FILE [disabled]
1271  -C, --config-cache      alias for \`--cache-file=config.cache'
1272  -n, --no-create         do not create output files
1273      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1274
1275Installation directories:
1276  --prefix=PREFIX         install architecture-independent files in PREFIX
1277                          [$ac_default_prefix]
1278  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1279                          [PREFIX]
1280
1281By default, \`make install' will install all the files in
1282\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1283an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284for instance \`--prefix=\$HOME'.
1285
1286For better control, use the options below.
1287
1288Fine tuning of the installation directories:
1289  --bindir=DIR            user executables [EPREFIX/bin]
1290  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1291  --libexecdir=DIR        program executables [EPREFIX/libexec]
1292  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1293  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1294  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1295  --libdir=DIR            object code libraries [EPREFIX/lib]
1296  --includedir=DIR        C header files [PREFIX/include]
1297  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1298  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1299  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1300  --infodir=DIR           info documentation [DATAROOTDIR/info]
1301  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1302  --mandir=DIR            man documentation [DATAROOTDIR/man]
1303  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1304  --htmldir=DIR           html documentation [DOCDIR]
1305  --dvidir=DIR            dvi documentation [DOCDIR]
1306  --pdfdir=DIR            pdf documentation [DOCDIR]
1307  --psdir=DIR             ps documentation [DOCDIR]
1308_ACEOF
1309
1310  cat <<\_ACEOF
1311
1312Program names:
1313  --program-prefix=PREFIX            prepend PREFIX to installed program names
1314  --program-suffix=SUFFIX            append SUFFIX to installed program names
1315  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1316
1317System types:
1318  --build=BUILD     configure for building on BUILD [guessed]
1319  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1320_ACEOF
1321fi
1322
1323if test -n "$ac_init_help"; then
1324
1325  cat <<\_ACEOF
1326
1327Optional Features:
1328  --disable-option-checking  ignore unrecognized --enable/--with options
1329  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1330  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1331  --enable-maintainer-mode
1332                          enable rebuilding of source files, Makefiles, etc
1333
1334Optional Packages:
1335  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1336  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1337  --with-krb5=path        where krb5 resides
1338  --without-afs        don't have afs libraries to build against (default)
1339  --with-afs=AFSDIR    use preinstalled AFS library tree
1340
1341Some influential environment variables:
1342  CC          C compiler command
1343  CFLAGS      C compiler flags
1344  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1345              nonstandard directory <lib dir>
1346  LIBS        libraries to pass to the linker, e.g. -l<library>
1347  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1348              you have headers in a nonstandard directory <include dir>
1349  CXX         C++ compiler command
1350  CXXFLAGS    C++ compiler flags
1351  LD          linker command [CC]
1352  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1353              the first program found out of: `bison -y', `byacc', `yacc'.
1354  YFLAGS      The list of arguments that will be passed by default to $YACC.
1355              This script will default YFLAGS to the empty string to avoid a
1356              default value of `-d' given by some make applications.
1357  CPP         C preprocessor
1358
1359Use these variables to override the choices made by `configure' or to help
1360it to find libraries and programs with nonstandard names/locations.
1361
1362Report bugs to the package provider.
1363_ACEOF
1364ac_status=$?
1365fi
1366
1367if test "$ac_init_help" = "recursive"; then
1368  # If there are subdirs, report their specific --help.
1369  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370    test -d "$ac_dir" ||
1371      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1372      continue
1373    ac_builddir=.
1374
1375case "$ac_dir" in
1376.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377*)
1378  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1379  # A ".." for each directory in $ac_dir_suffix.
1380  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381  case $ac_top_builddir_sub in
1382  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384  esac ;;
1385esac
1386ac_abs_top_builddir=$ac_pwd
1387ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388# for backward compatibility:
1389ac_top_builddir=$ac_top_build_prefix
1390
1391case $srcdir in
1392  .)  # We are building in place.
1393    ac_srcdir=.
1394    ac_top_srcdir=$ac_top_builddir_sub
1395    ac_abs_top_srcdir=$ac_pwd ;;
1396  [\\/]* | ?:[\\/]* )  # Absolute name.
1397    ac_srcdir=$srcdir$ac_dir_suffix;
1398    ac_top_srcdir=$srcdir
1399    ac_abs_top_srcdir=$srcdir ;;
1400  *) # Relative name.
1401    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402    ac_top_srcdir=$ac_top_build_prefix$srcdir
1403    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404esac
1405ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406
1407    cd "$ac_dir" || { ac_status=$?; continue; }
1408    # Check for guested configure.
1409    if test -f "$ac_srcdir/configure.gnu"; then
1410      echo &&
1411      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412    elif test -f "$ac_srcdir/configure"; then
1413      echo &&
1414      $SHELL "$ac_srcdir/configure" --help=recursive
1415    else
1416      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417    fi || ac_status=$?
1418    cd "$ac_pwd" || { ac_status=$?; break; }
1419  done
1420fi
1421
1422test -n "$ac_init_help" && exit $ac_status
1423if $ac_init_version; then
1424  cat <<\_ACEOF
1425configure
1426generated by GNU Autoconf 2.65
1427
1428Copyright (C) 2009 Free Software Foundation, Inc.
1429This configure script is free software; the Free Software Foundation
1430gives unlimited permission to copy, distribute and modify it.
1431
1432Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
1433Massachusetts Institute of Technology.
1434
1435_ACEOF
1436  exit
1437fi
1438
1439## ------------------------ ##
1440## Autoconf initialization. ##
1441## ------------------------ ##
1442
1443# ac_fn_c_try_compile LINENO
1444# --------------------------
1445# Try to compile conftest.$ac_ext, and return whether this succeeded.
1446ac_fn_c_try_compile ()
1447{
1448  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449  rm -f conftest.$ac_objext
1450  if { { ac_try="$ac_compile"
1451case "(($ac_try" in
1452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1453  *) ac_try_echo=$ac_try;;
1454esac
1455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456$as_echo "$ac_try_echo"; } >&5
1457  (eval "$ac_compile") 2>conftest.err
1458  ac_status=$?
1459  if test -s conftest.err; then
1460    grep -v '^ *+' conftest.err >conftest.er1
1461    cat conftest.er1 >&5
1462    mv -f conftest.er1 conftest.err
1463  fi
1464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465  test $ac_status = 0; } && {
1466	 test -z "$ac_c_werror_flag" ||
1467	 test ! -s conftest.err
1468       } && test -s conftest.$ac_objext; then :
1469  ac_retval=0
1470else
1471  $as_echo "$as_me: failed program was:" >&5
1472sed 's/^/| /' conftest.$ac_ext >&5
1473
1474	ac_retval=1
1475fi
1476  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1477  as_fn_set_status $ac_retval
1478
1479} # ac_fn_c_try_compile
1480
1481# ac_fn_cxx_try_compile LINENO
1482# ----------------------------
1483# Try to compile conftest.$ac_ext, and return whether this succeeded.
1484ac_fn_cxx_try_compile ()
1485{
1486  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487  rm -f conftest.$ac_objext
1488  if { { ac_try="$ac_compile"
1489case "(($ac_try" in
1490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491  *) ac_try_echo=$ac_try;;
1492esac
1493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494$as_echo "$ac_try_echo"; } >&5
1495  (eval "$ac_compile") 2>conftest.err
1496  ac_status=$?
1497  if test -s conftest.err; then
1498    grep -v '^ *+' conftest.err >conftest.er1
1499    cat conftest.er1 >&5
1500    mv -f conftest.er1 conftest.err
1501  fi
1502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503  test $ac_status = 0; } && {
1504	 test -z "$ac_cxx_werror_flag" ||
1505	 test ! -s conftest.err
1506       } && test -s conftest.$ac_objext; then :
1507  ac_retval=0
1508else
1509  $as_echo "$as_me: failed program was:" >&5
1510sed 's/^/| /' conftest.$ac_ext >&5
1511
1512	ac_retval=1
1513fi
1514  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1515  as_fn_set_status $ac_retval
1516
1517} # ac_fn_cxx_try_compile
1518
1519# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1520# -------------------------------------------
1521# Tests whether TYPE exists after having included INCLUDES, setting cache
1522# variable VAR accordingly.
1523ac_fn_c_check_type ()
1524{
1525  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1527$as_echo_n "checking for $2... " >&6; }
1528if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1529  $as_echo_n "(cached) " >&6
1530else
1531  eval "$3=no"
1532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1533/* end confdefs.h.  */
1534$4
1535int
1536main ()
1537{
1538if (sizeof ($2))
1539	 return 0;
1540  ;
1541  return 0;
1542}
1543_ACEOF
1544if ac_fn_c_try_compile "$LINENO"; then :
1545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1546/* end confdefs.h.  */
1547$4
1548int
1549main ()
1550{
1551if (sizeof (($2)))
1552	    return 0;
1553  ;
1554  return 0;
1555}
1556_ACEOF
1557if ac_fn_c_try_compile "$LINENO"; then :
1558
1559else
1560  eval "$3=yes"
1561fi
1562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1563fi
1564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1565fi
1566eval ac_res=\$$3
1567	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1568$as_echo "$ac_res" >&6; }
1569  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570
1571} # ac_fn_c_check_type
1572
1573# ac_fn_c_try_cpp LINENO
1574# ----------------------
1575# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_cpp ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  if { { ac_try="$ac_cpp conftest.$ac_ext"
1580case "(($ac_try" in
1581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582  *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587  ac_status=$?
1588  if test -s conftest.err; then
1589    grep -v '^ *+' conftest.err >conftest.er1
1590    cat conftest.er1 >&5
1591    mv -f conftest.er1 conftest.err
1592  fi
1593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594  test $ac_status = 0; } >/dev/null && {
1595	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596	 test ! -s conftest.err
1597       }; then :
1598  ac_retval=0
1599else
1600  $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603    ac_retval=1
1604fi
1605  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606  as_fn_set_status $ac_retval
1607
1608} # ac_fn_c_try_cpp
1609
1610# ac_fn_c_try_run LINENO
1611# ----------------------
1612# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613# that executables *can* be run.
1614ac_fn_c_try_run ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  if { { ac_try="$ac_link"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_link") 2>&5
1625  ac_status=$?
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1628  { { case "(($ac_try" in
1629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630  *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634  (eval "$ac_try") 2>&5
1635  ac_status=$?
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; }; }; then :
1638  ac_retval=0
1639else
1640  $as_echo "$as_me: program exited with status $ac_status" >&5
1641       $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644       ac_retval=$ac_status
1645fi
1646  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648  as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_run
1651
1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists and can be compiled using the include files in
1655# INCLUDES, setting the cache variable VAR accordingly.
1656ac_fn_c_check_header_compile ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662  $as_echo_n "(cached) " >&6
1663else
1664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665/* end confdefs.h.  */
1666$4
1667#include <$2>
1668_ACEOF
1669if ac_fn_c_try_compile "$LINENO"; then :
1670  eval "$3=yes"
1671else
1672  eval "$3=no"
1673fi
1674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675fi
1676eval ac_res=\$$3
1677	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678$as_echo "$ac_res" >&6; }
1679  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680
1681} # ac_fn_c_check_header_compile
1682
1683# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1684# -------------------------------------------------------
1685# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1686# the include files in INCLUDES and setting the cache variable VAR
1687# accordingly.
1688ac_fn_c_check_header_mongrel ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1695  $as_echo_n "(cached) " >&6
1696fi
1697eval ac_res=\$$3
1698	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699$as_echo "$ac_res" >&6; }
1700else
1701  # Is the header compilable?
1702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1703$as_echo_n "checking $2 usability... " >&6; }
1704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h.  */
1706$4
1707#include <$2>
1708_ACEOF
1709if ac_fn_c_try_compile "$LINENO"; then :
1710  ac_header_compiler=yes
1711else
1712  ac_header_compiler=no
1713fi
1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1716$as_echo "$ac_header_compiler" >&6; }
1717
1718# Is the header present?
1719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1720$as_echo_n "checking $2 presence... " >&6; }
1721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h.  */
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_cpp "$LINENO"; then :
1726  ac_header_preproc=yes
1727else
1728  ac_header_preproc=no
1729fi
1730rm -f conftest.err conftest.$ac_ext
1731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1732$as_echo "$ac_header_preproc" >&6; }
1733
1734# So?  What about this header?
1735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1736  yes:no: )
1737    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1738$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1739    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741    ;;
1742  no:yes:* )
1743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1744$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1745    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1746$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1747    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1748$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1749    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1750$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1751    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753    ;;
1754esac
1755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756$as_echo_n "checking for $2... " >&6; }
1757if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1758  $as_echo_n "(cached) " >&6
1759else
1760  eval "$3=\$ac_header_compiler"
1761fi
1762eval ac_res=\$$3
1763	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764$as_echo "$ac_res" >&6; }
1765fi
1766  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767
1768} # ac_fn_c_check_header_mongrel
1769
1770# ac_fn_c_try_link LINENO
1771# -----------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_c_try_link ()
1774{
1775  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776  rm -f conftest.$ac_objext conftest$ac_exeext
1777  if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780  *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784  (eval "$ac_link") 2>conftest.err
1785  ac_status=$?
1786  if test -s conftest.err; then
1787    grep -v '^ *+' conftest.err >conftest.er1
1788    cat conftest.er1 >&5
1789    mv -f conftest.er1 conftest.err
1790  fi
1791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792  test $ac_status = 0; } && {
1793	 test -z "$ac_c_werror_flag" ||
1794	 test ! -s conftest.err
1795       } && test -s conftest$ac_exeext && {
1796	 test "$cross_compiling" = yes ||
1797	 $as_test_x conftest$ac_exeext
1798       }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804	ac_retval=1
1805fi
1806  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808  # interfere with the next link command; also delete a directory that is
1809  # left behind by Apple's compiler.  We do this before executing the actions.
1810  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812  as_fn_set_status $ac_retval
1813
1814} # ac_fn_c_try_link
1815
1816# ac_fn_c_check_func LINENO FUNC VAR
1817# ----------------------------------
1818# Tests whether FUNC exists, setting the cache variable VAR accordingly
1819ac_fn_c_check_func ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825  $as_echo_n "(cached) " >&6
1826else
1827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1831#define $2 innocuous_$2
1832
1833/* System header to define __stub macros and hopefully few prototypes,
1834    which can conflict with char $2 (); below.
1835    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836    <limits.h> exists even on freestanding compilers.  */
1837
1838#ifdef __STDC__
1839# include <limits.h>
1840#else
1841# include <assert.h>
1842#endif
1843
1844#undef $2
1845
1846/* Override any GCC internal prototype to avoid an error.
1847   Use char because int might match the return type of a GCC
1848   builtin and then its argument prototype would still apply.  */
1849#ifdef __cplusplus
1850extern "C"
1851#endif
1852char $2 ();
1853/* The GNU C library defines this for functions which it implements
1854    to always fail with ENOSYS.  Some functions are actually named
1855    something starting with __ and the normal name is an alias.  */
1856#if defined __stub_$2 || defined __stub___$2
1857choke me
1858#endif
1859
1860int
1861main ()
1862{
1863return $2 ();
1864  ;
1865  return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_link "$LINENO"; then :
1869  eval "$3=yes"
1870else
1871  eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext \
1874    conftest$ac_exeext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
1881} # ac_fn_c_check_func
1882
1883# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1884# ----------------------------------------------------
1885# Tries to find if the field MEMBER exists in type AGGR, after including
1886# INCLUDES, setting cache variable VAR accordingly.
1887ac_fn_c_check_member ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1891$as_echo_n "checking for $2.$3... " >&6; }
1892if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1893  $as_echo_n "(cached) " >&6
1894else
1895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h.  */
1897$5
1898int
1899main ()
1900{
1901static $2 ac_aggr;
1902if (ac_aggr.$3)
1903return 0;
1904  ;
1905  return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909  eval "$4=yes"
1910else
1911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912/* end confdefs.h.  */
1913$5
1914int
1915main ()
1916{
1917static $2 ac_aggr;
1918if (sizeof ac_aggr.$3)
1919return 0;
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925  eval "$4=yes"
1926else
1927  eval "$4=no"
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932fi
1933eval ac_res=\$$4
1934	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937
1938} # ac_fn_c_check_member
1939cat >config.log <<_ACEOF
1940This file contains any messages produced by compilers while
1941running configure, to aid debugging if configure makes a mistake.
1942
1943It was created by $as_me, which was
1944generated by GNU Autoconf 2.65.  Invocation command line was
1945
1946  $ $0 $@
1947
1948_ACEOF
1949exec 5>>config.log
1950{
1951cat <<_ASUNAME
1952## --------- ##
1953## Platform. ##
1954## --------- ##
1955
1956hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1957uname -m = `(uname -m) 2>/dev/null || echo unknown`
1958uname -r = `(uname -r) 2>/dev/null || echo unknown`
1959uname -s = `(uname -s) 2>/dev/null || echo unknown`
1960uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961
1962/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1963/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1964
1965/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1966/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1967/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1968/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1969/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1970/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1971/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1972
1973_ASUNAME
1974
1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978  IFS=$as_save_IFS
1979  test -z "$as_dir" && as_dir=.
1980    $as_echo "PATH: $as_dir"
1981  done
1982IFS=$as_save_IFS
1983
1984} >&5
1985
1986cat >&5 <<_ACEOF
1987
1988
1989## ----------- ##
1990## Core tests. ##
1991## ----------- ##
1992
1993_ACEOF
1994
1995
1996# Keep a trace of the command line.
1997# Strip out --no-create and --no-recursion so they do not pile up.
1998# Strip out --silent because we don't want to record it for future runs.
1999# Also quote any args containing shell meta-characters.
2000# Make two passes to allow for proper duplicate-argument suppression.
2001ac_configure_args=
2002ac_configure_args0=
2003ac_configure_args1=
2004ac_must_keep_next=false
2005for ac_pass in 1 2
2006do
2007  for ac_arg
2008  do
2009    case $ac_arg in
2010    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2011    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2012    | -silent | --silent | --silen | --sile | --sil)
2013      continue ;;
2014    *\'*)
2015      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2016    esac
2017    case $ac_pass in
2018    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019    2)
2020      as_fn_append ac_configure_args1 " '$ac_arg'"
2021      if test $ac_must_keep_next = true; then
2022	ac_must_keep_next=false # Got value, back to normal.
2023      else
2024	case $ac_arg in
2025	  *=* | --config-cache | -C | -disable-* | --disable-* \
2026	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2027	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2028	  | -with-* | --with-* | -without-* | --without-* | --x)
2029	    case "$ac_configure_args0 " in
2030	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2031	    esac
2032	    ;;
2033	  -* ) ac_must_keep_next=true ;;
2034	esac
2035      fi
2036      as_fn_append ac_configure_args " '$ac_arg'"
2037      ;;
2038    esac
2039  done
2040done
2041{ ac_configure_args0=; unset ac_configure_args0;}
2042{ ac_configure_args1=; unset ac_configure_args1;}
2043
2044# When interrupted or exit'd, cleanup temporary files, and complete
2045# config.log.  We remove comments because anyway the quotes in there
2046# would cause problems or look ugly.
2047# WARNING: Use '\'' to represent an apostrophe within the trap.
2048# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2049trap 'exit_status=$?
2050  # Save into config.log some information that might help in debugging.
2051  {
2052    echo
2053
2054    cat <<\_ASBOX
2055## ---------------- ##
2056## Cache variables. ##
2057## ---------------- ##
2058_ASBOX
2059    echo
2060    # The following way of writing the cache mishandles newlines in values,
2061(
2062  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063    eval ac_val=\$$ac_var
2064    case $ac_val in #(
2065    *${as_nl}*)
2066      case $ac_var in #(
2067      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069      esac
2070      case $ac_var in #(
2071      _ | IFS | as_nl) ;; #(
2072      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073      *) { eval $ac_var=; unset $ac_var;} ;;
2074      esac ;;
2075    esac
2076  done
2077  (set) 2>&1 |
2078    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079    *${as_nl}ac_space=\ *)
2080      sed -n \
2081	"s/'\''/'\''\\\\'\'''\''/g;
2082	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083      ;; #(
2084    *)
2085      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086      ;;
2087    esac |
2088    sort
2089)
2090    echo
2091
2092    cat <<\_ASBOX
2093## ----------------- ##
2094## Output variables. ##
2095## ----------------- ##
2096_ASBOX
2097    echo
2098    for ac_var in $ac_subst_vars
2099    do
2100      eval ac_val=\$$ac_var
2101      case $ac_val in
2102      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103      esac
2104      $as_echo "$ac_var='\''$ac_val'\''"
2105    done | sort
2106    echo
2107
2108    if test -n "$ac_subst_files"; then
2109      cat <<\_ASBOX
2110## ------------------- ##
2111## File substitutions. ##
2112## ------------------- ##
2113_ASBOX
2114      echo
2115      for ac_var in $ac_subst_files
2116      do
2117	eval ac_val=\$$ac_var
2118	case $ac_val in
2119	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120	esac
2121	$as_echo "$ac_var='\''$ac_val'\''"
2122      done | sort
2123      echo
2124    fi
2125
2126    if test -s confdefs.h; then
2127      cat <<\_ASBOX
2128## ----------- ##
2129## confdefs.h. ##
2130## ----------- ##
2131_ASBOX
2132      echo
2133      cat confdefs.h
2134      echo
2135    fi
2136    test "$ac_signal" != 0 &&
2137      $as_echo "$as_me: caught signal $ac_signal"
2138    $as_echo "$as_me: exit $exit_status"
2139  } >&5
2140  rm -f core *.core core.conftest.* &&
2141    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2142    exit $exit_status
2143' 0
2144for ac_signal in 1 2 13 15; do
2145  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2146done
2147ac_signal=0
2148
2149# confdefs.h avoids OS command line length limits that DEFS can exceed.
2150rm -f -r conftest* confdefs.h
2151
2152$as_echo "/* confdefs.h */" > confdefs.h
2153
2154# Predefined preprocessor variables.
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_NAME "$PACKAGE_NAME"
2158_ACEOF
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2162_ACEOF
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_VERSION "$PACKAGE_VERSION"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_STRING "$PACKAGE_STRING"
2170_ACEOF
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2174_ACEOF
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_URL "$PACKAGE_URL"
2178_ACEOF
2179
2180
2181# Let the site file select an alternate cache file if it wants to.
2182# Prefer an explicitly selected file to automatically selected ones.
2183ac_site_file1=NONE
2184ac_site_file2=NONE
2185if test -n "$CONFIG_SITE"; then
2186  ac_site_file1=$CONFIG_SITE
2187elif test "x$prefix" != xNONE; then
2188  ac_site_file1=$prefix/share/config.site
2189  ac_site_file2=$prefix/etc/config.site
2190else
2191  ac_site_file1=$ac_default_prefix/share/config.site
2192  ac_site_file2=$ac_default_prefix/etc/config.site
2193fi
2194for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2195do
2196  test "x$ac_site_file" = xNONE && continue
2197  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2198    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2199$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2200    sed 's/^/| /' "$ac_site_file" >&5
2201    . "$ac_site_file"
2202  fi
2203done
2204
2205if test -r "$cache_file"; then
2206  # Some versions of bash will fail to source /dev/null (special files
2207  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2208  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2209    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210$as_echo "$as_me: loading cache $cache_file" >&6;}
2211    case $cache_file in
2212      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213      *)                      . "./$cache_file";;
2214    esac
2215  fi
2216else
2217  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218$as_echo "$as_me: creating cache $cache_file" >&6;}
2219  >$cache_file
2220fi
2221
2222# Check that the precious variables saved in the cache have kept the same
2223# value.
2224ac_cache_corrupted=false
2225for ac_var in $ac_precious_vars; do
2226  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227  eval ac_new_set=\$ac_env_${ac_var}_set
2228  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229  eval ac_new_val=\$ac_env_${ac_var}_value
2230  case $ac_old_set,$ac_new_set in
2231    set,)
2232      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234      ac_cache_corrupted=: ;;
2235    ,set)
2236      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238      ac_cache_corrupted=: ;;
2239    ,);;
2240    *)
2241      if test "x$ac_old_val" != "x$ac_new_val"; then
2242	# differences in whitespace do not lead to failure.
2243	ac_old_val_w=`echo x $ac_old_val`
2244	ac_new_val_w=`echo x $ac_new_val`
2245	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248	  ac_cache_corrupted=:
2249	else
2250	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252	  eval $ac_var=\$ac_old_val
2253	fi
2254	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2255$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2256	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2257$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2258      fi;;
2259  esac
2260  # Pass precious variables to config.status.
2261  if test "$ac_new_set" = set; then
2262    case $ac_new_val in
2263    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264    *) ac_arg=$ac_var=$ac_new_val ;;
2265    esac
2266    case " $ac_configure_args " in
2267      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2268      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2269    esac
2270  fi
2271done
2272if $ac_cache_corrupted; then
2273  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2277  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278fi
2279## -------------------- ##
2280## Main body of script. ##
2281## -------------------- ##
2282
2283ac_ext=c
2284ac_cpp='$CPP $CPPFLAGS'
2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290
2291ac_config_headers="$ac_config_headers autoconf.h"
2292
2293
2294# Find the krb5 library installation.
2295
2296# Check whether --with-krb5 was given.
2297if test "${with_krb5+set}" = set; then :
2298  withval=$with_krb5;
2299fi
2300
2301if test "$with_krb5" = no; then
2302    as_fn_error "This package requires krb5" "$LINENO" 5
2303elif test -z "$with_krb5" -o "$with_krb5" = yes; then
2304    krb5_config=krb5-config
2305elif test -x "$with_krb5/bin/krb5-config"; then
2306    # Assume krb5 exec prefix specified.
2307    krb5_config=$with_krb5/bin/krb5-config
2308elif test -f "$with_krb5" -a -x "$with_krb5"; then
2309    # Assume path to krb5-config specified.
2310    krb5_config=$with_krb5
2311fi
2312if test -z "$krb5_config" || test -z "`$krb5_config --prefix`"; then
2313  as_fn_error "Specify -with-krb5= krb5 exec-prefix or path to krb5-config" "$LINENO" 5
2314fi
2315KRB5_CFLAGS=`$krb5_config --cflags`
2316KRB5_BASE_LIBS=`$krb5_config --libs krb5`
2317GSS_LIBS=`$krb5_config --libs gssapi`
2318KRB5_BINDIR=`$krb5_config --exec-prefix`/bin
2319KRB5_SBINDIR=`$krb5_config --exec-prefix`/sbin
2320
2321
2322
2323
2324
2325
2326ac_aux_dir=
2327for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2328  for ac_t in install-sh install.sh shtool; do
2329    if test -f "$ac_dir/$ac_t"; then
2330      ac_aux_dir=$ac_dir
2331      ac_install_sh="$ac_aux_dir/$ac_t -c"
2332      break 2
2333    fi
2334  done
2335done
2336if test -z "$ac_aux_dir"; then
2337  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2338fi
2339
2340# These three variables are undocumented and unsupported,
2341# and are intended to be withdrawn in a future Autoconf release.
2342# They can cause serious problems if a builder's source tree is in a directory
2343# whose full name contains unusual characters.
2344ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2345ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2346ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2347
2348
2349# Make sure we can run config.sub.
2350$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2351  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2352
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2354$as_echo_n "checking build system type... " >&6; }
2355if test "${ac_cv_build+set}" = set; then :
2356  $as_echo_n "(cached) " >&6
2357else
2358  ac_build_alias=$build_alias
2359test "x$ac_build_alias" = x &&
2360  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2361test "x$ac_build_alias" = x &&
2362  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2363ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2364  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2365
2366fi
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2368$as_echo "$ac_cv_build" >&6; }
2369case $ac_cv_build in
2370*-*-*) ;;
2371*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2372esac
2373build=$ac_cv_build
2374ac_save_IFS=$IFS; IFS='-'
2375set x $ac_cv_build
2376shift
2377build_cpu=$1
2378build_vendor=$2
2379shift; shift
2380# Remember, the first character of IFS is used to create $*,
2381# except with old shells:
2382build_os=$*
2383IFS=$ac_save_IFS
2384case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2385
2386
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2388$as_echo_n "checking host system type... " >&6; }
2389if test "${ac_cv_host+set}" = set; then :
2390  $as_echo_n "(cached) " >&6
2391else
2392  if test "x$host_alias" = x; then
2393  ac_cv_host=$ac_cv_build
2394else
2395  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2396    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2397fi
2398
2399fi
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2401$as_echo "$ac_cv_host" >&6; }
2402case $ac_cv_host in
2403*-*-*) ;;
2404*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2405esac
2406host=$ac_cv_host
2407ac_save_IFS=$IFS; IFS='-'
2408set x $ac_cv_host
2409shift
2410host_cpu=$1
2411host_vendor=$2
2412shift; shift
2413# Remember, the first character of IFS is used to create $*,
2414# except with old shells:
2415host_os=$*
2416IFS=$ac_save_IFS
2417case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2418
2419
2420
2421
2422krb5_ac_cflags_set=${CFLAGS+set}
2423krb5_ac_warn_cflags_set=${WARN_CFLAGS+set}
2424
2425ac_ext=c
2426ac_cpp='$CPP $CPPFLAGS'
2427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430if test -n "$ac_tool_prefix"; then
2431  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2432set dummy ${ac_tool_prefix}gcc; ac_word=$2
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2434$as_echo_n "checking for $ac_word... " >&6; }
2435if test "${ac_cv_prog_CC+set}" = set; then :
2436  $as_echo_n "(cached) " >&6
2437else
2438  if test -n "$CC"; then
2439  ac_cv_prog_CC="$CC" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444  IFS=$as_save_IFS
2445  test -z "$as_dir" && as_dir=.
2446    for ac_exec_ext in '' $ac_executable_extensions; do
2447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450    break 2
2451  fi
2452done
2453  done
2454IFS=$as_save_IFS
2455
2456fi
2457fi
2458CC=$ac_cv_prog_CC
2459if test -n "$CC"; then
2460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2461$as_echo "$CC" >&6; }
2462else
2463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2464$as_echo "no" >&6; }
2465fi
2466
2467
2468fi
2469if test -z "$ac_cv_prog_CC"; then
2470  ac_ct_CC=$CC
2471  # Extract the first word of "gcc", so it can be a program name with args.
2472set dummy gcc; ac_word=$2
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474$as_echo_n "checking for $ac_word... " >&6; }
2475if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2476  $as_echo_n "(cached) " >&6
2477else
2478  if test -n "$ac_ct_CC"; then
2479  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484  IFS=$as_save_IFS
2485  test -z "$as_dir" && as_dir=.
2486    for ac_exec_ext in '' $ac_executable_extensions; do
2487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488    ac_cv_prog_ac_ct_CC="gcc"
2489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490    break 2
2491  fi
2492done
2493  done
2494IFS=$as_save_IFS
2495
2496fi
2497fi
2498ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499if test -n "$ac_ct_CC"; then
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2501$as_echo "$ac_ct_CC" >&6; }
2502else
2503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504$as_echo "no" >&6; }
2505fi
2506
2507  if test "x$ac_ct_CC" = x; then
2508    CC=""
2509  else
2510    case $cross_compiling:$ac_tool_warned in
2511yes:)
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2514ac_tool_warned=yes ;;
2515esac
2516    CC=$ac_ct_CC
2517  fi
2518else
2519  CC="$ac_cv_prog_CC"
2520fi
2521
2522if test -z "$CC"; then
2523          if test -n "$ac_tool_prefix"; then
2524    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2525set dummy ${ac_tool_prefix}cc; ac_word=$2
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527$as_echo_n "checking for $ac_word... " >&6; }
2528if test "${ac_cv_prog_CC+set}" = set; then :
2529  $as_echo_n "(cached) " >&6
2530else
2531  if test -n "$CC"; then
2532  ac_cv_prog_CC="$CC" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537  IFS=$as_save_IFS
2538  test -z "$as_dir" && as_dir=.
2539    for ac_exec_ext in '' $ac_executable_extensions; do
2540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541    ac_cv_prog_CC="${ac_tool_prefix}cc"
2542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543    break 2
2544  fi
2545done
2546  done
2547IFS=$as_save_IFS
2548
2549fi
2550fi
2551CC=$ac_cv_prog_CC
2552if test -n "$CC"; then
2553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2554$as_echo "$CC" >&6; }
2555else
2556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557$as_echo "no" >&6; }
2558fi
2559
2560
2561  fi
2562fi
2563if test -z "$CC"; then
2564  # Extract the first word of "cc", so it can be a program name with args.
2565set dummy cc; ac_word=$2
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567$as_echo_n "checking for $ac_word... " >&6; }
2568if test "${ac_cv_prog_CC+set}" = set; then :
2569  $as_echo_n "(cached) " >&6
2570else
2571  if test -n "$CC"; then
2572  ac_cv_prog_CC="$CC" # Let the user override the test.
2573else
2574  ac_prog_rejected=no
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578  IFS=$as_save_IFS
2579  test -z "$as_dir" && as_dir=.
2580    for ac_exec_ext in '' $ac_executable_extensions; do
2581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2583       ac_prog_rejected=yes
2584       continue
2585     fi
2586    ac_cv_prog_CC="cc"
2587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588    break 2
2589  fi
2590done
2591  done
2592IFS=$as_save_IFS
2593
2594if test $ac_prog_rejected = yes; then
2595  # We found a bogon in the path, so make sure we never use it.
2596  set dummy $ac_cv_prog_CC
2597  shift
2598  if test $# != 0; then
2599    # We chose a different compiler from the bogus one.
2600    # However, it has the same basename, so the bogon will be chosen
2601    # first if we set CC to just the basename; use the full file name.
2602    shift
2603    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2604  fi
2605fi
2606fi
2607fi
2608CC=$ac_cv_prog_CC
2609if test -n "$CC"; then
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2611$as_echo "$CC" >&6; }
2612else
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614$as_echo "no" >&6; }
2615fi
2616
2617
2618fi
2619if test -z "$CC"; then
2620  if test -n "$ac_tool_prefix"; then
2621  for ac_prog in cl.exe
2622  do
2623    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626$as_echo_n "checking for $ac_word... " >&6; }
2627if test "${ac_cv_prog_CC+set}" = set; then :
2628  $as_echo_n "(cached) " >&6
2629else
2630  if test -n "$CC"; then
2631  ac_cv_prog_CC="$CC" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638    for ac_exec_ext in '' $ac_executable_extensions; do
2639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642    break 2
2643  fi
2644done
2645  done
2646IFS=$as_save_IFS
2647
2648fi
2649fi
2650CC=$ac_cv_prog_CC
2651if test -n "$CC"; then
2652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653$as_echo "$CC" >&6; }
2654else
2655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656$as_echo "no" >&6; }
2657fi
2658
2659
2660    test -n "$CC" && break
2661  done
2662fi
2663if test -z "$CC"; then
2664  ac_ct_CC=$CC
2665  for ac_prog in cl.exe
2666do
2667  # Extract the first word of "$ac_prog", so it can be a program name with args.
2668set dummy $ac_prog; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test -n "$ac_ct_CC"; then
2675  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682    for ac_exec_ext in '' $ac_executable_extensions; do
2683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684    ac_cv_prog_ac_ct_CC="$ac_prog"
2685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689  done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694ac_ct_CC=$ac_cv_prog_ac_ct_CC
2695if test -n "$ac_ct_CC"; then
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2697$as_echo "$ac_ct_CC" >&6; }
2698else
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703
2704  test -n "$ac_ct_CC" && break
2705done
2706
2707  if test "x$ac_ct_CC" = x; then
2708    CC=""
2709  else
2710    case $cross_compiling:$ac_tool_warned in
2711yes:)
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2714ac_tool_warned=yes ;;
2715esac
2716    CC=$ac_ct_CC
2717  fi
2718fi
2719
2720fi
2721
2722
2723test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725as_fn_error "no acceptable C compiler found in \$PATH
2726See \`config.log' for more details." "$LINENO" 5; }
2727
2728# Provide some information about the compiler.
2729$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2730set X $ac_compile
2731ac_compiler=$2
2732for ac_option in --version -v -V -qversion; do
2733  { { ac_try="$ac_compiler $ac_option >&5"
2734case "(($ac_try" in
2735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736  *) ac_try_echo=$ac_try;;
2737esac
2738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739$as_echo "$ac_try_echo"; } >&5
2740  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2741  ac_status=$?
2742  if test -s conftest.err; then
2743    sed '10a\
2744... rest of stderr output deleted ...
2745         10q' conftest.err >conftest.er1
2746    cat conftest.er1 >&5
2747  fi
2748  rm -f conftest.er1 conftest.err
2749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2750  test $ac_status = 0; }
2751done
2752
2753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754/* end confdefs.h.  */
2755
2756int
2757main ()
2758{
2759
2760  ;
2761  return 0;
2762}
2763_ACEOF
2764ac_clean_files_save=$ac_clean_files
2765ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2766# Try to create an executable without -o first, disregard a.out.
2767# It will help us diagnose broken compilers, and finding out an intuition
2768# of exeext.
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2770$as_echo_n "checking whether the C compiler works... " >&6; }
2771ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2772
2773# The possible output files:
2774ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2775
2776ac_rmfiles=
2777for ac_file in $ac_files
2778do
2779  case $ac_file in
2780    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2781    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2782  esac
2783done
2784rm -f $ac_rmfiles
2785
2786if { { ac_try="$ac_link_default"
2787case "(($ac_try" in
2788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789  *) ac_try_echo=$ac_try;;
2790esac
2791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792$as_echo "$ac_try_echo"; } >&5
2793  (eval "$ac_link_default") 2>&5
2794  ac_status=$?
2795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2796  test $ac_status = 0; }; then :
2797  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2798# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2799# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2800# so that the user can short-circuit this test for compilers unknown to
2801# Autoconf.
2802for ac_file in $ac_files ''
2803do
2804  test -f "$ac_file" || continue
2805  case $ac_file in
2806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2807	;;
2808    [ab].out )
2809	# We found the default executable, but exeext='' is most
2810	# certainly right.
2811	break;;
2812    *.* )
2813	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2814	then :; else
2815	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2816	fi
2817	# We set ac_cv_exeext here because the later test for it is not
2818	# safe: cross compilers may not add the suffix if given an `-o'
2819	# argument, so we may need to know it at that point already.
2820	# Even if this section looks crufty: it has the advantage of
2821	# actually working.
2822	break;;
2823    * )
2824	break;;
2825  esac
2826done
2827test "$ac_cv_exeext" = no && ac_cv_exeext=
2828
2829else
2830  ac_file=''
2831fi
2832if test -z "$ac_file"; then :
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
2835$as_echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840{ as_fn_set_status 77
2841as_fn_error "C compiler cannot create executables
2842See \`config.log' for more details." "$LINENO" 5; }; }
2843else
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845$as_echo "yes" >&6; }
2846fi
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2848$as_echo_n "checking for C compiler default output file name... " >&6; }
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2850$as_echo "$ac_file" >&6; }
2851ac_exeext=$ac_cv_exeext
2852
2853rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2854ac_clean_files=$ac_clean_files_save
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2856$as_echo_n "checking for suffix of executables... " >&6; }
2857if { { ac_try="$ac_link"
2858case "(($ac_try" in
2859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860  *) ac_try_echo=$ac_try;;
2861esac
2862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863$as_echo "$ac_try_echo"; } >&5
2864  (eval "$ac_link") 2>&5
2865  ac_status=$?
2866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867  test $ac_status = 0; }; then :
2868  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2869# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2870# work properly (i.e., refer to `conftest.exe'), while it won't with
2871# `rm'.
2872for ac_file in conftest.exe conftest conftest.*; do
2873  test -f "$ac_file" || continue
2874  case $ac_file in
2875    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2876    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2877	  break;;
2878    * ) break;;
2879  esac
2880done
2881else
2882  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884as_fn_error "cannot compute suffix of executables: cannot compile and link
2885See \`config.log' for more details." "$LINENO" 5; }
2886fi
2887rm -f conftest conftest$ac_cv_exeext
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2889$as_echo "$ac_cv_exeext" >&6; }
2890
2891rm -f conftest.$ac_ext
2892EXEEXT=$ac_cv_exeext
2893ac_exeext=$EXEEXT
2894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h.  */
2896#include <stdio.h>
2897int
2898main ()
2899{
2900FILE *f = fopen ("conftest.out", "w");
2901 return ferror (f) || fclose (f) != 0;
2902
2903  ;
2904  return 0;
2905}
2906_ACEOF
2907ac_clean_files="$ac_clean_files conftest.out"
2908# Check that the compiler produces executables we can run.  If not, either
2909# the compiler is broken, or we cross compile.
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2911$as_echo_n "checking whether we are cross compiling... " >&6; }
2912if test "$cross_compiling" != yes; then
2913  { { ac_try="$ac_link"
2914case "(($ac_try" in
2915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916  *) ac_try_echo=$ac_try;;
2917esac
2918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919$as_echo "$ac_try_echo"; } >&5
2920  (eval "$ac_link") 2>&5
2921  ac_status=$?
2922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923  test $ac_status = 0; }
2924  if { ac_try='./conftest$ac_cv_exeext'
2925  { { case "(($ac_try" in
2926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927  *) ac_try_echo=$ac_try;;
2928esac
2929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930$as_echo "$ac_try_echo"; } >&5
2931  (eval "$ac_try") 2>&5
2932  ac_status=$?
2933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934  test $ac_status = 0; }; }; then
2935    cross_compiling=no
2936  else
2937    if test "$cross_compiling" = maybe; then
2938	cross_compiling=yes
2939    else
2940	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942as_fn_error "cannot run C compiled programs.
2943If you meant to cross compile, use \`--host'.
2944See \`config.log' for more details." "$LINENO" 5; }
2945    fi
2946  fi
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2949$as_echo "$cross_compiling" >&6; }
2950
2951rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2952ac_clean_files=$ac_clean_files_save
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2954$as_echo_n "checking for suffix of object files... " >&6; }
2955if test "${ac_cv_objext+set}" = set; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969rm -f conftest.o conftest.obj
2970if { { ac_try="$ac_compile"
2971case "(($ac_try" in
2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973  *) ac_try_echo=$ac_try;;
2974esac
2975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976$as_echo "$ac_try_echo"; } >&5
2977  (eval "$ac_compile") 2>&5
2978  ac_status=$?
2979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980  test $ac_status = 0; }; then :
2981  for ac_file in conftest.o conftest.obj conftest.*; do
2982  test -f "$ac_file" || continue;
2983  case $ac_file in
2984    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2985    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986       break;;
2987  esac
2988done
2989else
2990  $as_echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995as_fn_error "cannot compute suffix of object files: cannot compile
2996See \`config.log' for more details." "$LINENO" 5; }
2997fi
2998rm -f conftest.$ac_cv_objext conftest.$ac_ext
2999fi
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3001$as_echo "$ac_cv_objext" >&6; }
3002OBJEXT=$ac_cv_objext
3003ac_objext=$OBJEXT
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3005$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3006if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h.  */
3011
3012int
3013main ()
3014{
3015#ifndef __GNUC__
3016       choke me
3017#endif
3018
3019  ;
3020  return 0;
3021}
3022_ACEOF
3023if ac_fn_c_try_compile "$LINENO"; then :
3024  ac_compiler_gnu=yes
3025else
3026  ac_compiler_gnu=no
3027fi
3028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029ac_cv_c_compiler_gnu=$ac_compiler_gnu
3030
3031fi
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3033$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3034if test $ac_compiler_gnu = yes; then
3035  GCC=yes
3036else
3037  GCC=
3038fi
3039ac_test_CFLAGS=${CFLAGS+set}
3040ac_save_CFLAGS=$CFLAGS
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3042$as_echo_n "checking whether $CC accepts -g... " >&6; }
3043if test "${ac_cv_prog_cc_g+set}" = set; then :
3044  $as_echo_n "(cached) " >&6
3045else
3046  ac_save_c_werror_flag=$ac_c_werror_flag
3047   ac_c_werror_flag=yes
3048   ac_cv_prog_cc_g=no
3049   CFLAGS="-g"
3050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051/* end confdefs.h.  */
3052
3053int
3054main ()
3055{
3056
3057  ;
3058  return 0;
3059}
3060_ACEOF
3061if ac_fn_c_try_compile "$LINENO"; then :
3062  ac_cv_prog_cc_g=yes
3063else
3064  CFLAGS=""
3065      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076if ac_fn_c_try_compile "$LINENO"; then :
3077
3078else
3079  ac_c_werror_flag=$ac_save_c_werror_flag
3080	 CFLAGS="-g"
3081	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082/* end confdefs.h.  */
3083
3084int
3085main ()
3086{
3087
3088  ;
3089  return 0;
3090}
3091_ACEOF
3092if ac_fn_c_try_compile "$LINENO"; then :
3093  ac_cv_prog_cc_g=yes
3094fi
3095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096fi
3097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098fi
3099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100   ac_c_werror_flag=$ac_save_c_werror_flag
3101fi
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3103$as_echo "$ac_cv_prog_cc_g" >&6; }
3104if test "$ac_test_CFLAGS" = set; then
3105  CFLAGS=$ac_save_CFLAGS
3106elif test $ac_cv_prog_cc_g = yes; then
3107  if test "$GCC" = yes; then
3108    CFLAGS="-g -O2"
3109  else
3110    CFLAGS="-g"
3111  fi
3112else
3113  if test "$GCC" = yes; then
3114    CFLAGS="-O2"
3115  else
3116    CFLAGS=
3117  fi
3118fi
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3120$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3121if test "${ac_cv_prog_cc_c89+set}" = set; then :
3122  $as_echo_n "(cached) " >&6
3123else
3124  ac_cv_prog_cc_c89=no
3125ac_save_CC=$CC
3126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127/* end confdefs.h.  */
3128#include <stdarg.h>
3129#include <stdio.h>
3130#include <sys/types.h>
3131#include <sys/stat.h>
3132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3133struct buf { int x; };
3134FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135static char *e (p, i)
3136     char **p;
3137     int i;
3138{
3139  return p[i];
3140}
3141static char *f (char * (*g) (char **, int), char **p, ...)
3142{
3143  char *s;
3144  va_list v;
3145  va_start (v,p);
3146  s = g (p, va_arg (v,int));
3147  va_end (v);
3148  return s;
3149}
3150
3151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3152   function prototypes and stuff, but not '\xHH' hex character constants.
3153   These don't provoke an error unfortunately, instead are silently treated
3154   as 'x'.  The following induces an error, until -std is added to get
3155   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3156   array size at least.  It's necessary to write '\x00'==0 to get something
3157   that's true only with -std.  */
3158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3159
3160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161   inside strings and character constants.  */
3162#define FOO(x) 'x'
3163int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3164
3165int test (int i, double x);
3166struct s1 {int (*f) (int a);};
3167struct s2 {int (*f) (double a);};
3168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3169int argc;
3170char **argv;
3171int
3172main ()
3173{
3174return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3175  ;
3176  return 0;
3177}
3178_ACEOF
3179for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3181do
3182  CC="$ac_save_CC $ac_arg"
3183  if ac_fn_c_try_compile "$LINENO"; then :
3184  ac_cv_prog_cc_c89=$ac_arg
3185fi
3186rm -f core conftest.err conftest.$ac_objext
3187  test "x$ac_cv_prog_cc_c89" != "xno" && break
3188done
3189rm -f conftest.$ac_ext
3190CC=$ac_save_CC
3191
3192fi
3193# AC_CACHE_VAL
3194case "x$ac_cv_prog_cc_c89" in
3195  x)
3196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3197$as_echo "none needed" >&6; } ;;
3198  xno)
3199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3200$as_echo "unsupported" >&6; } ;;
3201  *)
3202    CC="$CC $ac_cv_prog_cc_c89"
3203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3204$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3205esac
3206if test "x$ac_cv_prog_cc_c89" != xno; then :
3207
3208fi
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216ac_ext=cpp
3217ac_cpp='$CXXCPP $CPPFLAGS'
3218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3221if test -z "$CXX"; then
3222  if test -n "$CCC"; then
3223    CXX=$CCC
3224  else
3225    if test -n "$ac_tool_prefix"; then
3226  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3227  do
3228    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if test "${ac_cv_prog_CXX+set}" = set; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$CXX"; then
3236  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CXX=$ac_cv_prog_CXX
3256if test -n "$CXX"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3258$as_echo "$CXX" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265    test -n "$CXX" && break
3266  done
3267fi
3268if test -z "$CXX"; then
3269  ac_ct_CXX=$CXX
3270  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3271do
3272  # Extract the first word of "$ac_prog", so it can be a program name with args.
3273set dummy $ac_prog; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$ac_ct_CXX"; then
3280  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289    ac_cv_prog_ac_ct_CXX="$ac_prog"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3300if test -n "$ac_ct_CXX"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3302$as_echo "$ac_ct_CXX" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309  test -n "$ac_ct_CXX" && break
3310done
3311
3312  if test "x$ac_ct_CXX" = x; then
3313    CXX="g++"
3314  else
3315    case $cross_compiling:$ac_tool_warned in
3316yes:)
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319ac_tool_warned=yes ;;
3320esac
3321    CXX=$ac_ct_CXX
3322  fi
3323fi
3324
3325  fi
3326fi
3327# Provide some information about the compiler.
3328$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3329set X $ac_compile
3330ac_compiler=$2
3331for ac_option in --version -v -V -qversion; do
3332  { { ac_try="$ac_compiler $ac_option >&5"
3333case "(($ac_try" in
3334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335  *) ac_try_echo=$ac_try;;
3336esac
3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338$as_echo "$ac_try_echo"; } >&5
3339  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3340  ac_status=$?
3341  if test -s conftest.err; then
3342    sed '10a\
3343... rest of stderr output deleted ...
3344         10q' conftest.err >conftest.er1
3345    cat conftest.er1 >&5
3346  fi
3347  rm -f conftest.er1 conftest.err
3348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349  test $ac_status = 0; }
3350done
3351
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3353$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3354if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3355  $as_echo_n "(cached) " >&6
3356else
3357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h.  */
3359
3360int
3361main ()
3362{
3363#ifndef __GNUC__
3364       choke me
3365#endif
3366
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371if ac_fn_cxx_try_compile "$LINENO"; then :
3372  ac_compiler_gnu=yes
3373else
3374  ac_compiler_gnu=no
3375fi
3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3378
3379fi
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3381$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3382if test $ac_compiler_gnu = yes; then
3383  GXX=yes
3384else
3385  GXX=
3386fi
3387ac_test_CXXFLAGS=${CXXFLAGS+set}
3388ac_save_CXXFLAGS=$CXXFLAGS
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3390$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3391if test "${ac_cv_prog_cxx_g+set}" = set; then :
3392  $as_echo_n "(cached) " >&6
3393else
3394  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3395   ac_cxx_werror_flag=yes
3396   ac_cv_prog_cxx_g=no
3397   CXXFLAGS="-g"
3398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399/* end confdefs.h.  */
3400
3401int
3402main ()
3403{
3404
3405  ;
3406  return 0;
3407}
3408_ACEOF
3409if ac_fn_cxx_try_compile "$LINENO"; then :
3410  ac_cv_prog_cxx_g=yes
3411else
3412  CXXFLAGS=""
3413      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h.  */
3415
3416int
3417main ()
3418{
3419
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424if ac_fn_cxx_try_compile "$LINENO"; then :
3425
3426else
3427  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3428	 CXXFLAGS="-g"
3429	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430/* end confdefs.h.  */
3431
3432int
3433main ()
3434{
3435
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440if ac_fn_cxx_try_compile "$LINENO"; then :
3441  ac_cv_prog_cxx_g=yes
3442fi
3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446fi
3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3449fi
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3451$as_echo "$ac_cv_prog_cxx_g" >&6; }
3452if test "$ac_test_CXXFLAGS" = set; then
3453  CXXFLAGS=$ac_save_CXXFLAGS
3454elif test $ac_cv_prog_cxx_g = yes; then
3455  if test "$GXX" = yes; then
3456    CXXFLAGS="-g -O2"
3457  else
3458    CXXFLAGS="-g"
3459  fi
3460else
3461  if test "$GXX" = yes; then
3462    CXXFLAGS="-O2"
3463  else
3464    CXXFLAGS=
3465  fi
3466fi
3467ac_ext=c
3468ac_cpp='$CPP $CPPFLAGS'
3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472
3473
3474if test $ac_cv_c_compiler_gnu = yes ; then
3475     HAVE_GCC=yes
3476     else HAVE_GCC=
3477fi
3478
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU linker" >&5
3480$as_echo_n "checking for GNU linker... " >&6; }
3481if test "${krb5_cv_prog_gnu_ld+set}" = set; then :
3482  $as_echo_n "(cached) " >&6
3483else
3484  krb5_cv_prog_gnu_ld=no
3485if test "$GCC" = yes; then
3486  if { ac_try='$CC -Wl,-v 2>&1 			| grep "GNU ld" > /dev/null'
3487  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491  test $ac_status = 0; }; }; then
3492    krb5_cv_prog_gnu_ld=yes
3493  fi
3494fi
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_prog_gnu_ld" >&5
3497$as_echo "$krb5_cv_prog_gnu_ld" >&6; }
3498# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
3499extra_gcc_warn_opts="-Wall -Wcast-qual -Wcast-align -Wshadow"
3500# -Wmissing-prototypes
3501if test "$GCC" = yes ; then
3502  if test "x$krb5_ac_warn_cflags_set" = xset ; then
3503    { $as_echo "$as_me:${as_lineno-$LINENO}: not adding extra gcc warning flags because WARN_CFLAGS was set" >&5
3504$as_echo "$as_me: not adding extra gcc warning flags because WARN_CFLAGS was set" >&6;}
3505  else
3506    { $as_echo "$as_me:${as_lineno-$LINENO}: adding extra warning flags for gcc" >&5
3507$as_echo "$as_me: adding extra warning flags for gcc" >&6;}
3508    WARN_CFLAGS="$WARN_CFLAGS $extra_gcc_warn_opts -Wmissing-prototypes"
3509    if test "`uname -s`" = Darwin ; then
3510      { $as_echo "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Darwin" >&5
3511$as_echo "$as_me: skipping pedantic warnings on Darwin" >&6;}
3512    elif test "`uname -s`" = Linux ; then
3513      { $as_echo "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Linux" >&5
3514$as_echo "$as_me: skipping pedantic warnings on Linux" >&6;}
3515    else
3516      WARN_CFLAGS="$WARN_CFLAGS -pedantic"
3517    fi
3518    # Currently, G++ does not support -Wno-format-zero-length.
3519      cachevar=`echo "krb5_cv_cc_flag_-Wno-format-zero-length" | sed s/[^a-zA-Z0-9_]/_/g`
3520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Wno-format-zero-length" >&5
3521$as_echo_n "checking if C compiler supports -Wno-format-zero-length... " >&6; }
3522if { as_var=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
3523  $as_echo_n "(cached) " >&6
3524else
3525  # first try without, then with
3526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528
3529int
3530main ()
3531{
35321;
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537if ac_fn_c_try_compile "$LINENO"; then :
3538  old_cflags="$CFLAGS"
3539     CFLAGS="$CFLAGS -Wno-format-zero-length"
3540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
35461;
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551if ac_fn_c_try_compile "$LINENO"; then :
3552  eval $cachevar=yes
3553else
3554  eval $cachevar=no
3555fi
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557     CFLAGS="$old_cflags"
3558else
3559  as_fn_error "compiling simple test program with $CFLAGS failed" "$LINENO" 5
3560fi
3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562fi
3563eval ac_res=\$$cachevar
3564	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3565$as_echo "$ac_res" >&6; }
3566  if eval test '"${'$cachevar'}"' = yes; then
3567    WARN_CFLAGS="$WARN_CFLAGS -Wno-format-zero-length"
3568  fi
3569  eval flag_supported='${'$cachevar'}'
3570
3571    # Other flags here may not be supported on some versions of
3572    # gcc that people want to use.
3573    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 ; do
3574        cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed s/[^a-zA-Z0-9_]/_/g`
3575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5
3576$as_echo_n "checking if C compiler supports -W$flag... " >&6; }
3577if { as_var=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
3578  $as_echo_n "(cached) " >&6
3579else
3580  # first try without, then with
3581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h.  */
3583
3584int
3585main ()
3586{
35871;
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592if ac_fn_c_try_compile "$LINENO"; then :
3593  old_cflags="$CFLAGS"
3594     CFLAGS="$CFLAGS -W$flag"
3595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h.  */
3597
3598int
3599main ()
3600{
36011;
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606if ac_fn_c_try_compile "$LINENO"; then :
3607  eval $cachevar=yes
3608else
3609  eval $cachevar=no
3610fi
3611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612     CFLAGS="$old_cflags"
3613else
3614  as_fn_error "compiling simple test program with $CFLAGS failed" "$LINENO" 5
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
3618eval ac_res=\$$cachevar
3619	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3620$as_echo "$ac_res" >&6; }
3621  if eval test '"${'$cachevar'}"' = yes; then
3622    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
3623  fi
3624  eval flag_supported='${'$cachevar'}'
3625
3626    done
3627    #  old-style-definition? generates many, many warnings
3628    #
3629    # Warnings that we'd like to turn into errors on versions of gcc
3630    # that support promoting only specific warnings to errors, but
3631    # we'll take as warnings on older compilers.  (If such a warning
3632    # is added after the -Werror=foo feature, you can just put
3633    # error=foo in the above list, and skip the test for the
3634    # warning-only form.)  At least in some versions, -Werror= doesn't
3635    # seem to make the conditions actual errors, but still issues
3636    # warnings; I guess we'll take what we can get.
3637    #
3638    # We're currently targeting C89+, not C99, so disallow some
3639    # constructs.
3640    for flag in declaration-after-statement variadic-macros ; do
3641        cachevar=`echo "krb5_cv_cc_flag_-Werror=$flag" | sed s/[^a-zA-Z0-9_]/_/g`
3642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=$flag" >&5
3643$as_echo_n "checking if C compiler supports -Werror=$flag... " >&6; }
3644if { as_var=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
3645  $as_echo_n "(cached) " >&6
3646else
3647  # first try without, then with
3648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
36541;
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659if ac_fn_c_try_compile "$LINENO"; then :
3660  old_cflags="$CFLAGS"
3661     CFLAGS="$CFLAGS -Werror=$flag"
3662     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664
3665int
3666main ()
3667{
36681;
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673if ac_fn_c_try_compile "$LINENO"; then :
3674  eval $cachevar=yes
3675else
3676  eval $cachevar=no
3677fi
3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679     CFLAGS="$old_cflags"
3680else
3681  as_fn_error "compiling simple test program with $CFLAGS failed" "$LINENO" 5
3682fi
3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684fi
3685eval ac_res=\$$cachevar
3686	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3687$as_echo "$ac_res" >&6; }
3688  if eval test '"${'$cachevar'}"' = yes; then
3689    WARN_CFLAGS="$WARN_CFLAGS -Werror=$flag"
3690  fi
3691  eval flag_supported='${'$cachevar'}'
3692
3693      if test "$flag_supported" = no; then
3694          cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed s/[^a-zA-Z0-9_]/_/g`
3695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5
3696$as_echo_n "checking if C compiler supports -W$flag... " >&6; }
3697if { as_var=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
3698  $as_echo_n "(cached) " >&6
3699else
3700  # first try without, then with
3701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703
3704int
3705main ()
3706{
37071;
3708  ;
3709  return 0;
3710}
3711_ACEOF
3712if ac_fn_c_try_compile "$LINENO"; then :
3713  old_cflags="$CFLAGS"
3714     CFLAGS="$CFLAGS -W$flag"
3715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716/* end confdefs.h.  */
3717
3718int
3719main ()
3720{
37211;
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726if ac_fn_c_try_compile "$LINENO"; then :
3727  eval $cachevar=yes
3728else
3729  eval $cachevar=no
3730fi
3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732     CFLAGS="$old_cflags"
3733else
3734  as_fn_error "compiling simple test program with $CFLAGS failed" "$LINENO" 5
3735fi
3736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737fi
3738eval ac_res=\$$cachevar
3739	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3740$as_echo "$ac_res" >&6; }
3741  if eval test '"${'$cachevar'}"' = yes; then
3742    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
3743  fi
3744  eval flag_supported='${'$cachevar'}'
3745
3746      fi
3747    done
3748    #  missing-prototypes? maybe someday
3749    #
3750  fi
3751  if test "`uname -s`" = Darwin ; then
3752    # Someday this should be a feature test.
3753    # One current (Jaguar = OS 10.2) problem:
3754    # Archive library with foo.o undef sym X and bar.o common sym X,
3755    # if foo.o is pulled in at link time, bar.o may not be, causing
3756    # the linker to complain.
3757    # Dynamic library problems too?
3758    case "$CC $CFLAGS" in
3759    *-fcommon*) ;; # why someone would do this, I don't know
3760    *-fno-common*) ;; # okay, they're already doing the right thing
3761    *)
3762      { $as_echo "$as_me:${as_lineno-$LINENO}: disabling the use of common storage on Darwin" >&5
3763$as_echo "$as_me: disabling the use of common storage on Darwin" >&6;}
3764      CFLAGS="$CFLAGS -fno-common"
3765      ;;
3766    esac
3767    case "$LD $LDFLAGS" in
3768    *-Wl,-search_paths_first*) ;;
3769    *) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
3770    esac
3771  fi
3772else
3773  if test "`uname -s`" = AIX ; then
3774    # Using AIX but not GCC, assume native compiler.
3775    # The native compiler appears not to give a nonzero exit
3776    # status for certain classes of errors, like missing arguments
3777    # in function calls.  Let's try to fix that with -qhalt=e.
3778    case "$CC $CFLAGS" in
3779      *-qhalt=*) ;;
3780      *)
3781	CFLAGS="$CFLAGS -qhalt=e"
3782	{ $as_echo "$as_me:${as_lineno-$LINENO}: adding -qhalt=e for better error reporting" >&5
3783$as_echo "$as_me: adding -qhalt=e for better error reporting" >&6;}
3784	;;
3785    esac
3786    # Also, the optimizer isn't turned on by default, which means
3787    # the static inline functions get left in random object files,
3788    # leading to references to pthread_mutex_lock from anything that
3789    # includes k5-int.h whether it uses threads or not.
3790    case "$CC $CFLAGS" in
3791      *-O*) ;;
3792      *)
3793	CFLAGS="$CFLAGS -O"
3794	{ $as_echo "$as_me:${as_lineno-$LINENO}: adding -O for inline thread-support function elimination" >&5
3795$as_echo "$as_me: adding -O for inline thread-support function elimination" >&6;}
3796	;;
3797    esac
3798  fi
3799  if test "`uname -s`" = SunOS ; then
3800    # Using Solaris but not GCC, assume Sunsoft compiler.
3801    # We have some error-out-on-warning options available.
3802    # Sunsoft 12 compiler defaults to -xc99=all, it appears, so "inline"
3803    # works, but it also means that declaration-in-code warnings won't
3804    # be issued.
3805    # -v -fd -errwarn=E_DECLARATION_IN_CODE ...
3806    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"
3807  fi
3808fi
3809
3810
3811if test -z "$LD" ; then LD=$CC; fi
3812
3813
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3815$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3816if test "${ac_cv_c_const+set}" = set; then :
3817  $as_echo_n "(cached) " >&6
3818else
3819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h.  */
3821
3822int
3823main ()
3824{
3825/* FIXME: Include the comments suggested by Paul. */
3826#ifndef __cplusplus
3827  /* Ultrix mips cc rejects this.  */
3828  typedef int charset[2];
3829  const charset cs;
3830  /* SunOS 4.1.1 cc rejects this.  */
3831  char const *const *pcpcc;
3832  char **ppc;
3833  /* NEC SVR4.0.2 mips cc rejects this.  */
3834  struct point {int x, y;};
3835  static struct point const zero = {0,0};
3836  /* AIX XL C 1.02.0.0 rejects this.
3837     It does not let you subtract one const X* pointer from another in
3838     an arm of an if-expression whose if-part is not a constant
3839     expression */
3840  const char *g = "string";
3841  pcpcc = &g + (g ? g-g : 0);
3842  /* HPUX 7.0 cc rejects these. */
3843  ++pcpcc;
3844  ppc = (char**) pcpcc;
3845  pcpcc = (char const *const *) ppc;
3846  { /* SCO 3.2v4 cc rejects this.  */
3847    char *t;
3848    char const *s = 0 ? (char *) 0 : (char const *) 0;
3849
3850    *t++ = 0;
3851    if (s) return 0;
3852  }
3853  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3854    int x[] = {25, 17};
3855    const int *foo = &x[0];
3856    ++foo;
3857  }
3858  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3859    typedef const int *iptr;
3860    iptr p = 0;
3861    ++p;
3862  }
3863  { /* AIX XL C 1.02.0.0 rejects this saying
3864       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3865    struct s { int j; const int *ap[3]; };
3866    struct s *b; b->j = 5;
3867  }
3868  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3869    const int foo = 10;
3870    if (!foo) return 0;
3871  }
3872  return !cs[0] && !zero.x;
3873#endif
3874
3875  ;
3876  return 0;
3877}
3878_ACEOF
3879if ac_fn_c_try_compile "$LINENO"; then :
3880  ac_cv_c_const=yes
3881else
3882  ac_cv_c_const=no
3883fi
3884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3887$as_echo "$ac_cv_c_const" >&6; }
3888if test $ac_cv_c_const = no; then
3889
3890$as_echo "#define const /**/" >>confdefs.h
3891
3892fi
3893
3894test "$program_prefix" != NONE &&
3895  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3896# Use a double $ so make ignores it.
3897test "$program_suffix" != NONE &&
3898  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3899# Double any \ or $.
3900# By default was `s,x,x', remove it if useless.
3901ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3902program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3903
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3905$as_echo_n "checking whether ln -s works... " >&6; }
3906LN_S=$as_ln_s
3907if test "$LN_S" = "ln -s"; then
3908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909$as_echo "yes" >&6; }
3910else
3911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3912$as_echo "no, using $LN_S" >&6; }
3913fi
3914
3915if test -n "$ac_tool_prefix"; then
3916  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3917set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919$as_echo_n "checking for $ac_word... " >&6; }
3920if test "${ac_cv_prog_RANLIB+set}" = set; then :
3921  $as_echo_n "(cached) " >&6
3922else
3923  if test -n "$RANLIB"; then
3924  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3925else
3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929  IFS=$as_save_IFS
3930  test -z "$as_dir" && as_dir=.
3931    for ac_exec_ext in '' $ac_executable_extensions; do
3932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935    break 2
3936  fi
3937done
3938  done
3939IFS=$as_save_IFS
3940
3941fi
3942fi
3943RANLIB=$ac_cv_prog_RANLIB
3944if test -n "$RANLIB"; then
3945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3946$as_echo "$RANLIB" >&6; }
3947else
3948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949$as_echo "no" >&6; }
3950fi
3951
3952
3953fi
3954if test -z "$ac_cv_prog_RANLIB"; then
3955  ac_ct_RANLIB=$RANLIB
3956  # Extract the first word of "ranlib", so it can be a program name with args.
3957set dummy ranlib; ac_word=$2
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959$as_echo_n "checking for $ac_word... " >&6; }
3960if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3961  $as_echo_n "(cached) " >&6
3962else
3963  if test -n "$ac_ct_RANLIB"; then
3964  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969  IFS=$as_save_IFS
3970  test -z "$as_dir" && as_dir=.
3971    for ac_exec_ext in '' $ac_executable_extensions; do
3972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973    ac_cv_prog_ac_ct_RANLIB="ranlib"
3974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975    break 2
3976  fi
3977done
3978  done
3979IFS=$as_save_IFS
3980
3981fi
3982fi
3983ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3984if test -n "$ac_ct_RANLIB"; then
3985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3986$as_echo "$ac_ct_RANLIB" >&6; }
3987else
3988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989$as_echo "no" >&6; }
3990fi
3991
3992  if test "x$ac_ct_RANLIB" = x; then
3993    RANLIB=":"
3994  else
3995    case $cross_compiling:$ac_tool_warned in
3996yes:)
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3999ac_tool_warned=yes ;;
4000esac
4001    RANLIB=$ac_ct_RANLIB
4002  fi
4003else
4004  RANLIB="$ac_cv_prog_RANLIB"
4005fi
4006
4007# Extract the first word of "ar", so it can be a program name with args.
4008set dummy ar; ac_word=$2
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010$as_echo_n "checking for $ac_word... " >&6; }
4011if test "${ac_cv_prog_ARCHIVE+set}" = set; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  if test -n "$ARCHIVE"; then
4015  ac_cv_prog_ARCHIVE="$ARCHIVE" # Let the user override the test.
4016else
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018for as_dir in $PATH
4019do
4020  IFS=$as_save_IFS
4021  test -z "$as_dir" && as_dir=.
4022    for ac_exec_ext in '' $ac_executable_extensions; do
4023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024    ac_cv_prog_ARCHIVE="ar cqv"
4025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026    break 2
4027  fi
4028done
4029  done
4030IFS=$as_save_IFS
4031
4032  test -z "$ac_cv_prog_ARCHIVE" && ac_cv_prog_ARCHIVE="false"
4033fi
4034fi
4035ARCHIVE=$ac_cv_prog_ARCHIVE
4036if test -n "$ARCHIVE"; then
4037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHIVE" >&5
4038$as_echo "$ARCHIVE" >&6; }
4039else
4040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041$as_echo "no" >&6; }
4042fi
4043
4044
4045# Extract the first word of "ar", so it can be a program name with args.
4046set dummy ar; ac_word=$2
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048$as_echo_n "checking for $ac_word... " >&6; }
4049if test "${ac_cv_prog_ARADD+set}" = set; then :
4050  $as_echo_n "(cached) " >&6
4051else
4052  if test -n "$ARADD"; then
4053  ac_cv_prog_ARADD="$ARADD" # Let the user override the test.
4054else
4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056for as_dir in $PATH
4057do
4058  IFS=$as_save_IFS
4059  test -z "$as_dir" && as_dir=.
4060    for ac_exec_ext in '' $ac_executable_extensions; do
4061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062    ac_cv_prog_ARADD="ar cruv"
4063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064    break 2
4065  fi
4066done
4067  done
4068IFS=$as_save_IFS
4069
4070  test -z "$ac_cv_prog_ARADD" && ac_cv_prog_ARADD="false"
4071fi
4072fi
4073ARADD=$ac_cv_prog_ARADD
4074if test -n "$ARADD"; then
4075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARADD" >&5
4076$as_echo "$ARADD" >&6; }
4077else
4078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079$as_echo "no" >&6; }
4080fi
4081
4082
4083# Find a good install program.  We prefer a C program (faster),
4084# so one script is as good as another.  But avoid the broken or
4085# incompatible versions:
4086# SysV /etc/install, /usr/sbin/install
4087# SunOS /usr/etc/install
4088# IRIX /sbin/install
4089# AIX /bin/install
4090# AmigaOS /C/install, which installs bootblocks on floppy discs
4091# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4092# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4093# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4094# OS/2's system install, which has a completely different semantic
4095# ./install, which can be erroneously created by make from ./install.sh.
4096# Reject install programs that cannot install multiple files.
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4098$as_echo_n "checking for a BSD-compatible install... " >&6; }
4099if test -z "$INSTALL"; then
4100if test "${ac_cv_path_install+set}" = set; then :
4101  $as_echo_n "(cached) " >&6
4102else
4103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106  IFS=$as_save_IFS
4107  test -z "$as_dir" && as_dir=.
4108    # Account for people who put trailing slashes in PATH elements.
4109case $as_dir/ in #((
4110  ./ | .// | /[cC]/* | \
4111  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4112  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4113  /usr/ucb/* ) ;;
4114  *)
4115    # OSF1 and SCO ODT 3.0 have their own names for install.
4116    # Don't use installbsd from OSF since it installs stuff as root
4117    # by default.
4118    for ac_prog in ginstall scoinst install; do
4119      for ac_exec_ext in '' $ac_executable_extensions; do
4120	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4121	  if test $ac_prog = install &&
4122	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4123	    # AIX install.  It has an incompatible calling convention.
4124	    :
4125	  elif test $ac_prog = install &&
4126	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4127	    # program-specific install script used by HP pwplus--don't use.
4128	    :
4129	  else
4130	    rm -rf conftest.one conftest.two conftest.dir
4131	    echo one > conftest.one
4132	    echo two > conftest.two
4133	    mkdir conftest.dir
4134	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4135	      test -s conftest.one && test -s conftest.two &&
4136	      test -s conftest.dir/conftest.one &&
4137	      test -s conftest.dir/conftest.two
4138	    then
4139	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4140	      break 3
4141	    fi
4142	  fi
4143	fi
4144      done
4145    done
4146    ;;
4147esac
4148
4149  done
4150IFS=$as_save_IFS
4151
4152rm -rf conftest.one conftest.two conftest.dir
4153
4154fi
4155  if test "${ac_cv_path_install+set}" = set; then
4156    INSTALL=$ac_cv_path_install
4157  else
4158    # As a last resort, use the slow shell script.  Don't cache a
4159    # value for INSTALL within a source directory, because that will
4160    # break other packages using the cache if that directory is
4161    # removed, or if the value is a relative name.
4162    INSTALL=$ac_install_sh
4163  fi
4164fi
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4166$as_echo "$INSTALL" >&6; }
4167
4168# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4169# It thinks the first close brace ends the variable substitution.
4170test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4171
4172test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4173
4174test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4175
4176for ac_prog in 'bison -y' byacc
4177do
4178  # Extract the first word of "$ac_prog", so it can be a program name with args.
4179set dummy $ac_prog; ac_word=$2
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181$as_echo_n "checking for $ac_word... " >&6; }
4182if test "${ac_cv_prog_YACC+set}" = set; then :
4183  $as_echo_n "(cached) " >&6
4184else
4185  if test -n "$YACC"; then
4186  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193    for ac_exec_ext in '' $ac_executable_extensions; do
4194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195    ac_cv_prog_YACC="$ac_prog"
4196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197    break 2
4198  fi
4199done
4200  done
4201IFS=$as_save_IFS
4202
4203fi
4204fi
4205YACC=$ac_cv_prog_YACC
4206if test -n "$YACC"; then
4207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4208$as_echo "$YACC" >&6; }
4209else
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
4212fi
4213
4214
4215  test -n "$YACC" && break
4216done
4217test -n "$YACC" || YACC="yacc"
4218
4219# Extract the first word of "ar", so it can be a program name with args.
4220set dummy ar; ac_word=$2
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222$as_echo_n "checking for $ac_word... " >&6; }
4223if test "${ac_cv_prog_AR+set}" = set; then :
4224  $as_echo_n "(cached) " >&6
4225else
4226  if test -n "$AR"; then
4227  ac_cv_prog_AR="$AR" # Let the user override the test.
4228else
4229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230for as_dir in $PATH
4231do
4232  IFS=$as_save_IFS
4233  test -z "$as_dir" && as_dir=.
4234    for ac_exec_ext in '' $ac_executable_extensions; do
4235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236    ac_cv_prog_AR="ar"
4237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238    break 2
4239  fi
4240done
4241  done
4242IFS=$as_save_IFS
4243
4244  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
4245fi
4246fi
4247AR=$ac_cv_prog_AR
4248if test -n "$AR"; then
4249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4250$as_echo "$AR" >&6; }
4251else
4252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
4254fi
4255
4256
4257ac_ext=c
4258ac_cpp='$CPP $CPPFLAGS'
4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4263$as_echo_n "checking how to run the C preprocessor... " >&6; }
4264# On Suns, sometimes $CPP names a directory.
4265if test -n "$CPP" && test -d "$CPP"; then
4266  CPP=
4267fi
4268if test -z "$CPP"; then
4269  if test "${ac_cv_prog_CPP+set}" = set; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272      # Double quotes because CPP needs to be expanded
4273    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4274    do
4275      ac_preproc_ok=false
4276for ac_c_preproc_warn_flag in '' yes
4277do
4278  # Use a header file that comes with gcc, so configuring glibc
4279  # with a fresh cross-compiler works.
4280  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4281  # <limits.h> exists even on freestanding compilers.
4282  # On the NeXT, cc -E runs the code through the compiler's parser,
4283  # not just through cpp. "Syntax error" is here to catch this case.
4284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286#ifdef __STDC__
4287# include <limits.h>
4288#else
4289# include <assert.h>
4290#endif
4291		     Syntax error
4292_ACEOF
4293if ac_fn_c_try_cpp "$LINENO"; then :
4294
4295else
4296  # Broken: fails on valid input.
4297continue
4298fi
4299rm -f conftest.err conftest.$ac_ext
4300
4301  # OK, works on sane cases.  Now check whether nonexistent headers
4302  # can be detected and how.
4303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h.  */
4305#include <ac_nonexistent.h>
4306_ACEOF
4307if ac_fn_c_try_cpp "$LINENO"; then :
4308  # Broken: success on invalid input.
4309continue
4310else
4311  # Passes both tests.
4312ac_preproc_ok=:
4313break
4314fi
4315rm -f conftest.err conftest.$ac_ext
4316
4317done
4318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4319rm -f conftest.err conftest.$ac_ext
4320if $ac_preproc_ok; then :
4321  break
4322fi
4323
4324    done
4325    ac_cv_prog_CPP=$CPP
4326
4327fi
4328  CPP=$ac_cv_prog_CPP
4329else
4330  ac_cv_prog_CPP=$CPP
4331fi
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4333$as_echo "$CPP" >&6; }
4334ac_preproc_ok=false
4335for ac_c_preproc_warn_flag in '' yes
4336do
4337  # Use a header file that comes with gcc, so configuring glibc
4338  # with a fresh cross-compiler works.
4339  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340  # <limits.h> exists even on freestanding compilers.
4341  # On the NeXT, cc -E runs the code through the compiler's parser,
4342  # not just through cpp. "Syntax error" is here to catch this case.
4343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h.  */
4345#ifdef __STDC__
4346# include <limits.h>
4347#else
4348# include <assert.h>
4349#endif
4350		     Syntax error
4351_ACEOF
4352if ac_fn_c_try_cpp "$LINENO"; then :
4353
4354else
4355  # Broken: fails on valid input.
4356continue
4357fi
4358rm -f conftest.err conftest.$ac_ext
4359
4360  # OK, works on sane cases.  Now check whether nonexistent headers
4361  # can be detected and how.
4362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h.  */
4364#include <ac_nonexistent.h>
4365_ACEOF
4366if ac_fn_c_try_cpp "$LINENO"; then :
4367  # Broken: success on invalid input.
4368continue
4369else
4370  # Passes both tests.
4371ac_preproc_ok=:
4372break
4373fi
4374rm -f conftest.err conftest.$ac_ext
4375
4376done
4377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4378rm -f conftest.err conftest.$ac_ext
4379if $ac_preproc_ok; then :
4380
4381else
4382  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4384as_fn_error "C preprocessor \"$CPP\" fails sanity check
4385See \`config.log' for more details." "$LINENO" 5; }
4386fi
4387
4388ac_ext=c
4389ac_cpp='$CPP $CPPFLAGS'
4390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4396$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4397if test "${ac_cv_path_GREP+set}" = set; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  if test -z "$GREP"; then
4401  ac_path_GREP_found=false
4402  # Loop through the user's path and test for each of PROGNAME-LIST
4403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405do
4406  IFS=$as_save_IFS
4407  test -z "$as_dir" && as_dir=.
4408    for ac_prog in grep ggrep; do
4409    for ac_exec_ext in '' $ac_executable_extensions; do
4410      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4411      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4412# Check for GNU ac_path_GREP and select it if it is found.
4413  # Check for GNU $ac_path_GREP
4414case `"$ac_path_GREP" --version 2>&1` in
4415*GNU*)
4416  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4417*)
4418  ac_count=0
4419  $as_echo_n 0123456789 >"conftest.in"
4420  while :
4421  do
4422    cat "conftest.in" "conftest.in" >"conftest.tmp"
4423    mv "conftest.tmp" "conftest.in"
4424    cp "conftest.in" "conftest.nl"
4425    $as_echo 'GREP' >> "conftest.nl"
4426    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4428    as_fn_arith $ac_count + 1 && ac_count=$as_val
4429    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4430      # Best one so far, save it but keep looking for a better one
4431      ac_cv_path_GREP="$ac_path_GREP"
4432      ac_path_GREP_max=$ac_count
4433    fi
4434    # 10*(2^10) chars as input seems more than enough
4435    test $ac_count -gt 10 && break
4436  done
4437  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438esac
4439
4440      $ac_path_GREP_found && break 3
4441    done
4442  done
4443  done
4444IFS=$as_save_IFS
4445  if test -z "$ac_cv_path_GREP"; then
4446    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4447  fi
4448else
4449  ac_cv_path_GREP=$GREP
4450fi
4451
4452fi
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4454$as_echo "$ac_cv_path_GREP" >&6; }
4455 GREP="$ac_cv_path_GREP"
4456
4457
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4459$as_echo_n "checking for egrep... " >&6; }
4460if test "${ac_cv_path_EGREP+set}" = set; then :
4461  $as_echo_n "(cached) " >&6
4462else
4463  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4464   then ac_cv_path_EGREP="$GREP -E"
4465   else
4466     if test -z "$EGREP"; then
4467  ac_path_EGREP_found=false
4468  # Loop through the user's path and test for each of PROGNAME-LIST
4469  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4471do
4472  IFS=$as_save_IFS
4473  test -z "$as_dir" && as_dir=.
4474    for ac_prog in egrep; do
4475    for ac_exec_ext in '' $ac_executable_extensions; do
4476      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4477      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4478# Check for GNU ac_path_EGREP and select it if it is found.
4479  # Check for GNU $ac_path_EGREP
4480case `"$ac_path_EGREP" --version 2>&1` in
4481*GNU*)
4482  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4483*)
4484  ac_count=0
4485  $as_echo_n 0123456789 >"conftest.in"
4486  while :
4487  do
4488    cat "conftest.in" "conftest.in" >"conftest.tmp"
4489    mv "conftest.tmp" "conftest.in"
4490    cp "conftest.in" "conftest.nl"
4491    $as_echo 'EGREP' >> "conftest.nl"
4492    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4493    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4494    as_fn_arith $ac_count + 1 && ac_count=$as_val
4495    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4496      # Best one so far, save it but keep looking for a better one
4497      ac_cv_path_EGREP="$ac_path_EGREP"
4498      ac_path_EGREP_max=$ac_count
4499    fi
4500    # 10*(2^10) chars as input seems more than enough
4501    test $ac_count -gt 10 && break
4502  done
4503  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4504esac
4505
4506      $ac_path_EGREP_found && break 3
4507    done
4508  done
4509  done
4510IFS=$as_save_IFS
4511  if test -z "$ac_cv_path_EGREP"; then
4512    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4513  fi
4514else
4515  ac_cv_path_EGREP=$EGREP
4516fi
4517
4518   fi
4519fi
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4521$as_echo "$ac_cv_path_EGREP" >&6; }
4522 EGREP="$ac_cv_path_EGREP"
4523
4524
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4526$as_echo_n "checking for ANSI C header files... " >&6; }
4527if test "${ac_cv_header_stdc+set}" = set; then :
4528  $as_echo_n "(cached) " >&6
4529else
4530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h.  */
4532#include <stdlib.h>
4533#include <stdarg.h>
4534#include <string.h>
4535#include <float.h>
4536
4537int
4538main ()
4539{
4540
4541  ;
4542  return 0;
4543}
4544_ACEOF
4545if ac_fn_c_try_compile "$LINENO"; then :
4546  ac_cv_header_stdc=yes
4547else
4548  ac_cv_header_stdc=no
4549fi
4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551
4552if test $ac_cv_header_stdc = yes; then
4553  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555/* end confdefs.h.  */
4556#include <string.h>
4557
4558_ACEOF
4559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4560  $EGREP "memchr" >/dev/null 2>&1; then :
4561
4562else
4563  ac_cv_header_stdc=no
4564fi
4565rm -f conftest*
4566
4567fi
4568
4569if test $ac_cv_header_stdc = yes; then
4570  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h.  */
4573#include <stdlib.h>
4574
4575_ACEOF
4576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577  $EGREP "free" >/dev/null 2>&1; then :
4578
4579else
4580  ac_cv_header_stdc=no
4581fi
4582rm -f conftest*
4583
4584fi
4585
4586if test $ac_cv_header_stdc = yes; then
4587  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4588  if test "$cross_compiling" = yes; then :
4589  :
4590else
4591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593#include <ctype.h>
4594#include <stdlib.h>
4595#if ((' ' & 0x0FF) == 0x020)
4596# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4597# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4598#else
4599# define ISLOWER(c) \
4600		   (('a' <= (c) && (c) <= 'i') \
4601		     || ('j' <= (c) && (c) <= 'r') \
4602		     || ('s' <= (c) && (c) <= 'z'))
4603# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4604#endif
4605
4606#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4607int
4608main ()
4609{
4610  int i;
4611  for (i = 0; i < 256; i++)
4612    if (XOR (islower (i), ISLOWER (i))
4613	|| toupper (i) != TOUPPER (i))
4614      return 2;
4615  return 0;
4616}
4617_ACEOF
4618if ac_fn_c_try_run "$LINENO"; then :
4619
4620else
4621  ac_cv_header_stdc=no
4622fi
4623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4624  conftest.$ac_objext conftest.beam conftest.$ac_ext
4625fi
4626
4627fi
4628fi
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4630$as_echo "$ac_cv_header_stdc" >&6; }
4631if test $ac_cv_header_stdc = yes; then
4632
4633$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4634
4635fi
4636
4637# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4638for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4639		  inttypes.h stdint.h unistd.h
4640do :
4641  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4643"
4644eval as_val=\$$as_ac_Header
4645   if test "x$as_val" = x""yes; then :
4646  cat >>confdefs.h <<_ACEOF
4647#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4648_ACEOF
4649
4650fi
4651
4652done
4653
4654
4655ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4656if test "x$ac_cv_type_pid_t" = x""yes; then :
4657
4658else
4659
4660cat >>confdefs.h <<_ACEOF
4661#define pid_t int
4662_ACEOF
4663
4664fi
4665
4666for ac_header in vfork.h
4667do :
4668  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4669if test "x$ac_cv_header_vfork_h" = x""yes; then :
4670  cat >>confdefs.h <<_ACEOF
4671#define HAVE_VFORK_H 1
4672_ACEOF
4673
4674fi
4675
4676done
4677
4678for ac_func in fork vfork
4679do :
4680  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4681ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4682eval as_val=\$$as_ac_var
4683   if test "x$as_val" = x""yes; then :
4684  cat >>confdefs.h <<_ACEOF
4685#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4686_ACEOF
4687
4688fi
4689done
4690
4691if test "x$ac_cv_func_fork" = xyes; then
4692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4693$as_echo_n "checking for working fork... " >&6; }
4694if test "${ac_cv_func_fork_works+set}" = set; then :
4695  $as_echo_n "(cached) " >&6
4696else
4697  if test "$cross_compiling" = yes; then :
4698  ac_cv_func_fork_works=cross
4699else
4700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h.  */
4702$ac_includes_default
4703int
4704main ()
4705{
4706
4707	  /* By Ruediger Kuhlmann. */
4708	  return fork () < 0;
4709
4710  ;
4711  return 0;
4712}
4713_ACEOF
4714if ac_fn_c_try_run "$LINENO"; then :
4715  ac_cv_func_fork_works=yes
4716else
4717  ac_cv_func_fork_works=no
4718fi
4719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4720  conftest.$ac_objext conftest.beam conftest.$ac_ext
4721fi
4722
4723fi
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4725$as_echo "$ac_cv_func_fork_works" >&6; }
4726
4727else
4728  ac_cv_func_fork_works=$ac_cv_func_fork
4729fi
4730if test "x$ac_cv_func_fork_works" = xcross; then
4731  case $host in
4732    *-*-amigaos* | *-*-msdosdjgpp*)
4733      # Override, as these systems have only a dummy fork() stub
4734      ac_cv_func_fork_works=no
4735      ;;
4736    *)
4737      ac_cv_func_fork_works=yes
4738      ;;
4739  esac
4740  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4741$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4742fi
4743ac_cv_func_vfork_works=$ac_cv_func_vfork
4744if test "x$ac_cv_func_vfork" = xyes; then
4745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4746$as_echo_n "checking for working vfork... " >&6; }
4747if test "${ac_cv_func_vfork_works+set}" = set; then :
4748  $as_echo_n "(cached) " >&6
4749else
4750  if test "$cross_compiling" = yes; then :
4751  ac_cv_func_vfork_works=cross
4752else
4753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754/* end confdefs.h.  */
4755/* Thanks to Paul Eggert for this test.  */
4756$ac_includes_default
4757#include <sys/wait.h>
4758#ifdef HAVE_VFORK_H
4759# include <vfork.h>
4760#endif
4761/* On some sparc systems, changes by the child to local and incoming
4762   argument registers are propagated back to the parent.  The compiler
4763   is told about this with #include <vfork.h>, but some compilers
4764   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
4765   static variable whose address is put into a register that is
4766   clobbered by the vfork.  */
4767static void
4768#ifdef __cplusplus
4769sparc_address_test (int arg)
4770# else
4771sparc_address_test (arg) int arg;
4772#endif
4773{
4774  static pid_t child;
4775  if (!child) {
4776    child = vfork ();
4777    if (child < 0) {
4778      perror ("vfork");
4779      _exit(2);
4780    }
4781    if (!child) {
4782      arg = getpid();
4783      write(-1, "", 0);
4784      _exit (arg);
4785    }
4786  }
4787}
4788
4789int
4790main ()
4791{
4792  pid_t parent = getpid ();
4793  pid_t child;
4794
4795  sparc_address_test (0);
4796
4797  child = vfork ();
4798
4799  if (child == 0) {
4800    /* Here is another test for sparc vfork register problems.  This
4801       test uses lots of local variables, at least as many local
4802       variables as main has allocated so far including compiler
4803       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
4804       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
4805       reuse the register of parent for one of the local variables,
4806       since it will think that parent can't possibly be used any more
4807       in this routine.  Assigning to the local variable will thus
4808       munge parent in the parent process.  */
4809    pid_t
4810      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4811      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4812    /* Convince the compiler that p..p7 are live; otherwise, it might
4813       use the same hardware register for all 8 local variables.  */
4814    if (p != p1 || p != p2 || p != p3 || p != p4
4815	|| p != p5 || p != p6 || p != p7)
4816      _exit(1);
4817
4818    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4819       from child file descriptors.  If the child closes a descriptor
4820       before it execs or exits, this munges the parent's descriptor
4821       as well.  Test for this by closing stdout in the child.  */
4822    _exit(close(fileno(stdout)) != 0);
4823  } else {
4824    int status;
4825    struct stat st;
4826
4827    while (wait(&status) != child)
4828      ;
4829    return (
4830	 /* Was there some problem with vforking?  */
4831	 child < 0
4832
4833	 /* Did the child fail?  (This shouldn't happen.)  */
4834	 || status
4835
4836	 /* Did the vfork/compiler bug occur?  */
4837	 || parent != getpid()
4838
4839	 /* Did the file descriptor bug occur?  */
4840	 || fstat(fileno(stdout), &st) != 0
4841	 );
4842  }
4843}
4844_ACEOF
4845if ac_fn_c_try_run "$LINENO"; then :
4846  ac_cv_func_vfork_works=yes
4847else
4848  ac_cv_func_vfork_works=no
4849fi
4850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4851  conftest.$ac_objext conftest.beam conftest.$ac_ext
4852fi
4853
4854fi
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4856$as_echo "$ac_cv_func_vfork_works" >&6; }
4857
4858fi;
4859if test "x$ac_cv_func_fork_works" = xcross; then
4860  ac_cv_func_vfork_works=$ac_cv_func_vfork
4861  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4862$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4863fi
4864
4865if test "x$ac_cv_func_vfork_works" = xyes; then
4866
4867$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
4868
4869else
4870
4871$as_echo "#define vfork fork" >>confdefs.h
4872
4873fi
4874if test "x$ac_cv_func_fork_works" = xyes; then
4875
4876$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
4877
4878fi
4879
4880ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
4881if test "x$ac_cv_type_mode_t" = x""yes; then :
4882
4883else
4884
4885cat >>confdefs.h <<_ACEOF
4886#define mode_t int
4887_ACEOF
4888
4889fi
4890
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4892$as_echo_n "checking return type of signal handlers... " >&6; }
4893if test "${ac_cv_type_signal+set}" = set; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h.  */
4898#include <sys/types.h>
4899#include <signal.h>
4900
4901int
4902main ()
4903{
4904return *(signal (0, 0)) (0) == 1;
4905  ;
4906  return 0;
4907}
4908_ACEOF
4909if ac_fn_c_try_compile "$LINENO"; then :
4910  ac_cv_type_signal=int
4911else
4912  ac_cv_type_signal=void
4913fi
4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915fi
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4917$as_echo "$ac_cv_type_signal" >&6; }
4918
4919cat >>confdefs.h <<_ACEOF
4920#define RETSIGTYPE $ac_cv_type_signal
4921_ACEOF
4922
4923
4924ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
4925#include <sys/socket.h>
4926
4927"
4928if test "x$ac_cv_type_socklen_t" = x""yes; then :
4929
4930cat >>confdefs.h <<_ACEOF
4931#define HAVE_SOCKLEN_T 1
4932_ACEOF
4933
4934
4935fi
4936ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
4937#include <sys/socket.h>
4938
4939"
4940if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
4941
4942cat >>confdefs.h <<_ACEOF
4943#define HAVE_STRUCT_SOCKADDR_STORAGE 1
4944_ACEOF
4945
4946
4947fi
4948
4949
4950# Extract the first word of "rlogin", so it can be a program name with args.
4951set dummy rlogin; ac_word=$2
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953$as_echo_n "checking for $ac_word... " >&6; }
4954if test "${ac_cv_path_UCB_RLOGIN+set}" = set; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  case $UCB_RLOGIN in
4958  [\\/]* | ?:[\\/]*)
4959  ac_cv_path_UCB_RLOGIN="$UCB_RLOGIN" # Let the user override the test with a path.
4960  ;;
4961  *)
4962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965  IFS=$as_save_IFS
4966  test -z "$as_dir" && as_dir=.
4967    for ac_exec_ext in '' $ac_executable_extensions; do
4968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969    ac_cv_path_UCB_RLOGIN="$as_dir/$ac_word$ac_exec_ext"
4970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971    break 2
4972  fi
4973done
4974  done
4975IFS=$as_save_IFS
4976
4977  test -z "$ac_cv_path_UCB_RLOGIN" && ac_cv_path_UCB_RLOGIN="/usr/ucb/rlogin"
4978  ;;
4979esac
4980fi
4981UCB_RLOGIN=$ac_cv_path_UCB_RLOGIN
4982if test -n "$UCB_RLOGIN"; then
4983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCB_RLOGIN" >&5
4984$as_echo "$UCB_RLOGIN" >&6; }
4985else
4986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987$as_echo "no" >&6; }
4988fi
4989
4990
4991# Extract the first word of "rsh", so it can be a program name with args.
4992set dummy rsh; ac_word=$2
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994$as_echo_n "checking for $ac_word... " >&6; }
4995if test "${ac_cv_path_UCB_RSH+set}" = set; then :
4996  $as_echo_n "(cached) " >&6
4997else
4998  case $UCB_RSH in
4999  [\\/]* | ?:[\\/]*)
5000  ac_cv_path_UCB_RSH="$UCB_RSH" # Let the user override the test with a path.
5001  ;;
5002  *)
5003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006  IFS=$as_save_IFS
5007  test -z "$as_dir" && as_dir=.
5008    for ac_exec_ext in '' $ac_executable_extensions; do
5009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010    ac_cv_path_UCB_RSH="$as_dir/$ac_word$ac_exec_ext"
5011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012    break 2
5013  fi
5014done
5015  done
5016IFS=$as_save_IFS
5017
5018  test -z "$ac_cv_path_UCB_RSH" && ac_cv_path_UCB_RSH="/usr/ucb/rsh"
5019  ;;
5020esac
5021fi
5022UCB_RSH=$ac_cv_path_UCB_RSH
5023if test -n "$UCB_RSH"; then
5024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCB_RSH" >&5
5025$as_echo "$UCB_RSH" >&6; }
5026else
5027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029fi
5030
5031
5032# Extract the first word of "rcp", so it can be a program name with args.
5033set dummy rcp; ac_word=$2
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035$as_echo_n "checking for $ac_word... " >&6; }
5036if test "${ac_cv_path_UCB_RCP+set}" = set; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  case $UCB_RCP in
5040  [\\/]* | ?:[\\/]*)
5041  ac_cv_path_UCB_RCP="$UCB_RCP" # Let the user override the test with a path.
5042  ;;
5043  *)
5044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045for as_dir in $PATH
5046do
5047  IFS=$as_save_IFS
5048  test -z "$as_dir" && as_dir=.
5049    for ac_exec_ext in '' $ac_executable_extensions; do
5050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051    ac_cv_path_UCB_RCP="$as_dir/$ac_word$ac_exec_ext"
5052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053    break 2
5054  fi
5055done
5056  done
5057IFS=$as_save_IFS
5058
5059  test -z "$ac_cv_path_UCB_RCP" && ac_cv_path_UCB_RCP="/usr/ucb/rcp"
5060  ;;
5061esac
5062fi
5063UCB_RCP=$ac_cv_path_UCB_RCP
5064if test -n "$UCB_RCP"; then
5065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UCB_RCP" >&5
5066$as_echo "$UCB_RCP" >&6; }
5067else
5068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069$as_echo "no" >&6; }
5070fi
5071
5072
5073
5074# Enables system protoypes for extended functions (such as asprintf)
5075# on most Linux systems.
5076
5077$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5078
5079
5080# We could rely on krb5-config to provide this, except that some of
5081# the later tests (particularly those in KRB5_AC_INET6) rely on
5082# -lsocket -lnsl being in LIBS on platforms which need them.  This is
5083# a very simplified test, aimed mainly at Solaris, and may break on
5084# some older or more obscure operating systems.
5085ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
5086if test "x$ac_cv_func_socket" = x""yes; then :
5087
5088else
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5090$as_echo_n "checking for socket in -lsocket... " >&6; }
5091if test "${ac_cv_lib_socket_socket+set}" = set; then :
5092  $as_echo_n "(cached) " >&6
5093else
5094  ac_check_lib_save_LIBS=$LIBS
5095LIBS="-lsocket -lnsl $LIBS"
5096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h.  */
5098
5099/* Override any GCC internal prototype to avoid an error.
5100   Use char because int might match the return type of a GCC
5101   builtin and then its argument prototype would still apply.  */
5102#ifdef __cplusplus
5103extern "C"
5104#endif
5105char socket ();
5106int
5107main ()
5108{
5109return socket ();
5110  ;
5111  return 0;
5112}
5113_ACEOF
5114if ac_fn_c_try_link "$LINENO"; then :
5115  ac_cv_lib_socket_socket=yes
5116else
5117  ac_cv_lib_socket_socket=no
5118fi
5119rm -f core conftest.err conftest.$ac_objext \
5120    conftest$ac_exeext conftest.$ac_ext
5121LIBS=$ac_check_lib_save_LIBS
5122fi
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5124$as_echo "$ac_cv_lib_socket_socket" >&6; }
5125if test "x$ac_cv_lib_socket_socket" = x""yes; then :
5126  LIBS="-lsocket -lnsl $LIBS"
5127fi
5128
5129fi
5130
5131
5132
5133
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdarg.h" >&5
5135$as_echo_n "checking for stdarg.h... " >&6; }
5136if test "${ac_cv_header_stdarg_h+set}" = set; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140/* end confdefs.h.  */
5141#include <stdarg.h>
5142int
5143main ()
5144{
5145
5146  } /* ac_try_compile will have started a function body */
5147  int aoeu (char *format, ...) {
5148    va_list v;
5149    int i;
5150    va_start (v, format);
5151    i = va_arg (v, int);
5152    va_end (v);
5153
5154  ;
5155  return 0;
5156}
5157_ACEOF
5158if ac_fn_c_try_compile "$LINENO"; then :
5159  ac_cv_header_stdarg_h=yes
5160else
5161  ac_cv_header_stdarg_h=no
5162fi
5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164fi
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdarg_h" >&5
5166$as_echo "$ac_cv_header_stdarg_h" >&6; }
5167if test $ac_cv_header_stdarg_h = yes; then
5168
5169$as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
5170
5171else
5172
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs.h" >&5
5174$as_echo_n "checking for varargs.h... " >&6; }
5175if test "${ac_cv_header_varargs_h+set}" = set; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h.  */
5180#include <varargs.h>
5181int
5182main ()
5183{
5184
5185  } /* ac_try_compile will have started a function body */
5186  int aoeu (va_alist) va_dcl {
5187    va_list v;
5188    int i;
5189    va_start (v);
5190    i = va_arg (v, int);
5191    va_end (v);
5192
5193  ;
5194  return 0;
5195}
5196_ACEOF
5197if ac_fn_c_try_compile "$LINENO"; then :
5198  ac_cv_header_varargs_h=yes
5199else
5200  ac_cv_header_varargs_h=no
5201fi
5202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_varargs_h" >&5
5205$as_echo "$ac_cv_header_varargs_h" >&6; }
5206if test $ac_cv_header_varargs_h = yes; then
5207
5208$as_echo "#define HAVE_VARARGS_H 1" >>confdefs.h
5209
5210else
5211  as_fn_error "Neither stdarg nor varargs compile?" "$LINENO" 5
5212fi
5213
5214fi
5215
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5217$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5218if test "${ac_cv_header_time+set}" = set; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h.  */
5223#include <sys/types.h>
5224#include <sys/time.h>
5225#include <time.h>
5226
5227int
5228main ()
5229{
5230if ((struct tm *) 0)
5231return 0;
5232  ;
5233  return 0;
5234}
5235_ACEOF
5236if ac_fn_c_try_compile "$LINENO"; then :
5237  ac_cv_header_time=yes
5238else
5239  ac_cv_header_time=no
5240fi
5241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5244$as_echo "$ac_cv_header_time" >&6; }
5245if test $ac_cv_header_time = yes; then
5246
5247$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5248
5249fi
5250
5251
5252ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5253if test "x$ac_cv_header_dirent_h" = x""yes; then :
5254
5255$as_echo "#define USE_DIRENT_H 1" >>confdefs.h
5256
5257fi
5258
5259
5260
5261ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
5262if test "x$ac_cv_func_sigsetjmp" = x""yes; then :
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigjmp_buf" >&5
5264$as_echo_n "checking for sigjmp_buf... " >&6; }
5265if test "${krb5_cv_struct_sigjmp_buf+set}" = set; then :
5266  $as_echo_n "(cached) " >&6
5267else
5268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h.  */
5270#include <setjmp.h>
5271int
5272main ()
5273{
5274sigjmp_buf x
5275  ;
5276  return 0;
5277}
5278_ACEOF
5279if ac_fn_c_try_compile "$LINENO"; then :
5280  krb5_cv_struct_sigjmp_buf=yes
5281else
5282  krb5_cv_struct_sigjmp_buf=no
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285fi
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_sigjmp_buf" >&5
5288$as_echo "$krb5_cv_struct_sigjmp_buf" >&6; }
5289if test $krb5_cv_struct_sigjmp_buf = yes; then
5290
5291$as_echo "#define POSIX_SETJMP 1" >>confdefs.h
5292
5293fi
5294
5295fi
5296
5297
5298ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
5299if test "x$ac_cv_func_sigprocmask" = x""yes; then :
5300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t and POSIX_SIGNALS" >&5
5301$as_echo_n "checking for sigset_t and POSIX_SIGNALS... " >&6; }
5302if test "${krb5_cv_type_sigset_t+set}" = set; then :
5303  $as_echo_n "(cached) " >&6
5304else
5305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307#include <signal.h>
5308int
5309main ()
5310{
5311sigset_t x
5312  ;
5313  return 0;
5314}
5315_ACEOF
5316if ac_fn_c_try_compile "$LINENO"; then :
5317  krb5_cv_type_sigset_t=yes
5318else
5319  krb5_cv_type_sigset_t=no
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322fi
5323
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_sigset_t" >&5
5325$as_echo "$krb5_cv_type_sigset_t" >&6; }
5326if test $krb5_cv_type_sigset_t = yes; then
5327
5328$as_echo "#define POSIX_SIGNALS 1" >>confdefs.h
5329
5330fi
5331
5332fi
5333
5334
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of sigprocmask" >&5
5336$as_echo_n "checking for use of sigprocmask... " >&6; }
5337if test "${krb5_cv_func_sigprocmask_use+set}" = set; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h.  */
5342#include <signal.h>
5343int
5344main ()
5345{
5346sigprocmask(SIG_SETMASK,0,0);
5347  ;
5348  return 0;
5349}
5350_ACEOF
5351if ac_fn_c_try_link "$LINENO"; then :
5352  krb5_cv_func_sigprocmask_use=yes
5353else
5354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h.  */
5356#include <signal.h>
5357int
5358main ()
5359{
5360sigmask(1);
5361  ;
5362  return 0;
5363}
5364_ACEOF
5365if ac_fn_c_try_link "$LINENO"; then :
5366  krb5_cv_func_sigprocmask_use=no
5367else
5368  krb5_cv_func_sigprocmask_use=yes
5369fi
5370rm -f core conftest.err conftest.$ac_objext \
5371    conftest$ac_exeext conftest.$ac_ext
5372fi
5373rm -f core conftest.err conftest.$ac_objext \
5374    conftest$ac_exeext conftest.$ac_ext
5375fi
5376
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_sigprocmask_use" >&5
5378$as_echo "$krb5_cv_func_sigprocmask_use" >&6; }
5379if test $krb5_cv_func_sigprocmask_use = yes; then
5380
5381$as_echo "#define USE_SIGPROCMASK 1" >>confdefs.h
5382
5383fi
5384
5385
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argument to wait is int *" >&5
5387$as_echo_n "checking if argument to wait is int *... " >&6; }
5388if test "${krb5_cv_struct_wait+set}" = set; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393#include <sys/types.h>
5394#include <sys/wait.h>
5395extern pid_t wait(int *);
5396int
5397main ()
5398{
5399
5400  ;
5401  return 0;
5402}
5403_ACEOF
5404if ac_fn_c_try_compile "$LINENO"; then :
5405  krb5_cv_struct_wait=no
5406else
5407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h.  */
5409#include <sys/wait.h>
5410int
5411main ()
5412{
5413union wait i;
5414#ifdef WEXITSTATUS
5415  WEXITSTATUS (i);
5416#endif
5417
5418  ;
5419  return 0;
5420}
5421_ACEOF
5422if ac_fn_c_try_compile "$LINENO"; then :
5423  krb5_cv_struct_wait=yes
5424else
5425  krb5_cv_struct_wait=no
5426fi
5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428fi
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430fi
5431
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_wait" >&5
5433$as_echo "$krb5_cv_struct_wait" >&6; }
5434if test $krb5_cv_struct_wait = no; then
5435
5436$as_echo "#define WAIT_USES_INT 1" >>confdefs.h
5437
5438fi
5439
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist declaration" >&5
5441$as_echo_n "checking for sys_errlist declaration... " >&6; }
5442if test "${krb5_cv_decl_sys_errlist+set}" = set; then :
5443  $as_echo_n "(cached) " >&6
5444else
5445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h.  */
5447#include <stdio.h>
5448#include <errno.h>
5449int
5450main ()
5451{
54521+sys_nerr;
5453  ;
5454  return 0;
5455}
5456_ACEOF
5457if ac_fn_c_try_compile "$LINENO"; then :
5458  krb5_cv_decl_sys_errlist=yes
5459else
5460  krb5_cv_decl_sys_errlist=no
5461fi
5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_decl_sys_errlist" >&5
5465$as_echo "$krb5_cv_decl_sys_errlist" >&6; }
5466# assume sys_nerr won't be declared w/o being in libc
5467if test $krb5_cv_decl_sys_errlist = yes; then
5468
5469$as_echo "#define SYS_ERRLIST_DECLARED 1" >>confdefs.h
5470
5471
5472$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
5473
5474else
5475  # This means that sys_errlist is not declared in errno.h, but may still
5476  # be in libc.
5477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist in libc" >&5
5478$as_echo_n "checking for sys_errlist in libc... " >&6; }
5479if test "${krb5_cv_var_sys_errlist+set}" = set; then :
5480  $as_echo_n "(cached) " >&6
5481else
5482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483/* end confdefs.h.  */
5484extern int sys_nerr;
5485int
5486main ()
5487{
5488if (1+sys_nerr < 0) return 1;
5489  ;
5490  return 0;
5491}
5492_ACEOF
5493if ac_fn_c_try_link "$LINENO"; then :
5494  krb5_cv_var_sys_errlist=yes
5495else
5496  krb5_cv_var_sys_errlist=no;
5497fi
5498rm -f core conftest.err conftest.$ac_objext \
5499    conftest$ac_exeext conftest.$ac_ext
5500fi
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_var_sys_errlist" >&5
5502$as_echo "$krb5_cv_var_sys_errlist" >&6; }
5503  if test $krb5_cv_var_sys_errlist = yes; then
5504
5505$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
5506
5507    # Do this cruft for backwards compatibility for now.
5508
5509$as_echo "#define NEED_SYS_ERRLIST 1" >>confdefs.h
5510
5511  else
5512    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys_errlist is neither in errno.h nor in libc" >&5
5513$as_echo "$as_me: WARNING: sys_errlist is neither in errno.h nor in libc" >&2;}
5514  fi
5515fi
5516# Check whether --enable-maintainer-mode was given.
5517if test "${enable_maintainer_mode+set}" = set; then :
5518  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5519else
5520  USE_MAINTAINER_MODE=no
5521fi
5522
5523if test "$USE_MAINTAINER_MODE" = yes; then
5524  MAINTAINER_MODE_TRUE=
5525  MAINTAINER_MODE_FALSE='#'
5526  { $as_echo "$as_me:${as_lineno-$LINENO}: enabling maintainer mode" >&5
5527$as_echo "$as_me: enabling maintainer mode" >&6;}
5528else
5529  MAINTAINER_MODE_TRUE='#'
5530  MAINTAINER_MODE_FALSE=
5531fi
5532MAINT=$MAINTAINER_MODE_TRUE
5533
5534
5535
5536
5537 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
5538#include <sys/socket.h>
5539"
5540if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
5541
5542$as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
5543
5544
5545fi
5546
5547
5548for ac_header in sys/types.h sys/socket.h netinet/in.h netdb.h
5549do :
5550  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5552eval as_val=\$$as_ac_Header
5553   if test "x$as_val" = x""yes; then :
5554  cat >>confdefs.h <<_ACEOF
5555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5556_ACEOF
5557
5558fi
5559
5560done
5561
5562for ac_func in inet_ntop inet_pton getnameinfo
5563do :
5564  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5565ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5566eval as_val=\$$as_ac_var
5567   if test "x$as_val" = x""yes; then :
5568  cat >>confdefs.h <<_ACEOF
5569#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5570_ACEOF
5571
5572fi
5573done
5574
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
5576$as_echo_n "checking for getaddrinfo... " >&6; }
5577if test "${ac_cv_func_getaddrinfo+set}" = set; then :
5578  $as_echo_n "(cached) " >&6
5579else
5580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581/* end confdefs.h.  */
5582#ifdef HAVE_NETDB_H
5583#include <netdb.h>
5584#endif
5585int
5586main ()
5587{
5588
5589struct addrinfo *ai;
5590getaddrinfo("kerberos.mit.edu", "echo", 0, &ai);
5591
5592  ;
5593  return 0;
5594}
5595_ACEOF
5596if ac_fn_c_try_link "$LINENO"; then :
5597  ac_cv_func_getaddrinfo=yes
5598else
5599  ac_cv_func_getaddrinfo=no
5600fi
5601rm -f core conftest.err conftest.$ac_objext \
5602    conftest$ac_exeext conftest.$ac_ext
5603fi
5604
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
5606$as_echo "$ac_cv_func_getaddrinfo" >&6; }
5607if test $ac_cv_func_getaddrinfo = yes; then
5608
5609$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
5610
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support" >&5
5613$as_echo_n "checking for IPv6 compile-time support... " >&6; }
5614if test "${krb5_cv_inet6+set}" = set; then :
5615  $as_echo_n "(cached) " >&6
5616else
5617
5618if test "$ac_cv_func_inet_ntop" != "yes" ; then
5619  krb5_cv_inet6=no
5620else
5621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h.  */
5623
5624#ifdef HAVE_SYS_TYPES_H
5625#include <sys/types.h>
5626#endif
5627#include <sys/socket.h>
5628#include <netinet/in.h>
5629#include <netdb.h>
5630
5631int
5632main ()
5633{
5634
5635  struct sockaddr_in6 in;
5636  AF_INET6;
5637  IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr);
5638
5639  ;
5640  return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_compile "$LINENO"; then :
5644  krb5_cv_inet6=yes
5645else
5646  krb5_cv_inet6=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649fi
5650
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6" >&5
5653$as_echo "$krb5_cv_inet6" >&6; }
5654if test "$krb5_cv_inet6" = no && test "$ac_cv_func_inet_ntop" = yes; then
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support with -DINET6" >&5
5656$as_echo_n "checking for IPv6 compile-time support with -DINET6... " >&6; }
5657if test "${krb5_cv_inet6_with_dinet6+set}" = set; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660
5661old_CC="$CC"
5662CC="$CC -DINET6"
5663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h.  */
5665
5666#ifdef HAVE_SYS_TYPES_H
5667#include <sys/types.h>
5668#endif
5669#include <sys/socket.h>
5670#include <netinet/in.h>
5671#include <netdb.h>
5672
5673int
5674main ()
5675{
5676
5677  struct sockaddr_in6 in;
5678  AF_INET6;
5679  IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr);
5680
5681  ;
5682  return 0;
5683}
5684_ACEOF
5685if ac_fn_c_try_compile "$LINENO"; then :
5686  krb5_cv_inet6_with_dinet6=yes
5687else
5688  krb5_cv_inet6_with_dinet6=no
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691CC="$old_CC"
5692fi
5693
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6_with_dinet6" >&5
5695$as_echo "$krb5_cv_inet6_with_dinet6" >&6; }
5696fi
5697if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes; then
5698  if test "$krb5_cv_inet6_with_dinet6" = yes; then
5699
5700$as_echo "#define INET6 1" >>confdefs.h
5701
5702  fi
5703
5704$as_echo "#define KRB5_USE_INET6 1" >>confdefs.h
5705
5706fi
5707
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lutil" >&5
5709$as_echo_n "checking for main in -lutil... " >&6; }
5710if test "${ac_cv_lib_util_main+set}" = set; then :
5711  $as_echo_n "(cached) " >&6
5712else
5713  ac_check_lib_save_LIBS=$LIBS
5714LIBS="-lutil  $LIBS"
5715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716/* end confdefs.h.  */
5717
5718
5719int
5720main ()
5721{
5722return main ();
5723  ;
5724  return 0;
5725}
5726_ACEOF
5727if ac_fn_c_try_link "$LINENO"; then :
5728  ac_cv_lib_util_main=yes
5729else
5730  ac_cv_lib_util_main=no
5731fi
5732rm -f core conftest.err conftest.$ac_objext \
5733    conftest$ac_exeext conftest.$ac_ext
5734LIBS=$ac_check_lib_save_LIBS
5735fi
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_main" >&5
5737$as_echo "$ac_cv_lib_util_main" >&6; }
5738if test "x$ac_cv_lib_util_main" = x""yes; then :
5739
5740$as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h
5741
5742  UTIL_LIB=-lutil
5743fi
5744
5745
5746
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX signal handlers" >&5
5748$as_echo_n "checking POSIX signal handlers... " >&6; }
5749if test "${krb5_cv_has_posix_signals+set}" = set; then :
5750  $as_echo_n "(cached) " >&6
5751else
5752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h.  */
5754#include <sys/types.h>
5755#include <signal.h>
5756#ifdef signal
5757#undef signal
5758#endif
5759extern void (*signal ()) ();
5760int
5761main ()
5762{
5763
5764  ;
5765  return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"; then :
5769  krb5_cv_has_posix_signals=yes
5770else
5771  krb5_cv_has_posix_signals=no
5772fi
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
5775
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_posix_signals" >&5
5777$as_echo "$krb5_cv_has_posix_signals" >&6; }
5778if test $krb5_cv_has_posix_signals = yes; then
5779   stype=void
5780
5781$as_echo "#define POSIX_SIGTYPE 1" >>confdefs.h
5782
5783else
5784  if test $ac_cv_type_signal = void; then
5785     stype=void
5786  else
5787     stype=int
5788  fi
5789fi
5790
5791cat >>confdefs.h <<_ACEOF
5792#define krb5_sigtype $stype
5793_ACEOF
5794
5795
5796sock_set=no
5797for sock_arg1 in "struct sockaddr *" "void *"
5798do
5799  for sock_arg2 in "size_t *" "int *" "socklen_t *"
5800  do
5801	if test $sock_set = no; then
5802
5803krb5_lib_var=`echo "$sock_arg1 $sock_arg2" | sed 'y% ./+-*%___p_p%'`
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname() takes arguments $sock_arg1 and $sock_arg2" >&5
5805$as_echo_n "checking if getsockname() takes arguments $sock_arg1 and $sock_arg2... " >&6; }
5806if { as_var=krb5_cv_getsockname_proto_$krb5_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then :
5807  $as_echo_n "(cached) " >&6
5808else
5809
5810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h.  */
5812#include <sys/types.h>
5813#include <sys/socket.h>
5814extern int getsockname(int, $sock_arg1, $sock_arg2);
5815
5816int
5817main ()
5818{
5819
5820  ;
5821  return 0;
5822}
5823_ACEOF
5824if ac_fn_c_try_compile "$LINENO"; then :
5825  eval "krb5_cv_getsockname_proto_$krb5_lib_var=yes"
5826else
5827  eval "krb5_cv_getsockname_proto_$krb5_lib_var=no"
5828fi
5829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830fi
5831
5832if eval "test \"`echo '$krb5_cv_getsockname_proto_'$krb5_lib_var`\" = yes"; then
5833	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5834$as_echo "yes" >&6; }
5835	sock_set=yes; res1="$sock_arg1"; res2="$sock_arg2"
5836else
5837	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838$as_echo "no" >&6; }
5839fi
5840
5841	fi
5842  done
5843done
5844if test "$sock_set" = no; then
5845  { $as_echo "$as_me:${as_lineno-$LINENO}: assuming struct sockaddr and socklen_t for getsockname args" >&5
5846$as_echo "$as_me: assuming struct sockaddr and socklen_t for getsockname args" >&6;}
5847  res1="struct sockaddr *"
5848  res2="socklen_t *"
5849fi
5850res1=`echo "$res1" | tr -d '*' | sed -e 's/ *$//'`
5851res2=`echo "$res2" | tr -d '*' | sed -e 's/ *$//'`
5852
5853cat >>confdefs.h <<_ACEOF
5854#define GETSOCKNAME_ARG2_TYPE $res1
5855_ACEOF
5856
5857
5858cat >>confdefs.h <<_ACEOF
5859#define GETSOCKNAME_ARG3_TYPE $res2
5860_ACEOF
5861
5862
5863
5864for ac_header in curses.h lastlog.h libutil.h memory.h paths.h pty.h stdlib.h
5865do :
5866  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5867ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5868eval as_val=\$$as_ac_Header
5869   if test "x$as_val" = x""yes; then :
5870  cat >>confdefs.h <<_ACEOF
5871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5872_ACEOF
5873
5874fi
5875
5876done
5877
5878for ac_header in string.h ttyent.h util.h sac.h unistd.h utmp.h utmpx.h
5879do :
5880  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5881ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5882eval as_val=\$$as_ac_Header
5883   if test "x$as_val" = x""yes; then :
5884  cat >>confdefs.h <<_ACEOF
5885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5886_ACEOF
5887
5888fi
5889
5890done
5891
5892for ac_header in arpa/inet.h arpa/nameser.h
5893do :
5894  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5895ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5896eval as_val=\$$as_ac_Header
5897   if test "x$as_val" = x""yes; then :
5898  cat >>confdefs.h <<_ACEOF
5899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5900_ACEOF
5901
5902fi
5903
5904done
5905
5906for ac_header in sys/filio.h sys/ioctl_compat.h sys/label.h sys/param.h
5907do :
5908  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5910eval as_val=\$$as_ac_Header
5911   if test "x$as_val" = x""yes; then :
5912  cat >>confdefs.h <<_ACEOF
5913#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914_ACEOF
5915
5916fi
5917
5918done
5919
5920for ac_header in sys/ptyvar.h sys/select.h sys/sockio.h sys/stream.h
5921do :
5922  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5923ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5924eval as_val=\$$as_ac_Header
5925   if test "x$as_val" = x""yes; then :
5926  cat >>confdefs.h <<_ACEOF
5927#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5928_ACEOF
5929
5930fi
5931
5932done
5933
5934for ac_header in sys/time.h sys/tty.h sys/uio.h sys/utsname.h sys/wait.h
5935do :
5936  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5937ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5938eval as_val=\$$as_ac_Header
5939   if test "x$as_val" = x""yes; then :
5940  cat >>confdefs.h <<_ACEOF
5941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5942_ACEOF
5943
5944fi
5945
5946done
5947
5948# On some systems, term.h requires curses.h inclusion
5949for ac_header in term.h
5950do :
5951  ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#ifdef HAVE_CURSES_H
5952#include <curses.h>
5953#endif
5954
5955"
5956if test "x$ac_cv_header_term_h" = x""yes; then :
5957  cat >>confdefs.h <<_ACEOF
5958#define HAVE_TERM_H 1
5959_ACEOF
5960
5961fi
5962
5963done
5964
5965
5966case $host in
5967*-*-solaris*)
5968    if test "$ac_cv_c_compiler_gnu" = yes; then
5969        # Solaris 8 at least has curses.h that is noisy under gcc
5970        ac_cv_header_curses_h=yes
5971    fi
5972    ;;
5973esac
5974
5975for ac_func in _getpty cgetent getcwd getenv gethostbyname_r getservbyname_r
5976do :
5977  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5978ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5979eval as_val=\$$as_ac_var
5980   if test "x$as_val" = x""yes; then :
5981  cat >>confdefs.h <<_ACEOF
5982#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5983_ACEOF
5984
5985fi
5986done
5987
5988for ac_func in gettosbyname getusershell getutmp getutmpx grantpt inet_aton
5989do :
5990  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5991ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5992eval as_val=\$$as_ac_var
5993   if test "x$as_val" = x""yes; then :
5994  cat >>confdefs.h <<_ACEOF
5995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5996_ACEOF
5997
5998fi
5999done
6000
6001for ac_func in initgroups isatty killpg killpg line_push ptsname revoke
6002do :
6003  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6004ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6005eval as_val=\$$as_ac_var
6006   if test "x$as_val" = x""yes; then :
6007  cat >>confdefs.h <<_ACEOF
6008#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6009_ACEOF
6010
6011fi
6012done
6013
6014for ac_func in rmufile rresvport_af seteuid setlogin setpgid setpriority
6015do :
6016  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6017ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6018eval as_val=\$$as_ac_var
6019   if test "x$as_val" = x""yes; then :
6020  cat >>confdefs.h <<_ACEOF
6021#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6022_ACEOF
6023
6024fi
6025done
6026
6027for ac_func in setresuid setreuid setutent setutsent setutxent strsave
6028do :
6029  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6031eval as_val=\$$as_ac_var
6032   if test "x$as_val" = x""yes; then :
6033  cat >>confdefs.h <<_ACEOF
6034#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6035_ACEOF
6036
6037fi
6038done
6039
6040for ac_func in tcgetpgrp tcsetpgrp ttyname unsetenv updwtmp updwtmpx utimes
6041do :
6042  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6043ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6044eval as_val=\$$as_ac_var
6045   if test "x$as_val" = x""yes; then :
6046  cat >>confdefs.h <<_ACEOF
6047#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6048_ACEOF
6049
6050fi
6051done
6052
6053for ac_func in utmpname utmpxname vasprintf vhangup waitpid
6054do :
6055  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6056ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6057eval as_val=\$$as_ac_var
6058   if test "x$as_val" = x""yes; then :
6059  cat >>confdefs.h <<_ACEOF
6060#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6061_ACEOF
6062
6063fi
6064done
6065
6066
6067# Check for functions found in libutil.
6068old_LIBS="$LIBS"
6069LIBS="$UTIL_LIB $LIBS"
6070for ac_func in logwtmp openpty
6071do :
6072  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6074eval as_val=\$$as_ac_var
6075   if test "x$as_val" = x""yes; then :
6076  cat >>confdefs.h <<_ACEOF
6077#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6078_ACEOF
6079
6080fi
6081done
6082
6083LIBS="$old_LIBS"
6084
6085# Determine which functions to define in libmissing.
6086for ac_func in daemon getdtablesize getopt herror parsetos setenv setsid
6087do :
6088  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6089ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6090eval as_val=\$$as_ac_var
6091   if test "x$as_val" = x""yes; then :
6092  cat >>confdefs.h <<_ACEOF
6093#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6094_ACEOF
6095
6096else
6097  case " $LIBOBJS " in
6098  *" $ac_func.$ac_objext "* ) ;;
6099  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6100 ;;
6101esac
6102
6103fi
6104done
6105
6106
6107for ac_func in strcasecmp strdup strerror strftime strlcpy asprintf
6108do :
6109  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6110ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6111eval as_val=\$$as_ac_var
6112   if test "x$as_val" = x""yes; then :
6113  cat >>confdefs.h <<_ACEOF
6114#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6115_ACEOF
6116
6117else
6118  case " $LIBOBJS " in
6119  *" $ac_func.$ac_objext "* ) ;;
6120  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6121 ;;
6122esac
6123
6124fi
6125done
6126
6127
6128
6129# Determine libraries for login and ftpd.
6130LOGINLIBS=
6131FTPD_LIBS=
6132
6133# Check whether --with-afs was given.
6134if test "${with_afs+set}" = set; then :
6135  withval=$with_afs;
6136else
6137  with_afs=no
6138fi
6139
6140if test $with_afs != no; then
6141
6142$as_echo "#define SETPAG 1" >>confdefs.h
6143
6144    LOGINLIBS="$LOGINLIBS -L$with_afs/lib -L$with_afs/lib/afs"
6145    LOGINLIBS="$LOGINLIBS -lauth -lsys -lrx -llwp"
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
6148$as_echo_n "checking for crypt in -lcrypt... " >&6; }
6149if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  ac_check_lib_save_LIBS=$LIBS
6153LIBS="-lcrypt  $LIBS"
6154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156
6157/* Override any GCC internal prototype to avoid an error.
6158   Use char because int might match the return type of a GCC
6159   builtin and then its argument prototype would still apply.  */
6160#ifdef __cplusplus
6161extern "C"
6162#endif
6163char crypt ();
6164int
6165main ()
6166{
6167return crypt ();
6168  ;
6169  return 0;
6170}
6171_ACEOF
6172if ac_fn_c_try_link "$LINENO"; then :
6173  ac_cv_lib_crypt_crypt=yes
6174else
6175  ac_cv_lib_crypt_crypt=no
6176fi
6177rm -f core conftest.err conftest.$ac_objext \
6178    conftest$ac_exeext conftest.$ac_ext
6179LIBS=$ac_check_lib_save_LIBS
6180fi
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
6182$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
6183if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
6184  LOGINLIBS="$LOGINLIBS -lcrypt"
6185              FTPD_LIBS="$FTPD_LIBS -lcrypt"
6186fi
6187
6188# AIX has all three of these; SCO might too.
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lodm" >&5
6190$as_echo_n "checking for main in -lodm... " >&6; }
6191if test "${ac_cv_lib_odm_main+set}" = set; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  ac_check_lib_save_LIBS=$LIBS
6195LIBS="-lodm  $LIBS"
6196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h.  */
6198
6199
6200int
6201main ()
6202{
6203return main ();
6204  ;
6205  return 0;
6206}
6207_ACEOF
6208if ac_fn_c_try_link "$LINENO"; then :
6209  ac_cv_lib_odm_main=yes
6210else
6211  ac_cv_lib_odm_main=no
6212fi
6213rm -f core conftest.err conftest.$ac_objext \
6214    conftest$ac_exeext conftest.$ac_ext
6215LIBS=$ac_check_lib_save_LIBS
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odm_main" >&5
6218$as_echo "$ac_cv_lib_odm_main" >&6; }
6219if test "x$ac_cv_lib_odm_main" = x""yes; then :
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ls" >&5
6221$as_echo_n "checking for main in -ls... " >&6; }
6222if test "${ac_cv_lib_s_main+set}" = set; then :
6223  $as_echo_n "(cached) " >&6
6224else
6225  ac_check_lib_save_LIBS=$LIBS
6226LIBS="-ls  $LIBS"
6227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229
6230
6231int
6232main ()
6233{
6234return main ();
6235  ;
6236  return 0;
6237}
6238_ACEOF
6239if ac_fn_c_try_link "$LINENO"; then :
6240  ac_cv_lib_s_main=yes
6241else
6242  ac_cv_lib_s_main=no
6243fi
6244rm -f core conftest.err conftest.$ac_objext \
6245    conftest$ac_exeext conftest.$ac_ext
6246LIBS=$ac_check_lib_save_LIBS
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_main" >&5
6249$as_echo "$ac_cv_lib_s_main" >&6; }
6250if test "x$ac_cv_lib_s_main" = x""yes; then :
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcfg" >&5
6252$as_echo_n "checking for main in -lcfg... " >&6; }
6253if test "${ac_cv_lib_cfg_main+set}" = set; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  ac_check_lib_save_LIBS=$LIBS
6257LIBS="-lcfg  $LIBS"
6258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h.  */
6260
6261
6262int
6263main ()
6264{
6265return main ();
6266  ;
6267  return 0;
6268}
6269_ACEOF
6270if ac_fn_c_try_link "$LINENO"; then :
6271  ac_cv_lib_cfg_main=yes
6272else
6273  ac_cv_lib_cfg_main=no
6274fi
6275rm -f core conftest.err conftest.$ac_objext \
6276    conftest$ac_exeext conftest.$ac_ext
6277LIBS=$ac_check_lib_save_LIBS
6278fi
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfg_main" >&5
6280$as_echo "$ac_cv_lib_cfg_main" >&6; }
6281if test "x$ac_cv_lib_cfg_main" = x""yes; then :
6282  LOGINLIBS="$LOGINLIBS -lodm -ls -lcfg"
6283fi
6284
6285fi
6286
6287fi
6288
6289KRSHDLIBS="$LOGINLIBS"
6290
6291
6292
6293
6294# Determine libraries for telnet and telnetd.
6295old_LIBS="$LIBS"
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5
6297$as_echo_n "checking for main in -ltermcap... " >&6; }
6298if test "${ac_cv_lib_termcap_main+set}" = set; then :
6299  $as_echo_n "(cached) " >&6
6300else
6301  ac_check_lib_save_LIBS=$LIBS
6302LIBS="-ltermcap  $LIBS"
6303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h.  */
6305
6306
6307int
6308main ()
6309{
6310return main ();
6311  ;
6312  return 0;
6313}
6314_ACEOF
6315if ac_fn_c_try_link "$LINENO"; then :
6316  ac_cv_lib_termcap_main=yes
6317else
6318  ac_cv_lib_termcap_main=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext \
6321    conftest$ac_exeext conftest.$ac_ext
6322LIBS=$ac_check_lib_save_LIBS
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5
6325$as_echo "$ac_cv_lib_termcap_main" >&6; }
6326if test "x$ac_cv_lib_termcap_main" = x""yes; then :
6327
6328$as_echo "#define TERMCAP 1" >>confdefs.h
6329
6330              LIBS="$LIBS -ltermcap"
6331fi
6332
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
6334$as_echo_n "checking for setupterm in -lcurses... " >&6; }
6335if test "${ac_cv_lib_curses_setupterm+set}" = set; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  ac_check_lib_save_LIBS=$LIBS
6339LIBS="-lcurses  $LIBS"
6340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341/* end confdefs.h.  */
6342
6343/* Override any GCC internal prototype to avoid an error.
6344   Use char because int might match the return type of a GCC
6345   builtin and then its argument prototype would still apply.  */
6346#ifdef __cplusplus
6347extern "C"
6348#endif
6349char setupterm ();
6350int
6351main ()
6352{
6353return setupterm ();
6354  ;
6355  return 0;
6356}
6357_ACEOF
6358if ac_fn_c_try_link "$LINENO"; then :
6359  ac_cv_lib_curses_setupterm=yes
6360else
6361  ac_cv_lib_curses_setupterm=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext \
6364    conftest$ac_exeext conftest.$ac_ext
6365LIBS=$ac_check_lib_save_LIBS
6366fi
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
6368$as_echo "$ac_cv_lib_curses_setupterm" >&6; }
6369if test "x$ac_cv_lib_curses_setupterm" = x""yes; then :
6370  LIBS="$LIBS -lcurses"
6371else
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
6373$as_echo_n "checking for setupterm in -lncurses... " >&6; }
6374if test "${ac_cv_lib_ncurses_setupterm+set}" = set; then :
6375  $as_echo_n "(cached) " >&6
6376else
6377  ac_check_lib_save_LIBS=$LIBS
6378LIBS="-lncurses  $LIBS"
6379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381
6382/* Override any GCC internal prototype to avoid an error.
6383   Use char because int might match the return type of a GCC
6384   builtin and then its argument prototype would still apply.  */
6385#ifdef __cplusplus
6386extern "C"
6387#endif
6388char setupterm ();
6389int
6390main ()
6391{
6392return setupterm ();
6393  ;
6394  return 0;
6395}
6396_ACEOF
6397if ac_fn_c_try_link "$LINENO"; then :
6398  ac_cv_lib_ncurses_setupterm=yes
6399else
6400  ac_cv_lib_ncurses_setupterm=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext \
6403    conftest$ac_exeext conftest.$ac_ext
6404LIBS=$ac_check_lib_save_LIBS
6405fi
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
6407$as_echo "$ac_cv_lib_ncurses_setupterm" >&6; }
6408if test "x$ac_cv_lib_ncurses_setupterm" = x""yes; then :
6409  LIBS="$LIBS -lncurses"
6410fi
6411
6412fi
6413
6414for ac_func in setupterm
6415do :
6416  ac_fn_c_check_func "$LINENO" "setupterm" "ac_cv_func_setupterm"
6417if test "x$ac_cv_func_setupterm" = x""yes; then :
6418  cat >>confdefs.h <<_ACEOF
6419#define HAVE_SETUPTERM 1
6420_ACEOF
6421
6422fi
6423done
6424
6425TELNET_LIBS="$LIBS"
6426TELNETD_LIBS="$LIBS"
6427
6428
6429ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
6430if test "x$ac_cv_func_tgetent" = x""yes; then :
6431
6432else
6433  as_fn_error "Could not find tgetent; are you missing a curses/ncurses library?" "$LINENO" 5
6434fi
6435
6436LIBS="$old_LIBS"
6437
6438# Make our operating system-specific security checks and definitions
6439# for libpty, login, and ftpd.  The following code decides what
6440# streams modules will be pushed onto a pty.  In particular, if
6441# HAVE_STREAMS is defined and HAVE_LINE_PUSH is not defined, modules
6442# may be pushed by inserting an appropriate generic ifdef for each
6443# module in init_slave.c and AC_DEFINES for the operating systems that
6444# need the modules.  Each OS that supports streams has a different
6445# idea of what you want to push.
6446case $host in
6447*-*-ultrix*)
6448    echo "Disabling initial vhangup and setsid because they break under Ultrix"
6449
6450$as_echo "#define OPEN_CTTY_ONLY_ONCE 1" >>confdefs.h
6451
6452    ac_cv_func_setsid=no # setsid doesn't do the right thing under Ultrix
6453    ;;
6454*-*-aix3*)
6455    # AIX has streams include files but not streams TTY
6456    # Moreover, strops.h trashes sys/ioctl.h
6457    krb5_cv_has_streams=no
6458    ;;
6459alpha*-dec-osf*)
6460    { $as_echo "$as_me:${as_lineno-$LINENO}: result: will open ctty prior to revoke due to OSF/1 lossage" >&5
6461$as_echo "will open ctty prior to revoke due to OSF/1 lossage" >&6; }
6462
6463$as_echo "#define REVOKE_NEEDS_OPEN 1" >>confdefs.h
6464
6465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setluid in -lsecurity" >&5
6466$as_echo_n "checking for setluid in -lsecurity... " >&6; }
6467if test "${ac_cv_lib_security_setluid+set}" = set; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  ac_check_lib_save_LIBS=$LIBS
6471LIBS="-lsecurity  $LIBS"
6472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h.  */
6474
6475/* Override any GCC internal prototype to avoid an error.
6476   Use char because int might match the return type of a GCC
6477   builtin and then its argument prototype would still apply.  */
6478#ifdef __cplusplus
6479extern "C"
6480#endif
6481char setluid ();
6482int
6483main ()
6484{
6485return setluid ();
6486  ;
6487  return 0;
6488}
6489_ACEOF
6490if ac_fn_c_try_link "$LINENO"; then :
6491  ac_cv_lib_security_setluid=yes
6492else
6493  ac_cv_lib_security_setluid=no
6494fi
6495rm -f core conftest.err conftest.$ac_objext \
6496    conftest$ac_exeext conftest.$ac_ext
6497LIBS=$ac_check_lib_save_LIBS
6498fi
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_setluid" >&5
6500$as_echo "$ac_cv_lib_security_setluid" >&6; }
6501if test "x$ac_cv_lib_security_setluid" = x""yes; then :
6502
6503$as_echo "#define HAVE_SETLUID 1" >>confdefs.h
6504
6505                 LOGINLIBS="$LOGINLIBS -lsecurity"
6506                 FTPD_LIBS="$FTPD_LIBS -lsecurity"
6507fi
6508
6509    ;;
6510*-*-solaris*)
6511
6512$as_echo "#define PUSH_PTEM 1" >>confdefs.h
6513
6514
6515$as_echo "#define PUSH_LDTERM 1" >>confdefs.h
6516
6517
6518$as_echo "#define PUSH_TTCOMPAT 1" >>confdefs.h
6519
6520    ;;
6521*-*-hpux*|*-*-linux*|*-*-irix*)
6522    krb5_cv_has_streams=no
6523    ;;
6524esac
6525
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking streams interface" >&5
6527$as_echo_n "checking streams interface... " >&6; }
6528if test "${krb5_cv_has_streams+set}" = set; then :
6529  $as_echo_n "(cached) " >&6
6530else
6531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532/* end confdefs.h.  */
6533#include <sys/stream.h>
6534#include <sys/stropts.h>
6535int
6536main ()
6537{
6538
6539  ;
6540  return 0;
6541}
6542_ACEOF
6543if ac_fn_c_try_compile "$LINENO"; then :
6544  krb5_cv_has_streams=yes
6545else
6546  krb5_cv_has_streams=no
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549fi
6550
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_streams" >&5
6552$as_echo "$krb5_cv_has_streams" >&6; }
6553if test $krb5_cv_has_streams = yes; then
6554
6555$as_echo "#define HAVE_STREAMS 1" >>confdefs.h
6556
6557fi
6558
6559# telnet checks for STREAMSPTY to indicate streams and grantpt.
6560if test "$krb5_cv_has_streams" = yes -a "$ac_cv_func_grantpt" = yes; then
6561
6562$as_echo "#define STREAMSPTY 1" >>confdefs.h
6563
6564fi
6565
6566# ----- utmp stuff -----
6567
6568ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <sys/types.h>
6569#include <utmp.h>
6570"
6571if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
6572
6573cat >>confdefs.h <<_ACEOF
6574#define HAVE_STRUCT_UTMP_UT_HOST 1
6575_ACEOF
6576
6577
6578fi
6579ac_fn_c_check_member "$LINENO" "struct utmp" "ut_syslen" "ac_cv_member_struct_utmp_ut_syslen" "#include <sys/types.h>
6580#include <utmp.h>
6581"
6582if test "x$ac_cv_member_struct_utmp_ut_syslen" = x""yes; then :
6583
6584cat >>confdefs.h <<_ACEOF
6585#define HAVE_STRUCT_UTMP_UT_SYSLEN 1
6586_ACEOF
6587
6588
6589fi
6590ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "#include <sys/types.h>
6591#include <utmp.h>
6592"
6593if test "x$ac_cv_member_struct_utmp_ut_addr" = x""yes; then :
6594
6595cat >>confdefs.h <<_ACEOF
6596#define HAVE_STRUCT_UTMP_UT_ADDR 1
6597_ACEOF
6598
6599
6600fi
6601ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "#include <sys/types.h>
6602#include <utmp.h>
6603"
6604if test "x$ac_cv_member_struct_utmp_ut_id" = x""yes; then :
6605
6606cat >>confdefs.h <<_ACEOF
6607#define HAVE_STRUCT_UTMP_UT_ID 1
6608_ACEOF
6609
6610
6611fi
6612ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "#include <sys/types.h>
6613#include <utmp.h>
6614"
6615if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
6616
6617cat >>confdefs.h <<_ACEOF
6618#define HAVE_STRUCT_UTMP_UT_PID 1
6619_ACEOF
6620
6621
6622fi
6623ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "#include <sys/types.h>
6624#include <utmp.h>
6625"
6626if test "x$ac_cv_member_struct_utmp_ut_type" = x""yes; then :
6627
6628cat >>confdefs.h <<_ACEOF
6629#define HAVE_STRUCT_UTMP_UT_TYPE 1
6630_ACEOF
6631
6632
6633fi
6634ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" "#include <sys/types.h>
6635#include <utmp.h>
6636"
6637if test "x$ac_cv_member_struct_utmp_ut_exit" = x""yes; then :
6638
6639cat >>confdefs.h <<_ACEOF
6640#define HAVE_STRUCT_UTMP_UT_EXIT 1
6641_ACEOF
6642
6643
6644fi
6645
6646
6647ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <sys/types.h>
6648#include <utmpx.h>
6649"
6650if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
6651
6652cat >>confdefs.h <<_ACEOF
6653#define HAVE_STRUCT_UTMPX_UT_HOST 1
6654_ACEOF
6655
6656
6657fi
6658ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <sys/types.h>
6659#include <utmpx.h>
6660"
6661if test "x$ac_cv_member_struct_utmpx_ut_syslen" = x""yes; then :
6662
6663cat >>confdefs.h <<_ACEOF
6664#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
6665_ACEOF
6666
6667
6668fi
6669ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "#include <sys/types.h>
6670#include <utmpx.h>
6671"
6672if test "x$ac_cv_member_struct_utmpx_ut_addr" = x""yes; then :
6673
6674cat >>confdefs.h <<_ACEOF
6675#define HAVE_STRUCT_UTMPX_UT_ADDR 1
6676_ACEOF
6677
6678
6679fi
6680ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "#include <sys/types.h>
6681#include <utmpx.h>
6682"
6683if test "x$ac_cv_member_struct_utmpx_ut_id" = x""yes; then :
6684
6685cat >>confdefs.h <<_ACEOF
6686#define HAVE_STRUCT_UTMPX_UT_ID 1
6687_ACEOF
6688
6689
6690fi
6691ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "#include <sys/types.h>
6692#include <utmpx.h>
6693"
6694if test "x$ac_cv_member_struct_utmpx_ut_pid" = x""yes; then :
6695
6696cat >>confdefs.h <<_ACEOF
6697#define HAVE_STRUCT_UTMPX_UT_PID 1
6698_ACEOF
6699
6700
6701fi
6702ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "#include <sys/types.h>
6703#include <utmpx.h>
6704"
6705if test "x$ac_cv_member_struct_utmpx_ut_type" = x""yes; then :
6706
6707cat >>confdefs.h <<_ACEOF
6708#define HAVE_STRUCT_UTMPX_UT_TYPE 1
6709_ACEOF
6710
6711
6712fi
6713ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit" "ac_cv_member_struct_utmpx_ut_exit" "#include <sys/types.h>
6714#include <utmpx.h>
6715"
6716if test "x$ac_cv_member_struct_utmpx_ut_exit" = x""yes; then :
6717
6718cat >>confdefs.h <<_ACEOF
6719#define HAVE_STRUCT_UTMPX_UT_EXIT 1
6720_ACEOF
6721
6722
6723fi
6724
6725
6726
6727
6728if test "$ac_cv_member_struct_utmp_ut_exit" = yes; then
6729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for working ut_exit.e_exit in struct utmp" >&5
6730$as_echo "checking for working ut_exit.e_exit in struct utmp" >&6; }
6731  for krb5_mem in __e_exit ut_e_exit ut_exit e_exit; do
6732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit.$krb5_mem in struct utmp" >&5
6733$as_echo_n "checking for ut_exit.$krb5_mem in struct utmp... " >&6; }
6734if { as_var=krb5_cv_struct_utmp_ut_exit_$krb5_mem; eval "test \"\${$as_var+set}\" = set"; }; then :
6735  $as_echo_n "(cached) " >&6
6736else
6737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h.  */
6739#include <sys/types.h>
6740#include <utmp.h>
6741int
6742main ()
6743{
6744struct utmp u; u.ut_exit.$krb5_mem;
6745  ;
6746  return 0;
6747}
6748_ACEOF
6749if ac_fn_c_try_compile "$LINENO"; then :
6750  eval "krb5_cv_struct_utmp_ut_exit_$krb5_mem=yes"
6751else
6752  eval "krb5_cv_struct_utmp_ut_exit_$krb5_mem=no"
6753fi
6754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755fi
6756
6757if eval "test \"`echo '$krb5_cv_struct_'utmp'_ut_exit_'$krb5_mem`\" = yes"; then
6758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6759$as_echo "yes" >&6; }
6760  krb5_utmp_e_exit=$krb5_mem
6761krb5_utmp_e_termination=`echo $krb5_mem|sed -e 's%_exit$%_termination%'`
6762else
6763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764$as_echo "no" >&6; }
6765  :
6766fi
6767  done
6768  if test "${krb5_utmp_e_exit+set}" = set; then
6769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: working ut_exit.e_exit in utmp is $krb5_utmp_e_exit" >&5
6770$as_echo "working ut_exit.e_exit in utmp is $krb5_utmp_e_exit" >&6; }
6771
6772cat >>confdefs.h <<_ACEOF
6773#define PTY_UTMP_E_EXIT $krb5_utmp_e_exit
6774_ACEOF
6775
6776
6777cat >>confdefs.h <<_ACEOF
6778#define PTY_UTMP_E_TERMINATION $krb5_utmp_e_termination
6779_ACEOF
6780
6781  else
6782    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find working ut_exit.e_exit in utmp" >&5
6783$as_echo "cannot find working ut_exit.e_exit in utmp" >&6; }
6784  fi
6785fi
6786
6787if test "$ac_cv_member_struct_utmpx_ut_exit" = yes; then
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for working ut_exit.e_exit in struct utmpx" >&5
6789$as_echo "checking for working ut_exit.e_exit in struct utmpx" >&6; }
6790  for krb5_mem in __e_exit ut_e_exit ut_exit e_exit; do
6791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit.$krb5_mem in struct utmpx" >&5
6792$as_echo_n "checking for ut_exit.$krb5_mem in struct utmpx... " >&6; }
6793if { as_var=krb5_cv_struct_utmpx_ut_exit_$krb5_mem; eval "test \"\${$as_var+set}\" = set"; }; then :
6794  $as_echo_n "(cached) " >&6
6795else
6796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h.  */
6798#include <sys/types.h>
6799#include <utmpx.h>
6800int
6801main ()
6802{
6803struct utmpx u; u.ut_exit.$krb5_mem;
6804  ;
6805  return 0;
6806}
6807_ACEOF
6808if ac_fn_c_try_compile "$LINENO"; then :
6809  eval "krb5_cv_struct_utmpx_ut_exit_$krb5_mem=yes"
6810else
6811  eval "krb5_cv_struct_utmpx_ut_exit_$krb5_mem=no"
6812fi
6813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814fi
6815
6816if eval "test \"`echo '$krb5_cv_struct_'utmpx'_ut_exit_'$krb5_mem`\" = yes"; then
6817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6818$as_echo "yes" >&6; }
6819  krb5_utmpx_e_exit=$krb5_mem
6820krb5_utmpx_e_termination=`echo $krb5_mem|sed -e 's%_exit$%_termination%'`
6821else
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824  :
6825fi
6826  done
6827  if test "${krb5_utmpx_e_exit+set}" = set; then
6828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: working ut_exit.e_exit in utmpx is $krb5_utmpx_e_exit" >&5
6829$as_echo "working ut_exit.e_exit in utmpx is $krb5_utmpx_e_exit" >&6; }
6830
6831cat >>confdefs.h <<_ACEOF
6832#define PTY_UTMPX_E_EXIT $krb5_utmpx_e_exit
6833_ACEOF
6834
6835
6836cat >>confdefs.h <<_ACEOF
6837#define PTY_UTMPX_E_TERMINATION $krb5_utmpx_e_termination
6838_ACEOF
6839
6840  else
6841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find working ut_exit.e_exit in utmpx" >&5
6842$as_echo "cannot find working ut_exit.e_exit in utmpx" >&6; }
6843  fi
6844fi
6845
6846if test "$ac_cv_header_utmpx_h" = yes; then
6847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of utmpx API" >&5
6848$as_echo_n "checking consistency of utmpx API... " >&6; }
6849  if test "$ac_cv_func_setutxent" = yes; then
6850    if test "$ac_cv_member_struct_utmpx_ut_id" = yes \
6851      && test "$ac_cv_member_struct_utmpx_ut_type" = yes \
6852      && test "$ac_cv_member_struct_utmpx_ut_pid" = yes; then
6853      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6854$as_echo "ok" >&6; }
6855    else
6856      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not ok" >&5
6857$as_echo "not ok" >&6; }
6858      as_fn_error "have setutxent but no ut_id, ut_type, or ut_pid in utmpx" "$LINENO" 5
6859    fi
6860  else
6861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not ok" >&5
6862$as_echo "not ok" >&6; }
6863    as_fn_error "have utmpx.h but no setutxent" "$LINENO" 5
6864  fi
6865fi
6866
6867if test "$ac_cv_func_setutent" = yes && \
6868  test "$ac_cv_header_utmpx_h" = no; then
6869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of sysV-ish utmp API" >&5
6870$as_echo_n "checking consistency of sysV-ish utmp API... " >&6; }
6871  if test "$ac_cv_header_utmp_h" = yes; then
6872    if test "$ac_cv_member_struct_utmp_ut_id" = yes \
6873      && test "$ac_cv_member_struct_utmp_ut_type" = yes \
6874      && test "$ac_cv_member_struct_utmp_ut_pid" = yes; then
6875      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6876$as_echo "ok" >&6; }
6877    else
6878      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not ok" >&5
6879$as_echo "not ok" >&6; }
6880      as_fn_error "have setutent but no ut_id, ut_type, or ut_pid in utmp" "$LINENO" 5
6881    fi
6882  else
6883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not ok" >&5
6884$as_echo "not ok" >&6; }
6885    as_fn_error "have setutent but no utmp.h" "$LINENO" 5
6886  fi
6887fi
6888
6889# ----- End of utmp stuff -----
6890
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking arguments to getpgrp" >&5
6892$as_echo_n "checking arguments to getpgrp... " >&6; }
6893if test "${krb5_cv_getpgrp_args+set}" = set; then :
6894  $as_echo_n "(cached) " >&6
6895else
6896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897/* end confdefs.h.  */
6898#ifndef __STDC__
6899#define __STDC__ 1
6900#endif
6901#include <unistd.h>
6902#include <sys/types.h>
6903int
6904main ()
6905{
6906pid_t pid = getpgrp(getpid())
6907  ;
6908  return 0;
6909}
6910_ACEOF
6911if ac_fn_c_try_compile "$LINENO"; then :
6912  krb5_cv_getpgrp_args=pid
6913else
6914  krb5_cv_getpgrp_args=void
6915fi
6916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917fi
6918
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getpgrp_args" >&5
6920$as_echo "$krb5_cv_getpgrp_args" >&6; }
6921if test $krb5_cv_getpgrp_args = pid; then
6922
6923$as_echo "#define GETPGRP_ONEARG 1" >>confdefs.h
6924
6925fi
6926
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setpgrp takes two arguments" >&5
6928$as_echo_n "checking if setpgrp takes two arguments... " >&6; }
6929if test "${krb5_cv_sys_setpgrp_two+set}" = set; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933/* end confdefs.h.  */
6934#include <unistd.h>
6935int
6936main ()
6937{
6938setpgrp(0,0)
6939  ;
6940  return 0;
6941}
6942_ACEOF
6943if ac_fn_c_try_compile "$LINENO"; then :
6944  krb5_cv_sys_setpgrp_two=yes
6945else
6946  krb5_cv_sys_setpgrp_two=no
6947fi
6948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949fi
6950
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_sys_setpgrp_two" >&5
6952$as_echo "$krb5_cv_sys_setpgrp_two" >&6; }
6953if test $krb5_cv_sys_setpgrp_two = yes; then
6954
6955$as_echo "#define SETPGRP_TWOARG 1" >>confdefs.h
6956
6957fi
6958
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking F_SETOWN" >&5
6960$as_echo_n "checking F_SETOWN... " >&6; }
6961if test "${krb5_cv_f_setown+set}" = set; then :
6962  $as_echo_n "(cached) " >&6
6963else
6964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966#include <sys/types.h>
6967#include <fcntl.h>
6968int
6969main ()
6970{
69711+F_SETOWN;
6972  ;
6973  return 0;
6974}
6975_ACEOF
6976if ac_fn_c_try_compile "$LINENO"; then :
6977  krb5_cv_f_setown=yes
6978else
6979  krb5_cv_f_setown=no
6980fi
6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982fi
6983
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_f_setown" >&5
6985$as_echo "$krb5_cv_f_setown" >&6; }
6986if test $krb5_cv_f_setown = yes; then
6987
6988$as_echo "#define HAVE_SETOWN 1" >>confdefs.h
6989
6990fi
6991
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking shadow password support" >&5
6993$as_echo_n "checking shadow password support... " >&6; }
6994if test "${krb5_cv_shadow_pwd+set}" = set; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998/* end confdefs.h.  */
6999#include <sys/types.h>
7000#include <pwd.h>
7001#include <shadow.h>
7002int
7003main ()
7004{
7005struct spwd *sp = getspnam("root")
7006  ;
7007  return 0;
7008}
7009_ACEOF
7010if ac_fn_c_try_link "$LINENO"; then :
7011  krb5_cv_shadow_pwd=yes
7012else
7013  krb5_cv_shadow_pwd=no
7014fi
7015rm -f core conftest.err conftest.$ac_objext \
7016    conftest$ac_exeext conftest.$ac_ext
7017fi
7018
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_shadow_pwd" >&5
7020$as_echo "$krb5_cv_shadow_pwd" >&6; }
7021if test $krb5_cv_shadow_pwd = yes; then
7022
7023$as_echo "#define HAVE_SHADOW 1" >>confdefs.h
7024
7025fi
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/environment" >&5
7027$as_echo_n "checking for /etc/environment... " >&6; }
7028if test "${ac_cv_file__etc_environment+set}" = set; then :
7029  $as_echo_n "(cached) " >&6
7030else
7031  test "$cross_compiling" = yes &&
7032  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
7033if test -r "/etc/environment"; then
7034  ac_cv_file__etc_environment=yes
7035else
7036  ac_cv_file__etc_environment=no
7037fi
7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_environment" >&5
7040$as_echo "$ac_cv_file__etc_environment" >&6; }
7041if test "x$ac_cv_file__etc_environment" = x""yes; then :
7042
7043cat >>confdefs.h <<_ACEOF
7044#define HAVE__ETC_ENVIRONMENT 1
7045_ACEOF
7046
7047fi
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/TIMEZONE" >&5
7049$as_echo_n "checking for /etc/TIMEZONE... " >&6; }
7050if test "${ac_cv_file__etc_TIMEZONE+set}" = set; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  test "$cross_compiling" = yes &&
7054  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
7055if test -r "/etc/TIMEZONE"; then
7056  ac_cv_file__etc_TIMEZONE=yes
7057else
7058  ac_cv_file__etc_TIMEZONE=no
7059fi
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_TIMEZONE" >&5
7062$as_echo "$ac_cv_file__etc_TIMEZONE" >&6; }
7063if test "x$ac_cv_file__etc_TIMEZONE" = x""yes; then :
7064
7065cat >>confdefs.h <<_ACEOF
7066#define HAVE__ETC_TIMEZONE 1
7067_ACEOF
7068
7069fi
7070
7071
7072# bsd and libpty check POSIX_TERMIOS; telnet checks USE_TERMIO.
7073ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
7074if test "x$ac_cv_header_termios_h" = x""yes; then :
7075  ac_fn_c_check_func "$LINENO" "cfsetispeed" "ac_cv_func_cfsetispeed"
7076if test "x$ac_cv_func_cfsetispeed" = x""yes; then :
7077
7078$as_echo "#define POSIX_TERMIOS 1" >>confdefs.h
7079
7080
7081$as_echo "#define USE_TERMIO 1" >>confdefs.h
7082
7083         ac_termio=1
7084fi
7085
7086fi
7087
7088
7089if test -z "$ac_termio"; then
7090    ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
7091if test "x$ac_cv_header_termio_h" = x""yes; then :
7092
7093$as_echo "#define SYSV_TERMIO 1" >>confdefs.h
7094
7095                     ac_sysv_termio=1
7096fi
7097
7098
7099    if test -n "$ac_sysv_termio"; then
7100        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc_t in termio.h" >&5
7101$as_echo_n "checking for cc_t in termio.h... " >&6; }
7102        if test "${krb_cv_type_cc_t+set}" = set; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107cc_t
7108int
7109main ()
7110{
7111#include <termio.h>
7112  ;
7113  return 0;
7114}
7115_ACEOF
7116if ac_fn_c_try_link "$LINENO"; then :
7117  cc_t foo;
7118else
7119  krb_cv_type_cc_t=yes
7120fi
7121rm -f core conftest.err conftest.$ac_objext \
7122    conftest$ac_exeext conftest.$ac_ext
7123fi
7124
7125        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_cv_type_cc_t" >&5
7126$as_echo "$krb_cv_type_cc_t" >&6; }
7127        if test $krb_cv_type_cc_t = no; then
7128
7129$as_echo "#define NO_CC_T 1" >>confdefs.h
7130
7131        fi
7132    fi
7133fi
7134
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if speed_t is defined" >&5
7136$as_echo_n "checking if speed_t is defined... " >&6; }
7137if test "${krb5_cv_type_speed_t+set}" = set; then :
7138  $as_echo_n "(cached) " >&6
7139else
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142#include <sys/types.h>
7143#if STDC_HEADERS
7144#include <stdlib.h>
7145#include <stddef.h>
7146#endif
7147#ifndef	USE_TERMIO
7148#include <sgtty.h>
7149#else
7150# ifdef	SYSV_TERMIO
7151# include <termio.h>
7152# else
7153# include <termios.h>
7154# endif
7155#endif
7156
7157int
7158main ()
7159{
7160speed_t termspeed
7161  ;
7162  return 0;
7163}
7164_ACEOF
7165if ac_fn_c_try_compile "$LINENO"; then :
7166  krb5_cv_type_speed_t=yes
7167else
7168  krb5_cv_type_speed_t=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_speed_t" >&5
7173$as_echo "$krb5_cv_type_speed_t" >&6; }
7174if test $krb5_cv_type_speed_t = no; then
7175
7176$as_echo "#define speed_t int" >>confdefs.h
7177
7178fi
7179
7180# For dejagnu tests
7181# Extract the first word of "runtest", so it can be a program name with args.
7182set dummy runtest; ac_word=$2
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184$as_echo_n "checking for $ac_word... " >&6; }
7185if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  if test -n "$RUNTEST"; then
7189  ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7190else
7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194  IFS=$as_save_IFS
7195  test -z "$as_dir" && as_dir=.
7196    for ac_exec_ext in '' $ac_executable_extensions; do
7197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198    ac_cv_prog_RUNTEST="runtest"
7199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200    break 2
7201  fi
7202done
7203  done
7204IFS=$as_save_IFS
7205
7206fi
7207fi
7208RUNTEST=$ac_cv_prog_RUNTEST
7209if test -n "$RUNTEST"; then
7210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7211$as_echo "$RUNTEST" >&6; }
7212else
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214$as_echo "no" >&6; }
7215fi
7216
7217
7218if test x"$RUNTEST" != x; then
7219    HAVE_RUNTEST=yes
7220else
7221    HAVE_RUNTEST=no
7222fi
7223
7224
7225
7226 ac_config_files="$ac_config_files ./Makefile:$srcdir/pre.in:./Makefile.in:./deps:$srcdir/post.in"
7227 ac_config_files="$ac_config_files bsd/Makefile:$srcdir/pre.in:bsd/Makefile.in:bsd/deps:$srcdir/post.in"
7228 ac_config_files="$ac_config_files libmissing/Makefile:$srcdir/pre.in:libmissing/Makefile.in:libmissing/deps:$srcdir/post.in"
7229 ac_config_files="$ac_config_files libpty/Makefile:$srcdir/pre.in:libpty/Makefile.in:libpty/deps:$srcdir/post.in"
7230 ac_config_files="$ac_config_files gssftp/Makefile:$srcdir/pre.in:gssftp/Makefile.in:gssftp/deps:$srcdir/post.in"
7231 ac_config_files="$ac_config_files gssftp/ftp/Makefile:$srcdir/pre.in:gssftp/ftp/Makefile.in:gssftp/ftp/deps:$srcdir/post.in"
7232 ac_config_files="$ac_config_files gssftp/ftpd/Makefile:$srcdir/pre.in:gssftp/ftpd/Makefile.in:gssftp/ftpd/deps:$srcdir/post.in"
7233 ac_config_files="$ac_config_files telnet/Makefile:$srcdir/pre.in:telnet/Makefile.in:telnet/deps:$srcdir/post.in"
7234 ac_config_files="$ac_config_files telnet/libtelnet/Makefile:$srcdir/pre.in:telnet/libtelnet/Makefile.in:telnet/libtelnet/deps:$srcdir/post.in"
7235 ac_config_files="$ac_config_files telnet/telnet/Makefile:$srcdir/pre.in:telnet/telnet/Makefile.in:telnet/telnet/deps:$srcdir/post.in"
7236 ac_config_files="$ac_config_files telnet/telnetd/Makefile:$srcdir/pre.in:telnet/telnetd/Makefile.in:telnet/telnetd/deps:$srcdir/post.in"
7237 ac_config_files="$ac_config_files tests/Makefile:$srcdir/pre.in:tests/Makefile.in:tests/deps:$srcdir/post.in"
7238 ac_config_files="$ac_config_files tests/resolve/Makefile:$srcdir/pre.in:tests/resolve/Makefile.in:tests/resolve/deps:$srcdir/post.in"
7239
7240cat >confcache <<\_ACEOF
7241# This file is a shell script that caches the results of configure
7242# tests run on this system so they can be shared between configure
7243# scripts and configure runs, see configure's option --config-cache.
7244# It is not useful on other systems.  If it contains results you don't
7245# want to keep, you may remove or edit it.
7246#
7247# config.status only pays attention to the cache file if you give it
7248# the --recheck option to rerun configure.
7249#
7250# `ac_cv_env_foo' variables (set or unset) will be overridden when
7251# loading this file, other *unset* `ac_cv_foo' will be assigned the
7252# following values.
7253
7254_ACEOF
7255
7256# The following way of writing the cache mishandles newlines in values,
7257# but we know of no workaround that is simple, portable, and efficient.
7258# So, we kill variables containing newlines.
7259# Ultrix sh set writes to stderr and can't be redirected directly,
7260# and sets the high bit in the cache file unless we assign to the vars.
7261(
7262  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7263    eval ac_val=\$$ac_var
7264    case $ac_val in #(
7265    *${as_nl}*)
7266      case $ac_var in #(
7267      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7268$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7269      esac
7270      case $ac_var in #(
7271      _ | IFS | as_nl) ;; #(
7272      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7273      *) { eval $ac_var=; unset $ac_var;} ;;
7274      esac ;;
7275    esac
7276  done
7277
7278  (set) 2>&1 |
7279    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7280    *${as_nl}ac_space=\ *)
7281      # `set' does not quote correctly, so add quotes: double-quote
7282      # substitution turns \\\\ into \\, and sed turns \\ into \.
7283      sed -n \
7284	"s/'/'\\\\''/g;
7285	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7286      ;; #(
7287    *)
7288      # `set' quotes correctly as required by POSIX, so do not add quotes.
7289      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7290      ;;
7291    esac |
7292    sort
7293) |
7294  sed '
7295     /^ac_cv_env_/b end
7296     t clear
7297     :clear
7298     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7299     t end
7300     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7301     :end' >>confcache
7302if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7303  if test -w "$cache_file"; then
7304    test "x$cache_file" != "x/dev/null" &&
7305      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7306$as_echo "$as_me: updating cache $cache_file" >&6;}
7307    cat confcache >$cache_file
7308  else
7309    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7310$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7311  fi
7312fi
7313rm -f confcache
7314
7315test "x$prefix" = xNONE && prefix=$ac_default_prefix
7316# Let make expand exec_prefix.
7317test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7318
7319DEFS=-DHAVE_CONFIG_H
7320
7321ac_libobjs=
7322ac_ltlibobjs=
7323for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7324  # 1. Remove the extension, and $U if already installed.
7325  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7326  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7327  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7328  #    will be set to the directory where LIBOBJS objects are built.
7329  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7330  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7331done
7332LIBOBJS=$ac_libobjs
7333
7334LTLIBOBJS=$ac_ltlibobjs
7335
7336
7337
7338: ${CONFIG_STATUS=./config.status}
7339ac_write_fail=0
7340ac_clean_files_save=$ac_clean_files
7341ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7343$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7344as_write_fail=0
7345cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7346#! $SHELL
7347# Generated by $as_me.
7348# Run this file to recreate the current configuration.
7349# Compiler output produced by configure, useful for debugging
7350# configure, is in config.log if it exists.
7351
7352debug=false
7353ac_cs_recheck=false
7354ac_cs_silent=false
7355
7356SHELL=\${CONFIG_SHELL-$SHELL}
7357export SHELL
7358_ASEOF
7359cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7360## -------------------- ##
7361## M4sh Initialization. ##
7362## -------------------- ##
7363
7364# Be more Bourne compatible
7365DUALCASE=1; export DUALCASE # for MKS sh
7366if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7367  emulate sh
7368  NULLCMD=:
7369  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7370  # is contrary to our usage.  Disable this feature.
7371  alias -g '${1+"$@"}'='"$@"'
7372  setopt NO_GLOB_SUBST
7373else
7374  case `(set -o) 2>/dev/null` in #(
7375  *posix*) :
7376    set -o posix ;; #(
7377  *) :
7378     ;;
7379esac
7380fi
7381
7382
7383as_nl='
7384'
7385export as_nl
7386# Printing a long string crashes Solaris 7 /usr/bin/printf.
7387as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7388as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7390# Prefer a ksh shell builtin over an external printf program on Solaris,
7391# but without wasting forks for bash or zsh.
7392if test -z "$BASH_VERSION$ZSH_VERSION" \
7393    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7394  as_echo='print -r --'
7395  as_echo_n='print -rn --'
7396elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7397  as_echo='printf %s\n'
7398  as_echo_n='printf %s'
7399else
7400  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7401    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7402    as_echo_n='/usr/ucb/echo -n'
7403  else
7404    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7405    as_echo_n_body='eval
7406      arg=$1;
7407      case $arg in #(
7408      *"$as_nl"*)
7409	expr "X$arg" : "X\\(.*\\)$as_nl";
7410	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7411      esac;
7412      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7413    '
7414    export as_echo_n_body
7415    as_echo_n='sh -c $as_echo_n_body as_echo'
7416  fi
7417  export as_echo_body
7418  as_echo='sh -c $as_echo_body as_echo'
7419fi
7420
7421# The user is always right.
7422if test "${PATH_SEPARATOR+set}" != set; then
7423  PATH_SEPARATOR=:
7424  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7425    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7426      PATH_SEPARATOR=';'
7427  }
7428fi
7429
7430
7431# IFS
7432# We need space, tab and new line, in precisely that order.  Quoting is
7433# there to prevent editors from complaining about space-tab.
7434# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7435# splitting by setting IFS to empty value.)
7436IFS=" ""	$as_nl"
7437
7438# Find who we are.  Look in the path if we contain no directory separator.
7439case $0 in #((
7440  *[\\/]* ) as_myself=$0 ;;
7441  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444  IFS=$as_save_IFS
7445  test -z "$as_dir" && as_dir=.
7446    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7447  done
7448IFS=$as_save_IFS
7449
7450     ;;
7451esac
7452# We did not find ourselves, most probably we were run as `sh COMMAND'
7453# in which case we are not to be found in the path.
7454if test "x$as_myself" = x; then
7455  as_myself=$0
7456fi
7457if test ! -f "$as_myself"; then
7458  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7459  exit 1
7460fi
7461
7462# Unset variables that we do not need and which cause bugs (e.g. in
7463# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7464# suppresses any "Segmentation fault" message there.  '((' could
7465# trigger a bug in pdksh 5.2.14.
7466for as_var in BASH_ENV ENV MAIL MAILPATH
7467do eval test x\${$as_var+set} = xset \
7468  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7469done
7470PS1='$ '
7471PS2='> '
7472PS4='+ '
7473
7474# NLS nuisances.
7475LC_ALL=C
7476export LC_ALL
7477LANGUAGE=C
7478export LANGUAGE
7479
7480# CDPATH.
7481(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7482
7483
7484# as_fn_error ERROR [LINENO LOG_FD]
7485# ---------------------------------
7486# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7487# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7488# script with status $?, using 1 if that was 0.
7489as_fn_error ()
7490{
7491  as_status=$?; test $as_status -eq 0 && as_status=1
7492  if test "$3"; then
7493    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7494    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7495  fi
7496  $as_echo "$as_me: error: $1" >&2
7497  as_fn_exit $as_status
7498} # as_fn_error
7499
7500
7501# as_fn_set_status STATUS
7502# -----------------------
7503# Set $? to STATUS, without forking.
7504as_fn_set_status ()
7505{
7506  return $1
7507} # as_fn_set_status
7508
7509# as_fn_exit STATUS
7510# -----------------
7511# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7512as_fn_exit ()
7513{
7514  set +e
7515  as_fn_set_status $1
7516  exit $1
7517} # as_fn_exit
7518
7519# as_fn_unset VAR
7520# ---------------
7521# Portably unset VAR.
7522as_fn_unset ()
7523{
7524  { eval $1=; unset $1;}
7525}
7526as_unset=as_fn_unset
7527# as_fn_append VAR VALUE
7528# ----------------------
7529# Append the text in VALUE to the end of the definition contained in VAR. Take
7530# advantage of any shell optimizations that allow amortized linear growth over
7531# repeated appends, instead of the typical quadratic growth present in naive
7532# implementations.
7533if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7534  eval 'as_fn_append ()
7535  {
7536    eval $1+=\$2
7537  }'
7538else
7539  as_fn_append ()
7540  {
7541    eval $1=\$$1\$2
7542  }
7543fi # as_fn_append
7544
7545# as_fn_arith ARG...
7546# ------------------
7547# Perform arithmetic evaluation on the ARGs, and store the result in the
7548# global $as_val. Take advantage of shells that can avoid forks. The arguments
7549# must be portable across $(()) and expr.
7550if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7551  eval 'as_fn_arith ()
7552  {
7553    as_val=$(( $* ))
7554  }'
7555else
7556  as_fn_arith ()
7557  {
7558    as_val=`expr "$@" || test $? -eq 1`
7559  }
7560fi # as_fn_arith
7561
7562
7563if expr a : '\(a\)' >/dev/null 2>&1 &&
7564   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7565  as_expr=expr
7566else
7567  as_expr=false
7568fi
7569
7570if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7571  as_basename=basename
7572else
7573  as_basename=false
7574fi
7575
7576if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7577  as_dirname=dirname
7578else
7579  as_dirname=false
7580fi
7581
7582as_me=`$as_basename -- "$0" ||
7583$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7584	 X"$0" : 'X\(//\)$' \| \
7585	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7586$as_echo X/"$0" |
7587    sed '/^.*\/\([^/][^/]*\)\/*$/{
7588	    s//\1/
7589	    q
7590	  }
7591	  /^X\/\(\/\/\)$/{
7592	    s//\1/
7593	    q
7594	  }
7595	  /^X\/\(\/\).*/{
7596	    s//\1/
7597	    q
7598	  }
7599	  s/.*/./; q'`
7600
7601# Avoid depending upon Character Ranges.
7602as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7603as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7604as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7605as_cr_digits='0123456789'
7606as_cr_alnum=$as_cr_Letters$as_cr_digits
7607
7608ECHO_C= ECHO_N= ECHO_T=
7609case `echo -n x` in #(((((
7610-n*)
7611  case `echo 'xy\c'` in
7612  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7613  xy)  ECHO_C='\c';;
7614  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7615       ECHO_T='	';;
7616  esac;;
7617*)
7618  ECHO_N='-n';;
7619esac
7620
7621rm -f conf$$ conf$$.exe conf$$.file
7622if test -d conf$$.dir; then
7623  rm -f conf$$.dir/conf$$.file
7624else
7625  rm -f conf$$.dir
7626  mkdir conf$$.dir 2>/dev/null
7627fi
7628if (echo >conf$$.file) 2>/dev/null; then
7629  if ln -s conf$$.file conf$$ 2>/dev/null; then
7630    as_ln_s='ln -s'
7631    # ... but there are two gotchas:
7632    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7633    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7634    # In both cases, we have to default to `cp -p'.
7635    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7636      as_ln_s='cp -p'
7637  elif ln conf$$.file conf$$ 2>/dev/null; then
7638    as_ln_s=ln
7639  else
7640    as_ln_s='cp -p'
7641  fi
7642else
7643  as_ln_s='cp -p'
7644fi
7645rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7646rmdir conf$$.dir 2>/dev/null
7647
7648
7649# as_fn_mkdir_p
7650# -------------
7651# Create "$as_dir" as a directory, including parents if necessary.
7652as_fn_mkdir_p ()
7653{
7654
7655  case $as_dir in #(
7656  -*) as_dir=./$as_dir;;
7657  esac
7658  test -d "$as_dir" || eval $as_mkdir_p || {
7659    as_dirs=
7660    while :; do
7661      case $as_dir in #(
7662      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7663      *) as_qdir=$as_dir;;
7664      esac
7665      as_dirs="'$as_qdir' $as_dirs"
7666      as_dir=`$as_dirname -- "$as_dir" ||
7667$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7668	 X"$as_dir" : 'X\(//\)[^/]' \| \
7669	 X"$as_dir" : 'X\(//\)$' \| \
7670	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7671$as_echo X"$as_dir" |
7672    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7673	    s//\1/
7674	    q
7675	  }
7676	  /^X\(\/\/\)[^/].*/{
7677	    s//\1/
7678	    q
7679	  }
7680	  /^X\(\/\/\)$/{
7681	    s//\1/
7682	    q
7683	  }
7684	  /^X\(\/\).*/{
7685	    s//\1/
7686	    q
7687	  }
7688	  s/.*/./; q'`
7689      test -d "$as_dir" && break
7690    done
7691    test -z "$as_dirs" || eval "mkdir $as_dirs"
7692  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7693
7694
7695} # as_fn_mkdir_p
7696if mkdir -p . 2>/dev/null; then
7697  as_mkdir_p='mkdir -p "$as_dir"'
7698else
7699  test -d ./-p && rmdir ./-p
7700  as_mkdir_p=false
7701fi
7702
7703if test -x / >/dev/null 2>&1; then
7704  as_test_x='test -x'
7705else
7706  if ls -dL / >/dev/null 2>&1; then
7707    as_ls_L_option=L
7708  else
7709    as_ls_L_option=
7710  fi
7711  as_test_x='
7712    eval sh -c '\''
7713      if test -d "$1"; then
7714	test -d "$1/.";
7715      else
7716	case $1 in #(
7717	-*)set "./$1";;
7718	esac;
7719	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7720	???[sx]*):;;*)false;;esac;fi
7721    '\'' sh
7722  '
7723fi
7724as_executable_p=$as_test_x
7725
7726# Sed expression to map a string onto a valid CPP name.
7727as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7728
7729# Sed expression to map a string onto a valid variable name.
7730as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7731
7732
7733exec 6>&1
7734## ----------------------------------- ##
7735## Main body of $CONFIG_STATUS script. ##
7736## ----------------------------------- ##
7737_ASEOF
7738test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7739
7740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7741# Save the log message, to keep $0 and so on meaningful, and to
7742# report actual input values of CONFIG_FILES etc. instead of their
7743# values after options handling.
7744ac_log="
7745This file was extended by $as_me, which was
7746generated by GNU Autoconf 2.65.  Invocation command line was
7747
7748  CONFIG_FILES    = $CONFIG_FILES
7749  CONFIG_HEADERS  = $CONFIG_HEADERS
7750  CONFIG_LINKS    = $CONFIG_LINKS
7751  CONFIG_COMMANDS = $CONFIG_COMMANDS
7752  $ $0 $@
7753
7754on `(hostname || uname -n) 2>/dev/null | sed 1q`
7755"
7756
7757_ACEOF
7758
7759case $ac_config_files in *"
7760"*) set x $ac_config_files; shift; ac_config_files=$*;;
7761esac
7762
7763case $ac_config_headers in *"
7764"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7765esac
7766
7767
7768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7769# Files that config.status was made for.
7770config_files="$ac_config_files"
7771config_headers="$ac_config_headers"
7772
7773_ACEOF
7774
7775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7776ac_cs_usage="\
7777\`$as_me' instantiates files and other configuration actions
7778from templates according to the current configuration.  Unless the files
7779and actions are specified as TAGs, all are instantiated by default.
7780
7781Usage: $0 [OPTION]... [TAG]...
7782
7783  -h, --help       print this help, then exit
7784  -V, --version    print version number and configuration settings, then exit
7785      --config     print configuration, then exit
7786  -q, --quiet, --silent
7787                   do not print progress messages
7788  -d, --debug      don't remove temporary files
7789      --recheck    update $as_me by reconfiguring in the same conditions
7790      --file=FILE[:TEMPLATE]
7791                   instantiate the configuration file FILE
7792      --header=FILE[:TEMPLATE]
7793                   instantiate the configuration header FILE
7794
7795Configuration files:
7796$config_files
7797
7798Configuration headers:
7799$config_headers
7800
7801Report bugs to the package provider."
7802
7803_ACEOF
7804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7805ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7806ac_cs_version="\\
7807config.status
7808configured by $0, generated by GNU Autoconf 2.65,
7809  with options \\"\$ac_cs_config\\"
7810
7811Copyright (C) 2009 Free Software Foundation, Inc.
7812This config.status script is free software; the Free Software Foundation
7813gives unlimited permission to copy, distribute and modify it."
7814
7815ac_pwd='$ac_pwd'
7816srcdir='$srcdir'
7817INSTALL='$INSTALL'
7818test -n "\$AWK" || AWK=awk
7819_ACEOF
7820
7821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7822# The default lists apply if the user does not specify any file.
7823ac_need_defaults=:
7824while test $# != 0
7825do
7826  case $1 in
7827  --*=*)
7828    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7829    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7830    ac_shift=:
7831    ;;
7832  *)
7833    ac_option=$1
7834    ac_optarg=$2
7835    ac_shift=shift
7836    ;;
7837  esac
7838
7839  case $ac_option in
7840  # Handling of the options.
7841  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7842    ac_cs_recheck=: ;;
7843  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7844    $as_echo "$ac_cs_version"; exit ;;
7845  --config | --confi | --conf | --con | --co | --c )
7846    $as_echo "$ac_cs_config"; exit ;;
7847  --debug | --debu | --deb | --de | --d | -d )
7848    debug=: ;;
7849  --file | --fil | --fi | --f )
7850    $ac_shift
7851    case $ac_optarg in
7852    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7853    esac
7854    as_fn_append CONFIG_FILES " '$ac_optarg'"
7855    ac_need_defaults=false;;
7856  --header | --heade | --head | --hea )
7857    $ac_shift
7858    case $ac_optarg in
7859    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7860    esac
7861    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7862    ac_need_defaults=false;;
7863  --he | --h)
7864    # Conflict between --help and --header
7865    as_fn_error "ambiguous option: \`$1'
7866Try \`$0 --help' for more information.";;
7867  --help | --hel | -h )
7868    $as_echo "$ac_cs_usage"; exit ;;
7869  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7870  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7871    ac_cs_silent=: ;;
7872
7873  # This is an error.
7874  -*) as_fn_error "unrecognized option: \`$1'
7875Try \`$0 --help' for more information." ;;
7876
7877  *) as_fn_append ac_config_targets " $1"
7878     ac_need_defaults=false ;;
7879
7880  esac
7881  shift
7882done
7883
7884ac_configure_extra_args=
7885
7886if $ac_cs_silent; then
7887  exec 6>/dev/null
7888  ac_configure_extra_args="$ac_configure_extra_args --silent"
7889fi
7890
7891_ACEOF
7892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7893if \$ac_cs_recheck; then
7894  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7895  shift
7896  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7897  CONFIG_SHELL='$SHELL'
7898  export CONFIG_SHELL
7899  exec "\$@"
7900fi
7901
7902_ACEOF
7903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7904exec 5>>config.log
7905{
7906  echo
7907  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7908## Running $as_me. ##
7909_ASBOX
7910  $as_echo "$ac_log"
7911} >&5
7912
7913_ACEOF
7914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7915_ACEOF
7916
7917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7918
7919# Handling of arguments.
7920for ac_config_target in $ac_config_targets
7921do
7922  case $ac_config_target in
7923    "autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconf.h" ;;
7924    "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/pre.in:./Makefile.in:./deps:$srcdir/post.in" ;;
7925    "bsd/Makefile") CONFIG_FILES="$CONFIG_FILES bsd/Makefile:$srcdir/pre.in:bsd/Makefile.in:bsd/deps:$srcdir/post.in" ;;
7926    "libmissing/Makefile") CONFIG_FILES="$CONFIG_FILES libmissing/Makefile:$srcdir/pre.in:libmissing/Makefile.in:libmissing/deps:$srcdir/post.in" ;;
7927    "libpty/Makefile") CONFIG_FILES="$CONFIG_FILES libpty/Makefile:$srcdir/pre.in:libpty/Makefile.in:libpty/deps:$srcdir/post.in" ;;
7928    "gssftp/Makefile") CONFIG_FILES="$CONFIG_FILES gssftp/Makefile:$srcdir/pre.in:gssftp/Makefile.in:gssftp/deps:$srcdir/post.in" ;;
7929    "gssftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES gssftp/ftp/Makefile:$srcdir/pre.in:gssftp/ftp/Makefile.in:gssftp/ftp/deps:$srcdir/post.in" ;;
7930    "gssftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES gssftp/ftpd/Makefile:$srcdir/pre.in:gssftp/ftpd/Makefile.in:gssftp/ftpd/deps:$srcdir/post.in" ;;
7931    "telnet/Makefile") CONFIG_FILES="$CONFIG_FILES telnet/Makefile:$srcdir/pre.in:telnet/Makefile.in:telnet/deps:$srcdir/post.in" ;;
7932    "telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES telnet/libtelnet/Makefile:$srcdir/pre.in:telnet/libtelnet/Makefile.in:telnet/libtelnet/deps:$srcdir/post.in" ;;
7933    "telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES telnet/telnet/Makefile:$srcdir/pre.in:telnet/telnet/Makefile.in:telnet/telnet/deps:$srcdir/post.in" ;;
7934    "telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES telnet/telnetd/Makefile:$srcdir/pre.in:telnet/telnetd/Makefile.in:telnet/telnetd/deps:$srcdir/post.in" ;;
7935    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:$srcdir/pre.in:tests/Makefile.in:tests/deps:$srcdir/post.in" ;;
7936    "tests/resolve/Makefile") CONFIG_FILES="$CONFIG_FILES tests/resolve/Makefile:$srcdir/pre.in:tests/resolve/Makefile.in:tests/resolve/deps:$srcdir/post.in" ;;
7937
7938  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7939  esac
7940done
7941
7942
7943# If the user did not use the arguments to specify the items to instantiate,
7944# then the envvar interface is used.  Set only those that are not.
7945# We use the long form for the default assignment because of an extremely
7946# bizarre bug on SunOS 4.1.3.
7947if $ac_need_defaults; then
7948  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7949  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7950fi
7951
7952# Have a temporary directory for convenience.  Make it in the build tree
7953# simply because there is no reason against having it here, and in addition,
7954# creating and moving files from /tmp can sometimes cause problems.
7955# Hook for its removal unless debugging.
7956# Note that there is a small window in which the directory will not be cleaned:
7957# after its creation but before its name has been assigned to `$tmp'.
7958$debug ||
7959{
7960  tmp=
7961  trap 'exit_status=$?
7962  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7963' 0
7964  trap 'as_fn_exit 1' 1 2 13 15
7965}
7966# Create a (secure) tmp directory for tmp files.
7967
7968{
7969  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7970  test -n "$tmp" && test -d "$tmp"
7971}  ||
7972{
7973  tmp=./conf$$-$RANDOM
7974  (umask 077 && mkdir "$tmp")
7975} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7976
7977# Set up the scripts for CONFIG_FILES section.
7978# No need to generate them if there are no CONFIG_FILES.
7979# This happens for instance with `./config.status config.h'.
7980if test -n "$CONFIG_FILES"; then
7981
7982
7983ac_cr=`echo X | tr X '\015'`
7984# On cygwin, bash can eat \r inside `` if the user requested igncr.
7985# But we know of no other shell where ac_cr would be empty at this
7986# point, so we can use a bashism as a fallback.
7987if test "x$ac_cr" = x; then
7988  eval ac_cr=\$\'\\r\'
7989fi
7990ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7991if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7992  ac_cs_awk_cr='\r'
7993else
7994  ac_cs_awk_cr=$ac_cr
7995fi
7996
7997echo 'BEGIN {' >"$tmp/subs1.awk" &&
7998_ACEOF
7999
8000
8001{
8002  echo "cat >conf$$subs.awk <<_ACEOF" &&
8003  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8004  echo "_ACEOF"
8005} >conf$$subs.sh ||
8006  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8007ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8008ac_delim='%!_!# '
8009for ac_last_try in false false false false false :; do
8010  . ./conf$$subs.sh ||
8011    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8012
8013  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8014  if test $ac_delim_n = $ac_delim_num; then
8015    break
8016  elif $ac_last_try; then
8017    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8018  else
8019    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8020  fi
8021done
8022rm -f conf$$subs.sh
8023
8024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8025cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8026_ACEOF
8027sed -n '
8028h
8029s/^/S["/; s/!.*/"]=/
8030p
8031g
8032s/^[^!]*!//
8033:repl
8034t repl
8035s/'"$ac_delim"'$//
8036t delim
8037:nl
8038h
8039s/\(.\{148\}\)..*/\1/
8040t more1
8041s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8042p
8043n
8044b repl
8045:more1
8046s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8047p
8048g
8049s/.\{148\}//
8050t nl
8051:delim
8052h
8053s/\(.\{148\}\)..*/\1/
8054t more2
8055s/["\\]/\\&/g; s/^/"/; s/$/"/
8056p
8057b
8058:more2
8059s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8060p
8061g
8062s/.\{148\}//
8063t delim
8064' <conf$$subs.awk | sed '
8065/^[^""]/{
8066  N
8067  s/\n//
8068}
8069' >>$CONFIG_STATUS || ac_write_fail=1
8070rm -f conf$$subs.awk
8071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8072_ACAWK
8073cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8074  for (key in S) S_is_set[key] = 1
8075  FS = ""
8076
8077}
8078{
8079  line = $ 0
8080  nfields = split(line, field, "@")
8081  substed = 0
8082  len = length(field[1])
8083  for (i = 2; i < nfields; i++) {
8084    key = field[i]
8085    keylen = length(key)
8086    if (S_is_set[key]) {
8087      value = S[key]
8088      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8089      len += length(value) + length(field[++i])
8090      substed = 1
8091    } else
8092      len += 1 + keylen
8093  }
8094
8095  print line
8096}
8097
8098_ACAWK
8099_ACEOF
8100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8101if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8102  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8103else
8104  cat
8105fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8106  || as_fn_error "could not setup config files machinery" "$LINENO" 5
8107_ACEOF
8108
8109# VPATH may cause trouble with some makes, so we remove $(srcdir),
8110# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8111# trailing colons and then remove the whole line if VPATH becomes empty
8112# (actually we leave an empty line to preserve line numbers).
8113if test "x$srcdir" = x.; then
8114  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8115s/:*\$(srcdir):*/:/
8116s/:*\${srcdir}:*/:/
8117s/:*@srcdir@:*/:/
8118s/^\([^=]*=[	 ]*\):*/\1/
8119s/:*$//
8120s/^[^=]*=[	 ]*$//
8121}'
8122fi
8123
8124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8125fi # test -n "$CONFIG_FILES"
8126
8127# Set up the scripts for CONFIG_HEADERS section.
8128# No need to generate them if there are no CONFIG_HEADERS.
8129# This happens for instance with `./config.status Makefile'.
8130if test -n "$CONFIG_HEADERS"; then
8131cat >"$tmp/defines.awk" <<\_ACAWK ||
8132BEGIN {
8133_ACEOF
8134
8135# Transform confdefs.h into an awk script `defines.awk', embedded as
8136# here-document in config.status, that substitutes the proper values into
8137# config.h.in to produce config.h.
8138
8139# Create a delimiter string that does not exist in confdefs.h, to ease
8140# handling of long lines.
8141ac_delim='%!_!# '
8142for ac_last_try in false false :; do
8143  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8144  if test -z "$ac_t"; then
8145    break
8146  elif $ac_last_try; then
8147    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8148  else
8149    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8150  fi
8151done
8152
8153# For the awk script, D is an array of macro values keyed by name,
8154# likewise P contains macro parameters if any.  Preserve backslash
8155# newline sequences.
8156
8157ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8158sed -n '
8159s/.\{148\}/&'"$ac_delim"'/g
8160t rset
8161:rset
8162s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8163t def
8164d
8165:def
8166s/\\$//
8167t bsnl
8168s/["\\]/\\&/g
8169s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8170D["\1"]=" \3"/p
8171s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8172d
8173:bsnl
8174s/["\\]/\\&/g
8175s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8176D["\1"]=" \3\\\\\\n"\\/p
8177t cont
8178s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8179t cont
8180d
8181:cont
8182n
8183s/.\{148\}/&'"$ac_delim"'/g
8184t clear
8185:clear
8186s/\\$//
8187t bsnlc
8188s/["\\]/\\&/g; s/^/"/; s/$/"/p
8189d
8190:bsnlc
8191s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8192b cont
8193' <confdefs.h | sed '
8194s/'"$ac_delim"'/"\\\
8195"/g' >>$CONFIG_STATUS || ac_write_fail=1
8196
8197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8198  for (key in D) D_is_set[key] = 1
8199  FS = ""
8200}
8201/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8202  line = \$ 0
8203  split(line, arg, " ")
8204  if (arg[1] == "#") {
8205    defundef = arg[2]
8206    mac1 = arg[3]
8207  } else {
8208    defundef = substr(arg[1], 2)
8209    mac1 = arg[2]
8210  }
8211  split(mac1, mac2, "(") #)
8212  macro = mac2[1]
8213  prefix = substr(line, 1, index(line, defundef) - 1)
8214  if (D_is_set[macro]) {
8215    # Preserve the white space surrounding the "#".
8216    print prefix "define", macro P[macro] D[macro]
8217    next
8218  } else {
8219    # Replace #undef with comments.  This is necessary, for example,
8220    # in the case of _POSIX_SOURCE, which is predefined and required
8221    # on some systems where configure will not decide to define it.
8222    if (defundef == "undef") {
8223      print "/*", prefix defundef, macro, "*/"
8224      next
8225    }
8226  }
8227}
8228{ print }
8229_ACAWK
8230_ACEOF
8231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8232  as_fn_error "could not setup config headers machinery" "$LINENO" 5
8233fi # test -n "$CONFIG_HEADERS"
8234
8235
8236eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
8237shift
8238for ac_tag
8239do
8240  case $ac_tag in
8241  :[FHLC]) ac_mode=$ac_tag; continue;;
8242  esac
8243  case $ac_mode$ac_tag in
8244  :[FHL]*:*);;
8245  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8246  :[FH]-) ac_tag=-:-;;
8247  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8248  esac
8249  ac_save_IFS=$IFS
8250  IFS=:
8251  set x $ac_tag
8252  IFS=$ac_save_IFS
8253  shift
8254  ac_file=$1
8255  shift
8256
8257  case $ac_mode in
8258  :L) ac_source=$1;;
8259  :[FH])
8260    ac_file_inputs=
8261    for ac_f
8262    do
8263      case $ac_f in
8264      -) ac_f="$tmp/stdin";;
8265      *) # Look for the file first in the build tree, then in the source tree
8266	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8267	 # because $ac_f cannot contain `:'.
8268	 test -f "$ac_f" ||
8269	   case $ac_f in
8270	   [\\/$]*) false;;
8271	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8272	   esac ||
8273	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8274      esac
8275      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8276      as_fn_append ac_file_inputs " '$ac_f'"
8277    done
8278
8279    # Let's still pretend it is `configure' which instantiates (i.e., don't
8280    # use $as_me), people would be surprised to read:
8281    #    /* config.h.  Generated by config.status.  */
8282    configure_input='Generated from '`
8283	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8284	`' by configure.'
8285    if test x"$ac_file" != x-; then
8286      configure_input="$ac_file.  $configure_input"
8287      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8288$as_echo "$as_me: creating $ac_file" >&6;}
8289    fi
8290    # Neutralize special characters interpreted by sed in replacement strings.
8291    case $configure_input in #(
8292    *\&* | *\|* | *\\* )
8293       ac_sed_conf_input=`$as_echo "$configure_input" |
8294       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8295    *) ac_sed_conf_input=$configure_input;;
8296    esac
8297
8298    case $ac_tag in
8299    *:-:* | *:-) cat >"$tmp/stdin" \
8300      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8301    esac
8302    ;;
8303  esac
8304
8305  ac_dir=`$as_dirname -- "$ac_file" ||
8306$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8307	 X"$ac_file" : 'X\(//\)[^/]' \| \
8308	 X"$ac_file" : 'X\(//\)$' \| \
8309	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8310$as_echo X"$ac_file" |
8311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8312	    s//\1/
8313	    q
8314	  }
8315	  /^X\(\/\/\)[^/].*/{
8316	    s//\1/
8317	    q
8318	  }
8319	  /^X\(\/\/\)$/{
8320	    s//\1/
8321	    q
8322	  }
8323	  /^X\(\/\).*/{
8324	    s//\1/
8325	    q
8326	  }
8327	  s/.*/./; q'`
8328  as_dir="$ac_dir"; as_fn_mkdir_p
8329  ac_builddir=.
8330
8331case "$ac_dir" in
8332.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8333*)
8334  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8335  # A ".." for each directory in $ac_dir_suffix.
8336  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8337  case $ac_top_builddir_sub in
8338  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8339  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8340  esac ;;
8341esac
8342ac_abs_top_builddir=$ac_pwd
8343ac_abs_builddir=$ac_pwd$ac_dir_suffix
8344# for backward compatibility:
8345ac_top_builddir=$ac_top_build_prefix
8346
8347case $srcdir in
8348  .)  # We are building in place.
8349    ac_srcdir=.
8350    ac_top_srcdir=$ac_top_builddir_sub
8351    ac_abs_top_srcdir=$ac_pwd ;;
8352  [\\/]* | ?:[\\/]* )  # Absolute name.
8353    ac_srcdir=$srcdir$ac_dir_suffix;
8354    ac_top_srcdir=$srcdir
8355    ac_abs_top_srcdir=$srcdir ;;
8356  *) # Relative name.
8357    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8358    ac_top_srcdir=$ac_top_build_prefix$srcdir
8359    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8360esac
8361ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8362
8363
8364  case $ac_mode in
8365  :F)
8366  #
8367  # CONFIG_FILE
8368  #
8369
8370  case $INSTALL in
8371  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8372  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8373  esac
8374_ACEOF
8375
8376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8377# If the template does not know about datarootdir, expand it.
8378# FIXME: This hack should be removed a few years after 2.60.
8379ac_datarootdir_hack=; ac_datarootdir_seen=
8380ac_sed_dataroot='
8381/datarootdir/ {
8382  p
8383  q
8384}
8385/@datadir@/p
8386/@docdir@/p
8387/@infodir@/p
8388/@localedir@/p
8389/@mandir@/p'
8390case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8391*datarootdir*) ac_datarootdir_seen=yes;;
8392*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8393  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8394$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8395_ACEOF
8396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8397  ac_datarootdir_hack='
8398  s&@datadir@&$datadir&g
8399  s&@docdir@&$docdir&g
8400  s&@infodir@&$infodir&g
8401  s&@localedir@&$localedir&g
8402  s&@mandir@&$mandir&g
8403  s&\\\${datarootdir}&$datarootdir&g' ;;
8404esac
8405_ACEOF
8406
8407# Neutralize VPATH when `$srcdir' = `.'.
8408# Shell code in configure.ac might set extrasub.
8409# FIXME: do we really want to maintain this feature?
8410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8411ac_sed_extra="$ac_vpsub
8412$extrasub
8413_ACEOF
8414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8415:t
8416/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8417s|@configure_input@|$ac_sed_conf_input|;t t
8418s&@top_builddir@&$ac_top_builddir_sub&;t t
8419s&@top_build_prefix@&$ac_top_build_prefix&;t t
8420s&@srcdir@&$ac_srcdir&;t t
8421s&@abs_srcdir@&$ac_abs_srcdir&;t t
8422s&@top_srcdir@&$ac_top_srcdir&;t t
8423s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8424s&@builddir@&$ac_builddir&;t t
8425s&@abs_builddir@&$ac_abs_builddir&;t t
8426s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8427s&@INSTALL@&$ac_INSTALL&;t t
8428$ac_datarootdir_hack
8429"
8430eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8431  || as_fn_error "could not create $ac_file" "$LINENO" 5
8432
8433test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8434  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8435  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8436  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8437which seems to be undefined.  Please make sure it is defined." >&5
8438$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8439which seems to be undefined.  Please make sure it is defined." >&2;}
8440
8441  rm -f "$tmp/stdin"
8442  case $ac_file in
8443  -) cat "$tmp/out" && rm -f "$tmp/out";;
8444  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8445  esac \
8446  || as_fn_error "could not create $ac_file" "$LINENO" 5
8447 ;;
8448  :H)
8449  #
8450  # CONFIG_HEADER
8451  #
8452  if test x"$ac_file" != x-; then
8453    {
8454      $as_echo "/* $configure_input  */" \
8455      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8456    } >"$tmp/config.h" \
8457      || as_fn_error "could not create $ac_file" "$LINENO" 5
8458    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8459      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8460$as_echo "$as_me: $ac_file is unchanged" >&6;}
8461    else
8462      rm -f "$ac_file"
8463      mv "$tmp/config.h" "$ac_file" \
8464	|| as_fn_error "could not create $ac_file" "$LINENO" 5
8465    fi
8466  else
8467    $as_echo "/* $configure_input  */" \
8468      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8469      || as_fn_error "could not create -" "$LINENO" 5
8470  fi
8471 ;;
8472
8473
8474  esac
8475
8476done # for ac_tag
8477
8478
8479as_fn_exit 0
8480_ACEOF
8481ac_clean_files=$ac_clean_files_save
8482
8483test $ac_write_fail = 0 ||
8484  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8485
8486
8487# configure is writing to config.log, and then calls config.status.
8488# config.status does its own redirection, appending to config.log.
8489# Unfortunately, on DOS this fails, as config.log is still kept open
8490# by configure, so config.status won't be able to write to it; its
8491# output is simply discarded.  So we exec the FD to /dev/null,
8492# effectively closing config.log, so it can be properly (re)opened and
8493# appended to by config.status.  When coming back to configure, we
8494# need to make the FD available again.
8495if test "$no_create" != yes; then
8496  ac_cs_success=:
8497  ac_config_status_args=
8498  test "$silent" = yes &&
8499    ac_config_status_args="$ac_config_status_args --quiet"
8500  exec 5>/dev/null
8501  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8502  exec 5>>config.log
8503  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8504  # would make configure fail if this is the last instruction.
8505  $ac_cs_success || as_fn_exit $?
8506fi
8507if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8508  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8509$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8510fi
8511
8512