1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="common/flock.c"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_header_list=
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654SET_MAKE
655CC
656CFLAGS
657LDFLAGS
658CPPFLAGS
659ac_ct_CC
660EXEEXT
661OBJEXT
662YACC
663YFLAGS
664LEX
665LEX_OUTPUT_ROOT
666LEXLIB
667AR
668RANLIB
669INSTALL_PROGRAM
670INSTALL_SCRIPT
671INSTALL_DATA
672GPERF
673AR_FLAG
674USE_PAM
675CPP
676GREP
677EGREP
678RANLIB_CMD
679POPAUTH
680APOP_UID
681APOP
682APOP_DIR
683POPPASSD
684NETWORK_LIBS
685KERBEROS_LIBS
686DBM_LIBS
687SASL_LIBS
688LIBOBJS
689OS_DEFS
690CDEFS
691GPERFCMD
692MISSING_OBJS
693MISSING_SRCS
694SSL_DIR_INC
695SSL_LIBS
696LTLIBOBJS'
697ac_subst_files=''
698      ac_precious_vars='build_alias
699host_alias
700target_alias
701CC
702CFLAGS
703LDFLAGS
704LIBS
705CPPFLAGS
706YACC
707YFLAGS
708CPP'
709
710
711# Initialize some variables set by options.
712ac_init_help=
713ac_init_version=false
714# The variables have the same names as the options, with
715# dashes changed to underlines.
716cache_file=/dev/null
717exec_prefix=NONE
718no_create=
719no_recursion=
720prefix=NONE
721program_prefix=NONE
722program_suffix=NONE
723program_transform_name=s,x,x,
724silent=
725site=
726srcdir=
727verbose=
728x_includes=NONE
729x_libraries=NONE
730
731# Installation directory options.
732# These are left unexpanded so users can "make install exec_prefix=/foo"
733# and all the variables that are supposed to be based on exec_prefix
734# by default will actually change.
735# Use braces instead of parens because sh, perl, etc. also accept them.
736# (The list follows the same order as the GNU Coding Standards.)
737bindir='${exec_prefix}/bin'
738sbindir='${exec_prefix}/sbin'
739libexecdir='${exec_prefix}/libexec'
740datarootdir='${prefix}/share'
741datadir='${datarootdir}'
742sysconfdir='${prefix}/etc'
743sharedstatedir='${prefix}/com'
744localstatedir='${prefix}/var'
745includedir='${prefix}/include'
746oldincludedir='/usr/include'
747docdir='${datarootdir}/doc/${PACKAGE}'
748infodir='${datarootdir}/info'
749htmldir='${docdir}'
750dvidir='${docdir}'
751pdfdir='${docdir}'
752psdir='${docdir}'
753libdir='${exec_prefix}/lib'
754localedir='${datarootdir}/locale'
755mandir='${datarootdir}/man'
756
757ac_prev=
758ac_dashdash=
759for ac_option
760do
761  # If the previous option needs an argument, assign it.
762  if test -n "$ac_prev"; then
763    eval $ac_prev=\$ac_option
764    ac_prev=
765    continue
766  fi
767
768  case $ac_option in
769  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770  *)	ac_optarg=yes ;;
771  esac
772
773  # Accept the important Cygnus configure options, so we can diagnose typos.
774
775  case $ac_dashdash$ac_option in
776  --)
777    ac_dashdash=yes ;;
778
779  -bindir | --bindir | --bindi | --bind | --bin | --bi)
780    ac_prev=bindir ;;
781  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
782    bindir=$ac_optarg ;;
783
784  -build | --build | --buil | --bui | --bu)
785    ac_prev=build_alias ;;
786  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
787    build_alias=$ac_optarg ;;
788
789  -cache-file | --cache-file | --cache-fil | --cache-fi \
790  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
791    ac_prev=cache_file ;;
792  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
793  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
794    cache_file=$ac_optarg ;;
795
796  --config-cache | -C)
797    cache_file=config.cache ;;
798
799  -datadir | --datadir | --datadi | --datad)
800    ac_prev=datadir ;;
801  -datadir=* | --datadir=* | --datadi=* | --datad=*)
802    datadir=$ac_optarg ;;
803
804  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
805  | --dataroo | --dataro | --datar)
806    ac_prev=datarootdir ;;
807  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
808  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
809    datarootdir=$ac_optarg ;;
810
811  -disable-* | --disable-*)
812    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
813    # Reject names that are not valid shell variable names.
814    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
815      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
816   { (exit 1); exit 1; }; }
817    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
818    eval enable_$ac_feature=no ;;
819
820  -docdir | --docdir | --docdi | --doc | --do)
821    ac_prev=docdir ;;
822  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
823    docdir=$ac_optarg ;;
824
825  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826    ac_prev=dvidir ;;
827  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
828    dvidir=$ac_optarg ;;
829
830  -enable-* | --enable-*)
831    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832    # Reject names that are not valid shell variable names.
833    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
834      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
835   { (exit 1); exit 1; }; }
836    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
837    eval enable_$ac_feature=\$ac_optarg ;;
838
839  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
840  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
841  | --exec | --exe | --ex)
842    ac_prev=exec_prefix ;;
843  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
844  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
845  | --exec=* | --exe=* | --ex=*)
846    exec_prefix=$ac_optarg ;;
847
848  -gas | --gas | --ga | --g)
849    # Obsolete; use --with-gas.
850    with_gas=yes ;;
851
852  -help | --help | --hel | --he | -h)
853    ac_init_help=long ;;
854  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
855    ac_init_help=recursive ;;
856  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
857    ac_init_help=short ;;
858
859  -host | --host | --hos | --ho)
860    ac_prev=host_alias ;;
861  -host=* | --host=* | --hos=* | --ho=*)
862    host_alias=$ac_optarg ;;
863
864  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
865    ac_prev=htmldir ;;
866  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
867  | --ht=*)
868    htmldir=$ac_optarg ;;
869
870  -includedir | --includedir | --includedi | --included | --include \
871  | --includ | --inclu | --incl | --inc)
872    ac_prev=includedir ;;
873  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
874  | --includ=* | --inclu=* | --incl=* | --inc=*)
875    includedir=$ac_optarg ;;
876
877  -infodir | --infodir | --infodi | --infod | --info | --inf)
878    ac_prev=infodir ;;
879  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
880    infodir=$ac_optarg ;;
881
882  -libdir | --libdir | --libdi | --libd)
883    ac_prev=libdir ;;
884  -libdir=* | --libdir=* | --libdi=* | --libd=*)
885    libdir=$ac_optarg ;;
886
887  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
888  | --libexe | --libex | --libe)
889    ac_prev=libexecdir ;;
890  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
891  | --libexe=* | --libex=* | --libe=*)
892    libexecdir=$ac_optarg ;;
893
894  -localedir | --localedir | --localedi | --localed | --locale)
895    ac_prev=localedir ;;
896  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
897    localedir=$ac_optarg ;;
898
899  -localstatedir | --localstatedir | --localstatedi | --localstated \
900  | --localstate | --localstat | --localsta | --localst | --locals)
901    ac_prev=localstatedir ;;
902  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
903  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
904    localstatedir=$ac_optarg ;;
905
906  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
907    ac_prev=mandir ;;
908  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
909    mandir=$ac_optarg ;;
910
911  -nfp | --nfp | --nf)
912    # Obsolete; use --without-fp.
913    with_fp=no ;;
914
915  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
916  | --no-cr | --no-c | -n)
917    no_create=yes ;;
918
919  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
920  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
921    no_recursion=yes ;;
922
923  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
924  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
925  | --oldin | --oldi | --old | --ol | --o)
926    ac_prev=oldincludedir ;;
927  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
928  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
929  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
930    oldincludedir=$ac_optarg ;;
931
932  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
933    ac_prev=prefix ;;
934  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
935    prefix=$ac_optarg ;;
936
937  -program-prefix | --program-prefix | --program-prefi | --program-pref \
938  | --program-pre | --program-pr | --program-p)
939    ac_prev=program_prefix ;;
940  -program-prefix=* | --program-prefix=* | --program-prefi=* \
941  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
942    program_prefix=$ac_optarg ;;
943
944  -program-suffix | --program-suffix | --program-suffi | --program-suff \
945  | --program-suf | --program-su | --program-s)
946    ac_prev=program_suffix ;;
947  -program-suffix=* | --program-suffix=* | --program-suffi=* \
948  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
949    program_suffix=$ac_optarg ;;
950
951  -program-transform-name | --program-transform-name \
952  | --program-transform-nam | --program-transform-na \
953  | --program-transform-n | --program-transform- \
954  | --program-transform | --program-transfor \
955  | --program-transfo | --program-transf \
956  | --program-trans | --program-tran \
957  | --progr-tra | --program-tr | --program-t)
958    ac_prev=program_transform_name ;;
959  -program-transform-name=* | --program-transform-name=* \
960  | --program-transform-nam=* | --program-transform-na=* \
961  | --program-transform-n=* | --program-transform-=* \
962  | --program-transform=* | --program-transfor=* \
963  | --program-transfo=* | --program-transf=* \
964  | --program-trans=* | --program-tran=* \
965  | --progr-tra=* | --program-tr=* | --program-t=*)
966    program_transform_name=$ac_optarg ;;
967
968  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
969    ac_prev=pdfdir ;;
970  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
971    pdfdir=$ac_optarg ;;
972
973  -psdir | --psdir | --psdi | --psd | --ps)
974    ac_prev=psdir ;;
975  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
976    psdir=$ac_optarg ;;
977
978  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
979  | -silent | --silent | --silen | --sile | --sil)
980    silent=yes ;;
981
982  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
983    ac_prev=sbindir ;;
984  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
985  | --sbi=* | --sb=*)
986    sbindir=$ac_optarg ;;
987
988  -sharedstatedir | --sharedstatedir | --sharedstatedi \
989  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
990  | --sharedst | --shareds | --shared | --share | --shar \
991  | --sha | --sh)
992    ac_prev=sharedstatedir ;;
993  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
994  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
995  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
996  | --sha=* | --sh=*)
997    sharedstatedir=$ac_optarg ;;
998
999  -site | --site | --sit)
1000    ac_prev=site ;;
1001  -site=* | --site=* | --sit=*)
1002    site=$ac_optarg ;;
1003
1004  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1005    ac_prev=srcdir ;;
1006  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1007    srcdir=$ac_optarg ;;
1008
1009  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1010  | --syscon | --sysco | --sysc | --sys | --sy)
1011    ac_prev=sysconfdir ;;
1012  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1013  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1014    sysconfdir=$ac_optarg ;;
1015
1016  -target | --target | --targe | --targ | --tar | --ta | --t)
1017    ac_prev=target_alias ;;
1018  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1019    target_alias=$ac_optarg ;;
1020
1021  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1022    verbose=yes ;;
1023
1024  -version | --version | --versio | --versi | --vers | -V)
1025    ac_init_version=: ;;
1026
1027  -with-* | --with-*)
1028    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1029    # Reject names that are not valid shell variable names.
1030    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031      { echo "$as_me: error: invalid package name: $ac_package" >&2
1032   { (exit 1); exit 1; }; }
1033    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1034    eval with_$ac_package=\$ac_optarg ;;
1035
1036  -without-* | --without-*)
1037    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038    # Reject names that are not valid shell variable names.
1039    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040      { echo "$as_me: error: invalid package name: $ac_package" >&2
1041   { (exit 1); exit 1; }; }
1042    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1043    eval with_$ac_package=no ;;
1044
1045  --x)
1046    # Obsolete; use --with-x.
1047    with_x=yes ;;
1048
1049  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1050  | --x-incl | --x-inc | --x-in | --x-i)
1051    ac_prev=x_includes ;;
1052  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1053  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1054    x_includes=$ac_optarg ;;
1055
1056  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1057  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1058    ac_prev=x_libraries ;;
1059  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1060  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1061    x_libraries=$ac_optarg ;;
1062
1063  -*) { echo "$as_me: error: unrecognized option: $ac_option
1064Try \`$0 --help' for more information." >&2
1065   { (exit 1); exit 1; }; }
1066    ;;
1067
1068  *=*)
1069    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1070    # Reject names that are not valid shell variable names.
1071    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1072      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1073   { (exit 1); exit 1; }; }
1074    eval $ac_envvar=\$ac_optarg
1075    export $ac_envvar ;;
1076
1077  *)
1078    # FIXME: should be removed in autoconf 3.0.
1079    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1080    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1082    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1083    ;;
1084
1085  esac
1086done
1087
1088if test -n "$ac_prev"; then
1089  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1090  { echo "$as_me: error: missing argument to $ac_option" >&2
1091   { (exit 1); exit 1; }; }
1092fi
1093
1094# Be sure to have absolute directory names.
1095for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1096		datadir sysconfdir sharedstatedir localstatedir includedir \
1097		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1098		libdir localedir mandir
1099do
1100  eval ac_val=\$$ac_var
1101  case $ac_val in
1102    [\\/$]* | ?:[\\/]* )  continue;;
1103    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1104  esac
1105  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1106   { (exit 1); exit 1; }; }
1107done
1108
1109# There might be people who depend on the old broken behavior: `$host'
1110# used to hold the argument of --host etc.
1111# FIXME: To remove some day.
1112build=$build_alias
1113host=$host_alias
1114target=$target_alias
1115
1116# FIXME: To remove some day.
1117if test "x$host_alias" != x; then
1118  if test "x$build_alias" = x; then
1119    cross_compiling=maybe
1120    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1121    If a cross compiler is detected then cross compile mode will be used." >&2
1122  elif test "x$build_alias" != "x$host_alias"; then
1123    cross_compiling=yes
1124  fi
1125fi
1126
1127ac_tool_prefix=
1128test -n "$host_alias" && ac_tool_prefix=$host_alias-
1129
1130test "$silent" = yes && exec 6>/dev/null
1131
1132
1133ac_pwd=`pwd` && test -n "$ac_pwd" &&
1134ac_ls_di=`ls -di .` &&
1135ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1136  { echo "$as_me: error: Working directory cannot be determined" >&2
1137   { (exit 1); exit 1; }; }
1138test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139  { echo "$as_me: error: pwd does not report name of working directory" >&2
1140   { (exit 1); exit 1; }; }
1141
1142
1143# Find the source files, if location was not specified.
1144if test -z "$srcdir"; then
1145  ac_srcdir_defaulted=yes
1146  # Try the directory containing this script, then the parent directory.
1147  ac_confdir=`$as_dirname -- "$0" ||
1148$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1149	 X"$0" : 'X\(//\)[^/]' \| \
1150	 X"$0" : 'X\(//\)$' \| \
1151	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1152echo X"$0" |
1153    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1154	    s//\1/
1155	    q
1156	  }
1157	  /^X\(\/\/\)[^/].*/{
1158	    s//\1/
1159	    q
1160	  }
1161	  /^X\(\/\/\)$/{
1162	    s//\1/
1163	    q
1164	  }
1165	  /^X\(\/\).*/{
1166	    s//\1/
1167	    q
1168	  }
1169	  s/.*/./; q'`
1170  srcdir=$ac_confdir
1171  if test ! -r "$srcdir/$ac_unique_file"; then
1172    srcdir=..
1173  fi
1174else
1175  ac_srcdir_defaulted=no
1176fi
1177if test ! -r "$srcdir/$ac_unique_file"; then
1178  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1179  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1180   { (exit 1); exit 1; }; }
1181fi
1182ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1183ac_abs_confdir=`(
1184	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1185   { (exit 1); exit 1; }; }
1186	pwd)`
1187# When building in place, set srcdir=.
1188if test "$ac_abs_confdir" = "$ac_pwd"; then
1189  srcdir=.
1190fi
1191# Remove unnecessary trailing slashes from srcdir.
1192# Double slashes in file names in object file debugging info
1193# mess up M-x gdb in Emacs.
1194case $srcdir in
1195*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1196esac
1197for ac_var in $ac_precious_vars; do
1198  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1199  eval ac_env_${ac_var}_value=\$${ac_var}
1200  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1201  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1202done
1203
1204#
1205# Report the --help message.
1206#
1207if test "$ac_init_help" = "long"; then
1208  # Omit some internal or obsolete options to make the list less imposing.
1209  # This message is too long to be a string in the A/UX 3.1 sh.
1210  cat <<_ACEOF
1211\`configure' configures this package to adapt to many kinds of systems.
1212
1213Usage: $0 [OPTION]... [VAR=VALUE]...
1214
1215To assign environment variables (e.g., CC, CFLAGS...), specify them as
1216VAR=VALUE.  See below for descriptions of some of the useful variables.
1217
1218Defaults for the options are specified in brackets.
1219
1220Configuration:
1221  -h, --help              display this help and exit
1222      --help=short        display options specific to this package
1223      --help=recursive    display the short help of all the included packages
1224  -V, --version           display version information and exit
1225  -q, --quiet, --silent   do not print \`checking...' messages
1226      --cache-file=FILE   cache test results in FILE [disabled]
1227  -C, --config-cache      alias for \`--cache-file=config.cache'
1228  -n, --no-create         do not create output files
1229      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1230
1231Installation directories:
1232  --prefix=PREFIX         install architecture-independent files in PREFIX
1233			  [$ac_default_prefix]
1234  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1235			  [PREFIX]
1236
1237By default, \`make install' will install all the files in
1238\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1239an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1240for instance \`--prefix=\$HOME'.
1241
1242For better control, use the options below.
1243
1244Fine tuning of the installation directories:
1245  --bindir=DIR           user executables [EPREFIX/bin]
1246  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1247  --libexecdir=DIR       program executables [EPREFIX/libexec]
1248  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1249  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1250  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1251  --libdir=DIR           object code libraries [EPREFIX/lib]
1252  --includedir=DIR       C header files [PREFIX/include]
1253  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1254  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1255  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1256  --infodir=DIR          info documentation [DATAROOTDIR/info]
1257  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1258  --mandir=DIR           man documentation [DATAROOTDIR/man]
1259  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1260  --htmldir=DIR          html documentation [DOCDIR]
1261  --dvidir=DIR           dvi documentation [DOCDIR]
1262  --pdfdir=DIR           pdf documentation [DOCDIR]
1263  --psdir=DIR            ps documentation [DOCDIR]
1264_ACEOF
1265
1266  cat <<\_ACEOF
1267_ACEOF
1268fi
1269
1270if test -n "$ac_init_help"; then
1271
1272  cat <<\_ACEOF
1273
1274Optional Features:
1275  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1276  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1277
1278 --enable-debugging       Compile in debugging code
1279 --enable-low-debug       Low-level heavy-duty debugging only.
1280 --enable-servermode      Enable SERVER_MODE
1281 --enable-bulletins=directory
1282                          Set the path for bulletin directory /var/spool/bulls
1283 --enable-bulldb=path     Set the path for bulletin directory and use database to
1284                              track bulletins /var/spool/bulls
1285 --enable-new-bulls=count Specify the maximum number of bulletins for new users 10
1286 --enable-popbulldir=path Specify alternate directory for popbull files
1287 --enable-specialauth     Enable secure crypt or shadow passwords
1288 --enable-apop=path       Set the pop.auth file path /etc/pop.auth
1289 --enable-scram=path      Include scram capability with AUTHDB file /etc/pop.auth
1290 --enable-popuid=pop      Set the owner of the pop.auth file. pop
1291 --enable-log-login       Log successful user authentications
1292 --enable-auto-delete     Automatically delete downloaded msgs
1293 --enable-shy             Hide qpopper version number
1294 --enable-warnings        Enable additional compiler warnings
1295 --enable-hash-spool=1|2  Enable hashed spool directories 2
1296 --enable-home-dir-mail=spool file
1297                          Mail spool file is in home directory .mail
1298 --enable-home-dir-misc   .pop and .cache files are in home directory
1299 --enable-spool-dir=path  Spool directory (search for it)
1300 --enable-temp-drop-dir=path
1301                          Directory for temporary mail drop (spool directory)
1302 --enable-cache-dir=path  Directory for cache files (temp drop directory)
1303 --enable-log-facility=name
1304                          Log to specified facility LOG_MAIL or LOG_LOCAL1
1305 --enable-uw-kludge       Check for and hide UW 'Folder Internal Data' messages
1306 --enable-group-bulls     Group name is second part of bulletin file names
1307 --enable-any-kerberos-principal
1308                          Accept any Kerberos principal in POP request
1309 --enable-kuserok         Use kuserok() to vet users
1310 --enable-ksockinst       Use getsockinst() for Kerberos instance
1311 --enable-timing          Report elapsed time for login, init, and cleanup
1312 --enable-old-uidl        Use old UID encoding
1313 --disable-status         Don't write 'Status' or 'X-UIDL' headers
1314 --enable-keep-temp-drop  Don't delete temp drop files
1315 --disable-check-pw-max   Don't check for expired passwords
1316 --disable-old-spool-loc  Don't check for old spools in old location
1317 --enable-server-mode-group-include=group
1318                          Server mode set for users in this group
1319 --enable-server-mode-group-exclude=group
1320                          Server mode off for users in this group
1321 --enable-secure-nis-plus For use with secure NIS+
1322 --disable-optimizations  Turns off compiler optimizations
1323 --enable-standalone      Makes a standalone POP3 daemon instead of using inetd
1324 --enable-auth-file=path  Only users listed in the specified file have access
1325 --enable-nonauth-file=path
1326                          Deny access to users listed in the specified file
1327 --disable-update-abort   Don't enter UPDATE state on abort
1328 --enable-fast-update     Reduce I/O during server-mode updates
1329 --disable-hash-dir-check Don't check if hashed spool dirs exist
1330 --enable-chunky-writes=0|1|2
1331                          Set default network write pooling 0
1332 --enable-poppassd        Generate poppassd password-change daemon
1333 --enable-32-bit          Generate code for a 32-bit environment
1334 --enable-64-bit          Generate code for a 64-bit environment
1335 --disable-ipv6           Don't compile in IPv6 support
1336 --enable-tempnam         Use tempnam() instead of mkstemp()
1337 --enable-gss-kuserok     Use krb5_kuserok() for auth on GSSAPI connections
1338
1339Optional Packages:
1340  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1341  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1342
1343 --with-pam=service-name  Use PAM authentication pop3
1344 --with-kerberos5=dir     Enable Kerberos 5 support
1345 --with-drac=lib-path     Compile in DRAC support
1346 --with-sslplus=path      Use SSL Plus from Certicom /usr/local/sslplus
1347 --with-sslplus-crypto=path
1348                          Crypto library to use with SSL Plus securitybuilder
1349 --with-openssl=path      Use OpenSSL /usr/local/ssl
1350 --with-gdbm=path         Use GDBM
1351 --with-cyrus-sasl=path    Compile in support for using Cyrus-SASL for auth
1352
1353Some influential environment variables:
1354  CC          C compiler command
1355  CFLAGS      C compiler flags
1356  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1357              nonstandard directory <lib dir>
1358  LIBS        libraries to pass to the linker, e.g. -l<library>
1359  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1360              you have headers in a nonstandard directory <include dir>
1361  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1362              the first program found out of: `bison -y', `byacc', `yacc'.
1363  YFLAGS      The list of arguments that will be passed by default to $YACC.
1364              This script will default YFLAGS to the empty string to avoid a
1365              default value of `-d' given by some make applications.
1366  CPP         C preprocessor
1367
1368Use these variables to override the choices made by `configure' or to help
1369it to find libraries and programs with nonstandard names/locations.
1370
1371_ACEOF
1372ac_status=$?
1373fi
1374
1375if test "$ac_init_help" = "recursive"; then
1376  # If there are subdirs, report their specific --help.
1377  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378    test -d "$ac_dir" || continue
1379    ac_builddir=.
1380
1381case "$ac_dir" in
1382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383*)
1384  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1385  # A ".." for each directory in $ac_dir_suffix.
1386  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1387  case $ac_top_builddir_sub in
1388  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390  esac ;;
1391esac
1392ac_abs_top_builddir=$ac_pwd
1393ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394# for backward compatibility:
1395ac_top_builddir=$ac_top_build_prefix
1396
1397case $srcdir in
1398  .)  # We are building in place.
1399    ac_srcdir=.
1400    ac_top_srcdir=$ac_top_builddir_sub
1401    ac_abs_top_srcdir=$ac_pwd ;;
1402  [\\/]* | ?:[\\/]* )  # Absolute name.
1403    ac_srcdir=$srcdir$ac_dir_suffix;
1404    ac_top_srcdir=$srcdir
1405    ac_abs_top_srcdir=$srcdir ;;
1406  *) # Relative name.
1407    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408    ac_top_srcdir=$ac_top_build_prefix$srcdir
1409    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410esac
1411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1412
1413    cd "$ac_dir" || { ac_status=$?; continue; }
1414    # Check for guested configure.
1415    if test -f "$ac_srcdir/configure.gnu"; then
1416      echo &&
1417      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418    elif test -f "$ac_srcdir/configure"; then
1419      echo &&
1420      $SHELL "$ac_srcdir/configure" --help=recursive
1421    else
1422      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423    fi || ac_status=$?
1424    cd "$ac_pwd" || { ac_status=$?; break; }
1425  done
1426fi
1427
1428test -n "$ac_init_help" && exit $ac_status
1429if $ac_init_version; then
1430  cat <<\_ACEOF
1431configure
1432generated by GNU Autoconf 2.61
1433
1434Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1436This configure script is free software; the Free Software Foundation
1437gives unlimited permission to copy, distribute and modify it.
1438_ACEOF
1439  exit
1440fi
1441cat >config.log <<_ACEOF
1442This file contains any messages produced by compilers while
1443running configure, to aid debugging if configure makes a mistake.
1444
1445It was created by $as_me, which was
1446generated by GNU Autoconf 2.61.  Invocation command line was
1447
1448  $ $0 $@
1449
1450_ACEOF
1451exec 5>>config.log
1452{
1453cat <<_ASUNAME
1454## --------- ##
1455## Platform. ##
1456## --------- ##
1457
1458hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1459uname -m = `(uname -m) 2>/dev/null || echo unknown`
1460uname -r = `(uname -r) 2>/dev/null || echo unknown`
1461uname -s = `(uname -s) 2>/dev/null || echo unknown`
1462uname -v = `(uname -v) 2>/dev/null || echo unknown`
1463
1464/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1465/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1466
1467/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1468/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1469/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1470/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1471/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1472/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1473/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1474
1475_ASUNAME
1476
1477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478for as_dir in $PATH
1479do
1480  IFS=$as_save_IFS
1481  test -z "$as_dir" && as_dir=.
1482  echo "PATH: $as_dir"
1483done
1484IFS=$as_save_IFS
1485
1486} >&5
1487
1488cat >&5 <<_ACEOF
1489
1490
1491## ----------- ##
1492## Core tests. ##
1493## ----------- ##
1494
1495_ACEOF
1496
1497
1498# Keep a trace of the command line.
1499# Strip out --no-create and --no-recursion so they do not pile up.
1500# Strip out --silent because we don't want to record it for future runs.
1501# Also quote any args containing shell meta-characters.
1502# Make two passes to allow for proper duplicate-argument suppression.
1503ac_configure_args=
1504ac_configure_args0=
1505ac_configure_args1=
1506ac_must_keep_next=false
1507for ac_pass in 1 2
1508do
1509  for ac_arg
1510  do
1511    case $ac_arg in
1512    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1513    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1514    | -silent | --silent | --silen | --sile | --sil)
1515      continue ;;
1516    *\'*)
1517      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1518    esac
1519    case $ac_pass in
1520    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1521    2)
1522      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1523      if test $ac_must_keep_next = true; then
1524	ac_must_keep_next=false # Got value, back to normal.
1525      else
1526	case $ac_arg in
1527	  *=* | --config-cache | -C | -disable-* | --disable-* \
1528	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1529	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1530	  | -with-* | --with-* | -without-* | --without-* | --x)
1531	    case "$ac_configure_args0 " in
1532	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1533	    esac
1534	    ;;
1535	  -* ) ac_must_keep_next=true ;;
1536	esac
1537      fi
1538      ac_configure_args="$ac_configure_args '$ac_arg'"
1539      ;;
1540    esac
1541  done
1542done
1543$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1544$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1545
1546# When interrupted or exit'd, cleanup temporary files, and complete
1547# config.log.  We remove comments because anyway the quotes in there
1548# would cause problems or look ugly.
1549# WARNING: Use '\'' to represent an apostrophe within the trap.
1550# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551trap 'exit_status=$?
1552  # Save into config.log some information that might help in debugging.
1553  {
1554    echo
1555
1556    cat <<\_ASBOX
1557## ---------------- ##
1558## Cache variables. ##
1559## ---------------- ##
1560_ASBOX
1561    echo
1562    # The following way of writing the cache mishandles newlines in values,
1563(
1564  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565    eval ac_val=\$$ac_var
1566    case $ac_val in #(
1567    *${as_nl}*)
1568      case $ac_var in #(
1569      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1571      esac
1572      case $ac_var in #(
1573      _ | IFS | as_nl) ;; #(
1574      *) $as_unset $ac_var ;;
1575      esac ;;
1576    esac
1577  done
1578  (set) 2>&1 |
1579    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580    *${as_nl}ac_space=\ *)
1581      sed -n \
1582	"s/'\''/'\''\\\\'\'''\''/g;
1583	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1584      ;; #(
1585    *)
1586      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1587      ;;
1588    esac |
1589    sort
1590)
1591    echo
1592
1593    cat <<\_ASBOX
1594## ----------------- ##
1595## Output variables. ##
1596## ----------------- ##
1597_ASBOX
1598    echo
1599    for ac_var in $ac_subst_vars
1600    do
1601      eval ac_val=\$$ac_var
1602      case $ac_val in
1603      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1604      esac
1605      echo "$ac_var='\''$ac_val'\''"
1606    done | sort
1607    echo
1608
1609    if test -n "$ac_subst_files"; then
1610      cat <<\_ASBOX
1611## ------------------- ##
1612## File substitutions. ##
1613## ------------------- ##
1614_ASBOX
1615      echo
1616      for ac_var in $ac_subst_files
1617      do
1618	eval ac_val=\$$ac_var
1619	case $ac_val in
1620	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621	esac
1622	echo "$ac_var='\''$ac_val'\''"
1623      done | sort
1624      echo
1625    fi
1626
1627    if test -s confdefs.h; then
1628      cat <<\_ASBOX
1629## ----------- ##
1630## confdefs.h. ##
1631## ----------- ##
1632_ASBOX
1633      echo
1634      cat confdefs.h
1635      echo
1636    fi
1637    test "$ac_signal" != 0 &&
1638      echo "$as_me: caught signal $ac_signal"
1639    echo "$as_me: exit $exit_status"
1640  } >&5
1641  rm -f core *.core core.conftest.* &&
1642    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1643    exit $exit_status
1644' 0
1645for ac_signal in 1 2 13 15; do
1646  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1647done
1648ac_signal=0
1649
1650# confdefs.h avoids OS command line length limits that DEFS can exceed.
1651rm -f -r conftest* confdefs.h
1652
1653# Predefined preprocessor variables.
1654
1655cat >>confdefs.h <<_ACEOF
1656#define PACKAGE_NAME "$PACKAGE_NAME"
1657_ACEOF
1658
1659
1660cat >>confdefs.h <<_ACEOF
1661#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1662_ACEOF
1663
1664
1665cat >>confdefs.h <<_ACEOF
1666#define PACKAGE_VERSION "$PACKAGE_VERSION"
1667_ACEOF
1668
1669
1670cat >>confdefs.h <<_ACEOF
1671#define PACKAGE_STRING "$PACKAGE_STRING"
1672_ACEOF
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1677_ACEOF
1678
1679
1680# Let the site file select an alternate cache file if it wants to.
1681# Prefer explicitly selected file to automatically selected ones.
1682if test -n "$CONFIG_SITE"; then
1683  set x "$CONFIG_SITE"
1684elif test "x$prefix" != xNONE; then
1685  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1686else
1687  set x "$ac_default_prefix/share/config.site" \
1688	"$ac_default_prefix/etc/config.site"
1689fi
1690shift
1691for ac_site_file
1692do
1693  if test -r "$ac_site_file"; then
1694    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695echo "$as_me: loading site script $ac_site_file" >&6;}
1696    sed 's/^/| /' "$ac_site_file" >&5
1697    . "$ac_site_file"
1698  fi
1699done
1700
1701if test -r "$cache_file"; then
1702  # Some versions of bash will fail to source /dev/null (special
1703  # files actually), so we avoid doing that.
1704  if test -f "$cache_file"; then
1705    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706echo "$as_me: loading cache $cache_file" >&6;}
1707    case $cache_file in
1708      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1709      *)                      . "./$cache_file";;
1710    esac
1711  fi
1712else
1713  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714echo "$as_me: creating cache $cache_file" >&6;}
1715  >$cache_file
1716fi
1717
1718ac_header_list="$ac_header_list utime.h"
1719# Check that the precious variables saved in the cache have kept the same
1720# value.
1721ac_cache_corrupted=false
1722for ac_var in $ac_precious_vars; do
1723  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1724  eval ac_new_set=\$ac_env_${ac_var}_set
1725  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1726  eval ac_new_val=\$ac_env_${ac_var}_value
1727  case $ac_old_set,$ac_new_set in
1728    set,)
1729      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1730echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1731      ac_cache_corrupted=: ;;
1732    ,set)
1733      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1734echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1735      ac_cache_corrupted=: ;;
1736    ,);;
1737    *)
1738      if test "x$ac_old_val" != "x$ac_new_val"; then
1739	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1740echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1741	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1742echo "$as_me:   former value:  $ac_old_val" >&2;}
1743	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1744echo "$as_me:   current value: $ac_new_val" >&2;}
1745	ac_cache_corrupted=:
1746      fi;;
1747  esac
1748  # Pass precious variables to config.status.
1749  if test "$ac_new_set" = set; then
1750    case $ac_new_val in
1751    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1752    *) ac_arg=$ac_var=$ac_new_val ;;
1753    esac
1754    case " $ac_configure_args " in
1755      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1756      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1757    esac
1758  fi
1759done
1760if $ac_cache_corrupted; then
1761  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1762echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1763  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1764echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1765   { (exit 1); exit 1; }; }
1766fi
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784ac_ext=c
1785ac_cpp='$CPP $CPPFLAGS'
1786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789
1790
1791ac_config_headers="$ac_config_headers config.h"
1792
1793
1794QPOPVERS=`grep "#define VERS_NUM" popper/version.h | awk '{print $3}'`
1795{ echo "$as_me:$LINENO: result: Configuring Qpopper version $QPOPVERS" >&5
1796echo "${ECHO_T}Configuring Qpopper version $QPOPVERS" >&6; }
1797
1798
1799
1800{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1801echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1802set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1803if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1804  echo $ECHO_N "(cached) $ECHO_C" >&6
1805else
1806  cat >conftest.make <<\_ACEOF
1807SHELL = /bin/sh
1808all:
1809	@echo '@@@%%%=$(MAKE)=@@@%%%'
1810_ACEOF
1811# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1812case `${MAKE-make} -f conftest.make 2>/dev/null` in
1813  *@@@%%%=?*=@@@%%%*)
1814    eval ac_cv_prog_make_${ac_make}_set=yes;;
1815  *)
1816    eval ac_cv_prog_make_${ac_make}_set=no;;
1817esac
1818rm -f conftest.make
1819fi
1820if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1821  { echo "$as_me:$LINENO: result: yes" >&5
1822echo "${ECHO_T}yes" >&6; }
1823  SET_MAKE=
1824else
1825  { echo "$as_me:$LINENO: result: no" >&5
1826echo "${ECHO_T}no" >&6; }
1827  SET_MAKE="MAKE=${MAKE-make}"
1828fi
1829
1830ac_ext=c
1831ac_cpp='$CPP $CPPFLAGS'
1832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835if test -n "$ac_tool_prefix"; then
1836  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1840if test "${ac_cv_prog_CC+set}" = set; then
1841  echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843  if test -n "$CC"; then
1844  ac_cv_prog_CC="$CC" # Let the user override the test.
1845else
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
1848do
1849  IFS=$as_save_IFS
1850  test -z "$as_dir" && as_dir=.
1851  for ac_exec_ext in '' $ac_executable_extensions; do
1852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1853    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855    break 2
1856  fi
1857done
1858done
1859IFS=$as_save_IFS
1860
1861fi
1862fi
1863CC=$ac_cv_prog_CC
1864if test -n "$CC"; then
1865  { echo "$as_me:$LINENO: result: $CC" >&5
1866echo "${ECHO_T}$CC" >&6; }
1867else
1868  { echo "$as_me:$LINENO: result: no" >&5
1869echo "${ECHO_T}no" >&6; }
1870fi
1871
1872
1873fi
1874if test -z "$ac_cv_prog_CC"; then
1875  ac_ct_CC=$CC
1876  # Extract the first word of "gcc", so it can be a program name with args.
1877set dummy gcc; ac_word=$2
1878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881  echo $ECHO_N "(cached) $ECHO_C" >&6
1882else
1883  if test -n "$ac_ct_CC"; then
1884  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885else
1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889  IFS=$as_save_IFS
1890  test -z "$as_dir" && as_dir=.
1891  for ac_exec_ext in '' $ac_executable_extensions; do
1892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893    ac_cv_prog_ac_ct_CC="gcc"
1894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895    break 2
1896  fi
1897done
1898done
1899IFS=$as_save_IFS
1900
1901fi
1902fi
1903ac_ct_CC=$ac_cv_prog_ac_ct_CC
1904if test -n "$ac_ct_CC"; then
1905  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1906echo "${ECHO_T}$ac_ct_CC" >&6; }
1907else
1908  { echo "$as_me:$LINENO: result: no" >&5
1909echo "${ECHO_T}no" >&6; }
1910fi
1911
1912  if test "x$ac_ct_CC" = x; then
1913    CC=""
1914  else
1915    case $cross_compiling:$ac_tool_warned in
1916yes:)
1917{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1918whose name does not start with the host triplet.  If you think this
1919configuration is useful to you, please write to autoconf@gnu.org." >&5
1920echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1921whose name does not start with the host triplet.  If you think this
1922configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1923ac_tool_warned=yes ;;
1924esac
1925    CC=$ac_ct_CC
1926  fi
1927else
1928  CC="$ac_cv_prog_CC"
1929fi
1930
1931if test -z "$CC"; then
1932          if test -n "$ac_tool_prefix"; then
1933    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1934set dummy ${ac_tool_prefix}cc; ac_word=$2
1935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1937if test "${ac_cv_prog_CC+set}" = set; then
1938  echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940  if test -n "$CC"; then
1941  ac_cv_prog_CC="$CC" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946  IFS=$as_save_IFS
1947  test -z "$as_dir" && as_dir=.
1948  for ac_exec_ext in '' $ac_executable_extensions; do
1949  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1950    ac_cv_prog_CC="${ac_tool_prefix}cc"
1951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952    break 2
1953  fi
1954done
1955done
1956IFS=$as_save_IFS
1957
1958fi
1959fi
1960CC=$ac_cv_prog_CC
1961if test -n "$CC"; then
1962  { echo "$as_me:$LINENO: result: $CC" >&5
1963echo "${ECHO_T}$CC" >&6; }
1964else
1965  { echo "$as_me:$LINENO: result: no" >&5
1966echo "${ECHO_T}no" >&6; }
1967fi
1968
1969
1970  fi
1971fi
1972if test -z "$CC"; then
1973  # Extract the first word of "cc", so it can be a program name with args.
1974set dummy cc; ac_word=$2
1975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977if test "${ac_cv_prog_CC+set}" = set; then
1978  echo $ECHO_N "(cached) $ECHO_C" >&6
1979else
1980  if test -n "$CC"; then
1981  ac_cv_prog_CC="$CC" # Let the user override the test.
1982else
1983  ac_prog_rejected=no
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987  IFS=$as_save_IFS
1988  test -z "$as_dir" && as_dir=.
1989  for ac_exec_ext in '' $ac_executable_extensions; do
1990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1991    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1992       ac_prog_rejected=yes
1993       continue
1994     fi
1995    ac_cv_prog_CC="cc"
1996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997    break 2
1998  fi
1999done
2000done
2001IFS=$as_save_IFS
2002
2003if test $ac_prog_rejected = yes; then
2004  # We found a bogon in the path, so make sure we never use it.
2005  set dummy $ac_cv_prog_CC
2006  shift
2007  if test $# != 0; then
2008    # We chose a different compiler from the bogus one.
2009    # However, it has the same basename, so the bogon will be chosen
2010    # first if we set CC to just the basename; use the full file name.
2011    shift
2012    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013  fi
2014fi
2015fi
2016fi
2017CC=$ac_cv_prog_CC
2018if test -n "$CC"; then
2019  { echo "$as_me:$LINENO: result: $CC" >&5
2020echo "${ECHO_T}$CC" >&6; }
2021else
2022  { echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6; }
2024fi
2025
2026
2027fi
2028if test -z "$CC"; then
2029  if test -n "$ac_tool_prefix"; then
2030  for ac_prog in cl.exe
2031  do
2032    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2036if test "${ac_cv_prog_CC+set}" = set; then
2037  echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
2039  if test -n "$CC"; then
2040  ac_cv_prog_CC="$CC" # Let the user override the test.
2041else
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045  IFS=$as_save_IFS
2046  test -z "$as_dir" && as_dir=.
2047  for ac_exec_ext in '' $ac_executable_extensions; do
2048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051    break 2
2052  fi
2053done
2054done
2055IFS=$as_save_IFS
2056
2057fi
2058fi
2059CC=$ac_cv_prog_CC
2060if test -n "$CC"; then
2061  { echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6; }
2063else
2064  { echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6; }
2066fi
2067
2068
2069    test -n "$CC" && break
2070  done
2071fi
2072if test -z "$CC"; then
2073  ac_ct_CC=$CC
2074  for ac_prog in cl.exe
2075do
2076  # Extract the first word of "$ac_prog", so it can be a program name with args.
2077set dummy $ac_prog; ac_word=$2
2078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081  echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083  if test -n "$ac_ct_CC"; then
2084  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085else
2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087for as_dir in $PATH
2088do
2089  IFS=$as_save_IFS
2090  test -z "$as_dir" && as_dir=.
2091  for ac_exec_ext in '' $ac_executable_extensions; do
2092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093    ac_cv_prog_ac_ct_CC="$ac_prog"
2094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095    break 2
2096  fi
2097done
2098done
2099IFS=$as_save_IFS
2100
2101fi
2102fi
2103ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104if test -n "$ac_ct_CC"; then
2105  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106echo "${ECHO_T}$ac_ct_CC" >&6; }
2107else
2108  { echo "$as_me:$LINENO: result: no" >&5
2109echo "${ECHO_T}no" >&6; }
2110fi
2111
2112
2113  test -n "$ac_ct_CC" && break
2114done
2115
2116  if test "x$ac_ct_CC" = x; then
2117    CC=""
2118  else
2119    case $cross_compiling:$ac_tool_warned in
2120yes:)
2121{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2122whose name does not start with the host triplet.  If you think this
2123configuration is useful to you, please write to autoconf@gnu.org." >&5
2124echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2125whose name does not start with the host triplet.  If you think this
2126configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2127ac_tool_warned=yes ;;
2128esac
2129    CC=$ac_ct_CC
2130  fi
2131fi
2132
2133fi
2134
2135
2136test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2137See \`config.log' for more details." >&5
2138echo "$as_me: error: no acceptable C compiler found in \$PATH
2139See \`config.log' for more details." >&2;}
2140   { (exit 1); exit 1; }; }
2141
2142# Provide some information about the compiler.
2143echo "$as_me:$LINENO: checking for C compiler version" >&5
2144ac_compiler=`set X $ac_compile; echo $2`
2145{ (ac_try="$ac_compiler --version >&5"
2146case "(($ac_try" in
2147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148  *) ac_try_echo=$ac_try;;
2149esac
2150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2151  (eval "$ac_compiler --version >&5") 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }
2155{ (ac_try="$ac_compiler -v >&5"
2156case "(($ac_try" in
2157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158  *) ac_try_echo=$ac_try;;
2159esac
2160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2161  (eval "$ac_compiler -v >&5") 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165{ (ac_try="$ac_compiler -V >&5"
2166case "(($ac_try" in
2167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168  *) ac_try_echo=$ac_try;;
2169esac
2170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171  (eval "$ac_compiler -V >&5") 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }
2175
2176cat >conftest.$ac_ext <<_ACEOF
2177/* confdefs.h.  */
2178_ACEOF
2179cat confdefs.h >>conftest.$ac_ext
2180cat >>conftest.$ac_ext <<_ACEOF
2181/* end confdefs.h.  */
2182
2183int
2184main ()
2185{
2186
2187  ;
2188  return 0;
2189}
2190_ACEOF
2191ac_clean_files_save=$ac_clean_files
2192ac_clean_files="$ac_clean_files a.out a.exe b.out"
2193# Try to create an executable without -o first, disregard a.out.
2194# It will help us diagnose broken compilers, and finding out an intuition
2195# of exeext.
2196{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2198ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199#
2200# List of possible output files, starting from the most likely.
2201# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2202# only as a last resort.  b.out is created by i960 compilers.
2203ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2204#
2205# The IRIX 6 linker writes into existing files which may not be
2206# executable, retaining their permissions.  Remove them first so a
2207# subsequent execution test works.
2208ac_rmfiles=
2209for ac_file in $ac_files
2210do
2211  case $ac_file in
2212    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2213    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2214  esac
2215done
2216rm -f $ac_rmfiles
2217
2218if { (ac_try="$ac_link_default"
2219case "(($ac_try" in
2220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221  *) ac_try_echo=$ac_try;;
2222esac
2223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224  (eval "$ac_link_default") 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }; then
2228  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2229# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2230# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2231# so that the user can short-circuit this test for compilers unknown to
2232# Autoconf.
2233for ac_file in $ac_files ''
2234do
2235  test -f "$ac_file" || continue
2236  case $ac_file in
2237    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2238	;;
2239    [ab].out )
2240	# We found the default executable, but exeext='' is most
2241	# certainly right.
2242	break;;
2243    *.* )
2244        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2245	then :; else
2246	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2247	fi
2248	# We set ac_cv_exeext here because the later test for it is not
2249	# safe: cross compilers may not add the suffix if given an `-o'
2250	# argument, so we may need to know it at that point already.
2251	# Even if this section looks crufty: it has the advantage of
2252	# actually working.
2253	break;;
2254    * )
2255	break;;
2256  esac
2257done
2258test "$ac_cv_exeext" = no && ac_cv_exeext=
2259
2260else
2261  ac_file=''
2262fi
2263
2264{ echo "$as_me:$LINENO: result: $ac_file" >&5
2265echo "${ECHO_T}$ac_file" >&6; }
2266if test -z "$ac_file"; then
2267  echo "$as_me: failed program was:" >&5
2268sed 's/^/| /' conftest.$ac_ext >&5
2269
2270{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: C compiler cannot create executables
2273See \`config.log' for more details." >&2;}
2274   { (exit 77); exit 77; }; }
2275fi
2276
2277ac_exeext=$ac_cv_exeext
2278
2279# Check that the compiler produces executables we can run.  If not, either
2280# the compiler is broken, or we cross compile.
2281{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2282echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2283# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2284# If not cross compiling, check that we can run a simple program.
2285if test "$cross_compiling" != yes; then
2286  if { ac_try='./$ac_file'
2287  { (case "(($ac_try" in
2288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289  *) ac_try_echo=$ac_try;;
2290esac
2291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292  (eval "$ac_try") 2>&5
2293  ac_status=$?
2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295  (exit $ac_status); }; }; then
2296    cross_compiling=no
2297  else
2298    if test "$cross_compiling" = maybe; then
2299	cross_compiling=yes
2300    else
2301	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2302If you meant to cross compile, use \`--host'.
2303See \`config.log' for more details." >&5
2304echo "$as_me: error: cannot run C compiled programs.
2305If you meant to cross compile, use \`--host'.
2306See \`config.log' for more details." >&2;}
2307   { (exit 1); exit 1; }; }
2308    fi
2309  fi
2310fi
2311{ echo "$as_me:$LINENO: result: yes" >&5
2312echo "${ECHO_T}yes" >&6; }
2313
2314rm -f a.out a.exe conftest$ac_cv_exeext b.out
2315ac_clean_files=$ac_clean_files_save
2316# Check that the compiler produces executables we can run.  If not, either
2317# the compiler is broken, or we cross compile.
2318{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2319echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2320{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2321echo "${ECHO_T}$cross_compiling" >&6; }
2322
2323{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2324echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2325if { (ac_try="$ac_link"
2326case "(($ac_try" in
2327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328  *) ac_try_echo=$ac_try;;
2329esac
2330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2331  (eval "$ac_link") 2>&5
2332  ac_status=$?
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); }; then
2335  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2336# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2337# work properly (i.e., refer to `conftest.exe'), while it won't with
2338# `rm'.
2339for ac_file in conftest.exe conftest conftest.*; do
2340  test -f "$ac_file" || continue
2341  case $ac_file in
2342    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2343    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2344	  break;;
2345    * ) break;;
2346  esac
2347done
2348else
2349  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2350See \`config.log' for more details." >&5
2351echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2352See \`config.log' for more details." >&2;}
2353   { (exit 1); exit 1; }; }
2354fi
2355
2356rm -f conftest$ac_cv_exeext
2357{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2358echo "${ECHO_T}$ac_cv_exeext" >&6; }
2359
2360rm -f conftest.$ac_ext
2361EXEEXT=$ac_cv_exeext
2362ac_exeext=$EXEEXT
2363{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2364echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2365if test "${ac_cv_objext+set}" = set; then
2366  echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368  cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h.  */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h.  */
2374
2375int
2376main ()
2377{
2378
2379  ;
2380  return 0;
2381}
2382_ACEOF
2383rm -f conftest.o conftest.obj
2384if { (ac_try="$ac_compile"
2385case "(($ac_try" in
2386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387  *) ac_try_echo=$ac_try;;
2388esac
2389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390  (eval "$ac_compile") 2>&5
2391  ac_status=$?
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); }; then
2394  for ac_file in conftest.o conftest.obj conftest.*; do
2395  test -f "$ac_file" || continue;
2396  case $ac_file in
2397    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2398    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2399       break;;
2400  esac
2401done
2402else
2403  echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2407See \`config.log' for more details." >&5
2408echo "$as_me: error: cannot compute suffix of object files: cannot compile
2409See \`config.log' for more details." >&2;}
2410   { (exit 1); exit 1; }; }
2411fi
2412
2413rm -f conftest.$ac_cv_objext conftest.$ac_ext
2414fi
2415{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2416echo "${ECHO_T}$ac_cv_objext" >&6; }
2417OBJEXT=$ac_cv_objext
2418ac_objext=$OBJEXT
2419{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2420echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2421if test "${ac_cv_c_compiler_gnu+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430
2431int
2432main ()
2433{
2434#ifndef __GNUC__
2435       choke me
2436#endif
2437
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (ac_try="$ac_compile"
2444case "(($ac_try" in
2445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446  *) ac_try_echo=$ac_try;;
2447esac
2448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449  (eval "$ac_compile") 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } && {
2456	 test -z "$ac_c_werror_flag" ||
2457	 test ! -s conftest.err
2458       } && test -s conftest.$ac_objext; then
2459  ac_compiler_gnu=yes
2460else
2461  echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464	ac_compiler_gnu=no
2465fi
2466
2467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468ac_cv_c_compiler_gnu=$ac_compiler_gnu
2469
2470fi
2471{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2472echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2473GCC=`test $ac_compiler_gnu = yes && echo yes`
2474ac_test_CFLAGS=${CFLAGS+set}
2475ac_save_CFLAGS=$CFLAGS
2476{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2477echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2478if test "${ac_cv_prog_cc_g+set}" = set; then
2479  echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481  ac_save_c_werror_flag=$ac_c_werror_flag
2482   ac_c_werror_flag=yes
2483   ac_cv_prog_cc_g=no
2484   CFLAGS="-g"
2485   cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h.  */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h.  */
2491
2492int
2493main ()
2494{
2495
2496  ;
2497  return 0;
2498}
2499_ACEOF
2500rm -f conftest.$ac_objext
2501if { (ac_try="$ac_compile"
2502case "(($ac_try" in
2503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504  *) ac_try_echo=$ac_try;;
2505esac
2506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507  (eval "$ac_compile") 2>conftest.er1
2508  ac_status=$?
2509  grep -v '^ *+' conftest.er1 >conftest.err
2510  rm -f conftest.er1
2511  cat conftest.err >&5
2512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); } && {
2514	 test -z "$ac_c_werror_flag" ||
2515	 test ! -s conftest.err
2516       } && test -s conftest.$ac_objext; then
2517  ac_cv_prog_cc_g=yes
2518else
2519  echo "$as_me: failed program was:" >&5
2520sed 's/^/| /' conftest.$ac_ext >&5
2521
2522	CFLAGS=""
2523      cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h.  */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h.  */
2529
2530int
2531main ()
2532{
2533
2534  ;
2535  return 0;
2536}
2537_ACEOF
2538rm -f conftest.$ac_objext
2539if { (ac_try="$ac_compile"
2540case "(($ac_try" in
2541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542  *) ac_try_echo=$ac_try;;
2543esac
2544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545  (eval "$ac_compile") 2>conftest.er1
2546  ac_status=$?
2547  grep -v '^ *+' conftest.er1 >conftest.err
2548  rm -f conftest.er1
2549  cat conftest.err >&5
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); } && {
2552	 test -z "$ac_c_werror_flag" ||
2553	 test ! -s conftest.err
2554       } && test -s conftest.$ac_objext; then
2555  :
2556else
2557  echo "$as_me: failed program was:" >&5
2558sed 's/^/| /' conftest.$ac_ext >&5
2559
2560	ac_c_werror_flag=$ac_save_c_werror_flag
2561	 CFLAGS="-g"
2562	 cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h.  */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h.  */
2568
2569int
2570main ()
2571{
2572
2573  ;
2574  return 0;
2575}
2576_ACEOF
2577rm -f conftest.$ac_objext
2578if { (ac_try="$ac_compile"
2579case "(($ac_try" in
2580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581  *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584  (eval "$ac_compile") 2>conftest.er1
2585  ac_status=$?
2586  grep -v '^ *+' conftest.er1 >conftest.err
2587  rm -f conftest.er1
2588  cat conftest.err >&5
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); } && {
2591	 test -z "$ac_c_werror_flag" ||
2592	 test ! -s conftest.err
2593       } && test -s conftest.$ac_objext; then
2594  ac_cv_prog_cc_g=yes
2595else
2596  echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599
2600fi
2601
2602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603fi
2604
2605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606fi
2607
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609   ac_c_werror_flag=$ac_save_c_werror_flag
2610fi
2611{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613if test "$ac_test_CFLAGS" = set; then
2614  CFLAGS=$ac_save_CFLAGS
2615elif test $ac_cv_prog_cc_g = yes; then
2616  if test "$GCC" = yes; then
2617    CFLAGS="-g -O2"
2618  else
2619    CFLAGS="-g"
2620  fi
2621else
2622  if test "$GCC" = yes; then
2623    CFLAGS="-O2"
2624  else
2625    CFLAGS=
2626  fi
2627fi
2628{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630if test "${ac_cv_prog_cc_c89+set}" = set; then
2631  echo $ECHO_N "(cached) $ECHO_C" >&6
2632else
2633  ac_cv_prog_cc_c89=no
2634ac_save_CC=$CC
2635cat >conftest.$ac_ext <<_ACEOF
2636/* confdefs.h.  */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h.  */
2641#include <stdarg.h>
2642#include <stdio.h>
2643#include <sys/types.h>
2644#include <sys/stat.h>
2645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2646struct buf { int x; };
2647FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648static char *e (p, i)
2649     char **p;
2650     int i;
2651{
2652  return p[i];
2653}
2654static char *f (char * (*g) (char **, int), char **p, ...)
2655{
2656  char *s;
2657  va_list v;
2658  va_start (v,p);
2659  s = g (p, va_arg (v,int));
2660  va_end (v);
2661  return s;
2662}
2663
2664/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2665   function prototypes and stuff, but not '\xHH' hex character constants.
2666   These don't provoke an error unfortunately, instead are silently treated
2667   as 'x'.  The following induces an error, until -std is added to get
2668   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2669   array size at least.  It's necessary to write '\x00'==0 to get something
2670   that's true only with -std.  */
2671int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
2673/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674   inside strings and character constants.  */
2675#define FOO(x) 'x'
2676int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677
2678int test (int i, double x);
2679struct s1 {int (*f) (int a);};
2680struct s2 {int (*f) (double a);};
2681int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682int argc;
2683char **argv;
2684int
2685main ()
2686{
2687return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2688  ;
2689  return 0;
2690}
2691_ACEOF
2692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694do
2695  CC="$ac_save_CC $ac_arg"
2696  rm -f conftest.$ac_objext
2697if { (ac_try="$ac_compile"
2698case "(($ac_try" in
2699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700  *) ac_try_echo=$ac_try;;
2701esac
2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703  (eval "$ac_compile") 2>conftest.er1
2704  ac_status=$?
2705  grep -v '^ *+' conftest.er1 >conftest.err
2706  rm -f conftest.er1
2707  cat conftest.err >&5
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); } && {
2710	 test -z "$ac_c_werror_flag" ||
2711	 test ! -s conftest.err
2712       } && test -s conftest.$ac_objext; then
2713  ac_cv_prog_cc_c89=$ac_arg
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718
2719fi
2720
2721rm -f core conftest.err conftest.$ac_objext
2722  test "x$ac_cv_prog_cc_c89" != "xno" && break
2723done
2724rm -f conftest.$ac_ext
2725CC=$ac_save_CC
2726
2727fi
2728# AC_CACHE_VAL
2729case "x$ac_cv_prog_cc_c89" in
2730  x)
2731    { echo "$as_me:$LINENO: result: none needed" >&5
2732echo "${ECHO_T}none needed" >&6; } ;;
2733  xno)
2734    { echo "$as_me:$LINENO: result: unsupported" >&5
2735echo "${ECHO_T}unsupported" >&6; } ;;
2736  *)
2737    CC="$CC $ac_cv_prog_cc_c89"
2738    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2739echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2740esac
2741
2742
2743ac_ext=c
2744ac_cpp='$CPP $CPPFLAGS'
2745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
2749
2750{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
2751echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
2752if test "${ac_cv_search_strerror+set}" = set; then
2753  echo $ECHO_N "(cached) $ECHO_C" >&6
2754else
2755  ac_func_search_save_LIBS=$LIBS
2756cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h.  */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h.  */
2762
2763/* Override any GCC internal prototype to avoid an error.
2764   Use char because int might match the return type of a GCC
2765   builtin and then its argument prototype would still apply.  */
2766#ifdef __cplusplus
2767extern "C"
2768#endif
2769char strerror ();
2770int
2771main ()
2772{
2773return strerror ();
2774  ;
2775  return 0;
2776}
2777_ACEOF
2778for ac_lib in '' cposix; do
2779  if test -z "$ac_lib"; then
2780    ac_res="none required"
2781  else
2782    ac_res=-l$ac_lib
2783    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2784  fi
2785  rm -f conftest.$ac_objext conftest$ac_exeext
2786if { (ac_try="$ac_link"
2787case "(($ac_try" in
2788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789  *) ac_try_echo=$ac_try;;
2790esac
2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792  (eval "$ac_link") 2>conftest.er1
2793  ac_status=$?
2794  grep -v '^ *+' conftest.er1 >conftest.err
2795  rm -f conftest.er1
2796  cat conftest.err >&5
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); } && {
2799	 test -z "$ac_c_werror_flag" ||
2800	 test ! -s conftest.err
2801       } && test -s conftest$ac_exeext &&
2802       $as_test_x conftest$ac_exeext; then
2803  ac_cv_search_strerror=$ac_res
2804else
2805  echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808
2809fi
2810
2811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2812      conftest$ac_exeext
2813  if test "${ac_cv_search_strerror+set}" = set; then
2814  break
2815fi
2816done
2817if test "${ac_cv_search_strerror+set}" = set; then
2818  :
2819else
2820  ac_cv_search_strerror=no
2821fi
2822rm conftest.$ac_ext
2823LIBS=$ac_func_search_save_LIBS
2824fi
2825{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2826echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
2827ac_res=$ac_cv_search_strerror
2828if test "$ac_res" != no; then
2829  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2830
2831fi
2832
2833for ac_prog in 'bison -y' byacc
2834do
2835  # Extract the first word of "$ac_prog", so it can be a program name with args.
2836set dummy $ac_prog; ac_word=$2
2837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839if test "${ac_cv_prog_YACC+set}" = set; then
2840  echo $ECHO_N "(cached) $ECHO_C" >&6
2841else
2842  if test -n "$YACC"; then
2843  ac_cv_prog_YACC="$YACC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850  for ac_exec_ext in '' $ac_executable_extensions; do
2851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852    ac_cv_prog_YACC="$ac_prog"
2853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862YACC=$ac_cv_prog_YACC
2863if test -n "$YACC"; then
2864  { echo "$as_me:$LINENO: result: $YACC" >&5
2865echo "${ECHO_T}$YACC" >&6; }
2866else
2867  { echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6; }
2869fi
2870
2871
2872  test -n "$YACC" && break
2873done
2874test -n "$YACC" || YACC="yacc"
2875
2876for ac_prog in flex lex
2877do
2878  # Extract the first word of "$ac_prog", so it can be a program name with args.
2879set dummy $ac_prog; ac_word=$2
2880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2882if test "${ac_cv_prog_LEX+set}" = set; then
2883  echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885  if test -n "$LEX"; then
2886  ac_cv_prog_LEX="$LEX" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  test -z "$as_dir" && as_dir=.
2893  for ac_exec_ext in '' $ac_executable_extensions; do
2894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895    ac_cv_prog_LEX="$ac_prog"
2896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897    break 2
2898  fi
2899done
2900done
2901IFS=$as_save_IFS
2902
2903fi
2904fi
2905LEX=$ac_cv_prog_LEX
2906if test -n "$LEX"; then
2907  { echo "$as_me:$LINENO: result: $LEX" >&5
2908echo "${ECHO_T}$LEX" >&6; }
2909else
2910  { echo "$as_me:$LINENO: result: no" >&5
2911echo "${ECHO_T}no" >&6; }
2912fi
2913
2914
2915  test -n "$LEX" && break
2916done
2917test -n "$LEX" || LEX=":"
2918
2919if test "x$LEX" != "x:"; then
2920  cat >conftest.l <<_ACEOF
2921%%
2922a { ECHO; }
2923b { REJECT; }
2924c { yymore (); }
2925d { yyless (1); }
2926e { yyless (input () != 0); }
2927f { unput (yytext[0]); }
2928. { BEGIN INITIAL; }
2929%%
2930#ifdef YYTEXT_POINTER
2931extern char *yytext;
2932#endif
2933int
2934main (void)
2935{
2936  return ! yylex () + ! yywrap ();
2937}
2938_ACEOF
2939{ (ac_try="$LEX conftest.l"
2940case "(($ac_try" in
2941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942  *) ac_try_echo=$ac_try;;
2943esac
2944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945  (eval "$LEX conftest.l") 2>&5
2946  ac_status=$?
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); }
2949{ echo "$as_me:$LINENO: checking lex output file root" >&5
2950echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
2951if test "${ac_cv_prog_lex_root+set}" = set; then
2952  echo $ECHO_N "(cached) $ECHO_C" >&6
2953else
2954
2955if test -f lex.yy.c; then
2956  ac_cv_prog_lex_root=lex.yy
2957elif test -f lexyy.c; then
2958  ac_cv_prog_lex_root=lexyy
2959else
2960  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2961echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2962   { (exit 1); exit 1; }; }
2963fi
2964fi
2965{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2966echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
2967LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2968
2969if test -z "${LEXLIB+set}"; then
2970  { echo "$as_me:$LINENO: checking lex library" >&5
2971echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
2972if test "${ac_cv_lib_lex+set}" = set; then
2973  echo $ECHO_N "(cached) $ECHO_C" >&6
2974else
2975
2976    ac_save_LIBS=$LIBS
2977    ac_cv_lib_lex='none needed'
2978    for ac_lib in '' -lfl -ll; do
2979      LIBS="$ac_lib $ac_save_LIBS"
2980      cat >conftest.$ac_ext <<_ACEOF
2981`cat $LEX_OUTPUT_ROOT.c`
2982_ACEOF
2983rm -f conftest.$ac_objext conftest$ac_exeext
2984if { (ac_try="$ac_link"
2985case "(($ac_try" in
2986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987  *) ac_try_echo=$ac_try;;
2988esac
2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990  (eval "$ac_link") 2>conftest.er1
2991  ac_status=$?
2992  grep -v '^ *+' conftest.er1 >conftest.err
2993  rm -f conftest.er1
2994  cat conftest.err >&5
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); } && {
2997	 test -z "$ac_c_werror_flag" ||
2998	 test ! -s conftest.err
2999       } && test -s conftest$ac_exeext &&
3000       $as_test_x conftest$ac_exeext; then
3001  ac_cv_lib_lex=$ac_lib
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006
3007fi
3008
3009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3010      conftest$ac_exeext conftest.$ac_ext
3011      test "$ac_cv_lib_lex" != 'none needed' && break
3012    done
3013    LIBS=$ac_save_LIBS
3014
3015fi
3016{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3017echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3018  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3019fi
3020
3021
3022{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3023echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3024if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  # POSIX says lex can declare yytext either as a pointer or an array; the
3028# default is implementation-dependent.  Figure out which it is, since
3029# not all implementations provide the %pointer and %array declarations.
3030ac_cv_prog_lex_yytext_pointer=no
3031ac_save_LIBS=$LIBS
3032LIBS="$LEXLIB $ac_save_LIBS"
3033cat >conftest.$ac_ext <<_ACEOF
3034#define YYTEXT_POINTER 1
3035`cat $LEX_OUTPUT_ROOT.c`
3036_ACEOF
3037rm -f conftest.$ac_objext conftest$ac_exeext
3038if { (ac_try="$ac_link"
3039case "(($ac_try" in
3040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041  *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044  (eval "$ac_link") 2>conftest.er1
3045  ac_status=$?
3046  grep -v '^ *+' conftest.er1 >conftest.err
3047  rm -f conftest.er1
3048  cat conftest.err >&5
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); } && {
3051	 test -z "$ac_c_werror_flag" ||
3052	 test ! -s conftest.err
3053       } && test -s conftest$ac_exeext &&
3054       $as_test_x conftest$ac_exeext; then
3055  ac_cv_prog_lex_yytext_pointer=yes
3056else
3057  echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060
3061fi
3062
3063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3064      conftest$ac_exeext conftest.$ac_ext
3065LIBS=$ac_save_LIBS
3066
3067fi
3068{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3069echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3070if test $ac_cv_prog_lex_yytext_pointer = yes; then
3071
3072cat >>confdefs.h <<\_ACEOF
3073#define YYTEXT_POINTER 1
3074_ACEOF
3075
3076fi
3077rm -f conftest.l $LEX_OUTPUT_ROOT.c
3078
3079fi
3080for ac_prog in ar
3081do
3082  # Extract the first word of "$ac_prog", so it can be a program name with args.
3083set dummy $ac_prog; ac_word=$2
3084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3086if test "${ac_cv_prog_AR+set}" = set; then
3087  echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089  if test -n "$AR"; then
3090  ac_cv_prog_AR="$AR" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  test -z "$as_dir" && as_dir=.
3097  for ac_exec_ext in '' $ac_executable_extensions; do
3098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099    ac_cv_prog_AR="$ac_prog"
3100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104done
3105IFS=$as_save_IFS
3106
3107fi
3108fi
3109AR=$ac_cv_prog_AR
3110if test -n "$AR"; then
3111  { echo "$as_me:$LINENO: result: $AR" >&5
3112echo "${ECHO_T}$AR" >&6; }
3113else
3114  { echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6; }
3116fi
3117
3118
3119  test -n "$AR" && break
3120done
3121test -n "$AR" || AR="{ { echo "$as_me:$LINENO: error: \"Unable to find ar\"" >&5
3122echo "$as_me: error: \"Unable to find ar\"" >&2;}
3123   { (exit 1); exit 1; }; }"
3124
3125if test -n "$ac_tool_prefix"; then
3126  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3127set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3130if test "${ac_cv_prog_RANLIB+set}" = set; then
3131  echo $ECHO_N "(cached) $ECHO_C" >&6
3132else
3133  if test -n "$RANLIB"; then
3134  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139  IFS=$as_save_IFS
3140  test -z "$as_dir" && as_dir=.
3141  for ac_exec_ext in '' $ac_executable_extensions; do
3142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145    break 2
3146  fi
3147done
3148done
3149IFS=$as_save_IFS
3150
3151fi
3152fi
3153RANLIB=$ac_cv_prog_RANLIB
3154if test -n "$RANLIB"; then
3155  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3156echo "${ECHO_T}$RANLIB" >&6; }
3157else
3158  { echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6; }
3160fi
3161
3162
3163fi
3164if test -z "$ac_cv_prog_RANLIB"; then
3165  ac_ct_RANLIB=$RANLIB
3166  # Extract the first word of "ranlib", so it can be a program name with args.
3167set dummy ranlib; ac_word=$2
3168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3170if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3171  echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173  if test -n "$ac_ct_RANLIB"; then
3174  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179  IFS=$as_save_IFS
3180  test -z "$as_dir" && as_dir=.
3181  for ac_exec_ext in '' $ac_executable_extensions; do
3182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183    ac_cv_prog_ac_ct_RANLIB="ranlib"
3184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188done
3189IFS=$as_save_IFS
3190
3191fi
3192fi
3193ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3194if test -n "$ac_ct_RANLIB"; then
3195  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3196echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3197else
3198  { echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6; }
3200fi
3201
3202  if test "x$ac_ct_RANLIB" = x; then
3203    RANLIB=":"
3204  else
3205    case $cross_compiling:$ac_tool_warned in
3206yes:)
3207{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3208whose name does not start with the host triplet.  If you think this
3209configuration is useful to you, please write to autoconf@gnu.org." >&5
3210echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3211whose name does not start with the host triplet.  If you think this
3212configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3213ac_tool_warned=yes ;;
3214esac
3215    RANLIB=$ac_ct_RANLIB
3216  fi
3217else
3218  RANLIB="$ac_cv_prog_RANLIB"
3219fi
3220
3221ac_aux_dir=
3222for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3223  if test -f "$ac_dir/install-sh"; then
3224    ac_aux_dir=$ac_dir
3225    ac_install_sh="$ac_aux_dir/install-sh -c"
3226    break
3227  elif test -f "$ac_dir/install.sh"; then
3228    ac_aux_dir=$ac_dir
3229    ac_install_sh="$ac_aux_dir/install.sh -c"
3230    break
3231  elif test -f "$ac_dir/shtool"; then
3232    ac_aux_dir=$ac_dir
3233    ac_install_sh="$ac_aux_dir/shtool install -c"
3234    break
3235  fi
3236done
3237if test -z "$ac_aux_dir"; then
3238  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3239echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3240   { (exit 1); exit 1; }; }
3241fi
3242
3243# These three variables are undocumented and unsupported,
3244# and are intended to be withdrawn in a future Autoconf release.
3245# They can cause serious problems if a builder's source tree is in a directory
3246# whose full name contains unusual characters.
3247ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3248ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3249ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3250
3251
3252# Find a good install program.  We prefer a C program (faster),
3253# so one script is as good as another.  But avoid the broken or
3254# incompatible versions:
3255# SysV /etc/install, /usr/sbin/install
3256# SunOS /usr/etc/install
3257# IRIX /sbin/install
3258# AIX /bin/install
3259# AmigaOS /C/install, which installs bootblocks on floppy discs
3260# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3261# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3262# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3263# OS/2's system install, which has a completely different semantic
3264# ./install, which can be erroneously created by make from ./install.sh.
3265{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3266echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3267if test -z "$INSTALL"; then
3268if test "${ac_cv_path_install+set}" = set; then
3269  echo $ECHO_N "(cached) $ECHO_C" >&6
3270else
3271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274  IFS=$as_save_IFS
3275  test -z "$as_dir" && as_dir=.
3276  # Account for people who put trailing slashes in PATH elements.
3277case $as_dir/ in
3278  ./ | .// | /cC/* | \
3279  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3280  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3281  /usr/ucb/* ) ;;
3282  *)
3283    # OSF1 and SCO ODT 3.0 have their own names for install.
3284    # Don't use installbsd from OSF since it installs stuff as root
3285    # by default.
3286    for ac_prog in ginstall scoinst install; do
3287      for ac_exec_ext in '' $ac_executable_extensions; do
3288	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3289	  if test $ac_prog = install &&
3290	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3291	    # AIX install.  It has an incompatible calling convention.
3292	    :
3293	  elif test $ac_prog = install &&
3294	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3295	    # program-specific install script used by HP pwplus--don't use.
3296	    :
3297	  else
3298	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3299	    break 3
3300	  fi
3301	fi
3302      done
3303    done
3304    ;;
3305esac
3306done
3307IFS=$as_save_IFS
3308
3309
3310fi
3311  if test "${ac_cv_path_install+set}" = set; then
3312    INSTALL=$ac_cv_path_install
3313  else
3314    # As a last resort, use the slow shell script.  Don't cache a
3315    # value for INSTALL within a source directory, because that will
3316    # break other packages using the cache if that directory is
3317    # removed, or if the value is a relative name.
3318    INSTALL=$ac_install_sh
3319  fi
3320fi
3321{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3322echo "${ECHO_T}$INSTALL" >&6; }
3323
3324# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325# It thinks the first close brace ends the variable substitution.
3326test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3327
3328test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3329
3330test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3331
3332for ac_prog in gperf cperf
3333do
3334  # Extract the first word of "$ac_prog", so it can be a program name with args.
3335set dummy $ac_prog; ac_word=$2
3336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3338if test "${ac_cv_prog_GPERF+set}" = set; then
3339  echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341  if test -n "$GPERF"; then
3342  ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
3343else
3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH
3346do
3347  IFS=$as_save_IFS
3348  test -z "$as_dir" && as_dir=.
3349  for ac_exec_ext in '' $ac_executable_extensions; do
3350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351    ac_cv_prog_GPERF="$ac_prog"
3352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353    break 2
3354  fi
3355done
3356done
3357IFS=$as_save_IFS
3358
3359fi
3360fi
3361GPERF=$ac_cv_prog_GPERF
3362if test -n "$GPERF"; then
3363  { echo "$as_me:$LINENO: result: $GPERF" >&5
3364echo "${ECHO_T}$GPERF" >&6; }
3365else
3366  { echo "$as_me:$LINENO: result: no" >&5
3367echo "${ECHO_T}no" >&6; }
3368fi
3369
3370
3371  test -n "$GPERF" && break
3372done
3373test -n "$GPERF" || GPERF="{ echo "$as_me:$LINENO: WARNING: \"Unable to find gperf/cperf\"" >&5
3374echo "$as_me: WARNING: \"Unable to find gperf/cperf\"" >&2;}"
3375
3376
3377if test -n "$GPERF"
3378then
3379    GPERFCMD="\${GPERF} -tpacCg -k"*" -N etags_lookup -H etags_hash -K enriched_tag etags.gperf > etags.c"
3380else
3381    GPERFCMD="touch etags.c"
3382fi
3383
3384if test "$ISC" = "yes"
3385then
3386
3387{ echo "$as_me:$LINENO: checking for main  in -lcposix" >&5
3388echo $ECHO_N "checking for main  in -lcposix... $ECHO_C" >&6; }
3389if test "${ac_cv_lib_cposix_main_+set}" = set; then
3390  echo $ECHO_N "(cached) $ECHO_C" >&6
3391else
3392  ac_check_lib_save_LIBS=$LIBS
3393LIBS="-lcposix  $LIBS"
3394cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h.  */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h.  */
3400
3401/* Override any GCC internal prototype to avoid an error.
3402   Use char because int might match the return type of a GCC
3403   builtin and then its argument prototype would still apply.  */
3404#ifdef __cplusplus
3405extern "C"
3406#endif
3407char main  ();
3408int
3409main ()
3410{
3411return main  ();
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416rm -f conftest.$ac_objext conftest$ac_exeext
3417if { (ac_try="$ac_link"
3418case "(($ac_try" in
3419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420  *) ac_try_echo=$ac_try;;
3421esac
3422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423  (eval "$ac_link") 2>conftest.er1
3424  ac_status=$?
3425  grep -v '^ *+' conftest.er1 >conftest.err
3426  rm -f conftest.er1
3427  cat conftest.err >&5
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); } && {
3430	 test -z "$ac_c_werror_flag" ||
3431	 test ! -s conftest.err
3432       } && test -s conftest$ac_exeext &&
3433       $as_test_x conftest$ac_exeext; then
3434  ac_cv_lib_cposix_main_=yes
3435else
3436  echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439	ac_cv_lib_cposix_main_=no
3440fi
3441
3442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3443      conftest$ac_exeext conftest.$ac_ext
3444LIBS=$ac_check_lib_save_LIBS
3445fi
3446{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_main_" >&5
3447echo "${ECHO_T}$ac_cv_lib_cposix_main_" >&6; }
3448if test $ac_cv_lib_cposix_main_ = yes; then
3449  cat >>confdefs.h <<_ACEOF
3450#define HAVE_LIBCPOSIX 1
3451_ACEOF
3452
3453  LIBS="-lcposix $LIBS"
3454
3455fi
3456
3457    { echo "$as_me:$LINENO: checking for bzero in -linet" >&5
3458echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6; }
3459if test "${ac_cv_lib_inet_bzero+set}" = set; then
3460  echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462  ac_check_lib_save_LIBS=$LIBS
3463LIBS="-linet  $LIBS"
3464cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h.  */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h.  */
3470
3471/* Override any GCC internal prototype to avoid an error.
3472   Use char because int might match the return type of a GCC
3473   builtin and then its argument prototype would still apply.  */
3474#ifdef __cplusplus
3475extern "C"
3476#endif
3477char bzero ();
3478int
3479main ()
3480{
3481return bzero ();
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486rm -f conftest.$ac_objext conftest$ac_exeext
3487if { (ac_try="$ac_link"
3488case "(($ac_try" in
3489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490  *) ac_try_echo=$ac_try;;
3491esac
3492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493  (eval "$ac_link") 2>conftest.er1
3494  ac_status=$?
3495  grep -v '^ *+' conftest.er1 >conftest.err
3496  rm -f conftest.er1
3497  cat conftest.err >&5
3498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); } && {
3500	 test -z "$ac_c_werror_flag" ||
3501	 test ! -s conftest.err
3502       } && test -s conftest$ac_exeext &&
3503       $as_test_x conftest$ac_exeext; then
3504  ac_cv_lib_inet_bzero=yes
3505else
3506  echo "$as_me: failed program was:" >&5
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
3509	ac_cv_lib_inet_bzero=no
3510fi
3511
3512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3513      conftest$ac_exeext conftest.$ac_ext
3514LIBS=$ac_check_lib_save_LIBS
3515fi
3516{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_bzero" >&5
3517echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6; }
3518if test $ac_cv_lib_inet_bzero = yes; then
3519  NETWORK_LIBS="$NETWORK_LIBS -linet"
3520fi
3521
3522fi
3523
3524
3525
3526if test -r /usr/local/include/gdbm.h -a "$GCC" = yes
3527then
3528    CFLAGS="$CFLAGS -idirafter /usr/local/include"
3529    CPPFLAGS="$CPPFLAGS -idirafter /usr/local/include"
3530fi
3531
3532
3533if test "$GCC" = yes
3534then
3535        { echo "$as_me:$LINENO: checking for gcc version 2.7.2.3" >&5
3536echo $ECHO_N "checking for gcc version 2.7.2.3... $ECHO_C" >&6; }
3537        if gcc --version | grep "2\.7\.2\.3" > /dev/null
3538        then
3539                { echo "$as_me:$LINENO: result: yes" >&5
3540echo "${ECHO_T}yes" >&6; }
3541                { echo "$as_me:$LINENO: result: CFLAGS was $CFLAGS" >&5
3542echo "${ECHO_T}CFLAGS was $CFLAGS" >&6; }
3543                CFLAGS=`echo "$CFLAGS" | sed 's/-O2//'`
3544                { echo "$as_me:$LINENO: result: CFLAGS now $CFLAGS" >&5
3545echo "${ECHO_T}CFLAGS now $CFLAGS" >&6; }
3546        else
3547                { echo "$as_me:$LINENO: result: no" >&5
3548echo "${ECHO_T}no" >&6; }
3549        fi
3550fi
3551
3552
3553{ echo "$as_me:$LINENO: checking if gcc supports __attribute__ (format) " >&5
3554echo $ECHO_N "checking if gcc supports __attribute__ (format) ... $ECHO_C" >&6; }
3555cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h.  */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h.  */
3561 #include <stdarg.h>
3562int
3563main ()
3564{
3565 char *fmt(char *c,...) __attribute__ ((format (printf, 1, 2)));
3566                  char *p = fmt("test");
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571rm -f conftest.$ac_objext
3572if { (ac_try="$ac_compile"
3573case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578  (eval "$ac_compile") 2>conftest.er1
3579  ac_status=$?
3580  grep -v '^ *+' conftest.er1 >conftest.err
3581  rm -f conftest.er1
3582  cat conftest.err >&5
3583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584  (exit $ac_status); } && {
3585	 test -z "$ac_c_werror_flag" ||
3586	 test ! -s conftest.err
3587       } && test -s conftest.$ac_objext; then
3588  { echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
3590#define SUPPORT_ATTRIBUTE_FORMAT 1
3591_ACEOF
3592
3593else
3594  echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597	{ echo "$as_me:$LINENO: result: no" >&5
3598echo "${ECHO_T}no" >&6; }
3599fi
3600
3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602
3603
3604{ echo "$as_me:$LINENO: checking if ar chokes on -r" >&5
3605echo $ECHO_N "checking if ar chokes on -r... $ECHO_C" >&6; }
3606if ar -r junque.ar ${srcdir}/configure.in 2>/dev/null
3607then
3608        AR_FLAG=" -r "
3609        RANLIB_CMD=""
3610        rm -f junque.ar
3611        { echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6; }
3613elif ar r junque.ar ${srcdir}/configure.in 2>/dev/null
3614then
3615        AR_FLAG=" r "
3616        RANLIB_CMD="	\${RANLIB} \$@"
3617        rm -f junque.ar
3618        { echo "$as_me:$LINENO: result: yes" >&5
3619echo "${ECHO_T}yes" >&6; }
3620else
3621        { echo "$as_me:$LINENO: result: ar fails" >&5
3622echo "${ECHO_T}ar fails" >&6; }
3623        { { echo "$as_me:$LINENO: error: ar doesn't work" >&5
3624echo "$as_me: error: ar doesn't work" >&2;}
3625   { (exit 1); exit 1; }; }
3626        AR_FLAG=" r "
3627        RANLIB_CMD="	\${RANLIB} \$@"
3628fi
3629
3630
3631
3632
3633{ echo "$as_me:$LINENO: checking for getspnam" >&5
3634echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
3635if test "${ac_cv_func_getspnam+set}" = set; then
3636  echo $ECHO_N "(cached) $ECHO_C" >&6
3637else
3638  cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h.  */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h.  */
3644/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
3645   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3646#define getspnam innocuous_getspnam
3647
3648/* System header to define __stub macros and hopefully few prototypes,
3649    which can conflict with char getspnam (); below.
3650    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3651    <limits.h> exists even on freestanding compilers.  */
3652
3653#ifdef __STDC__
3654# include <limits.h>
3655#else
3656# include <assert.h>
3657#endif
3658
3659#undef getspnam
3660
3661/* Override any GCC internal prototype to avoid an error.
3662   Use char because int might match the return type of a GCC
3663   builtin and then its argument prototype would still apply.  */
3664#ifdef __cplusplus
3665extern "C"
3666#endif
3667char getspnam ();
3668/* The GNU C library defines this for functions which it implements
3669    to always fail with ENOSYS.  Some functions are actually named
3670    something starting with __ and the normal name is an alias.  */
3671#if defined __stub_getspnam || defined __stub___getspnam
3672choke me
3673#endif
3674
3675int
3676main ()
3677{
3678return getspnam ();
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683rm -f conftest.$ac_objext conftest$ac_exeext
3684if { (ac_try="$ac_link"
3685case "(($ac_try" in
3686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687  *) ac_try_echo=$ac_try;;
3688esac
3689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690  (eval "$ac_link") 2>conftest.er1
3691  ac_status=$?
3692  grep -v '^ *+' conftest.er1 >conftest.err
3693  rm -f conftest.er1
3694  cat conftest.err >&5
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); } && {
3697	 test -z "$ac_c_werror_flag" ||
3698	 test ! -s conftest.err
3699       } && test -s conftest$ac_exeext &&
3700       $as_test_x conftest$ac_exeext; then
3701  ac_cv_func_getspnam=yes
3702else
3703  echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706	ac_cv_func_getspnam=no
3707fi
3708
3709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3710      conftest$ac_exeext conftest.$ac_ext
3711fi
3712{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
3713echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
3714if test $ac_cv_func_getspnam = yes; then
3715  found_spnam="yes"
3716else
3717  found_spnam="no"
3718fi
3719
3720{ echo "$as_me:$LINENO: checking for getprpwnam" >&5
3721echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6; }
3722if test "${ac_cv_func_getprpwnam+set}" = set; then
3723  echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725  cat >conftest.$ac_ext <<_ACEOF
3726/* confdefs.h.  */
3727_ACEOF
3728cat confdefs.h >>conftest.$ac_ext
3729cat >>conftest.$ac_ext <<_ACEOF
3730/* end confdefs.h.  */
3731/* Define getprpwnam to an innocuous variant, in case <limits.h> declares getprpwnam.
3732   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3733#define getprpwnam innocuous_getprpwnam
3734
3735/* System header to define __stub macros and hopefully few prototypes,
3736    which can conflict with char getprpwnam (); below.
3737    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3738    <limits.h> exists even on freestanding compilers.  */
3739
3740#ifdef __STDC__
3741# include <limits.h>
3742#else
3743# include <assert.h>
3744#endif
3745
3746#undef getprpwnam
3747
3748/* Override any GCC internal prototype to avoid an error.
3749   Use char because int might match the return type of a GCC
3750   builtin and then its argument prototype would still apply.  */
3751#ifdef __cplusplus
3752extern "C"
3753#endif
3754char getprpwnam ();
3755/* The GNU C library defines this for functions which it implements
3756    to always fail with ENOSYS.  Some functions are actually named
3757    something starting with __ and the normal name is an alias.  */
3758#if defined __stub_getprpwnam || defined __stub___getprpwnam
3759choke me
3760#endif
3761
3762int
3763main ()
3764{
3765return getprpwnam ();
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770rm -f conftest.$ac_objext conftest$ac_exeext
3771if { (ac_try="$ac_link"
3772case "(($ac_try" in
3773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774  *) ac_try_echo=$ac_try;;
3775esac
3776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777  (eval "$ac_link") 2>conftest.er1
3778  ac_status=$?
3779  grep -v '^ *+' conftest.er1 >conftest.err
3780  rm -f conftest.er1
3781  cat conftest.err >&5
3782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783  (exit $ac_status); } && {
3784	 test -z "$ac_c_werror_flag" ||
3785	 test ! -s conftest.err
3786       } && test -s conftest$ac_exeext &&
3787       $as_test_x conftest$ac_exeext; then
3788  ac_cv_func_getprpwnam=yes
3789else
3790  echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793	ac_cv_func_getprpwnam=no
3794fi
3795
3796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3797      conftest$ac_exeext conftest.$ac_ext
3798fi
3799{ echo "$as_me:$LINENO: result: $ac_cv_func_getprpwnam" >&5
3800echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6; }
3801if test $ac_cv_func_getprpwnam = yes; then
3802  found_prpwnam="yes"
3803else
3804  found_prpwnam="no"
3805fi
3806
3807
3808if test "$found_spnam" != "yes"; then
3809    { echo "$as_me:$LINENO: checking for getspnam in -lshadow" >&5
3810echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6; }
3811if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
3812  echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814  ac_check_lib_save_LIBS=$LIBS
3815LIBS="-lshadow  $LIBS"
3816cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h.  */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h.  */
3822
3823/* Override any GCC internal prototype to avoid an error.
3824   Use char because int might match the return type of a GCC
3825   builtin and then its argument prototype would still apply.  */
3826#ifdef __cplusplus
3827extern "C"
3828#endif
3829char getspnam ();
3830int
3831main ()
3832{
3833return getspnam ();
3834  ;
3835  return 0;
3836}
3837_ACEOF
3838rm -f conftest.$ac_objext conftest$ac_exeext
3839if { (ac_try="$ac_link"
3840case "(($ac_try" in
3841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842  *) ac_try_echo=$ac_try;;
3843esac
3844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845  (eval "$ac_link") 2>conftest.er1
3846  ac_status=$?
3847  grep -v '^ *+' conftest.er1 >conftest.err
3848  rm -f conftest.er1
3849  cat conftest.err >&5
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); } && {
3852	 test -z "$ac_c_werror_flag" ||
3853	 test ! -s conftest.err
3854       } && test -s conftest$ac_exeext &&
3855       $as_test_x conftest$ac_exeext; then
3856  ac_cv_lib_shadow_getspnam=yes
3857else
3858  echo "$as_me: failed program was:" >&5
3859sed 's/^/| /' conftest.$ac_ext >&5
3860
3861	ac_cv_lib_shadow_getspnam=no
3862fi
3863
3864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3865      conftest$ac_exeext conftest.$ac_ext
3866LIBS=$ac_check_lib_save_LIBS
3867fi
3868{ echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspnam" >&5
3869echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6; }
3870if test $ac_cv_lib_shadow_getspnam = yes; then
3871  found_spnam="yes"
3872else
3873  found_spnam="no"
3874fi
3875
3876    if test "$found_spnam" = "yes"; then
3877        LIBS="$LIBS -lshadow"
3878    fi
3879fi
3880
3881if test "$found_prpwnam" != "yes"; then
3882    { echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
3883echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6; }
3884if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
3885  echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887  ac_check_lib_save_LIBS=$LIBS
3888LIBS="-lprot  $LIBS"
3889cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h.  */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h.  */
3895
3896/* Override any GCC internal prototype to avoid an error.
3897   Use char because int might match the return type of a GCC
3898   builtin and then its argument prototype would still apply.  */
3899#ifdef __cplusplus
3900extern "C"
3901#endif
3902char getprpwnam ();
3903int
3904main ()
3905{
3906return getprpwnam ();
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911rm -f conftest.$ac_objext conftest$ac_exeext
3912if { (ac_try="$ac_link"
3913case "(($ac_try" in
3914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915  *) ac_try_echo=$ac_try;;
3916esac
3917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918  (eval "$ac_link") 2>conftest.er1
3919  ac_status=$?
3920  grep -v '^ *+' conftest.er1 >conftest.err
3921  rm -f conftest.er1
3922  cat conftest.err >&5
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); } && {
3925	 test -z "$ac_c_werror_flag" ||
3926	 test ! -s conftest.err
3927       } && test -s conftest$ac_exeext &&
3928       $as_test_x conftest$ac_exeext; then
3929  ac_cv_lib_prot_getprpwnam=yes
3930else
3931  echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
3934	ac_cv_lib_prot_getprpwnam=no
3935fi
3936
3937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3938      conftest$ac_exeext conftest.$ac_ext
3939LIBS=$ac_check_lib_save_LIBS
3940fi
3941{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
3942echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6; }
3943if test $ac_cv_lib_prot_getprpwnam = yes; then
3944  found_prpwnam="yes"
3945else
3946  found_prpwnam="no"
3947fi
3948
3949    if test "$found_prpwnam" = "yes"; then
3950        LIBS="$LIBS -lprot"
3951    fi
3952fi
3953
3954if test "$found_prpwnam" != "yes"; then
3955    { echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
3956echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6; }
3957if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
3958  echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960  ac_check_lib_save_LIBS=$LIBS
3961LIBS="-lsec  $LIBS"
3962cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h.  */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
3967/* end confdefs.h.  */
3968
3969/* Override any GCC internal prototype to avoid an error.
3970   Use char because int might match the return type of a GCC
3971   builtin and then its argument prototype would still apply.  */
3972#ifdef __cplusplus
3973extern "C"
3974#endif
3975char getprpwnam ();
3976int
3977main ()
3978{
3979return getprpwnam ();
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984rm -f conftest.$ac_objext conftest$ac_exeext
3985if { (ac_try="$ac_link"
3986case "(($ac_try" in
3987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988  *) ac_try_echo=$ac_try;;
3989esac
3990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991  (eval "$ac_link") 2>conftest.er1
3992  ac_status=$?
3993  grep -v '^ *+' conftest.er1 >conftest.err
3994  rm -f conftest.er1
3995  cat conftest.err >&5
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); } && {
3998	 test -z "$ac_c_werror_flag" ||
3999	 test ! -s conftest.err
4000       } && test -s conftest$ac_exeext &&
4001       $as_test_x conftest$ac_exeext; then
4002  ac_cv_lib_sec_getprpwnam=yes
4003else
4004  echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007	ac_cv_lib_sec_getprpwnam=no
4008fi
4009
4010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4011      conftest$ac_exeext conftest.$ac_ext
4012LIBS=$ac_check_lib_save_LIBS
4013fi
4014{ echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
4015echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6; }
4016if test $ac_cv_lib_sec_getprpwnam = yes; then
4017  found_prpwnam="yes"
4018else
4019  found_prpwnam="no"
4020fi
4021
4022    if test "$found_prpwnam" = "yes"; then
4023        LIBS="$LIBS -lsec"
4024    fi
4025fi
4026
4027if test "$found_prpwnam" != "yes"; then
4028    { echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
4029echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6; }
4030if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
4031  echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033  ac_check_lib_save_LIBS=$LIBS
4034LIBS="-lsecurity  $LIBS"
4035cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h.  */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h.  */
4041
4042/* Override any GCC internal prototype to avoid an error.
4043   Use char because int might match the return type of a GCC
4044   builtin and then its argument prototype would still apply.  */
4045#ifdef __cplusplus
4046extern "C"
4047#endif
4048char getprpwnam ();
4049int
4050main ()
4051{
4052return getprpwnam ();
4053  ;
4054  return 0;
4055}
4056_ACEOF
4057rm -f conftest.$ac_objext conftest$ac_exeext
4058if { (ac_try="$ac_link"
4059case "(($ac_try" in
4060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061  *) ac_try_echo=$ac_try;;
4062esac
4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064  (eval "$ac_link") 2>conftest.er1
4065  ac_status=$?
4066  grep -v '^ *+' conftest.er1 >conftest.err
4067  rm -f conftest.er1
4068  cat conftest.err >&5
4069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070  (exit $ac_status); } && {
4071	 test -z "$ac_c_werror_flag" ||
4072	 test ! -s conftest.err
4073       } && test -s conftest$ac_exeext &&
4074       $as_test_x conftest$ac_exeext; then
4075  ac_cv_lib_security_getprpwnam=yes
4076else
4077  echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080	ac_cv_lib_security_getprpwnam=no
4081fi
4082
4083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4084      conftest$ac_exeext conftest.$ac_ext
4085LIBS=$ac_check_lib_save_LIBS
4086fi
4087{ echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
4088echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6; }
4089if test $ac_cv_lib_security_getprpwnam = yes; then
4090  found_prpwnam="yes"
4091else
4092  found_prpwnam="no"
4093fi
4094
4095    if test "$found_prpwnam" = "yes"; then
4096        LIBS="$LIBS -lsecurity"
4097    fi
4098fi
4099
4100if test "$found_spnam" = "yes"; then
4101    { echo "$as_me:$LINENO: result: Found getspnam(); using shadow passwords by default " >&5
4102echo "${ECHO_T}Found getspnam(); using shadow passwords by default " >&6; }
4103    else
4104    if test "$found_prpwnam" = "yes"; then
4105        { echo "$as_me:$LINENO: result: Found getprpwnam(); using secure protected passwords by default " >&5
4106echo "${ECHO_T}Found getprpwnam(); using secure protected passwords by default " >&6; }
4107    fi
4108fi
4109
4110if test "$found_spnam" = "yes" -o "$found_prpwnam" = "yes"; then
4111    found_spnam_prpwnam="yes"
4112else
4113    found_spnam_prpwnam="no"
4114fi
4115
4116
4117
4118
4119# Check whether --with-new-bulls was given.
4120if test "${with_new_bulls+set}" = set; then
4121  withval=$with_new_bulls; newbullcnt="$withval"
4122else
4123  newbullcnt="no"
4124fi
4125
4126
4127# Check whether --with-popuid was given.
4128if test "${with_popuid+set}" = set; then
4129  withval=$with_popuid; popuid=$withval
4130else
4131  popuid="no"
4132fi
4133
4134
4135# Check whether --with-log-facility was given.
4136if test "${with_log_facility+set}" = set; then
4137  withval=$with_log_facility; logid="$withval"
4138else
4139  logid="no"
4140fi
4141
4142# Check whether --enable-drac was given.
4143if test "${enable_drac+set}" = set; then
4144  enableval=$enable_drac; dracauth="$enableval"
4145else
4146  dracauth="no"
4147fi
4148
4149
4150
4151# Check whether --enable-debugging was given.
4152if test "${enable_debugging+set}" = set; then
4153  enableval=$enable_debugging; debugging="$enableval"
4154else
4155  debugging="no"
4156fi
4157
4158if test "$debugging" != "no"; then
4159    { echo "$as_me:$LINENO: result: Turning on debugging code" >&5
4160echo "${ECHO_T}Turning on debugging code" >&6; }
4161    cat >>confdefs.h <<\_ACEOF
4162#define DEBUG 1
4163_ACEOF
4164
4165else
4166    { echo "$as_me:$LINENO: result: Will NOT compile in debugging code" >&5
4167echo "${ECHO_T}Will NOT compile in debugging code" >&6; }
4168fi
4169
4170
4171# Check whether --enable-low_debug was given.
4172if test "${enable_low_debug+set}" = set; then
4173  enableval=$enable_low_debug; _debugging="$enableval"
4174else
4175  _debugging="no"
4176fi
4177
4178if test "$_debugging" != "no"; then
4179    { echo "$as_me:$LINENO: result: Low-level heavy-duty debugging enabled!" >&5
4180echo "${ECHO_T}Low-level heavy-duty debugging enabled!" >&6; }
4181    cat >>confdefs.h <<\_ACEOF
4182#define _DEBUG 1
4183_ACEOF
4184
4185    CFLAGS=`echo "$CFLAGS" | sed 's/-O2//'`
4186fi
4187
4188# Check whether --enable-server-mode was given.
4189if test "${enable_server_mode+set}" = set; then
4190  enableval=$enable_server_mode; servermode_old="$enableval"
4191else
4192  servermode_old="no"
4193fi
4194
4195# Check whether --enable-servermode was given.
4196if test "${enable_servermode+set}" = set; then
4197  enableval=$enable_servermode; servermode="$enableval"
4198else
4199  servermode="$servermode_old"
4200fi
4201
4202if test "$servermode" != "no"; then
4203    { echo "$as_me:$LINENO: result: Enabled SERVER_MODE" >&5
4204echo "${ECHO_T}Enabled SERVER_MODE" >&6; }
4205    cat >>confdefs.h <<\_ACEOF
4206#define SERVER_MODE 1
4207_ACEOF
4208
4209fi
4210
4211
4212# Check whether --enable-bulletins was given.
4213if test "${enable_bulletins+set}" = set; then
4214  enableval=$enable_bulletins; bulletins="$enableval"
4215else
4216  bulletins="no"
4217fi
4218
4219if test "$bulletins" != "no" ; then
4220    { echo "$as_me:$LINENO: result: Bulletin support is enabled" >&5
4221echo "${ECHO_T}Bulletin support is enabled" >&6; }
4222    if test "$bulletins" != "yes" ; then
4223        cat >>confdefs.h <<_ACEOF
4224#define BULLDIR "$bulletins"
4225_ACEOF
4226
4227    else
4228        cat >>confdefs.h <<_ACEOF
4229#define BULLDIR "/var/spool/bulls"
4230_ACEOF
4231
4232    fi
4233fi
4234
4235
4236# Check whether --enable-bulldb was given.
4237if test "${enable_bulldb+set}" = set; then
4238  enableval=$enable_bulldb; bulldb="$enableval"
4239else
4240  bulldb="no"
4241fi
4242
4243if test "$bulldb" != "no" ; then
4244    need_db=yes
4245    { echo "$as_me:$LINENO: result: Bulletin database support is enabled" >&5
4246echo "${ECHO_T}Bulletin database support is enabled" >&6; }
4247    cat >>confdefs.h <<\_ACEOF
4248#define BULLDB 1
4249_ACEOF
4250
4251    if test "$bulldb" != "yes" ; then
4252        cat >>confdefs.h <<_ACEOF
4253#define BULLDIR "$bulldb"
4254_ACEOF
4255
4256    elif test "$bulletins" = "no" ; then
4257        cat >>confdefs.h <<_ACEOF
4258#define BULLDIR "/var/spool/bulls"
4259_ACEOF
4260
4261    fi
4262fi
4263
4264
4265# Check whether --enable-new-bulls was given.
4266if test "${enable_new_bulls+set}" = set; then
4267  enableval=$enable_new_bulls; newbullcnt="$enableval"
4268fi
4269
4270if test "$newbullcnt" != "no" ; then
4271    if test "$newbullcnt" != "yes" ; then
4272        { echo "$as_me:$LINENO: result: Maximum bulletins for new users=$newbullcnt" >&5
4273echo "${ECHO_T}Maximum bulletins for new users=$newbullcnt" >&6; }
4274        cat >>confdefs.h <<_ACEOF
4275#define NEWBULLCNT $newbullcnt
4276_ACEOF
4277
4278    else
4279        { echo "$as_me:$LINENO: result: Maximum bulletins for new users=10" >&5
4280echo "${ECHO_T}Maximum bulletins for new users=10" >&6; }
4281        cat >>confdefs.h <<_ACEOF
4282#define NEWBULLCNT 10
4283_ACEOF
4284
4285    fi
4286fi
4287
4288
4289# Check whether --enable-popbulldir was given.
4290if test "${enable_popbulldir+set}" = set; then
4291  enableval=$enable_popbulldir; popbulldir="$enableval"
4292else
4293  popbulldir="no"
4294fi
4295
4296if test "$popbulldir" != "no" -a "$popbulldir" != "yes" ; then
4297    cat >>confdefs.h <<_ACEOF
4298#define POPBULLDIR "$popbulldir"
4299_ACEOF
4300
4301    { echo "$as_me:$LINENO: result: User's popbull files are in $popbulldir" >&5
4302echo "${ECHO_T}User's popbull files are in $popbulldir" >&6; }
4303fi
4304
4305
4306# Check whether --enable-specialauth was given.
4307if test "${enable_specialauth+set}" = set; then
4308  enableval=$enable_specialauth; specialauth="$enableval"
4309else
4310  specialauth="$found_spnam_prpwnam"
4311fi
4312
4313if test "$specialauth" = "yes"; then
4314    { echo "$as_me:$LINENO: result: Defining SPEC_POP_AUTH" >&5
4315echo "${ECHO_T}Defining SPEC_POP_AUTH" >&6; }
4316    cat >>confdefs.h <<\_ACEOF
4317#define SPEC_POP_AUTH 1
4318_ACEOF
4319
4320fi
4321
4322
4323
4324# Check whether --with-pam was given.
4325if test "${with_pam+set}" = set; then
4326  withval=$with_pam; use_pam=$withval
4327else
4328  use_pam="_default_"
4329fi
4330
4331if test "$use_pam" != "no" -a $use_pam != "_default_"; then
4332    if test "$use_pam" != "yes"; then
4333        cat >>confdefs.h <<_ACEOF
4334#define USE_PAM "$use_pam"
4335_ACEOF
4336
4337        USE_PAM="$use_pam"
4338
4339        { echo "$as_me:$LINENO: result: Enabling PAM with service name \"$use_pam\" and defining SPC_POP_AUTH" >&5
4340echo "${ECHO_T}Enabling PAM with service name \"$use_pam\" and defining SPC_POP_AUTH" >&6; }
4341    else
4342        cat >>confdefs.h <<_ACEOF
4343#define USE_PAM "pop3"
4344_ACEOF
4345
4346        USE_PAM="pop3"
4347
4348        { echo "$as_me:$LINENO: result: Enabling PAM with service name \"pop3\" and defining SPEC_POP_AUTH" >&5
4349echo "${ECHO_T}Enabling PAM with service name \"pop3\" and defining SPEC_POP_AUTH" >&6; }
4350    fi
4351    cat >>confdefs.h <<\_ACEOF
4352#define SPEC_POP_AUTH 1
4353_ACEOF
4354
4355    pam_specified="yes"
4356fi
4357
4358
4359# Check whether --enable-apop was given.
4360if test "${enable_apop+set}" = set; then
4361  enableval=$enable_apop; apop="$enableval"
4362else
4363  apop="no"
4364fi
4365
4366if test "$apop" != "no" ; then
4367    need_db=yes
4368    POPAUTH="popauth"
4369    if test "$apop" != "yes" ; then
4370        APOP_DB="$apop"
4371    else
4372        APOP_DB="/etc/pop.auth"
4373    fi
4374    { echo "$as_me:$LINENO: result: apop is enabled; database is \"$APOP_DB\"" >&5
4375echo "${ECHO_T}apop is enabled; database is \"$APOP_DB\"" >&6; }
4376    APOP_DIR=$(dirname "$APOP_DB")
4377    cat >>confdefs.h <<_ACEOF
4378#define APOP "$APOP_DB"
4379_ACEOF
4380
4381    cat >>confdefs.h <<_ACEOF
4382#define APOP_DIR "$APOP_DIR"
4383_ACEOF
4384
4385fi
4386
4387
4388# Check whether --enable-scram was given.
4389if test "${enable_scram+set}" = set; then
4390  enableval=$enable_scram; scram="$enableval"
4391else
4392  scram="no"
4393fi
4394
4395if test "$scram" != "no" ; then
4396    need_db=yes
4397    pop_target="popauth"
4398    if test "$scram" != "yes" ; then
4399        cat >>confdefs.h <<_ACEOF
4400#define SCRAM "$scram"
4401_ACEOF
4402
4403    else
4404        cat >>confdefs.h <<_ACEOF
4405#define SCRAM "/etc/pop.auth"
4406_ACEOF
4407
4408    fi
4409fi
4410
4411
4412# Check whether --enable-popuid was given.
4413if test "${enable_popuid+set}" = set; then
4414  enableval=$enable_popuid; popuid=$enableval
4415else
4416  popuid="no"
4417fi
4418
4419if test "${popuid}" != "no" ; then
4420    if test "${popuid}" != "yes" ; then
4421        APOP_UID="$popuid"
4422        cat >>confdefs.h <<_ACEOF
4423#define POPUID "$popuid"
4424_ACEOF
4425
4426    else
4427        APOP_UID="pop"
4428        cat >>confdefs.h <<_ACEOF
4429#define POPUID "pop"
4430_ACEOF
4431
4432    fi
4433else
4434    if test "$apop" != "no" -o "$scram" != "no" ; then
4435        APOP_UID="pop"
4436        cat >>confdefs.h <<_ACEOF
4437#define POPUID "pop"
4438_ACEOF
4439
4440    fi
4441fi
4442
4443
4444# Check whether --enable-log-login was given.
4445if test "${enable_log_login+set}" = set; then
4446  enableval=$enable_log_login; logloginmode="$enableval"
4447else
4448  logloginmode="no"
4449fi
4450
4451if test "$logloginmode" != "no"; then
4452    { echo "$as_me:$LINENO: result: Enabled LOG-LOGIN" >&5
4453echo "${ECHO_T}Enabled LOG-LOGIN" >&6; }
4454    cat >>confdefs.h <<\_ACEOF
4455#define LOG_LOGIN 1
4456_ACEOF
4457
4458fi
4459
4460
4461# Check whether --enable-auto-delete was given.
4462if test "${enable_auto_delete+set}" = set; then
4463  enableval=$enable_auto_delete; autodelmode="$enableval"
4464else
4465  autodelmode="no"
4466fi
4467
4468if test "$autodelmode" != "no"; then
4469    { echo "$as_me:$LINENO: result: Enabled AUTO-DELETE and NOUPDATEONABORT" >&5
4470echo "${ECHO_T}Enabled AUTO-DELETE and NOUPDATEONABORT" >&6; }
4471    cat >>confdefs.h <<\_ACEOF
4472#define AUTO_DELETE 1
4473_ACEOF
4474
4475    cat >>confdefs.h <<\_ACEOF
4476#define NOUPDATEONABORT 1
4477_ACEOF
4478
4479fi
4480
4481
4482# Check whether --enable-shy was given.
4483if test "${enable_shy+set}" = set; then
4484  enableval=$enable_shy; shymode="$enableval"
4485else
4486  shymode="no"
4487fi
4488
4489if test "$shymode" != "no"; then
4490        { echo "$as_me:$LINENO: result: Enabled SHY" >&5
4491echo "${ECHO_T}Enabled SHY" >&6; }
4492        cat >>confdefs.h <<\_ACEOF
4493#define SHY 1
4494_ACEOF
4495
4496fi
4497
4498
4499# Check whether --enable-warnings was given.
4500if test "${enable_warnings+set}" = set; then
4501  enableval=$enable_warnings; extrawarnings="$enableval"
4502else
4503  extrawarnings="no"
4504fi
4505
4506if test "$extrawarnings" != "no" -a "$GCC" = yes; then
4507        { echo "$as_me:$LINENO: result: Extra compiler warnings requested" >&5
4508echo "${ECHO_T}Extra compiler warnings requested" >&6; }
4509        CFLAGS="$CFLAGS -W -Wall "
4510        CFLAGS="$CFLAGS -Wpointer-arith -Wcast-align "
4511fi
4512
4513
4514# Check whether --enable-hash-spool was given.
4515if test "${enable_hash_spool+set}" = set; then
4516  enableval=$enable_hash_spool; hashspool="$enableval"
4517else
4518  hashspool="no"
4519fi
4520
4521if test "$hashspool" != "no"; then
4522    if test "$hashspool" = "1" -o "$hashspool" = "2" ; then
4523        { echo "$as_me:$LINENO: result: Using hashed spool directory method $hashspool" >&5
4524echo "${ECHO_T}Using hashed spool directory method $hashspool" >&6; }
4525        cat >>confdefs.h <<_ACEOF
4526#define HASH_SPOOL $hashspool
4527_ACEOF
4528
4529    else
4530        { echo "$as_me:$LINENO: result: Using hashed spool directory method 2" >&5
4531echo "${ECHO_T}Using hashed spool directory method 2" >&6; }
4532        cat >>confdefs.h <<_ACEOF
4533#define HASH_SPOOL 2
4534_ACEOF
4535
4536    fi
4537fi
4538
4539
4540# Check whether --enable-home-dir-mail was given.
4541if test "${enable_home_dir_mail+set}" = set; then
4542  enableval=$enable_home_dir_mail; homedirmail="$enableval"
4543else
4544  homedirmail="no"
4545fi
4546
4547if test "$homedirmail" != "no"; then
4548    if test "$homedirmail" != "yes" ; then
4549        { echo "$as_me:$LINENO: result: Spool files are in user's home directory: $homedirmail" >&5
4550echo "${ECHO_T}Spool files are in user's home directory: $homedirmail" >&6; }
4551        cat >>confdefs.h <<_ACEOF
4552#define HOMEDIRMAIL "$homedirmail"
4553_ACEOF
4554
4555    else
4556        { echo "$as_me:$LINENO: result: Spool files are in user's home directory: .mail" >&5
4557echo "${ECHO_T}Spool files are in user's home directory: .mail" >&6; }
4558        cat >>confdefs.h <<\_ACEOF
4559#define HOMEDIRMAIL ".mail"
4560_ACEOF
4561
4562    fi
4563fi
4564
4565# Check whether --enable-home-dir-misc was given.
4566if test "${enable_home_dir_misc+set}" = set; then
4567  enableval=$enable_home_dir_misc; homedirmisc="$enableval"
4568else
4569  homedirmisc="no"
4570fi
4571
4572if test "$homedirmisc" != "no"; then
4573    { echo "$as_me:$LINENO: result: .pop and .cache files are in home directory" >&5
4574echo "${ECHO_T}.pop and .cache files are in home directory" >&6; }
4575    cat >>confdefs.h <<\_ACEOF
4576#define HOMEDIRMISC 1
4577_ACEOF
4578
4579fi
4580
4581
4582# Check whether --enable-spool-dir was given.
4583if test "${enable_spool_dir+set}" = set; then
4584  enableval=$enable_spool_dir; spooldir="$enableval"
4585else
4586  spooldir="no"
4587fi
4588
4589if test "$spooldir" != "no" -a "$spooldir" != "yes" ; then
4590    { echo "$as_me:$LINENO: result: The mail spools are in: $spooldir" >&5
4591echo "${ECHO_T}The mail spools are in: $spooldir" >&6; }
4592    cat >>confdefs.h <<_ACEOF
4593#define POP_MAILDIR "$spooldir"
4594_ACEOF
4595
4596fi
4597
4598
4599# Check whether --enable-temp-drop-dir was given.
4600if test "${enable_temp_drop_dir+set}" = set; then
4601  enableval=$enable_temp_drop_dir; tempdropdir="$enableval"
4602else
4603  tempdropdir="no"
4604fi
4605
4606if test "$tempdropdir" != "no"; then
4607    if test "$tempdropdir" != "yes" ; then
4608        { echo "$as_me:$LINENO: result: Temporary drop files are in: $tempdropdir" >&5
4609echo "${ECHO_T}Temporary drop files are in: $tempdropdir" >&6; }
4610        cat >>confdefs.h <<_ACEOF
4611#define POP_DROP_DIR "$tempdropdir"
4612_ACEOF
4613
4614    else
4615        { echo "$as_me:$LINENO: result: Temporary drop files are in spool directory" >&5
4616echo "${ECHO_T}Temporary drop files are in spool directory" >&6; }
4617        cat >>confdefs.h <<_ACEOF
4618#define POP_DROP_DIR POP_MAILDIR
4619_ACEOF
4620
4621    fi
4622fi
4623
4624
4625# Check whether --enable-cache-dir was given.
4626if test "${enable_cache_dir+set}" = set; then
4627  enableval=$enable_cache_dir; cachedir="$enableval"
4628else
4629  cachedir="no"
4630fi
4631
4632if test "$cachedir" != "no"; then
4633    if test "$cachedir" != "yes" ; then
4634        { echo "$as_me:$LINENO: result: Cache files are in: $cachedir" >&5
4635echo "${ECHO_T}Cache files are in: $cachedir" >&6; }
4636        cat >>confdefs.h <<_ACEOF
4637#define POP_CACHE_DIR "$cachedir"
4638_ACEOF
4639
4640    else
4641        { echo "$as_me:$LINENO: result: Cache files are in spool directory" >&5
4642echo "${ECHO_T}Cache files are in spool directory" >&6; }
4643        cat >>confdefs.h <<_ACEOF
4644#define POP_CACHE_DIR POP_DROP_DIR
4645_ACEOF
4646
4647    fi
4648fi
4649
4650
4651# Check whether --enable-log-facility was given.
4652if test "${enable_log_facility+set}" = set; then
4653  enableval=$enable_log_facility; logid="$enableval"
4654fi
4655
4656if test "$logid" != "no"; then
4657    { echo "$as_me:$LINENO: result: Will log using ${withval}" >&5
4658echo "${ECHO_T}Will log using ${withval}" >&6; }
4659fi
4660
4661
4662# Check whether --enable-uw-kludge was given.
4663if test "${enable_uw_kludge+set}" = set; then
4664  enableval=$enable_uw_kludge; uwkludge="$enableval"
4665else
4666  uwkludge="no"
4667fi
4668
4669if test "$uwkludge" != "no"; then
4670    { echo "$as_me:$LINENO: result: Will hide UW 'Folder Internal Data' messages" >&5
4671echo "${ECHO_T}Will hide UW 'Folder Internal Data' messages" >&6; }
4672    cat >>confdefs.h <<\_ACEOF
4673#define CHECK_UW_KLUDGE 1
4674_ACEOF
4675
4676fi
4677
4678
4679# Check whether --enable-group-bulls was given.
4680if test "${enable_group_bulls+set}" = set; then
4681  enableval=$enable_group_bulls; groupbulls="$enableval"
4682else
4683  groupbulls="no"
4684fi
4685
4686if test "$groupbulls" != "no"; then
4687    { echo "$as_me:$LINENO: result: Bulletins go to groups; group name is second part of bulletin name" >&5
4688echo "${ECHO_T}Bulletins go to groups; group name is second part of bulletin name" >&6; }
4689    cat >>confdefs.h <<\_ACEOF
4690#define USE_BULL_GROUPS 1
4691_ACEOF
4692
4693fi
4694
4695
4696
4697# Check whether --with-kerberos5 was given.
4698if test "${with_kerberos5+set}" = set; then
4699  withval=$with_kerberos5; krb5_prefix=${withval}
4700else
4701  krb5_prefix="no"
4702fi
4703
4704if test $krb5_prefix != "no"; then
4705    { echo "$as_me:$LINENO: result: Enabling Kerberos V5 support" >&5
4706echo "${ECHO_T}Enabling Kerberos V5 support" >&6; }
4707                    if test $krb5_prefix != "yes"
4708    then
4709       OS_DEFS="$OS_DEFS -I${krb5_prefix}/include"
4710       KERBEROS_LIBS="$KERBEROS_LIBS -L${krb5_prefix}/lib"
4711    fi
4712    cat >>confdefs.h <<\_ACEOF
4713#define KERBEROS 1
4714_ACEOF
4715
4716    cat >>confdefs.h <<\_ACEOF
4717#define KRB5 1
4718_ACEOF
4719
4720    cat >>confdefs.h <<\_ACEOF
4721#define KRB5_KRB4_COMPAT 1
4722_ACEOF
4723
4724    KERBEROS_LIBS="$KERBEROS_LIBS -lkrb5util -lkrb5 -ldes425 -lcom_err"
4725    { echo "$as_me:$LINENO: checking for krb5_c_string_to_key in -lk5crypto" >&5
4726echo $ECHO_N "checking for krb5_c_string_to_key in -lk5crypto... $ECHO_C" >&6; }
4727if test "${ac_cv_lib_k5crypto_krb5_c_string_to_key+set}" = set; then
4728  echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730  ac_check_lib_save_LIBS=$LIBS
4731LIBS="-lk5crypto  $LIBS"
4732cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h.  */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h.  */
4738
4739/* Override any GCC internal prototype to avoid an error.
4740   Use char because int might match the return type of a GCC
4741   builtin and then its argument prototype would still apply.  */
4742#ifdef __cplusplus
4743extern "C"
4744#endif
4745char krb5_c_string_to_key ();
4746int
4747main ()
4748{
4749return krb5_c_string_to_key ();
4750  ;
4751  return 0;
4752}
4753_ACEOF
4754rm -f conftest.$ac_objext conftest$ac_exeext
4755if { (ac_try="$ac_link"
4756case "(($ac_try" in
4757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758  *) ac_try_echo=$ac_try;;
4759esac
4760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761  (eval "$ac_link") 2>conftest.er1
4762  ac_status=$?
4763  grep -v '^ *+' conftest.er1 >conftest.err
4764  rm -f conftest.er1
4765  cat conftest.err >&5
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); } && {
4768	 test -z "$ac_c_werror_flag" ||
4769	 test ! -s conftest.err
4770       } && test -s conftest$ac_exeext &&
4771       $as_test_x conftest$ac_exeext; then
4772  ac_cv_lib_k5crypto_krb5_c_string_to_key=yes
4773else
4774  echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777	ac_cv_lib_k5crypto_krb5_c_string_to_key=no
4778fi
4779
4780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4781      conftest$ac_exeext conftest.$ac_ext
4782LIBS=$ac_check_lib_save_LIBS
4783fi
4784{ echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_c_string_to_key" >&5
4785echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_c_string_to_key" >&6; }
4786if test $ac_cv_lib_k5crypto_krb5_c_string_to_key = yes; then
4787  KERBEROS_LIBS="$KERBEROS_LIBS -lk5crypto"
4788fi
4789
4790    { echo "$as_me:$LINENO: checking for krb5_c_string_to_key in -lcrypto" >&5
4791echo $ECHO_N "checking for krb5_c_string_to_key in -lcrypto... $ECHO_C" >&6; }
4792if test "${ac_cv_lib_crypto_krb5_c_string_to_key+set}" = set; then
4793  echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795  ac_check_lib_save_LIBS=$LIBS
4796LIBS="-lcrypto  $LIBS"
4797cat >conftest.$ac_ext <<_ACEOF
4798/* confdefs.h.  */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h.  */
4803
4804/* Override any GCC internal prototype to avoid an error.
4805   Use char because int might match the return type of a GCC
4806   builtin and then its argument prototype would still apply.  */
4807#ifdef __cplusplus
4808extern "C"
4809#endif
4810char krb5_c_string_to_key ();
4811int
4812main ()
4813{
4814return krb5_c_string_to_key ();
4815  ;
4816  return 0;
4817}
4818_ACEOF
4819rm -f conftest.$ac_objext conftest$ac_exeext
4820if { (ac_try="$ac_link"
4821case "(($ac_try" in
4822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823  *) ac_try_echo=$ac_try;;
4824esac
4825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826  (eval "$ac_link") 2>conftest.er1
4827  ac_status=$?
4828  grep -v '^ *+' conftest.er1 >conftest.err
4829  rm -f conftest.er1
4830  cat conftest.err >&5
4831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832  (exit $ac_status); } && {
4833	 test -z "$ac_c_werror_flag" ||
4834	 test ! -s conftest.err
4835       } && test -s conftest$ac_exeext &&
4836       $as_test_x conftest$ac_exeext; then
4837  ac_cv_lib_crypto_krb5_c_string_to_key=yes
4838else
4839  echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
4842	ac_cv_lib_crypto_krb5_c_string_to_key=no
4843fi
4844
4845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4846      conftest$ac_exeext conftest.$ac_ext
4847LIBS=$ac_check_lib_save_LIBS
4848fi
4849{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_krb5_c_string_to_key" >&5
4850echo "${ECHO_T}$ac_cv_lib_crypto_krb5_c_string_to_key" >&6; }
4851if test $ac_cv_lib_crypto_krb5_c_string_to_key = yes; then
4852  KERBEROS_LIBS="$KERBEROS_LIBS -lcrypto"
4853fi
4854
4855    { echo "$as_me:$LINENO: checking for krb_create_ticket in -lkrb4" >&5
4856echo $ECHO_N "checking for krb_create_ticket in -lkrb4... $ECHO_C" >&6; }
4857if test "${ac_cv_lib_krb4_krb_create_ticket+set}" = set; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  ac_check_lib_save_LIBS=$LIBS
4861LIBS="-lkrb4  $LIBS"
4862cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h.  */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h.  */
4868
4869/* Override any GCC internal prototype to avoid an error.
4870   Use char because int might match the return type of a GCC
4871   builtin and then its argument prototype would still apply.  */
4872#ifdef __cplusplus
4873extern "C"
4874#endif
4875char krb_create_ticket ();
4876int
4877main ()
4878{
4879return krb_create_ticket ();
4880  ;
4881  return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext conftest$ac_exeext
4885if { (ac_try="$ac_link"
4886case "(($ac_try" in
4887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888  *) ac_try_echo=$ac_try;;
4889esac
4890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891  (eval "$ac_link") 2>conftest.er1
4892  ac_status=$?
4893  grep -v '^ *+' conftest.er1 >conftest.err
4894  rm -f conftest.er1
4895  cat conftest.err >&5
4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); } && {
4898	 test -z "$ac_c_werror_flag" ||
4899	 test ! -s conftest.err
4900       } && test -s conftest$ac_exeext &&
4901       $as_test_x conftest$ac_exeext; then
4902  ac_cv_lib_krb4_krb_create_ticket=yes
4903else
4904  echo "$as_me: failed program was:" >&5
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907	ac_cv_lib_krb4_krb_create_ticket=no
4908fi
4909
4910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4911      conftest$ac_exeext conftest.$ac_ext
4912LIBS=$ac_check_lib_save_LIBS
4913fi
4914{ echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_create_ticket" >&5
4915echo "${ECHO_T}$ac_cv_lib_krb4_krb_create_ticket" >&6; }
4916if test $ac_cv_lib_krb4_krb_create_ticket = yes; then
4917  KERBEROS_LIBS="$KERBEROS_LIBS -lkrb4"
4918fi
4919
4920
4921{ echo "$as_me:$LINENO: checking for compile in -lgen" >&5
4922echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6; }
4923if test "${ac_cv_lib_gen_compile+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  ac_check_lib_save_LIBS=$LIBS
4927LIBS="-lgen  $LIBS"
4928cat >conftest.$ac_ext <<_ACEOF
4929/* confdefs.h.  */
4930_ACEOF
4931cat confdefs.h >>conftest.$ac_ext
4932cat >>conftest.$ac_ext <<_ACEOF
4933/* end confdefs.h.  */
4934
4935/* Override any GCC internal prototype to avoid an error.
4936   Use char because int might match the return type of a GCC
4937   builtin and then its argument prototype would still apply.  */
4938#ifdef __cplusplus
4939extern "C"
4940#endif
4941char compile ();
4942int
4943main ()
4944{
4945return compile ();
4946  ;
4947  return 0;
4948}
4949_ACEOF
4950rm -f conftest.$ac_objext conftest$ac_exeext
4951if { (ac_try="$ac_link"
4952case "(($ac_try" in
4953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954  *) ac_try_echo=$ac_try;;
4955esac
4956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957  (eval "$ac_link") 2>conftest.er1
4958  ac_status=$?
4959  grep -v '^ *+' conftest.er1 >conftest.err
4960  rm -f conftest.er1
4961  cat conftest.err >&5
4962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963  (exit $ac_status); } && {
4964	 test -z "$ac_c_werror_flag" ||
4965	 test ! -s conftest.err
4966       } && test -s conftest$ac_exeext &&
4967       $as_test_x conftest$ac_exeext; then
4968  ac_cv_lib_gen_compile=yes
4969else
4970  echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973	ac_cv_lib_gen_compile=no
4974fi
4975
4976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4977      conftest$ac_exeext conftest.$ac_ext
4978LIBS=$ac_check_lib_save_LIBS
4979fi
4980{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
4981echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6; }
4982if test $ac_cv_lib_gen_compile = yes; then
4983  cat >>confdefs.h <<_ACEOF
4984#define HAVE_LIBGEN 1
4985_ACEOF
4986
4987  LIBS="-lgen $LIBS"
4988
4989fi
4990
4991fi
4992
4993
4994# Check whether --enable-any-kerberos-principal was given.
4995if test "${enable_any_kerberos_principal+set}" = set; then
4996  enableval=$enable_any_kerberos_principal; anyKprinc="$enableval"
4997else
4998  anyKprinc="no"
4999fi
5000
5001if test "$anyKprinc" != "no"; then
5002    { echo "$as_me:$LINENO: result: Setting ACCEPT_ANY_PRINCIPAL" >&5
5003echo "${ECHO_T}Setting ACCEPT_ANY_PRINCIPAL" >&6; }
5004    cat >>confdefs.h <<\_ACEOF
5005#define ACCEPT_ANY_PRINCIPAL 1
5006_ACEOF
5007
5008fi
5009
5010
5011# Check whether --enable-kuserok was given.
5012if test "${enable_kuserok+set}" = set; then
5013  enableval=$enable_kuserok; kuserok="$enableval"
5014else
5015  kuserok="no"
5016fi
5017
5018if test "$kuserok" != "no"; then
5019    { echo "$as_me:$LINENO: result: Will use kuserok" >&5
5020echo "${ECHO_T}Will use kuserok" >&6; }
5021    cat >>confdefs.h <<\_ACEOF
5022#define KUSEROK 1
5023_ACEOF
5024
5025fi
5026
5027
5028# Check whether --enable-ksockinst was given.
5029if test "${enable_ksockinst+set}" = set; then
5030  enableval=$enable_ksockinst; ksockinst="$enableval"
5031else
5032  ksockinst="no"
5033fi
5034
5035if test "$ksockinst" != "no"; then
5036    { echo "$as_me:$LINENO: result: Will use getsockinst" >&5
5037echo "${ECHO_T}Will use getsockinst" >&6; }
5038    cat >>confdefs.h <<\_ACEOF
5039#define K_GETSOCKINST 1
5040_ACEOF
5041
5042fi
5043
5044
5045# Check whether --enable-timing was given.
5046if test "${enable_timing+set}" = set; then
5047  enableval=$enable_timing; timing="$enableval"
5048else
5049  timing="no"
5050fi
5051
5052if test "$timing" != "no"; then
5053    { echo "$as_me:$LINENO: result: Will report timing info" >&5
5054echo "${ECHO_T}Will report timing info" >&6; }
5055    cat >>confdefs.h <<\_ACEOF
5056#define DO_TIMING 1
5057_ACEOF
5058
5059fi
5060
5061
5062
5063# Check whether --with-drac was given.
5064if test "${with_drac+set}" = set; then
5065  withval=$with_drac; dracauth="$withval"
5066fi
5067
5068if test "$dracauth" != "no"; then
5069    { echo "$as_me:$LINENO: result: Compiling in DRAC support" >&5
5070echo "${ECHO_T}Compiling in DRAC support" >&6; }
5071    cat >>confdefs.h <<\_ACEOF
5072#define DRAC_AUTH 1
5073_ACEOF
5074
5075    if test "$dracauth" != "yes"; then
5076        LIBS="$LIBS -L$dracauth -ldrac"
5077    else
5078        LIBS="$LIBS -ldrac"
5079    fi
5080fi
5081
5082
5083# Check whether --enable-old-uidl was given.
5084if test "${enable_old_uidl+set}" = set; then
5085  enableval=$enable_old_uidl; olduid="$enableval"
5086else
5087  olduid="no"
5088fi
5089
5090if test "$olduid" != "no"; then
5091    { echo "$as_me:$LINENO: result: Will encode UIDs using old (pre-3.x) style" >&5
5092echo "${ECHO_T}Will encode UIDs using old (pre-3.x) style" >&6; }
5093    cat >>confdefs.h <<\_ACEOF
5094#define OLD_STYLE_UIDL 1
5095_ACEOF
5096
5097fi
5098
5099
5100# Check whether --enable-status was given.
5101if test "${enable_status+set}" = set; then
5102  enableval=$enable_status; statusok="$enableval"
5103else
5104  statusok="yes"
5105fi
5106
5107if test "$statusok" != "yes"; then
5108    { echo "$as_me:$LINENO: result: Will NOT write 'Status' or 'X-UIDL' headers; UIDs must be recalculated each time" >&5
5109echo "${ECHO_T}Will NOT write 'Status' or 'X-UIDL' headers; UIDs must be recalculated each time" >&6; }
5110    cat >>confdefs.h <<\_ACEOF
5111#define NO_STATUS 1
5112_ACEOF
5113
5114fi
5115
5116
5117# Check whether --enable-keep-temp-drop was given.
5118if test "${enable_keep_temp_drop+set}" = set; then
5119  enableval=$enable_keep_temp_drop; keeptemp="$enableval"
5120else
5121  keeptemp="no"
5122fi
5123
5124if test "$keeptemp" != "no"; then
5125    { echo "$as_me:$LINENO: result: Will NOT delete temp drop files" >&5
5126echo "${ECHO_T}Will NOT delete temp drop files" >&6; }
5127    cat >>confdefs.h <<\_ACEOF
5128#define KEEP_TEMP_DROP 1
5129_ACEOF
5130
5131fi
5132
5133
5134# Check whether --enable-check-pw-max was given.
5135if test "${enable_check_pw_max+set}" = set; then
5136  enableval=$enable_check_pw_max; checkpwmax="$enableval"
5137else
5138  checkpwmax="yes"
5139fi
5140
5141if test "$checkpwmax" != "yes"; then
5142    { echo "$as_me:$LINENO: result: Will NOT check for expired passwords" >&5
5143echo "${ECHO_T}Will NOT check for expired passwords" >&6; }
5144    cat >>confdefs.h <<\_ACEOF
5145#define DONT_CHECK_SP_MAX 1
5146_ACEOF
5147
5148fi
5149
5150
5151# Check whether --enable-old-spool-loc was given.
5152if test "${enable_old_spool_loc+set}" = set; then
5153  enableval=$enable_old_spool_loc; checkoldloc="$enableval"
5154else
5155  checkoldloc="yes"
5156fi
5157
5158if test "$checkoldloc" != "yes"; then
5159    { echo "$as_me:$LINENO: result: Will NOT check for old spools in old locations" >&5
5160echo "${ECHO_T}Will NOT check for old spools in old locations" >&6; }
5161    cat >>confdefs.h <<\_ACEOF
5162#define DONT_CHECK_OLD_SPOOL 1
5163_ACEOF
5164
5165fi
5166
5167
5168# Check whether --enable-server-mode-group-include was given.
5169if test "${enable_server_mode_group_include+set}" = set; then
5170  enableval=$enable_server_mode_group_include; servergrp="$enableval"
5171else
5172  servergrp="no"
5173fi
5174
5175if test "$servergrp" != "no" -a "$servergrp" != "yes" ; then
5176        { echo "$as_me:$LINENO: result: SERVER_MODE set for users in group: $servergrp" >&5
5177echo "${ECHO_T}SERVER_MODE set for users in group: $servergrp" >&6; }
5178        cat >>confdefs.h <<_ACEOF
5179#define SERVER_MODE_GROUP_INCL "$servergrp"
5180_ACEOF
5181
5182fi
5183
5184
5185# Check whether --enable-server-mode-group-exclude was given.
5186if test "${enable_server_mode_group_exclude+set}" = set; then
5187  enableval=$enable_server_mode_group_exclude; servergrpex="$enableval"
5188else
5189  servergrpex="no"
5190fi
5191
5192if test "$servergrpex" != "no" -a "$servergrpex" != "yes" ; then
5193        { echo "$as_me:$LINENO: result: SERVER_MODE set OFF for users in group: $servergrpex" >&5
5194echo "${ECHO_T}SERVER_MODE set OFF for users in group: $servergrpex" >&6; }
5195        cat >>confdefs.h <<_ACEOF
5196#define SERVER_MODE_GROUP_EXCL "$servergrpex"
5197_ACEOF
5198
5199fi
5200
5201
5202# Check whether --enable-secure-nis-plus was given.
5203if test "${enable_secure_nis_plus+set}" = set; then
5204  enableval=$enable_secure_nis_plus; secnisplus="$enableval"
5205else
5206  secnisplus="no"
5207fi
5208
5209if test "$secnisplus" != "no"; then
5210    { echo "$as_me:$LINENO: result: Enabling secure NIS+" >&5
5211echo "${ECHO_T}Enabling secure NIS+" >&6; }
5212    cat >>confdefs.h <<\_ACEOF
5213#define SECURENISPLUS 1
5214_ACEOF
5215
5216fi
5217
5218
5219# Check whether --enable-optimizations was given.
5220if test "${enable_optimizations+set}" = set; then
5221  enableval=$enable_optimizations; optimize="$enableval"
5222else
5223  optimize="yes"
5224fi
5225
5226if test "$optimize" != "yes" -o "$_debugging" = "yes"; then
5227    CFLAGS=`echo "$CFLAGS" | sed 's/-O2//'`
5228    { echo "$as_me:$LINENO: result: Compiling WITHOUT optimizations" >&5
5229echo "${ECHO_T}Compiling WITHOUT optimizations" >&6; }
5230fi
5231
5232
5233# Check whether --enable-standalone was given.
5234if test "${enable_standalone+set}" = set; then
5235  enableval=$enable_standalone; standalone="$enableval"
5236else
5237  standalone="no"
5238fi
5239
5240if test "$standalone" != "no"; then
5241    { echo "$as_me:$LINENO: result: Compiling as standalone POP3 daemon -- NOT using inetd" >&5
5242echo "${ECHO_T}Compiling as standalone POP3 daemon -- NOT using inetd" >&6; }
5243    cat >>confdefs.h <<\_ACEOF
5244#define STANDALONE 1
5245_ACEOF
5246
5247fi
5248
5249
5250# Check whether --enable-auth-file was given.
5251if test "${enable_auth_file+set}" = set; then
5252  enableval=$enable_auth_file; authfile="$enableval"
5253else
5254  authfile="no"
5255fi
5256
5257if test "$authfile" != "no"; then
5258    if test "$authfile" = "yes"; then
5259        authfile="/etc/authfile"
5260    fi
5261    { echo "$as_me:$LINENO: result: Restricting access to only users listed in $authfile" >&5
5262echo "${ECHO_T}Restricting access to only users listed in $authfile" >&6; }
5263    cat >>confdefs.h <<_ACEOF
5264#define AUTHFILE "$authfile"
5265_ACEOF
5266
5267fi
5268
5269
5270# Check whether --enable-nonauth-file was given.
5271if test "${enable_nonauth_file+set}" = set; then
5272  enableval=$enable_nonauth_file; nonauthfile="$enableval"
5273else
5274  nonauthfile="no"
5275fi
5276
5277if test "$nonauthfile" != "no"; then
5278    if test "$nonauthfile" = "yes"; then
5279        nonauthfile="/etc/nonauthfile"
5280    fi
5281    { echo "$as_me:$LINENO: result: Denying access to users listed in $nonauthfile" >&5
5282echo "${ECHO_T}Denying access to users listed in $nonauthfile" >&6; }
5283    cat >>confdefs.h <<_ACEOF
5284#define NONAUTHFILE "$nonauthfile"
5285_ACEOF
5286
5287fi
5288
5289
5290# Check whether --enable-update-abort was given.
5291if test "${enable_update_abort+set}" = set; then
5292  enableval=$enable_update_abort; updateabort="$enableval"
5293else
5294  updateabort="yes"
5295fi
5296
5297if test "$updateabort" = "no" -a "$autodelmode" = "no"; then
5298    { echo "$as_me:$LINENO: result: Enabled NOUPDATEONABORT" >&5
5299echo "${ECHO_T}Enabled NOUPDATEONABORT" >&6; }
5300    cat >>confdefs.h <<\_ACEOF
5301#define NOUPDATEONABORT 1
5302_ACEOF
5303
5304fi
5305
5306
5307# Check whether --enable-fast-update was given.
5308if test "${enable_fast_update+set}" = set; then
5309  enableval=$enable_fast_update; fastupdate="$enableval"
5310else
5311  fastupdate="no"
5312fi
5313
5314if test "$fastupdate" != "no" ; then
5315    { echo "$as_me:$LINENO: result: Using reduced I/O technique during server mode updates" >&5
5316echo "${ECHO_T}Using reduced I/O technique during server mode updates" >&6; }
5317    cat >>confdefs.h <<\_ACEOF
5318#define FAST_UPDATE 1
5319_ACEOF
5320
5321fi
5322
5323
5324
5325# Check whether --with-sslplus was given.
5326if test "${with_sslplus+set}" = set; then
5327  withval=$with_sslplus; sslplus="$withval"
5328else
5329  sslplus="no"
5330fi
5331
5332if test "$sslplus" != "no" ; then
5333    if test "$sslplus" = "yes"; then
5334        sslplus="/usr/local/sslplus"
5335    fi
5336    { echo "$as_me:$LINENO: result: Attempting to use Certicom's SSL Plus in \"$sslplus\"" >&5
5337echo "${ECHO_T}Attempting to use Certicom's SSL Plus in \"$sslplus\"" >&6; }
5338    cat >>confdefs.h <<_ACEOF
5339#define QPOP_SSLPLUS "$sslplus"
5340_ACEOF
5341
5342    cat >>confdefs.h <<\_ACEOF
5343#define QPOP_SSL 1
5344_ACEOF
5345
5346    SSL_DIR_INC="-I${sslplus}/include"
5347    SSL_LIB_PROT="${sslplus}/lib"
5348fi
5349
5350
5351
5352# Check whether --with-sslplus-crypto was given.
5353if test "${with_sslplus_crypto+set}" = set; then
5354  withval=$with_sslplus_crypto; sslplus_crypto="$withval"
5355else
5356  sslplus_crypto="no"
5357fi
5358
5359if test "$sslplus_crypto" = "no" -a "$sslplus" != "no"; then
5360    sslplus_crypto="yes"
5361fi
5362if test "$sslplus_crypto" != "no" ; then
5363    if test "$sslplus_crypto" = "yes"; then
5364        sslplus_crypto="securitybuilder"
5365    fi
5366    { echo "$as_me:$LINENO: result: Attempting to use \"$sslplus_crypto\" with Certicom's SSL Plus" >&5
5367echo "${ECHO_T}Attempting to use \"$sslplus_crypto\" with Certicom's SSL Plus" >&6; }
5368fi
5369
5370
5371
5372# Check whether --with-openssl was given.
5373if test "${with_openssl+set}" = set; then
5374  withval=$with_openssl; openssl="$withval"
5375else
5376  openssl="no"
5377fi
5378
5379if test "$openssl" != "no" ; then
5380    if test "$openssl" = "yes"; then
5381        openssl="/usr/local/ssl"
5382    fi
5383    { echo "$as_me:$LINENO: result: Attempting to use OpenSSL in \"$openssl\"" >&5
5384echo "${ECHO_T}Attempting to use OpenSSL in \"$openssl\"" >&6; }
5385    cat >>confdefs.h <<_ACEOF
5386#define QPOP_OPENSSL "$openssl"
5387_ACEOF
5388
5389    cat >>confdefs.h <<\_ACEOF
5390#define QPOP_SSL 1
5391_ACEOF
5392
5393    SSL_DIR_INC="-I${openssl}/include"
5394    SSL_LIBS="-L${openssl}/lib -lssl -lcrypto"
5395fi
5396
5397
5398
5399# Check whether --with-gdbm was given.
5400if test "${with_gdbm+set}" = set; then
5401  withval=$with_gdbm; use_gdbm="$withval"
5402else
5403  use_gdbm="yes"
5404fi
5405
5406
5407
5408# Check whether --enable-check-hash-dir was given.
5409if test "${enable_check_hash_dir+set}" = set; then
5410  enableval=$enable_check_hash_dir; checkhashdir_old="$enableval"
5411else
5412  checkhashdir_old="yes"
5413fi
5414
5415
5416# Check whether --enable-hash-dir-check was given.
5417if test "${enable_hash_dir_check+set}" = set; then
5418  enableval=$enable_hash_dir_check; checkhashdir="$enableval"
5419else
5420  checkhashdir="$checkhashdir_old"
5421fi
5422
5423if test "$checkhashdir" != "yes"; then
5424    { echo "$as_me:$LINENO: result: Will NOT check for or create hashed spool directories" >&5
5425echo "${ECHO_T}Will NOT check for or create hashed spool directories" >&6; }
5426    cat >>confdefs.h <<\_ACEOF
5427#define DONT_CHECK_HASH_SPOOL_DIR 1
5428_ACEOF
5429
5430fi
5431
5432
5433# Check whether --enable-chunky-writes was given.
5434if test "${enable_chunky_writes+set}" = set; then
5435  enableval=$enable_chunky_writes; chunky_writes="$enableval"
5436else
5437  chunky_writes="yes"
5438fi
5439
5440if test "$chunky_writes" != "yes"; then
5441    if test "$chunky_writes" = "0" -o \
5442            "$chunky_writes" = "1" -o \
5443            "$chunky_writes" = "2"; then
5444        { echo "$as_me:$LINENO: result: Set CHUNKY_WRITES to $chunky_writes" >&5
5445echo "${ECHO_T}Set CHUNKY_WRITES to $chunky_writes" >&6; }
5446        cat >>confdefs.h <<_ACEOF
5447#define CHUNKY_WRITES $chunky_writes
5448_ACEOF
5449
5450    elif test "$chunky_writes" = "no"; then
5451        { echo "$as_me:$LINENO: result: Set CHUNKY_WRITES to never (2)" >&5
5452echo "${ECHO_T}Set CHUNKY_WRITES to never (2)" >&6; }
5453        cat >>confdefs.h <<_ACEOF
5454#define CHUNKY_WRITES 2
5455_ACEOF
5456
5457    else
5458        { echo "$as_me:$LINENO: result: Unknown CHUNKY_WRITES value: $chunky_writes" >&5
5459echo "${ECHO_T}Unknown CHUNKY_WRITES value: $chunky_writes" >&6; }
5460    fi
5461else
5462    cat >>confdefs.h <<_ACEOF
5463#define CHUNKY_WRITES 0
5464_ACEOF
5465
5466fi
5467
5468
5469# Check whether --enable-poppassd was given.
5470if test "${enable_poppassd+set}" = set; then
5471  enableval=$enable_poppassd; poppassd="$enableval"
5472else
5473  poppassd="no"
5474fi
5475
5476if test "$poppassd" != "no"; then
5477    { echo "$as_me:$LINENO: result: Generating password/poppassd password-change daemon" >&5
5478echo "${ECHO_T}Generating password/poppassd password-change daemon" >&6; }
5479    POPPASSD="poppassd"
5480fi
5481
5482
5483# Check whether --enable-32-bit was given.
5484if test "${enable_32_bit+set}" = set; then
5485  enableval=$enable_32_bit; b32="$enableval"
5486else
5487  b32="no"
5488fi
5489
5490if test "$b32" != "no"; then
5491    { echo "$as_me:$LINENO: result: Building 32-bit binary" >&5
5492echo "${ECHO_T}Building 32-bit binary" >&6; }
5493    LDFLAGS="-m32 $LDFLAGS"
5494fi
5495
5496
5497# Check whether --enable-64-bit was given.
5498if test "${enable_64_bit+set}" = set; then
5499  enableval=$enable_64_bit; b64="$enableval"
5500else
5501  b64="no"
5502fi
5503
5504if test "$b64" != "no" -a "$GCC" = "yes"; then
5505    { echo "$as_me:$LINENO: result: Building 64-bit binary" >&5
5506echo "${ECHO_T}Building 64-bit binary" >&6; }
5507    LDFLAGS="-m64 $LDFLAGS"
5508    CFLAGS=" -m64 $CFLAGS"
5509fi
5510
5511# Check whether --enable-ipv6 was given.
5512if test "${enable_ipv6+set}" = set; then
5513  enableval=$enable_ipv6; ipv6="$enableval"
5514else
5515  ipv6="yes"
5516fi
5517
5518if test "$ipv6" != "yes"; then
5519    { echo "$as_me:$LINENO: result: IPv6 support is disabled" >&5
5520echo "${ECHO_T}IPv6 support is disabled" >&6; }
5521else
5522
5523
5524
5525    ac_ext=c
5526ac_cpp='$CPP $CPPFLAGS'
5527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5531echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5532# On Suns, sometimes $CPP names a directory.
5533if test -n "$CPP" && test -d "$CPP"; then
5534  CPP=
5535fi
5536if test -z "$CPP"; then
5537  if test "${ac_cv_prog_CPP+set}" = set; then
5538  echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540      # Double quotes because CPP needs to be expanded
5541    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5542    do
5543      ac_preproc_ok=false
5544for ac_c_preproc_warn_flag in '' yes
5545do
5546  # Use a header file that comes with gcc, so configuring glibc
5547  # with a fresh cross-compiler works.
5548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5549  # <limits.h> exists even on freestanding compilers.
5550  # On the NeXT, cc -E runs the code through the compiler's parser,
5551  # not just through cpp. "Syntax error" is here to catch this case.
5552  cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h.  */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h.  */
5558#ifdef __STDC__
5559# include <limits.h>
5560#else
5561# include <assert.h>
5562#endif
5563		     Syntax error
5564_ACEOF
5565if { (ac_try="$ac_cpp conftest.$ac_ext"
5566case "(($ac_try" in
5567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568  *) ac_try_echo=$ac_try;;
5569esac
5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5572  ac_status=$?
5573  grep -v '^ *+' conftest.er1 >conftest.err
5574  rm -f conftest.er1
5575  cat conftest.err >&5
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); } >/dev/null && {
5578	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5579	 test ! -s conftest.err
5580       }; then
5581  :
5582else
5583  echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586  # Broken: fails on valid input.
5587continue
5588fi
5589
5590rm -f conftest.err conftest.$ac_ext
5591
5592  # OK, works on sane cases.  Now check whether nonexistent headers
5593  # can be detected and how.
5594  cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h.  */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h.  */
5600#include <ac_nonexistent.h>
5601_ACEOF
5602if { (ac_try="$ac_cpp conftest.$ac_ext"
5603case "(($ac_try" in
5604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605  *) ac_try_echo=$ac_try;;
5606esac
5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609  ac_status=$?
5610  grep -v '^ *+' conftest.er1 >conftest.err
5611  rm -f conftest.er1
5612  cat conftest.err >&5
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); } >/dev/null && {
5615	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5616	 test ! -s conftest.err
5617       }; then
5618  # Broken: success on invalid input.
5619continue
5620else
5621  echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
5624  # Passes both tests.
5625ac_preproc_ok=:
5626break
5627fi
5628
5629rm -f conftest.err conftest.$ac_ext
5630
5631done
5632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633rm -f conftest.err conftest.$ac_ext
5634if $ac_preproc_ok; then
5635  break
5636fi
5637
5638    done
5639    ac_cv_prog_CPP=$CPP
5640
5641fi
5642  CPP=$ac_cv_prog_CPP
5643else
5644  ac_cv_prog_CPP=$CPP
5645fi
5646{ echo "$as_me:$LINENO: result: $CPP" >&5
5647echo "${ECHO_T}$CPP" >&6; }
5648ac_preproc_ok=false
5649for ac_c_preproc_warn_flag in '' yes
5650do
5651  # Use a header file that comes with gcc, so configuring glibc
5652  # with a fresh cross-compiler works.
5653  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654  # <limits.h> exists even on freestanding compilers.
5655  # On the NeXT, cc -E runs the code through the compiler's parser,
5656  # not just through cpp. "Syntax error" is here to catch this case.
5657  cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h.  */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h.  */
5663#ifdef __STDC__
5664# include <limits.h>
5665#else
5666# include <assert.h>
5667#endif
5668		     Syntax error
5669_ACEOF
5670if { (ac_try="$ac_cpp conftest.$ac_ext"
5671case "(($ac_try" in
5672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673  *) ac_try_echo=$ac_try;;
5674esac
5675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5677  ac_status=$?
5678  grep -v '^ *+' conftest.er1 >conftest.err
5679  rm -f conftest.er1
5680  cat conftest.err >&5
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); } >/dev/null && {
5683	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5684	 test ! -s conftest.err
5685       }; then
5686  :
5687else
5688  echo "$as_me: failed program was:" >&5
5689sed 's/^/| /' conftest.$ac_ext >&5
5690
5691  # Broken: fails on valid input.
5692continue
5693fi
5694
5695rm -f conftest.err conftest.$ac_ext
5696
5697  # OK, works on sane cases.  Now check whether nonexistent headers
5698  # can be detected and how.
5699  cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h.  */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h.  */
5705#include <ac_nonexistent.h>
5706_ACEOF
5707if { (ac_try="$ac_cpp conftest.$ac_ext"
5708case "(($ac_try" in
5709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710  *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714  ac_status=$?
5715  grep -v '^ *+' conftest.er1 >conftest.err
5716  rm -f conftest.er1
5717  cat conftest.err >&5
5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719  (exit $ac_status); } >/dev/null && {
5720	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5721	 test ! -s conftest.err
5722       }; then
5723  # Broken: success on invalid input.
5724continue
5725else
5726  echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
5729  # Passes both tests.
5730ac_preproc_ok=:
5731break
5732fi
5733
5734rm -f conftest.err conftest.$ac_ext
5735
5736done
5737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5738rm -f conftest.err conftest.$ac_ext
5739if $ac_preproc_ok; then
5740  :
5741else
5742  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5743See \`config.log' for more details." >&5
5744echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5745See \`config.log' for more details." >&2;}
5746   { (exit 1); exit 1; }; }
5747fi
5748
5749ac_ext=c
5750ac_cpp='$CPP $CPPFLAGS'
5751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754
5755
5756{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5757echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5758if test "${ac_cv_path_GREP+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761  # Extract the first word of "grep ggrep" to use in msg output
5762if test -z "$GREP"; then
5763set dummy grep ggrep; ac_prog_name=$2
5764if test "${ac_cv_path_GREP+set}" = set; then
5765  echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767  ac_path_GREP_found=false
5768# Loop through the user's path and test for each of PROGNAME-LIST
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5771do
5772  IFS=$as_save_IFS
5773  test -z "$as_dir" && as_dir=.
5774  for ac_prog in grep ggrep; do
5775  for ac_exec_ext in '' $ac_executable_extensions; do
5776    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5777    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5778    # Check for GNU ac_path_GREP and select it if it is found.
5779  # Check for GNU $ac_path_GREP
5780case `"$ac_path_GREP" --version 2>&1` in
5781*GNU*)
5782  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5783*)
5784  ac_count=0
5785  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5786  while :
5787  do
5788    cat "conftest.in" "conftest.in" >"conftest.tmp"
5789    mv "conftest.tmp" "conftest.in"
5790    cp "conftest.in" "conftest.nl"
5791    echo 'GREP' >> "conftest.nl"
5792    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5793    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5794    ac_count=`expr $ac_count + 1`
5795    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5796      # Best one so far, save it but keep looking for a better one
5797      ac_cv_path_GREP="$ac_path_GREP"
5798      ac_path_GREP_max=$ac_count
5799    fi
5800    # 10*(2^10) chars as input seems more than enough
5801    test $ac_count -gt 10 && break
5802  done
5803  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5804esac
5805
5806
5807    $ac_path_GREP_found && break 3
5808  done
5809done
5810
5811done
5812IFS=$as_save_IFS
5813
5814
5815fi
5816
5817GREP="$ac_cv_path_GREP"
5818if test -z "$GREP"; then
5819  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5820echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5821   { (exit 1); exit 1; }; }
5822fi
5823
5824else
5825  ac_cv_path_GREP=$GREP
5826fi
5827
5828
5829fi
5830{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5831echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5832 GREP="$ac_cv_path_GREP"
5833
5834
5835{ echo "$as_me:$LINENO: checking for egrep" >&5
5836echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5837if test "${ac_cv_path_EGREP+set}" = set; then
5838  echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5841   then ac_cv_path_EGREP="$GREP -E"
5842   else
5843     # Extract the first word of "egrep" to use in msg output
5844if test -z "$EGREP"; then
5845set dummy egrep; ac_prog_name=$2
5846if test "${ac_cv_path_EGREP+set}" = set; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849  ac_path_EGREP_found=false
5850# Loop through the user's path and test for each of PROGNAME-LIST
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5853do
5854  IFS=$as_save_IFS
5855  test -z "$as_dir" && as_dir=.
5856  for ac_prog in egrep; do
5857  for ac_exec_ext in '' $ac_executable_extensions; do
5858    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5859    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5860    # Check for GNU ac_path_EGREP and select it if it is found.
5861  # Check for GNU $ac_path_EGREP
5862case `"$ac_path_EGREP" --version 2>&1` in
5863*GNU*)
5864  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5865*)
5866  ac_count=0
5867  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5868  while :
5869  do
5870    cat "conftest.in" "conftest.in" >"conftest.tmp"
5871    mv "conftest.tmp" "conftest.in"
5872    cp "conftest.in" "conftest.nl"
5873    echo 'EGREP' >> "conftest.nl"
5874    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5875    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5876    ac_count=`expr $ac_count + 1`
5877    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5878      # Best one so far, save it but keep looking for a better one
5879      ac_cv_path_EGREP="$ac_path_EGREP"
5880      ac_path_EGREP_max=$ac_count
5881    fi
5882    # 10*(2^10) chars as input seems more than enough
5883    test $ac_count -gt 10 && break
5884  done
5885  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5886esac
5887
5888
5889    $ac_path_EGREP_found && break 3
5890  done
5891done
5892
5893done
5894IFS=$as_save_IFS
5895
5896
5897fi
5898
5899EGREP="$ac_cv_path_EGREP"
5900if test -z "$EGREP"; then
5901  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5902echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5903   { (exit 1); exit 1; }; }
5904fi
5905
5906else
5907  ac_cv_path_EGREP=$EGREP
5908fi
5909
5910
5911   fi
5912fi
5913{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5914echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5915 EGREP="$ac_cv_path_EGREP"
5916
5917
5918{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5919echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5920if test "${ac_cv_header_stdc+set}" = set; then
5921  echo $ECHO_N "(cached) $ECHO_C" >&6
5922else
5923  cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h.  */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h.  */
5929#include <stdlib.h>
5930#include <stdarg.h>
5931#include <string.h>
5932#include <float.h>
5933
5934int
5935main ()
5936{
5937
5938  ;
5939  return 0;
5940}
5941_ACEOF
5942rm -f conftest.$ac_objext
5943if { (ac_try="$ac_compile"
5944case "(($ac_try" in
5945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946  *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949  (eval "$ac_compile") 2>conftest.er1
5950  ac_status=$?
5951  grep -v '^ *+' conftest.er1 >conftest.err
5952  rm -f conftest.er1
5953  cat conftest.err >&5
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); } && {
5956	 test -z "$ac_c_werror_flag" ||
5957	 test ! -s conftest.err
5958       } && test -s conftest.$ac_objext; then
5959  ac_cv_header_stdc=yes
5960else
5961  echo "$as_me: failed program was:" >&5
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
5964	ac_cv_header_stdc=no
5965fi
5966
5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968
5969if test $ac_cv_header_stdc = yes; then
5970  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5971  cat >conftest.$ac_ext <<_ACEOF
5972/* confdefs.h.  */
5973_ACEOF
5974cat confdefs.h >>conftest.$ac_ext
5975cat >>conftest.$ac_ext <<_ACEOF
5976/* end confdefs.h.  */
5977#include <string.h>
5978
5979_ACEOF
5980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5981  $EGREP "memchr" >/dev/null 2>&1; then
5982  :
5983else
5984  ac_cv_header_stdc=no
5985fi
5986rm -f conftest*
5987
5988fi
5989
5990if test $ac_cv_header_stdc = yes; then
5991  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5992  cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h.  */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h.  */
5998#include <stdlib.h>
5999
6000_ACEOF
6001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6002  $EGREP "free" >/dev/null 2>&1; then
6003  :
6004else
6005  ac_cv_header_stdc=no
6006fi
6007rm -f conftest*
6008
6009fi
6010
6011if test $ac_cv_header_stdc = yes; then
6012  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6013  if test "$cross_compiling" = yes; then
6014  :
6015else
6016  cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h.  */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h.  */
6022#include <ctype.h>
6023#include <stdlib.h>
6024#if ((' ' & 0x0FF) == 0x020)
6025# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6026# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6027#else
6028# define ISLOWER(c) \
6029		   (('a' <= (c) && (c) <= 'i') \
6030		     || ('j' <= (c) && (c) <= 'r') \
6031		     || ('s' <= (c) && (c) <= 'z'))
6032# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6033#endif
6034
6035#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6036int
6037main ()
6038{
6039  int i;
6040  for (i = 0; i < 256; i++)
6041    if (XOR (islower (i), ISLOWER (i))
6042	|| toupper (i) != TOUPPER (i))
6043      return 2;
6044  return 0;
6045}
6046_ACEOF
6047rm -f conftest$ac_exeext
6048if { (ac_try="$ac_link"
6049case "(($ac_try" in
6050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051  *) ac_try_echo=$ac_try;;
6052esac
6053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054  (eval "$ac_link") 2>&5
6055  ac_status=$?
6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6058  { (case "(($ac_try" in
6059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060  *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063  (eval "$ac_try") 2>&5
6064  ac_status=$?
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); }; }; then
6067  :
6068else
6069  echo "$as_me: program exited with status $ac_status" >&5
6070echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073( exit $ac_status )
6074ac_cv_header_stdc=no
6075fi
6076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6077fi
6078
6079
6080fi
6081fi
6082{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6083echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6084if test $ac_cv_header_stdc = yes; then
6085
6086cat >>confdefs.h <<\_ACEOF
6087#define STDC_HEADERS 1
6088_ACEOF
6089
6090fi
6091
6092# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6103		  inttypes.h stdint.h unistd.h
6104do
6105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6106{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6109  echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111  cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h.  */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h.  */
6117$ac_includes_default
6118
6119#include <$ac_header>
6120_ACEOF
6121rm -f conftest.$ac_objext
6122if { (ac_try="$ac_compile"
6123case "(($ac_try" in
6124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125  *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128  (eval "$ac_compile") 2>conftest.er1
6129  ac_status=$?
6130  grep -v '^ *+' conftest.er1 >conftest.err
6131  rm -f conftest.er1
6132  cat conftest.err >&5
6133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134  (exit $ac_status); } && {
6135	 test -z "$ac_c_werror_flag" ||
6136	 test ! -s conftest.err
6137       } && test -s conftest.$ac_objext; then
6138  eval "$as_ac_Header=yes"
6139else
6140  echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143	eval "$as_ac_Header=no"
6144fi
6145
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147fi
6148ac_res=`eval echo '${'$as_ac_Header'}'`
6149	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6150echo "${ECHO_T}$ac_res" >&6; }
6151if test `eval echo '${'$as_ac_Header'}'` = yes; then
6152  cat >>confdefs.h <<_ACEOF
6153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6154_ACEOF
6155
6156fi
6157
6158done
6159
6160
6161
6162
6163for ac_header in netdb.h sys/socket.h
6164do
6165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6167  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170  echo $ECHO_N "(cached) $ECHO_C" >&6
6171fi
6172ac_res=`eval echo '${'$as_ac_Header'}'`
6173	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6174echo "${ECHO_T}$ac_res" >&6; }
6175else
6176  # Is the header compilable?
6177{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6179cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h.  */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h.  */
6185$ac_includes_default
6186#include <$ac_header>
6187_ACEOF
6188rm -f conftest.$ac_objext
6189if { (ac_try="$ac_compile"
6190case "(($ac_try" in
6191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192  *) ac_try_echo=$ac_try;;
6193esac
6194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195  (eval "$ac_compile") 2>conftest.er1
6196  ac_status=$?
6197  grep -v '^ *+' conftest.er1 >conftest.err
6198  rm -f conftest.er1
6199  cat conftest.err >&5
6200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201  (exit $ac_status); } && {
6202	 test -z "$ac_c_werror_flag" ||
6203	 test ! -s conftest.err
6204       } && test -s conftest.$ac_objext; then
6205  ac_header_compiler=yes
6206else
6207  echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210	ac_header_compiler=no
6211fi
6212
6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6215echo "${ECHO_T}$ac_header_compiler" >&6; }
6216
6217# Is the header present?
6218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6220cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h.  */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h.  */
6226#include <$ac_header>
6227_ACEOF
6228if { (ac_try="$ac_cpp conftest.$ac_ext"
6229case "(($ac_try" in
6230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231  *) ac_try_echo=$ac_try;;
6232esac
6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6235  ac_status=$?
6236  grep -v '^ *+' conftest.er1 >conftest.err
6237  rm -f conftest.er1
6238  cat conftest.err >&5
6239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240  (exit $ac_status); } >/dev/null && {
6241	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6242	 test ! -s conftest.err
6243       }; then
6244  ac_header_preproc=yes
6245else
6246  echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249  ac_header_preproc=no
6250fi
6251
6252rm -f conftest.err conftest.$ac_ext
6253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6254echo "${ECHO_T}$ac_header_preproc" >&6; }
6255
6256# So?  What about this header?
6257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6258  yes:no: )
6259    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6261    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6263    ac_header_preproc=yes
6264    ;;
6265  no:yes:* )
6266    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6268    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6269echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6270    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6272    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6273echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6274    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6276    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6278
6279    ;;
6280esac
6281{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6284  echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
6286  eval "$as_ac_Header=\$ac_header_preproc"
6287fi
6288ac_res=`eval echo '${'$as_ac_Header'}'`
6289	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6290echo "${ECHO_T}$ac_res" >&6; }
6291
6292fi
6293if test `eval echo '${'$as_ac_Header'}'` = yes; then
6294  cat >>confdefs.h <<_ACEOF
6295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296_ACEOF
6297
6298fi
6299
6300done
6301
6302    { echo "$as_me:$LINENO: checking for getaddrinfo " >&5
6303echo $ECHO_N "checking for getaddrinfo ... $ECHO_C" >&6; }
6304    cat >conftest.$ac_ext <<_ACEOF
6305/* confdefs.h.  */
6306_ACEOF
6307cat confdefs.h >>conftest.$ac_ext
6308cat >>conftest.$ac_ext <<_ACEOF
6309/* end confdefs.h.  */
6310
6311        #include <sys/types.h>
6312        #ifdef HAVE_SYS_SOCKET_H
6313        #include <sys/socket.h>
6314        #endif
6315        #ifdef HAVE_NETDB_H
6316        #include <netdb.h>
6317        #endif
6318        #include <stddef.h>
6319
6320int
6321main ()
6322{
6323getaddrinfo("", "", NULL, NULL);
6324  ;
6325  return 0;
6326}
6327_ACEOF
6328rm -f conftest.$ac_objext conftest$ac_exeext
6329if { (ac_try="$ac_link"
6330case "(($ac_try" in
6331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332  *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335  (eval "$ac_link") 2>conftest.er1
6336  ac_status=$?
6337  grep -v '^ *+' conftest.er1 >conftest.err
6338  rm -f conftest.er1
6339  cat conftest.err >&5
6340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341  (exit $ac_status); } && {
6342	 test -z "$ac_c_werror_flag" ||
6343	 test ! -s conftest.err
6344       } && test -s conftest$ac_exeext &&
6345       $as_test_x conftest$ac_exeext; then
6346  { echo "$as_me:$LINENO: result: yes" >&5
6347echo "${ECHO_T}yes" >&6; }
6348            cat >>confdefs.h <<\_ACEOF
6349#define HAVE_GETADDRINFO 1
6350_ACEOF
6351
6352            found_getaddrinfo="yes"
6353else
6354  echo "$as_me: failed program was:" >&5
6355sed 's/^/| /' conftest.$ac_ext >&5
6356
6357	{ echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6; }
6359
6360fi
6361
6362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6363      conftest$ac_exeext conftest.$ac_ext
6364
6365    if test  "$found_getaddrinfo" = "yes" ; then
6366        cat >>confdefs.h <<\_ACEOF
6367#define INET6 1
6368_ACEOF
6369
6370    fi
6371
6372
6373        ac_tr_lib=HAVE_`echo iruserok_sa | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6374      -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6375        { echo "$as_me:$LINENO: checking for iruserok_sa" >&5
6376echo $ECHO_N "checking for iruserok_sa... $ECHO_C" >&6; }
6377if test "${ac_cv_func_iruserok_sa+set}" = set; then
6378  echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380  cat >conftest.$ac_ext <<_ACEOF
6381/* confdefs.h.  */
6382_ACEOF
6383cat confdefs.h >>conftest.$ac_ext
6384cat >>conftest.$ac_ext <<_ACEOF
6385/* end confdefs.h.  */
6386/* Define iruserok_sa to an innocuous variant, in case <limits.h> declares iruserok_sa.
6387   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6388#define iruserok_sa innocuous_iruserok_sa
6389
6390/* System header to define __stub macros and hopefully few prototypes,
6391    which can conflict with char iruserok_sa (); below.
6392    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6393    <limits.h> exists even on freestanding compilers.  */
6394
6395#ifdef __STDC__
6396# include <limits.h>
6397#else
6398# include <assert.h>
6399#endif
6400
6401#undef iruserok_sa
6402
6403/* Override any GCC internal prototype to avoid an error.
6404   Use char because int might match the return type of a GCC
6405   builtin and then its argument prototype would still apply.  */
6406#ifdef __cplusplus
6407extern "C"
6408#endif
6409char iruserok_sa ();
6410/* The GNU C library defines this for functions which it implements
6411    to always fail with ENOSYS.  Some functions are actually named
6412    something starting with __ and the normal name is an alias.  */
6413#if defined __stub_iruserok_sa || defined __stub___iruserok_sa
6414choke me
6415#endif
6416
6417int
6418main ()
6419{
6420return iruserok_sa ();
6421  ;
6422  return 0;
6423}
6424_ACEOF
6425rm -f conftest.$ac_objext conftest$ac_exeext
6426if { (ac_try="$ac_link"
6427case "(($ac_try" in
6428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429  *) ac_try_echo=$ac_try;;
6430esac
6431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432  (eval "$ac_link") 2>conftest.er1
6433  ac_status=$?
6434  grep -v '^ *+' conftest.er1 >conftest.err
6435  rm -f conftest.er1
6436  cat conftest.err >&5
6437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438  (exit $ac_status); } && {
6439	 test -z "$ac_c_werror_flag" ||
6440	 test ! -s conftest.err
6441       } && test -s conftest$ac_exeext &&
6442       $as_test_x conftest$ac_exeext; then
6443  ac_cv_func_iruserok_sa=yes
6444else
6445  echo "$as_me: failed program was:" >&5
6446sed 's/^/| /' conftest.$ac_ext >&5
6447
6448	ac_cv_func_iruserok_sa=no
6449fi
6450
6451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6452      conftest$ac_exeext conftest.$ac_ext
6453fi
6454{ echo "$as_me:$LINENO: result: $ac_cv_func_iruserok_sa" >&5
6455echo "${ECHO_T}$ac_cv_func_iruserok_sa" >&6; }
6456if test $ac_cv_func_iruserok_sa = yes; then
6457        cat >>confdefs.h <<_ACEOF
6458#define $ac_tr_lib 1
6459_ACEOF
6460
6461      ac_cv_lib_socket_iruserok_sa=no
6462      ac_cv_lib_inet6_iruserok_sa=no
6463
6464else
6465        { echo "$as_me:$LINENO: checking for iruserok_sa in -lsocket" >&5
6466echo $ECHO_N "checking for iruserok_sa in -lsocket... $ECHO_C" >&6; }
6467if test "${ac_cv_lib_socket_iruserok_sa+set}" = set; then
6468  echo $ECHO_N "(cached) $ECHO_C" >&6
6469else
6470  ac_check_lib_save_LIBS=$LIBS
6471LIBS="-lsocket  $LIBS"
6472cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h.  */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h.  */
6478
6479/* Override any GCC internal prototype to avoid an error.
6480   Use char because int might match the return type of a GCC
6481   builtin and then its argument prototype would still apply.  */
6482#ifdef __cplusplus
6483extern "C"
6484#endif
6485char iruserok_sa ();
6486int
6487main ()
6488{
6489return iruserok_sa ();
6490  ;
6491  return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext conftest$ac_exeext
6495if { (ac_try="$ac_link"
6496case "(($ac_try" in
6497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498  *) ac_try_echo=$ac_try;;
6499esac
6500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501  (eval "$ac_link") 2>conftest.er1
6502  ac_status=$?
6503  grep -v '^ *+' conftest.er1 >conftest.err
6504  rm -f conftest.er1
6505  cat conftest.err >&5
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); } && {
6508	 test -z "$ac_c_werror_flag" ||
6509	 test ! -s conftest.err
6510       } && test -s conftest$ac_exeext &&
6511       $as_test_x conftest$ac_exeext; then
6512  ac_cv_lib_socket_iruserok_sa=yes
6513else
6514  echo "$as_me: failed program was:" >&5
6515sed 's/^/| /' conftest.$ac_ext >&5
6516
6517	ac_cv_lib_socket_iruserok_sa=no
6518fi
6519
6520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6521      conftest$ac_exeext conftest.$ac_ext
6522LIBS=$ac_check_lib_save_LIBS
6523fi
6524{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_iruserok_sa" >&5
6525echo "${ECHO_T}$ac_cv_lib_socket_iruserok_sa" >&6; }
6526if test $ac_cv_lib_socket_iruserok_sa = yes; then
6527          cat >>confdefs.h <<_ACEOF
6528#define $ac_tr_lib 1
6529_ACEOF
6530
6531        LIBS="$LIBS -lsocket"
6532        ac_cv_lib_inet6_iruserok_sa=no
6533
6534else
6535          { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
6536echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
6537        if test "${ipv6_cv_dir+set}" = set; then
6538  echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540            for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
6541            if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
6542              break
6543            fi
6544          done
6545fi
6546        { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
6547echo "${ECHO_T}$ipv6_cv_dir" >&6; }
6548        if test $ipv6_cv_dir = no; then
6549          ac_cv_lib_inet6_iruserok_sa=no
6550        else
6551          if test x$ipv6_libinet6 = x; then
6552            ipv6_libinet6=no
6553            SAVELDFLAGS="$LDFLAGS"
6554            LDFLAGS="-L$ipv6_cv_dir/lib"
6555          fi
6556          { echo "$as_me:$LINENO: checking for iruserok_sa in -linet6" >&5
6557echo $ECHO_N "checking for iruserok_sa in -linet6... $ECHO_C" >&6; }
6558if test "${ac_cv_lib_inet6_iruserok_sa+set}" = set; then
6559  echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561  ac_check_lib_save_LIBS=$LIBS
6562LIBS="-linet6  $LIBS"
6563cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h.  */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h.  */
6569
6570/* Override any GCC internal prototype to avoid an error.
6571   Use char because int might match the return type of a GCC
6572   builtin and then its argument prototype would still apply.  */
6573#ifdef __cplusplus
6574extern "C"
6575#endif
6576char iruserok_sa ();
6577int
6578main ()
6579{
6580return iruserok_sa ();
6581  ;
6582  return 0;
6583}
6584_ACEOF
6585rm -f conftest.$ac_objext conftest$ac_exeext
6586if { (ac_try="$ac_link"
6587case "(($ac_try" in
6588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589  *) ac_try_echo=$ac_try;;
6590esac
6591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592  (eval "$ac_link") 2>conftest.er1
6593  ac_status=$?
6594  grep -v '^ *+' conftest.er1 >conftest.err
6595  rm -f conftest.er1
6596  cat conftest.err >&5
6597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598  (exit $ac_status); } && {
6599	 test -z "$ac_c_werror_flag" ||
6600	 test ! -s conftest.err
6601       } && test -s conftest$ac_exeext &&
6602       $as_test_x conftest$ac_exeext; then
6603  ac_cv_lib_inet6_iruserok_sa=yes
6604else
6605  echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608	ac_cv_lib_inet6_iruserok_sa=no
6609fi
6610
6611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6612      conftest$ac_exeext conftest.$ac_ext
6613LIBS=$ac_check_lib_save_LIBS
6614fi
6615{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_iruserok_sa" >&5
6616echo "${ECHO_T}$ac_cv_lib_inet6_iruserok_sa" >&6; }
6617if test $ac_cv_lib_inet6_iruserok_sa = yes; then
6618              cat >>confdefs.h <<_ACEOF
6619#define $ac_tr_lib 1
6620_ACEOF
6621
6622            if test $ipv6_libinet6 = no; then
6623              ipv6_libinet6=yes
6624              LIBS="$LIBS -L$ipv6_cv_dir/lib -linet6"
6625            fi
6626fi
6627          if test $ipv6_libinet6 = no; then
6628            LDFLAGS="$SAVELDFLAGS"
6629          fi
6630        fi
6631fi
6632
6633fi
6634    if test $ac_cv_func_iruserok_sa = yes -o $ac_cv_lib_socket_iruserok_sa = yes \
6635         -o $ac_cv_lib_inet6_iruserok_sa = yes
6636    then
6637      ipv6_cv_iruserok_sa=yes
6638      :
6639    else
6640      ipv6_cv_iruserok_sa=no
6641      :
6642    fi
6643fi
6644
6645
6646# Check whether --enable-tempnam was given.
6647if test "${enable_tempnam+set}" = set; then
6648  enableval=$enable_tempnam; tempnam="$enableval"
6649else
6650  tempnam="no"
6651fi
6652
6653if test "$tempnam" != "no"; then
6654    { echo "$as_me:$LINENO: result: Using tempnam instead of mkstemp" >&5
6655echo "${ECHO_T}Using tempnam instead of mkstemp" >&6; }
6656    cat >>confdefs.h <<\_ACEOF
6657#define USE_TEMPNAM 1
6658_ACEOF
6659
6660fi
6661
6662
6663
6664# Check whether --with-cyrus-sasl was given.
6665if test "${with_cyrus_sasl+set}" = set; then
6666  withval=$with_cyrus_sasl; sasl="$withval"
6667else
6668  sasl="no"
6669fi
6670
6671if test "$sasl" != "no"; then
6672    { echo "$as_me:$LINENO: result: Enabling support for the Cyrus-SASL library" >&5
6673echo "${ECHO_T}Enabling support for the Cyrus-SASL library" >&6; }
6674                    if test "$sasl" != "yes"; then
6675        OS_DEFS="$OS_DEFS -I${sasl}/include/sasl"
6676        SASL_LIBS="$SASL_LIBS -L${sasl}/lib -lsasl2"
6677    else
6678        SASL_LIBS="$SASL_LIBS -lsasl2"
6679    fi
6680    cat >>confdefs.h <<\_ACEOF
6681#define CYRUS_SASL 1
6682_ACEOF
6683
6684fi
6685
6686
6687# Check whether --enable-gss-kuserok was given.
6688if test "${enable_gss_kuserok+set}" = set; then
6689  enableval=$enable_gss_kuserok; gss_kuserok="$enableval"
6690else
6691  gss_kuserok="no"
6692fi
6693
6694if test "$gss_kuserok" != "no"; then
6695    if test "$sasl" = "no"; then
6696        { { echo "$as_me:$LINENO: error: \"Cannot enable gss-kuserok without cyrus-sasl\"" >&5
6697echo "$as_me: error: \"Cannot enable gss-kuserok without cyrus-sasl\"" >&2;}
6698   { (exit 1); exit 1; }; }
6699        exit 1
6700    fi
6701    { echo "$as_me:$LINENO: result: Enabling the use of krb5_kuserok() for the SASL GSSAPI mechanism" >&5
6702echo "${ECHO_T}Enabling the use of krb5_kuserok() for the SASL GSSAPI mechanism" >&6; }
6703    cat >>confdefs.h <<\_ACEOF
6704#define GSSAPI_KUSEROK 1
6705_ACEOF
6706
6707fi
6708
6709
6710
6711USE_REG_STRUCT_RET="default"
6712
6713SYS_NAME="`uname -sr 2>/dev/null | sed 1q`"
6714if test -z "\$SYS_NAME"; then SYS_NAME=unknown;fi
6715
6716OS_NAME="`echo $SYS_NAME 2>/dev/null | sed -e 's/ .*//'`"
6717OS_VERSION="`echo $SYS_NAME 2>/dev/null | sed -e 's/.* //'`"
6718
6719{ echo "$as_me:$LINENO: result: System name: $OS_NAME; System version: $OS_VERSION" >&5
6720echo "${ECHO_T}System name: $OS_NAME; System version: $OS_VERSION" >&6; }
6721
6722SSL_OS_NAME="unknown"
6723
6724case $OS_NAME in
6725
6726    SunOS)
6727           case $OS_VERSION in
6728               5*) OS_DEFS="$OS_DEFS -DSOLARIS2 -DGNU_PASS"
6729                     OS_DEFS="$OS_DEFS -DNO_GETLINE -DCONTENT_LENGTH=1"
6730                     if test $sasl != "no" -a $sasl != "yes"; then
6731                         SASL_LIBS="$SASL_LIBS -R${sasl}/lib"
6732                     fi
6733                     if test $krb5_prefix != "no" -a $krb5_prefix != "yes"; then
6734                         KERBEROS_LIBS="$KERBEROS_LIBS -R${krb5_prefix}/lib"
6735                     fi;;
6736               4*) OS_DEFS="$OS_DEFS -DSUNOS4"
6737                         IS_SUNOS4=yes;;
6738                  *) ;;
6739           esac
6740
6741           USE_REG_STRUCT_RET="no"
6742           SSL_OS_NAME="linux"
6743           ;;
6744
6745    OSF1)  OS_DEFS="$OS_DEFS -DOSF1"
6746           if test "$logid" = "no" -o "$logid" = "yes" ; then
6747               logid="LOG_MAIL"
6748           fi
6749           ;;
6750
6751    HP*)   OS_DEFS="$OS_DEFS -DHPUX -DSPEC_POP_AUTH"
6752           OS_VERSION="`echo $OS_VERSION 2>/dev/null | sed -e 's/..//'`"
6753           case $OS_VERSION in
6754                10*) OS_DEFS="$OS_DEFS -DHPUX10" ;;
6755                      *) ;;
6756           esac
6757           { echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
6758echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6; }
6759if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
6760  echo $ECHO_N "(cached) $ECHO_C" >&6
6761else
6762  ac_check_lib_save_LIBS=$LIBS
6763LIBS="-lsec  $LIBS"
6764cat >conftest.$ac_ext <<_ACEOF
6765/* confdefs.h.  */
6766_ACEOF
6767cat confdefs.h >>conftest.$ac_ext
6768cat >>conftest.$ac_ext <<_ACEOF
6769/* end confdefs.h.  */
6770
6771/* Override any GCC internal prototype to avoid an error.
6772   Use char because int might match the return type of a GCC
6773   builtin and then its argument prototype would still apply.  */
6774#ifdef __cplusplus
6775extern "C"
6776#endif
6777char bigcrypt ();
6778int
6779main ()
6780{
6781return bigcrypt ();
6782  ;
6783  return 0;
6784}
6785_ACEOF
6786rm -f conftest.$ac_objext conftest$ac_exeext
6787if { (ac_try="$ac_link"
6788case "(($ac_try" in
6789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790  *) ac_try_echo=$ac_try;;
6791esac
6792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793  (eval "$ac_link") 2>conftest.er1
6794  ac_status=$?
6795  grep -v '^ *+' conftest.er1 >conftest.err
6796  rm -f conftest.er1
6797  cat conftest.err >&5
6798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799  (exit $ac_status); } && {
6800	 test -z "$ac_c_werror_flag" ||
6801	 test ! -s conftest.err
6802       } && test -s conftest$ac_exeext &&
6803       $as_test_x conftest$ac_exeext; then
6804  ac_cv_lib_sec_bigcrypt=yes
6805else
6806  echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809	ac_cv_lib_sec_bigcrypt=no
6810fi
6811
6812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6813      conftest$ac_exeext conftest.$ac_ext
6814LIBS=$ac_check_lib_save_LIBS
6815fi
6816{ echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
6817echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6; }
6818if test $ac_cv_lib_sec_bigcrypt = yes; then
6819  LIBS="$LIBS -lsec"
6820fi
6821
6822
6823           if test "$GCC" != yes; then
6824               CFLAGS="$CFLAGS -Ae"
6825           fi
6826           if test "$extrawarnings" != "no" -a "$GCC" != yes; then
6827               CFLAGS="$CFLAGS +w1"
6828           fi
6829           ;;
6830
6831    AIX*)  OS_DEFS="$OS_DEFS -DAIX"
6832           IS_AIX=yes
6833           if test "$specialauth" != "no"; then
6834               LIBS="$LIBS -ls"
6835           fi
6836           ;;
6837
6838    IRIX*) OS_DEFS="$OS_DEFS -DIRIX"
6839           ;;
6840
6841    FreeBSD*)
6842           OS_DEFS="$OS_DEFS -DFREEBSD"
6843           USE_REG_STRUCT_RET="yes"
6844           ;;
6845
6846    OpenBSD*)
6847           OS_DEFS="$OS_DEFS -DOPENBSD"
6848           USE_REG_STRUCT_RET="default"
6849           ;;
6850
6851    NetBSD*)
6852           OS_DEFS="$OS_DEFS -DNETBSD"
6853           USE_REG_STRUCT_RET="default"
6854           ;;
6855
6856    Linux*)
6857           OS_DEFS="$OS_DEFS -DLINUX"
6858           if test "$logid" = "no" -o "$logid" = "yes" ; then
6859               logid="LOG_MAIL"
6860           fi
6861           if test "$SSL_DIR_INC" != "" -a -d "/usr/kerberos/include"; then
6862             SSL_DIR_INC="$SSL_DIR_INC -I/usr/kerberos/include";
6863           fi
6864           SSL_OS_NAME="linux"
6865           ;;
6866
6867    NeXTStep*)
6868           OS_DEFS="$OS_DEFS -DNEXTSTEP -DNEXT -D_POSIX_SOURCE"
6869           if test "$GCC" = yes
6870           then
6871               CFLAGS="$CFLAGS -traditional-cpp"
6872           fi
6873           USE_REG_STRUCT_RET="yes"
6874           ;;
6875
6876    SCO_SV*)
6877          OS_DEFS="$OS_DEFS -DPOPSCO"
6878
6879
6880{ echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
6881echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6; }
6882if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
6883  echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885  ac_check_lib_save_LIBS=$LIBS
6886LIBS="-lprot  $LIBS"
6887cat >conftest.$ac_ext <<_ACEOF
6888/* confdefs.h.  */
6889_ACEOF
6890cat confdefs.h >>conftest.$ac_ext
6891cat >>conftest.$ac_ext <<_ACEOF
6892/* end confdefs.h.  */
6893
6894/* Override any GCC internal prototype to avoid an error.
6895   Use char because int might match the return type of a GCC
6896   builtin and then its argument prototype would still apply.  */
6897#ifdef __cplusplus
6898extern "C"
6899#endif
6900char getprpwnam ();
6901int
6902main ()
6903{
6904return getprpwnam ();
6905  ;
6906  return 0;
6907}
6908_ACEOF
6909rm -f conftest.$ac_objext conftest$ac_exeext
6910if { (ac_try="$ac_link"
6911case "(($ac_try" in
6912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913  *) ac_try_echo=$ac_try;;
6914esac
6915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916  (eval "$ac_link") 2>conftest.er1
6917  ac_status=$?
6918  grep -v '^ *+' conftest.er1 >conftest.err
6919  rm -f conftest.er1
6920  cat conftest.err >&5
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); } && {
6923	 test -z "$ac_c_werror_flag" ||
6924	 test ! -s conftest.err
6925       } && test -s conftest$ac_exeext &&
6926       $as_test_x conftest$ac_exeext; then
6927  ac_cv_lib_prot_getprpwnam=yes
6928else
6929  echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
6932	ac_cv_lib_prot_getprpwnam=no
6933fi
6934
6935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6936      conftest$ac_exeext conftest.$ac_ext
6937LIBS=$ac_check_lib_save_LIBS
6938fi
6939{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
6940echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6; }
6941if test $ac_cv_lib_prot_getprpwnam = yes; then
6942  cat >>confdefs.h <<_ACEOF
6943#define HAVE_LIBPROT 1
6944_ACEOF
6945
6946  LIBS="-lprot $LIBS"
6947
6948fi
6949
6950          if test "$ac_cv_lib_prot_getprpwnam" != "yes"; then
6951              unset ac_cv_lib_prot_getprpwnam
6952
6953{ echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
6954echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6; }
6955if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
6956  echo $ECHO_N "(cached) $ECHO_C" >&6
6957else
6958  ac_check_lib_save_LIBS=$LIBS
6959LIBS="-lprot -lx  $LIBS"
6960cat >conftest.$ac_ext <<_ACEOF
6961/* confdefs.h.  */
6962_ACEOF
6963cat confdefs.h >>conftest.$ac_ext
6964cat >>conftest.$ac_ext <<_ACEOF
6965/* end confdefs.h.  */
6966
6967/* Override any GCC internal prototype to avoid an error.
6968   Use char because int might match the return type of a GCC
6969   builtin and then its argument prototype would still apply.  */
6970#ifdef __cplusplus
6971extern "C"
6972#endif
6973char getprpwnam ();
6974int
6975main ()
6976{
6977return getprpwnam ();
6978  ;
6979  return 0;
6980}
6981_ACEOF
6982rm -f conftest.$ac_objext conftest$ac_exeext
6983if { (ac_try="$ac_link"
6984case "(($ac_try" in
6985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986  *) ac_try_echo=$ac_try;;
6987esac
6988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989  (eval "$ac_link") 2>conftest.er1
6990  ac_status=$?
6991  grep -v '^ *+' conftest.er1 >conftest.err
6992  rm -f conftest.er1
6993  cat conftest.err >&5
6994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995  (exit $ac_status); } && {
6996	 test -z "$ac_c_werror_flag" ||
6997	 test ! -s conftest.err
6998       } && test -s conftest$ac_exeext &&
6999       $as_test_x conftest$ac_exeext; then
7000  ac_cv_lib_prot_getprpwnam=yes
7001else
7002  echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
7005	ac_cv_lib_prot_getprpwnam=no
7006fi
7007
7008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7009      conftest$ac_exeext conftest.$ac_ext
7010LIBS=$ac_check_lib_save_LIBS
7011fi
7012{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
7013echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6; }
7014if test $ac_cv_lib_prot_getprpwnam = yes; then
7015  cat >>confdefs.h <<_ACEOF
7016#define HAVE_LIBPROT 1
7017_ACEOF
7018
7019  LIBS="-lprot $LIBS"
7020
7021fi
7022
7023          fi
7024          if test "$ac_cv_lib_prot_getprpwnam" != "yes"; then
7025              unset ac_cv_lib_prot_getprpwnam
7026              { echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
7027echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6; }
7028if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
7029  echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031  ac_check_lib_save_LIBS=$LIBS
7032LIBS="-lprot -lcurses -lx  $LIBS"
7033cat >conftest.$ac_ext <<_ACEOF
7034/* confdefs.h.  */
7035_ACEOF
7036cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF
7038/* end confdefs.h.  */
7039
7040/* Override any GCC internal prototype to avoid an error.
7041   Use char because int might match the return type of a GCC
7042   builtin and then its argument prototype would still apply.  */
7043#ifdef __cplusplus
7044extern "C"
7045#endif
7046char getprpwnam ();
7047int
7048main ()
7049{
7050return getprpwnam ();
7051  ;
7052  return 0;
7053}
7054_ACEOF
7055rm -f conftest.$ac_objext conftest$ac_exeext
7056if { (ac_try="$ac_link"
7057case "(($ac_try" in
7058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059  *) ac_try_echo=$ac_try;;
7060esac
7061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062  (eval "$ac_link") 2>conftest.er1
7063  ac_status=$?
7064  grep -v '^ *+' conftest.er1 >conftest.err
7065  rm -f conftest.er1
7066  cat conftest.err >&5
7067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068  (exit $ac_status); } && {
7069	 test -z "$ac_c_werror_flag" ||
7070	 test ! -s conftest.err
7071       } && test -s conftest$ac_exeext &&
7072       $as_test_x conftest$ac_exeext; then
7073  ac_cv_lib_prot_getprpwnam=yes
7074else
7075  echo "$as_me: failed program was:" >&5
7076sed 's/^/| /' conftest.$ac_ext >&5
7077
7078	ac_cv_lib_prot_getprpwnam=no
7079fi
7080
7081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7082      conftest$ac_exeext conftest.$ac_ext
7083LIBS=$ac_check_lib_save_LIBS
7084fi
7085{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
7086echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6; }
7087if test $ac_cv_lib_prot_getprpwnam = yes; then
7088  LIBS="-lcurses -lx $LIBS"
7089fi
7090
7091          fi
7092          if test "$ac_cv_lib_prot_getprpwnam" != "yes"; then
7093              unset ac_cv_lib_prot_getprpwnam
7094              { echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
7095echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6; }
7096if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
7097  echo $ECHO_N "(cached) $ECHO_C" >&6
7098else
7099  ac_check_lib_save_LIBS=$LIBS
7100LIBS="-lprot -lcurses -lsocket -lx  $LIBS"
7101cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h.  */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h.  */
7107
7108/* Override any GCC internal prototype to avoid an error.
7109   Use char because int might match the return type of a GCC
7110   builtin and then its argument prototype would still apply.  */
7111#ifdef __cplusplus
7112extern "C"
7113#endif
7114char getprpwnam ();
7115int
7116main ()
7117{
7118return getprpwnam ();
7119  ;
7120  return 0;
7121}
7122_ACEOF
7123rm -f conftest.$ac_objext conftest$ac_exeext
7124if { (ac_try="$ac_link"
7125case "(($ac_try" in
7126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127  *) ac_try_echo=$ac_try;;
7128esac
7129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130  (eval "$ac_link") 2>conftest.er1
7131  ac_status=$?
7132  grep -v '^ *+' conftest.er1 >conftest.err
7133  rm -f conftest.er1
7134  cat conftest.err >&5
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); } && {
7137	 test -z "$ac_c_werror_flag" ||
7138	 test ! -s conftest.err
7139       } && test -s conftest$ac_exeext &&
7140       $as_test_x conftest$ac_exeext; then
7141  ac_cv_lib_prot_getprpwnam=yes
7142else
7143  echo "$as_me: failed program was:" >&5
7144sed 's/^/| /' conftest.$ac_ext >&5
7145
7146	ac_cv_lib_prot_getprpwnam=no
7147fi
7148
7149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7150      conftest$ac_exeext conftest.$ac_ext
7151LIBS=$ac_check_lib_save_LIBS
7152fi
7153{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
7154echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6; }
7155if test $ac_cv_lib_prot_getprpwnam = yes; then
7156  LIBS="-lcurses -lsocket -lx $LIBS"
7157fi
7158
7159          fi
7160          if test "$ac_cv_lib_prot_getprpwnam" != "yes"; then
7161              unset ac_cv_lib_prot_getprpwnam
7162              { echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
7163echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6; }
7164if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
7165  echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167  ac_check_lib_save_LIBS=$LIBS
7168LIBS="-lprot -lsocket -lprot -lcurses -lm -lx  $LIBS"
7169cat >conftest.$ac_ext <<_ACEOF
7170/* confdefs.h.  */
7171_ACEOF
7172cat confdefs.h >>conftest.$ac_ext
7173cat >>conftest.$ac_ext <<_ACEOF
7174/* end confdefs.h.  */
7175
7176/* Override any GCC internal prototype to avoid an error.
7177   Use char because int might match the return type of a GCC
7178   builtin and then its argument prototype would still apply.  */
7179#ifdef __cplusplus
7180extern "C"
7181#endif
7182char getprpwnam ();
7183int
7184main ()
7185{
7186return getprpwnam ();
7187  ;
7188  return 0;
7189}
7190_ACEOF
7191rm -f conftest.$ac_objext conftest$ac_exeext
7192if { (ac_try="$ac_link"
7193case "(($ac_try" in
7194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195  *) ac_try_echo=$ac_try;;
7196esac
7197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198  (eval "$ac_link") 2>conftest.er1
7199  ac_status=$?
7200  grep -v '^ *+' conftest.er1 >conftest.err
7201  rm -f conftest.er1
7202  cat conftest.err >&5
7203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204  (exit $ac_status); } && {
7205	 test -z "$ac_c_werror_flag" ||
7206	 test ! -s conftest.err
7207       } && test -s conftest$ac_exeext &&
7208       $as_test_x conftest$ac_exeext; then
7209  ac_cv_lib_prot_getprpwnam=yes
7210else
7211  echo "$as_me: failed program was:" >&5
7212sed 's/^/| /' conftest.$ac_ext >&5
7213
7214	ac_cv_lib_prot_getprpwnam=no
7215fi
7216
7217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7218      conftest$ac_exeext conftest.$ac_ext
7219LIBS=$ac_check_lib_save_LIBS
7220fi
7221{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
7222echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6; }
7223if test $ac_cv_lib_prot_getprpwnam = yes; then
7224  LIBS="-lsocket -lprot -lcurses -lm -lx $LIBS"
7225fi
7226
7227          fi
7228          ;;
7229
7230    UnixWare*)
7231          OS_DEFS="$OS_DEFS -DUNIXWARE"
7232          LIBS="$LIBS -lgen"
7233          ;;
7234
7235    Darwin)
7236          OS_DEFS="$OS_DEFS -DDARWIN"
7237          cc -v 2> TMP_CC_V
7238          if grep -i "Apple" TMP_CC_V >/dev/null
7239          then
7240               if grep "gcc version 2" TMP_CC_V >/dev/null
7241               then
7242                    CFLAGS="$CFLAGS -traditional-cpp"
7243               fi
7244          fi
7245          rm -f TMP_CC_V
7246          AR_FLAG=" -r "
7247          RANLIB_CMD="	\${RANLIB} \$@"
7248
7249          if test "$pam_specified" != "yes"
7250          then
7251              if test "$use_pam" = "_default_"
7252              then
7253                   { echo "$as_me:$LINENO: WARNING: PAM required for proper use under MacOS X 10.3 and later" >&5
7254echo "$as_me: WARNING: PAM required for proper use under MacOS X 10.3 and later" >&2;}
7255                   cat >>confdefs.h <<_ACEOF
7256#define USE_PAM "pop3"
7257_ACEOF
7258
7259                   cat >>confdefs.h <<\_ACEOF
7260#define SPEC_POP_AUTH 1
7261_ACEOF
7262
7263                   { echo "$as_me:$LINENO: result: PAM required under MacOS X 10.3 and later; enabling PAM with service name \"pop3\" and defining SPEC_POP_AUTH" >&5
7264echo "${ECHO_T}PAM required under MacOS X 10.3 and later; enabling PAM with service name \"pop3\" and defining SPEC_POP_AUTH" >&6; }
7265                   { echo "$as_me:$LINENO: result: Use --without-pam to disable" >&5
7266echo "${ECHO_T}Use --without-pam to disable" >&6; }
7267                   use_pam="yes"
7268              fi
7269          fi
7270          ;;
7271
7272    *)
7273           MACHINE="`uname -m 2>/dev/null`"
7274           case $MACHINE in
7275               DS/90*) OS_DEFS="$OS_DEFS -DUXPDS -DSPEC_POP_AUTH";;
7276           esac
7277           ;;
7278
7279
7280esac
7281
7282OS_DEFS="$OS_DEFS -DUNIX"
7283{ echo "$as_me:$LINENO: result: Set OS_DEFS = $OS_DEFS" >&5
7284echo "${ECHO_T}Set OS_DEFS = $OS_DEFS" >&6; }
7285
7286if test "$sslplus" != "no"; then
7287    SSL_LIB_PROT="${SSL_LIB_PROT}/${SSL_OS_NAME}/libsslplus.complete.a"
7288    SSL_LIB_CRYP="${sslplus}/tools/${sslplus_crypto}/${SSL_OS_NAME}/lib/*.a"
7289    SSL_LIBS="$SSL_LIB_PROT $SSL_LIB_CRYP"
7290fi
7291
7292
7293if test "$logid" = "no" -o "$logid" = "yes" ; then
7294       logid="LOG_LOCAL0"
7295fi
7296{ echo "$as_me:$LINENO: result: Logging to facility: $logid" >&5
7297echo "${ECHO_T}Logging to facility: $logid" >&6; }
7298cat >>confdefs.h <<_ACEOF
7299#define POP_FACILITY $logid
7300_ACEOF
7301
7302
7303
7304
7305if test "$GCC" = yes
7306then
7307        if test "$USE_REG_STRUCT_RET" = "yes"
7308        then
7309                CFLAGS="$CFLAGS -freg-struct-return "
7310        elif test "$USE_REG_STRUCT_RET" = "no"
7311        then
7312                CFLAGS="$CFLAGS -fpcc-struct-return "
7313        fi
7314fi
7315
7316
7317{ echo "$as_me:$LINENO: checking for mktemp md5 and base64 " >&5
7318echo "$as_me: checking for mktemp md5 and base64 " >&6;}
7319{ echo "$as_me:$LINENO: checking for mkstemp" >&5
7320echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6; }
7321if test "${ac_cv_func_mkstemp+set}" = set; then
7322  echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324  cat >conftest.$ac_ext <<_ACEOF
7325/* confdefs.h.  */
7326_ACEOF
7327cat confdefs.h >>conftest.$ac_ext
7328cat >>conftest.$ac_ext <<_ACEOF
7329/* end confdefs.h.  */
7330/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
7331   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7332#define mkstemp innocuous_mkstemp
7333
7334/* System header to define __stub macros and hopefully few prototypes,
7335    which can conflict with char mkstemp (); below.
7336    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7337    <limits.h> exists even on freestanding compilers.  */
7338
7339#ifdef __STDC__
7340# include <limits.h>
7341#else
7342# include <assert.h>
7343#endif
7344
7345#undef mkstemp
7346
7347/* Override any GCC internal prototype to avoid an error.
7348   Use char because int might match the return type of a GCC
7349   builtin and then its argument prototype would still apply.  */
7350#ifdef __cplusplus
7351extern "C"
7352#endif
7353char mkstemp ();
7354/* The GNU C library defines this for functions which it implements
7355    to always fail with ENOSYS.  Some functions are actually named
7356    something starting with __ and the normal name is an alias.  */
7357#if defined __stub_mkstemp || defined __stub___mkstemp
7358choke me
7359#endif
7360
7361int
7362main ()
7363{
7364return mkstemp ();
7365  ;
7366  return 0;
7367}
7368_ACEOF
7369rm -f conftest.$ac_objext conftest$ac_exeext
7370if { (ac_try="$ac_link"
7371case "(($ac_try" in
7372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373  *) ac_try_echo=$ac_try;;
7374esac
7375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7376  (eval "$ac_link") 2>conftest.er1
7377  ac_status=$?
7378  grep -v '^ *+' conftest.er1 >conftest.err
7379  rm -f conftest.er1
7380  cat conftest.err >&5
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); } && {
7383	 test -z "$ac_c_werror_flag" ||
7384	 test ! -s conftest.err
7385       } && test -s conftest$ac_exeext &&
7386       $as_test_x conftest$ac_exeext; then
7387  ac_cv_func_mkstemp=yes
7388else
7389  echo "$as_me: failed program was:" >&5
7390sed 's/^/| /' conftest.$ac_ext >&5
7391
7392	ac_cv_func_mkstemp=no
7393fi
7394
7395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7396      conftest$ac_exeext conftest.$ac_ext
7397fi
7398{ echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
7399echo "${ECHO_T}$ac_cv_func_mkstemp" >&6; }
7400if test $ac_cv_func_mkstemp = yes; then
7401  \
7402                { echo "$as_me:$LINENO: result: found mkstemp " >&5
7403echo "${ECHO_T}found mkstemp " >&6; }
7404else
7405  \
7406                MISSING_OBJS="$MISSING_OBJS mktemp.o"; \
7407                 MISSING_SRCS="$MISSING_SRCS mktemp.c"; \
7408                 { echo "$as_me:$LINENO: result: mkstemp not found " >&5
7409echo "${ECHO_T}mkstemp not found " >&6; }
7410fi
7411
7412{ echo "$as_me:$LINENO: checking for MD5Init" >&5
7413echo $ECHO_N "checking for MD5Init... $ECHO_C" >&6; }
7414if test "${ac_cv_func_MD5Init+set}" = set; then
7415  echo $ECHO_N "(cached) $ECHO_C" >&6
7416else
7417  cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h.  */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h.  */
7423/* Define MD5Init to an innocuous variant, in case <limits.h> declares MD5Init.
7424   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7425#define MD5Init innocuous_MD5Init
7426
7427/* System header to define __stub macros and hopefully few prototypes,
7428    which can conflict with char MD5Init (); below.
7429    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7430    <limits.h> exists even on freestanding compilers.  */
7431
7432#ifdef __STDC__
7433# include <limits.h>
7434#else
7435# include <assert.h>
7436#endif
7437
7438#undef MD5Init
7439
7440/* Override any GCC internal prototype to avoid an error.
7441   Use char because int might match the return type of a GCC
7442   builtin and then its argument prototype would still apply.  */
7443#ifdef __cplusplus
7444extern "C"
7445#endif
7446char MD5Init ();
7447/* The GNU C library defines this for functions which it implements
7448    to always fail with ENOSYS.  Some functions are actually named
7449    something starting with __ and the normal name is an alias.  */
7450#if defined __stub_MD5Init || defined __stub___MD5Init
7451choke me
7452#endif
7453
7454int
7455main ()
7456{
7457return MD5Init ();
7458  ;
7459  return 0;
7460}
7461_ACEOF
7462rm -f conftest.$ac_objext conftest$ac_exeext
7463if { (ac_try="$ac_link"
7464case "(($ac_try" in
7465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466  *) ac_try_echo=$ac_try;;
7467esac
7468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469  (eval "$ac_link") 2>conftest.er1
7470  ac_status=$?
7471  grep -v '^ *+' conftest.er1 >conftest.err
7472  rm -f conftest.er1
7473  cat conftest.err >&5
7474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475  (exit $ac_status); } && {
7476	 test -z "$ac_c_werror_flag" ||
7477	 test ! -s conftest.err
7478       } && test -s conftest$ac_exeext &&
7479       $as_test_x conftest$ac_exeext; then
7480  ac_cv_func_MD5Init=yes
7481else
7482  echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
7485	ac_cv_func_MD5Init=no
7486fi
7487
7488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7489      conftest$ac_exeext conftest.$ac_ext
7490fi
7491{ echo "$as_me:$LINENO: result: $ac_cv_func_MD5Init" >&5
7492echo "${ECHO_T}$ac_cv_func_MD5Init" >&6; }
7493if test $ac_cv_func_MD5Init = yes; then
7494  \
7495                { echo "$as_me:$LINENO: result: found MD5Init " >&5
7496echo "${ECHO_T}found MD5Init " >&6; }
7497else
7498  \
7499                MISSING_OBJS="$MISSING_OBJS md5.o";    \
7500                 MISSING_SRCS="$MISSING_SRCS md5.c";    \
7501                 { echo "$as_me:$LINENO: result: MD5Init not found " >&5
7502echo "${ECHO_T}MD5Init not found " >&6; }
7503fi
7504
7505{ echo "$as_me:$LINENO: checking for encode64" >&5
7506echo $ECHO_N "checking for encode64... $ECHO_C" >&6; }
7507if test "${ac_cv_func_encode64+set}" = set; then
7508  echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510  cat >conftest.$ac_ext <<_ACEOF
7511/* confdefs.h.  */
7512_ACEOF
7513cat confdefs.h >>conftest.$ac_ext
7514cat >>conftest.$ac_ext <<_ACEOF
7515/* end confdefs.h.  */
7516/* Define encode64 to an innocuous variant, in case <limits.h> declares encode64.
7517   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7518#define encode64 innocuous_encode64
7519
7520/* System header to define __stub macros and hopefully few prototypes,
7521    which can conflict with char encode64 (); below.
7522    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7523    <limits.h> exists even on freestanding compilers.  */
7524
7525#ifdef __STDC__
7526# include <limits.h>
7527#else
7528# include <assert.h>
7529#endif
7530
7531#undef encode64
7532
7533/* Override any GCC internal prototype to avoid an error.
7534   Use char because int might match the return type of a GCC
7535   builtin and then its argument prototype would still apply.  */
7536#ifdef __cplusplus
7537extern "C"
7538#endif
7539char encode64 ();
7540/* The GNU C library defines this for functions which it implements
7541    to always fail with ENOSYS.  Some functions are actually named
7542    something starting with __ and the normal name is an alias.  */
7543#if defined __stub_encode64 || defined __stub___encode64
7544choke me
7545#endif
7546
7547int
7548main ()
7549{
7550return encode64 ();
7551  ;
7552  return 0;
7553}
7554_ACEOF
7555rm -f conftest.$ac_objext conftest$ac_exeext
7556if { (ac_try="$ac_link"
7557case "(($ac_try" in
7558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559  *) ac_try_echo=$ac_try;;
7560esac
7561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562  (eval "$ac_link") 2>conftest.er1
7563  ac_status=$?
7564  grep -v '^ *+' conftest.er1 >conftest.err
7565  rm -f conftest.er1
7566  cat conftest.err >&5
7567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568  (exit $ac_status); } && {
7569	 test -z "$ac_c_werror_flag" ||
7570	 test ! -s conftest.err
7571       } && test -s conftest$ac_exeext &&
7572       $as_test_x conftest$ac_exeext; then
7573  ac_cv_func_encode64=yes
7574else
7575  echo "$as_me: failed program was:" >&5
7576sed 's/^/| /' conftest.$ac_ext >&5
7577
7578	ac_cv_func_encode64=no
7579fi
7580
7581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7582      conftest$ac_exeext conftest.$ac_ext
7583fi
7584{ echo "$as_me:$LINENO: result: $ac_cv_func_encode64" >&5
7585echo "${ECHO_T}$ac_cv_func_encode64" >&6; }
7586if test $ac_cv_func_encode64 = yes; then
7587  \
7588                { echo "$as_me:$LINENO: result: found encode64 " >&5
7589echo "${ECHO_T}found encode64 " >&6; }
7590else
7591  \
7592                MISSING_OBJS="$MISSING_OBJS base64.o"; \
7593                 MISSING_SRCS="$MISSING_SRCS base64.c"; \
7594                 { echo "$as_me:$LINENO: result: encode64 not found " >&5
7595echo "${ECHO_T}encode64 not found " >&6; }
7596fi
7597
7598{ echo "$as_me:$LINENO: result: set MISSING_OBJS to $MISSING_OBJS " >&5
7599echo "${ECHO_T}set MISSING_OBJS to $MISSING_OBJS " >&6; }
7600{ echo "$as_me:$LINENO: result: set MISSING_SRCS to $MISSING_SRCS " >&5
7601echo "${ECHO_T}set MISSING_SRCS to $MISSING_SRCS " >&6; }
7602
7603
7604
7605
7606
7607
7608
7609
7610{ echo "$as_me:$LINENO: result: Set AR_FLAG = $AR_FLAG; RANLIB_CMD = $RANLIB_CMD" >&5
7611echo "${ECHO_T}Set AR_FLAG = $AR_FLAG; RANLIB_CMD = $RANLIB_CMD" >&6; }
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621{ echo "$as_me:$LINENO: checking for sendmail program" >&5
7622echo $ECHO_N "checking for sendmail program... $ECHO_C" >&6; }
7623if test -f /usr/local/sbin/sendmail
7624then
7625    cat >>confdefs.h <<\_ACEOF
7626#define MAIL_COMMAND "/usr/local/sbin/sendmail"
7627_ACEOF
7628
7629    { echo "$as_me:$LINENO: result: found at /usr/local/sbin/sendmail" >&5
7630echo "${ECHO_T}found at /usr/local/sbin/sendmail" >&6; }
7631elif test -f /usr/sbin/sendmail
7632then
7633    cat >>confdefs.h <<\_ACEOF
7634#define MAIL_COMMAND "/usr/sbin/sendmail"
7635_ACEOF
7636
7637    { echo "$as_me:$LINENO: result: found at /usr/sbin/sendmail" >&5
7638echo "${ECHO_T}found at /usr/sbin/sendmail" >&6; }
7639elif test -f /usr/lib/sendmail
7640then
7641    cat >>confdefs.h <<\_ACEOF
7642#define MAIL_COMMAND "/usr/lib/sendmail"
7643_ACEOF
7644
7645    { echo "$as_me:$LINENO: result: found at /usr/lib/sendmail" >&5
7646echo "${ECHO_T}found at /usr/lib/sendmail" >&6; }
7647elif test -f /usr/ucblib/sendmail
7648then
7649    cat >>confdefs.h <<\_ACEOF
7650#define MAIL_COMMAND "/usr/ucblib/sendmail"
7651_ACEOF
7652
7653    { echo "$as_me:$LINENO: result: found at /usr/ucblib/sendmail" >&5
7654echo "${ECHO_T}found at /usr/ucblib/sendmail" >&6; }
7655else
7656    { echo "$as_me:$LINENO: result: ERROR: The sendmail program cannot be located" >&5
7657echo "${ECHO_T}ERROR: The sendmail program cannot be located" >&6; }
7658    exit 1
7659fi
7660if test "$spooldir" = "no" -o "$spooldir" = "yes" ; then
7661    { echo "$as_me:$LINENO: checking for mail spool directory" >&5
7662echo $ECHO_N "checking for mail spool directory... $ECHO_C" >&6; }
7663    if test -d /var/mail
7664    then
7665        pop_maildir="/var/mail"
7666    elif test -d /var/spool/mail
7667    then
7668        pop_maildir="/var/spool/mail"
7669    elif test -d /usr/mail
7670    then
7671        pop_maildir="/usr/mail"
7672    elif test -d /usr/spool/mail
7673    then
7674        pop_maildir="/usr/spool/mail"
7675    else
7676        { echo "$as_me:$LINENO: result: ERROR: Couln't locate the mail spool" >&5
7677echo "${ECHO_T}ERROR: Couln't locate the mail spool" >&6; }
7678        exit 1
7679    fi
7680    { echo "$as_me:$LINENO: result: \"found at $pop_maildir\"" >&5
7681echo "${ECHO_T}\"found at $pop_maildir\"" >&6; }
7682    cat >>confdefs.h <<_ACEOF
7683#define POP_MAILDIR "$pop_maildir"
7684_ACEOF
7685
7686fi
7687
7688cat >>confdefs.h <<\_ACEOF
7689#define POP_DROP ".%s.pop"
7690_ACEOF
7691
7692cat >>confdefs.h <<\_ACEOF
7693#define POP_CACHE ".%s.cache"
7694_ACEOF
7695
7696cat >>confdefs.h <<\_ACEOF
7697#define POP_TMPDROP "tmpXXXXXX"
7698_ACEOF
7699
7700cat >>confdefs.h <<\_ACEOF
7701#define POP_TMPXMIT "xmitXXXXXX"
7702_ACEOF
7703
7704
7705if test "$tempdropdir" = "no"
7706then
7707    cat >>confdefs.h <<_ACEOF
7708#define POP_DROP_DIR POP_MAILDIR
7709_ACEOF
7710
7711fi
7712
7713if test "$cachedir" = "no"
7714then
7715    cat >>confdefs.h <<_ACEOF
7716#define POP_CACHE_DIR POP_DROP_DIR
7717_ACEOF
7718
7719fi
7720
7721
7722
7723
7724
7725
7726
7727
7728ac_header_dirent=no
7729for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7730  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7731{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7732echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7734  echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736  cat >conftest.$ac_ext <<_ACEOF
7737/* confdefs.h.  */
7738_ACEOF
7739cat confdefs.h >>conftest.$ac_ext
7740cat >>conftest.$ac_ext <<_ACEOF
7741/* end confdefs.h.  */
7742#include <sys/types.h>
7743#include <$ac_hdr>
7744
7745int
7746main ()
7747{
7748if ((DIR *) 0)
7749return 0;
7750  ;
7751  return 0;
7752}
7753_ACEOF
7754rm -f conftest.$ac_objext
7755if { (ac_try="$ac_compile"
7756case "(($ac_try" in
7757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758  *) ac_try_echo=$ac_try;;
7759esac
7760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761  (eval "$ac_compile") 2>conftest.er1
7762  ac_status=$?
7763  grep -v '^ *+' conftest.er1 >conftest.err
7764  rm -f conftest.er1
7765  cat conftest.err >&5
7766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767  (exit $ac_status); } && {
7768	 test -z "$ac_c_werror_flag" ||
7769	 test ! -s conftest.err
7770       } && test -s conftest.$ac_objext; then
7771  eval "$as_ac_Header=yes"
7772else
7773  echo "$as_me: failed program was:" >&5
7774sed 's/^/| /' conftest.$ac_ext >&5
7775
7776	eval "$as_ac_Header=no"
7777fi
7778
7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780fi
7781ac_res=`eval echo '${'$as_ac_Header'}'`
7782	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7783echo "${ECHO_T}$ac_res" >&6; }
7784if test `eval echo '${'$as_ac_Header'}'` = yes; then
7785  cat >>confdefs.h <<_ACEOF
7786#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7787_ACEOF
7788
7789ac_header_dirent=$ac_hdr; break
7790fi
7791
7792done
7793# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7794if test $ac_header_dirent = dirent.h; then
7795  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7796echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7797if test "${ac_cv_search_opendir+set}" = set; then
7798  echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800  ac_func_search_save_LIBS=$LIBS
7801cat >conftest.$ac_ext <<_ACEOF
7802/* confdefs.h.  */
7803_ACEOF
7804cat confdefs.h >>conftest.$ac_ext
7805cat >>conftest.$ac_ext <<_ACEOF
7806/* end confdefs.h.  */
7807
7808/* Override any GCC internal prototype to avoid an error.
7809   Use char because int might match the return type of a GCC
7810   builtin and then its argument prototype would still apply.  */
7811#ifdef __cplusplus
7812extern "C"
7813#endif
7814char opendir ();
7815int
7816main ()
7817{
7818return opendir ();
7819  ;
7820  return 0;
7821}
7822_ACEOF
7823for ac_lib in '' dir; do
7824  if test -z "$ac_lib"; then
7825    ac_res="none required"
7826  else
7827    ac_res=-l$ac_lib
7828    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7829  fi
7830  rm -f conftest.$ac_objext conftest$ac_exeext
7831if { (ac_try="$ac_link"
7832case "(($ac_try" in
7833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834  *) ac_try_echo=$ac_try;;
7835esac
7836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837  (eval "$ac_link") 2>conftest.er1
7838  ac_status=$?
7839  grep -v '^ *+' conftest.er1 >conftest.err
7840  rm -f conftest.er1
7841  cat conftest.err >&5
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); } && {
7844	 test -z "$ac_c_werror_flag" ||
7845	 test ! -s conftest.err
7846       } && test -s conftest$ac_exeext &&
7847       $as_test_x conftest$ac_exeext; then
7848  ac_cv_search_opendir=$ac_res
7849else
7850  echo "$as_me: failed program was:" >&5
7851sed 's/^/| /' conftest.$ac_ext >&5
7852
7853
7854fi
7855
7856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7857      conftest$ac_exeext
7858  if test "${ac_cv_search_opendir+set}" = set; then
7859  break
7860fi
7861done
7862if test "${ac_cv_search_opendir+set}" = set; then
7863  :
7864else
7865  ac_cv_search_opendir=no
7866fi
7867rm conftest.$ac_ext
7868LIBS=$ac_func_search_save_LIBS
7869fi
7870{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7871echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7872ac_res=$ac_cv_search_opendir
7873if test "$ac_res" != no; then
7874  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7875
7876fi
7877
7878else
7879  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7880echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7881if test "${ac_cv_search_opendir+set}" = set; then
7882  echo $ECHO_N "(cached) $ECHO_C" >&6
7883else
7884  ac_func_search_save_LIBS=$LIBS
7885cat >conftest.$ac_ext <<_ACEOF
7886/* confdefs.h.  */
7887_ACEOF
7888cat confdefs.h >>conftest.$ac_ext
7889cat >>conftest.$ac_ext <<_ACEOF
7890/* end confdefs.h.  */
7891
7892/* Override any GCC internal prototype to avoid an error.
7893   Use char because int might match the return type of a GCC
7894   builtin and then its argument prototype would still apply.  */
7895#ifdef __cplusplus
7896extern "C"
7897#endif
7898char opendir ();
7899int
7900main ()
7901{
7902return opendir ();
7903  ;
7904  return 0;
7905}
7906_ACEOF
7907for ac_lib in '' x; do
7908  if test -z "$ac_lib"; then
7909    ac_res="none required"
7910  else
7911    ac_res=-l$ac_lib
7912    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7913  fi
7914  rm -f conftest.$ac_objext conftest$ac_exeext
7915if { (ac_try="$ac_link"
7916case "(($ac_try" in
7917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918  *) ac_try_echo=$ac_try;;
7919esac
7920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921  (eval "$ac_link") 2>conftest.er1
7922  ac_status=$?
7923  grep -v '^ *+' conftest.er1 >conftest.err
7924  rm -f conftest.er1
7925  cat conftest.err >&5
7926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927  (exit $ac_status); } && {
7928	 test -z "$ac_c_werror_flag" ||
7929	 test ! -s conftest.err
7930       } && test -s conftest$ac_exeext &&
7931       $as_test_x conftest$ac_exeext; then
7932  ac_cv_search_opendir=$ac_res
7933else
7934  echo "$as_me: failed program was:" >&5
7935sed 's/^/| /' conftest.$ac_ext >&5
7936
7937
7938fi
7939
7940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941      conftest$ac_exeext
7942  if test "${ac_cv_search_opendir+set}" = set; then
7943  break
7944fi
7945done
7946if test "${ac_cv_search_opendir+set}" = set; then
7947  :
7948else
7949  ac_cv_search_opendir=no
7950fi
7951rm conftest.$ac_ext
7952LIBS=$ac_func_search_save_LIBS
7953fi
7954{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7955echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7956ac_res=$ac_cv_search_opendir
7957if test "$ac_res" != no; then
7958  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7959
7960fi
7961
7962fi
7963
7964{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7965echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7966if test "${ac_cv_header_stdc+set}" = set; then
7967  echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969  cat >conftest.$ac_ext <<_ACEOF
7970/* confdefs.h.  */
7971_ACEOF
7972cat confdefs.h >>conftest.$ac_ext
7973cat >>conftest.$ac_ext <<_ACEOF
7974/* end confdefs.h.  */
7975#include <stdlib.h>
7976#include <stdarg.h>
7977#include <string.h>
7978#include <float.h>
7979
7980int
7981main ()
7982{
7983
7984  ;
7985  return 0;
7986}
7987_ACEOF
7988rm -f conftest.$ac_objext
7989if { (ac_try="$ac_compile"
7990case "(($ac_try" in
7991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992  *) ac_try_echo=$ac_try;;
7993esac
7994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995  (eval "$ac_compile") 2>conftest.er1
7996  ac_status=$?
7997  grep -v '^ *+' conftest.er1 >conftest.err
7998  rm -f conftest.er1
7999  cat conftest.err >&5
8000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001  (exit $ac_status); } && {
8002	 test -z "$ac_c_werror_flag" ||
8003	 test ! -s conftest.err
8004       } && test -s conftest.$ac_objext; then
8005  ac_cv_header_stdc=yes
8006else
8007  echo "$as_me: failed program was:" >&5
8008sed 's/^/| /' conftest.$ac_ext >&5
8009
8010	ac_cv_header_stdc=no
8011fi
8012
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014
8015if test $ac_cv_header_stdc = yes; then
8016  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8017  cat >conftest.$ac_ext <<_ACEOF
8018/* confdefs.h.  */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h.  */
8023#include <string.h>
8024
8025_ACEOF
8026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027  $EGREP "memchr" >/dev/null 2>&1; then
8028  :
8029else
8030  ac_cv_header_stdc=no
8031fi
8032rm -f conftest*
8033
8034fi
8035
8036if test $ac_cv_header_stdc = yes; then
8037  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8038  cat >conftest.$ac_ext <<_ACEOF
8039/* confdefs.h.  */
8040_ACEOF
8041cat confdefs.h >>conftest.$ac_ext
8042cat >>conftest.$ac_ext <<_ACEOF
8043/* end confdefs.h.  */
8044#include <stdlib.h>
8045
8046_ACEOF
8047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8048  $EGREP "free" >/dev/null 2>&1; then
8049  :
8050else
8051  ac_cv_header_stdc=no
8052fi
8053rm -f conftest*
8054
8055fi
8056
8057if test $ac_cv_header_stdc = yes; then
8058  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8059  if test "$cross_compiling" = yes; then
8060  :
8061else
8062  cat >conftest.$ac_ext <<_ACEOF
8063/* confdefs.h.  */
8064_ACEOF
8065cat confdefs.h >>conftest.$ac_ext
8066cat >>conftest.$ac_ext <<_ACEOF
8067/* end confdefs.h.  */
8068#include <ctype.h>
8069#include <stdlib.h>
8070#if ((' ' & 0x0FF) == 0x020)
8071# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8072# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8073#else
8074# define ISLOWER(c) \
8075		   (('a' <= (c) && (c) <= 'i') \
8076		     || ('j' <= (c) && (c) <= 'r') \
8077		     || ('s' <= (c) && (c) <= 'z'))
8078# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8079#endif
8080
8081#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8082int
8083main ()
8084{
8085  int i;
8086  for (i = 0; i < 256; i++)
8087    if (XOR (islower (i), ISLOWER (i))
8088	|| toupper (i) != TOUPPER (i))
8089      return 2;
8090  return 0;
8091}
8092_ACEOF
8093rm -f conftest$ac_exeext
8094if { (ac_try="$ac_link"
8095case "(($ac_try" in
8096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097  *) ac_try_echo=$ac_try;;
8098esac
8099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100  (eval "$ac_link") 2>&5
8101  ac_status=$?
8102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8104  { (case "(($ac_try" in
8105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106  *) ac_try_echo=$ac_try;;
8107esac
8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109  (eval "$ac_try") 2>&5
8110  ac_status=$?
8111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112  (exit $ac_status); }; }; then
8113  :
8114else
8115  echo "$as_me: program exited with status $ac_status" >&5
8116echo "$as_me: failed program was:" >&5
8117sed 's/^/| /' conftest.$ac_ext >&5
8118
8119( exit $ac_status )
8120ac_cv_header_stdc=no
8121fi
8122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8123fi
8124
8125
8126fi
8127fi
8128{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8129echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8130if test $ac_cv_header_stdc = yes; then
8131
8132cat >>confdefs.h <<\_ACEOF
8133#define STDC_HEADERS 1
8134_ACEOF
8135
8136fi
8137
8138{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8139echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8140if test "${ac_cv_header_sys_wait_h+set}" = set; then
8141  echo $ECHO_N "(cached) $ECHO_C" >&6
8142else
8143  cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h.  */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h.  */
8149#include <sys/types.h>
8150#include <sys/wait.h>
8151#ifndef WEXITSTATUS
8152# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8153#endif
8154#ifndef WIFEXITED
8155# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8156#endif
8157
8158int
8159main ()
8160{
8161  int s;
8162  wait (&s);
8163  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8164  ;
8165  return 0;
8166}
8167_ACEOF
8168rm -f conftest.$ac_objext
8169if { (ac_try="$ac_compile"
8170case "(($ac_try" in
8171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172  *) ac_try_echo=$ac_try;;
8173esac
8174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175  (eval "$ac_compile") 2>conftest.er1
8176  ac_status=$?
8177  grep -v '^ *+' conftest.er1 >conftest.err
8178  rm -f conftest.er1
8179  cat conftest.err >&5
8180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181  (exit $ac_status); } && {
8182	 test -z "$ac_c_werror_flag" ||
8183	 test ! -s conftest.err
8184       } && test -s conftest.$ac_objext; then
8185  ac_cv_header_sys_wait_h=yes
8186else
8187  echo "$as_me: failed program was:" >&5
8188sed 's/^/| /' conftest.$ac_ext >&5
8189
8190	ac_cv_header_sys_wait_h=no
8191fi
8192
8193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194fi
8195{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8196echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8197if test $ac_cv_header_sys_wait_h = yes; then
8198
8199cat >>confdefs.h <<\_ACEOF
8200#define HAVE_SYS_WAIT_H 1
8201_ACEOF
8202
8203fi
8204
8205{ echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
8206echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
8207if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
8208  echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210  cat >conftest.$ac_ext <<_ACEOF
8211/* confdefs.h.  */
8212_ACEOF
8213cat confdefs.h >>conftest.$ac_ext
8214cat >>conftest.$ac_ext <<_ACEOF
8215/* end confdefs.h.  */
8216#include <signal.h>
8217/* NetBSD declares sys_siglist in unistd.h.  */
8218#ifdef HAVE_UNISTD_H
8219# include <unistd.h>
8220#endif
8221
8222
8223int
8224main ()
8225{
8226#ifndef sys_siglist
8227  (void) sys_siglist;
8228#endif
8229
8230  ;
8231  return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext
8235if { (ac_try="$ac_compile"
8236case "(($ac_try" in
8237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238  *) ac_try_echo=$ac_try;;
8239esac
8240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241  (eval "$ac_compile") 2>conftest.er1
8242  ac_status=$?
8243  grep -v '^ *+' conftest.er1 >conftest.err
8244  rm -f conftest.er1
8245  cat conftest.err >&5
8246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247  (exit $ac_status); } && {
8248	 test -z "$ac_c_werror_flag" ||
8249	 test ! -s conftest.err
8250       } && test -s conftest.$ac_objext; then
8251  ac_cv_have_decl_sys_siglist=yes
8252else
8253  echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256	ac_cv_have_decl_sys_siglist=no
8257fi
8258
8259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260fi
8261{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
8262echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
8263if test $ac_cv_have_decl_sys_siglist = yes; then
8264
8265cat >>confdefs.h <<_ACEOF
8266#define HAVE_DECL_SYS_SIGLIST 1
8267_ACEOF
8268
8269
8270else
8271  cat >>confdefs.h <<_ACEOF
8272#define HAVE_DECL_SYS_SIGLIST 0
8273_ACEOF
8274
8275
8276fi
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309for ac_header in \
8310prot.h \
8311fcntl.h \
8312limits.h \
8313strings.h \
8314sys/param.h \
8315sys/file.h \
8316sys/security.h \
8317sys/syslog.h \
8318sys/types.h \
8319sys/fcntl.h \
8320sys/select.h \
8321sys/socket.h \
8322sys/stat.h \
8323sys/unistd.h \
8324sys/netinet/in.h \
8325sys/time.h \
8326sys/syslimits.h \
8327syslog.h \
8328net/errno.h \
8329unistd.h \
8330netinet/in.h \
8331maillock.h \
8332select.h \
8333shadow.h \
8334security/pam_appl.h \
8335pam/pam_appl.h \
8336time.h \
8337crypt.h \
8338netdb.h \
8339
8340do
8341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8343  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346  echo $ECHO_N "(cached) $ECHO_C" >&6
8347fi
8348ac_res=`eval echo '${'$as_ac_Header'}'`
8349	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8350echo "${ECHO_T}$ac_res" >&6; }
8351else
8352  # Is the header compilable?
8353{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8355cat >conftest.$ac_ext <<_ACEOF
8356/* confdefs.h.  */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h.  */
8361$ac_includes_default
8362#include <$ac_header>
8363_ACEOF
8364rm -f conftest.$ac_objext
8365if { (ac_try="$ac_compile"
8366case "(($ac_try" in
8367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368  *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371  (eval "$ac_compile") 2>conftest.er1
8372  ac_status=$?
8373  grep -v '^ *+' conftest.er1 >conftest.err
8374  rm -f conftest.er1
8375  cat conftest.err >&5
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); } && {
8378	 test -z "$ac_c_werror_flag" ||
8379	 test ! -s conftest.err
8380       } && test -s conftest.$ac_objext; then
8381  ac_header_compiler=yes
8382else
8383  echo "$as_me: failed program was:" >&5
8384sed 's/^/| /' conftest.$ac_ext >&5
8385
8386	ac_header_compiler=no
8387fi
8388
8389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8391echo "${ECHO_T}$ac_header_compiler" >&6; }
8392
8393# Is the header present?
8394{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8396cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h.  */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h.  */
8402#include <$ac_header>
8403_ACEOF
8404if { (ac_try="$ac_cpp conftest.$ac_ext"
8405case "(($ac_try" in
8406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407  *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8411  ac_status=$?
8412  grep -v '^ *+' conftest.er1 >conftest.err
8413  rm -f conftest.er1
8414  cat conftest.err >&5
8415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416  (exit $ac_status); } >/dev/null && {
8417	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8418	 test ! -s conftest.err
8419       }; then
8420  ac_header_preproc=yes
8421else
8422  echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425  ac_header_preproc=no
8426fi
8427
8428rm -f conftest.err conftest.$ac_ext
8429{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8430echo "${ECHO_T}$ac_header_preproc" >&6; }
8431
8432# So?  What about this header?
8433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8434  yes:no: )
8435    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8437    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8439    ac_header_preproc=yes
8440    ;;
8441  no:yes:* )
8442    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8444    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8445echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8446    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8448    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8449echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8450    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8452    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8454
8455    ;;
8456esac
8457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8460  echo $ECHO_N "(cached) $ECHO_C" >&6
8461else
8462  eval "$as_ac_Header=\$ac_header_preproc"
8463fi
8464ac_res=`eval echo '${'$as_ac_Header'}'`
8465	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8466echo "${ECHO_T}$ac_res" >&6; }
8467
8468fi
8469if test `eval echo '${'$as_ac_Header'}'` = yes; then
8470  cat >>confdefs.h <<_ACEOF
8471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8472_ACEOF
8473
8474fi
8475
8476done
8477
8478
8479if test "${ac_cv_header_ndbm_h+set}" = set; then
8480  { echo "$as_me:$LINENO: checking for ndbm.h" >&5
8481echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
8482if test "${ac_cv_header_ndbm_h+set}" = set; then
8483  echo $ECHO_N "(cached) $ECHO_C" >&6
8484fi
8485{ echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8486echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
8487else
8488  # Is the header compilable?
8489{ echo "$as_me:$LINENO: checking ndbm.h usability" >&5
8490echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
8491cat >conftest.$ac_ext <<_ACEOF
8492/* confdefs.h.  */
8493_ACEOF
8494cat confdefs.h >>conftest.$ac_ext
8495cat >>conftest.$ac_ext <<_ACEOF
8496/* end confdefs.h.  */
8497$ac_includes_default
8498#include <ndbm.h>
8499_ACEOF
8500rm -f conftest.$ac_objext
8501if { (ac_try="$ac_compile"
8502case "(($ac_try" in
8503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504  *) ac_try_echo=$ac_try;;
8505esac
8506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507  (eval "$ac_compile") 2>conftest.er1
8508  ac_status=$?
8509  grep -v '^ *+' conftest.er1 >conftest.err
8510  rm -f conftest.er1
8511  cat conftest.err >&5
8512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513  (exit $ac_status); } && {
8514	 test -z "$ac_c_werror_flag" ||
8515	 test ! -s conftest.err
8516       } && test -s conftest.$ac_objext; then
8517  ac_header_compiler=yes
8518else
8519  echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
8522	ac_header_compiler=no
8523fi
8524
8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8527echo "${ECHO_T}$ac_header_compiler" >&6; }
8528
8529# Is the header present?
8530{ echo "$as_me:$LINENO: checking ndbm.h presence" >&5
8531echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
8532cat >conftest.$ac_ext <<_ACEOF
8533/* confdefs.h.  */
8534_ACEOF
8535cat confdefs.h >>conftest.$ac_ext
8536cat >>conftest.$ac_ext <<_ACEOF
8537/* end confdefs.h.  */
8538#include <ndbm.h>
8539_ACEOF
8540if { (ac_try="$ac_cpp conftest.$ac_ext"
8541case "(($ac_try" in
8542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543  *) ac_try_echo=$ac_try;;
8544esac
8545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8547  ac_status=$?
8548  grep -v '^ *+' conftest.er1 >conftest.err
8549  rm -f conftest.er1
8550  cat conftest.err >&5
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); } >/dev/null && {
8553	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8554	 test ! -s conftest.err
8555       }; then
8556  ac_header_preproc=yes
8557else
8558  echo "$as_me: failed program was:" >&5
8559sed 's/^/| /' conftest.$ac_ext >&5
8560
8561  ac_header_preproc=no
8562fi
8563
8564rm -f conftest.err conftest.$ac_ext
8565{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8566echo "${ECHO_T}$ac_header_preproc" >&6; }
8567
8568# So?  What about this header?
8569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8570  yes:no: )
8571    { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8572echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8573    { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
8574echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
8575    ac_header_preproc=yes
8576    ;;
8577  no:yes:* )
8578    { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
8579echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
8580    { echo "$as_me:$LINENO: WARNING: ndbm.h:     check for missing prerequisite headers?" >&5
8581echo "$as_me: WARNING: ndbm.h:     check for missing prerequisite headers?" >&2;}
8582    { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
8583echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
8584    { echo "$as_me:$LINENO: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&5
8585echo "$as_me: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8586    { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
8587echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
8588    { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
8589echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
8590
8591    ;;
8592esac
8593{ echo "$as_me:$LINENO: checking for ndbm.h" >&5
8594echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
8595if test "${ac_cv_header_ndbm_h+set}" = set; then
8596  echo $ECHO_N "(cached) $ECHO_C" >&6
8597else
8598  ac_cv_header_ndbm_h=$ac_header_preproc
8599fi
8600{ echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8601echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
8602
8603fi
8604if test $ac_cv_header_ndbm_h = yes; then
8605  NDBM_H="yes"; cat >>confdefs.h <<\_ACEOF
8606#define HAVE_NDBM_H 1
8607_ACEOF
8608
8609else
8610  NDBM_H="no"
8611fi
8612
8613
8614if test "${ac_cv_header_gdbm_h+set}" = set; then
8615  { echo "$as_me:$LINENO: checking for gdbm.h" >&5
8616echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
8617if test "${ac_cv_header_gdbm_h+set}" = set; then
8618  echo $ECHO_N "(cached) $ECHO_C" >&6
8619fi
8620{ echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8621echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
8622else
8623  # Is the header compilable?
8624{ echo "$as_me:$LINENO: checking gdbm.h usability" >&5
8625echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
8626cat >conftest.$ac_ext <<_ACEOF
8627/* confdefs.h.  */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
8631/* end confdefs.h.  */
8632$ac_includes_default
8633#include <gdbm.h>
8634_ACEOF
8635rm -f conftest.$ac_objext
8636if { (ac_try="$ac_compile"
8637case "(($ac_try" in
8638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639  *) ac_try_echo=$ac_try;;
8640esac
8641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642  (eval "$ac_compile") 2>conftest.er1
8643  ac_status=$?
8644  grep -v '^ *+' conftest.er1 >conftest.err
8645  rm -f conftest.er1
8646  cat conftest.err >&5
8647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648  (exit $ac_status); } && {
8649	 test -z "$ac_c_werror_flag" ||
8650	 test ! -s conftest.err
8651       } && test -s conftest.$ac_objext; then
8652  ac_header_compiler=yes
8653else
8654  echo "$as_me: failed program was:" >&5
8655sed 's/^/| /' conftest.$ac_ext >&5
8656
8657	ac_header_compiler=no
8658fi
8659
8660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8662echo "${ECHO_T}$ac_header_compiler" >&6; }
8663
8664# Is the header present?
8665{ echo "$as_me:$LINENO: checking gdbm.h presence" >&5
8666echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
8667cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h.  */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h.  */
8673#include <gdbm.h>
8674_ACEOF
8675if { (ac_try="$ac_cpp conftest.$ac_ext"
8676case "(($ac_try" in
8677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678  *) ac_try_echo=$ac_try;;
8679esac
8680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8682  ac_status=$?
8683  grep -v '^ *+' conftest.er1 >conftest.err
8684  rm -f conftest.er1
8685  cat conftest.err >&5
8686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687  (exit $ac_status); } >/dev/null && {
8688	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8689	 test ! -s conftest.err
8690       }; then
8691  ac_header_preproc=yes
8692else
8693  echo "$as_me: failed program was:" >&5
8694sed 's/^/| /' conftest.$ac_ext >&5
8695
8696  ac_header_preproc=no
8697fi
8698
8699rm -f conftest.err conftest.$ac_ext
8700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701echo "${ECHO_T}$ac_header_preproc" >&6; }
8702
8703# So?  What about this header?
8704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8705  yes:no: )
8706    { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8707echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708    { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
8709echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
8710    ac_header_preproc=yes
8711    ;;
8712  no:yes:* )
8713    { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
8714echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
8715    { echo "$as_me:$LINENO: WARNING: gdbm.h:     check for missing prerequisite headers?" >&5
8716echo "$as_me: WARNING: gdbm.h:     check for missing prerequisite headers?" >&2;}
8717    { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
8718echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
8719    { echo "$as_me:$LINENO: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&5
8720echo "$as_me: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8721    { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
8722echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
8723    { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
8724echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
8725
8726    ;;
8727esac
8728{ echo "$as_me:$LINENO: checking for gdbm.h" >&5
8729echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
8730if test "${ac_cv_header_gdbm_h+set}" = set; then
8731  echo $ECHO_N "(cached) $ECHO_C" >&6
8732else
8733  ac_cv_header_gdbm_h=$ac_header_preproc
8734fi
8735{ echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8736echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
8737
8738fi
8739if test $ac_cv_header_gdbm_h = yes; then
8740  GDBM_H="yes"; cat >>confdefs.h <<\_ACEOF
8741#define HAVE_GDBM_H 1
8742_ACEOF
8743
8744else
8745  GDBM_H="no"
8746fi
8747
8748
8749if test "${ac_cv_header_dbm_h+set}" = set; then
8750  { echo "$as_me:$LINENO: checking for dbm.h" >&5
8751echo $ECHO_N "checking for dbm.h... $ECHO_C" >&6; }
8752if test "${ac_cv_header_dbm_h+set}" = set; then
8753  echo $ECHO_N "(cached) $ECHO_C" >&6
8754fi
8755{ echo "$as_me:$LINENO: result: $ac_cv_header_dbm_h" >&5
8756echo "${ECHO_T}$ac_cv_header_dbm_h" >&6; }
8757else
8758  # Is the header compilable?
8759{ echo "$as_me:$LINENO: checking dbm.h usability" >&5
8760echo $ECHO_N "checking dbm.h usability... $ECHO_C" >&6; }
8761cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h.  */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h.  */
8767$ac_includes_default
8768#include <dbm.h>
8769_ACEOF
8770rm -f conftest.$ac_objext
8771if { (ac_try="$ac_compile"
8772case "(($ac_try" in
8773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774  *) ac_try_echo=$ac_try;;
8775esac
8776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777  (eval "$ac_compile") 2>conftest.er1
8778  ac_status=$?
8779  grep -v '^ *+' conftest.er1 >conftest.err
8780  rm -f conftest.er1
8781  cat conftest.err >&5
8782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783  (exit $ac_status); } && {
8784	 test -z "$ac_c_werror_flag" ||
8785	 test ! -s conftest.err
8786       } && test -s conftest.$ac_objext; then
8787  ac_header_compiler=yes
8788else
8789  echo "$as_me: failed program was:" >&5
8790sed 's/^/| /' conftest.$ac_ext >&5
8791
8792	ac_header_compiler=no
8793fi
8794
8795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8797echo "${ECHO_T}$ac_header_compiler" >&6; }
8798
8799# Is the header present?
8800{ echo "$as_me:$LINENO: checking dbm.h presence" >&5
8801echo $ECHO_N "checking dbm.h presence... $ECHO_C" >&6; }
8802cat >conftest.$ac_ext <<_ACEOF
8803/* confdefs.h.  */
8804_ACEOF
8805cat confdefs.h >>conftest.$ac_ext
8806cat >>conftest.$ac_ext <<_ACEOF
8807/* end confdefs.h.  */
8808#include <dbm.h>
8809_ACEOF
8810if { (ac_try="$ac_cpp conftest.$ac_ext"
8811case "(($ac_try" in
8812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813  *) ac_try_echo=$ac_try;;
8814esac
8815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8817  ac_status=$?
8818  grep -v '^ *+' conftest.er1 >conftest.err
8819  rm -f conftest.er1
8820  cat conftest.err >&5
8821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822  (exit $ac_status); } >/dev/null && {
8823	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8824	 test ! -s conftest.err
8825       }; then
8826  ac_header_preproc=yes
8827else
8828  echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
8830
8831  ac_header_preproc=no
8832fi
8833
8834rm -f conftest.err conftest.$ac_ext
8835{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836echo "${ECHO_T}$ac_header_preproc" >&6; }
8837
8838# So?  What about this header?
8839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8840  yes:no: )
8841    { echo "$as_me:$LINENO: WARNING: dbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8842echo "$as_me: WARNING: dbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843    { echo "$as_me:$LINENO: WARNING: dbm.h: proceeding with the compiler's result" >&5
8844echo "$as_me: WARNING: dbm.h: proceeding with the compiler's result" >&2;}
8845    ac_header_preproc=yes
8846    ;;
8847  no:yes:* )
8848    { echo "$as_me:$LINENO: WARNING: dbm.h: present but cannot be compiled" >&5
8849echo "$as_me: WARNING: dbm.h: present but cannot be compiled" >&2;}
8850    { echo "$as_me:$LINENO: WARNING: dbm.h:     check for missing prerequisite headers?" >&5
8851echo "$as_me: WARNING: dbm.h:     check for missing prerequisite headers?" >&2;}
8852    { echo "$as_me:$LINENO: WARNING: dbm.h: see the Autoconf documentation" >&5
8853echo "$as_me: WARNING: dbm.h: see the Autoconf documentation" >&2;}
8854    { echo "$as_me:$LINENO: WARNING: dbm.h:     section \"Present But Cannot Be Compiled\"" >&5
8855echo "$as_me: WARNING: dbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8856    { echo "$as_me:$LINENO: WARNING: dbm.h: proceeding with the preprocessor's result" >&5
8857echo "$as_me: WARNING: dbm.h: proceeding with the preprocessor's result" >&2;}
8858    { echo "$as_me:$LINENO: WARNING: dbm.h: in the future, the compiler will take precedence" >&5
8859echo "$as_me: WARNING: dbm.h: in the future, the compiler will take precedence" >&2;}
8860
8861    ;;
8862esac
8863{ echo "$as_me:$LINENO: checking for dbm.h" >&5
8864echo $ECHO_N "checking for dbm.h... $ECHO_C" >&6; }
8865if test "${ac_cv_header_dbm_h+set}" = set; then
8866  echo $ECHO_N "(cached) $ECHO_C" >&6
8867else
8868  ac_cv_header_dbm_h=$ac_header_preproc
8869fi
8870{ echo "$as_me:$LINENO: result: $ac_cv_header_dbm_h" >&5
8871echo "${ECHO_T}$ac_cv_header_dbm_h" >&6; }
8872
8873fi
8874if test $ac_cv_header_dbm_h = yes; then
8875  DBM_H="yes"; cat >>confdefs.h <<\_ACEOF
8876#define HAVE_DBM_H 1
8877_ACEOF
8878
8879else
8880  DBM_H="no"
8881fi
8882
8883
8884
8885{ echo "$as_me:$LINENO: checking for socklen_t" >&5
8886echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8887if test "${ac_cv_type_socklen_t+set}" = set; then
8888  echo $ECHO_N "(cached) $ECHO_C" >&6
8889else
8890  cat >conftest.$ac_ext <<_ACEOF
8891/* confdefs.h.  */
8892_ACEOF
8893cat confdefs.h >>conftest.$ac_ext
8894cat >>conftest.$ac_ext <<_ACEOF
8895/* end confdefs.h.  */
8896#include <sys/socket.h>
8897
8898typedef socklen_t ac__type_new_;
8899int
8900main ()
8901{
8902if ((ac__type_new_ *) 0)
8903  return 0;
8904if (sizeof (ac__type_new_))
8905  return 0;
8906  ;
8907  return 0;
8908}
8909_ACEOF
8910rm -f conftest.$ac_objext
8911if { (ac_try="$ac_compile"
8912case "(($ac_try" in
8913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914  *) ac_try_echo=$ac_try;;
8915esac
8916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917  (eval "$ac_compile") 2>conftest.er1
8918  ac_status=$?
8919  grep -v '^ *+' conftest.er1 >conftest.err
8920  rm -f conftest.er1
8921  cat conftest.err >&5
8922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923  (exit $ac_status); } && {
8924	 test -z "$ac_c_werror_flag" ||
8925	 test ! -s conftest.err
8926       } && test -s conftest.$ac_objext; then
8927  ac_cv_type_socklen_t=yes
8928else
8929  echo "$as_me: failed program was:" >&5
8930sed 's/^/| /' conftest.$ac_ext >&5
8931
8932	ac_cv_type_socklen_t=no
8933fi
8934
8935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936fi
8937{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8938echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8939if test $ac_cv_type_socklen_t = yes; then
8940
8941cat >>confdefs.h <<_ACEOF
8942#define HAVE_SOCKLEN_T 1
8943_ACEOF
8944
8945
8946fi
8947
8948
8949
8950
8951{ echo "$as_me:$LINENO: checking for t_accept in -lnsl" >&5
8952echo $ECHO_N "checking for t_accept in -lnsl... $ECHO_C" >&6; }
8953if test "${ac_cv_lib_nsl_t_accept+set}" = set; then
8954  echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956  ac_check_lib_save_LIBS=$LIBS
8957LIBS="-lnsl  $LIBS"
8958cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h.  */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h.  */
8964
8965/* Override any GCC internal prototype to avoid an error.
8966   Use char because int might match the return type of a GCC
8967   builtin and then its argument prototype would still apply.  */
8968#ifdef __cplusplus
8969extern "C"
8970#endif
8971char t_accept ();
8972int
8973main ()
8974{
8975return t_accept ();
8976  ;
8977  return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext conftest$ac_exeext
8981if { (ac_try="$ac_link"
8982case "(($ac_try" in
8983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984  *) ac_try_echo=$ac_try;;
8985esac
8986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987  (eval "$ac_link") 2>conftest.er1
8988  ac_status=$?
8989  grep -v '^ *+' conftest.er1 >conftest.err
8990  rm -f conftest.er1
8991  cat conftest.err >&5
8992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993  (exit $ac_status); } && {
8994	 test -z "$ac_c_werror_flag" ||
8995	 test ! -s conftest.err
8996       } && test -s conftest$ac_exeext &&
8997       $as_test_x conftest$ac_exeext; then
8998  ac_cv_lib_nsl_t_accept=yes
8999else
9000  echo "$as_me: failed program was:" >&5
9001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003	ac_cv_lib_nsl_t_accept=no
9004fi
9005
9006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007      conftest$ac_exeext conftest.$ac_ext
9008LIBS=$ac_check_lib_save_LIBS
9009fi
9010{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_accept" >&5
9011echo "${ECHO_T}$ac_cv_lib_nsl_t_accept" >&6; }
9012if test $ac_cv_lib_nsl_t_accept = yes; then
9013  NETWORK_LIBS="$NETWORK_LIBS -lnsl"
9014fi
9015
9016{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9017echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9018if test "${ac_cv_lib_socket_socket+set}" = set; then
9019  echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021  ac_check_lib_save_LIBS=$LIBS
9022LIBS="-lsocket  $LIBS"
9023cat >conftest.$ac_ext <<_ACEOF
9024/* confdefs.h.  */
9025_ACEOF
9026cat confdefs.h >>conftest.$ac_ext
9027cat >>conftest.$ac_ext <<_ACEOF
9028/* end confdefs.h.  */
9029
9030/* Override any GCC internal prototype to avoid an error.
9031   Use char because int might match the return type of a GCC
9032   builtin and then its argument prototype would still apply.  */
9033#ifdef __cplusplus
9034extern "C"
9035#endif
9036char socket ();
9037int
9038main ()
9039{
9040return socket ();
9041  ;
9042  return 0;
9043}
9044_ACEOF
9045rm -f conftest.$ac_objext conftest$ac_exeext
9046if { (ac_try="$ac_link"
9047case "(($ac_try" in
9048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049  *) ac_try_echo=$ac_try;;
9050esac
9051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052  (eval "$ac_link") 2>conftest.er1
9053  ac_status=$?
9054  grep -v '^ *+' conftest.er1 >conftest.err
9055  rm -f conftest.er1
9056  cat conftest.err >&5
9057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058  (exit $ac_status); } && {
9059	 test -z "$ac_c_werror_flag" ||
9060	 test ! -s conftest.err
9061       } && test -s conftest$ac_exeext &&
9062       $as_test_x conftest$ac_exeext; then
9063  ac_cv_lib_socket_socket=yes
9064else
9065  echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
9068	ac_cv_lib_socket_socket=no
9069fi
9070
9071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9072      conftest$ac_exeext conftest.$ac_ext
9073LIBS=$ac_check_lib_save_LIBS
9074fi
9075{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9076echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9077if test $ac_cv_lib_socket_socket = yes; then
9078  NETWORK_LIBS="$NETWORK_LIBS -lsocket"
9079fi
9080
9081{ echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
9082echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6; }
9083if test "${ac_cv_lib_resolv_res_init+set}" = set; then
9084  echo $ECHO_N "(cached) $ECHO_C" >&6
9085else
9086  ac_check_lib_save_LIBS=$LIBS
9087LIBS="-lresolv  $LIBS"
9088cat >conftest.$ac_ext <<_ACEOF
9089/* confdefs.h.  */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h.  */
9094
9095/* Override any GCC internal prototype to avoid an error.
9096   Use char because int might match the return type of a GCC
9097   builtin and then its argument prototype would still apply.  */
9098#ifdef __cplusplus
9099extern "C"
9100#endif
9101char res_init ();
9102int
9103main ()
9104{
9105return res_init ();
9106  ;
9107  return 0;
9108}
9109_ACEOF
9110rm -f conftest.$ac_objext conftest$ac_exeext
9111if { (ac_try="$ac_link"
9112case "(($ac_try" in
9113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114  *) ac_try_echo=$ac_try;;
9115esac
9116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117  (eval "$ac_link") 2>conftest.er1
9118  ac_status=$?
9119  grep -v '^ *+' conftest.er1 >conftest.err
9120  rm -f conftest.er1
9121  cat conftest.err >&5
9122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123  (exit $ac_status); } && {
9124	 test -z "$ac_c_werror_flag" ||
9125	 test ! -s conftest.err
9126       } && test -s conftest$ac_exeext &&
9127       $as_test_x conftest$ac_exeext; then
9128  ac_cv_lib_resolv_res_init=yes
9129else
9130  echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133	ac_cv_lib_resolv_res_init=no
9134fi
9135
9136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9137      conftest$ac_exeext conftest.$ac_ext
9138LIBS=$ac_check_lib_save_LIBS
9139fi
9140{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
9141echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6; }
9142if test $ac_cv_lib_resolv_res_init = yes; then
9143  NETWORK_LIBS="$NETWORK_LIBS -lresolv"
9144fi
9145
9146{ echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9147echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
9148if test "${ac_cv_lib_mail_maillock+set}" = set; then
9149  echo $ECHO_N "(cached) $ECHO_C" >&6
9150else
9151  ac_check_lib_save_LIBS=$LIBS
9152LIBS="-lmail  $LIBS"
9153cat >conftest.$ac_ext <<_ACEOF
9154/* confdefs.h.  */
9155_ACEOF
9156cat confdefs.h >>conftest.$ac_ext
9157cat >>conftest.$ac_ext <<_ACEOF
9158/* end confdefs.h.  */
9159
9160/* Override any GCC internal prototype to avoid an error.
9161   Use char because int might match the return type of a GCC
9162   builtin and then its argument prototype would still apply.  */
9163#ifdef __cplusplus
9164extern "C"
9165#endif
9166char maillock ();
9167int
9168main ()
9169{
9170return maillock ();
9171  ;
9172  return 0;
9173}
9174_ACEOF
9175rm -f conftest.$ac_objext conftest$ac_exeext
9176if { (ac_try="$ac_link"
9177case "(($ac_try" in
9178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179  *) ac_try_echo=$ac_try;;
9180esac
9181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182  (eval "$ac_link") 2>conftest.er1
9183  ac_status=$?
9184  grep -v '^ *+' conftest.er1 >conftest.err
9185  rm -f conftest.er1
9186  cat conftest.err >&5
9187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188  (exit $ac_status); } && {
9189	 test -z "$ac_c_werror_flag" ||
9190	 test ! -s conftest.err
9191       } && test -s conftest$ac_exeext &&
9192       $as_test_x conftest$ac_exeext; then
9193  ac_cv_lib_mail_maillock=yes
9194else
9195  echo "$as_me: failed program was:" >&5
9196sed 's/^/| /' conftest.$ac_ext >&5
9197
9198	ac_cv_lib_mail_maillock=no
9199fi
9200
9201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9202      conftest$ac_exeext conftest.$ac_ext
9203LIBS=$ac_check_lib_save_LIBS
9204fi
9205{ echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9206echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
9207if test $ac_cv_lib_mail_maillock = yes; then
9208  NETWORK_LIBS="$NETWORK_LIBS -lmail"; cat >>confdefs.h <<\_ACEOF
9209#define SYS_MAILLOCK 1
9210_ACEOF
9211
9212fi
9213
9214{ echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
9215echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6; }
9216if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
9217  echo $ECHO_N "(cached) $ECHO_C" >&6
9218else
9219  ac_check_lib_save_LIBS=$LIBS
9220LIBS="-lkrb  $LIBS"
9221cat >conftest.$ac_ext <<_ACEOF
9222/* confdefs.h.  */
9223_ACEOF
9224cat confdefs.h >>conftest.$ac_ext
9225cat >>conftest.$ac_ext <<_ACEOF
9226/* end confdefs.h.  */
9227
9228/* Override any GCC internal prototype to avoid an error.
9229   Use char because int might match the return type of a GCC
9230   builtin and then its argument prototype would still apply.  */
9231#ifdef __cplusplus
9232extern "C"
9233#endif
9234char krb_recvauth ();
9235int
9236main ()
9237{
9238return krb_recvauth ();
9239  ;
9240  return 0;
9241}
9242_ACEOF
9243rm -f conftest.$ac_objext conftest$ac_exeext
9244if { (ac_try="$ac_link"
9245case "(($ac_try" in
9246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247  *) ac_try_echo=$ac_try;;
9248esac
9249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250  (eval "$ac_link") 2>conftest.er1
9251  ac_status=$?
9252  grep -v '^ *+' conftest.er1 >conftest.err
9253  rm -f conftest.er1
9254  cat conftest.err >&5
9255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256  (exit $ac_status); } && {
9257	 test -z "$ac_c_werror_flag" ||
9258	 test ! -s conftest.err
9259       } && test -s conftest$ac_exeext &&
9260       $as_test_x conftest$ac_exeext; then
9261  ac_cv_lib_krb_krb_recvauth=yes
9262else
9263  echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266	ac_cv_lib_krb_krb_recvauth=no
9267fi
9268
9269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9270      conftest$ac_exeext conftest.$ac_ext
9271LIBS=$ac_check_lib_save_LIBS
9272fi
9273{ echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
9274echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6; }
9275if test $ac_cv_lib_krb_krb_recvauth = yes; then
9276  KERBEROS_LIBS="$KERBEROS_LIBS -lkrb"
9277fi
9278
9279{ echo "$as_me:$LINENO: checking for clock_gettime in -lposix4" >&5
9280echo $ECHO_N "checking for clock_gettime in -lposix4... $ECHO_C" >&6; }
9281if test "${ac_cv_lib_posix4_clock_gettime+set}" = set; then
9282  echo $ECHO_N "(cached) $ECHO_C" >&6
9283else
9284  ac_check_lib_save_LIBS=$LIBS
9285LIBS="-lposix4  $LIBS"
9286cat >conftest.$ac_ext <<_ACEOF
9287/* confdefs.h.  */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h.  */
9292
9293/* Override any GCC internal prototype to avoid an error.
9294   Use char because int might match the return type of a GCC
9295   builtin and then its argument prototype would still apply.  */
9296#ifdef __cplusplus
9297extern "C"
9298#endif
9299char clock_gettime ();
9300int
9301main ()
9302{
9303return clock_gettime ();
9304  ;
9305  return 0;
9306}
9307_ACEOF
9308rm -f conftest.$ac_objext conftest$ac_exeext
9309if { (ac_try="$ac_link"
9310case "(($ac_try" in
9311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312  *) ac_try_echo=$ac_try;;
9313esac
9314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315  (eval "$ac_link") 2>conftest.er1
9316  ac_status=$?
9317  grep -v '^ *+' conftest.er1 >conftest.err
9318  rm -f conftest.er1
9319  cat conftest.err >&5
9320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321  (exit $ac_status); } && {
9322	 test -z "$ac_c_werror_flag" ||
9323	 test ! -s conftest.err
9324       } && test -s conftest$ac_exeext &&
9325       $as_test_x conftest$ac_exeext; then
9326  ac_cv_lib_posix4_clock_gettime=yes
9327else
9328  echo "$as_me: failed program was:" >&5
9329sed 's/^/| /' conftest.$ac_ext >&5
9330
9331	ac_cv_lib_posix4_clock_gettime=no
9332fi
9333
9334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335      conftest$ac_exeext conftest.$ac_ext
9336LIBS=$ac_check_lib_save_LIBS
9337fi
9338{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_clock_gettime" >&5
9339echo "${ECHO_T}$ac_cv_lib_posix4_clock_gettime" >&6; }
9340if test $ac_cv_lib_posix4_clock_gettime = yes; then
9341  LIBS="$LIBS -lposix4"; cat >>confdefs.h <<\_ACEOF
9342#define HAVE_CLOCK_GETTIME 1
9343_ACEOF
9344
9345fi
9346
9347{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9348echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
9349if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9350  echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352  ac_check_lib_save_LIBS=$LIBS
9353LIBS="-lcrypt  $LIBS"
9354cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h.  */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h.  */
9360
9361/* Override any GCC internal prototype to avoid an error.
9362   Use char because int might match the return type of a GCC
9363   builtin and then its argument prototype would still apply.  */
9364#ifdef __cplusplus
9365extern "C"
9366#endif
9367char crypt ();
9368int
9369main ()
9370{
9371return crypt ();
9372  ;
9373  return 0;
9374}
9375_ACEOF
9376rm -f conftest.$ac_objext conftest$ac_exeext
9377if { (ac_try="$ac_link"
9378case "(($ac_try" in
9379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380  *) ac_try_echo=$ac_try;;
9381esac
9382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383  (eval "$ac_link") 2>conftest.er1
9384  ac_status=$?
9385  grep -v '^ *+' conftest.er1 >conftest.err
9386  rm -f conftest.er1
9387  cat conftest.err >&5
9388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389  (exit $ac_status); } && {
9390	 test -z "$ac_c_werror_flag" ||
9391	 test ! -s conftest.err
9392       } && test -s conftest$ac_exeext &&
9393       $as_test_x conftest$ac_exeext; then
9394  ac_cv_lib_crypt_crypt=yes
9395else
9396  echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
9399	ac_cv_lib_crypt_crypt=no
9400fi
9401
9402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403      conftest$ac_exeext conftest.$ac_ext
9404LIBS=$ac_check_lib_save_LIBS
9405fi
9406{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9407echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
9408if test $ac_cv_lib_crypt_crypt = yes; then
9409  LIBS="$LIBS -lcrypt"
9410fi
9411
9412{ echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
9413echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6; }
9414if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
9415  echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417  ac_check_lib_save_LIBS=$LIBS
9418LIBS="-lsecurity  $LIBS"
9419cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h.  */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h.  */
9425
9426/* Override any GCC internal prototype to avoid an error.
9427   Use char because int might match the return type of a GCC
9428   builtin and then its argument prototype would still apply.  */
9429#ifdef __cplusplus
9430extern "C"
9431#endif
9432char set_auth_parameters ();
9433int
9434main ()
9435{
9436return set_auth_parameters ();
9437  ;
9438  return 0;
9439}
9440_ACEOF
9441rm -f conftest.$ac_objext conftest$ac_exeext
9442if { (ac_try="$ac_link"
9443case "(($ac_try" in
9444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445  *) ac_try_echo=$ac_try;;
9446esac
9447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448  (eval "$ac_link") 2>conftest.er1
9449  ac_status=$?
9450  grep -v '^ *+' conftest.er1 >conftest.err
9451  rm -f conftest.er1
9452  cat conftest.err >&5
9453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454  (exit $ac_status); } && {
9455	 test -z "$ac_c_werror_flag" ||
9456	 test ! -s conftest.err
9457       } && test -s conftest$ac_exeext &&
9458       $as_test_x conftest$ac_exeext; then
9459  ac_cv_lib_security_set_auth_parameters=yes
9460else
9461  echo "$as_me: failed program was:" >&5
9462sed 's/^/| /' conftest.$ac_ext >&5
9463
9464	ac_cv_lib_security_set_auth_parameters=no
9465fi
9466
9467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9468      conftest$ac_exeext conftest.$ac_ext
9469LIBS=$ac_check_lib_save_LIBS
9470fi
9471{ echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
9472echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6; }
9473if test $ac_cv_lib_security_set_auth_parameters = yes; then
9474  LIBS="$LIBS -lsecurity"
9475fi
9476
9477
9478{ echo "$as_me:$LINENO: result: \"(use_pam is $use_pam)\"" >&5
9479echo "${ECHO_T}\"(use_pam is $use_pam)\"" >&6; }
9480if test "$use_pam" != "no" -a "$use_pam" != "_default_"; then
9481    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9482echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9483if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9484  echo $ECHO_N "(cached) $ECHO_C" >&6
9485else
9486  ac_check_lib_save_LIBS=$LIBS
9487LIBS="-ldl  $LIBS"
9488cat >conftest.$ac_ext <<_ACEOF
9489/* confdefs.h.  */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h.  */
9494
9495/* Override any GCC internal prototype to avoid an error.
9496   Use char because int might match the return type of a GCC
9497   builtin and then its argument prototype would still apply.  */
9498#ifdef __cplusplus
9499extern "C"
9500#endif
9501char dlopen ();
9502int
9503main ()
9504{
9505return dlopen ();
9506  ;
9507  return 0;
9508}
9509_ACEOF
9510rm -f conftest.$ac_objext conftest$ac_exeext
9511if { (ac_try="$ac_link"
9512case "(($ac_try" in
9513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514  *) ac_try_echo=$ac_try;;
9515esac
9516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517  (eval "$ac_link") 2>conftest.er1
9518  ac_status=$?
9519  grep -v '^ *+' conftest.er1 >conftest.err
9520  rm -f conftest.er1
9521  cat conftest.err >&5
9522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523  (exit $ac_status); } && {
9524	 test -z "$ac_c_werror_flag" ||
9525	 test ! -s conftest.err
9526       } && test -s conftest$ac_exeext &&
9527       $as_test_x conftest$ac_exeext; then
9528  ac_cv_lib_dl_dlopen=yes
9529else
9530  echo "$as_me: failed program was:" >&5
9531sed 's/^/| /' conftest.$ac_ext >&5
9532
9533	ac_cv_lib_dl_dlopen=no
9534fi
9535
9536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9537      conftest$ac_exeext conftest.$ac_ext
9538LIBS=$ac_check_lib_save_LIBS
9539fi
9540{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9541echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9542if test $ac_cv_lib_dl_dlopen = yes; then
9543  LIBS="$LIBS -ldl"
9544fi
9545
9546    { echo "$as_me:$LINENO: checking for pam_authenticate in -lpam" >&5
9547echo $ECHO_N "checking for pam_authenticate in -lpam... $ECHO_C" >&6; }
9548if test "${ac_cv_lib_pam_pam_authenticate+set}" = set; then
9549  echo $ECHO_N "(cached) $ECHO_C" >&6
9550else
9551  ac_check_lib_save_LIBS=$LIBS
9552LIBS="-lpam  $LIBS"
9553cat >conftest.$ac_ext <<_ACEOF
9554/* confdefs.h.  */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h.  */
9559
9560/* Override any GCC internal prototype to avoid an error.
9561   Use char because int might match the return type of a GCC
9562   builtin and then its argument prototype would still apply.  */
9563#ifdef __cplusplus
9564extern "C"
9565#endif
9566char pam_authenticate ();
9567int
9568main ()
9569{
9570return pam_authenticate ();
9571  ;
9572  return 0;
9573}
9574_ACEOF
9575rm -f conftest.$ac_objext conftest$ac_exeext
9576if { (ac_try="$ac_link"
9577case "(($ac_try" in
9578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579  *) ac_try_echo=$ac_try;;
9580esac
9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582  (eval "$ac_link") 2>conftest.er1
9583  ac_status=$?
9584  grep -v '^ *+' conftest.er1 >conftest.err
9585  rm -f conftest.er1
9586  cat conftest.err >&5
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); } && {
9589	 test -z "$ac_c_werror_flag" ||
9590	 test ! -s conftest.err
9591       } && test -s conftest$ac_exeext &&
9592       $as_test_x conftest$ac_exeext; then
9593  ac_cv_lib_pam_pam_authenticate=yes
9594else
9595  echo "$as_me: failed program was:" >&5
9596sed 's/^/| /' conftest.$ac_ext >&5
9597
9598	ac_cv_lib_pam_pam_authenticate=no
9599fi
9600
9601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9602      conftest$ac_exeext conftest.$ac_ext
9603LIBS=$ac_check_lib_save_LIBS
9604fi
9605{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_authenticate" >&5
9606echo "${ECHO_T}$ac_cv_lib_pam_pam_authenticate" >&6; }
9607if test $ac_cv_lib_pam_pam_authenticate = yes; then
9608  LIBS="$LIBS -lpam"
9609else
9610  { echo "$as_me:$LINENO: result: Can't use PAM: can't find libpam" >&5
9611echo "${ECHO_T}Can't use PAM: can't find libpam" >&6; };exit 1
9612fi
9613
9614fi
9615
9616if test "$dracauth" != "no"; then
9617
9618{ echo "$as_me:$LINENO: checking for dracauth in -ldrac" >&5
9619echo $ECHO_N "checking for dracauth in -ldrac... $ECHO_C" >&6; }
9620if test "${ac_cv_lib_drac_dracauth+set}" = set; then
9621  echo $ECHO_N "(cached) $ECHO_C" >&6
9622else
9623  ac_check_lib_save_LIBS=$LIBS
9624LIBS="-ldrac  $LIBS"
9625cat >conftest.$ac_ext <<_ACEOF
9626/* confdefs.h.  */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h.  */
9631
9632/* Override any GCC internal prototype to avoid an error.
9633   Use char because int might match the return type of a GCC
9634   builtin and then its argument prototype would still apply.  */
9635#ifdef __cplusplus
9636extern "C"
9637#endif
9638char dracauth ();
9639int
9640main ()
9641{
9642return dracauth ();
9643  ;
9644  return 0;
9645}
9646_ACEOF
9647rm -f conftest.$ac_objext conftest$ac_exeext
9648if { (ac_try="$ac_link"
9649case "(($ac_try" in
9650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651  *) ac_try_echo=$ac_try;;
9652esac
9653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654  (eval "$ac_link") 2>conftest.er1
9655  ac_status=$?
9656  grep -v '^ *+' conftest.er1 >conftest.err
9657  rm -f conftest.er1
9658  cat conftest.err >&5
9659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660  (exit $ac_status); } && {
9661	 test -z "$ac_c_werror_flag" ||
9662	 test ! -s conftest.err
9663       } && test -s conftest$ac_exeext &&
9664       $as_test_x conftest$ac_exeext; then
9665  ac_cv_lib_drac_dracauth=yes
9666else
9667  echo "$as_me: failed program was:" >&5
9668sed 's/^/| /' conftest.$ac_ext >&5
9669
9670	ac_cv_lib_drac_dracauth=no
9671fi
9672
9673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674      conftest$ac_exeext conftest.$ac_ext
9675LIBS=$ac_check_lib_save_LIBS
9676fi
9677{ echo "$as_me:$LINENO: result: $ac_cv_lib_drac_dracauth" >&5
9678echo "${ECHO_T}$ac_cv_lib_drac_dracauth" >&6; }
9679if test $ac_cv_lib_drac_dracauth = yes; then
9680  cat >>confdefs.h <<_ACEOF
9681#define HAVE_LIBDRAC 1
9682_ACEOF
9683
9684  LIBS="-ldrac $LIBS"
9685
9686else
9687  { echo "$as_me:$LINENO: result: Can't use DRAC: dracauth not found in -ldrac" >&5
9688echo "${ECHO_T}Can't use DRAC: dracauth not found in -ldrac" >&6; };exit 1
9689fi
9690
9691fi
9692
9693
9694if test "$need_db" = "yes"; then
9695    { echo "$as_me:$LINENO: checking which database manager to use " >&5
9696echo $ECHO_N "checking which database manager to use ... $ECHO_C" >&6; }
9697
9698    if test "$use_gdbm" != "no"; then
9699        { echo "$as_me:$LINENO: checking gdbm " >&5
9700echo $ECHO_N "checking gdbm ... $ECHO_C" >&6; }
9701        { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
9702echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
9703if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
9704  echo $ECHO_N "(cached) $ECHO_C" >&6
9705else
9706  ac_check_lib_save_LIBS=$LIBS
9707LIBS="-lgdbm  $LIBS"
9708cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h.  */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h.  */
9714
9715/* Override any GCC internal prototype to avoid an error.
9716   Use char because int might match the return type of a GCC
9717   builtin and then its argument prototype would still apply.  */
9718#ifdef __cplusplus
9719extern "C"
9720#endif
9721char gdbm_open ();
9722int
9723main ()
9724{
9725return gdbm_open ();
9726  ;
9727  return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
9731if { (ac_try="$ac_link"
9732case "(($ac_try" in
9733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734  *) ac_try_echo=$ac_try;;
9735esac
9736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737  (eval "$ac_link") 2>conftest.er1
9738  ac_status=$?
9739  grep -v '^ *+' conftest.er1 >conftest.err
9740  rm -f conftest.er1
9741  cat conftest.err >&5
9742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743  (exit $ac_status); } && {
9744	 test -z "$ac_c_werror_flag" ||
9745	 test ! -s conftest.err
9746       } && test -s conftest$ac_exeext &&
9747       $as_test_x conftest$ac_exeext; then
9748  ac_cv_lib_gdbm_gdbm_open=yes
9749else
9750  echo "$as_me: failed program was:" >&5
9751sed 's/^/| /' conftest.$ac_ext >&5
9752
9753	ac_cv_lib_gdbm_gdbm_open=no
9754fi
9755
9756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9757      conftest$ac_exeext conftest.$ac_ext
9758LIBS=$ac_check_lib_save_LIBS
9759fi
9760{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
9761echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
9762if test $ac_cv_lib_gdbm_gdbm_open = yes; then
9763  GDBM_LIB="yes"
9764else
9765  GDBM_LIB="no"
9766fi
9767
9768        if test "$GDBM_H" = "yes" -a "$GDBM_LIB" = "yes"; then
9769            DBM_LIBS="-lgdbm"
9770            { echo "$as_me:$LINENO: result: found gdbm " >&5
9771echo "${ECHO_T}found gdbm " >&6; }
9772            cat >>confdefs.h <<\_ACEOF
9773#define GDBM 1
9774_ACEOF
9775
9776        elif test "$GDBM_H" = "yes" -a "$GDBM_LIB" = "no"; then
9777            { echo "$as_me:$LINENO: result: found gdbm header file but not library " >&5
9778echo "${ECHO_T}found gdbm header file but not library " >&6; }
9779        elif test "$GDBM_H" = "no" -a "$GDBM_LIB" = "yes"; then
9780            { echo "$as_me:$LINENO: result: found gdbm library but not header file " >&5
9781echo "${ECHO_T}found gdbm library but not header file " >&6; }
9782        else
9783            { echo "$as_me:$LINENO: result: didn't find gdbm " >&5
9784echo "${ECHO_T}didn't find gdbm " >&6; }
9785        fi
9786    fi
9787
9788    if test -z "$DBM_LIBS"; then
9789        { echo "$as_me:$LINENO: checking ndbm " >&5
9790echo $ECHO_N "checking ndbm ... $ECHO_C" >&6; }
9791        { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
9792echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
9793if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
9794  echo $ECHO_N "(cached) $ECHO_C" >&6
9795else
9796  ac_check_lib_save_LIBS=$LIBS
9797LIBS="-lndbm  $LIBS"
9798cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h.  */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h.  */
9804
9805/* Override any GCC internal prototype to avoid an error.
9806   Use char because int might match the return type of a GCC
9807   builtin and then its argument prototype would still apply.  */
9808#ifdef __cplusplus
9809extern "C"
9810#endif
9811char dbm_open ();
9812int
9813main ()
9814{
9815return dbm_open ();
9816  ;
9817  return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext conftest$ac_exeext
9821if { (ac_try="$ac_link"
9822case "(($ac_try" in
9823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824  *) ac_try_echo=$ac_try;;
9825esac
9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827  (eval "$ac_link") 2>conftest.er1
9828  ac_status=$?
9829  grep -v '^ *+' conftest.er1 >conftest.err
9830  rm -f conftest.er1
9831  cat conftest.err >&5
9832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833  (exit $ac_status); } && {
9834	 test -z "$ac_c_werror_flag" ||
9835	 test ! -s conftest.err
9836       } && test -s conftest$ac_exeext &&
9837       $as_test_x conftest$ac_exeext; then
9838  ac_cv_lib_ndbm_dbm_open=yes
9839else
9840  echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
9842
9843	ac_cv_lib_ndbm_dbm_open=no
9844fi
9845
9846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9847      conftest$ac_exeext conftest.$ac_ext
9848LIBS=$ac_check_lib_save_LIBS
9849fi
9850{ echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
9851echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
9852if test $ac_cv_lib_ndbm_dbm_open = yes; then
9853  NDBM_LIB="yes"
9854else
9855  NDBM_LIB="no"
9856fi
9857
9858        if test "$NDBM_H" = "yes" -a "$NDBM_LIB" = "yes"; then
9859            DBM_LIBS="-lndbm"
9860            { echo "$as_me:$LINENO: result: found ndbm " >&5
9861echo "${ECHO_T}found ndbm " >&6; }
9862            cat >>confdefs.h <<\_ACEOF
9863#define NDBM 1
9864_ACEOF
9865
9866        elif test "$NDBM_H" = "yes" -a "$NDBM_LIB" = "no"; then
9867            { echo "$as_me:$LINENO: result: found ndbm header file but not library " >&5
9868echo "${ECHO_T}found ndbm header file but not library " >&6; }
9869        elif test "$NDBM_H" = "no" -a "$NDBM_LIB" = "yes"; then
9870            { echo "$as_me:$LINENO: result: found ndbm library but not header file " >&5
9871echo "${ECHO_T}found ndbm library but not header file " >&6; }
9872        else
9873            { echo "$as_me:$LINENO: result: didn't find ndbm " >&5
9874echo "${ECHO_T}didn't find ndbm " >&6; }
9875        fi
9876
9877        { echo "$as_me:$LINENO: checking if BSD DBM" >&5
9878echo $ECHO_N "checking if BSD DBM... $ECHO_C" >&6; }
9879        cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h.  */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h.  */
9885#include <ndbm.h>
9886#ifdef DBM_SUFFIX
9887                        yes_it_is
9888#endif
9889
9890_ACEOF
9891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9892  $EGREP "yes" >/dev/null 2>&1; then
9893  { echo "$as_me:$LINENO: result: yes" >&5
9894echo "${ECHO_T}yes" >&6; };cat >>confdefs.h <<\_ACEOF
9895#define BSD44_DBM 1
9896_ACEOF
9897
9898else
9899  { echo "$as_me:$LINENO: result: no" >&5
9900echo "${ECHO_T}no" >&6; }
9901fi
9902rm -f conftest*
9903
9904    fi
9905    if test -z "$DBM_LIBS"; then
9906        { echo "$as_me:$LINENO: checking dbm " >&5
9907echo $ECHO_N "checking dbm ... $ECHO_C" >&6; }
9908        { echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
9909echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6; }
9910if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
9911  echo $ECHO_N "(cached) $ECHO_C" >&6
9912else
9913  ac_check_lib_save_LIBS=$LIBS
9914LIBS="-ldbm  $LIBS"
9915cat >conftest.$ac_ext <<_ACEOF
9916/* confdefs.h.  */
9917_ACEOF
9918cat confdefs.h >>conftest.$ac_ext
9919cat >>conftest.$ac_ext <<_ACEOF
9920/* end confdefs.h.  */
9921
9922/* Override any GCC internal prototype to avoid an error.
9923   Use char because int might match the return type of a GCC
9924   builtin and then its argument prototype would still apply.  */
9925#ifdef __cplusplus
9926extern "C"
9927#endif
9928char dbm_open ();
9929int
9930main ()
9931{
9932return dbm_open ();
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937rm -f conftest.$ac_objext conftest$ac_exeext
9938if { (ac_try="$ac_link"
9939case "(($ac_try" in
9940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941  *) ac_try_echo=$ac_try;;
9942esac
9943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944  (eval "$ac_link") 2>conftest.er1
9945  ac_status=$?
9946  grep -v '^ *+' conftest.er1 >conftest.err
9947  rm -f conftest.er1
9948  cat conftest.err >&5
9949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950  (exit $ac_status); } && {
9951	 test -z "$ac_c_werror_flag" ||
9952	 test ! -s conftest.err
9953       } && test -s conftest$ac_exeext &&
9954       $as_test_x conftest$ac_exeext; then
9955  ac_cv_lib_dbm_dbm_open=yes
9956else
9957  echo "$as_me: failed program was:" >&5
9958sed 's/^/| /' conftest.$ac_ext >&5
9959
9960	ac_cv_lib_dbm_dbm_open=no
9961fi
9962
9963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9964      conftest$ac_exeext conftest.$ac_ext
9965LIBS=$ac_check_lib_save_LIBS
9966fi
9967{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
9968echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6; }
9969if test $ac_cv_lib_dbm_dbm_open = yes; then
9970  DBM_LIB="yes"
9971else
9972  DBM_LIB="no"
9973fi
9974
9975        if test "$DBM_H" = "yes" -a "$DBM_LIB" = "yes"; then
9976            DBM_LIBS="-ldbm"
9977            { echo "$as_me:$LINENO: result: found dbm " >&5
9978echo "${ECHO_T}found dbm " >&6; }
9979        elif test "$DBM_H" = "yes" -a "$DBM_LIB" = "no"; then
9980            { echo "$as_me:$LINENO: result: found dbm header file but not library " >&5
9981echo "${ECHO_T}found dbm header file but not library " >&6; }
9982        elif test "$DBM_H" = "no" -a "$DBM_LIB" = "yes"; then
9983            { echo "$as_me:$LINENO: result: found dbm library but not header file " >&5
9984echo "${ECHO_T}found dbm library but not header file " >&6; }
9985        else
9986            { echo "$as_me:$LINENO: result: didn't find dbm " >&5
9987echo "${ECHO_T}didn't find dbm " >&6; }
9988        fi
9989    fi
9990fi
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10003echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10004if test "${ac_cv_c_const+set}" = set; then
10005  echo $ECHO_N "(cached) $ECHO_C" >&6
10006else
10007  cat >conftest.$ac_ext <<_ACEOF
10008/* confdefs.h.  */
10009_ACEOF
10010cat confdefs.h >>conftest.$ac_ext
10011cat >>conftest.$ac_ext <<_ACEOF
10012/* end confdefs.h.  */
10013
10014int
10015main ()
10016{
10017/* FIXME: Include the comments suggested by Paul. */
10018#ifndef __cplusplus
10019  /* Ultrix mips cc rejects this.  */
10020  typedef int charset[2];
10021  const charset cs;
10022  /* SunOS 4.1.1 cc rejects this.  */
10023  char const *const *pcpcc;
10024  char **ppc;
10025  /* NEC SVR4.0.2 mips cc rejects this.  */
10026  struct point {int x, y;};
10027  static struct point const zero = {0,0};
10028  /* AIX XL C 1.02.0.0 rejects this.
10029     It does not let you subtract one const X* pointer from another in
10030     an arm of an if-expression whose if-part is not a constant
10031     expression */
10032  const char *g = "string";
10033  pcpcc = &g + (g ? g-g : 0);
10034  /* HPUX 7.0 cc rejects these. */
10035  ++pcpcc;
10036  ppc = (char**) pcpcc;
10037  pcpcc = (char const *const *) ppc;
10038  { /* SCO 3.2v4 cc rejects this.  */
10039    char *t;
10040    char const *s = 0 ? (char *) 0 : (char const *) 0;
10041
10042    *t++ = 0;
10043    if (s) return 0;
10044  }
10045  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10046    int x[] = {25, 17};
10047    const int *foo = &x[0];
10048    ++foo;
10049  }
10050  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10051    typedef const int *iptr;
10052    iptr p = 0;
10053    ++p;
10054  }
10055  { /* AIX XL C 1.02.0.0 rejects this saying
10056       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10057    struct s { int j; const int *ap[3]; };
10058    struct s *b; b->j = 5;
10059  }
10060  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10061    const int foo = 10;
10062    if (!foo) return 0;
10063  }
10064  return !cs[0] && !zero.x;
10065#endif
10066
10067  ;
10068  return 0;
10069}
10070_ACEOF
10071rm -f conftest.$ac_objext
10072if { (ac_try="$ac_compile"
10073case "(($ac_try" in
10074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075  *) ac_try_echo=$ac_try;;
10076esac
10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078  (eval "$ac_compile") 2>conftest.er1
10079  ac_status=$?
10080  grep -v '^ *+' conftest.er1 >conftest.err
10081  rm -f conftest.er1
10082  cat conftest.err >&5
10083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084  (exit $ac_status); } && {
10085	 test -z "$ac_c_werror_flag" ||
10086	 test ! -s conftest.err
10087       } && test -s conftest.$ac_objext; then
10088  ac_cv_c_const=yes
10089else
10090  echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
10092
10093	ac_cv_c_const=no
10094fi
10095
10096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097fi
10098{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10099echo "${ECHO_T}$ac_cv_c_const" >&6; }
10100if test $ac_cv_c_const = no; then
10101
10102cat >>confdefs.h <<\_ACEOF
10103#define const
10104_ACEOF
10105
10106fi
10107
10108{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10109echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10110if test "${ac_cv_type_uid_t+set}" = set; then
10111  echo $ECHO_N "(cached) $ECHO_C" >&6
10112else
10113  cat >conftest.$ac_ext <<_ACEOF
10114/* confdefs.h.  */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
10118/* end confdefs.h.  */
10119#include <sys/types.h>
10120
10121_ACEOF
10122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10123  $EGREP "uid_t" >/dev/null 2>&1; then
10124  ac_cv_type_uid_t=yes
10125else
10126  ac_cv_type_uid_t=no
10127fi
10128rm -f conftest*
10129
10130fi
10131{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10132echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10133if test $ac_cv_type_uid_t = no; then
10134
10135cat >>confdefs.h <<\_ACEOF
10136#define uid_t int
10137_ACEOF
10138
10139
10140cat >>confdefs.h <<\_ACEOF
10141#define gid_t int
10142_ACEOF
10143
10144fi
10145
10146{ echo "$as_me:$LINENO: checking for mode_t" >&5
10147echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
10148if test "${ac_cv_type_mode_t+set}" = set; then
10149  echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151  cat >conftest.$ac_ext <<_ACEOF
10152/* confdefs.h.  */
10153_ACEOF
10154cat confdefs.h >>conftest.$ac_ext
10155cat >>conftest.$ac_ext <<_ACEOF
10156/* end confdefs.h.  */
10157$ac_includes_default
10158typedef mode_t ac__type_new_;
10159int
10160main ()
10161{
10162if ((ac__type_new_ *) 0)
10163  return 0;
10164if (sizeof (ac__type_new_))
10165  return 0;
10166  ;
10167  return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext
10171if { (ac_try="$ac_compile"
10172case "(($ac_try" in
10173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174  *) ac_try_echo=$ac_try;;
10175esac
10176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177  (eval "$ac_compile") 2>conftest.er1
10178  ac_status=$?
10179  grep -v '^ *+' conftest.er1 >conftest.err
10180  rm -f conftest.er1
10181  cat conftest.err >&5
10182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183  (exit $ac_status); } && {
10184	 test -z "$ac_c_werror_flag" ||
10185	 test ! -s conftest.err
10186       } && test -s conftest.$ac_objext; then
10187  ac_cv_type_mode_t=yes
10188else
10189  echo "$as_me: failed program was:" >&5
10190sed 's/^/| /' conftest.$ac_ext >&5
10191
10192	ac_cv_type_mode_t=no
10193fi
10194
10195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196fi
10197{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10198echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
10199if test $ac_cv_type_mode_t = yes; then
10200  :
10201else
10202
10203cat >>confdefs.h <<_ACEOF
10204#define mode_t int
10205_ACEOF
10206
10207fi
10208
10209{ echo "$as_me:$LINENO: checking for off_t" >&5
10210echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
10211if test "${ac_cv_type_off_t+set}" = set; then
10212  echo $ECHO_N "(cached) $ECHO_C" >&6
10213else
10214  cat >conftest.$ac_ext <<_ACEOF
10215/* confdefs.h.  */
10216_ACEOF
10217cat confdefs.h >>conftest.$ac_ext
10218cat >>conftest.$ac_ext <<_ACEOF
10219/* end confdefs.h.  */
10220$ac_includes_default
10221typedef off_t ac__type_new_;
10222int
10223main ()
10224{
10225if ((ac__type_new_ *) 0)
10226  return 0;
10227if (sizeof (ac__type_new_))
10228  return 0;
10229  ;
10230  return 0;
10231}
10232_ACEOF
10233rm -f conftest.$ac_objext
10234if { (ac_try="$ac_compile"
10235case "(($ac_try" in
10236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237  *) ac_try_echo=$ac_try;;
10238esac
10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240  (eval "$ac_compile") 2>conftest.er1
10241  ac_status=$?
10242  grep -v '^ *+' conftest.er1 >conftest.err
10243  rm -f conftest.er1
10244  cat conftest.err >&5
10245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246  (exit $ac_status); } && {
10247	 test -z "$ac_c_werror_flag" ||
10248	 test ! -s conftest.err
10249       } && test -s conftest.$ac_objext; then
10250  ac_cv_type_off_t=yes
10251else
10252  echo "$as_me: failed program was:" >&5
10253sed 's/^/| /' conftest.$ac_ext >&5
10254
10255	ac_cv_type_off_t=no
10256fi
10257
10258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259fi
10260{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10261echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
10262if test $ac_cv_type_off_t = yes; then
10263  :
10264else
10265
10266cat >>confdefs.h <<_ACEOF
10267#define off_t long int
10268_ACEOF
10269
10270fi
10271
10272{ echo "$as_me:$LINENO: checking for size_t" >&5
10273echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10274if test "${ac_cv_type_size_t+set}" = set; then
10275  echo $ECHO_N "(cached) $ECHO_C" >&6
10276else
10277  cat >conftest.$ac_ext <<_ACEOF
10278/* confdefs.h.  */
10279_ACEOF
10280cat confdefs.h >>conftest.$ac_ext
10281cat >>conftest.$ac_ext <<_ACEOF
10282/* end confdefs.h.  */
10283$ac_includes_default
10284typedef size_t ac__type_new_;
10285int
10286main ()
10287{
10288if ((ac__type_new_ *) 0)
10289  return 0;
10290if (sizeof (ac__type_new_))
10291  return 0;
10292  ;
10293  return 0;
10294}
10295_ACEOF
10296rm -f conftest.$ac_objext
10297if { (ac_try="$ac_compile"
10298case "(($ac_try" in
10299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300  *) ac_try_echo=$ac_try;;
10301esac
10302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303  (eval "$ac_compile") 2>conftest.er1
10304  ac_status=$?
10305  grep -v '^ *+' conftest.er1 >conftest.err
10306  rm -f conftest.er1
10307  cat conftest.err >&5
10308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); } && {
10310	 test -z "$ac_c_werror_flag" ||
10311	 test ! -s conftest.err
10312       } && test -s conftest.$ac_objext; then
10313  ac_cv_type_size_t=yes
10314else
10315  echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318	ac_cv_type_size_t=no
10319fi
10320
10321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10322fi
10323{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10324echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10325if test $ac_cv_type_size_t = yes; then
10326  :
10327else
10328
10329cat >>confdefs.h <<_ACEOF
10330#define size_t unsigned int
10331_ACEOF
10332
10333fi
10334
10335{ echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
10336echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
10337if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
10338  echo $ECHO_N "(cached) $ECHO_C" >&6
10339else
10340  cat >conftest.$ac_ext <<_ACEOF
10341/* confdefs.h.  */
10342_ACEOF
10343cat confdefs.h >>conftest.$ac_ext
10344cat >>conftest.$ac_ext <<_ACEOF
10345/* end confdefs.h.  */
10346#include <signal.h>
10347/* NetBSD declares sys_siglist in unistd.h.  */
10348#ifdef HAVE_UNISTD_H
10349# include <unistd.h>
10350#endif
10351
10352
10353int
10354main ()
10355{
10356#ifndef sys_siglist
10357  (void) sys_siglist;
10358#endif
10359
10360  ;
10361  return 0;
10362}
10363_ACEOF
10364rm -f conftest.$ac_objext
10365if { (ac_try="$ac_compile"
10366case "(($ac_try" in
10367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368  *) ac_try_echo=$ac_try;;
10369esac
10370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371  (eval "$ac_compile") 2>conftest.er1
10372  ac_status=$?
10373  grep -v '^ *+' conftest.er1 >conftest.err
10374  rm -f conftest.er1
10375  cat conftest.err >&5
10376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); } && {
10378	 test -z "$ac_c_werror_flag" ||
10379	 test ! -s conftest.err
10380       } && test -s conftest.$ac_objext; then
10381  ac_cv_have_decl_sys_siglist=yes
10382else
10383  echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386	ac_cv_have_decl_sys_siglist=no
10387fi
10388
10389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10390fi
10391{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
10392echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
10393if test $ac_cv_have_decl_sys_siglist = yes; then
10394
10395cat >>confdefs.h <<_ACEOF
10396#define HAVE_DECL_SYS_SIGLIST 1
10397_ACEOF
10398
10399
10400else
10401  cat >>confdefs.h <<_ACEOF
10402#define HAVE_DECL_SYS_SIGLIST 0
10403_ACEOF
10404
10405
10406fi
10407
10408
10409
10410{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10411echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10412if test "${ac_cv_header_time+set}" = set; then
10413  echo $ECHO_N "(cached) $ECHO_C" >&6
10414else
10415  cat >conftest.$ac_ext <<_ACEOF
10416/* confdefs.h.  */
10417_ACEOF
10418cat confdefs.h >>conftest.$ac_ext
10419cat >>conftest.$ac_ext <<_ACEOF
10420/* end confdefs.h.  */
10421#include <sys/types.h>
10422#include <sys/time.h>
10423#include <time.h>
10424
10425int
10426main ()
10427{
10428if ((struct tm *) 0)
10429return 0;
10430  ;
10431  return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext
10435if { (ac_try="$ac_compile"
10436case "(($ac_try" in
10437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438  *) ac_try_echo=$ac_try;;
10439esac
10440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441  (eval "$ac_compile") 2>conftest.er1
10442  ac_status=$?
10443  grep -v '^ *+' conftest.er1 >conftest.err
10444  rm -f conftest.er1
10445  cat conftest.err >&5
10446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447  (exit $ac_status); } && {
10448	 test -z "$ac_c_werror_flag" ||
10449	 test ! -s conftest.err
10450       } && test -s conftest.$ac_objext; then
10451  ac_cv_header_time=yes
10452else
10453  echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
10455
10456	ac_cv_header_time=no
10457fi
10458
10459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460fi
10461{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10462echo "${ECHO_T}$ac_cv_header_time" >&6; }
10463if test $ac_cv_header_time = yes; then
10464
10465cat >>confdefs.h <<\_ACEOF
10466#define TIME_WITH_SYS_TIME 1
10467_ACEOF
10468
10469fi
10470
10471{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10472echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
10473if test "${ac_cv_struct_tm+set}" = set; then
10474  echo $ECHO_N "(cached) $ECHO_C" >&6
10475else
10476  cat >conftest.$ac_ext <<_ACEOF
10477/* confdefs.h.  */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h.  */
10482#include <sys/types.h>
10483#include <time.h>
10484
10485int
10486main ()
10487{
10488struct tm tm;
10489				     int *p = &tm.tm_sec;
10490 				     return !p;
10491  ;
10492  return 0;
10493}
10494_ACEOF
10495rm -f conftest.$ac_objext
10496if { (ac_try="$ac_compile"
10497case "(($ac_try" in
10498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499  *) ac_try_echo=$ac_try;;
10500esac
10501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502  (eval "$ac_compile") 2>conftest.er1
10503  ac_status=$?
10504  grep -v '^ *+' conftest.er1 >conftest.err
10505  rm -f conftest.er1
10506  cat conftest.err >&5
10507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508  (exit $ac_status); } && {
10509	 test -z "$ac_c_werror_flag" ||
10510	 test ! -s conftest.err
10511       } && test -s conftest.$ac_objext; then
10512  ac_cv_struct_tm=time.h
10513else
10514  echo "$as_me: failed program was:" >&5
10515sed 's/^/| /' conftest.$ac_ext >&5
10516
10517	ac_cv_struct_tm=sys/time.h
10518fi
10519
10520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10521fi
10522{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10523echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
10524if test $ac_cv_struct_tm = sys/time.h; then
10525
10526cat >>confdefs.h <<\_ACEOF
10527#define TM_IN_SYS_TIME 1
10528_ACEOF
10529
10530fi
10531
10532
10533
10534
10535{ echo "$as_me:$LINENO: checking for working memcmp" >&5
10536echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10537if test "${ac_cv_func_memcmp_working+set}" = set; then
10538  echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540  if test "$cross_compiling" = yes; then
10541  ac_cv_func_memcmp_working=no
10542else
10543  cat >conftest.$ac_ext <<_ACEOF
10544/* confdefs.h.  */
10545_ACEOF
10546cat confdefs.h >>conftest.$ac_ext
10547cat >>conftest.$ac_ext <<_ACEOF
10548/* end confdefs.h.  */
10549$ac_includes_default
10550int
10551main ()
10552{
10553
10554  /* Some versions of memcmp are not 8-bit clean.  */
10555  char c0 = '\100', c1 = '\200', c2 = '\201';
10556  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10557    return 1;
10558
10559  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10560     or more and with at least one buffer not starting on a 4-byte boundary.
10561     William Lewis provided this test program.   */
10562  {
10563    char foo[21];
10564    char bar[21];
10565    int i;
10566    for (i = 0; i < 4; i++)
10567      {
10568	char *a = foo + i;
10569	char *b = bar + i;
10570	strcpy (a, "--------01111111");
10571	strcpy (b, "--------10000000");
10572	if (memcmp (a, b, 16) >= 0)
10573	  return 1;
10574      }
10575    return 0;
10576  }
10577
10578  ;
10579  return 0;
10580}
10581_ACEOF
10582rm -f conftest$ac_exeext
10583if { (ac_try="$ac_link"
10584case "(($ac_try" in
10585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586  *) ac_try_echo=$ac_try;;
10587esac
10588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589  (eval "$ac_link") 2>&5
10590  ac_status=$?
10591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10593  { (case "(($ac_try" in
10594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595  *) ac_try_echo=$ac_try;;
10596esac
10597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598  (eval "$ac_try") 2>&5
10599  ac_status=$?
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); }; }; then
10602  ac_cv_func_memcmp_working=yes
10603else
10604  echo "$as_me: program exited with status $ac_status" >&5
10605echo "$as_me: failed program was:" >&5
10606sed 's/^/| /' conftest.$ac_ext >&5
10607
10608( exit $ac_status )
10609ac_cv_func_memcmp_working=no
10610fi
10611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10612fi
10613
10614
10615fi
10616{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10617echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10618test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10619  *" memcmp.$ac_objext "* ) ;;
10620  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10621 ;;
10622esac
10623
10624
10625{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10626echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10627if test "${ac_cv_type_signal+set}" = set; then
10628  echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630  cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h.  */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h.  */
10636#include <sys/types.h>
10637#include <signal.h>
10638
10639int
10640main ()
10641{
10642return *(signal (0, 0)) (0) == 1;
10643  ;
10644  return 0;
10645}
10646_ACEOF
10647rm -f conftest.$ac_objext
10648if { (ac_try="$ac_compile"
10649case "(($ac_try" in
10650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651  *) ac_try_echo=$ac_try;;
10652esac
10653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654  (eval "$ac_compile") 2>conftest.er1
10655  ac_status=$?
10656  grep -v '^ *+' conftest.er1 >conftest.err
10657  rm -f conftest.er1
10658  cat conftest.err >&5
10659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660  (exit $ac_status); } && {
10661	 test -z "$ac_c_werror_flag" ||
10662	 test ! -s conftest.err
10663       } && test -s conftest.$ac_objext; then
10664  ac_cv_type_signal=int
10665else
10666  echo "$as_me: failed program was:" >&5
10667sed 's/^/| /' conftest.$ac_ext >&5
10668
10669	ac_cv_type_signal=void
10670fi
10671
10672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673fi
10674{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10675echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10676
10677cat >>confdefs.h <<_ACEOF
10678#define RETSIGTYPE $ac_cv_type_signal
10679_ACEOF
10680
10681
10682
10683
10684
10685
10686for ac_header in $ac_header_list
10687do
10688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10690  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10693  echo $ECHO_N "(cached) $ECHO_C" >&6
10694fi
10695ac_res=`eval echo '${'$as_ac_Header'}'`
10696	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10697echo "${ECHO_T}$ac_res" >&6; }
10698else
10699  # Is the header compilable?
10700{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10702cat >conftest.$ac_ext <<_ACEOF
10703/* confdefs.h.  */
10704_ACEOF
10705cat confdefs.h >>conftest.$ac_ext
10706cat >>conftest.$ac_ext <<_ACEOF
10707/* end confdefs.h.  */
10708$ac_includes_default
10709#include <$ac_header>
10710_ACEOF
10711rm -f conftest.$ac_objext
10712if { (ac_try="$ac_compile"
10713case "(($ac_try" in
10714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715  *) ac_try_echo=$ac_try;;
10716esac
10717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718  (eval "$ac_compile") 2>conftest.er1
10719  ac_status=$?
10720  grep -v '^ *+' conftest.er1 >conftest.err
10721  rm -f conftest.er1
10722  cat conftest.err >&5
10723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724  (exit $ac_status); } && {
10725	 test -z "$ac_c_werror_flag" ||
10726	 test ! -s conftest.err
10727       } && test -s conftest.$ac_objext; then
10728  ac_header_compiler=yes
10729else
10730  echo "$as_me: failed program was:" >&5
10731sed 's/^/| /' conftest.$ac_ext >&5
10732
10733	ac_header_compiler=no
10734fi
10735
10736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10738echo "${ECHO_T}$ac_header_compiler" >&6; }
10739
10740# Is the header present?
10741{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10743cat >conftest.$ac_ext <<_ACEOF
10744/* confdefs.h.  */
10745_ACEOF
10746cat confdefs.h >>conftest.$ac_ext
10747cat >>conftest.$ac_ext <<_ACEOF
10748/* end confdefs.h.  */
10749#include <$ac_header>
10750_ACEOF
10751if { (ac_try="$ac_cpp conftest.$ac_ext"
10752case "(($ac_try" in
10753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754  *) ac_try_echo=$ac_try;;
10755esac
10756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10757  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10758  ac_status=$?
10759  grep -v '^ *+' conftest.er1 >conftest.err
10760  rm -f conftest.er1
10761  cat conftest.err >&5
10762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); } >/dev/null && {
10764	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10765	 test ! -s conftest.err
10766       }; then
10767  ac_header_preproc=yes
10768else
10769  echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772  ac_header_preproc=no
10773fi
10774
10775rm -f conftest.err conftest.$ac_ext
10776{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10777echo "${ECHO_T}$ac_header_preproc" >&6; }
10778
10779# So?  What about this header?
10780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10781  yes:no: )
10782    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10784    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10786    ac_header_preproc=yes
10787    ;;
10788  no:yes:* )
10789    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10791    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10792echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10793    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10795    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10796echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10797    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10799    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10801
10802    ;;
10803esac
10804{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807  echo $ECHO_N "(cached) $ECHO_C" >&6
10808else
10809  eval "$as_ac_Header=\$ac_header_preproc"
10810fi
10811ac_res=`eval echo '${'$as_ac_Header'}'`
10812	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10813echo "${ECHO_T}$ac_res" >&6; }
10814
10815fi
10816if test `eval echo '${'$as_ac_Header'}'` = yes; then
10817  cat >>confdefs.h <<_ACEOF
10818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10819_ACEOF
10820
10821fi
10822
10823done
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833{ echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
10834echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
10835if test "${ac_cv_func_utime_null+set}" = set; then
10836  echo $ECHO_N "(cached) $ECHO_C" >&6
10837else
10838  rm -f conftest.data; >conftest.data
10839# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
10840if test "$cross_compiling" = yes; then
10841  ac_cv_func_utime_null=no
10842else
10843  cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h.  */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h.  */
10849$ac_includes_default
10850	       #ifdef HAVE_UTIME_H
10851	       # include <utime.h>
10852	       #endif
10853int
10854main ()
10855{
10856struct stat s, t;
10857  return ! (stat ("conftest.data", &s) == 0
10858	    && utime ("conftest.data", 0) == 0
10859	    && stat ("conftest.data", &t) == 0
10860	    && t.st_mtime >= s.st_mtime
10861	    && t.st_mtime - s.st_mtime < 120);
10862  ;
10863  return 0;
10864}
10865_ACEOF
10866rm -f conftest$ac_exeext
10867if { (ac_try="$ac_link"
10868case "(($ac_try" in
10869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870  *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873  (eval "$ac_link") 2>&5
10874  ac_status=$?
10875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10877  { (case "(($ac_try" in
10878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879  *) ac_try_echo=$ac_try;;
10880esac
10881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882  (eval "$ac_try") 2>&5
10883  ac_status=$?
10884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885  (exit $ac_status); }; }; then
10886  ac_cv_func_utime_null=yes
10887else
10888  echo "$as_me: program exited with status $ac_status" >&5
10889echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
10892( exit $ac_status )
10893ac_cv_func_utime_null=no
10894fi
10895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10896fi
10897
10898
10899fi
10900{ echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
10901echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
10902if test $ac_cv_func_utime_null = yes; then
10903
10904cat >>confdefs.h <<\_ACEOF
10905#define HAVE_UTIME_NULL 1
10906_ACEOF
10907
10908fi
10909rm -f conftest.data
10910
10911
10912for ac_func in vprintf
10913do
10914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10915{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10917if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10918  echo $ECHO_N "(cached) $ECHO_C" >&6
10919else
10920  cat >conftest.$ac_ext <<_ACEOF
10921/* confdefs.h.  */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h.  */
10926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10928#define $ac_func innocuous_$ac_func
10929
10930/* System header to define __stub macros and hopefully few prototypes,
10931    which can conflict with char $ac_func (); below.
10932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10933    <limits.h> exists even on freestanding compilers.  */
10934
10935#ifdef __STDC__
10936# include <limits.h>
10937#else
10938# include <assert.h>
10939#endif
10940
10941#undef $ac_func
10942
10943/* Override any GCC internal prototype to avoid an error.
10944   Use char because int might match the return type of a GCC
10945   builtin and then its argument prototype would still apply.  */
10946#ifdef __cplusplus
10947extern "C"
10948#endif
10949char $ac_func ();
10950/* The GNU C library defines this for functions which it implements
10951    to always fail with ENOSYS.  Some functions are actually named
10952    something starting with __ and the normal name is an alias.  */
10953#if defined __stub_$ac_func || defined __stub___$ac_func
10954choke me
10955#endif
10956
10957int
10958main ()
10959{
10960return $ac_func ();
10961  ;
10962  return 0;
10963}
10964_ACEOF
10965rm -f conftest.$ac_objext conftest$ac_exeext
10966if { (ac_try="$ac_link"
10967case "(($ac_try" in
10968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969  *) ac_try_echo=$ac_try;;
10970esac
10971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972  (eval "$ac_link") 2>conftest.er1
10973  ac_status=$?
10974  grep -v '^ *+' conftest.er1 >conftest.err
10975  rm -f conftest.er1
10976  cat conftest.err >&5
10977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978  (exit $ac_status); } && {
10979	 test -z "$ac_c_werror_flag" ||
10980	 test ! -s conftest.err
10981       } && test -s conftest$ac_exeext &&
10982       $as_test_x conftest$ac_exeext; then
10983  eval "$as_ac_var=yes"
10984else
10985  echo "$as_me: failed program was:" >&5
10986sed 's/^/| /' conftest.$ac_ext >&5
10987
10988	eval "$as_ac_var=no"
10989fi
10990
10991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10992      conftest$ac_exeext conftest.$ac_ext
10993fi
10994ac_res=`eval echo '${'$as_ac_var'}'`
10995	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10996echo "${ECHO_T}$ac_res" >&6; }
10997if test `eval echo '${'$as_ac_var'}'` = yes; then
10998  cat >>confdefs.h <<_ACEOF
10999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11000_ACEOF
11001
11002{ echo "$as_me:$LINENO: checking for _doprnt" >&5
11003echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11004if test "${ac_cv_func__doprnt+set}" = set; then
11005  echo $ECHO_N "(cached) $ECHO_C" >&6
11006else
11007  cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h.  */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h.  */
11013/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11014   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11015#define _doprnt innocuous__doprnt
11016
11017/* System header to define __stub macros and hopefully few prototypes,
11018    which can conflict with char _doprnt (); below.
11019    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020    <limits.h> exists even on freestanding compilers.  */
11021
11022#ifdef __STDC__
11023# include <limits.h>
11024#else
11025# include <assert.h>
11026#endif
11027
11028#undef _doprnt
11029
11030/* Override any GCC internal prototype to avoid an error.
11031   Use char because int might match the return type of a GCC
11032   builtin and then its argument prototype would still apply.  */
11033#ifdef __cplusplus
11034extern "C"
11035#endif
11036char _doprnt ();
11037/* The GNU C library defines this for functions which it implements
11038    to always fail with ENOSYS.  Some functions are actually named
11039    something starting with __ and the normal name is an alias.  */
11040#if defined __stub__doprnt || defined __stub____doprnt
11041choke me
11042#endif
11043
11044int
11045main ()
11046{
11047return _doprnt ();
11048  ;
11049  return 0;
11050}
11051_ACEOF
11052rm -f conftest.$ac_objext conftest$ac_exeext
11053if { (ac_try="$ac_link"
11054case "(($ac_try" in
11055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056  *) ac_try_echo=$ac_try;;
11057esac
11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059  (eval "$ac_link") 2>conftest.er1
11060  ac_status=$?
11061  grep -v '^ *+' conftest.er1 >conftest.err
11062  rm -f conftest.er1
11063  cat conftest.err >&5
11064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065  (exit $ac_status); } && {
11066	 test -z "$ac_c_werror_flag" ||
11067	 test ! -s conftest.err
11068       } && test -s conftest$ac_exeext &&
11069       $as_test_x conftest$ac_exeext; then
11070  ac_cv_func__doprnt=yes
11071else
11072  echo "$as_me: failed program was:" >&5
11073sed 's/^/| /' conftest.$ac_ext >&5
11074
11075	ac_cv_func__doprnt=no
11076fi
11077
11078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11079      conftest$ac_exeext conftest.$ac_ext
11080fi
11081{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11082echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11083if test $ac_cv_func__doprnt = yes; then
11084
11085cat >>confdefs.h <<\_ACEOF
11086#define HAVE_DOPRNT 1
11087_ACEOF
11088
11089fi
11090
11091fi
11092done
11093
11094
11095{ echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5
11096echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6; }
11097if test "${ac_cv_func_wait3_rusage+set}" = set; then
11098  echo $ECHO_N "(cached) $ECHO_C" >&6
11099else
11100  if test "$cross_compiling" = yes; then
11101  ac_cv_func_wait3_rusage=no
11102else
11103  cat >conftest.$ac_ext <<_ACEOF
11104/* confdefs.h.  */
11105_ACEOF
11106cat confdefs.h >>conftest.$ac_ext
11107cat >>conftest.$ac_ext <<_ACEOF
11108/* end confdefs.h.  */
11109$ac_includes_default
11110#include <sys/time.h>
11111#include <sys/resource.h>
11112#include <sys/wait.h>
11113/* HP-UX has wait3 but does not fill in rusage at all.  */
11114int
11115main ()
11116{
11117  struct rusage r;
11118  int i;
11119  /* Use a field that we can force nonzero --
11120     voluntary context switches.
11121     For systems like NeXT and OSF/1 that don't set it,
11122     also use the system CPU time.  And page faults (I/O) for Linux.  */
11123  r.ru_nvcsw = 0;
11124  r.ru_stime.tv_sec = 0;
11125  r.ru_stime.tv_usec = 0;
11126  r.ru_majflt = r.ru_minflt = 0;
11127  switch (fork ())
11128    {
11129    case 0: /* Child.  */
11130      sleep(1); /* Give up the CPU.  */
11131      _exit(0);
11132      break;
11133    case -1: /* What can we do?  */
11134      _exit(0);
11135      break;
11136    default: /* Parent.  */
11137      wait3(&i, 0, &r);
11138      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
11139      sleep(2);
11140      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
11141	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
11142    }
11143}
11144_ACEOF
11145rm -f conftest$ac_exeext
11146if { (ac_try="$ac_link"
11147case "(($ac_try" in
11148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149  *) ac_try_echo=$ac_try;;
11150esac
11151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152  (eval "$ac_link") 2>&5
11153  ac_status=$?
11154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11156  { (case "(($ac_try" in
11157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158  *) ac_try_echo=$ac_try;;
11159esac
11160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161  (eval "$ac_try") 2>&5
11162  ac_status=$?
11163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164  (exit $ac_status); }; }; then
11165  ac_cv_func_wait3_rusage=yes
11166else
11167  echo "$as_me: program exited with status $ac_status" >&5
11168echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
11171( exit $ac_status )
11172ac_cv_func_wait3_rusage=no
11173fi
11174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11175fi
11176
11177
11178fi
11179{ echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
11180echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6; }
11181if test $ac_cv_func_wait3_rusage = yes; then
11182
11183cat >>confdefs.h <<\_ACEOF
11184#define HAVE_WAIT3 1
11185_ACEOF
11186
11187fi
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218for ac_func in \
11219gethostname \
11220gethostbyname \
11221gettimeofday \
11222getusershell \
11223mkdir \
11224socket \
11225strdup \
11226strerror \
11227strstr \
11228strlcat \
11229strlcpy \
11230bcopy \
11231index \
11232flock  \
11233set_auth_parameters \
11234pw_encrypt \
11235hstrerror \
11236snprintf \
11237vsnprintf \
11238srandom \
11239srand \
11240usleep \
11241crypt \
11242crypt16 \
11243bigcrypt \
11244setproctitle \
11245mkstemp \
11246setresuid
11247
11248do
11249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11250{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11252if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11253  echo $ECHO_N "(cached) $ECHO_C" >&6
11254else
11255  cat >conftest.$ac_ext <<_ACEOF
11256/* confdefs.h.  */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
11260/* end confdefs.h.  */
11261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11262   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11263#define $ac_func innocuous_$ac_func
11264
11265/* System header to define __stub macros and hopefully few prototypes,
11266    which can conflict with char $ac_func (); below.
11267    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11268    <limits.h> exists even on freestanding compilers.  */
11269
11270#ifdef __STDC__
11271# include <limits.h>
11272#else
11273# include <assert.h>
11274#endif
11275
11276#undef $ac_func
11277
11278/* Override any GCC internal prototype to avoid an error.
11279   Use char because int might match the return type of a GCC
11280   builtin and then its argument prototype would still apply.  */
11281#ifdef __cplusplus
11282extern "C"
11283#endif
11284char $ac_func ();
11285/* The GNU C library defines this for functions which it implements
11286    to always fail with ENOSYS.  Some functions are actually named
11287    something starting with __ and the normal name is an alias.  */
11288#if defined __stub_$ac_func || defined __stub___$ac_func
11289choke me
11290#endif
11291
11292int
11293main ()
11294{
11295return $ac_func ();
11296  ;
11297  return 0;
11298}
11299_ACEOF
11300rm -f conftest.$ac_objext conftest$ac_exeext
11301if { (ac_try="$ac_link"
11302case "(($ac_try" in
11303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304  *) ac_try_echo=$ac_try;;
11305esac
11306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307  (eval "$ac_link") 2>conftest.er1
11308  ac_status=$?
11309  grep -v '^ *+' conftest.er1 >conftest.err
11310  rm -f conftest.er1
11311  cat conftest.err >&5
11312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313  (exit $ac_status); } && {
11314	 test -z "$ac_c_werror_flag" ||
11315	 test ! -s conftest.err
11316       } && test -s conftest$ac_exeext &&
11317       $as_test_x conftest$ac_exeext; then
11318  eval "$as_ac_var=yes"
11319else
11320  echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
11323	eval "$as_ac_var=no"
11324fi
11325
11326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11327      conftest$ac_exeext conftest.$ac_ext
11328fi
11329ac_res=`eval echo '${'$as_ac_var'}'`
11330	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11331echo "${ECHO_T}$ac_res" >&6; }
11332if test `eval echo '${'$as_ac_var'}'` = yes; then
11333  cat >>confdefs.h <<_ACEOF
11334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11335_ACEOF
11336
11337fi
11338done
11339
11340
11341    { echo "$as_me:$LINENO: checking whether srandom is declared" >&5
11342echo $ECHO_N "checking whether srandom is declared... $ECHO_C" >&6; }
11343if test "${ac_cv_have_decl_srandom+set}" = set; then
11344  echo $ECHO_N "(cached) $ECHO_C" >&6
11345else
11346  cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h.  */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h.  */
11352$ac_includes_default
11353int
11354main ()
11355{
11356#ifndef srandom
11357  (void) srandom;
11358#endif
11359
11360  ;
11361  return 0;
11362}
11363_ACEOF
11364rm -f conftest.$ac_objext
11365if { (ac_try="$ac_compile"
11366case "(($ac_try" in
11367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368  *) ac_try_echo=$ac_try;;
11369esac
11370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371  (eval "$ac_compile") 2>conftest.er1
11372  ac_status=$?
11373  grep -v '^ *+' conftest.er1 >conftest.err
11374  rm -f conftest.er1
11375  cat conftest.err >&5
11376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377  (exit $ac_status); } && {
11378	 test -z "$ac_c_werror_flag" ||
11379	 test ! -s conftest.err
11380       } && test -s conftest.$ac_objext; then
11381  ac_cv_have_decl_srandom=yes
11382else
11383  echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386	ac_cv_have_decl_srandom=no
11387fi
11388
11389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390fi
11391{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_srandom" >&5
11392echo "${ECHO_T}$ac_cv_have_decl_srandom" >&6; }
11393if test $ac_cv_have_decl_srandom = yes; then
11394
11395cat >>confdefs.h <<_ACEOF
11396#define HAVE_DECL_SRANDOM 1
11397_ACEOF
11398
11399{ echo "$as_me:$LINENO: result: found decl" >&5
11400echo "${ECHO_T}found decl" >&6; }
11401else
11402  cat >>confdefs.h <<_ACEOF
11403#define HAVE_DECL_SRANDOM 0
11404_ACEOF
11405
11406{ echo "$as_me:$LINENO: result: didn't find decl" >&5
11407echo "${ECHO_T}didn't find decl" >&6; }
11408fi
11409{ echo "$as_me:$LINENO: checking whether write is declared" >&5
11410echo $ECHO_N "checking whether write is declared... $ECHO_C" >&6; }
11411if test "${ac_cv_have_decl_write+set}" = set; then
11412  echo $ECHO_N "(cached) $ECHO_C" >&6
11413else
11414  cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h.  */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h.  */
11420$ac_includes_default
11421int
11422main ()
11423{
11424#ifndef write
11425  (void) write;
11426#endif
11427
11428  ;
11429  return 0;
11430}
11431_ACEOF
11432rm -f conftest.$ac_objext
11433if { (ac_try="$ac_compile"
11434case "(($ac_try" in
11435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436  *) ac_try_echo=$ac_try;;
11437esac
11438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439  (eval "$ac_compile") 2>conftest.er1
11440  ac_status=$?
11441  grep -v '^ *+' conftest.er1 >conftest.err
11442  rm -f conftest.er1
11443  cat conftest.err >&5
11444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445  (exit $ac_status); } && {
11446	 test -z "$ac_c_werror_flag" ||
11447	 test ! -s conftest.err
11448       } && test -s conftest.$ac_objext; then
11449  ac_cv_have_decl_write=yes
11450else
11451  echo "$as_me: failed program was:" >&5
11452sed 's/^/| /' conftest.$ac_ext >&5
11453
11454	ac_cv_have_decl_write=no
11455fi
11456
11457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458fi
11459{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_write" >&5
11460echo "${ECHO_T}$ac_cv_have_decl_write" >&6; }
11461if test $ac_cv_have_decl_write = yes; then
11462
11463cat >>confdefs.h <<_ACEOF
11464#define HAVE_DECL_WRITE 1
11465_ACEOF
11466
11467{ echo "$as_me:$LINENO: result: found decl" >&5
11468echo "${ECHO_T}found decl" >&6; }
11469else
11470  cat >>confdefs.h <<_ACEOF
11471#define HAVE_DECL_WRITE 0
11472_ACEOF
11473
11474{ echo "$as_me:$LINENO: result: didn't find decl" >&5
11475echo "${ECHO_T}didn't find decl" >&6; }
11476fi
11477
11478
11479
11480
11481
11482    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11483echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
11484if test "${ac_cv_search_gethostbyname+set}" = set; then
11485  echo $ECHO_N "(cached) $ECHO_C" >&6
11486else
11487  ac_func_search_save_LIBS=$LIBS
11488cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h.  */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h.  */
11494
11495/* Override any GCC internal prototype to avoid an error.
11496   Use char because int might match the return type of a GCC
11497   builtin and then its argument prototype would still apply.  */
11498#ifdef __cplusplus
11499extern "C"
11500#endif
11501char gethostbyname ();
11502int
11503main ()
11504{
11505return gethostbyname ();
11506  ;
11507  return 0;
11508}
11509_ACEOF
11510for ac_lib in '' nsl bsd net socket ; do
11511  if test -z "$ac_lib"; then
11512    ac_res="none required"
11513  else
11514    ac_res=-l$ac_lib
11515    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11516  fi
11517  rm -f conftest.$ac_objext conftest$ac_exeext
11518if { (ac_try="$ac_link"
11519case "(($ac_try" in
11520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521  *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524  (eval "$ac_link") 2>conftest.er1
11525  ac_status=$?
11526  grep -v '^ *+' conftest.er1 >conftest.err
11527  rm -f conftest.er1
11528  cat conftest.err >&5
11529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530  (exit $ac_status); } && {
11531	 test -z "$ac_c_werror_flag" ||
11532	 test ! -s conftest.err
11533       } && test -s conftest$ac_exeext &&
11534       $as_test_x conftest$ac_exeext; then
11535  ac_cv_search_gethostbyname=$ac_res
11536else
11537  echo "$as_me: failed program was:" >&5
11538sed 's/^/| /' conftest.$ac_ext >&5
11539
11540
11541fi
11542
11543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11544      conftest$ac_exeext
11545  if test "${ac_cv_search_gethostbyname+set}" = set; then
11546  break
11547fi
11548done
11549if test "${ac_cv_search_gethostbyname+set}" = set; then
11550  :
11551else
11552  ac_cv_search_gethostbyname=no
11553fi
11554rm conftest.$ac_ext
11555LIBS=$ac_func_search_save_LIBS
11556fi
11557{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11558echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
11559ac_res=$ac_cv_search_gethostbyname
11560if test "$ac_res" != no; then
11561  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11562
11563fi
11564
11565
11566
11567
11568{ echo "$as_me:$LINENO: checking for unsigned long int" >&5
11569echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6; }
11570if test "${ac_cv_type_unsigned_long_int+set}" = set; then
11571  echo $ECHO_N "(cached) $ECHO_C" >&6
11572else
11573  cat >conftest.$ac_ext <<_ACEOF
11574/* confdefs.h.  */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h.  */
11579$ac_includes_default
11580typedef unsigned long int ac__type_new_;
11581int
11582main ()
11583{
11584if ((ac__type_new_ *) 0)
11585  return 0;
11586if (sizeof (ac__type_new_))
11587  return 0;
11588  ;
11589  return 0;
11590}
11591_ACEOF
11592rm -f conftest.$ac_objext
11593if { (ac_try="$ac_compile"
11594case "(($ac_try" in
11595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596  *) ac_try_echo=$ac_try;;
11597esac
11598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599  (eval "$ac_compile") 2>conftest.er1
11600  ac_status=$?
11601  grep -v '^ *+' conftest.er1 >conftest.err
11602  rm -f conftest.er1
11603  cat conftest.err >&5
11604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605  (exit $ac_status); } && {
11606	 test -z "$ac_c_werror_flag" ||
11607	 test ! -s conftest.err
11608       } && test -s conftest.$ac_objext; then
11609  ac_cv_type_unsigned_long_int=yes
11610else
11611  echo "$as_me: failed program was:" >&5
11612sed 's/^/| /' conftest.$ac_ext >&5
11613
11614	ac_cv_type_unsigned_long_int=no
11615fi
11616
11617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11618fi
11619{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
11620echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6; }
11621
11622# The cast to long int works around a bug in the HP C Compiler
11623# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11624# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11625# This bug is HP SR number 8606223364.
11626{ echo "$as_me:$LINENO: checking size of unsigned long int" >&5
11627echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6; }
11628if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
11629  echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631  if test "$cross_compiling" = yes; then
11632  # Depending upon the size, compute the lo and hi bounds.
11633cat >conftest.$ac_ext <<_ACEOF
11634/* confdefs.h.  */
11635_ACEOF
11636cat confdefs.h >>conftest.$ac_ext
11637cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h.  */
11639$ac_includes_default
11640   typedef unsigned long int ac__type_sizeof_;
11641int
11642main ()
11643{
11644static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11645test_array [0] = 0
11646
11647  ;
11648  return 0;
11649}
11650_ACEOF
11651rm -f conftest.$ac_objext
11652if { (ac_try="$ac_compile"
11653case "(($ac_try" in
11654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655  *) ac_try_echo=$ac_try;;
11656esac
11657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658  (eval "$ac_compile") 2>conftest.er1
11659  ac_status=$?
11660  grep -v '^ *+' conftest.er1 >conftest.err
11661  rm -f conftest.er1
11662  cat conftest.err >&5
11663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664  (exit $ac_status); } && {
11665	 test -z "$ac_c_werror_flag" ||
11666	 test ! -s conftest.err
11667       } && test -s conftest.$ac_objext; then
11668  ac_lo=0 ac_mid=0
11669  while :; do
11670    cat >conftest.$ac_ext <<_ACEOF
11671/* confdefs.h.  */
11672_ACEOF
11673cat confdefs.h >>conftest.$ac_ext
11674cat >>conftest.$ac_ext <<_ACEOF
11675/* end confdefs.h.  */
11676$ac_includes_default
11677   typedef unsigned long int ac__type_sizeof_;
11678int
11679main ()
11680{
11681static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11682test_array [0] = 0
11683
11684  ;
11685  return 0;
11686}
11687_ACEOF
11688rm -f conftest.$ac_objext
11689if { (ac_try="$ac_compile"
11690case "(($ac_try" in
11691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692  *) ac_try_echo=$ac_try;;
11693esac
11694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695  (eval "$ac_compile") 2>conftest.er1
11696  ac_status=$?
11697  grep -v '^ *+' conftest.er1 >conftest.err
11698  rm -f conftest.er1
11699  cat conftest.err >&5
11700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701  (exit $ac_status); } && {
11702	 test -z "$ac_c_werror_flag" ||
11703	 test ! -s conftest.err
11704       } && test -s conftest.$ac_objext; then
11705  ac_hi=$ac_mid; break
11706else
11707  echo "$as_me: failed program was:" >&5
11708sed 's/^/| /' conftest.$ac_ext >&5
11709
11710	ac_lo=`expr $ac_mid + 1`
11711			if test $ac_lo -le $ac_mid; then
11712			  ac_lo= ac_hi=
11713			  break
11714			fi
11715			ac_mid=`expr 2 '*' $ac_mid + 1`
11716fi
11717
11718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11719  done
11720else
11721  echo "$as_me: failed program was:" >&5
11722sed 's/^/| /' conftest.$ac_ext >&5
11723
11724	cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h.  */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h.  */
11730$ac_includes_default
11731   typedef unsigned long int ac__type_sizeof_;
11732int
11733main ()
11734{
11735static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11736test_array [0] = 0
11737
11738  ;
11739  return 0;
11740}
11741_ACEOF
11742rm -f conftest.$ac_objext
11743if { (ac_try="$ac_compile"
11744case "(($ac_try" in
11745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746  *) ac_try_echo=$ac_try;;
11747esac
11748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749  (eval "$ac_compile") 2>conftest.er1
11750  ac_status=$?
11751  grep -v '^ *+' conftest.er1 >conftest.err
11752  rm -f conftest.er1
11753  cat conftest.err >&5
11754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755  (exit $ac_status); } && {
11756	 test -z "$ac_c_werror_flag" ||
11757	 test ! -s conftest.err
11758       } && test -s conftest.$ac_objext; then
11759  ac_hi=-1 ac_mid=-1
11760  while :; do
11761    cat >conftest.$ac_ext <<_ACEOF
11762/* confdefs.h.  */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h.  */
11767$ac_includes_default
11768   typedef unsigned long int ac__type_sizeof_;
11769int
11770main ()
11771{
11772static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11773test_array [0] = 0
11774
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779rm -f conftest.$ac_objext
11780if { (ac_try="$ac_compile"
11781case "(($ac_try" in
11782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783  *) ac_try_echo=$ac_try;;
11784esac
11785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786  (eval "$ac_compile") 2>conftest.er1
11787  ac_status=$?
11788  grep -v '^ *+' conftest.er1 >conftest.err
11789  rm -f conftest.er1
11790  cat conftest.err >&5
11791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792  (exit $ac_status); } && {
11793	 test -z "$ac_c_werror_flag" ||
11794	 test ! -s conftest.err
11795       } && test -s conftest.$ac_objext; then
11796  ac_lo=$ac_mid; break
11797else
11798  echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801	ac_hi=`expr '(' $ac_mid ')' - 1`
11802			if test $ac_mid -le $ac_hi; then
11803			  ac_lo= ac_hi=
11804			  break
11805			fi
11806			ac_mid=`expr 2 '*' $ac_mid`
11807fi
11808
11809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810  done
11811else
11812  echo "$as_me: failed program was:" >&5
11813sed 's/^/| /' conftest.$ac_ext >&5
11814
11815	ac_lo= ac_hi=
11816fi
11817
11818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819fi
11820
11821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822# Binary search between lo and hi bounds.
11823while test "x$ac_lo" != "x$ac_hi"; do
11824  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11825  cat >conftest.$ac_ext <<_ACEOF
11826/* confdefs.h.  */
11827_ACEOF
11828cat confdefs.h >>conftest.$ac_ext
11829cat >>conftest.$ac_ext <<_ACEOF
11830/* end confdefs.h.  */
11831$ac_includes_default
11832   typedef unsigned long int ac__type_sizeof_;
11833int
11834main ()
11835{
11836static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11837test_array [0] = 0
11838
11839  ;
11840  return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext
11844if { (ac_try="$ac_compile"
11845case "(($ac_try" in
11846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847  *) ac_try_echo=$ac_try;;
11848esac
11849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850  (eval "$ac_compile") 2>conftest.er1
11851  ac_status=$?
11852  grep -v '^ *+' conftest.er1 >conftest.err
11853  rm -f conftest.er1
11854  cat conftest.err >&5
11855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856  (exit $ac_status); } && {
11857	 test -z "$ac_c_werror_flag" ||
11858	 test ! -s conftest.err
11859       } && test -s conftest.$ac_objext; then
11860  ac_hi=$ac_mid
11861else
11862  echo "$as_me: failed program was:" >&5
11863sed 's/^/| /' conftest.$ac_ext >&5
11864
11865	ac_lo=`expr '(' $ac_mid ')' + 1`
11866fi
11867
11868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869done
11870case $ac_lo in
11871?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
11872'') if test "$ac_cv_type_unsigned_long_int" = yes; then
11873     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
11874See \`config.log' for more details." >&5
11875echo "$as_me: error: cannot compute sizeof (unsigned long int)
11876See \`config.log' for more details." >&2;}
11877   { (exit 77); exit 77; }; }
11878   else
11879     ac_cv_sizeof_unsigned_long_int=0
11880   fi ;;
11881esac
11882else
11883  cat >conftest.$ac_ext <<_ACEOF
11884/* confdefs.h.  */
11885_ACEOF
11886cat confdefs.h >>conftest.$ac_ext
11887cat >>conftest.$ac_ext <<_ACEOF
11888/* end confdefs.h.  */
11889$ac_includes_default
11890   typedef unsigned long int ac__type_sizeof_;
11891static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11892static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11893#include <stdio.h>
11894#include <stdlib.h>
11895int
11896main ()
11897{
11898
11899  FILE *f = fopen ("conftest.val", "w");
11900  if (! f)
11901    return 1;
11902  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11903    {
11904      long int i = longval ();
11905      if (i != ((long int) (sizeof (ac__type_sizeof_))))
11906	return 1;
11907      fprintf (f, "%ld\n", i);
11908    }
11909  else
11910    {
11911      unsigned long int i = ulongval ();
11912      if (i != ((long int) (sizeof (ac__type_sizeof_))))
11913	return 1;
11914      fprintf (f, "%lu\n", i);
11915    }
11916  return ferror (f) || fclose (f) != 0;
11917
11918  ;
11919  return 0;
11920}
11921_ACEOF
11922rm -f conftest$ac_exeext
11923if { (ac_try="$ac_link"
11924case "(($ac_try" in
11925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926  *) ac_try_echo=$ac_try;;
11927esac
11928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929  (eval "$ac_link") 2>&5
11930  ac_status=$?
11931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11933  { (case "(($ac_try" in
11934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935  *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938  (eval "$ac_try") 2>&5
11939  ac_status=$?
11940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941  (exit $ac_status); }; }; then
11942  ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
11943else
11944  echo "$as_me: program exited with status $ac_status" >&5
11945echo "$as_me: failed program was:" >&5
11946sed 's/^/| /' conftest.$ac_ext >&5
11947
11948( exit $ac_status )
11949if test "$ac_cv_type_unsigned_long_int" = yes; then
11950     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
11951See \`config.log' for more details." >&5
11952echo "$as_me: error: cannot compute sizeof (unsigned long int)
11953See \`config.log' for more details." >&2;}
11954   { (exit 77); exit 77; }; }
11955   else
11956     ac_cv_sizeof_unsigned_long_int=0
11957   fi
11958fi
11959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11960fi
11961rm -f conftest.val
11962fi
11963{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
11964echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
11965
11966
11967
11968cat >>confdefs.h <<_ACEOF
11969#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
11970_ACEOF
11971
11972
11973
11974
11975{ echo "$as_me:$LINENO: checking for /dev/urandom " >&5
11976echo $ECHO_N "checking for /dev/urandom ... $ECHO_C" >&6; }
11977if test -r /dev/urandom
11978then
11979    cat >>confdefs.h <<\_ACEOF
11980#define HAVE_DEV_URANDOM 1
11981_ACEOF
11982
11983    { echo "$as_me:$LINENO: result: yes " >&5
11984echo "${ECHO_T}yes " >&6; }
11985else
11986    { echo "$as_me:$LINENO: result: no " >&5
11987echo "${ECHO_T}no " >&6; }
11988fi
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004ac_config_files="$ac_config_files Makefile common/Makefile popper/Makefile mmangle/Makefile password/Makefile"
12005
12006cat >confcache <<\_ACEOF
12007# This file is a shell script that caches the results of configure
12008# tests run on this system so they can be shared between configure
12009# scripts and configure runs, see configure's option --config-cache.
12010# It is not useful on other systems.  If it contains results you don't
12011# want to keep, you may remove or edit it.
12012#
12013# config.status only pays attention to the cache file if you give it
12014# the --recheck option to rerun configure.
12015#
12016# `ac_cv_env_foo' variables (set or unset) will be overridden when
12017# loading this file, other *unset* `ac_cv_foo' will be assigned the
12018# following values.
12019
12020_ACEOF
12021
12022# The following way of writing the cache mishandles newlines in values,
12023# but we know of no workaround that is simple, portable, and efficient.
12024# So, we kill variables containing newlines.
12025# Ultrix sh set writes to stderr and can't be redirected directly,
12026# and sets the high bit in the cache file unless we assign to the vars.
12027(
12028  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12029    eval ac_val=\$$ac_var
12030    case $ac_val in #(
12031    *${as_nl}*)
12032      case $ac_var in #(
12033      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12034echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12035      esac
12036      case $ac_var in #(
12037      _ | IFS | as_nl) ;; #(
12038      *) $as_unset $ac_var ;;
12039      esac ;;
12040    esac
12041  done
12042
12043  (set) 2>&1 |
12044    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12045    *${as_nl}ac_space=\ *)
12046      # `set' does not quote correctly, so add quotes (double-quote
12047      # substitution turns \\\\ into \\, and sed turns \\ into \).
12048      sed -n \
12049	"s/'/'\\\\''/g;
12050	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12051      ;; #(
12052    *)
12053      # `set' quotes correctly as required by POSIX, so do not add quotes.
12054      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12055      ;;
12056    esac |
12057    sort
12058) |
12059  sed '
12060     /^ac_cv_env_/b end
12061     t clear
12062     :clear
12063     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12064     t end
12065     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12066     :end' >>confcache
12067if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12068  if test -w "$cache_file"; then
12069    test "x$cache_file" != "x/dev/null" &&
12070      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12071echo "$as_me: updating cache $cache_file" >&6;}
12072    cat confcache >$cache_file
12073  else
12074    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12075echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12076  fi
12077fi
12078rm -f confcache
12079
12080test "x$prefix" = xNONE && prefix=$ac_default_prefix
12081# Let make expand exec_prefix.
12082test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12083
12084DEFS=-DHAVE_CONFIG_H
12085
12086ac_libobjs=
12087ac_ltlibobjs=
12088for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12089  # 1. Remove the extension, and $U if already installed.
12090  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12091  ac_i=`echo "$ac_i" | sed "$ac_script"`
12092  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12093  #    will be set to the directory where LIBOBJS objects are built.
12094  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12095  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12096done
12097LIBOBJS=$ac_libobjs
12098
12099LTLIBOBJS=$ac_ltlibobjs
12100
12101
12102
12103: ${CONFIG_STATUS=./config.status}
12104ac_clean_files_save=$ac_clean_files
12105ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12106{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12107echo "$as_me: creating $CONFIG_STATUS" >&6;}
12108cat >$CONFIG_STATUS <<_ACEOF
12109#! $SHELL
12110# Generated by $as_me.
12111# Run this file to recreate the current configuration.
12112# Compiler output produced by configure, useful for debugging
12113# configure, is in config.log if it exists.
12114
12115debug=false
12116ac_cs_recheck=false
12117ac_cs_silent=false
12118SHELL=\${CONFIG_SHELL-$SHELL}
12119_ACEOF
12120
12121cat >>$CONFIG_STATUS <<\_ACEOF
12122## --------------------- ##
12123## M4sh Initialization.  ##
12124## --------------------- ##
12125
12126# Be more Bourne compatible
12127DUALCASE=1; export DUALCASE # for MKS sh
12128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12129  emulate sh
12130  NULLCMD=:
12131  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12132  # is contrary to our usage.  Disable this feature.
12133  alias -g '${1+"$@"}'='"$@"'
12134  setopt NO_GLOB_SUBST
12135else
12136  case `(set -o) 2>/dev/null` in
12137  *posix*) set -o posix ;;
12138esac
12139
12140fi
12141
12142
12143
12144
12145# PATH needs CR
12146# Avoid depending upon Character Ranges.
12147as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12148as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12149as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12150as_cr_digits='0123456789'
12151as_cr_alnum=$as_cr_Letters$as_cr_digits
12152
12153# The user is always right.
12154if test "${PATH_SEPARATOR+set}" != set; then
12155  echo "#! /bin/sh" >conf$$.sh
12156  echo  "exit 0"   >>conf$$.sh
12157  chmod +x conf$$.sh
12158  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12159    PATH_SEPARATOR=';'
12160  else
12161    PATH_SEPARATOR=:
12162  fi
12163  rm -f conf$$.sh
12164fi
12165
12166# Support unset when possible.
12167if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12168  as_unset=unset
12169else
12170  as_unset=false
12171fi
12172
12173
12174# IFS
12175# We need space, tab and new line, in precisely that order.  Quoting is
12176# there to prevent editors from complaining about space-tab.
12177# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12178# splitting by setting IFS to empty value.)
12179as_nl='
12180'
12181IFS=" ""	$as_nl"
12182
12183# Find who we are.  Look in the path if we contain no directory separator.
12184case $0 in
12185  *[\\/]* ) as_myself=$0 ;;
12186  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $PATH
12188do
12189  IFS=$as_save_IFS
12190  test -z "$as_dir" && as_dir=.
12191  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12192done
12193IFS=$as_save_IFS
12194
12195     ;;
12196esac
12197# We did not find ourselves, most probably we were run as `sh COMMAND'
12198# in which case we are not to be found in the path.
12199if test "x$as_myself" = x; then
12200  as_myself=$0
12201fi
12202if test ! -f "$as_myself"; then
12203  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12204  { (exit 1); exit 1; }
12205fi
12206
12207# Work around bugs in pre-3.0 UWIN ksh.
12208for as_var in ENV MAIL MAILPATH
12209do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12210done
12211PS1='$ '
12212PS2='> '
12213PS4='+ '
12214
12215# NLS nuisances.
12216for as_var in \
12217  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12218  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12219  LC_TELEPHONE LC_TIME
12220do
12221  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12222    eval $as_var=C; export $as_var
12223  else
12224    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12225  fi
12226done
12227
12228# Required to use basename.
12229if expr a : '\(a\)' >/dev/null 2>&1 &&
12230   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12231  as_expr=expr
12232else
12233  as_expr=false
12234fi
12235
12236if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12237  as_basename=basename
12238else
12239  as_basename=false
12240fi
12241
12242
12243# Name of the executable.
12244as_me=`$as_basename -- "$0" ||
12245$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12246	 X"$0" : 'X\(//\)$' \| \
12247	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12248echo X/"$0" |
12249    sed '/^.*\/\([^/][^/]*\)\/*$/{
12250	    s//\1/
12251	    q
12252	  }
12253	  /^X\/\(\/\/\)$/{
12254	    s//\1/
12255	    q
12256	  }
12257	  /^X\/\(\/\).*/{
12258	    s//\1/
12259	    q
12260	  }
12261	  s/.*/./; q'`
12262
12263# CDPATH.
12264$as_unset CDPATH
12265
12266
12267
12268  as_lineno_1=$LINENO
12269  as_lineno_2=$LINENO
12270  test "x$as_lineno_1" != "x$as_lineno_2" &&
12271  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12272
12273  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12274  # uniformly replaced by the line number.  The first 'sed' inserts a
12275  # line-number line after each line using $LINENO; the second 'sed'
12276  # does the real work.  The second script uses 'N' to pair each
12277  # line-number line with the line containing $LINENO, and appends
12278  # trailing '-' during substitution so that $LINENO is not a special
12279  # case at line end.
12280  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12281  # scripts with optimization help from Paolo Bonzini.  Blame Lee
12282  # E. McMahon (1931-1989) for sed's syntax.  :-)
12283  sed -n '
12284    p
12285    /[$]LINENO/=
12286  ' <$as_myself |
12287    sed '
12288      s/[$]LINENO.*/&-/
12289      t lineno
12290      b
12291      :lineno
12292      N
12293      :loop
12294      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12295      t loop
12296      s/-\n.*//
12297    ' >$as_me.lineno &&
12298  chmod +x "$as_me.lineno" ||
12299    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12300   { (exit 1); exit 1; }; }
12301
12302  # Don't try to exec as it changes $[0], causing all sort of problems
12303  # (the dirname of $[0] is not the place where we might find the
12304  # original and so on.  Autoconf is especially sensitive to this).
12305  . "./$as_me.lineno"
12306  # Exit status is that of the last command.
12307  exit
12308}
12309
12310
12311if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12312  as_dirname=dirname
12313else
12314  as_dirname=false
12315fi
12316
12317ECHO_C= ECHO_N= ECHO_T=
12318case `echo -n x` in
12319-n*)
12320  case `echo 'x\c'` in
12321  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12322  *)   ECHO_C='\c';;
12323  esac;;
12324*)
12325  ECHO_N='-n';;
12326esac
12327
12328if expr a : '\(a\)' >/dev/null 2>&1 &&
12329   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12330  as_expr=expr
12331else
12332  as_expr=false
12333fi
12334
12335rm -f conf$$ conf$$.exe conf$$.file
12336if test -d conf$$.dir; then
12337  rm -f conf$$.dir/conf$$.file
12338else
12339  rm -f conf$$.dir
12340  mkdir conf$$.dir
12341fi
12342echo >conf$$.file
12343if ln -s conf$$.file conf$$ 2>/dev/null; then
12344  as_ln_s='ln -s'
12345  # ... but there are two gotchas:
12346  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12347  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12348  # In both cases, we have to default to `cp -p'.
12349  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12350    as_ln_s='cp -p'
12351elif ln conf$$.file conf$$ 2>/dev/null; then
12352  as_ln_s=ln
12353else
12354  as_ln_s='cp -p'
12355fi
12356rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12357rmdir conf$$.dir 2>/dev/null
12358
12359if mkdir -p . 2>/dev/null; then
12360  as_mkdir_p=:
12361else
12362  test -d ./-p && rmdir ./-p
12363  as_mkdir_p=false
12364fi
12365
12366if test -x / >/dev/null 2>&1; then
12367  as_test_x='test -x'
12368else
12369  if ls -dL / >/dev/null 2>&1; then
12370    as_ls_L_option=L
12371  else
12372    as_ls_L_option=
12373  fi
12374  as_test_x='
12375    eval sh -c '\''
12376      if test -d "$1"; then
12377        test -d "$1/.";
12378      else
12379	case $1 in
12380        -*)set "./$1";;
12381	esac;
12382	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12383	???[sx]*):;;*)false;;esac;fi
12384    '\'' sh
12385  '
12386fi
12387as_executable_p=$as_test_x
12388
12389# Sed expression to map a string onto a valid CPP name.
12390as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12391
12392# Sed expression to map a string onto a valid variable name.
12393as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12394
12395
12396exec 6>&1
12397
12398# Save the log message, to keep $[0] and so on meaningful, and to
12399# report actual input values of CONFIG_FILES etc. instead of their
12400# values after options handling.
12401ac_log="
12402This file was extended by $as_me, which was
12403generated by GNU Autoconf 2.61.  Invocation command line was
12404
12405  CONFIG_FILES    = $CONFIG_FILES
12406  CONFIG_HEADERS  = $CONFIG_HEADERS
12407  CONFIG_LINKS    = $CONFIG_LINKS
12408  CONFIG_COMMANDS = $CONFIG_COMMANDS
12409  $ $0 $@
12410
12411on `(hostname || uname -n) 2>/dev/null | sed 1q`
12412"
12413
12414_ACEOF
12415
12416cat >>$CONFIG_STATUS <<_ACEOF
12417# Files that config.status was made for.
12418config_files="$ac_config_files"
12419config_headers="$ac_config_headers"
12420
12421_ACEOF
12422
12423cat >>$CONFIG_STATUS <<\_ACEOF
12424ac_cs_usage="\
12425\`$as_me' instantiates files from templates according to the
12426current configuration.
12427
12428Usage: $0 [OPTIONS] [FILE]...
12429
12430  -h, --help       print this help, then exit
12431  -V, --version    print version number and configuration settings, then exit
12432  -q, --quiet      do not print progress messages
12433  -d, --debug      don't remove temporary files
12434      --recheck    update $as_me by reconfiguring in the same conditions
12435  --file=FILE[:TEMPLATE]
12436		   instantiate the configuration file FILE
12437  --header=FILE[:TEMPLATE]
12438		   instantiate the configuration header FILE
12439
12440Configuration files:
12441$config_files
12442
12443Configuration headers:
12444$config_headers
12445
12446Report bugs to <bug-autoconf@gnu.org>."
12447
12448_ACEOF
12449cat >>$CONFIG_STATUS <<_ACEOF
12450ac_cs_version="\\
12451config.status
12452configured by $0, generated by GNU Autoconf 2.61,
12453  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12454
12455Copyright (C) 2006 Free Software Foundation, Inc.
12456This config.status script is free software; the Free Software Foundation
12457gives unlimited permission to copy, distribute and modify it."
12458
12459ac_pwd='$ac_pwd'
12460srcdir='$srcdir'
12461INSTALL='$INSTALL'
12462_ACEOF
12463
12464cat >>$CONFIG_STATUS <<\_ACEOF
12465# If no file are specified by the user, then we need to provide default
12466# value.  By we need to know if files were specified by the user.
12467ac_need_defaults=:
12468while test $# != 0
12469do
12470  case $1 in
12471  --*=*)
12472    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12473    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12474    ac_shift=:
12475    ;;
12476  *)
12477    ac_option=$1
12478    ac_optarg=$2
12479    ac_shift=shift
12480    ;;
12481  esac
12482
12483  case $ac_option in
12484  # Handling of the options.
12485  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12486    ac_cs_recheck=: ;;
12487  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12488    echo "$ac_cs_version"; exit ;;
12489  --debug | --debu | --deb | --de | --d | -d )
12490    debug=: ;;
12491  --file | --fil | --fi | --f )
12492    $ac_shift
12493    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12494    ac_need_defaults=false;;
12495  --header | --heade | --head | --hea )
12496    $ac_shift
12497    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12498    ac_need_defaults=false;;
12499  --he | --h)
12500    # Conflict between --help and --header
12501    { echo "$as_me: error: ambiguous option: $1
12502Try \`$0 --help' for more information." >&2
12503   { (exit 1); exit 1; }; };;
12504  --help | --hel | -h )
12505    echo "$ac_cs_usage"; exit ;;
12506  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12507  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12508    ac_cs_silent=: ;;
12509
12510  # This is an error.
12511  -*) { echo "$as_me: error: unrecognized option: $1
12512Try \`$0 --help' for more information." >&2
12513   { (exit 1); exit 1; }; } ;;
12514
12515  *) ac_config_targets="$ac_config_targets $1"
12516     ac_need_defaults=false ;;
12517
12518  esac
12519  shift
12520done
12521
12522ac_configure_extra_args=
12523
12524if $ac_cs_silent; then
12525  exec 6>/dev/null
12526  ac_configure_extra_args="$ac_configure_extra_args --silent"
12527fi
12528
12529_ACEOF
12530cat >>$CONFIG_STATUS <<_ACEOF
12531if \$ac_cs_recheck; then
12532  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12533  CONFIG_SHELL=$SHELL
12534  export CONFIG_SHELL
12535  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12536fi
12537
12538_ACEOF
12539cat >>$CONFIG_STATUS <<\_ACEOF
12540exec 5>>config.log
12541{
12542  echo
12543  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12544## Running $as_me. ##
12545_ASBOX
12546  echo "$ac_log"
12547} >&5
12548
12549_ACEOF
12550cat >>$CONFIG_STATUS <<_ACEOF
12551_ACEOF
12552
12553cat >>$CONFIG_STATUS <<\_ACEOF
12554
12555# Handling of arguments.
12556for ac_config_target in $ac_config_targets
12557do
12558  case $ac_config_target in
12559    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12560    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12561    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
12562    "popper/Makefile") CONFIG_FILES="$CONFIG_FILES popper/Makefile" ;;
12563    "mmangle/Makefile") CONFIG_FILES="$CONFIG_FILES mmangle/Makefile" ;;
12564    "password/Makefile") CONFIG_FILES="$CONFIG_FILES password/Makefile" ;;
12565
12566  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12567echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12568   { (exit 1); exit 1; }; };;
12569  esac
12570done
12571
12572
12573# If the user did not use the arguments to specify the items to instantiate,
12574# then the envvar interface is used.  Set only those that are not.
12575# We use the long form for the default assignment because of an extremely
12576# bizarre bug on SunOS 4.1.3.
12577if $ac_need_defaults; then
12578  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12579  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12580fi
12581
12582# Have a temporary directory for convenience.  Make it in the build tree
12583# simply because there is no reason against having it here, and in addition,
12584# creating and moving files from /tmp can sometimes cause problems.
12585# Hook for its removal unless debugging.
12586# Note that there is a small window in which the directory will not be cleaned:
12587# after its creation but before its name has been assigned to `$tmp'.
12588$debug ||
12589{
12590  tmp=
12591  trap 'exit_status=$?
12592  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12593' 0
12594  trap '{ (exit 1); exit 1; }' 1 2 13 15
12595}
12596# Create a (secure) tmp directory for tmp files.
12597
12598{
12599  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12600  test -n "$tmp" && test -d "$tmp"
12601}  ||
12602{
12603  tmp=./conf$$-$RANDOM
12604  (umask 077 && mkdir "$tmp")
12605} ||
12606{
12607   echo "$me: cannot create a temporary directory in ." >&2
12608   { (exit 1); exit 1; }
12609}
12610
12611#
12612# Set up the sed scripts for CONFIG_FILES section.
12613#
12614
12615# No need to generate the scripts if there are no CONFIG_FILES.
12616# This happens for instance when ./config.status config.h
12617if test -n "$CONFIG_FILES"; then
12618
12619_ACEOF
12620
12621
12622
12623ac_delim='%!_!# '
12624for ac_last_try in false false false false false :; do
12625  cat >conf$$subs.sed <<_ACEOF
12626SHELL!$SHELL$ac_delim
12627PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12628PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12629PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12630PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12631PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12632PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12633exec_prefix!$exec_prefix$ac_delim
12634prefix!$prefix$ac_delim
12635program_transform_name!$program_transform_name$ac_delim
12636bindir!$bindir$ac_delim
12637sbindir!$sbindir$ac_delim
12638libexecdir!$libexecdir$ac_delim
12639datarootdir!$datarootdir$ac_delim
12640datadir!$datadir$ac_delim
12641sysconfdir!$sysconfdir$ac_delim
12642sharedstatedir!$sharedstatedir$ac_delim
12643localstatedir!$localstatedir$ac_delim
12644includedir!$includedir$ac_delim
12645oldincludedir!$oldincludedir$ac_delim
12646docdir!$docdir$ac_delim
12647infodir!$infodir$ac_delim
12648htmldir!$htmldir$ac_delim
12649dvidir!$dvidir$ac_delim
12650pdfdir!$pdfdir$ac_delim
12651psdir!$psdir$ac_delim
12652libdir!$libdir$ac_delim
12653localedir!$localedir$ac_delim
12654mandir!$mandir$ac_delim
12655DEFS!$DEFS$ac_delim
12656ECHO_C!$ECHO_C$ac_delim
12657ECHO_N!$ECHO_N$ac_delim
12658ECHO_T!$ECHO_T$ac_delim
12659LIBS!$LIBS$ac_delim
12660build_alias!$build_alias$ac_delim
12661host_alias!$host_alias$ac_delim
12662target_alias!$target_alias$ac_delim
12663SET_MAKE!$SET_MAKE$ac_delim
12664CC!$CC$ac_delim
12665CFLAGS!$CFLAGS$ac_delim
12666LDFLAGS!$LDFLAGS$ac_delim
12667CPPFLAGS!$CPPFLAGS$ac_delim
12668ac_ct_CC!$ac_ct_CC$ac_delim
12669EXEEXT!$EXEEXT$ac_delim
12670OBJEXT!$OBJEXT$ac_delim
12671YACC!$YACC$ac_delim
12672YFLAGS!$YFLAGS$ac_delim
12673LEX!$LEX$ac_delim
12674LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
12675LEXLIB!$LEXLIB$ac_delim
12676AR!$AR$ac_delim
12677RANLIB!$RANLIB$ac_delim
12678INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12679INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12680INSTALL_DATA!$INSTALL_DATA$ac_delim
12681GPERF!$GPERF$ac_delim
12682AR_FLAG!$AR_FLAG$ac_delim
12683USE_PAM!$USE_PAM$ac_delim
12684CPP!$CPP$ac_delim
12685GREP!$GREP$ac_delim
12686EGREP!$EGREP$ac_delim
12687RANLIB_CMD!$RANLIB_CMD$ac_delim
12688POPAUTH!$POPAUTH$ac_delim
12689APOP_UID!$APOP_UID$ac_delim
12690APOP!$APOP$ac_delim
12691APOP_DIR!$APOP_DIR$ac_delim
12692POPPASSD!$POPPASSD$ac_delim
12693NETWORK_LIBS!$NETWORK_LIBS$ac_delim
12694KERBEROS_LIBS!$KERBEROS_LIBS$ac_delim
12695DBM_LIBS!$DBM_LIBS$ac_delim
12696SASL_LIBS!$SASL_LIBS$ac_delim
12697LIBOBJS!$LIBOBJS$ac_delim
12698OS_DEFS!$OS_DEFS$ac_delim
12699CDEFS!$CDEFS$ac_delim
12700GPERFCMD!$GPERFCMD$ac_delim
12701MISSING_OBJS!$MISSING_OBJS$ac_delim
12702MISSING_SRCS!$MISSING_SRCS$ac_delim
12703SSL_DIR_INC!$SSL_DIR_INC$ac_delim
12704SSL_LIBS!$SSL_LIBS$ac_delim
12705LTLIBOBJS!$LTLIBOBJS$ac_delim
12706_ACEOF
12707
12708  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
12709    break
12710  elif $ac_last_try; then
12711    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12712echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12713   { (exit 1); exit 1; }; }
12714  else
12715    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12716  fi
12717done
12718
12719ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12720if test -n "$ac_eof"; then
12721  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12722  ac_eof=`expr $ac_eof + 1`
12723fi
12724
12725cat >>$CONFIG_STATUS <<_ACEOF
12726cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12727/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12728_ACEOF
12729sed '
12730s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12731s/^/s,@/; s/!/@,|#_!!_#|/
12732:n
12733t n
12734s/'"$ac_delim"'$/,g/; t
12735s/$/\\/; p
12736N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12737' >>$CONFIG_STATUS <conf$$subs.sed
12738rm -f conf$$subs.sed
12739cat >>$CONFIG_STATUS <<_ACEOF
12740:end
12741s/|#_!!_#|//g
12742CEOF$ac_eof
12743_ACEOF
12744
12745
12746# VPATH may cause trouble with some makes, so we remove $(srcdir),
12747# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12748# trailing colons and then remove the whole line if VPATH becomes empty
12749# (actually we leave an empty line to preserve line numbers).
12750if test "x$srcdir" = x.; then
12751  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12752s/:*\$(srcdir):*/:/
12753s/:*\${srcdir}:*/:/
12754s/:*@srcdir@:*/:/
12755s/^\([^=]*=[	 ]*\):*/\1/
12756s/:*$//
12757s/^[^=]*=[	 ]*$//
12758}'
12759fi
12760
12761cat >>$CONFIG_STATUS <<\_ACEOF
12762fi # test -n "$CONFIG_FILES"
12763
12764
12765for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
12766do
12767  case $ac_tag in
12768  :[FHLC]) ac_mode=$ac_tag; continue;;
12769  esac
12770  case $ac_mode$ac_tag in
12771  :[FHL]*:*);;
12772  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12773echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12774   { (exit 1); exit 1; }; };;
12775  :[FH]-) ac_tag=-:-;;
12776  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12777  esac
12778  ac_save_IFS=$IFS
12779  IFS=:
12780  set x $ac_tag
12781  IFS=$ac_save_IFS
12782  shift
12783  ac_file=$1
12784  shift
12785
12786  case $ac_mode in
12787  :L) ac_source=$1;;
12788  :[FH])
12789    ac_file_inputs=
12790    for ac_f
12791    do
12792      case $ac_f in
12793      -) ac_f="$tmp/stdin";;
12794      *) # Look for the file first in the build tree, then in the source tree
12795	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12796	 # because $ac_f cannot contain `:'.
12797	 test -f "$ac_f" ||
12798	   case $ac_f in
12799	   [\\/$]*) false;;
12800	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12801	   esac ||
12802	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12803echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12804   { (exit 1); exit 1; }; };;
12805      esac
12806      ac_file_inputs="$ac_file_inputs $ac_f"
12807    done
12808
12809    # Let's still pretend it is `configure' which instantiates (i.e., don't
12810    # use $as_me), people would be surprised to read:
12811    #    /* config.h.  Generated by config.status.  */
12812    configure_input="Generated from "`IFS=:
12813	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12814    if test x"$ac_file" != x-; then
12815      configure_input="$ac_file.  $configure_input"
12816      { echo "$as_me:$LINENO: creating $ac_file" >&5
12817echo "$as_me: creating $ac_file" >&6;}
12818    fi
12819
12820    case $ac_tag in
12821    *:-:* | *:-) cat >"$tmp/stdin";;
12822    esac
12823    ;;
12824  esac
12825
12826  ac_dir=`$as_dirname -- "$ac_file" ||
12827$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12828	 X"$ac_file" : 'X\(//\)[^/]' \| \
12829	 X"$ac_file" : 'X\(//\)$' \| \
12830	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12831echo X"$ac_file" |
12832    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12833	    s//\1/
12834	    q
12835	  }
12836	  /^X\(\/\/\)[^/].*/{
12837	    s//\1/
12838	    q
12839	  }
12840	  /^X\(\/\/\)$/{
12841	    s//\1/
12842	    q
12843	  }
12844	  /^X\(\/\).*/{
12845	    s//\1/
12846	    q
12847	  }
12848	  s/.*/./; q'`
12849  { as_dir="$ac_dir"
12850  case $as_dir in #(
12851  -*) as_dir=./$as_dir;;
12852  esac
12853  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12854    as_dirs=
12855    while :; do
12856      case $as_dir in #(
12857      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12858      *) as_qdir=$as_dir;;
12859      esac
12860      as_dirs="'$as_qdir' $as_dirs"
12861      as_dir=`$as_dirname -- "$as_dir" ||
12862$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12863	 X"$as_dir" : 'X\(//\)[^/]' \| \
12864	 X"$as_dir" : 'X\(//\)$' \| \
12865	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12866echo X"$as_dir" |
12867    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12868	    s//\1/
12869	    q
12870	  }
12871	  /^X\(\/\/\)[^/].*/{
12872	    s//\1/
12873	    q
12874	  }
12875	  /^X\(\/\/\)$/{
12876	    s//\1/
12877	    q
12878	  }
12879	  /^X\(\/\).*/{
12880	    s//\1/
12881	    q
12882	  }
12883	  s/.*/./; q'`
12884      test -d "$as_dir" && break
12885    done
12886    test -z "$as_dirs" || eval "mkdir $as_dirs"
12887  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12888echo "$as_me: error: cannot create directory $as_dir" >&2;}
12889   { (exit 1); exit 1; }; }; }
12890  ac_builddir=.
12891
12892case "$ac_dir" in
12893.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12894*)
12895  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12896  # A ".." for each directory in $ac_dir_suffix.
12897  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12898  case $ac_top_builddir_sub in
12899  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12900  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12901  esac ;;
12902esac
12903ac_abs_top_builddir=$ac_pwd
12904ac_abs_builddir=$ac_pwd$ac_dir_suffix
12905# for backward compatibility:
12906ac_top_builddir=$ac_top_build_prefix
12907
12908case $srcdir in
12909  .)  # We are building in place.
12910    ac_srcdir=.
12911    ac_top_srcdir=$ac_top_builddir_sub
12912    ac_abs_top_srcdir=$ac_pwd ;;
12913  [\\/]* | ?:[\\/]* )  # Absolute name.
12914    ac_srcdir=$srcdir$ac_dir_suffix;
12915    ac_top_srcdir=$srcdir
12916    ac_abs_top_srcdir=$srcdir ;;
12917  *) # Relative name.
12918    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12919    ac_top_srcdir=$ac_top_build_prefix$srcdir
12920    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12921esac
12922ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12923
12924
12925  case $ac_mode in
12926  :F)
12927  #
12928  # CONFIG_FILE
12929  #
12930
12931  case $INSTALL in
12932  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12933  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12934  esac
12935_ACEOF
12936
12937cat >>$CONFIG_STATUS <<\_ACEOF
12938# If the template does not know about datarootdir, expand it.
12939# FIXME: This hack should be removed a few years after 2.60.
12940ac_datarootdir_hack=; ac_datarootdir_seen=
12941
12942case `sed -n '/datarootdir/ {
12943  p
12944  q
12945}
12946/@datadir@/p
12947/@docdir@/p
12948/@infodir@/p
12949/@localedir@/p
12950/@mandir@/p
12951' $ac_file_inputs` in
12952*datarootdir*) ac_datarootdir_seen=yes;;
12953*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12954  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12955echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12956_ACEOF
12957cat >>$CONFIG_STATUS <<_ACEOF
12958  ac_datarootdir_hack='
12959  s&@datadir@&$datadir&g
12960  s&@docdir@&$docdir&g
12961  s&@infodir@&$infodir&g
12962  s&@localedir@&$localedir&g
12963  s&@mandir@&$mandir&g
12964    s&\\\${datarootdir}&$datarootdir&g' ;;
12965esac
12966_ACEOF
12967
12968# Neutralize VPATH when `$srcdir' = `.'.
12969# Shell code in configure.ac might set extrasub.
12970# FIXME: do we really want to maintain this feature?
12971cat >>$CONFIG_STATUS <<_ACEOF
12972  sed "$ac_vpsub
12973$extrasub
12974_ACEOF
12975cat >>$CONFIG_STATUS <<\_ACEOF
12976:t
12977/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12978s&@configure_input@&$configure_input&;t t
12979s&@top_builddir@&$ac_top_builddir_sub&;t t
12980s&@srcdir@&$ac_srcdir&;t t
12981s&@abs_srcdir@&$ac_abs_srcdir&;t t
12982s&@top_srcdir@&$ac_top_srcdir&;t t
12983s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12984s&@builddir@&$ac_builddir&;t t
12985s&@abs_builddir@&$ac_abs_builddir&;t t
12986s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12987s&@INSTALL@&$ac_INSTALL&;t t
12988$ac_datarootdir_hack
12989" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12990
12991test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12992  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12993  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12994  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12995which seems to be undefined.  Please make sure it is defined." >&5
12996echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12997which seems to be undefined.  Please make sure it is defined." >&2;}
12998
12999  rm -f "$tmp/stdin"
13000  case $ac_file in
13001  -) cat "$tmp/out"; rm -f "$tmp/out";;
13002  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13003  esac
13004 ;;
13005  :H)
13006  #
13007  # CONFIG_HEADER
13008  #
13009_ACEOF
13010
13011# Transform confdefs.h into a sed script `conftest.defines', that
13012# substitutes the proper values into config.h.in to produce config.h.
13013rm -f conftest.defines conftest.tail
13014# First, append a space to every undef/define line, to ease matching.
13015echo 's/$/ /' >conftest.defines
13016# Then, protect against being on the right side of a sed subst, or in
13017# an unquoted here document, in config.status.  If some macros were
13018# called several times there might be several #defines for the same
13019# symbol, which is useless.  But do not sort them, since the last
13020# AC_DEFINE must be honored.
13021ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13022# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13023# NAME is the cpp macro being defined, VALUE is the value it is being given.
13024# PARAMS is the parameter list in the macro definition--in most cases, it's
13025# just an empty string.
13026ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
13027ac_dB='\\)[	 (].*,\\1define\\2'
13028ac_dC=' '
13029ac_dD=' ,'
13030
13031uniq confdefs.h |
13032  sed -n '
13033	t rset
13034	:rset
13035	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
13036	t ok
13037	d
13038	:ok
13039	s/[\\&,]/\\&/g
13040	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13041	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13042  ' >>conftest.defines
13043
13044# Remove the space that was appended to ease matching.
13045# Then replace #undef with comments.  This is necessary, for
13046# example, in the case of _POSIX_SOURCE, which is predefined and required
13047# on some systems where configure will not decide to define it.
13048# (The regexp can be short, since the line contains either #define or #undef.)
13049echo 's/ $//
13050s,^[	 #]*u.*,/* & */,' >>conftest.defines
13051
13052# Break up conftest.defines:
13053ac_max_sed_lines=50
13054
13055# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13056# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13057# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13058# et cetera.
13059ac_in='$ac_file_inputs'
13060ac_out='"$tmp/out1"'
13061ac_nxt='"$tmp/out2"'
13062
13063while :
13064do
13065  # Write a here document:
13066    cat >>$CONFIG_STATUS <<_ACEOF
13067    # First, check the format of the line:
13068    cat >"\$tmp/defines.sed" <<\\CEOF
13069/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
13070/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
13071b
13072:def
13073_ACEOF
13074  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13075  echo 'CEOF
13076    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13077  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13078  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13079  grep . conftest.tail >/dev/null || break
13080  rm -f conftest.defines
13081  mv conftest.tail conftest.defines
13082done
13083rm -f conftest.defines conftest.tail
13084
13085echo "ac_result=$ac_in" >>$CONFIG_STATUS
13086cat >>$CONFIG_STATUS <<\_ACEOF
13087  if test x"$ac_file" != x-; then
13088    echo "/* $configure_input  */" >"$tmp/config.h"
13089    cat "$ac_result" >>"$tmp/config.h"
13090    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13091      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13092echo "$as_me: $ac_file is unchanged" >&6;}
13093    else
13094      rm -f $ac_file
13095      mv "$tmp/config.h" $ac_file
13096    fi
13097  else
13098    echo "/* $configure_input  */"
13099    cat "$ac_result"
13100  fi
13101  rm -f "$tmp/out12"
13102 ;;
13103
13104
13105  esac
13106
13107done # for ac_tag
13108
13109
13110{ (exit 0); exit 0; }
13111_ACEOF
13112chmod +x $CONFIG_STATUS
13113ac_clean_files=$ac_clean_files_save
13114
13115
13116# configure is writing to config.log, and then calls config.status.
13117# config.status does its own redirection, appending to config.log.
13118# Unfortunately, on DOS this fails, as config.log is still kept open
13119# by configure, so config.status won't be able to write to it; its
13120# output is simply discarded.  So we exec the FD to /dev/null,
13121# effectively closing config.log, so it can be properly (re)opened and
13122# appended to by config.status.  When coming back to configure, we
13123# need to make the FD available again.
13124if test "$no_create" != yes; then
13125  ac_cs_success=:
13126  ac_config_status_args=
13127  test "$silent" = yes &&
13128    ac_config_status_args="$ac_config_status_args --quiet"
13129  exec 5>/dev/null
13130  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13131  exec 5>>config.log
13132  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13133  # would make configure fail if this is the last instruction.
13134  $ac_cs_success || { (exit 1); exit 1; }
13135fi
13136
13137