1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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  # Pre-4.2 versions of Zsh do 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
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574exec 7<&0 </dev/null 6>&1
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
585ac_clean_files=
586ac_config_libobj_dir=.
587LIBOBJS=
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/saslint.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616#  include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621#  include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
638enable_option_checking=no
639ac_subst_vars='am__EXEEXT_FALSE
640am__EXEEXT_TRUE
641subdirs
642DIRS
643LTLIBOBJS
644LTGETNAMEINFOOBJS
645GETNAMEINFOOBJS
646LTGETADDRINFOOBJS
647GETADDRINFOOBJS
648LTSNPRINTFOBJS
649SNPRINTFOBJS
650GETSUBOPT
651LIBOBJS
652SASL_UTIL_HEADERS_EXTRA
653SASL_UTIL_LIBS_EXTRA
654SMTPTEST_PROGRAM
655SFIO_LIB_FLAGS
656SFIO_INC_FLAGS
657DMALLOC_LIBS
658MACOSX_FALSE
659MACOSX_TRUE
660configdir
661plugindir
662SASL_STATIC_LIBS
663SASL_STATIC_OBJS
664SASL_STATIC_SRCS
665SASL_MECHS
666LIB_LDAP
667LIB_SQLITE3
668LIB_SQLITE
669LIB_PGSQL
670LIB_MYSQL
671PASSDSS_LIBS
672NTLM_LIBS
673PLAIN_LIBS
674GSSAPIBASE_LIBS
675GSSAPI_LIBS
676LIB_CRYPT
677SASL_KRB_LIB
678SRP_LIBS
679OTP_LIBS
680SCRAM_LIBS
681LIB_DES
682CMU_LIB_SUBDIR
683LIB_DOOR
684IPCTYPE
685PWCHECK_FALSE
686PWCHECK_TRUE
687PWCHECKMETH
688SASLAUTHD_FALSE
689SASLAUTHD_TRUE
690NM
691SASL_DL_LIB
692NO_SASL_DB_MANS_FALSE
693NO_SASL_DB_MANS_TRUE
694SASL_DB_LIB
695SASL_DB_INC
696SASL_DB_BACKEND_STATIC
697SASL_DB_BACKEND
698SASL_DB_MANS
699SASL_DB_UTILS
700EGREP
701GREP
702LIB_SOCKET
703SAMPLE_FALSE
704SAMPLE_TRUE
705JAVAROOT
706JAVA_INCLUDES
707JAVA_FALSE
708JAVA_TRUE
709JAVADOC
710JAVAH
711JAVAC
712PURIFY
713PURECOV
714LIBTOOL
715RANLIB
716LN_S
717CPP
718am__fastdepCC_FALSE
719am__fastdepCC_TRUE
720CCDEPMODE
721AMDEPBACKSLASH
722AMDEP_FALSE
723AMDEP_TRUE
724am__quote
725am__include
726DEPDIR
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
757target_os
758target_vendor
759target_cpu
760target
761host_os
762host_vendor
763host_cpu
764host
765build_os
766build_vendor
767build_cpu
768build
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL'
806ac_subst_files=''
807ac_user_opts='
808enable_option_checking
809enable_cmulocal
810enable_sample
811enable_obsolete_cram_attr
812enable_dependency_tracking
813with_staticsasl
814enable_static
815enable_shared
816enable_fast_install
817with_gnu_ld
818enable_libtool_lock
819enable_staticdlopen
820with_purecov
821with_purify
822enable_java
823with_javabase
824with_dbpath
825with_dblib
826with_bdb_libdir
827with_bdb_incdir
828with_gdbm
829enable_keep_db_open
830with_devrandom
831with_pam
832with_saslauthd
833with_authdaemond
834with_pwcheck
835with_ipctype
836enable_alwaystrue
837enable_checkapop
838enable_cram
839with_lib_subdir
840with_openssl
841with_des
842enable_digest
843enable_scram
844enable_otp
845with_with_opie
846enable_srp
847enable_srp_setpass
848enable_krb4
849enable_gssapi
850with_gss_impl
851enable_gss_mutexes
852enable_plain
853enable_anon
854enable_login
855enable_ntlm
856enable_passdss
857with_ldap
858enable_sql
859with_mysql
860with_pgsql
861with_sqlite
862with_sqlite3
863enable_ldapdb
864with_plugindir
865with_configdir
866with_rc4
867enable_macos_framework
868with_dmalloc
869with_sfio
870'
871      ac_precious_vars='build_alias
872host_alias
873target_alias
874CC
875CFLAGS
876LDFLAGS
877LIBS
878CPPFLAGS
879CPP'
880ac_subdirs_all='saslauthd'
881
882# Initialize some variables set by options.
883ac_init_help=
884ac_init_version=false
885ac_unrecognized_opts=
886ac_unrecognized_sep=
887# The variables have the same names as the options, with
888# dashes changed to underlines.
889cache_file=/dev/null
890exec_prefix=NONE
891no_create=
892no_recursion=
893prefix=NONE
894program_prefix=NONE
895program_suffix=NONE
896program_transform_name=s,x,x,
897silent=
898site=
899srcdir=
900verbose=
901x_includes=NONE
902x_libraries=NONE
903
904# Installation directory options.
905# These are left unexpanded so users can "make install exec_prefix=/foo"
906# and all the variables that are supposed to be based on exec_prefix
907# by default will actually change.
908# Use braces instead of parens because sh, perl, etc. also accept them.
909# (The list follows the same order as the GNU Coding Standards.)
910bindir='${exec_prefix}/bin'
911sbindir='${exec_prefix}/sbin'
912libexecdir='${exec_prefix}/libexec'
913datarootdir='${prefix}/share'
914datadir='${datarootdir}'
915sysconfdir='${prefix}/etc'
916sharedstatedir='${prefix}/com'
917localstatedir='${prefix}/var'
918includedir='${prefix}/include'
919oldincludedir='/usr/include'
920docdir='${datarootdir}/doc/${PACKAGE}'
921infodir='${datarootdir}/info'
922htmldir='${docdir}'
923dvidir='${docdir}'
924pdfdir='${docdir}'
925psdir='${docdir}'
926libdir='${exec_prefix}/lib'
927localedir='${datarootdir}/locale'
928mandir='${datarootdir}/man'
929
930ac_prev=
931ac_dashdash=
932for ac_option
933do
934  # If the previous option needs an argument, assign it.
935  if test -n "$ac_prev"; then
936    eval $ac_prev=\$ac_option
937    ac_prev=
938    continue
939  fi
940
941  case $ac_option in
942  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943  *)	ac_optarg=yes ;;
944  esac
945
946  # Accept the important Cygnus configure options, so we can diagnose typos.
947
948  case $ac_dashdash$ac_option in
949  --)
950    ac_dashdash=yes ;;
951
952  -bindir | --bindir | --bindi | --bind | --bin | --bi)
953    ac_prev=bindir ;;
954  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955    bindir=$ac_optarg ;;
956
957  -build | --build | --buil | --bui | --bu)
958    ac_prev=build_alias ;;
959  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960    build_alias=$ac_optarg ;;
961
962  -cache-file | --cache-file | --cache-fil | --cache-fi \
963  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964    ac_prev=cache_file ;;
965  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967    cache_file=$ac_optarg ;;
968
969  --config-cache | -C)
970    cache_file=config.cache ;;
971
972  -datadir | --datadir | --datadi | --datad)
973    ac_prev=datadir ;;
974  -datadir=* | --datadir=* | --datadi=* | --datad=*)
975    datadir=$ac_optarg ;;
976
977  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978  | --dataroo | --dataro | --datar)
979    ac_prev=datarootdir ;;
980  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982    datarootdir=$ac_optarg ;;
983
984  -disable-* | --disable-*)
985    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986    # Reject names that are not valid shell variable names.
987    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
989   { (exit 1); exit 1; }; }
990    ac_useropt_orig=$ac_useropt
991    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992    case $ac_user_opts in
993      *"
994"enable_$ac_useropt"
995"*) ;;
996      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997	 ac_unrecognized_sep=', ';;
998    esac
999    eval enable_$ac_useropt=no ;;
1000
1001  -docdir | --docdir | --docdi | --doc | --do)
1002    ac_prev=docdir ;;
1003  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004    docdir=$ac_optarg ;;
1005
1006  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007    ac_prev=dvidir ;;
1008  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009    dvidir=$ac_optarg ;;
1010
1011  -enable-* | --enable-*)
1012    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013    # Reject names that are not valid shell variable names.
1014    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1016   { (exit 1); exit 1; }; }
1017    ac_useropt_orig=$ac_useropt
1018    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019    case $ac_user_opts in
1020      *"
1021"enable_$ac_useropt"
1022"*) ;;
1023      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024	 ac_unrecognized_sep=', ';;
1025    esac
1026    eval enable_$ac_useropt=\$ac_optarg ;;
1027
1028  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030  | --exec | --exe | --ex)
1031    ac_prev=exec_prefix ;;
1032  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034  | --exec=* | --exe=* | --ex=*)
1035    exec_prefix=$ac_optarg ;;
1036
1037  -gas | --gas | --ga | --g)
1038    # Obsolete; use --with-gas.
1039    with_gas=yes ;;
1040
1041  -help | --help | --hel | --he | -h)
1042    ac_init_help=long ;;
1043  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044    ac_init_help=recursive ;;
1045  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046    ac_init_help=short ;;
1047
1048  -host | --host | --hos | --ho)
1049    ac_prev=host_alias ;;
1050  -host=* | --host=* | --hos=* | --ho=*)
1051    host_alias=$ac_optarg ;;
1052
1053  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054    ac_prev=htmldir ;;
1055  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056  | --ht=*)
1057    htmldir=$ac_optarg ;;
1058
1059  -includedir | --includedir | --includedi | --included | --include \
1060  | --includ | --inclu | --incl | --inc)
1061    ac_prev=includedir ;;
1062  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063  | --includ=* | --inclu=* | --incl=* | --inc=*)
1064    includedir=$ac_optarg ;;
1065
1066  -infodir | --infodir | --infodi | --infod | --info | --inf)
1067    ac_prev=infodir ;;
1068  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069    infodir=$ac_optarg ;;
1070
1071  -libdir | --libdir | --libdi | --libd)
1072    ac_prev=libdir ;;
1073  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074    libdir=$ac_optarg ;;
1075
1076  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077  | --libexe | --libex | --libe)
1078    ac_prev=libexecdir ;;
1079  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080  | --libexe=* | --libex=* | --libe=*)
1081    libexecdir=$ac_optarg ;;
1082
1083  -localedir | --localedir | --localedi | --localed | --locale)
1084    ac_prev=localedir ;;
1085  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086    localedir=$ac_optarg ;;
1087
1088  -localstatedir | --localstatedir | --localstatedi | --localstated \
1089  | --localstate | --localstat | --localsta | --localst | --locals)
1090    ac_prev=localstatedir ;;
1091  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093    localstatedir=$ac_optarg ;;
1094
1095  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096    ac_prev=mandir ;;
1097  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098    mandir=$ac_optarg ;;
1099
1100  -nfp | --nfp | --nf)
1101    # Obsolete; use --without-fp.
1102    with_fp=no ;;
1103
1104  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105  | --no-cr | --no-c | -n)
1106    no_create=yes ;;
1107
1108  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110    no_recursion=yes ;;
1111
1112  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114  | --oldin | --oldi | --old | --ol | --o)
1115    ac_prev=oldincludedir ;;
1116  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119    oldincludedir=$ac_optarg ;;
1120
1121  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122    ac_prev=prefix ;;
1123  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124    prefix=$ac_optarg ;;
1125
1126  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127  | --program-pre | --program-pr | --program-p)
1128    ac_prev=program_prefix ;;
1129  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131    program_prefix=$ac_optarg ;;
1132
1133  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134  | --program-suf | --program-su | --program-s)
1135    ac_prev=program_suffix ;;
1136  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138    program_suffix=$ac_optarg ;;
1139
1140  -program-transform-name | --program-transform-name \
1141  | --program-transform-nam | --program-transform-na \
1142  | --program-transform-n | --program-transform- \
1143  | --program-transform | --program-transfor \
1144  | --program-transfo | --program-transf \
1145  | --program-trans | --program-tran \
1146  | --progr-tra | --program-tr | --program-t)
1147    ac_prev=program_transform_name ;;
1148  -program-transform-name=* | --program-transform-name=* \
1149  | --program-transform-nam=* | --program-transform-na=* \
1150  | --program-transform-n=* | --program-transform-=* \
1151  | --program-transform=* | --program-transfor=* \
1152  | --program-transfo=* | --program-transf=* \
1153  | --program-trans=* | --program-tran=* \
1154  | --progr-tra=* | --program-tr=* | --program-t=*)
1155    program_transform_name=$ac_optarg ;;
1156
1157  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158    ac_prev=pdfdir ;;
1159  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160    pdfdir=$ac_optarg ;;
1161
1162  -psdir | --psdir | --psdi | --psd | --ps)
1163    ac_prev=psdir ;;
1164  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165    psdir=$ac_optarg ;;
1166
1167  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168  | -silent | --silent | --silen | --sile | --sil)
1169    silent=yes ;;
1170
1171  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172    ac_prev=sbindir ;;
1173  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174  | --sbi=* | --sb=*)
1175    sbindir=$ac_optarg ;;
1176
1177  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179  | --sharedst | --shareds | --shared | --share | --shar \
1180  | --sha | --sh)
1181    ac_prev=sharedstatedir ;;
1182  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185  | --sha=* | --sh=*)
1186    sharedstatedir=$ac_optarg ;;
1187
1188  -site | --site | --sit)
1189    ac_prev=site ;;
1190  -site=* | --site=* | --sit=*)
1191    site=$ac_optarg ;;
1192
1193  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194    ac_prev=srcdir ;;
1195  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196    srcdir=$ac_optarg ;;
1197
1198  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199  | --syscon | --sysco | --sysc | --sys | --sy)
1200    ac_prev=sysconfdir ;;
1201  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203    sysconfdir=$ac_optarg ;;
1204
1205  -target | --target | --targe | --targ | --tar | --ta | --t)
1206    ac_prev=target_alias ;;
1207  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208    target_alias=$ac_optarg ;;
1209
1210  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211    verbose=yes ;;
1212
1213  -version | --version | --versio | --versi | --vers | -V)
1214    ac_init_version=: ;;
1215
1216  -with-* | --with-*)
1217    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218    # Reject names that are not valid shell variable names.
1219    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221   { (exit 1); exit 1; }; }
1222    ac_useropt_orig=$ac_useropt
1223    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224    case $ac_user_opts in
1225      *"
1226"with_$ac_useropt"
1227"*) ;;
1228      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229	 ac_unrecognized_sep=', ';;
1230    esac
1231    eval with_$ac_useropt=\$ac_optarg ;;
1232
1233  -without-* | --without-*)
1234    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235    # Reject names that are not valid shell variable names.
1236    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1238   { (exit 1); exit 1; }; }
1239    ac_useropt_orig=$ac_useropt
1240    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241    case $ac_user_opts in
1242      *"
1243"with_$ac_useropt"
1244"*) ;;
1245      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246	 ac_unrecognized_sep=', ';;
1247    esac
1248    eval with_$ac_useropt=no ;;
1249
1250  --x)
1251    # Obsolete; use --with-x.
1252    with_x=yes ;;
1253
1254  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255  | --x-incl | --x-inc | --x-in | --x-i)
1256    ac_prev=x_includes ;;
1257  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259    x_includes=$ac_optarg ;;
1260
1261  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263    ac_prev=x_libraries ;;
1264  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266    x_libraries=$ac_optarg ;;
1267
1268  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1269Try \`$0 --help' for more information." >&2
1270   { (exit 1); exit 1; }; }
1271    ;;
1272
1273  *=*)
1274    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275    # Reject names that are not valid shell variable names.
1276    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278   { (exit 1); exit 1; }; }
1279    eval $ac_envvar=\$ac_optarg
1280    export $ac_envvar ;;
1281
1282  *)
1283    # FIXME: should be removed in autoconf 3.0.
1284    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288    ;;
1289
1290  esac
1291done
1292
1293if test -n "$ac_prev"; then
1294  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1296   { (exit 1); exit 1; }; }
1297fi
1298
1299if test -n "$ac_unrecognized_opts"; then
1300  case $enable_option_checking in
1301    no) ;;
1302    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1303   { (exit 1); exit 1; }; } ;;
1304    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305  esac
1306fi
1307
1308# Check all directory arguments for consistency.
1309for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310		datadir sysconfdir sharedstatedir localstatedir includedir \
1311		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312		libdir localedir mandir
1313do
1314  eval ac_val=\$$ac_var
1315  # Remove trailing slashes.
1316  case $ac_val in
1317    */ )
1318      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319      eval $ac_var=\$ac_val;;
1320  esac
1321  # Be sure to have absolute directory names.
1322  case $ac_val in
1323    [\\/$]* | ?:[\\/]* )  continue;;
1324    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325  esac
1326  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1327   { (exit 1); exit 1; }; }
1328done
1329
1330# There might be people who depend on the old broken behavior: `$host'
1331# used to hold the argument of --host etc.
1332# FIXME: To remove some day.
1333build=$build_alias
1334host=$host_alias
1335target=$target_alias
1336
1337# FIXME: To remove some day.
1338if test "x$host_alias" != x; then
1339  if test "x$build_alias" = x; then
1340    cross_compiling=maybe
1341    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342    If a cross compiler is detected then cross compile mode will be used." >&2
1343  elif test "x$build_alias" != "x$host_alias"; then
1344    cross_compiling=yes
1345  fi
1346fi
1347
1348ac_tool_prefix=
1349test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351test "$silent" = yes && exec 6>/dev/null
1352
1353
1354ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355ac_ls_di=`ls -di .` &&
1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1358   { (exit 1); exit 1; }; }
1359test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1361   { (exit 1); exit 1; }; }
1362
1363
1364# Find the source files, if location was not specified.
1365if test -z "$srcdir"; then
1366  ac_srcdir_defaulted=yes
1367  # Try the directory containing this script, then the parent directory.
1368  ac_confdir=`$as_dirname -- "$as_myself" ||
1369$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370	 X"$as_myself" : 'X\(//\)[^/]' \| \
1371	 X"$as_myself" : 'X\(//\)$' \| \
1372	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373$as_echo X"$as_myself" |
1374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375	    s//\1/
1376	    q
1377	  }
1378	  /^X\(\/\/\)[^/].*/{
1379	    s//\1/
1380	    q
1381	  }
1382	  /^X\(\/\/\)$/{
1383	    s//\1/
1384	    q
1385	  }
1386	  /^X\(\/\).*/{
1387	    s//\1/
1388	    q
1389	  }
1390	  s/.*/./; q'`
1391  srcdir=$ac_confdir
1392  if test ! -r "$srcdir/$ac_unique_file"; then
1393    srcdir=..
1394  fi
1395else
1396  ac_srcdir_defaulted=no
1397fi
1398if test ! -r "$srcdir/$ac_unique_file"; then
1399  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1401   { (exit 1); exit 1; }; }
1402fi
1403ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404ac_abs_confdir=`(
1405	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1406   { (exit 1); exit 1; }; }
1407	pwd)`
1408# When building in place, set srcdir=.
1409if test "$ac_abs_confdir" = "$ac_pwd"; then
1410  srcdir=.
1411fi
1412# Remove unnecessary trailing slashes from srcdir.
1413# Double slashes in file names in object file debugging info
1414# mess up M-x gdb in Emacs.
1415case $srcdir in
1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417esac
1418for ac_var in $ac_precious_vars; do
1419  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420  eval ac_env_${ac_var}_value=\$${ac_var}
1421  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429  # Omit some internal or obsolete options to make the list less imposing.
1430  # This message is too long to be a string in the A/UX 3.1 sh.
1431  cat <<_ACEOF
1432\`configure' configures this package to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442  -h, --help              display this help and exit
1443      --help=short        display options specific to this package
1444      --help=recursive    display the short help of all the included packages
1445  -V, --version           display version information and exit
1446  -q, --quiet, --silent   do not print \`checking...' messages
1447      --cache-file=FILE   cache test results in FILE [disabled]
1448  -C, --config-cache      alias for \`--cache-file=config.cache'
1449  -n, --no-create         do not create output files
1450      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452Installation directories:
1453  --prefix=PREFIX         install architecture-independent files in PREFIX
1454                          [$ac_default_prefix]
1455  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                          [PREFIX]
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
1466  --bindir=DIR            user executables [EPREFIX/bin]
1467  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1468  --libexecdir=DIR        program executables [EPREFIX/libexec]
1469  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1470  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1471  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1472  --libdir=DIR            object code libraries [EPREFIX/lib]
1473  --includedir=DIR        C header files [PREFIX/include]
1474  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1475  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1476  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1477  --infodir=DIR           info documentation [DATAROOTDIR/info]
1478  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1479  --mandir=DIR            man documentation [DATAROOTDIR/man]
1480  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1481  --htmldir=DIR           html documentation [DOCDIR]
1482  --dvidir=DIR            dvi documentation [DOCDIR]
1483  --pdfdir=DIR            pdf documentation [DOCDIR]
1484  --psdir=DIR             ps documentation [DOCDIR]
1485_ACEOF
1486
1487  cat <<\_ACEOF
1488
1489Program names:
1490  --program-prefix=PREFIX            prepend PREFIX to installed program names
1491  --program-suffix=SUFFIX            append SUFFIX to installed program names
1492  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1493
1494System types:
1495  --build=BUILD     configure for building on BUILD [guessed]
1496  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497  --target=TARGET   configure for building compilers for TARGET [HOST]
1498_ACEOF
1499fi
1500
1501if test -n "$ac_init_help"; then
1502
1503  cat <<\_ACEOF
1504
1505Optional Features:
1506  --disable-option-checking  ignore unrecognized --enable/--with options
1507  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1508  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1509  --enable-cmulocal       enable local mods for CMU [[no]]
1510  --enable-sample         compile sample code [[yes]]
1511  --enable-obsolete_cram_attr
1512                          enable support for cmusaslsecretCRAM-MD5 auxprop
1513                          property [[yes]]
1514  --disable-dependency-tracking  speeds up one-time build
1515  --enable-dependency-tracking   do not reject slow dependency extractors
1516  --enable-static=PKGS  build static libraries default=no
1517  --enable-shared=PKGS  build shared libraries default=yes
1518  --enable-fast-install=PKGS  optimize for fast installation default=yes
1519  --disable-libtool-lock  avoid locking (might break parallel builds)
1520  --enable-staticdlopen   try dynamic plugins when we are a static libsasl [no]
1521  --enable-java           compile Java support [no]
1522  --enable-keep-db-open   keep handle to Berkeley DB open for improved performance [no]
1523  --enable-alwaystrue     enable the alwaystrue password verifier (discouraged)
1524  --enable-checkapop      enable use of sasl_checkapop [yes]
1525  --enable-cram           enable CRAM-MD5 authentication [yes]
1526  --enable-digest         enable DIGEST-MD5 authentication [yes]
1527  --enable-scram            enable SCRAM authentication [yes]
1528  --enable-otp            enable OTP authentication [yes]
1529  --enable-srp            enable SRP authentication [no]
1530  --enable-srp-setpass    enable setting SRP secrets with saslpasswd [no]
1531  --enable-krb4           enable KERBEROS_V4 authentication [no]
1532  --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
1533  --enable-gss_mutexes     use mutexes around calls to the GSS library
1534  --enable-plain          enable PLAIN authentication yes
1535  --enable-anon           enable ANONYMOUS authentication [yes]
1536  --enable-login          enable unsupported LOGIN authentication [no]
1537  --enable-ntlm           enable unsupported NTLM authentication [no]
1538  --enable-passdss        enable PASSDSS authentication (experimental) [no]
1539  --enable-sql            enable SQL auxprop [no]
1540  --enable-ldapdb         enable LDAPDB plugin no
1541  --disable-macos-framework       disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no]
1542
1543Optional Packages:
1544  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546
1547  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1548  --with-purecov          link with purecov
1549  --with-purify           link with purify
1550  --with-javabase=PATH    set path to find jni.h in /usr/java/include
1551  --with-dbpath=PATH      set the DB path to use /etc/sasldb2
1552  --with-dblib=DBLIB      set the DB library to use berkeley
1553  --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
1554  --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
1555  --with-gdbm=PATH        use gdbm from PATH
1556  --with-devrandom=PATH   set the path to /dev/random [/dev/random]
1557  --with-pam=DIR          use PAM (rooted in DIR) [yes]
1558  --with-saslauthd=DIR    enable use of the saslauth daemon using state dir DIR
1559  --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes]
1560  --with-pwcheck=DIR     enable deprecated pwcheck daemon using statedir DIR
1561  --with-ipctype={unix,doors}    use ipctype [unix]
1562  --with-lib-subdir=DIR   Find libraries in DIR instead of lib
1563  --with-openssl=PATH     use OpenSSL from PATH
1564  --with-des=DIR          with DES (look in DIR) yes
1565  --with-opie=PATH        use OPIE (One Time Passwords in Everything) from PATH
1566  --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1567                          choose specific GSSAPI implementation [[auto]]
1568  --with-ldap=DIR         use LDAP (in DIR) for saslauthd no
1569  --with-mysql=PATH       use MySQL from PATH
1570  --with-pgsql=PATH       use PostgreSQL from PATH
1571  --with-sqlite=PATH       use SQLite from PATH
1572  --with-sqlite3=PATH       use SQLite3 from PATH
1573  --with-plugindir=DIR    set the directory where plugins will
1574                          be found [/usr/lib/sasl2]
1575   --with-configdir=DIR    set the directory where config files will
1576                          be found /usr/lib/sasl2
1577  --with-rc4              use internal rc4 routines [yes]
1578  --with-dmalloc=DIR      with DMALLOC support (for test applications) [no]
1579  --with-sfio=DIR         with SFIO support (for smtptest/libsfsasl) [no]
1580
1581Some influential environment variables:
1582  CC          C compiler command
1583  CFLAGS      C compiler flags
1584  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1585              nonstandard directory <lib dir>
1586  LIBS        libraries to pass to the linker, e.g. -l<library>
1587  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1588              you have headers in a nonstandard directory <include dir>
1589  CPP         C preprocessor
1590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
1594_ACEOF
1595ac_status=$?
1596fi
1597
1598if test "$ac_init_help" = "recursive"; then
1599  # If there are subdirs, report their specific --help.
1600  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601    test -d "$ac_dir" ||
1602      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1603      continue
1604    ac_builddir=.
1605
1606case "$ac_dir" in
1607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608*)
1609  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1610  # A ".." for each directory in $ac_dir_suffix.
1611  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1612  case $ac_top_builddir_sub in
1613  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615  esac ;;
1616esac
1617ac_abs_top_builddir=$ac_pwd
1618ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619# for backward compatibility:
1620ac_top_builddir=$ac_top_build_prefix
1621
1622case $srcdir in
1623  .)  # We are building in place.
1624    ac_srcdir=.
1625    ac_top_srcdir=$ac_top_builddir_sub
1626    ac_abs_top_srcdir=$ac_pwd ;;
1627  [\\/]* | ?:[\\/]* )  # Absolute name.
1628    ac_srcdir=$srcdir$ac_dir_suffix;
1629    ac_top_srcdir=$srcdir
1630    ac_abs_top_srcdir=$srcdir ;;
1631  *) # Relative name.
1632    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633    ac_top_srcdir=$ac_top_build_prefix$srcdir
1634    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635esac
1636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637
1638    cd "$ac_dir" || { ac_status=$?; continue; }
1639    # Check for guested configure.
1640    if test -f "$ac_srcdir/configure.gnu"; then
1641      echo &&
1642      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643    elif test -f "$ac_srcdir/configure"; then
1644      echo &&
1645      $SHELL "$ac_srcdir/configure" --help=recursive
1646    else
1647      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648    fi || ac_status=$?
1649    cd "$ac_pwd" || { ac_status=$?; break; }
1650  done
1651fi
1652
1653test -n "$ac_init_help" && exit $ac_status
1654if $ac_init_version; then
1655  cat <<\_ACEOF
1656configure
1657generated by GNU Autoconf 2.63
1658
1659Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1661This configure script is free software; the Free Software Foundation
1662gives unlimited permission to copy, distribute and modify it.
1663_ACEOF
1664  exit
1665fi
1666cat >config.log <<_ACEOF
1667This file contains any messages produced by compilers while
1668running configure, to aid debugging if configure makes a mistake.
1669
1670It was created by $as_me, which was
1671generated by GNU Autoconf 2.63.  Invocation command line was
1672
1673  $ $0 $@
1674
1675_ACEOF
1676exec 5>>config.log
1677{
1678cat <<_ASUNAME
1679## --------- ##
1680## Platform. ##
1681## --------- ##
1682
1683hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688
1689/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1691
1692/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1693/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1694/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1696/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1697/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1698/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1699
1700_ASUNAME
1701
1702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703for as_dir in $PATH
1704do
1705  IFS=$as_save_IFS
1706  test -z "$as_dir" && as_dir=.
1707  $as_echo "PATH: $as_dir"
1708done
1709IFS=$as_save_IFS
1710
1711} >&5
1712
1713cat >&5 <<_ACEOF
1714
1715
1716## ----------- ##
1717## Core tests. ##
1718## ----------- ##
1719
1720_ACEOF
1721
1722
1723# Keep a trace of the command line.
1724# Strip out --no-create and --no-recursion so they do not pile up.
1725# Strip out --silent because we don't want to record it for future runs.
1726# Also quote any args containing shell meta-characters.
1727# Make two passes to allow for proper duplicate-argument suppression.
1728ac_configure_args=
1729ac_configure_args0=
1730ac_configure_args1=
1731ac_must_keep_next=false
1732for ac_pass in 1 2
1733do
1734  for ac_arg
1735  do
1736    case $ac_arg in
1737    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739    | -silent | --silent | --silen | --sile | --sil)
1740      continue ;;
1741    *\'*)
1742      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743    esac
1744    case $ac_pass in
1745    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746    2)
1747      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1748      if test $ac_must_keep_next = true; then
1749	ac_must_keep_next=false # Got value, back to normal.
1750      else
1751	case $ac_arg in
1752	  *=* | --config-cache | -C | -disable-* | --disable-* \
1753	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755	  | -with-* | --with-* | -without-* | --without-* | --x)
1756	    case "$ac_configure_args0 " in
1757	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758	    esac
1759	    ;;
1760	  -* ) ac_must_keep_next=true ;;
1761	esac
1762      fi
1763      ac_configure_args="$ac_configure_args '$ac_arg'"
1764      ;;
1765    esac
1766  done
1767done
1768$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1769$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770
1771# When interrupted or exit'd, cleanup temporary files, and complete
1772# config.log.  We remove comments because anyway the quotes in there
1773# would cause problems or look ugly.
1774# WARNING: Use '\'' to represent an apostrophe within the trap.
1775# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1776trap 'exit_status=$?
1777  # Save into config.log some information that might help in debugging.
1778  {
1779    echo
1780
1781    cat <<\_ASBOX
1782## ---------------- ##
1783## Cache variables. ##
1784## ---------------- ##
1785_ASBOX
1786    echo
1787    # The following way of writing the cache mishandles newlines in values,
1788(
1789  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790    eval ac_val=\$$ac_var
1791    case $ac_val in #(
1792    *${as_nl}*)
1793      case $ac_var in #(
1794      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1795$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1796      esac
1797      case $ac_var in #(
1798      _ | IFS | as_nl) ;; #(
1799      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1800      *) $as_unset $ac_var ;;
1801      esac ;;
1802    esac
1803  done
1804  (set) 2>&1 |
1805    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806    *${as_nl}ac_space=\ *)
1807      sed -n \
1808	"s/'\''/'\''\\\\'\'''\''/g;
1809	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810      ;; #(
1811    *)
1812      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813      ;;
1814    esac |
1815    sort
1816)
1817    echo
1818
1819    cat <<\_ASBOX
1820## ----------------- ##
1821## Output variables. ##
1822## ----------------- ##
1823_ASBOX
1824    echo
1825    for ac_var in $ac_subst_vars
1826    do
1827      eval ac_val=\$$ac_var
1828      case $ac_val in
1829      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830      esac
1831      $as_echo "$ac_var='\''$ac_val'\''"
1832    done | sort
1833    echo
1834
1835    if test -n "$ac_subst_files"; then
1836      cat <<\_ASBOX
1837## ------------------- ##
1838## File substitutions. ##
1839## ------------------- ##
1840_ASBOX
1841      echo
1842      for ac_var in $ac_subst_files
1843      do
1844	eval ac_val=\$$ac_var
1845	case $ac_val in
1846	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847	esac
1848	$as_echo "$ac_var='\''$ac_val'\''"
1849      done | sort
1850      echo
1851    fi
1852
1853    if test -s confdefs.h; then
1854      cat <<\_ASBOX
1855## ----------- ##
1856## confdefs.h. ##
1857## ----------- ##
1858_ASBOX
1859      echo
1860      cat confdefs.h
1861      echo
1862    fi
1863    test "$ac_signal" != 0 &&
1864      $as_echo "$as_me: caught signal $ac_signal"
1865    $as_echo "$as_me: exit $exit_status"
1866  } >&5
1867  rm -f core *.core core.conftest.* &&
1868    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869    exit $exit_status
1870' 0
1871for ac_signal in 1 2 13 15; do
1872  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873done
1874ac_signal=0
1875
1876# confdefs.h avoids OS command line length limits that DEFS can exceed.
1877rm -f -r conftest* confdefs.h
1878
1879# Predefined preprocessor variables.
1880
1881cat >>confdefs.h <<_ACEOF
1882#define PACKAGE_NAME "$PACKAGE_NAME"
1883_ACEOF
1884
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888_ACEOF
1889
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_VERSION "$PACKAGE_VERSION"
1893_ACEOF
1894
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_STRING "$PACKAGE_STRING"
1898_ACEOF
1899
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903_ACEOF
1904
1905
1906# Let the site file select an alternate cache file if it wants to.
1907# Prefer an explicitly selected file to automatically selected ones.
1908ac_site_file1=NONE
1909ac_site_file2=NONE
1910if test -n "$CONFIG_SITE"; then
1911  ac_site_file1=$CONFIG_SITE
1912elif test "x$prefix" != xNONE; then
1913  ac_site_file1=$prefix/share/config.site
1914  ac_site_file2=$prefix/etc/config.site
1915else
1916  ac_site_file1=$ac_default_prefix/share/config.site
1917  ac_site_file2=$ac_default_prefix/etc/config.site
1918fi
1919for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1920do
1921  test "x$ac_site_file" = xNONE && continue
1922  if test -r "$ac_site_file"; then
1923    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1925    sed 's/^/| /' "$ac_site_file" >&5
1926    . "$ac_site_file"
1927  fi
1928done
1929
1930if test -r "$cache_file"; then
1931  # Some versions of bash will fail to source /dev/null (special
1932  # files actually), so we avoid doing that.
1933  if test -f "$cache_file"; then
1934    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935$as_echo "$as_me: loading cache $cache_file" >&6;}
1936    case $cache_file in
1937      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938      *)                      . "./$cache_file";;
1939    esac
1940  fi
1941else
1942  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943$as_echo "$as_me: creating cache $cache_file" >&6;}
1944  >$cache_file
1945fi
1946
1947# Check that the precious variables saved in the cache have kept the same
1948# value.
1949ac_cache_corrupted=false
1950for ac_var in $ac_precious_vars; do
1951  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952  eval ac_new_set=\$ac_env_${ac_var}_set
1953  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954  eval ac_new_val=\$ac_env_${ac_var}_value
1955  case $ac_old_set,$ac_new_set in
1956    set,)
1957      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959      ac_cache_corrupted=: ;;
1960    ,set)
1961      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963      ac_cache_corrupted=: ;;
1964    ,);;
1965    *)
1966      if test "x$ac_old_val" != "x$ac_new_val"; then
1967	# differences in whitespace do not lead to failure.
1968	ac_old_val_w=`echo x $ac_old_val`
1969	ac_new_val_w=`echo x $ac_new_val`
1970	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973	  ac_cache_corrupted=:
1974	else
1975	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977	  eval $ac_var=\$ac_old_val
1978	fi
1979	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1980$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1981	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1982$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1983      fi;;
1984  esac
1985  # Pass precious variables to config.status.
1986  if test "$ac_new_set" = set; then
1987    case $ac_new_val in
1988    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989    *) ac_arg=$ac_var=$ac_new_val ;;
1990    esac
1991    case " $ac_configure_args " in
1992      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1993      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994    esac
1995  fi
1996done
1997if $ac_cache_corrupted; then
1998  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2004   { (exit 1); exit 1; }; }
2005fi
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028
2029
2030
2031
2032if test $cache_file = "/dev/null"; then
2033cache_file="./config.cache"
2034if test -r "$cache_file"; then
2035  # Some versions of bash will fail to source /dev/null (special
2036  # files actually), so we avoid doing that.
2037  if test -f "$cache_file"; then
2038    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2039$as_echo "$as_me: loading cache $cache_file" >&6;}
2040    case $cache_file in
2041      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2042      *)                      . "./$cache_file";;
2043    esac
2044  fi
2045else
2046  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2047$as_echo "$as_me: creating cache $cache_file" >&6;}
2048  >$cache_file
2049fi
2050
2051fi
2052
2053ac_aux_dir=
2054for ac_dir in config "$srcdir"/config; do
2055  if test -f "$ac_dir/install-sh"; then
2056    ac_aux_dir=$ac_dir
2057    ac_install_sh="$ac_aux_dir/install-sh -c"
2058    break
2059  elif test -f "$ac_dir/install.sh"; then
2060    ac_aux_dir=$ac_dir
2061    ac_install_sh="$ac_aux_dir/install.sh -c"
2062    break
2063  elif test -f "$ac_dir/shtool"; then
2064    ac_aux_dir=$ac_dir
2065    ac_install_sh="$ac_aux_dir/shtool install -c"
2066    break
2067  fi
2068done
2069if test -z "$ac_aux_dir"; then
2070  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2071$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2072   { (exit 1); exit 1; }; }
2073fi
2074
2075# These three variables are undocumented and unsupported,
2076# and are intended to be withdrawn in a future Autoconf release.
2077# They can cause serious problems if a builder's source tree is in a directory
2078# whose full name contains unusual characters.
2079ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2080ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2081ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2082
2083
2084# Make sure we can run config.sub.
2085$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2086  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2087$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2088   { (exit 1); exit 1; }; }
2089
2090{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2091$as_echo_n "checking build system type... " >&6; }
2092if test "${ac_cv_build+set}" = set; then
2093  $as_echo_n "(cached) " >&6
2094else
2095  ac_build_alias=$build_alias
2096test "x$ac_build_alias" = x &&
2097  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2098test "x$ac_build_alias" = x &&
2099  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2100$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2101   { (exit 1); exit 1; }; }
2102ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2104$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2105   { (exit 1); exit 1; }; }
2106
2107fi
2108{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2109$as_echo "$ac_cv_build" >&6; }
2110case $ac_cv_build in
2111*-*-*) ;;
2112*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2113$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2114   { (exit 1); exit 1; }; };;
2115esac
2116build=$ac_cv_build
2117ac_save_IFS=$IFS; IFS='-'
2118set x $ac_cv_build
2119shift
2120build_cpu=$1
2121build_vendor=$2
2122shift; shift
2123# Remember, the first character of IFS is used to create $*,
2124# except with old shells:
2125build_os=$*
2126IFS=$ac_save_IFS
2127case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2128
2129
2130{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2131$as_echo_n "checking host system type... " >&6; }
2132if test "${ac_cv_host+set}" = set; then
2133  $as_echo_n "(cached) " >&6
2134else
2135  if test "x$host_alias" = x; then
2136  ac_cv_host=$ac_cv_build
2137else
2138  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2139    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2140$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2141   { (exit 1); exit 1; }; }
2142fi
2143
2144fi
2145{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2146$as_echo "$ac_cv_host" >&6; }
2147case $ac_cv_host in
2148*-*-*) ;;
2149*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2150$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2151   { (exit 1); exit 1; }; };;
2152esac
2153host=$ac_cv_host
2154ac_save_IFS=$IFS; IFS='-'
2155set x $ac_cv_host
2156shift
2157host_cpu=$1
2158host_vendor=$2
2159shift; shift
2160# Remember, the first character of IFS is used to create $*,
2161# except with old shells:
2162host_os=$*
2163IFS=$ac_save_IFS
2164case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2165
2166
2167{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2168$as_echo_n "checking target system type... " >&6; }
2169if test "${ac_cv_target+set}" = set; then
2170  $as_echo_n "(cached) " >&6
2171else
2172  if test "x$target_alias" = x; then
2173  ac_cv_target=$ac_cv_host
2174else
2175  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2176    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2177$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2178   { (exit 1); exit 1; }; }
2179fi
2180
2181fi
2182{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2183$as_echo "$ac_cv_target" >&6; }
2184case $ac_cv_target in
2185*-*-*) ;;
2186*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2187$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2188   { (exit 1); exit 1; }; };;
2189esac
2190target=$ac_cv_target
2191ac_save_IFS=$IFS; IFS='-'
2192set x $ac_cv_target
2193shift
2194target_cpu=$1
2195target_vendor=$2
2196shift; shift
2197# Remember, the first character of IFS is used to create $*,
2198# except with old shells:
2199target_os=$*
2200IFS=$ac_save_IFS
2201case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2202
2203
2204# The aliases save the names the user supplied, while $host etc.
2205# will get canonicalized.
2206test -n "$target_alias" &&
2207  test "$program_prefix$program_suffix$program_transform_name" = \
2208    NONENONEs,x,x, &&
2209  program_prefix=${target_alias}-
2210
2211am__api_version='1.11'
2212
2213# Find a good install program.  We prefer a C program (faster),
2214# so one script is as good as another.  But avoid the broken or
2215# incompatible versions:
2216# SysV /etc/install, /usr/sbin/install
2217# SunOS /usr/etc/install
2218# IRIX /sbin/install
2219# AIX /bin/install
2220# AmigaOS /C/install, which installs bootblocks on floppy discs
2221# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2222# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2223# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2224# OS/2's system install, which has a completely different semantic
2225# ./install, which can be erroneously created by make from ./install.sh.
2226# Reject install programs that cannot install multiple files.
2227{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2228$as_echo_n "checking for a BSD-compatible install... " >&6; }
2229if test -z "$INSTALL"; then
2230if test "${ac_cv_path_install+set}" = set; then
2231  $as_echo_n "(cached) " >&6
2232else
2233  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234for as_dir in $PATH
2235do
2236  IFS=$as_save_IFS
2237  test -z "$as_dir" && as_dir=.
2238  # Account for people who put trailing slashes in PATH elements.
2239case $as_dir/ in
2240  ./ | .// | /cC/* | \
2241  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2242  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2243  /usr/ucb/* ) ;;
2244  *)
2245    # OSF1 and SCO ODT 3.0 have their own names for install.
2246    # Don't use installbsd from OSF since it installs stuff as root
2247    # by default.
2248    for ac_prog in ginstall scoinst install; do
2249      for ac_exec_ext in '' $ac_executable_extensions; do
2250	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2251	  if test $ac_prog = install &&
2252	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253	    # AIX install.  It has an incompatible calling convention.
2254	    :
2255	  elif test $ac_prog = install &&
2256	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2257	    # program-specific install script used by HP pwplus--don't use.
2258	    :
2259	  else
2260	    rm -rf conftest.one conftest.two conftest.dir
2261	    echo one > conftest.one
2262	    echo two > conftest.two
2263	    mkdir conftest.dir
2264	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2265	      test -s conftest.one && test -s conftest.two &&
2266	      test -s conftest.dir/conftest.one &&
2267	      test -s conftest.dir/conftest.two
2268	    then
2269	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2270	      break 3
2271	    fi
2272	  fi
2273	fi
2274      done
2275    done
2276    ;;
2277esac
2278
2279done
2280IFS=$as_save_IFS
2281
2282rm -rf conftest.one conftest.two conftest.dir
2283
2284fi
2285  if test "${ac_cv_path_install+set}" = set; then
2286    INSTALL=$ac_cv_path_install
2287  else
2288    # As a last resort, use the slow shell script.  Don't cache a
2289    # value for INSTALL within a source directory, because that will
2290    # break other packages using the cache if that directory is
2291    # removed, or if the value is a relative name.
2292    INSTALL=$ac_install_sh
2293  fi
2294fi
2295{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2296$as_echo "$INSTALL" >&6; }
2297
2298# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2299# It thinks the first close brace ends the variable substitution.
2300test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2301
2302test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2303
2304test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2305
2306{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2307$as_echo_n "checking whether build environment is sane... " >&6; }
2308# Just in case
2309sleep 1
2310echo timestamp > conftest.file
2311# Reject unsafe characters in $srcdir or the absolute working directory
2312# name.  Accept space and tab only in the latter.
2313am_lf='
2314'
2315case `pwd` in
2316  *[\\\"\#\$\&\'\`$am_lf]*)
2317    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2318$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2319   { (exit 1); exit 1; }; };;
2320esac
2321case $srcdir in
2322  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2323    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2324$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2325   { (exit 1); exit 1; }; };;
2326esac
2327
2328# Do `set' in a subshell so we don't clobber the current shell's
2329# arguments.  Must try -L first in case configure is actually a
2330# symlink; some systems play weird games with the mod time of symlinks
2331# (eg FreeBSD returns the mod time of the symlink's containing
2332# directory).
2333if (
2334   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2335   if test "$*" = "X"; then
2336      # -L didn't work.
2337      set X `ls -t "$srcdir/configure" conftest.file`
2338   fi
2339   rm -f conftest.file
2340   if test "$*" != "X $srcdir/configure conftest.file" \
2341      && test "$*" != "X conftest.file $srcdir/configure"; then
2342
2343      # If neither matched, then we have a broken ls.  This can happen
2344      # if, for instance, CONFIG_SHELL is bash and it inherits a
2345      # broken ls alias from the environment.  This has actually
2346      # happened.  Such a system could not be considered "sane".
2347      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2348alias in your environment" >&5
2349$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2350alias in your environment" >&2;}
2351   { (exit 1); exit 1; }; }
2352   fi
2353
2354   test "$2" = conftest.file
2355   )
2356then
2357   # Ok.
2358   :
2359else
2360   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2361Check your system clock" >&5
2362$as_echo "$as_me: error: newly created file is older than distributed files!
2363Check your system clock" >&2;}
2364   { (exit 1); exit 1; }; }
2365fi
2366{ $as_echo "$as_me:$LINENO: result: yes" >&5
2367$as_echo "yes" >&6; }
2368test "$program_prefix" != NONE &&
2369  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2370# Use a double $ so make ignores it.
2371test "$program_suffix" != NONE &&
2372  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2373# Double any \ or $.
2374# By default was `s,x,x', remove it if useless.
2375ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2376program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2377
2378# expand $ac_aux_dir to an absolute path
2379am_aux_dir=`cd $ac_aux_dir && pwd`
2380
2381if test x"${MISSING+set}" != xset; then
2382  case $am_aux_dir in
2383  *\ * | *\	*)
2384    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2385  *)
2386    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2387  esac
2388fi
2389# Use eval to expand $SHELL
2390if eval "$MISSING --run true"; then
2391  am_missing_run="$MISSING --run "
2392else
2393  am_missing_run=
2394  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2395$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2396fi
2397
2398if test x"${install_sh}" != xset; then
2399  case $am_aux_dir in
2400  *\ * | *\	*)
2401    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2402  *)
2403    install_sh="\${SHELL} $am_aux_dir/install-sh"
2404  esac
2405fi
2406
2407# Installed binaries are usually stripped using `strip' when the user
2408# run `make install-strip'.  However `strip' might not be the right
2409# tool to use in cross-compilation environments, therefore Automake
2410# will honor the `STRIP' environment variable to overrule this program.
2411if test "$cross_compiling" != no; then
2412  if test -n "$ac_tool_prefix"; then
2413  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2414set dummy ${ac_tool_prefix}strip; ac_word=$2
2415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2416$as_echo_n "checking for $ac_word... " >&6; }
2417if test "${ac_cv_prog_STRIP+set}" = set; then
2418  $as_echo_n "(cached) " >&6
2419else
2420  if test -n "$STRIP"; then
2421  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426  IFS=$as_save_IFS
2427  test -z "$as_dir" && as_dir=.
2428  for ac_exec_ext in '' $ac_executable_extensions; do
2429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2431    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432    break 2
2433  fi
2434done
2435done
2436IFS=$as_save_IFS
2437
2438fi
2439fi
2440STRIP=$ac_cv_prog_STRIP
2441if test -n "$STRIP"; then
2442  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2443$as_echo "$STRIP" >&6; }
2444else
2445  { $as_echo "$as_me:$LINENO: result: no" >&5
2446$as_echo "no" >&6; }
2447fi
2448
2449
2450fi
2451if test -z "$ac_cv_prog_STRIP"; then
2452  ac_ct_STRIP=$STRIP
2453  # Extract the first word of "strip", so it can be a program name with args.
2454set dummy strip; ac_word=$2
2455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2456$as_echo_n "checking for $ac_word... " >&6; }
2457if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2458  $as_echo_n "(cached) " >&6
2459else
2460  if test -n "$ac_ct_STRIP"; then
2461  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468  for ac_exec_ext in '' $ac_executable_extensions; do
2469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470    ac_cv_prog_ac_ct_STRIP="strip"
2471    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472    break 2
2473  fi
2474done
2475done
2476IFS=$as_save_IFS
2477
2478fi
2479fi
2480ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2481if test -n "$ac_ct_STRIP"; then
2482  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2483$as_echo "$ac_ct_STRIP" >&6; }
2484else
2485  { $as_echo "$as_me:$LINENO: result: no" >&5
2486$as_echo "no" >&6; }
2487fi
2488
2489  if test "x$ac_ct_STRIP" = x; then
2490    STRIP=":"
2491  else
2492    case $cross_compiling:$ac_tool_warned in
2493yes:)
2494{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498    STRIP=$ac_ct_STRIP
2499  fi
2500else
2501  STRIP="$ac_cv_prog_STRIP"
2502fi
2503
2504fi
2505INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2506
2507{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2508$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2509if test -z "$MKDIR_P"; then
2510  if test "${ac_cv_path_mkdir+set}" = set; then
2511  $as_echo_n "(cached) " >&6
2512else
2513  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2515do
2516  IFS=$as_save_IFS
2517  test -z "$as_dir" && as_dir=.
2518  for ac_prog in mkdir gmkdir; do
2519	 for ac_exec_ext in '' $ac_executable_extensions; do
2520	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2521	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2522	     'mkdir (GNU coreutils) '* | \
2523	     'mkdir (coreutils) '* | \
2524	     'mkdir (fileutils) '4.1*)
2525	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2526	       break 3;;
2527	   esac
2528	 done
2529       done
2530done
2531IFS=$as_save_IFS
2532
2533fi
2534
2535  if test "${ac_cv_path_mkdir+set}" = set; then
2536    MKDIR_P="$ac_cv_path_mkdir -p"
2537  else
2538    # As a last resort, use the slow shell script.  Don't cache a
2539    # value for MKDIR_P within a source directory, because that will
2540    # break other packages using the cache if that directory is
2541    # removed, or if the value is a relative name.
2542    test -d ./--version && rmdir ./--version
2543    MKDIR_P="$ac_install_sh -d"
2544  fi
2545fi
2546{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2547$as_echo "$MKDIR_P" >&6; }
2548
2549mkdir_p="$MKDIR_P"
2550case $mkdir_p in
2551  [\\/$]* | ?:[\\/]*) ;;
2552  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2553esac
2554
2555for ac_prog in gawk mawk nawk awk
2556do
2557  # Extract the first word of "$ac_prog", so it can be a program name with args.
2558set dummy $ac_prog; ac_word=$2
2559{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
2561if test "${ac_cv_prog_AWK+set}" = set; then
2562  $as_echo_n "(cached) " >&6
2563else
2564  if test -n "$AWK"; then
2565  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570  IFS=$as_save_IFS
2571  test -z "$as_dir" && as_dir=.
2572  for ac_exec_ext in '' $ac_executable_extensions; do
2573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574    ac_cv_prog_AWK="$ac_prog"
2575    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576    break 2
2577  fi
2578done
2579done
2580IFS=$as_save_IFS
2581
2582fi
2583fi
2584AWK=$ac_cv_prog_AWK
2585if test -n "$AWK"; then
2586  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2587$as_echo "$AWK" >&6; }
2588else
2589  { $as_echo "$as_me:$LINENO: result: no" >&5
2590$as_echo "no" >&6; }
2591fi
2592
2593
2594  test -n "$AWK" && break
2595done
2596
2597{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2598$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2599set x ${MAKE-make}
2600ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2601if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2602  $as_echo_n "(cached) " >&6
2603else
2604  cat >conftest.make <<\_ACEOF
2605SHELL = /bin/sh
2606all:
2607	@echo '@@@%%%=$(MAKE)=@@@%%%'
2608_ACEOF
2609# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2610case `${MAKE-make} -f conftest.make 2>/dev/null` in
2611  *@@@%%%=?*=@@@%%%*)
2612    eval ac_cv_prog_make_${ac_make}_set=yes;;
2613  *)
2614    eval ac_cv_prog_make_${ac_make}_set=no;;
2615esac
2616rm -f conftest.make
2617fi
2618if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2619  { $as_echo "$as_me:$LINENO: result: yes" >&5
2620$as_echo "yes" >&6; }
2621  SET_MAKE=
2622else
2623  { $as_echo "$as_me:$LINENO: result: no" >&5
2624$as_echo "no" >&6; }
2625  SET_MAKE="MAKE=${MAKE-make}"
2626fi
2627
2628rm -rf .tst 2>/dev/null
2629mkdir .tst 2>/dev/null
2630if test -d .tst; then
2631  am__leading_dot=.
2632else
2633  am__leading_dot=_
2634fi
2635rmdir .tst 2>/dev/null
2636
2637if test "`cd $srcdir && pwd`" != "`pwd`"; then
2638  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2639  # is not polluted with repeated "-I."
2640  am__isrc=' -I$(srcdir)'
2641  # test to see if srcdir already configured
2642  if test -f $srcdir/config.status; then
2643    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2644$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2645   { (exit 1); exit 1; }; }
2646  fi
2647fi
2648
2649# test whether we have cygpath
2650if test -z "$CYGPATH_W"; then
2651  if (cygpath --version) >/dev/null 2>/dev/null; then
2652    CYGPATH_W='cygpath -w'
2653  else
2654    CYGPATH_W=echo
2655  fi
2656fi
2657
2658
2659# Define the identity of the package.
2660 PACKAGE=cyrus-sasl
2661 VERSION=2.1.26
2662
2663
2664cat >>confdefs.h <<_ACEOF
2665#define PACKAGE "$PACKAGE"
2666_ACEOF
2667
2668
2669cat >>confdefs.h <<_ACEOF
2670#define VERSION "$VERSION"
2671_ACEOF
2672
2673# Some tools Automake needs.
2674
2675ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2676
2677
2678AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2679
2680
2681AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2682
2683
2684AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2685
2686
2687MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2688
2689# We need awk for the "check" target.  The system "awk" is bad on
2690# some platforms.
2691# Always define AMTAR for backward compatibility.
2692
2693AMTAR=${AMTAR-"${am_missing_run}tar"}
2694
2695am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2696
2697
2698
2699
2700
2701
2702
2703	ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2704
2705
2706# and include our config dir scripts
2707ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
2708
2709DIRS=""
2710
2711# Check whether --enable-cmulocal was given.
2712if test "${enable_cmulocal+set}" = set; then
2713  enableval=$enable_cmulocal;
2714else
2715  enable_cmulocal=no
2716fi
2717
2718
2719# Check whether --enable-sample was given.
2720if test "${enable_sample+set}" = set; then
2721  enableval=$enable_sample; enable_sample=yes
2722fi
2723
2724
2725# Check whether --enable-obsolete_cram_attr was given.
2726if test "${enable_obsolete_cram_attr+set}" = set; then
2727  enableval=$enable_obsolete_cram_attr; enable_obsolete_cram_attr=$enableval
2728else
2729  enable_obsolete_cram_attr=yes
2730fi
2731
2732
2733ac_ext=c
2734ac_cpp='$CPP $CPPFLAGS'
2735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738if test -n "$ac_tool_prefix"; then
2739  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740set dummy ${ac_tool_prefix}gcc; ac_word=$2
2741{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if test "${ac_cv_prog_CC+set}" = set; then
2744  $as_echo_n "(cached) " >&6
2745else
2746  if test -n "$CC"; then
2747  ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752  IFS=$as_save_IFS
2753  test -z "$as_dir" && as_dir=.
2754  for ac_exec_ext in '' $ac_executable_extensions; do
2755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2757    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758    break 2
2759  fi
2760done
2761done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
2768  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2769$as_echo "$CC" >&6; }
2770else
2771  { $as_echo "$as_me:$LINENO: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775
2776fi
2777if test -z "$ac_cv_prog_CC"; then
2778  ac_ct_CC=$CC
2779  # Extract the first word of "gcc", so it can be a program name with args.
2780set dummy gcc; ac_word=$2
2781{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2782$as_echo_n "checking for $ac_word... " >&6; }
2783if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784  $as_echo_n "(cached) " >&6
2785else
2786  if test -n "$ac_ct_CC"; then
2787  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792  IFS=$as_save_IFS
2793  test -z "$as_dir" && as_dir=.
2794  for ac_exec_ext in '' $ac_executable_extensions; do
2795  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796    ac_cv_prog_ac_ct_CC="gcc"
2797    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798    break 2
2799  fi
2800done
2801done
2802IFS=$as_save_IFS
2803
2804fi
2805fi
2806ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807if test -n "$ac_ct_CC"; then
2808  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2809$as_echo "$ac_ct_CC" >&6; }
2810else
2811  { $as_echo "$as_me:$LINENO: result: no" >&5
2812$as_echo "no" >&6; }
2813fi
2814
2815  if test "x$ac_ct_CC" = x; then
2816    CC=""
2817  else
2818    case $cross_compiling:$ac_tool_warned in
2819yes:)
2820{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822ac_tool_warned=yes ;;
2823esac
2824    CC=$ac_ct_CC
2825  fi
2826else
2827  CC="$ac_cv_prog_CC"
2828fi
2829
2830if test -z "$CC"; then
2831          if test -n "$ac_tool_prefix"; then
2832    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2833set dummy ${ac_tool_prefix}cc; ac_word=$2
2834{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if test "${ac_cv_prog_CC+set}" = set; then
2837  $as_echo_n "(cached) " >&6
2838else
2839  if test -n "$CC"; then
2840  ac_cv_prog_CC="$CC" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845  IFS=$as_save_IFS
2846  test -z "$as_dir" && as_dir=.
2847  for ac_exec_ext in '' $ac_executable_extensions; do
2848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849    ac_cv_prog_CC="${ac_tool_prefix}cc"
2850    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851    break 2
2852  fi
2853done
2854done
2855IFS=$as_save_IFS
2856
2857fi
2858fi
2859CC=$ac_cv_prog_CC
2860if test -n "$CC"; then
2861  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2862$as_echo "$CC" >&6; }
2863else
2864  { $as_echo "$as_me:$LINENO: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868
2869  fi
2870fi
2871if test -z "$CC"; then
2872  # Extract the first word of "cc", so it can be a program name with args.
2873set dummy cc; ac_word=$2
2874{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if test "${ac_cv_prog_CC+set}" = set; then
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$CC"; then
2880  ac_cv_prog_CC="$CC" # Let the user override the test.
2881else
2882  ac_prog_rejected=no
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886  IFS=$as_save_IFS
2887  test -z "$as_dir" && as_dir=.
2888  for ac_exec_ext in '' $ac_executable_extensions; do
2889  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2891       ac_prog_rejected=yes
2892       continue
2893     fi
2894    ac_cv_prog_CC="cc"
2895    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899done
2900IFS=$as_save_IFS
2901
2902if test $ac_prog_rejected = yes; then
2903  # We found a bogon in the path, so make sure we never use it.
2904  set dummy $ac_cv_prog_CC
2905  shift
2906  if test $# != 0; then
2907    # We chose a different compiler from the bogus one.
2908    # However, it has the same basename, so the bogon will be chosen
2909    # first if we set CC to just the basename; use the full file name.
2910    shift
2911    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2912  fi
2913fi
2914fi
2915fi
2916CC=$ac_cv_prog_CC
2917if test -n "$CC"; then
2918  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2919$as_echo "$CC" >&6; }
2920else
2921  { $as_echo "$as_me:$LINENO: result: no" >&5
2922$as_echo "no" >&6; }
2923fi
2924
2925
2926fi
2927if test -z "$CC"; then
2928  if test -n "$ac_tool_prefix"; then
2929  for ac_prog in cl.exe
2930  do
2931    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2934$as_echo_n "checking for $ac_word... " >&6; }
2935if test "${ac_cv_prog_CC+set}" = set; then
2936  $as_echo_n "(cached) " >&6
2937else
2938  if test -n "$CC"; then
2939  ac_cv_prog_CC="$CC" # Let the user override the test.
2940else
2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944  IFS=$as_save_IFS
2945  test -z "$as_dir" && as_dir=.
2946  for ac_exec_ext in '' $ac_executable_extensions; do
2947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2949    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950    break 2
2951  fi
2952done
2953done
2954IFS=$as_save_IFS
2955
2956fi
2957fi
2958CC=$ac_cv_prog_CC
2959if test -n "$CC"; then
2960  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2961$as_echo "$CC" >&6; }
2962else
2963  { $as_echo "$as_me:$LINENO: result: no" >&5
2964$as_echo "no" >&6; }
2965fi
2966
2967
2968    test -n "$CC" && break
2969  done
2970fi
2971if test -z "$CC"; then
2972  ac_ct_CC=$CC
2973  for ac_prog in cl.exe
2974do
2975  # Extract the first word of "$ac_prog", so it can be a program name with args.
2976set dummy $ac_prog; ac_word=$2
2977{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$ac_ct_CC"; then
2983  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  test -z "$as_dir" && as_dir=.
2990  for ac_exec_ext in '' $ac_executable_extensions; do
2991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992    ac_cv_prog_ac_ct_CC="$ac_prog"
2993    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997done
2998IFS=$as_save_IFS
2999
3000fi
3001fi
3002ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003if test -n "$ac_ct_CC"; then
3004  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3005$as_echo "$ac_ct_CC" >&6; }
3006else
3007  { $as_echo "$as_me:$LINENO: result: no" >&5
3008$as_echo "no" >&6; }
3009fi
3010
3011
3012  test -n "$ac_ct_CC" && break
3013done
3014
3015  if test "x$ac_ct_CC" = x; then
3016    CC=""
3017  else
3018    case $cross_compiling:$ac_tool_warned in
3019yes:)
3020{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022ac_tool_warned=yes ;;
3023esac
3024    CC=$ac_ct_CC
3025  fi
3026fi
3027
3028fi
3029
3030
3031test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3034See \`config.log' for more details." >&5
3035$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3036See \`config.log' for more details." >&2;}
3037   { (exit 1); exit 1; }; }; }
3038
3039# Provide some information about the compiler.
3040$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3041set X $ac_compile
3042ac_compiler=$2
3043{ (ac_try="$ac_compiler --version >&5"
3044case "(($ac_try" in
3045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046  *) ac_try_echo=$ac_try;;
3047esac
3048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049$as_echo "$ac_try_echo") >&5
3050  (eval "$ac_compiler --version >&5") 2>&5
3051  ac_status=$?
3052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }
3054{ (ac_try="$ac_compiler -v >&5"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3060$as_echo "$ac_try_echo") >&5
3061  (eval "$ac_compiler -v >&5") 2>&5
3062  ac_status=$?
3063  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }
3065{ (ac_try="$ac_compiler -V >&5"
3066case "(($ac_try" in
3067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068  *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3071$as_echo "$ac_try_echo") >&5
3072  (eval "$ac_compiler -V >&5") 2>&5
3073  ac_status=$?
3074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075  (exit $ac_status); }
3076
3077cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h.  */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h.  */
3083
3084int
3085main ()
3086{
3087
3088  ;
3089  return 0;
3090}
3091_ACEOF
3092ac_clean_files_save=$ac_clean_files
3093ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3094# Try to create an executable without -o first, disregard a.out.
3095# It will help us diagnose broken compilers, and finding out an intuition
3096# of exeext.
3097{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3098$as_echo_n "checking for C compiler default output file name... " >&6; }
3099ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100
3101# The possible output files:
3102ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3103
3104ac_rmfiles=
3105for ac_file in $ac_files
3106do
3107  case $ac_file in
3108    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3109    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3110  esac
3111done
3112rm -f $ac_rmfiles
3113
3114if { (ac_try="$ac_link_default"
3115case "(($ac_try" in
3116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117  *) ac_try_echo=$ac_try;;
3118esac
3119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3120$as_echo "$ac_try_echo") >&5
3121  (eval "$ac_link_default") 2>&5
3122  ac_status=$?
3123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; then
3125  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3126# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3127# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3128# so that the user can short-circuit this test for compilers unknown to
3129# Autoconf.
3130for ac_file in $ac_files ''
3131do
3132  test -f "$ac_file" || continue
3133  case $ac_file in
3134    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3135	;;
3136    [ab].out )
3137	# We found the default executable, but exeext='' is most
3138	# certainly right.
3139	break;;
3140    *.* )
3141        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3142	then :; else
3143	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144	fi
3145	# We set ac_cv_exeext here because the later test for it is not
3146	# safe: cross compilers may not add the suffix if given an `-o'
3147	# argument, so we may need to know it at that point already.
3148	# Even if this section looks crufty: it has the advantage of
3149	# actually working.
3150	break;;
3151    * )
3152	break;;
3153  esac
3154done
3155test "$ac_cv_exeext" = no && ac_cv_exeext=
3156
3157else
3158  ac_file=''
3159fi
3160
3161{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3162$as_echo "$ac_file" >&6; }
3163if test -z "$ac_file"; then
3164  $as_echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3170See \`config.log' for more details." >&5
3171$as_echo "$as_me: error: C compiler cannot create executables
3172See \`config.log' for more details." >&2;}
3173   { (exit 77); exit 77; }; }; }
3174fi
3175
3176ac_exeext=$ac_cv_exeext
3177
3178# Check that the compiler produces executables we can run.  If not, either
3179# the compiler is broken, or we cross compile.
3180{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3181$as_echo_n "checking whether the C compiler works... " >&6; }
3182# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3183# If not cross compiling, check that we can run a simple program.
3184if test "$cross_compiling" != yes; then
3185  if { ac_try='./$ac_file'
3186  { (case "(($ac_try" in
3187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188  *) ac_try_echo=$ac_try;;
3189esac
3190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3191$as_echo "$ac_try_echo") >&5
3192  (eval "$ac_try") 2>&5
3193  ac_status=$?
3194  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); }; }; then
3196    cross_compiling=no
3197  else
3198    if test "$cross_compiling" = maybe; then
3199	cross_compiling=yes
3200    else
3201	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3204If you meant to cross compile, use \`--host'.
3205See \`config.log' for more details." >&5
3206$as_echo "$as_me: error: cannot run C compiled programs.
3207If you meant to cross compile, use \`--host'.
3208See \`config.log' for more details." >&2;}
3209   { (exit 1); exit 1; }; }; }
3210    fi
3211  fi
3212fi
3213{ $as_echo "$as_me:$LINENO: result: yes" >&5
3214$as_echo "yes" >&6; }
3215
3216rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3217ac_clean_files=$ac_clean_files_save
3218# Check that the compiler produces executables we can run.  If not, either
3219# the compiler is broken, or we cross compile.
3220{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3221$as_echo_n "checking whether we are cross compiling... " >&6; }
3222{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3223$as_echo "$cross_compiling" >&6; }
3224
3225{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3226$as_echo_n "checking for suffix of executables... " >&6; }
3227if { (ac_try="$ac_link"
3228case "(($ac_try" in
3229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230  *) ac_try_echo=$ac_try;;
3231esac
3232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3233$as_echo "$ac_try_echo") >&5
3234  (eval "$ac_link") 2>&5
3235  ac_status=$?
3236  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237  (exit $ac_status); }; then
3238  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3240# work properly (i.e., refer to `conftest.exe'), while it won't with
3241# `rm'.
3242for ac_file in conftest.exe conftest conftest.*; do
3243  test -f "$ac_file" || continue
3244  case $ac_file in
3245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247	  break;;
3248    * ) break;;
3249  esac
3250done
3251else
3252  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3255See \`config.log' for more details." >&5
3256$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3257See \`config.log' for more details." >&2;}
3258   { (exit 1); exit 1; }; }; }
3259fi
3260
3261rm -f conftest$ac_cv_exeext
3262{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3263$as_echo "$ac_cv_exeext" >&6; }
3264
3265rm -f conftest.$ac_ext
3266EXEEXT=$ac_cv_exeext
3267ac_exeext=$EXEEXT
3268{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3269$as_echo_n "checking for suffix of object files... " >&6; }
3270if test "${ac_cv_objext+set}" = set; then
3271  $as_echo_n "(cached) " >&6
3272else
3273  cat >conftest.$ac_ext <<_ACEOF
3274/* confdefs.h.  */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
3278/* end confdefs.h.  */
3279
3280int
3281main ()
3282{
3283
3284  ;
3285  return 0;
3286}
3287_ACEOF
3288rm -f conftest.o conftest.obj
3289if { (ac_try="$ac_compile"
3290case "(($ac_try" in
3291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292  *) ac_try_echo=$ac_try;;
3293esac
3294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295$as_echo "$ac_try_echo") >&5
3296  (eval "$ac_compile") 2>&5
3297  ac_status=$?
3298  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); }; then
3300  for ac_file in conftest.o conftest.obj conftest.*; do
3301  test -f "$ac_file" || continue;
3302  case $ac_file in
3303    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3304    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3305       break;;
3306  esac
3307done
3308else
3309  $as_echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3315See \`config.log' for more details." >&5
3316$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3317See \`config.log' for more details." >&2;}
3318   { (exit 1); exit 1; }; }; }
3319fi
3320
3321rm -f conftest.$ac_cv_objext conftest.$ac_ext
3322fi
3323{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3324$as_echo "$ac_cv_objext" >&6; }
3325OBJEXT=$ac_cv_objext
3326ac_objext=$OBJEXT
3327{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3328$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3329if test "${ac_cv_c_compiler_gnu+set}" = set; then
3330  $as_echo_n "(cached) " >&6
3331else
3332  cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h.  */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h.  */
3338
3339int
3340main ()
3341{
3342#ifndef __GNUC__
3343       choke me
3344#endif
3345
3346  ;
3347  return 0;
3348}
3349_ACEOF
3350rm -f conftest.$ac_objext
3351if { (ac_try="$ac_compile"
3352case "(($ac_try" in
3353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354  *) ac_try_echo=$ac_try;;
3355esac
3356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357$as_echo "$ac_try_echo") >&5
3358  (eval "$ac_compile") 2>conftest.er1
3359  ac_status=$?
3360  grep -v '^ *+' conftest.er1 >conftest.err
3361  rm -f conftest.er1
3362  cat conftest.err >&5
3363  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); } && {
3365	 test -z "$ac_c_werror_flag" ||
3366	 test ! -s conftest.err
3367       } && test -s conftest.$ac_objext; then
3368  ac_compiler_gnu=yes
3369else
3370  $as_echo "$as_me: failed program was:" >&5
3371sed 's/^/| /' conftest.$ac_ext >&5
3372
3373	ac_compiler_gnu=no
3374fi
3375
3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377ac_cv_c_compiler_gnu=$ac_compiler_gnu
3378
3379fi
3380{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3381$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3382if test $ac_compiler_gnu = yes; then
3383  GCC=yes
3384else
3385  GCC=
3386fi
3387ac_test_CFLAGS=${CFLAGS+set}
3388ac_save_CFLAGS=$CFLAGS
3389{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3390$as_echo_n "checking whether $CC accepts -g... " >&6; }
3391if test "${ac_cv_prog_cc_g+set}" = set; then
3392  $as_echo_n "(cached) " >&6
3393else
3394  ac_save_c_werror_flag=$ac_c_werror_flag
3395   ac_c_werror_flag=yes
3396   ac_cv_prog_cc_g=no
3397   CFLAGS="-g"
3398   cat >conftest.$ac_ext <<_ACEOF
3399/* confdefs.h.  */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h.  */
3404
3405int
3406main ()
3407{
3408
3409  ;
3410  return 0;
3411}
3412_ACEOF
3413rm -f conftest.$ac_objext
3414if { (ac_try="$ac_compile"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420$as_echo "$ac_try_echo") >&5
3421  (eval "$ac_compile") 2>conftest.er1
3422  ac_status=$?
3423  grep -v '^ *+' conftest.er1 >conftest.err
3424  rm -f conftest.er1
3425  cat conftest.err >&5
3426  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); } && {
3428	 test -z "$ac_c_werror_flag" ||
3429	 test ! -s conftest.err
3430       } && test -s conftest.$ac_objext; then
3431  ac_cv_prog_cc_g=yes
3432else
3433  $as_echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436	CFLAGS=""
3437      cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h.  */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h.  */
3443
3444int
3445main ()
3446{
3447
3448  ;
3449  return 0;
3450}
3451_ACEOF
3452rm -f conftest.$ac_objext
3453if { (ac_try="$ac_compile"
3454case "(($ac_try" in
3455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456  *) ac_try_echo=$ac_try;;
3457esac
3458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3459$as_echo "$ac_try_echo") >&5
3460  (eval "$ac_compile") 2>conftest.er1
3461  ac_status=$?
3462  grep -v '^ *+' conftest.er1 >conftest.err
3463  rm -f conftest.er1
3464  cat conftest.err >&5
3465  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); } && {
3467	 test -z "$ac_c_werror_flag" ||
3468	 test ! -s conftest.err
3469       } && test -s conftest.$ac_objext; then
3470  :
3471else
3472  $as_echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475	ac_c_werror_flag=$ac_save_c_werror_flag
3476	 CFLAGS="-g"
3477	 cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h.  */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h.  */
3483
3484int
3485main ()
3486{
3487
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492rm -f conftest.$ac_objext
3493if { (ac_try="$ac_compile"
3494case "(($ac_try" in
3495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496  *) ac_try_echo=$ac_try;;
3497esac
3498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499$as_echo "$ac_try_echo") >&5
3500  (eval "$ac_compile") 2>conftest.er1
3501  ac_status=$?
3502  grep -v '^ *+' conftest.er1 >conftest.err
3503  rm -f conftest.er1
3504  cat conftest.err >&5
3505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); } && {
3507	 test -z "$ac_c_werror_flag" ||
3508	 test ! -s conftest.err
3509       } && test -s conftest.$ac_objext; then
3510  ac_cv_prog_cc_g=yes
3511else
3512  $as_echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515
3516fi
3517
3518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519fi
3520
3521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522fi
3523
3524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525   ac_c_werror_flag=$ac_save_c_werror_flag
3526fi
3527{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3528$as_echo "$ac_cv_prog_cc_g" >&6; }
3529if test "$ac_test_CFLAGS" = set; then
3530  CFLAGS=$ac_save_CFLAGS
3531elif test $ac_cv_prog_cc_g = yes; then
3532  if test "$GCC" = yes; then
3533    CFLAGS="-g -O2"
3534  else
3535    CFLAGS="-g"
3536  fi
3537else
3538  if test "$GCC" = yes; then
3539    CFLAGS="-O2"
3540  else
3541    CFLAGS=
3542  fi
3543fi
3544{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3545$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3546if test "${ac_cv_prog_cc_c89+set}" = set; then
3547  $as_echo_n "(cached) " >&6
3548else
3549  ac_cv_prog_cc_c89=no
3550ac_save_CC=$CC
3551cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h.  */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h.  */
3557#include <stdarg.h>
3558#include <stdio.h>
3559#include <sys/types.h>
3560#include <sys/stat.h>
3561/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3562struct buf { int x; };
3563FILE * (*rcsopen) (struct buf *, struct stat *, int);
3564static char *e (p, i)
3565     char **p;
3566     int i;
3567{
3568  return p[i];
3569}
3570static char *f (char * (*g) (char **, int), char **p, ...)
3571{
3572  char *s;
3573  va_list v;
3574  va_start (v,p);
3575  s = g (p, va_arg (v,int));
3576  va_end (v);
3577  return s;
3578}
3579
3580/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3581   function prototypes and stuff, but not '\xHH' hex character constants.
3582   These don't provoke an error unfortunately, instead are silently treated
3583   as 'x'.  The following induces an error, until -std is added to get
3584   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3585   array size at least.  It's necessary to write '\x00'==0 to get something
3586   that's true only with -std.  */
3587int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3588
3589/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3590   inside strings and character constants.  */
3591#define FOO(x) 'x'
3592int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3593
3594int test (int i, double x);
3595struct s1 {int (*f) (int a);};
3596struct s2 {int (*f) (double a);};
3597int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3598int argc;
3599char **argv;
3600int
3601main ()
3602{
3603return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3604  ;
3605  return 0;
3606}
3607_ACEOF
3608for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3609	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3610do
3611  CC="$ac_save_CC $ac_arg"
3612  rm -f conftest.$ac_objext
3613if { (ac_try="$ac_compile"
3614case "(($ac_try" in
3615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616  *) ac_try_echo=$ac_try;;
3617esac
3618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3619$as_echo "$ac_try_echo") >&5
3620  (eval "$ac_compile") 2>conftest.er1
3621  ac_status=$?
3622  grep -v '^ *+' conftest.er1 >conftest.err
3623  rm -f conftest.er1
3624  cat conftest.err >&5
3625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); } && {
3627	 test -z "$ac_c_werror_flag" ||
3628	 test ! -s conftest.err
3629       } && test -s conftest.$ac_objext; then
3630  ac_cv_prog_cc_c89=$ac_arg
3631else
3632  $as_echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635
3636fi
3637
3638rm -f core conftest.err conftest.$ac_objext
3639  test "x$ac_cv_prog_cc_c89" != "xno" && break
3640done
3641rm -f conftest.$ac_ext
3642CC=$ac_save_CC
3643
3644fi
3645# AC_CACHE_VAL
3646case "x$ac_cv_prog_cc_c89" in
3647  x)
3648    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3649$as_echo "none needed" >&6; } ;;
3650  xno)
3651    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3652$as_echo "unsupported" >&6; } ;;
3653  *)
3654    CC="$CC $ac_cv_prog_cc_c89"
3655    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3656$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3657esac
3658
3659
3660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665DEPDIR="${am__leading_dot}deps"
3666
3667ac_config_commands="$ac_config_commands depfiles"
3668
3669
3670am_make=${MAKE-make}
3671cat > confinc << 'END'
3672am__doit:
3673	@echo this is the am__doit target
3674.PHONY: am__doit
3675END
3676# If we don't find an include directive, just comment out the code.
3677{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3678$as_echo_n "checking for style of include used by $am_make... " >&6; }
3679am__include="#"
3680am__quote=
3681_am_result=none
3682# First try GNU make style include.
3683echo "include confinc" > confmf
3684# Ignore all kinds of additional output from `make'.
3685case `$am_make -s -f confmf 2> /dev/null` in #(
3686*the\ am__doit\ target*)
3687  am__include=include
3688  am__quote=
3689  _am_result=GNU
3690  ;;
3691esac
3692# Now try BSD make style include.
3693if test "$am__include" = "#"; then
3694   echo '.include "confinc"' > confmf
3695   case `$am_make -s -f confmf 2> /dev/null` in #(
3696   *the\ am__doit\ target*)
3697     am__include=.include
3698     am__quote="\""
3699     _am_result=BSD
3700     ;;
3701   esac
3702fi
3703
3704
3705{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3706$as_echo "$_am_result" >&6; }
3707rm -f confinc confmf
3708
3709# Check whether --enable-dependency-tracking was given.
3710if test "${enable_dependency_tracking+set}" = set; then
3711  enableval=$enable_dependency_tracking;
3712fi
3713
3714if test "x$enable_dependency_tracking" != xno; then
3715  am_depcomp="$ac_aux_dir/depcomp"
3716  AMDEPBACKSLASH='\'
3717fi
3718 if test "x$enable_dependency_tracking" != xno; then
3719  AMDEP_TRUE=
3720  AMDEP_FALSE='#'
3721else
3722  AMDEP_TRUE='#'
3723  AMDEP_FALSE=
3724fi
3725
3726
3727
3728depcc="$CC"   am_compiler_list=
3729
3730{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3731$as_echo_n "checking dependency style of $depcc... " >&6; }
3732if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3733  $as_echo_n "(cached) " >&6
3734else
3735  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3736  # We make a subdir and do the tests there.  Otherwise we can end up
3737  # making bogus files that we don't know about and never remove.  For
3738  # instance it was reported that on HP-UX the gcc test will end up
3739  # making a dummy file named `D' -- because `-MD' means `put the output
3740  # in D'.
3741  mkdir conftest.dir
3742  # Copy depcomp to subdir because otherwise we won't find it if we're
3743  # using a relative directory.
3744  cp "$am_depcomp" conftest.dir
3745  cd conftest.dir
3746  # We will build objects and dependencies in a subdirectory because
3747  # it helps to detect inapplicable dependency modes.  For instance
3748  # both Tru64's cc and ICC support -MD to output dependencies as a
3749  # side effect of compilation, but ICC will put the dependencies in
3750  # the current directory while Tru64 will put them in the object
3751  # directory.
3752  mkdir sub
3753
3754  am_cv_CC_dependencies_compiler_type=none
3755  if test "$am_compiler_list" = ""; then
3756     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3757  fi
3758  am__universal=false
3759  case " $depcc " in #(
3760     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3761     esac
3762
3763  for depmode in $am_compiler_list; do
3764    # Setup a source with many dependencies, because some compilers
3765    # like to wrap large dependency lists on column 80 (with \), and
3766    # we should not choose a depcomp mode which is confused by this.
3767    #
3768    # We need to recreate these files for each test, as the compiler may
3769    # overwrite some of them when testing with obscure command lines.
3770    # This happens at least with the AIX C compiler.
3771    : > sub/conftest.c
3772    for i in 1 2 3 4 5 6; do
3773      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3774      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3775      # Solaris 8's {/usr,}/bin/sh.
3776      touch sub/conftst$i.h
3777    done
3778    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3779
3780    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3781    # mode.  It turns out that the SunPro C++ compiler does not properly
3782    # handle `-M -o', and we need to detect this.  Also, some Intel
3783    # versions had trouble with output in subdirs
3784    am__obj=sub/conftest.${OBJEXT-o}
3785    am__minus_obj="-o $am__obj"
3786    case $depmode in
3787    gcc)
3788      # This depmode causes a compiler race in universal mode.
3789      test "$am__universal" = false || continue
3790      ;;
3791    nosideeffect)
3792      # after this tag, mechanisms are not by side-effect, so they'll
3793      # only be used when explicitly requested
3794      if test "x$enable_dependency_tracking" = xyes; then
3795	continue
3796      else
3797	break
3798      fi
3799      ;;
3800    msvisualcpp | msvcmsys)
3801      # This compiler won't grok `-c -o', but also, the minuso test has
3802      # not run yet.  These depmodes are late enough in the game, and
3803      # so weak that their functioning should not be impacted.
3804      am__obj=conftest.${OBJEXT-o}
3805      am__minus_obj=
3806      ;;
3807    none) break ;;
3808    esac
3809    if depmode=$depmode \
3810       source=sub/conftest.c object=$am__obj \
3811       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3812       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3813         >/dev/null 2>conftest.err &&
3814       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3815       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3816       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3817       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3818      # icc doesn't choke on unknown options, it will just issue warnings
3819      # or remarks (even with -Werror).  So we grep stderr for any message
3820      # that says an option was ignored or not supported.
3821      # When given -MP, icc 7.0 and 7.1 complain thusly:
3822      #   icc: Command line warning: ignoring option '-M'; no argument required
3823      # The diagnosis changed in icc 8.0:
3824      #   icc: Command line remark: option '-MP' not supported
3825      if (grep 'ignoring option' conftest.err ||
3826          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3827        am_cv_CC_dependencies_compiler_type=$depmode
3828        break
3829      fi
3830    fi
3831  done
3832
3833  cd ..
3834  rm -rf conftest.dir
3835else
3836  am_cv_CC_dependencies_compiler_type=none
3837fi
3838
3839fi
3840{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3841$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3842CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3843
3844 if
3845  test "x$enable_dependency_tracking" != xno \
3846  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3847  am__fastdepCC_TRUE=
3848  am__fastdepCC_FALSE='#'
3849else
3850  am__fastdepCC_TRUE='#'
3851  am__fastdepCC_FALSE=
3852fi
3853
3854
3855ac_ext=c
3856ac_cpp='$CPP $CPPFLAGS'
3857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3861$as_echo_n "checking how to run the C preprocessor... " >&6; }
3862# On Suns, sometimes $CPP names a directory.
3863if test -n "$CPP" && test -d "$CPP"; then
3864  CPP=
3865fi
3866if test -z "$CPP"; then
3867  if test "${ac_cv_prog_CPP+set}" = set; then
3868  $as_echo_n "(cached) " >&6
3869else
3870      # Double quotes because CPP needs to be expanded
3871    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3872    do
3873      ac_preproc_ok=false
3874for ac_c_preproc_warn_flag in '' yes
3875do
3876  # Use a header file that comes with gcc, so configuring glibc
3877  # with a fresh cross-compiler works.
3878  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879  # <limits.h> exists even on freestanding compilers.
3880  # On the NeXT, cc -E runs the code through the compiler's parser,
3881  # not just through cpp. "Syntax error" is here to catch this case.
3882  cat >conftest.$ac_ext <<_ACEOF
3883/* confdefs.h.  */
3884_ACEOF
3885cat confdefs.h >>conftest.$ac_ext
3886cat >>conftest.$ac_ext <<_ACEOF
3887/* end confdefs.h.  */
3888#ifdef __STDC__
3889# include <limits.h>
3890#else
3891# include <assert.h>
3892#endif
3893		     Syntax error
3894_ACEOF
3895if { (ac_try="$ac_cpp conftest.$ac_ext"
3896case "(($ac_try" in
3897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898  *) ac_try_echo=$ac_try;;
3899esac
3900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3901$as_echo "$ac_try_echo") >&5
3902  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3903  ac_status=$?
3904  grep -v '^ *+' conftest.er1 >conftest.err
3905  rm -f conftest.er1
3906  cat conftest.err >&5
3907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); } >/dev/null && {
3909	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3910	 test ! -s conftest.err
3911       }; then
3912  :
3913else
3914  $as_echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917  # Broken: fails on valid input.
3918continue
3919fi
3920
3921rm -f conftest.err conftest.$ac_ext
3922
3923  # OK, works on sane cases.  Now check whether nonexistent headers
3924  # can be detected and how.
3925  cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h.  */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h.  */
3931#include <ac_nonexistent.h>
3932_ACEOF
3933if { (ac_try="$ac_cpp conftest.$ac_ext"
3934case "(($ac_try" in
3935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936  *) ac_try_echo=$ac_try;;
3937esac
3938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3939$as_echo "$ac_try_echo") >&5
3940  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3941  ac_status=$?
3942  grep -v '^ *+' conftest.er1 >conftest.err
3943  rm -f conftest.er1
3944  cat conftest.err >&5
3945  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); } >/dev/null && {
3947	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3948	 test ! -s conftest.err
3949       }; then
3950  # Broken: success on invalid input.
3951continue
3952else
3953  $as_echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956  # Passes both tests.
3957ac_preproc_ok=:
3958break
3959fi
3960
3961rm -f conftest.err conftest.$ac_ext
3962
3963done
3964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3965rm -f conftest.err conftest.$ac_ext
3966if $ac_preproc_ok; then
3967  break
3968fi
3969
3970    done
3971    ac_cv_prog_CPP=$CPP
3972
3973fi
3974  CPP=$ac_cv_prog_CPP
3975else
3976  ac_cv_prog_CPP=$CPP
3977fi
3978{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3979$as_echo "$CPP" >&6; }
3980ac_preproc_ok=false
3981for ac_c_preproc_warn_flag in '' yes
3982do
3983  # Use a header file that comes with gcc, so configuring glibc
3984  # with a fresh cross-compiler works.
3985  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3986  # <limits.h> exists even on freestanding compilers.
3987  # On the NeXT, cc -E runs the code through the compiler's parser,
3988  # not just through cpp. "Syntax error" is here to catch this case.
3989  cat >conftest.$ac_ext <<_ACEOF
3990/* confdefs.h.  */
3991_ACEOF
3992cat confdefs.h >>conftest.$ac_ext
3993cat >>conftest.$ac_ext <<_ACEOF
3994/* end confdefs.h.  */
3995#ifdef __STDC__
3996# include <limits.h>
3997#else
3998# include <assert.h>
3999#endif
4000		     Syntax error
4001_ACEOF
4002if { (ac_try="$ac_cpp conftest.$ac_ext"
4003case "(($ac_try" in
4004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005  *) ac_try_echo=$ac_try;;
4006esac
4007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4008$as_echo "$ac_try_echo") >&5
4009  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4010  ac_status=$?
4011  grep -v '^ *+' conftest.er1 >conftest.err
4012  rm -f conftest.er1
4013  cat conftest.err >&5
4014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); } >/dev/null && {
4016	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4017	 test ! -s conftest.err
4018       }; then
4019  :
4020else
4021  $as_echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024  # Broken: fails on valid input.
4025continue
4026fi
4027
4028rm -f conftest.err conftest.$ac_ext
4029
4030  # OK, works on sane cases.  Now check whether nonexistent headers
4031  # can be detected and how.
4032  cat >conftest.$ac_ext <<_ACEOF
4033/* confdefs.h.  */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
4037/* end confdefs.h.  */
4038#include <ac_nonexistent.h>
4039_ACEOF
4040if { (ac_try="$ac_cpp conftest.$ac_ext"
4041case "(($ac_try" in
4042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043  *) ac_try_echo=$ac_try;;
4044esac
4045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046$as_echo "$ac_try_echo") >&5
4047  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4048  ac_status=$?
4049  grep -v '^ *+' conftest.er1 >conftest.err
4050  rm -f conftest.er1
4051  cat conftest.err >&5
4052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); } >/dev/null && {
4054	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4055	 test ! -s conftest.err
4056       }; then
4057  # Broken: success on invalid input.
4058continue
4059else
4060  $as_echo "$as_me: failed program was:" >&5
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
4063  # Passes both tests.
4064ac_preproc_ok=:
4065break
4066fi
4067
4068rm -f conftest.err conftest.$ac_ext
4069
4070done
4071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4072rm -f conftest.err conftest.$ac_ext
4073if $ac_preproc_ok; then
4074  :
4075else
4076  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4078{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4079See \`config.log' for more details." >&5
4080$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4081See \`config.log' for more details." >&2;}
4082   { (exit 1); exit 1; }; }; }
4083fi
4084
4085ac_ext=c
4086ac_cpp='$CPP $CPPFLAGS'
4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091for ac_prog in gawk mawk nawk awk
4092do
4093  # Extract the first word of "$ac_prog", so it can be a program name with args.
4094set dummy $ac_prog; ac_word=$2
4095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4096$as_echo_n "checking for $ac_word... " >&6; }
4097if test "${ac_cv_prog_AWK+set}" = set; then
4098  $as_echo_n "(cached) " >&6
4099else
4100  if test -n "$AWK"; then
4101  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4102else
4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106  IFS=$as_save_IFS
4107  test -z "$as_dir" && as_dir=.
4108  for ac_exec_ext in '' $ac_executable_extensions; do
4109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110    ac_cv_prog_AWK="$ac_prog"
4111    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112    break 2
4113  fi
4114done
4115done
4116IFS=$as_save_IFS
4117
4118fi
4119fi
4120AWK=$ac_cv_prog_AWK
4121if test -n "$AWK"; then
4122  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4123$as_echo "$AWK" >&6; }
4124else
4125  { $as_echo "$as_me:$LINENO: result: no" >&5
4126$as_echo "no" >&6; }
4127fi
4128
4129
4130  test -n "$AWK" && break
4131done
4132
4133{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4134$as_echo_n "checking whether ln -s works... " >&6; }
4135LN_S=$as_ln_s
4136if test "$LN_S" = "ln -s"; then
4137  { $as_echo "$as_me:$LINENO: result: yes" >&5
4138$as_echo "yes" >&6; }
4139else
4140  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4141$as_echo "no, using $LN_S" >&6; }
4142fi
4143
4144{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4145$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4146set x ${MAKE-make}
4147ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4148if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4149  $as_echo_n "(cached) " >&6
4150else
4151  cat >conftest.make <<\_ACEOF
4152SHELL = /bin/sh
4153all:
4154	@echo '@@@%%%=$(MAKE)=@@@%%%'
4155_ACEOF
4156# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4157case `${MAKE-make} -f conftest.make 2>/dev/null` in
4158  *@@@%%%=?*=@@@%%%*)
4159    eval ac_cv_prog_make_${ac_make}_set=yes;;
4160  *)
4161    eval ac_cv_prog_make_${ac_make}_set=no;;
4162esac
4163rm -f conftest.make
4164fi
4165if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4166  { $as_echo "$as_me:$LINENO: result: yes" >&5
4167$as_echo "yes" >&6; }
4168  SET_MAKE=
4169else
4170  { $as_echo "$as_me:$LINENO: result: no" >&5
4171$as_echo "no" >&6; }
4172  SET_MAKE="MAKE=${MAKE-make}"
4173fi
4174
4175# Find a good install program.  We prefer a C program (faster),
4176# so one script is as good as another.  But avoid the broken or
4177# incompatible versions:
4178# SysV /etc/install, /usr/sbin/install
4179# SunOS /usr/etc/install
4180# IRIX /sbin/install
4181# AIX /bin/install
4182# AmigaOS /C/install, which installs bootblocks on floppy discs
4183# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4184# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4185# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4186# OS/2's system install, which has a completely different semantic
4187# ./install, which can be erroneously created by make from ./install.sh.
4188# Reject install programs that cannot install multiple files.
4189{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4190$as_echo_n "checking for a BSD-compatible install... " >&6; }
4191if test -z "$INSTALL"; then
4192if test "${ac_cv_path_install+set}" = set; then
4193  $as_echo_n "(cached) " >&6
4194else
4195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH
4197do
4198  IFS=$as_save_IFS
4199  test -z "$as_dir" && as_dir=.
4200  # Account for people who put trailing slashes in PATH elements.
4201case $as_dir/ in
4202  ./ | .// | /cC/* | \
4203  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4204  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4205  /usr/ucb/* ) ;;
4206  *)
4207    # OSF1 and SCO ODT 3.0 have their own names for install.
4208    # Don't use installbsd from OSF since it installs stuff as root
4209    # by default.
4210    for ac_prog in ginstall scoinst install; do
4211      for ac_exec_ext in '' $ac_executable_extensions; do
4212	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4213	  if test $ac_prog = install &&
4214	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4215	    # AIX install.  It has an incompatible calling convention.
4216	    :
4217	  elif test $ac_prog = install &&
4218	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4219	    # program-specific install script used by HP pwplus--don't use.
4220	    :
4221	  else
4222	    rm -rf conftest.one conftest.two conftest.dir
4223	    echo one > conftest.one
4224	    echo two > conftest.two
4225	    mkdir conftest.dir
4226	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4227	      test -s conftest.one && test -s conftest.two &&
4228	      test -s conftest.dir/conftest.one &&
4229	      test -s conftest.dir/conftest.two
4230	    then
4231	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4232	      break 3
4233	    fi
4234	  fi
4235	fi
4236      done
4237    done
4238    ;;
4239esac
4240
4241done
4242IFS=$as_save_IFS
4243
4244rm -rf conftest.one conftest.two conftest.dir
4245
4246fi
4247  if test "${ac_cv_path_install+set}" = set; then
4248    INSTALL=$ac_cv_path_install
4249  else
4250    # As a last resort, use the slow shell script.  Don't cache a
4251    # value for INSTALL within a source directory, because that will
4252    # break other packages using the cache if that directory is
4253    # removed, or if the value is a relative name.
4254    INSTALL=$ac_install_sh
4255  fi
4256fi
4257{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4258$as_echo "$INSTALL" >&6; }
4259
4260# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4261# It thinks the first close brace ends the variable substitution.
4262test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4263
4264test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4265
4266test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4267
4268
4269
4270{ $as_echo "$as_me:$LINENO: checking for __attribute__" >&5
4271$as_echo_n "checking for __attribute__... " >&6; }
4272if test "${ac_cv___attribute__+set}" = set; then
4273  $as_echo_n "(cached) " >&6
4274else
4275
4276cat >conftest.$ac_ext <<_ACEOF
4277/* confdefs.h.  */
4278_ACEOF
4279cat confdefs.h >>conftest.$ac_ext
4280cat >>conftest.$ac_ext <<_ACEOF
4281/* end confdefs.h.  */
4282
4283#include <stdlib.h>
4284static void foo(void) __attribute__ ((noreturn));
4285
4286static void
4287foo(void)
4288{
4289  exit(1);
4290}
4291
4292int
4293main ()
4294{
4295
4296
4297  ;
4298  return 0;
4299}
4300_ACEOF
4301rm -f conftest.$ac_objext
4302if { (ac_try="$ac_compile"
4303case "(($ac_try" in
4304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305  *) ac_try_echo=$ac_try;;
4306esac
4307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4308$as_echo "$ac_try_echo") >&5
4309  (eval "$ac_compile") 2>conftest.er1
4310  ac_status=$?
4311  grep -v '^ *+' conftest.er1 >conftest.err
4312  rm -f conftest.er1
4313  cat conftest.err >&5
4314  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); } && {
4316	 test -z "$ac_c_werror_flag" ||
4317	 test ! -s conftest.err
4318       } && test -s conftest.$ac_objext; then
4319  ac_cv___attribute__=yes
4320else
4321  $as_echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324	ac_cv___attribute__=no
4325fi
4326
4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328fi
4329
4330if test "$ac_cv___attribute__" = "yes"; then
4331
4332cat >>confdefs.h <<\_ACEOF
4333#define HAVE___ATTRIBUTE__ 1
4334_ACEOF
4335
4336fi
4337{ $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4338$as_echo "$ac_cv___attribute__" >&6; }
4339
4340
4341
4342   # CMU GUESS RUNPATH SWITCH
4343  { $as_echo "$as_me:$LINENO: checking for runpath switch" >&5
4344$as_echo_n "checking for runpath switch... " >&6; }
4345if test "${andrew_cv_runpath_switch+set}" = set; then
4346  $as_echo_n "(cached) " >&6
4347else
4348
4349    # first, try -R
4350    SAVE_LDFLAGS="${LDFLAGS}"
4351    LDFLAGS="-R /usr/lib"
4352    cat >conftest.$ac_ext <<_ACEOF
4353/* confdefs.h.  */
4354_ACEOF
4355cat confdefs.h >>conftest.$ac_ext
4356cat >>conftest.$ac_ext <<_ACEOF
4357/* end confdefs.h.  */
4358
4359int
4360main ()
4361{
4362
4363  ;
4364  return 0;
4365}
4366_ACEOF
4367rm -f conftest.$ac_objext conftest$ac_exeext
4368if { (ac_try="$ac_link"
4369case "(($ac_try" in
4370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371  *) ac_try_echo=$ac_try;;
4372esac
4373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4374$as_echo "$ac_try_echo") >&5
4375  (eval "$ac_link") 2>conftest.er1
4376  ac_status=$?
4377  grep -v '^ *+' conftest.er1 >conftest.err
4378  rm -f conftest.er1
4379  cat conftest.err >&5
4380  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381  (exit $ac_status); } && {
4382	 test -z "$ac_c_werror_flag" ||
4383	 test ! -s conftest.err
4384       } && test -s conftest$ac_exeext && {
4385	 test "$cross_compiling" = yes ||
4386	 $as_test_x conftest$ac_exeext
4387       }; then
4388  andrew_cv_runpath_switch="-R"
4389else
4390  $as_echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393
4394  	LDFLAGS="-Wl,-rpath,/usr/lib"
4395    cat >conftest.$ac_ext <<_ACEOF
4396/* confdefs.h.  */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h.  */
4401
4402int
4403main ()
4404{
4405
4406  ;
4407  return 0;
4408}
4409_ACEOF
4410rm -f conftest.$ac_objext conftest$ac_exeext
4411if { (ac_try="$ac_link"
4412case "(($ac_try" in
4413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414  *) ac_try_echo=$ac_try;;
4415esac
4416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4417$as_echo "$ac_try_echo") >&5
4418  (eval "$ac_link") 2>conftest.er1
4419  ac_status=$?
4420  grep -v '^ *+' conftest.er1 >conftest.err
4421  rm -f conftest.er1
4422  cat conftest.err >&5
4423  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424  (exit $ac_status); } && {
4425	 test -z "$ac_c_werror_flag" ||
4426	 test ! -s conftest.err
4427       } && test -s conftest$ac_exeext && {
4428	 test "$cross_compiling" = yes ||
4429	 $as_test_x conftest$ac_exeext
4430       }; then
4431  andrew_cv_runpath_switch="-Wl,-rpath,"
4432else
4433  $as_echo "$as_me: failed program was:" >&5
4434sed 's/^/| /' conftest.$ac_ext >&5
4435
4436	andrew_cv_runpath_switch="none"
4437fi
4438
4439rm -rf conftest.dSYM
4440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4441      conftest$ac_exeext conftest.$ac_ext
4442
4443fi
4444
4445rm -rf conftest.dSYM
4446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4447      conftest$ac_exeext conftest.$ac_ext
4448  LDFLAGS="${SAVE_LDFLAGS}"
4449
4450fi
4451{ $as_echo "$as_me:$LINENO: result: $andrew_cv_runpath_switch" >&5
4452$as_echo "$andrew_cv_runpath_switch" >&6; }
4453
4454
4455# Check whether --with-staticsasl was given.
4456if test "${with_staticsasl+set}" = set; then
4457  withval=$with_staticsasl;
4458fi
4459
4460if test "$with_staticsasl" = yes; then
4461	enable_shared=yes
4462	enable_static=yes
4463fi
4464
4465save_target=$target
4466if test -z "$target"; then
4467	target="NONE"
4468fi
4469
4470# new libtool
4471# Check whether --enable-static was given.
4472if test "${enable_static+set}" = set; then
4473  enableval=$enable_static; p=${PACKAGE-default}
4474case "$enableval" in
4475yes) enable_static=yes ;;
4476no) enable_static=no ;;
4477*)
4478  enable_static=no
4479  # Look at the argument we got.  We use all the common list separators.
4480  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4481  for pkg in $enableval; do
4482    if test "X$pkg" = "X$p"; then
4483      enable_static=yes
4484    fi
4485  done
4486  IFS="$ac_save_ifs"
4487  ;;
4488esac
4489else
4490  enable_static=no
4491fi
4492
4493# Check whether --enable-shared was given.
4494if test "${enable_shared+set}" = set; then
4495  enableval=$enable_shared; p=${PACKAGE-default}
4496case "$enableval" in
4497yes) enable_shared=yes ;;
4498no) enable_shared=no ;;
4499*)
4500  enable_shared=no
4501  # Look at the argument we got.  We use all the common list separators.
4502  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4503  for pkg in $enableval; do
4504    if test "X$pkg" = "X$p"; then
4505      enable_shared=yes
4506    fi
4507  done
4508  IFS="$ac_save_ifs"
4509  ;;
4510esac
4511else
4512  enable_shared=yes
4513fi
4514
4515# Check whether --enable-fast-install was given.
4516if test "${enable_fast_install+set}" = set; then
4517  enableval=$enable_fast_install; p=${PACKAGE-default}
4518case "$enableval" in
4519yes) enable_fast_install=yes ;;
4520no) enable_fast_install=no ;;
4521*)
4522  enable_fast_install=no
4523  # Look at the argument we got.  We use all the common list separators.
4524  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4525  for pkg in $enableval; do
4526    if test "X$pkg" = "X$p"; then
4527      enable_fast_install=yes
4528    fi
4529  done
4530  IFS="$ac_save_ifs"
4531  ;;
4532esac
4533else
4534  enable_fast_install=yes
4535fi
4536
4537if test -n "$ac_tool_prefix"; then
4538  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4539set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4540{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4541$as_echo_n "checking for $ac_word... " >&6; }
4542if test "${ac_cv_prog_RANLIB+set}" = set; then
4543  $as_echo_n "(cached) " >&6
4544else
4545  if test -n "$RANLIB"; then
4546  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4547else
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551  IFS=$as_save_IFS
4552  test -z "$as_dir" && as_dir=.
4553  for ac_exec_ext in '' $ac_executable_extensions; do
4554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4556    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557    break 2
4558  fi
4559done
4560done
4561IFS=$as_save_IFS
4562
4563fi
4564fi
4565RANLIB=$ac_cv_prog_RANLIB
4566if test -n "$RANLIB"; then
4567  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4568$as_echo "$RANLIB" >&6; }
4569else
4570  { $as_echo "$as_me:$LINENO: result: no" >&5
4571$as_echo "no" >&6; }
4572fi
4573
4574
4575fi
4576if test -z "$ac_cv_prog_RANLIB"; then
4577  ac_ct_RANLIB=$RANLIB
4578  # Extract the first word of "ranlib", so it can be a program name with args.
4579set dummy ranlib; ac_word=$2
4580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4581$as_echo_n "checking for $ac_word... " >&6; }
4582if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4583  $as_echo_n "(cached) " >&6
4584else
4585  if test -n "$ac_ct_RANLIB"; then
4586  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4587else
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591  IFS=$as_save_IFS
4592  test -z "$as_dir" && as_dir=.
4593  for ac_exec_ext in '' $ac_executable_extensions; do
4594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595    ac_cv_prog_ac_ct_RANLIB="ranlib"
4596    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597    break 2
4598  fi
4599done
4600done
4601IFS=$as_save_IFS
4602
4603fi
4604fi
4605ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4606if test -n "$ac_ct_RANLIB"; then
4607  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4608$as_echo "$ac_ct_RANLIB" >&6; }
4609else
4610  { $as_echo "$as_me:$LINENO: result: no" >&5
4611$as_echo "no" >&6; }
4612fi
4613
4614  if test "x$ac_ct_RANLIB" = x; then
4615    RANLIB=":"
4616  else
4617    case $cross_compiling:$ac_tool_warned in
4618yes:)
4619{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621ac_tool_warned=yes ;;
4622esac
4623    RANLIB=$ac_ct_RANLIB
4624  fi
4625else
4626  RANLIB="$ac_cv_prog_RANLIB"
4627fi
4628
4629
4630# Check whether --with-gnu-ld was given.
4631if test "${with_gnu_ld+set}" = set; then
4632  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4633else
4634  with_gnu_ld=no
4635fi
4636
4637ac_prog=ld
4638if test "$ac_cv_c_compiler_gnu" = yes; then
4639  # Check if gcc -print-prog-name=ld gives a path.
4640  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4641$as_echo_n "checking for ld used by GCC... " >&6; }
4642  ac_prog=`($CC -print-prog-name=ld) 2>&5`
4643  case "$ac_prog" in
4644    # Accept absolute paths.
4645    [\\/]* | [A-Za-z]:[\\/]*)
4646      re_direlt='/[^/][^/]*/\.\./'
4647      # Canonicalize the path of ld
4648      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4649      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4650	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4651      done
4652      test -z "$LD" && LD="$ac_prog"
4653      ;;
4654  "")
4655    # If it fails, then pretend we aren't using GCC.
4656    ac_prog=ld
4657    ;;
4658  *)
4659    # If it is relative, then search for the first ld in PATH.
4660    with_gnu_ld=unknown
4661    ;;
4662  esac
4663elif test "$with_gnu_ld" = yes; then
4664  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4665$as_echo_n "checking for GNU ld... " >&6; }
4666else
4667  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4668$as_echo_n "checking for non-GNU ld... " >&6; }
4669fi
4670if test "${ac_cv_path_LD+set}" = set; then
4671  $as_echo_n "(cached) " >&6
4672else
4673  if test -z "$LD"; then
4674  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4675  for ac_dir in $PATH; do
4676    test -z "$ac_dir" && ac_dir=.
4677    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4678      ac_cv_path_LD="$ac_dir/$ac_prog"
4679      # Check to see if the program is GNU ld.  I'd rather use --version,
4680      # but apparently some GNU ld's only accept -v.
4681      # Break only if it was the GNU/non-GNU ld that we prefer.
4682      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4683	test "$with_gnu_ld" != no && break
4684      else
4685	test "$with_gnu_ld" != yes && break
4686      fi
4687    fi
4688  done
4689  IFS="$ac_save_ifs"
4690else
4691  ac_cv_path_LD="$LD" # Let the user override the test with a path.
4692fi
4693fi
4694
4695LD="$ac_cv_path_LD"
4696if test -n "$LD"; then
4697  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4698$as_echo "$LD" >&6; }
4699else
4700  { $as_echo "$as_me:$LINENO: result: no" >&5
4701$as_echo "no" >&6; }
4702fi
4703test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4704$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4705   { (exit 1); exit 1; }; }
4706{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4707$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4708if test "${ac_cv_prog_gnu_ld+set}" = set; then
4709  $as_echo_n "(cached) " >&6
4710else
4711  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4712if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4713  ac_cv_prog_gnu_ld=yes
4714else
4715  ac_cv_prog_gnu_ld=no
4716fi
4717fi
4718{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4719$as_echo "$ac_cv_prog_gnu_ld" >&6; }
4720
4721
4722{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4723$as_echo_n "checking for BSD-compatible nm... " >&6; }
4724if test "${ac_cv_path_NM+set}" = set; then
4725  $as_echo_n "(cached) " >&6
4726else
4727  if test -n "$NM"; then
4728  # Let the user override the test.
4729  ac_cv_path_NM="$NM"
4730else
4731  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4732  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4733    test -z "$ac_dir" && ac_dir=.
4734    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
4735      # Check to see if the nm accepts a BSD-compat flag.
4736      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4737      #   nm: unknown option "B" ignored
4738      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4739	ac_cv_path_NM="$ac_dir/nm -B"
4740	break
4741      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4742	ac_cv_path_NM="$ac_dir/nm -p"
4743	break
4744      else
4745	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
4746	continue # so that we can try to find one that supports BSD flags
4747      fi
4748    fi
4749  done
4750  IFS="$ac_save_ifs"
4751  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
4752fi
4753fi
4754
4755NM="$ac_cv_path_NM"
4756{ $as_echo "$as_me:$LINENO: result: $NM" >&5
4757$as_echo "$NM" >&6; }
4758
4759
4760case "$target" in
4761NONE) lt_target="$host" ;;
4762*) lt_target="$target" ;;
4763esac
4764
4765# Check for any special flags to pass to ltconfig.
4766libtool_flags="--cache-file=$cache_file"
4767test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4768test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4769test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4770test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
4771test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4772
4773
4774# Check whether --enable-libtool-lock was given.
4775if test "${enable_libtool_lock+set}" = set; then
4776  enableval=$enable_libtool_lock;
4777fi
4778
4779test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4780test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4781
4782# Some flags need to be propagated to the compiler or linker for good
4783# libtool support.
4784case "$lt_target" in
4785*-*-irix6*)
4786  # Find out which ABI we are using.
4787  echo '#line 4787 "configure"' > conftest.$ac_ext
4788  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789  (eval $ac_compile) 2>&5
4790  ac_status=$?
4791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792  (exit $ac_status); }; then
4793    case "`/usr/bin/file conftest.o`" in
4794    *32-bit*)
4795      LD="${LD-ld} -32"
4796      ;;
4797    *N32*)
4798      LD="${LD-ld} -n32"
4799      ;;
4800    *64-bit*)
4801      LD="${LD-ld} -64"
4802      ;;
4803    esac
4804  fi
4805  rm -rf conftest*
4806  ;;
4807
4808*-*-sco3.2v5*)
4809  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4810  SAVE_CFLAGS="$CFLAGS"
4811  CFLAGS="$CFLAGS -belf"
4812  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4813$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4814if test "${lt_cv_cc_needs_belf+set}" = set; then
4815  $as_echo_n "(cached) " >&6
4816else
4817  cat >conftest.$ac_ext <<_ACEOF
4818/* confdefs.h.  */
4819_ACEOF
4820cat confdefs.h >>conftest.$ac_ext
4821cat >>conftest.$ac_ext <<_ACEOF
4822/* end confdefs.h.  */
4823
4824int
4825main ()
4826{
4827
4828  ;
4829  return 0;
4830}
4831_ACEOF
4832rm -f conftest.$ac_objext conftest$ac_exeext
4833if { (ac_try="$ac_link"
4834case "(($ac_try" in
4835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836  *) ac_try_echo=$ac_try;;
4837esac
4838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839$as_echo "$ac_try_echo") >&5
4840  (eval "$ac_link") 2>conftest.er1
4841  ac_status=$?
4842  grep -v '^ *+' conftest.er1 >conftest.err
4843  rm -f conftest.er1
4844  cat conftest.err >&5
4845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); } && {
4847	 test -z "$ac_c_werror_flag" ||
4848	 test ! -s conftest.err
4849       } && test -s conftest$ac_exeext && {
4850	 test "$cross_compiling" = yes ||
4851	 $as_test_x conftest$ac_exeext
4852       }; then
4853  lt_cv_cc_needs_belf=yes
4854else
4855  $as_echo "$as_me: failed program was:" >&5
4856sed 's/^/| /' conftest.$ac_ext >&5
4857
4858	lt_cv_cc_needs_belf=no
4859fi
4860
4861rm -rf conftest.dSYM
4862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4863      conftest$ac_exeext conftest.$ac_ext
4864fi
4865{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4866$as_echo "$lt_cv_cc_needs_belf" >&6; }
4867  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4868    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4869    CFLAGS="$SAVE_CFLAGS"
4870  fi
4871  ;;
4872
4873
4874esac
4875
4876
4877# Save cache, so that ltconfig can load it
4878cat >confcache <<\_ACEOF
4879# This file is a shell script that caches the results of configure
4880# tests run on this system so they can be shared between configure
4881# scripts and configure runs, see configure's option --config-cache.
4882# It is not useful on other systems.  If it contains results you don't
4883# want to keep, you may remove or edit it.
4884#
4885# config.status only pays attention to the cache file if you give it
4886# the --recheck option to rerun configure.
4887#
4888# `ac_cv_env_foo' variables (set or unset) will be overridden when
4889# loading this file, other *unset* `ac_cv_foo' will be assigned the
4890# following values.
4891
4892_ACEOF
4893
4894# The following way of writing the cache mishandles newlines in values,
4895# but we know of no workaround that is simple, portable, and efficient.
4896# So, we kill variables containing newlines.
4897# Ultrix sh set writes to stderr and can't be redirected directly,
4898# and sets the high bit in the cache file unless we assign to the vars.
4899(
4900  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4901    eval ac_val=\$$ac_var
4902    case $ac_val in #(
4903    *${as_nl}*)
4904      case $ac_var in #(
4905      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
4906$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4907      esac
4908      case $ac_var in #(
4909      _ | IFS | as_nl) ;; #(
4910      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4911      *) $as_unset $ac_var ;;
4912      esac ;;
4913    esac
4914  done
4915
4916  (set) 2>&1 |
4917    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4918    *${as_nl}ac_space=\ *)
4919      # `set' does not quote correctly, so add quotes (double-quote
4920      # substitution turns \\\\ into \\, and sed turns \\ into \).
4921      sed -n \
4922	"s/'/'\\\\''/g;
4923	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4924      ;; #(
4925    *)
4926      # `set' quotes correctly as required by POSIX, so do not add quotes.
4927      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4928      ;;
4929    esac |
4930    sort
4931) |
4932  sed '
4933     /^ac_cv_env_/b end
4934     t clear
4935     :clear
4936     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4937     t end
4938     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4939     :end' >>confcache
4940if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4941  if test -w "$cache_file"; then
4942    test "x$cache_file" != "x/dev/null" &&
4943      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
4944$as_echo "$as_me: updating cache $cache_file" >&6;}
4945    cat confcache >$cache_file
4946  else
4947    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4948$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4949  fi
4950fi
4951rm -f confcache
4952
4953# Actually configure libtool.  ac_aux_dir is where install-sh is found.
4954CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4955LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4956LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
4957DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
4958${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4959$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
4960|| { { $as_echo "$as_me:$LINENO: error: libtool configure failed" >&5
4961$as_echo "$as_me: error: libtool configure failed" >&2;}
4962   { (exit 1); exit 1; }; }
4963
4964# Reload cache, that may have been modified by ltconfig
4965if test -r "$cache_file"; then
4966  # Some versions of bash will fail to source /dev/null (special
4967  # files actually), so we avoid doing that.
4968  if test -f "$cache_file"; then
4969    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
4970$as_echo "$as_me: loading cache $cache_file" >&6;}
4971    case $cache_file in
4972      [\\/]* | ?:[\\/]* ) . "$cache_file";;
4973      *)                      . "./$cache_file";;
4974    esac
4975  fi
4976else
4977  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
4978$as_echo "$as_me: creating cache $cache_file" >&6;}
4979  >$cache_file
4980fi
4981
4982
4983# This can be used to rebuild libtool when needed
4984LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
4985
4986# Always use our own libtool.
4987LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4988
4989# Redirect the config.log output again, so that the ltconfig log is not
4990# clobbered by the next message.
4991exec 5>>./config.log
4992
4993
4994target=$save_target
4995
4996if test "$enable_static" = yes; then
4997	SASL_STATIC_LIBS=libsasl2.a
4998else
4999	SASL_STATIC_LIBS=
5000fi
5001
5002# Check whether --enable-staticdlopen was given.
5003if test "${enable_staticdlopen+set}" = set; then
5004  enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
5005else
5006  enable_staticdlopen=no
5007fi
5008
5009
5010if test "$enable_staticdlopen" = yes; then
5011
5012cat >>confdefs.h <<\_ACEOF
5013#define TRY_DLOPEN_WHEN_STATIC /**/
5014_ACEOF
5015
5016fi
5017
5018if test "$ac_cv_c_compiler_gnu" = yes; then
5019  CFLAGS="-Wall -W ${CFLAGS}"
5020fi
5021
5022
5023# Check whether --with-purecov was given.
5024if test "${with_purecov+set}" = set; then
5025  withval=$with_purecov;
5026fi
5027
5028if test "$with_purecov" = yes; then
5029  for ac_prog in purecov
5030do
5031  # Extract the first word of "$ac_prog", so it can be a program name with args.
5032set dummy $ac_prog; ac_word=$2
5033{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5034$as_echo_n "checking for $ac_word... " >&6; }
5035if test "${ac_cv_prog_PURECOV+set}" = set; then
5036  $as_echo_n "(cached) " >&6
5037else
5038  if test -n "$PURECOV"; then
5039  ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
5040else
5041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH
5043do
5044  IFS=$as_save_IFS
5045  test -z "$as_dir" && as_dir=.
5046  for ac_exec_ext in '' $ac_executable_extensions; do
5047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048    ac_cv_prog_PURECOV="$ac_prog"
5049    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050    break 2
5051  fi
5052done
5053done
5054IFS=$as_save_IFS
5055
5056fi
5057fi
5058PURECOV=$ac_cv_prog_PURECOV
5059if test -n "$PURECOV"; then
5060  { $as_echo "$as_me:$LINENO: result: $PURECOV" >&5
5061$as_echo "$PURECOV" >&6; }
5062else
5063  { $as_echo "$as_me:$LINENO: result: no" >&5
5064$as_echo "no" >&6; }
5065fi
5066
5067
5068  test -n "$PURECOV" && break
5069done
5070
5071fi
5072
5073# Check whether --with-purify was given.
5074if test "${with_purify+set}" = set; then
5075  withval=$with_purify;
5076fi
5077
5078if test "$with_purify" = yes; then
5079  for ac_prog in purify
5080do
5081  # Extract the first word of "$ac_prog", so it can be a program name with args.
5082set dummy $ac_prog; ac_word=$2
5083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
5085if test "${ac_cv_prog_PURIFY+set}" = set; then
5086  $as_echo_n "(cached) " >&6
5087else
5088  if test -n "$PURIFY"; then
5089  ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094  IFS=$as_save_IFS
5095  test -z "$as_dir" && as_dir=.
5096  for ac_exec_ext in '' $ac_executable_extensions; do
5097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098    ac_cv_prog_PURIFY="$ac_prog"
5099    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100    break 2
5101  fi
5102done
5103done
5104IFS=$as_save_IFS
5105
5106fi
5107fi
5108PURIFY=$ac_cv_prog_PURIFY
5109if test -n "$PURIFY"; then
5110  { $as_echo "$as_me:$LINENO: result: $PURIFY" >&5
5111$as_echo "$PURIFY" >&6; }
5112else
5113  { $as_echo "$as_me:$LINENO: result: no" >&5
5114$as_echo "no" >&6; }
5115fi
5116
5117
5118  test -n "$PURIFY" && break
5119done
5120
5121fi
5122
5123# Check whether --enable-java was given.
5124if test "${enable_java+set}" = set; then
5125  enableval=$enable_java; enable_java=$enableval
5126else
5127  enable_java=no
5128fi
5129
5130if test "$enable_java" = yes; then
5131  # Extract the first word of "javac", so it can be a program name with args.
5132set dummy javac; ac_word=$2
5133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5134$as_echo_n "checking for $ac_word... " >&6; }
5135if test "${ac_cv_path_JAVAC+set}" = set; then
5136  $as_echo_n "(cached) " >&6
5137else
5138  case $JAVAC in
5139  [\\/]* | ?:[\\/]*)
5140  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
5141  ;;
5142  *)
5143  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146  IFS=$as_save_IFS
5147  test -z "$as_dir" && as_dir=.
5148  for ac_exec_ext in '' $ac_executable_extensions; do
5149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
5151    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152    break 2
5153  fi
5154done
5155done
5156IFS=$as_save_IFS
5157
5158  test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
5159  ;;
5160esac
5161fi
5162JAVAC=$ac_cv_path_JAVAC
5163if test -n "$JAVAC"; then
5164  { $as_echo "$as_me:$LINENO: result: $JAVAC" >&5
5165$as_echo "$JAVAC" >&6; }
5166else
5167  { $as_echo "$as_me:$LINENO: result: no" >&5
5168$as_echo "no" >&6; }
5169fi
5170
5171
5172  for ac_prog in javah kaffeh
5173do
5174  # Extract the first word of "$ac_prog", so it can be a program name with args.
5175set dummy $ac_prog; ac_word=$2
5176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5177$as_echo_n "checking for $ac_word... " >&6; }
5178if test "${ac_cv_path_JAVAH+set}" = set; then
5179  $as_echo_n "(cached) " >&6
5180else
5181  case $JAVAH in
5182  [\\/]* | ?:[\\/]*)
5183  ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
5184  ;;
5185  *)
5186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189  IFS=$as_save_IFS
5190  test -z "$as_dir" && as_dir=.
5191  for ac_exec_ext in '' $ac_executable_extensions; do
5192  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193    ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
5194    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195    break 2
5196  fi
5197done
5198done
5199IFS=$as_save_IFS
5200
5201  ;;
5202esac
5203fi
5204JAVAH=$ac_cv_path_JAVAH
5205if test -n "$JAVAH"; then
5206  { $as_echo "$as_me:$LINENO: result: $JAVAH" >&5
5207$as_echo "$JAVAH" >&6; }
5208else
5209  { $as_echo "$as_me:$LINENO: result: no" >&5
5210$as_echo "no" >&6; }
5211fi
5212
5213
5214  test -n "$JAVAH" && break
5215done
5216test -n "$JAVAH" || JAVAH="no"
5217
5218  for ac_prog in javadoc
5219do
5220  # Extract the first word of "$ac_prog", so it can be a program name with args.
5221set dummy $ac_prog; ac_word=$2
5222{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5223$as_echo_n "checking for $ac_word... " >&6; }
5224if test "${ac_cv_prog_JAVADOC+set}" = set; then
5225  $as_echo_n "(cached) " >&6
5226else
5227  if test -n "$JAVADOC"; then
5228  ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233  IFS=$as_save_IFS
5234  test -z "$as_dir" && as_dir=.
5235  for ac_exec_ext in '' $ac_executable_extensions; do
5236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237    ac_cv_prog_JAVADOC="$ac_prog"
5238    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239    break 2
5240  fi
5241done
5242done
5243IFS=$as_save_IFS
5244
5245fi
5246fi
5247JAVADOC=$ac_cv_prog_JAVADOC
5248if test -n "$JAVADOC"; then
5249  { $as_echo "$as_me:$LINENO: result: $JAVADOC" >&5
5250$as_echo "$JAVADOC" >&6; }
5251else
5252  { $as_echo "$as_me:$LINENO: result: no" >&5
5253$as_echo "no" >&6; }
5254fi
5255
5256
5257  test -n "$JAVADOC" && break
5258done
5259test -n "$JAVADOC" || JAVADOC=":"
5260
5261  if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
5262    { $as_echo "$as_me:$LINENO: WARNING: Disabling Java support" >&5
5263$as_echo "$as_me: WARNING: Disabling Java support" >&2;}
5264    enable_java=no
5265  fi
5266else
5267# Make distcheck work
5268  JAVAC="true"
5269  JAVAH="true"
5270  JAVADOC="true"
5271fi
5272 if test "$enable_java" = yes; then
5273  JAVA_TRUE=
5274  JAVA_FALSE='#'
5275else
5276  JAVA_TRUE='#'
5277  JAVA_FALSE=
5278fi
5279
5280
5281if test "$enable_java" = yes; then
5282  { $as_echo "$as_me:$LINENO: checking JNI cpp flags" >&5
5283$as_echo_n "checking JNI cpp flags... " >&6; }
5284  if test "${sasl_cv_java_includes+set}" = set; then
5285  $as_echo_n "(cached) " >&6
5286else
5287
5288  if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
5289    sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
5290  else
5291    java_base=`echo $JAVAC | sed 's,/bin.*,'','`
5292
5293
5294# Check whether --with-javabase was given.
5295if test "${with_javabase+set}" = set; then
5296  withval=$with_javabase; java_base=$withval
5297fi
5298
5299
5300
5301    sasl_cv_java_includes=''
5302    for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
5303      sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
5304    done
5305  fi
5306
5307  sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
5308fi
5309
5310
5311  JAVA_INCLUDES=$sasl_cv_java_includes
5312
5313  { $as_echo "$as_me:$LINENO: result: ok" >&5
5314$as_echo "ok" >&6; }
5315
5316  JAVAROOT=".."
5317
5318  JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
5319  JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
5320fi
5321
5322 if test "$enable_sample" = yes; then
5323  SAMPLE_TRUE=
5324  SAMPLE_FALSE='#'
5325else
5326  SAMPLE_TRUE='#'
5327  SAMPLE_FALSE=
5328fi
5329
5330
5331
5332	save_LIBS="$LIBS"
5333	LIB_SOCKET=""
5334	{ $as_echo "$as_me:$LINENO: checking for connect" >&5
5335$as_echo_n "checking for connect... " >&6; }
5336if test "${ac_cv_func_connect+set}" = set; then
5337  $as_echo_n "(cached) " >&6
5338else
5339  cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h.  */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h.  */
5345/* Define connect to an innocuous variant, in case <limits.h> declares connect.
5346   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5347#define connect innocuous_connect
5348
5349/* System header to define __stub macros and hopefully few prototypes,
5350    which can conflict with char connect (); below.
5351    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5352    <limits.h> exists even on freestanding compilers.  */
5353
5354#ifdef __STDC__
5355# include <limits.h>
5356#else
5357# include <assert.h>
5358#endif
5359
5360#undef connect
5361
5362/* Override any GCC internal prototype to avoid an error.
5363   Use char because int might match the return type of a GCC
5364   builtin and then its argument prototype would still apply.  */
5365#ifdef __cplusplus
5366extern "C"
5367#endif
5368char connect ();
5369/* The GNU C library defines this for functions which it implements
5370    to always fail with ENOSYS.  Some functions are actually named
5371    something starting with __ and the normal name is an alias.  */
5372#if defined __stub_connect || defined __stub___connect
5373choke me
5374#endif
5375
5376int
5377main ()
5378{
5379return connect ();
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384rm -f conftest.$ac_objext conftest$ac_exeext
5385if { (ac_try="$ac_link"
5386case "(($ac_try" in
5387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388  *) ac_try_echo=$ac_try;;
5389esac
5390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5391$as_echo "$ac_try_echo") >&5
5392  (eval "$ac_link") 2>conftest.er1
5393  ac_status=$?
5394  grep -v '^ *+' conftest.er1 >conftest.err
5395  rm -f conftest.er1
5396  cat conftest.err >&5
5397  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); } && {
5399	 test -z "$ac_c_werror_flag" ||
5400	 test ! -s conftest.err
5401       } && test -s conftest$ac_exeext && {
5402	 test "$cross_compiling" = yes ||
5403	 $as_test_x conftest$ac_exeext
5404       }; then
5405  ac_cv_func_connect=yes
5406else
5407  $as_echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410	ac_cv_func_connect=no
5411fi
5412
5413rm -rf conftest.dSYM
5414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5415      conftest$ac_exeext conftest.$ac_ext
5416fi
5417{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5418$as_echo "$ac_cv_func_connect" >&6; }
5419if test "x$ac_cv_func_connect" = x""yes; then
5420  :
5421else
5422  { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5423$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5424if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5425  $as_echo_n "(cached) " >&6
5426else
5427  ac_check_lib_save_LIBS=$LIBS
5428LIBS="-lnsl  $LIBS"
5429cat >conftest.$ac_ext <<_ACEOF
5430/* confdefs.h.  */
5431_ACEOF
5432cat confdefs.h >>conftest.$ac_ext
5433cat >>conftest.$ac_ext <<_ACEOF
5434/* end confdefs.h.  */
5435
5436/* Override any GCC internal prototype to avoid an error.
5437   Use char because int might match the return type of a GCC
5438   builtin and then its argument prototype would still apply.  */
5439#ifdef __cplusplus
5440extern "C"
5441#endif
5442char gethostbyname ();
5443int
5444main ()
5445{
5446return gethostbyname ();
5447  ;
5448  return 0;
5449}
5450_ACEOF
5451rm -f conftest.$ac_objext conftest$ac_exeext
5452if { (ac_try="$ac_link"
5453case "(($ac_try" in
5454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455  *) ac_try_echo=$ac_try;;
5456esac
5457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5458$as_echo "$ac_try_echo") >&5
5459  (eval "$ac_link") 2>conftest.er1
5460  ac_status=$?
5461  grep -v '^ *+' conftest.er1 >conftest.err
5462  rm -f conftest.er1
5463  cat conftest.err >&5
5464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); } && {
5466	 test -z "$ac_c_werror_flag" ||
5467	 test ! -s conftest.err
5468       } && test -s conftest$ac_exeext && {
5469	 test "$cross_compiling" = yes ||
5470	 $as_test_x conftest$ac_exeext
5471       }; then
5472  ac_cv_lib_nsl_gethostbyname=yes
5473else
5474  $as_echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
5477	ac_cv_lib_nsl_gethostbyname=no
5478fi
5479
5480rm -rf conftest.dSYM
5481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5482      conftest$ac_exeext conftest.$ac_ext
5483LIBS=$ac_check_lib_save_LIBS
5484fi
5485{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5486$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5487if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
5488  LIB_SOCKET="-lnsl $LIB_SOCKET"
5489fi
5490
5491		{ $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5492$as_echo_n "checking for connect in -lsocket... " >&6; }
5493if test "${ac_cv_lib_socket_connect+set}" = set; then
5494  $as_echo_n "(cached) " >&6
5495else
5496  ac_check_lib_save_LIBS=$LIBS
5497LIBS="-lsocket  $LIBS"
5498cat >conftest.$ac_ext <<_ACEOF
5499/* confdefs.h.  */
5500_ACEOF
5501cat confdefs.h >>conftest.$ac_ext
5502cat >>conftest.$ac_ext <<_ACEOF
5503/* end confdefs.h.  */
5504
5505/* Override any GCC internal prototype to avoid an error.
5506   Use char because int might match the return type of a GCC
5507   builtin and then its argument prototype would still apply.  */
5508#ifdef __cplusplus
5509extern "C"
5510#endif
5511char connect ();
5512int
5513main ()
5514{
5515return connect ();
5516  ;
5517  return 0;
5518}
5519_ACEOF
5520rm -f conftest.$ac_objext conftest$ac_exeext
5521if { (ac_try="$ac_link"
5522case "(($ac_try" in
5523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524  *) ac_try_echo=$ac_try;;
5525esac
5526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5527$as_echo "$ac_try_echo") >&5
5528  (eval "$ac_link") 2>conftest.er1
5529  ac_status=$?
5530  grep -v '^ *+' conftest.er1 >conftest.err
5531  rm -f conftest.er1
5532  cat conftest.err >&5
5533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); } && {
5535	 test -z "$ac_c_werror_flag" ||
5536	 test ! -s conftest.err
5537       } && test -s conftest$ac_exeext && {
5538	 test "$cross_compiling" = yes ||
5539	 $as_test_x conftest$ac_exeext
5540       }; then
5541  ac_cv_lib_socket_connect=yes
5542else
5543  $as_echo "$as_me: failed program was:" >&5
5544sed 's/^/| /' conftest.$ac_ext >&5
5545
5546	ac_cv_lib_socket_connect=no
5547fi
5548
5549rm -rf conftest.dSYM
5550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5551      conftest$ac_exeext conftest.$ac_ext
5552LIBS=$ac_check_lib_save_LIBS
5553fi
5554{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5555$as_echo "$ac_cv_lib_socket_connect" >&6; }
5556if test "x$ac_cv_lib_socket_connect" = x""yes; then
5557  LIB_SOCKET="-lsocket $LIB_SOCKET"
5558fi
5559
5560
5561fi
5562
5563	LIBS="$LIB_SOCKET $save_LIBS"
5564	{ $as_echo "$as_me:$LINENO: checking for res_search" >&5
5565$as_echo_n "checking for res_search... " >&6; }
5566if test "${ac_cv_func_res_search+set}" = set; then
5567  $as_echo_n "(cached) " >&6
5568else
5569  cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h.  */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h.  */
5575/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
5576   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5577#define res_search innocuous_res_search
5578
5579/* System header to define __stub macros and hopefully few prototypes,
5580    which can conflict with char res_search (); below.
5581    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5582    <limits.h> exists even on freestanding compilers.  */
5583
5584#ifdef __STDC__
5585# include <limits.h>
5586#else
5587# include <assert.h>
5588#endif
5589
5590#undef res_search
5591
5592/* Override any GCC internal prototype to avoid an error.
5593   Use char because int might match the return type of a GCC
5594   builtin and then its argument prototype would still apply.  */
5595#ifdef __cplusplus
5596extern "C"
5597#endif
5598char res_search ();
5599/* The GNU C library defines this for functions which it implements
5600    to always fail with ENOSYS.  Some functions are actually named
5601    something starting with __ and the normal name is an alias.  */
5602#if defined __stub_res_search || defined __stub___res_search
5603choke me
5604#endif
5605
5606int
5607main ()
5608{
5609return res_search ();
5610  ;
5611  return 0;
5612}
5613_ACEOF
5614rm -f conftest.$ac_objext conftest$ac_exeext
5615if { (ac_try="$ac_link"
5616case "(($ac_try" in
5617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618  *) ac_try_echo=$ac_try;;
5619esac
5620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5621$as_echo "$ac_try_echo") >&5
5622  (eval "$ac_link") 2>conftest.er1
5623  ac_status=$?
5624  grep -v '^ *+' conftest.er1 >conftest.err
5625  rm -f conftest.er1
5626  cat conftest.err >&5
5627  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628  (exit $ac_status); } && {
5629	 test -z "$ac_c_werror_flag" ||
5630	 test ! -s conftest.err
5631       } && test -s conftest$ac_exeext && {
5632	 test "$cross_compiling" = yes ||
5633	 $as_test_x conftest$ac_exeext
5634       }; then
5635  ac_cv_func_res_search=yes
5636else
5637  $as_echo "$as_me: failed program was:" >&5
5638sed 's/^/| /' conftest.$ac_ext >&5
5639
5640	ac_cv_func_res_search=no
5641fi
5642
5643rm -rf conftest.dSYM
5644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5645      conftest$ac_exeext conftest.$ac_ext
5646fi
5647{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
5648$as_echo "$ac_cv_func_res_search" >&6; }
5649if test "x$ac_cv_func_res_search" = x""yes; then
5650  :
5651else
5652  LIBS="-lresolv $LIB_SOCKET $save_LIBS"
5653		cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h.  */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h.  */
5659[
5660#include <sys/types.h>
5661#include <netinet/in.h>
5662#include <arpa/nameser.h>
5663#ifdef HAVE_ARPA_NAMESER_COMPAT_H
5664#include <arpa/nameser_compat.h>
5665#endif
5666#include <resolv.h>]
5667int
5668main ()
5669{
5670[
5671const char host[12]="openafs.org";
5672u_char ans[1024];
5673res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
5674return 0;
5675]
5676  ;
5677  return 0;
5678}
5679_ACEOF
5680rm -f conftest.$ac_objext conftest$ac_exeext
5681if { (ac_try="$ac_link"
5682case "(($ac_try" in
5683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684  *) ac_try_echo=$ac_try;;
5685esac
5686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5687$as_echo "$ac_try_echo") >&5
5688  (eval "$ac_link") 2>conftest.er1
5689  ac_status=$?
5690  grep -v '^ *+' conftest.er1 >conftest.err
5691  rm -f conftest.er1
5692  cat conftest.err >&5
5693  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694  (exit $ac_status); } && {
5695	 test -z "$ac_c_werror_flag" ||
5696	 test ! -s conftest.err
5697       } && test -s conftest$ac_exeext && {
5698	 test "$cross_compiling" = yes ||
5699	 $as_test_x conftest$ac_exeext
5700       }; then
5701  LIB_SOCKET="-lresolv $LIB_SOCKET"
5702else
5703  $as_echo "$as_me: failed program was:" >&5
5704sed 's/^/| /' conftest.$ac_ext >&5
5705
5706
5707fi
5708
5709rm -rf conftest.dSYM
5710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5711      conftest$ac_exeext conftest.$ac_ext
5712
5713fi
5714
5715	LIBS="$LIB_SOCKET $save_LIBS"
5716
5717
5718for ac_func in dn_expand dns_lookup
5719do
5720as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5721{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5722$as_echo_n "checking for $ac_func... " >&6; }
5723if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5724  $as_echo_n "(cached) " >&6
5725else
5726  cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h.  */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h.  */
5732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5733   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5734#define $ac_func innocuous_$ac_func
5735
5736/* System header to define __stub macros and hopefully few prototypes,
5737    which can conflict with char $ac_func (); below.
5738    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739    <limits.h> exists even on freestanding compilers.  */
5740
5741#ifdef __STDC__
5742# include <limits.h>
5743#else
5744# include <assert.h>
5745#endif
5746
5747#undef $ac_func
5748
5749/* Override any GCC internal prototype to avoid an error.
5750   Use char because int might match the return type of a GCC
5751   builtin and then its argument prototype would still apply.  */
5752#ifdef __cplusplus
5753extern "C"
5754#endif
5755char $ac_func ();
5756/* The GNU C library defines this for functions which it implements
5757    to always fail with ENOSYS.  Some functions are actually named
5758    something starting with __ and the normal name is an alias.  */
5759#if defined __stub_$ac_func || defined __stub___$ac_func
5760choke me
5761#endif
5762
5763int
5764main ()
5765{
5766return $ac_func ();
5767  ;
5768  return 0;
5769}
5770_ACEOF
5771rm -f conftest.$ac_objext conftest$ac_exeext
5772if { (ac_try="$ac_link"
5773case "(($ac_try" in
5774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775  *) ac_try_echo=$ac_try;;
5776esac
5777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5778$as_echo "$ac_try_echo") >&5
5779  (eval "$ac_link") 2>conftest.er1
5780  ac_status=$?
5781  grep -v '^ *+' conftest.er1 >conftest.err
5782  rm -f conftest.er1
5783  cat conftest.err >&5
5784  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785  (exit $ac_status); } && {
5786	 test -z "$ac_c_werror_flag" ||
5787	 test ! -s conftest.err
5788       } && test -s conftest$ac_exeext && {
5789	 test "$cross_compiling" = yes ||
5790	 $as_test_x conftest$ac_exeext
5791       }; then
5792  eval "$as_ac_var=yes"
5793else
5794  $as_echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
5797	eval "$as_ac_var=no"
5798fi
5799
5800rm -rf conftest.dSYM
5801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5802      conftest$ac_exeext conftest.$ac_ext
5803fi
5804ac_res=`eval 'as_val=${'$as_ac_var'}
5805		 $as_echo "$as_val"'`
5806	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5807$as_echo "$ac_res" >&6; }
5808as_val=`eval 'as_val=${'$as_ac_var'}
5809		 $as_echo "$as_val"'`
5810   if test "x$as_val" = x""yes; then
5811  cat >>confdefs.h <<_ACEOF
5812#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5813_ACEOF
5814
5815fi
5816done
5817
5818	LIBS="$save_LIBS"
5819
5820
5821
5822
5823
5824# Check whether --with-dbpath was given.
5825if test "${with_dbpath+set}" = set; then
5826  withval=$with_dbpath; dbpath=$withval
5827else
5828  dbpath=/etc/sasldb2
5829fi
5830
5831{ $as_echo "$as_me:$LINENO: checking DB path to use" >&5
5832$as_echo_n "checking DB path to use... " >&6; }
5833{ $as_echo "$as_me:$LINENO: result: $dbpath" >&5
5834$as_echo "$dbpath" >&6; }
5835
5836cat >>confdefs.h <<_ACEOF
5837#define SASL_DB_PATH "$dbpath"
5838_ACEOF
5839
5840
5841{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5842$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5843if test "${ac_cv_path_GREP+set}" = set; then
5844  $as_echo_n "(cached) " >&6
5845else
5846  if test -z "$GREP"; then
5847  ac_path_GREP_found=false
5848  # Loop through the user's path and test for each of PROGNAME-LIST
5849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5851do
5852  IFS=$as_save_IFS
5853  test -z "$as_dir" && as_dir=.
5854  for ac_prog in grep ggrep; do
5855    for ac_exec_ext in '' $ac_executable_extensions; do
5856      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5857      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5858# Check for GNU ac_path_GREP and select it if it is found.
5859  # Check for GNU $ac_path_GREP
5860case `"$ac_path_GREP" --version 2>&1` in
5861*GNU*)
5862  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5863*)
5864  ac_count=0
5865  $as_echo_n 0123456789 >"conftest.in"
5866  while :
5867  do
5868    cat "conftest.in" "conftest.in" >"conftest.tmp"
5869    mv "conftest.tmp" "conftest.in"
5870    cp "conftest.in" "conftest.nl"
5871    $as_echo 'GREP' >> "conftest.nl"
5872    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5873    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5874    ac_count=`expr $ac_count + 1`
5875    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5876      # Best one so far, save it but keep looking for a better one
5877      ac_cv_path_GREP="$ac_path_GREP"
5878      ac_path_GREP_max=$ac_count
5879    fi
5880    # 10*(2^10) chars as input seems more than enough
5881    test $ac_count -gt 10 && break
5882  done
5883  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5884esac
5885
5886      $ac_path_GREP_found && break 3
5887    done
5888  done
5889done
5890IFS=$as_save_IFS
5891  if test -z "$ac_cv_path_GREP"; then
5892    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5893$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5894   { (exit 1); exit 1; }; }
5895  fi
5896else
5897  ac_cv_path_GREP=$GREP
5898fi
5899
5900fi
5901{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5902$as_echo "$ac_cv_path_GREP" >&6; }
5903 GREP="$ac_cv_path_GREP"
5904
5905
5906{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5907$as_echo_n "checking for egrep... " >&6; }
5908if test "${ac_cv_path_EGREP+set}" = set; then
5909  $as_echo_n "(cached) " >&6
5910else
5911  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5912   then ac_cv_path_EGREP="$GREP -E"
5913   else
5914     if test -z "$EGREP"; then
5915  ac_path_EGREP_found=false
5916  # Loop through the user's path and test for each of PROGNAME-LIST
5917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5919do
5920  IFS=$as_save_IFS
5921  test -z "$as_dir" && as_dir=.
5922  for ac_prog in egrep; do
5923    for ac_exec_ext in '' $ac_executable_extensions; do
5924      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5925      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5926# Check for GNU ac_path_EGREP and select it if it is found.
5927  # Check for GNU $ac_path_EGREP
5928case `"$ac_path_EGREP" --version 2>&1` in
5929*GNU*)
5930  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5931*)
5932  ac_count=0
5933  $as_echo_n 0123456789 >"conftest.in"
5934  while :
5935  do
5936    cat "conftest.in" "conftest.in" >"conftest.tmp"
5937    mv "conftest.tmp" "conftest.in"
5938    cp "conftest.in" "conftest.nl"
5939    $as_echo 'EGREP' >> "conftest.nl"
5940    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5941    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5942    ac_count=`expr $ac_count + 1`
5943    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5944      # Best one so far, save it but keep looking for a better one
5945      ac_cv_path_EGREP="$ac_path_EGREP"
5946      ac_path_EGREP_max=$ac_count
5947    fi
5948    # 10*(2^10) chars as input seems more than enough
5949    test $ac_count -gt 10 && break
5950  done
5951  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5952esac
5953
5954      $ac_path_EGREP_found && break 3
5955    done
5956  done
5957done
5958IFS=$as_save_IFS
5959  if test -z "$ac_cv_path_EGREP"; then
5960    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5961$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5962   { (exit 1); exit 1; }; }
5963  fi
5964else
5965  ac_cv_path_EGREP=$EGREP
5966fi
5967
5968   fi
5969fi
5970{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5971$as_echo "$ac_cv_path_EGREP" >&6; }
5972 EGREP="$ac_cv_path_EGREP"
5973
5974
5975{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5976$as_echo_n "checking for ANSI C header files... " >&6; }
5977if test "${ac_cv_header_stdc+set}" = set; then
5978  $as_echo_n "(cached) " >&6
5979else
5980  cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h.  */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h.  */
5986#include <stdlib.h>
5987#include <stdarg.h>
5988#include <string.h>
5989#include <float.h>
5990
5991int
5992main ()
5993{
5994
5995  ;
5996  return 0;
5997}
5998_ACEOF
5999rm -f conftest.$ac_objext
6000if { (ac_try="$ac_compile"
6001case "(($ac_try" in
6002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003  *) ac_try_echo=$ac_try;;
6004esac
6005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006$as_echo "$ac_try_echo") >&5
6007  (eval "$ac_compile") 2>conftest.er1
6008  ac_status=$?
6009  grep -v '^ *+' conftest.er1 >conftest.err
6010  rm -f conftest.er1
6011  cat conftest.err >&5
6012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); } && {
6014	 test -z "$ac_c_werror_flag" ||
6015	 test ! -s conftest.err
6016       } && test -s conftest.$ac_objext; then
6017  ac_cv_header_stdc=yes
6018else
6019  $as_echo "$as_me: failed program was:" >&5
6020sed 's/^/| /' conftest.$ac_ext >&5
6021
6022	ac_cv_header_stdc=no
6023fi
6024
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026
6027if test $ac_cv_header_stdc = yes; then
6028  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6029  cat >conftest.$ac_ext <<_ACEOF
6030/* confdefs.h.  */
6031_ACEOF
6032cat confdefs.h >>conftest.$ac_ext
6033cat >>conftest.$ac_ext <<_ACEOF
6034/* end confdefs.h.  */
6035#include <string.h>
6036
6037_ACEOF
6038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039  $EGREP "memchr" >/dev/null 2>&1; then
6040  :
6041else
6042  ac_cv_header_stdc=no
6043fi
6044rm -f conftest*
6045
6046fi
6047
6048if test $ac_cv_header_stdc = yes; then
6049  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6050  cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h.  */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h.  */
6056#include <stdlib.h>
6057
6058_ACEOF
6059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060  $EGREP "free" >/dev/null 2>&1; then
6061  :
6062else
6063  ac_cv_header_stdc=no
6064fi
6065rm -f conftest*
6066
6067fi
6068
6069if test $ac_cv_header_stdc = yes; then
6070  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6071  if test "$cross_compiling" = yes; then
6072  :
6073else
6074  cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h.  */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h.  */
6080#include <ctype.h>
6081#include <stdlib.h>
6082#if ((' ' & 0x0FF) == 0x020)
6083# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6084# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6085#else
6086# define ISLOWER(c) \
6087		   (('a' <= (c) && (c) <= 'i') \
6088		     || ('j' <= (c) && (c) <= 'r') \
6089		     || ('s' <= (c) && (c) <= 'z'))
6090# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6091#endif
6092
6093#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6094int
6095main ()
6096{
6097  int i;
6098  for (i = 0; i < 256; i++)
6099    if (XOR (islower (i), ISLOWER (i))
6100	|| toupper (i) != TOUPPER (i))
6101      return 2;
6102  return 0;
6103}
6104_ACEOF
6105rm -f conftest$ac_exeext
6106if { (ac_try="$ac_link"
6107case "(($ac_try" in
6108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109  *) ac_try_echo=$ac_try;;
6110esac
6111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6112$as_echo "$ac_try_echo") >&5
6113  (eval "$ac_link") 2>&5
6114  ac_status=$?
6115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6117  { (case "(($ac_try" in
6118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119  *) ac_try_echo=$ac_try;;
6120esac
6121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122$as_echo "$ac_try_echo") >&5
6123  (eval "$ac_try") 2>&5
6124  ac_status=$?
6125  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; }; then
6127  :
6128else
6129  $as_echo "$as_me: program exited with status $ac_status" >&5
6130$as_echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133( exit $ac_status )
6134ac_cv_header_stdc=no
6135fi
6136rm -rf conftest.dSYM
6137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6138fi
6139
6140
6141fi
6142fi
6143{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6144$as_echo "$ac_cv_header_stdc" >&6; }
6145if test $ac_cv_header_stdc = yes; then
6146
6147cat >>confdefs.h <<\_ACEOF
6148#define STDC_HEADERS 1
6149_ACEOF
6150
6151fi
6152
6153# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6164		  inttypes.h stdint.h unistd.h
6165do
6166as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6167{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6168$as_echo_n "checking for $ac_header... " >&6; }
6169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170  $as_echo_n "(cached) " >&6
6171else
6172  cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h.  */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h.  */
6178$ac_includes_default
6179
6180#include <$ac_header>
6181_ACEOF
6182rm -f conftest.$ac_objext
6183if { (ac_try="$ac_compile"
6184case "(($ac_try" in
6185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186  *) ac_try_echo=$ac_try;;
6187esac
6188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6189$as_echo "$ac_try_echo") >&5
6190  (eval "$ac_compile") 2>conftest.er1
6191  ac_status=$?
6192  grep -v '^ *+' conftest.er1 >conftest.err
6193  rm -f conftest.er1
6194  cat conftest.err >&5
6195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); } && {
6197	 test -z "$ac_c_werror_flag" ||
6198	 test ! -s conftest.err
6199       } && test -s conftest.$ac_objext; then
6200  eval "$as_ac_Header=yes"
6201else
6202  $as_echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205	eval "$as_ac_Header=no"
6206fi
6207
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209fi
6210ac_res=`eval 'as_val=${'$as_ac_Header'}
6211		 $as_echo "$as_val"'`
6212	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6213$as_echo "$ac_res" >&6; }
6214as_val=`eval 'as_val=${'$as_ac_Header'}
6215		 $as_echo "$as_val"'`
6216   if test "x$as_val" = x""yes; then
6217  cat >>confdefs.h <<_ACEOF
6218#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219_ACEOF
6220
6221fi
6222
6223done
6224
6225
6226
6227cmu_save_LIBS="$LIBS"
6228
6229# Check whether --with-dblib was given.
6230if test "${with_dblib+set}" = set; then
6231  withval=$with_dblib; dblib=$withval
6232else
6233  dblib=auto_detect
6234fi
6235
6236
6237
6238
6239# Check whether --with-bdb-libdir was given.
6240if test "${with_bdb_libdir+set}" = set; then
6241  withval=$with_bdb_libdir; with_bdb_lib=$withval
6242else
6243   test "${with_bdb_lib+set}" = set || with_bdb_lib=none
6244fi
6245
6246
6247# Check whether --with-bdb-incdir was given.
6248if test "${with_bdb_incdir+set}" = set; then
6249  withval=$with_bdb_incdir; with_bdb_inc=$withval
6250else
6251   test "${with_bdb_inc+set}" = set || with_bdb_inc=none
6252fi
6253
6254
6255
6256SASL_DB_LIB=""
6257
6258case "$dblib" in
6259  berkeley)
6260
6261
6262
6263	cmu_save_CPPFLAGS=$CPPFLAGS
6264
6265	if test -d $with_bdb_inc; then
6266	    CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
6267	    BDB_INCADD="-I$with_bdb_inc"
6268	else
6269	    BDB_INCADD=""
6270	fi
6271
6272	                if test "${ac_cv_header_db_h+set}" = set; then
6273  { $as_echo "$as_me:$LINENO: checking for db.h" >&5
6274$as_echo_n "checking for db.h... " >&6; }
6275if test "${ac_cv_header_db_h+set}" = set; then
6276  $as_echo_n "(cached) " >&6
6277fi
6278{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
6279$as_echo "$ac_cv_header_db_h" >&6; }
6280else
6281  # Is the header compilable?
6282{ $as_echo "$as_me:$LINENO: checking db.h usability" >&5
6283$as_echo_n "checking db.h usability... " >&6; }
6284cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h.  */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h.  */
6290$ac_includes_default
6291#include <db.h>
6292_ACEOF
6293rm -f conftest.$ac_objext
6294if { (ac_try="$ac_compile"
6295case "(($ac_try" in
6296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297  *) ac_try_echo=$ac_try;;
6298esac
6299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6300$as_echo "$ac_try_echo") >&5
6301  (eval "$ac_compile") 2>conftest.er1
6302  ac_status=$?
6303  grep -v '^ *+' conftest.er1 >conftest.err
6304  rm -f conftest.er1
6305  cat conftest.err >&5
6306  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307  (exit $ac_status); } && {
6308	 test -z "$ac_c_werror_flag" ||
6309	 test ! -s conftest.err
6310       } && test -s conftest.$ac_objext; then
6311  ac_header_compiler=yes
6312else
6313  $as_echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316	ac_header_compiler=no
6317fi
6318
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6321$as_echo "$ac_header_compiler" >&6; }
6322
6323# Is the header present?
6324{ $as_echo "$as_me:$LINENO: checking db.h presence" >&5
6325$as_echo_n "checking db.h presence... " >&6; }
6326cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h.  */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h.  */
6332#include <db.h>
6333_ACEOF
6334if { (ac_try="$ac_cpp conftest.$ac_ext"
6335case "(($ac_try" in
6336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337  *) ac_try_echo=$ac_try;;
6338esac
6339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6340$as_echo "$ac_try_echo") >&5
6341  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6342  ac_status=$?
6343  grep -v '^ *+' conftest.er1 >conftest.err
6344  rm -f conftest.er1
6345  cat conftest.err >&5
6346  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347  (exit $ac_status); } >/dev/null && {
6348	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6349	 test ! -s conftest.err
6350       }; then
6351  ac_header_preproc=yes
6352else
6353  $as_echo "$as_me: failed program was:" >&5
6354sed 's/^/| /' conftest.$ac_ext >&5
6355
6356  ac_header_preproc=no
6357fi
6358
6359rm -f conftest.err conftest.$ac_ext
6360{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6361$as_echo "$ac_header_preproc" >&6; }
6362
6363# So?  What about this header?
6364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6365  yes:no: )
6366    { $as_echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
6367$as_echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6368    { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
6369$as_echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
6370    ac_header_preproc=yes
6371    ;;
6372  no:yes:* )
6373    { $as_echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
6374$as_echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
6375    { $as_echo "$as_me:$LINENO: WARNING: db.h:     check for missing prerequisite headers?" >&5
6376$as_echo "$as_me: WARNING: db.h:     check for missing prerequisite headers?" >&2;}
6377    { $as_echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
6378$as_echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
6379    { $as_echo "$as_me:$LINENO: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&5
6380$as_echo "$as_me: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6381    { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
6382$as_echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
6383    { $as_echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
6384$as_echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
6385
6386    ;;
6387esac
6388{ $as_echo "$as_me:$LINENO: checking for db.h" >&5
6389$as_echo_n "checking for db.h... " >&6; }
6390if test "${ac_cv_header_db_h+set}" = set; then
6391  $as_echo_n "(cached) " >&6
6392else
6393  ac_cv_header_db_h=$ac_header_preproc
6394fi
6395{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
6396$as_echo "$ac_cv_header_db_h" >&6; }
6397
6398fi
6399if test "x$ac_cv_header_db_h" = x""yes; then
6400
6401	BDB_SAVE_LDFLAGS=$LDFLAGS
6402
6403	if test -d $with_bdb_lib; then
6404
6405  # this is CMU ADD LIBPATH TO
6406  if test "$andrew_cv_runpath_switch" = "none" ; then
6407	LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
6408  else
6409	LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_bdb_lib"
6410  fi
6411
6412
6413  # this is CMU ADD LIBPATH TO
6414  if test "$andrew_cv_runpath_switch" = "none" ; then
6415	BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
6416  else
6417	BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_cv_runpath_switch$with_bdb_lib"
6418  fi
6419
6420	else
6421	    BDB_LIBADD=""
6422	fi
6423
6424	saved_LIBS=$LIBS
6425	    for dbname in ${with_bdb} \
6426	        db-5.2 db5.2 db52 \
6427	        db-5.1 db5.2 db51 \
6428	        db-5.0 db5.2 db50 \
6429	        db-4.8 db4.8 db48 \
6430	        db-4.7 db4.7 db47 \
6431	        db-4.6 db4.6 db46 \
6432	        db-4.5 db4.5 db45 \
6433	        db-4.4 db4.4 db44 \
6434	        db-4.3 db4.3 db43 \
6435	        db-4.2 db4.2 db42 \
6436	        db-4.1 db4.1 db41 \
6437	        db-4.0 db4.0 db40 db-4 db4 \
6438	        db-3.3 db3.3 db33 \
6439	        db-3.2 db3.2 db32 \
6440	        db-3.1 db3.1 db31 \
6441	        db-3.0 db3.0 db30 db-3 db3 \
6442	        db
6443	      do
6444	    LIBS="$saved_LIBS -l$dbname"
6445	    cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h.  */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h.  */
6451#include <stdio.h>
6452#include <db.h>
6453int
6454main ()
6455{
6456db_create(NULL, NULL, 0);
6457  ;
6458  return 0;
6459}
6460_ACEOF
6461rm -f conftest.$ac_objext conftest$ac_exeext
6462if { (ac_try="$ac_link"
6463case "(($ac_try" in
6464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465  *) ac_try_echo=$ac_try;;
6466esac
6467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6468$as_echo "$ac_try_echo") >&5
6469  (eval "$ac_link") 2>conftest.er1
6470  ac_status=$?
6471  grep -v '^ *+' conftest.er1 >conftest.err
6472  rm -f conftest.er1
6473  cat conftest.err >&5
6474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475  (exit $ac_status); } && {
6476	 test -z "$ac_c_werror_flag" ||
6477	 test ! -s conftest.err
6478       } && test -s conftest$ac_exeext && {
6479	 test "$cross_compiling" = yes ||
6480	 $as_test_x conftest$ac_exeext
6481       }; then
6482  BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
6483else
6484  $as_echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487	dblib="no"
6488fi
6489
6490rm -rf conftest.dSYM
6491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6492      conftest$ac_exeext conftest.$ac_ext
6493	    if test "$dblib" = "berkeley"; then break; fi
6494          done
6495        if test "$dblib" = "no"; then
6496	    LIBS="$saved_LIBS -ldb"
6497	    cat >conftest.$ac_ext <<_ACEOF
6498/* confdefs.h.  */
6499_ACEOF
6500cat confdefs.h >>conftest.$ac_ext
6501cat >>conftest.$ac_ext <<_ACEOF
6502/* end confdefs.h.  */
6503#include <stdio.h>
6504#include <db.h>
6505int
6506main ()
6507{
6508db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
6509  ;
6510  return 0;
6511}
6512_ACEOF
6513rm -f conftest.$ac_objext conftest$ac_exeext
6514if { (ac_try="$ac_link"
6515case "(($ac_try" in
6516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517  *) ac_try_echo=$ac_try;;
6518esac
6519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6520$as_echo "$ac_try_echo") >&5
6521  (eval "$ac_link") 2>conftest.er1
6522  ac_status=$?
6523  grep -v '^ *+' conftest.er1 >conftest.err
6524  rm -f conftest.er1
6525  cat conftest.err >&5
6526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); } && {
6528	 test -z "$ac_c_werror_flag" ||
6529	 test ! -s conftest.err
6530       } && test -s conftest$ac_exeext && {
6531	 test "$cross_compiling" = yes ||
6532	 $as_test_x conftest$ac_exeext
6533       }; then
6534  BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
6535else
6536  $as_echo "$as_me: failed program was:" >&5
6537sed 's/^/| /' conftest.$ac_ext >&5
6538
6539	dblib="no"
6540fi
6541
6542rm -rf conftest.dSYM
6543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6544      conftest$ac_exeext conftest.$ac_ext
6545        fi
6546	LIBS=$saved_LIBS
6547
6548	LDFLAGS=$BDB_SAVE_LDFLAGS
6549
6550else
6551  dblib="no"
6552fi
6553
6554
6555
6556	CPPFLAGS=$cmu_save_CPPFLAGS
6557
6558	CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
6559	SASL_DB_INC=$BDB_INCADD
6560	SASL_DB_LIB="${BDB_LIBADD}"
6561	;;
6562  gdbm)
6563
6564# Check whether --with-gdbm was given.
6565if test "${with_gdbm+set}" = set; then
6566  withval=$with_gdbm; with_gdbm="${withval}"
6567fi
6568
6569
6570        case "$with_gdbm" in
6571           ""|yes)
6572               if test "${ac_cv_header_gdbm_h+set}" = set; then
6573  { $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5
6574$as_echo_n "checking for gdbm.h... " >&6; }
6575if test "${ac_cv_header_gdbm_h+set}" = set; then
6576  $as_echo_n "(cached) " >&6
6577fi
6578{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6579$as_echo "$ac_cv_header_gdbm_h" >&6; }
6580else
6581  # Is the header compilable?
6582{ $as_echo "$as_me:$LINENO: checking gdbm.h usability" >&5
6583$as_echo_n "checking gdbm.h usability... " >&6; }
6584cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h.  */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h.  */
6590$ac_includes_default
6591#include <gdbm.h>
6592_ACEOF
6593rm -f conftest.$ac_objext
6594if { (ac_try="$ac_compile"
6595case "(($ac_try" in
6596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597  *) ac_try_echo=$ac_try;;
6598esac
6599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6600$as_echo "$ac_try_echo") >&5
6601  (eval "$ac_compile") 2>conftest.er1
6602  ac_status=$?
6603  grep -v '^ *+' conftest.er1 >conftest.err
6604  rm -f conftest.er1
6605  cat conftest.err >&5
6606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); } && {
6608	 test -z "$ac_c_werror_flag" ||
6609	 test ! -s conftest.err
6610       } && test -s conftest.$ac_objext; then
6611  ac_header_compiler=yes
6612else
6613  $as_echo "$as_me: failed program was:" >&5
6614sed 's/^/| /' conftest.$ac_ext >&5
6615
6616	ac_header_compiler=no
6617fi
6618
6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6621$as_echo "$ac_header_compiler" >&6; }
6622
6623# Is the header present?
6624{ $as_echo "$as_me:$LINENO: checking gdbm.h presence" >&5
6625$as_echo_n "checking gdbm.h presence... " >&6; }
6626cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h.  */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h.  */
6632#include <gdbm.h>
6633_ACEOF
6634if { (ac_try="$ac_cpp conftest.$ac_ext"
6635case "(($ac_try" in
6636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637  *) ac_try_echo=$ac_try;;
6638esac
6639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6640$as_echo "$ac_try_echo") >&5
6641  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6642  ac_status=$?
6643  grep -v '^ *+' conftest.er1 >conftest.err
6644  rm -f conftest.er1
6645  cat conftest.err >&5
6646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647  (exit $ac_status); } >/dev/null && {
6648	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6649	 test ! -s conftest.err
6650       }; then
6651  ac_header_preproc=yes
6652else
6653  $as_echo "$as_me: failed program was:" >&5
6654sed 's/^/| /' conftest.$ac_ext >&5
6655
6656  ac_header_preproc=no
6657fi
6658
6659rm -f conftest.err conftest.$ac_ext
6660{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6661$as_echo "$ac_header_preproc" >&6; }
6662
6663# So?  What about this header?
6664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6665  yes:no: )
6666    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6667$as_echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6668    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
6669$as_echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
6670    ac_header_preproc=yes
6671    ;;
6672  no:yes:* )
6673    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
6674$as_echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
6675    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h:     check for missing prerequisite headers?" >&5
6676$as_echo "$as_me: WARNING: gdbm.h:     check for missing prerequisite headers?" >&2;}
6677    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
6678$as_echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
6679    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&5
6680$as_echo "$as_me: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6681    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
6682$as_echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
6683    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
6684$as_echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
6685
6686    ;;
6687esac
6688{ $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5
6689$as_echo_n "checking for gdbm.h... " >&6; }
6690if test "${ac_cv_header_gdbm_h+set}" = set; then
6691  $as_echo_n "(cached) " >&6
6692else
6693  ac_cv_header_gdbm_h=$ac_header_preproc
6694fi
6695{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6696$as_echo "$ac_cv_header_gdbm_h" >&6; }
6697
6698fi
6699if test "x$ac_cv_header_gdbm_h" = x""yes; then
6700
6701			{ $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
6702$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
6703if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
6704  $as_echo_n "(cached) " >&6
6705else
6706  ac_check_lib_save_LIBS=$LIBS
6707LIBS="-lgdbm  $LIBS"
6708cat >conftest.$ac_ext <<_ACEOF
6709/* confdefs.h.  */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6713/* end confdefs.h.  */
6714
6715/* Override any GCC internal prototype to avoid an error.
6716   Use char because int might match the return type of a GCC
6717   builtin and then its argument prototype would still apply.  */
6718#ifdef __cplusplus
6719extern "C"
6720#endif
6721char gdbm_open ();
6722int
6723main ()
6724{
6725return gdbm_open ();
6726  ;
6727  return 0;
6728}
6729_ACEOF
6730rm -f conftest.$ac_objext conftest$ac_exeext
6731if { (ac_try="$ac_link"
6732case "(($ac_try" in
6733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734  *) ac_try_echo=$ac_try;;
6735esac
6736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737$as_echo "$ac_try_echo") >&5
6738  (eval "$ac_link") 2>conftest.er1
6739  ac_status=$?
6740  grep -v '^ *+' conftest.er1 >conftest.err
6741  rm -f conftest.er1
6742  cat conftest.err >&5
6743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744  (exit $ac_status); } && {
6745	 test -z "$ac_c_werror_flag" ||
6746	 test ! -s conftest.err
6747       } && test -s conftest$ac_exeext && {
6748	 test "$cross_compiling" = yes ||
6749	 $as_test_x conftest$ac_exeext
6750       }; then
6751  ac_cv_lib_gdbm_gdbm_open=yes
6752else
6753  $as_echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
6756	ac_cv_lib_gdbm_gdbm_open=no
6757fi
6758
6759rm -rf conftest.dSYM
6760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6761      conftest$ac_exeext conftest.$ac_ext
6762LIBS=$ac_check_lib_save_LIBS
6763fi
6764{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
6765$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
6766if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
6767  SASL_DB_LIB="-lgdbm"
6768else
6769  dblib="no"
6770fi
6771
6772else
6773  dblib="no"
6774fi
6775
6776
6777               ;;
6778           *)
6779               if test -d $with_gdbm; then
6780                 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
6781                 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
6782                 SASL_DB_LIB="-lgdbm"
6783               else
6784                 with_gdbm="no"
6785               fi
6786       esac
6787	;;
6788  ndbm)
6789			if test "${ac_cv_header_ndbm_h+set}" = set; then
6790  { $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5
6791$as_echo_n "checking for ndbm.h... " >&6; }
6792if test "${ac_cv_header_ndbm_h+set}" = set; then
6793  $as_echo_n "(cached) " >&6
6794fi
6795{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6796$as_echo "$ac_cv_header_ndbm_h" >&6; }
6797else
6798  # Is the header compilable?
6799{ $as_echo "$as_me:$LINENO: checking ndbm.h usability" >&5
6800$as_echo_n "checking ndbm.h usability... " >&6; }
6801cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h.  */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h.  */
6807$ac_includes_default
6808#include <ndbm.h>
6809_ACEOF
6810rm -f conftest.$ac_objext
6811if { (ac_try="$ac_compile"
6812case "(($ac_try" in
6813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814  *) ac_try_echo=$ac_try;;
6815esac
6816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6817$as_echo "$ac_try_echo") >&5
6818  (eval "$ac_compile") 2>conftest.er1
6819  ac_status=$?
6820  grep -v '^ *+' conftest.er1 >conftest.err
6821  rm -f conftest.er1
6822  cat conftest.err >&5
6823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); } && {
6825	 test -z "$ac_c_werror_flag" ||
6826	 test ! -s conftest.err
6827       } && test -s conftest.$ac_objext; then
6828  ac_header_compiler=yes
6829else
6830  $as_echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833	ac_header_compiler=no
6834fi
6835
6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6838$as_echo "$ac_header_compiler" >&6; }
6839
6840# Is the header present?
6841{ $as_echo "$as_me:$LINENO: checking ndbm.h presence" >&5
6842$as_echo_n "checking ndbm.h presence... " >&6; }
6843cat >conftest.$ac_ext <<_ACEOF
6844/* confdefs.h.  */
6845_ACEOF
6846cat confdefs.h >>conftest.$ac_ext
6847cat >>conftest.$ac_ext <<_ACEOF
6848/* end confdefs.h.  */
6849#include <ndbm.h>
6850_ACEOF
6851if { (ac_try="$ac_cpp conftest.$ac_ext"
6852case "(($ac_try" in
6853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854  *) ac_try_echo=$ac_try;;
6855esac
6856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6857$as_echo "$ac_try_echo") >&5
6858  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6859  ac_status=$?
6860  grep -v '^ *+' conftest.er1 >conftest.err
6861  rm -f conftest.er1
6862  cat conftest.err >&5
6863  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864  (exit $ac_status); } >/dev/null && {
6865	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6866	 test ! -s conftest.err
6867       }; then
6868  ac_header_preproc=yes
6869else
6870  $as_echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873  ac_header_preproc=no
6874fi
6875
6876rm -f conftest.err conftest.$ac_ext
6877{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6878$as_echo "$ac_header_preproc" >&6; }
6879
6880# So?  What about this header?
6881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6882  yes:no: )
6883    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6884$as_echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6885    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
6886$as_echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
6887    ac_header_preproc=yes
6888    ;;
6889  no:yes:* )
6890    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
6891$as_echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
6892    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h:     check for missing prerequisite headers?" >&5
6893$as_echo "$as_me: WARNING: ndbm.h:     check for missing prerequisite headers?" >&2;}
6894    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
6895$as_echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
6896    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&5
6897$as_echo "$as_me: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6898    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
6899$as_echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
6900    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
6901$as_echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
6902
6903    ;;
6904esac
6905{ $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5
6906$as_echo_n "checking for ndbm.h... " >&6; }
6907if test "${ac_cv_header_ndbm_h+set}" = set; then
6908  $as_echo_n "(cached) " >&6
6909else
6910  ac_cv_header_ndbm_h=$ac_header_preproc
6911fi
6912{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6913$as_echo "$ac_cv_header_ndbm_h" >&6; }
6914
6915fi
6916if test "x$ac_cv_header_ndbm_h" = x""yes; then
6917
6918			{ $as_echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
6919$as_echo_n "checking for dbm_open in -lndbm... " >&6; }
6920if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
6921  $as_echo_n "(cached) " >&6
6922else
6923  ac_check_lib_save_LIBS=$LIBS
6924LIBS="-lndbm  $LIBS"
6925cat >conftest.$ac_ext <<_ACEOF
6926/* confdefs.h.  */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h.  */
6931
6932/* Override any GCC internal prototype to avoid an error.
6933   Use char because int might match the return type of a GCC
6934   builtin and then its argument prototype would still apply.  */
6935#ifdef __cplusplus
6936extern "C"
6937#endif
6938char dbm_open ();
6939int
6940main ()
6941{
6942return dbm_open ();
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947rm -f conftest.$ac_objext conftest$ac_exeext
6948if { (ac_try="$ac_link"
6949case "(($ac_try" in
6950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6951  *) ac_try_echo=$ac_try;;
6952esac
6953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6954$as_echo "$ac_try_echo") >&5
6955  (eval "$ac_link") 2>conftest.er1
6956  ac_status=$?
6957  grep -v '^ *+' conftest.er1 >conftest.err
6958  rm -f conftest.er1
6959  cat conftest.err >&5
6960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); } && {
6962	 test -z "$ac_c_werror_flag" ||
6963	 test ! -s conftest.err
6964       } && test -s conftest$ac_exeext && {
6965	 test "$cross_compiling" = yes ||
6966	 $as_test_x conftest$ac_exeext
6967       }; then
6968  ac_cv_lib_ndbm_dbm_open=yes
6969else
6970  $as_echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973	ac_cv_lib_ndbm_dbm_open=no
6974fi
6975
6976rm -rf conftest.dSYM
6977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6978      conftest$ac_exeext conftest.$ac_ext
6979LIBS=$ac_check_lib_save_LIBS
6980fi
6981{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
6982$as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
6983if test "x$ac_cv_lib_ndbm_dbm_open" = x""yes; then
6984  SASL_DB_LIB="-lndbm"
6985else
6986
6987				{ $as_echo "$as_me:$LINENO: checking for dbm_open" >&5
6988$as_echo_n "checking for dbm_open... " >&6; }
6989if test "${ac_cv_func_dbm_open+set}" = set; then
6990  $as_echo_n "(cached) " >&6
6991else
6992  cat >conftest.$ac_ext <<_ACEOF
6993/* confdefs.h.  */
6994_ACEOF
6995cat confdefs.h >>conftest.$ac_ext
6996cat >>conftest.$ac_ext <<_ACEOF
6997/* end confdefs.h.  */
6998/* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
6999   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7000#define dbm_open innocuous_dbm_open
7001
7002/* System header to define __stub macros and hopefully few prototypes,
7003    which can conflict with char dbm_open (); below.
7004    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7005    <limits.h> exists even on freestanding compilers.  */
7006
7007#ifdef __STDC__
7008# include <limits.h>
7009#else
7010# include <assert.h>
7011#endif
7012
7013#undef dbm_open
7014
7015/* Override any GCC internal prototype to avoid an error.
7016   Use char because int might match the return type of a GCC
7017   builtin and then its argument prototype would still apply.  */
7018#ifdef __cplusplus
7019extern "C"
7020#endif
7021char dbm_open ();
7022/* The GNU C library defines this for functions which it implements
7023    to always fail with ENOSYS.  Some functions are actually named
7024    something starting with __ and the normal name is an alias.  */
7025#if defined __stub_dbm_open || defined __stub___dbm_open
7026choke me
7027#endif
7028
7029int
7030main ()
7031{
7032return dbm_open ();
7033  ;
7034  return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext conftest$ac_exeext
7038if { (ac_try="$ac_link"
7039case "(($ac_try" in
7040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7041  *) ac_try_echo=$ac_try;;
7042esac
7043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7044$as_echo "$ac_try_echo") >&5
7045  (eval "$ac_link") 2>conftest.er1
7046  ac_status=$?
7047  grep -v '^ *+' conftest.er1 >conftest.err
7048  rm -f conftest.er1
7049  cat conftest.err >&5
7050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051  (exit $ac_status); } && {
7052	 test -z "$ac_c_werror_flag" ||
7053	 test ! -s conftest.err
7054       } && test -s conftest$ac_exeext && {
7055	 test "$cross_compiling" = yes ||
7056	 $as_test_x conftest$ac_exeext
7057       }; then
7058  ac_cv_func_dbm_open=yes
7059else
7060  $as_echo "$as_me: failed program was:" >&5
7061sed 's/^/| /' conftest.$ac_ext >&5
7062
7063	ac_cv_func_dbm_open=no
7064fi
7065
7066rm -rf conftest.dSYM
7067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7068      conftest$ac_exeext conftest.$ac_ext
7069fi
7070{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
7071$as_echo "$ac_cv_func_dbm_open" >&6; }
7072if test "x$ac_cv_func_dbm_open" = x""yes; then
7073  :
7074else
7075  dblib="no"
7076fi
7077
7078fi
7079
7080else
7081  dblib="no"
7082fi
7083
7084
7085	;;
7086  auto_detect)
7087
7088
7089
7090	cmu_save_CPPFLAGS=$CPPFLAGS
7091
7092	if test -d $with_bdb_inc; then
7093	    CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
7094	    BDB_INCADD="-I$with_bdb_inc"
7095	else
7096	    BDB_INCADD=""
7097	fi
7098
7099	                if test "${ac_cv_header_db_h+set}" = set; then
7100  { $as_echo "$as_me:$LINENO: checking for db.h" >&5
7101$as_echo_n "checking for db.h... " >&6; }
7102if test "${ac_cv_header_db_h+set}" = set; then
7103  $as_echo_n "(cached) " >&6
7104fi
7105{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
7106$as_echo "$ac_cv_header_db_h" >&6; }
7107else
7108  # Is the header compilable?
7109{ $as_echo "$as_me:$LINENO: checking db.h usability" >&5
7110$as_echo_n "checking db.h usability... " >&6; }
7111cat >conftest.$ac_ext <<_ACEOF
7112/* confdefs.h.  */
7113_ACEOF
7114cat confdefs.h >>conftest.$ac_ext
7115cat >>conftest.$ac_ext <<_ACEOF
7116/* end confdefs.h.  */
7117$ac_includes_default
7118#include <db.h>
7119_ACEOF
7120rm -f conftest.$ac_objext
7121if { (ac_try="$ac_compile"
7122case "(($ac_try" in
7123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124  *) ac_try_echo=$ac_try;;
7125esac
7126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127$as_echo "$ac_try_echo") >&5
7128  (eval "$ac_compile") 2>conftest.er1
7129  ac_status=$?
7130  grep -v '^ *+' conftest.er1 >conftest.err
7131  rm -f conftest.er1
7132  cat conftest.err >&5
7133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134  (exit $ac_status); } && {
7135	 test -z "$ac_c_werror_flag" ||
7136	 test ! -s conftest.err
7137       } && test -s conftest.$ac_objext; then
7138  ac_header_compiler=yes
7139else
7140  $as_echo "$as_me: failed program was:" >&5
7141sed 's/^/| /' conftest.$ac_ext >&5
7142
7143	ac_header_compiler=no
7144fi
7145
7146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7148$as_echo "$ac_header_compiler" >&6; }
7149
7150# Is the header present?
7151{ $as_echo "$as_me:$LINENO: checking db.h presence" >&5
7152$as_echo_n "checking db.h presence... " >&6; }
7153cat >conftest.$ac_ext <<_ACEOF
7154/* confdefs.h.  */
7155_ACEOF
7156cat confdefs.h >>conftest.$ac_ext
7157cat >>conftest.$ac_ext <<_ACEOF
7158/* end confdefs.h.  */
7159#include <db.h>
7160_ACEOF
7161if { (ac_try="$ac_cpp conftest.$ac_ext"
7162case "(($ac_try" in
7163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164  *) ac_try_echo=$ac_try;;
7165esac
7166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7167$as_echo "$ac_try_echo") >&5
7168  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7169  ac_status=$?
7170  grep -v '^ *+' conftest.er1 >conftest.err
7171  rm -f conftest.er1
7172  cat conftest.err >&5
7173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174  (exit $ac_status); } >/dev/null && {
7175	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7176	 test ! -s conftest.err
7177       }; then
7178  ac_header_preproc=yes
7179else
7180  $as_echo "$as_me: failed program was:" >&5
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183  ac_header_preproc=no
7184fi
7185
7186rm -f conftest.err conftest.$ac_ext
7187{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7188$as_echo "$ac_header_preproc" >&6; }
7189
7190# So?  What about this header?
7191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7192  yes:no: )
7193    { $as_echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
7194$as_echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7195    { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
7196$as_echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
7197    ac_header_preproc=yes
7198    ;;
7199  no:yes:* )
7200    { $as_echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
7201$as_echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
7202    { $as_echo "$as_me:$LINENO: WARNING: db.h:     check for missing prerequisite headers?" >&5
7203$as_echo "$as_me: WARNING: db.h:     check for missing prerequisite headers?" >&2;}
7204    { $as_echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
7205$as_echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
7206    { $as_echo "$as_me:$LINENO: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&5
7207$as_echo "$as_me: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7208    { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
7209$as_echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
7210    { $as_echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
7211$as_echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
7212
7213    ;;
7214esac
7215{ $as_echo "$as_me:$LINENO: checking for db.h" >&5
7216$as_echo_n "checking for db.h... " >&6; }
7217if test "${ac_cv_header_db_h+set}" = set; then
7218  $as_echo_n "(cached) " >&6
7219else
7220  ac_cv_header_db_h=$ac_header_preproc
7221fi
7222{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
7223$as_echo "$ac_cv_header_db_h" >&6; }
7224
7225fi
7226if test "x$ac_cv_header_db_h" = x""yes; then
7227
7228	BDB_SAVE_LDFLAGS=$LDFLAGS
7229
7230	if test -d $with_bdb_lib; then
7231
7232  # this is CMU ADD LIBPATH TO
7233  if test "$andrew_cv_runpath_switch" = "none" ; then
7234	LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
7235  else
7236	LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_bdb_lib"
7237  fi
7238
7239
7240  # this is CMU ADD LIBPATH TO
7241  if test "$andrew_cv_runpath_switch" = "none" ; then
7242	BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
7243  else
7244	BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_cv_runpath_switch$with_bdb_lib"
7245  fi
7246
7247	else
7248	    BDB_LIBADD=""
7249	fi
7250
7251	saved_LIBS=$LIBS
7252	    for dbname in ${with_bdb} \
7253	        db-5.2 db5.2 db52 \
7254	        db-5.1 db5.2 db51 \
7255	        db-5.0 db5.2 db50 \
7256	        db-4.8 db4.8 db48 \
7257	        db-4.7 db4.7 db47 \
7258	        db-4.6 db4.6 db46 \
7259	        db-4.5 db4.5 db45 \
7260	        db-4.4 db4.4 db44 \
7261	        db-4.3 db4.3 db43 \
7262	        db-4.2 db4.2 db42 \
7263	        db-4.1 db4.1 db41 \
7264	        db-4.0 db4.0 db40 db-4 db4 \
7265	        db-3.3 db3.3 db33 \
7266	        db-3.2 db3.2 db32 \
7267	        db-3.1 db3.1 db31 \
7268	        db-3.0 db3.0 db30 db-3 db3 \
7269	        db
7270	      do
7271	    LIBS="$saved_LIBS -l$dbname"
7272	    cat >conftest.$ac_ext <<_ACEOF
7273/* confdefs.h.  */
7274_ACEOF
7275cat confdefs.h >>conftest.$ac_ext
7276cat >>conftest.$ac_ext <<_ACEOF
7277/* end confdefs.h.  */
7278#include <stdio.h>
7279#include <db.h>
7280int
7281main ()
7282{
7283db_create(NULL, NULL, 0);
7284  ;
7285  return 0;
7286}
7287_ACEOF
7288rm -f conftest.$ac_objext conftest$ac_exeext
7289if { (ac_try="$ac_link"
7290case "(($ac_try" in
7291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292  *) ac_try_echo=$ac_try;;
7293esac
7294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7295$as_echo "$ac_try_echo") >&5
7296  (eval "$ac_link") 2>conftest.er1
7297  ac_status=$?
7298  grep -v '^ *+' conftest.er1 >conftest.err
7299  rm -f conftest.er1
7300  cat conftest.err >&5
7301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302  (exit $ac_status); } && {
7303	 test -z "$ac_c_werror_flag" ||
7304	 test ! -s conftest.err
7305       } && test -s conftest$ac_exeext && {
7306	 test "$cross_compiling" = yes ||
7307	 $as_test_x conftest$ac_exeext
7308       }; then
7309  BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
7310else
7311  $as_echo "$as_me: failed program was:" >&5
7312sed 's/^/| /' conftest.$ac_ext >&5
7313
7314	dblib="no"
7315fi
7316
7317rm -rf conftest.dSYM
7318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7319      conftest$ac_exeext conftest.$ac_ext
7320	    if test "$dblib" = "berkeley"; then break; fi
7321          done
7322        if test "$dblib" = "no"; then
7323	    LIBS="$saved_LIBS -ldb"
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#include <stdio.h>
7331#include <db.h>
7332int
7333main ()
7334{
7335db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
7336  ;
7337  return 0;
7338}
7339_ACEOF
7340rm -f conftest.$ac_objext conftest$ac_exeext
7341if { (ac_try="$ac_link"
7342case "(($ac_try" in
7343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344  *) ac_try_echo=$ac_try;;
7345esac
7346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7347$as_echo "$ac_try_echo") >&5
7348  (eval "$ac_link") 2>conftest.er1
7349  ac_status=$?
7350  grep -v '^ *+' conftest.er1 >conftest.err
7351  rm -f conftest.er1
7352  cat conftest.err >&5
7353  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354  (exit $ac_status); } && {
7355	 test -z "$ac_c_werror_flag" ||
7356	 test ! -s conftest.err
7357       } && test -s conftest$ac_exeext && {
7358	 test "$cross_compiling" = yes ||
7359	 $as_test_x conftest$ac_exeext
7360       }; then
7361  BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
7362else
7363  $as_echo "$as_me: failed program was:" >&5
7364sed 's/^/| /' conftest.$ac_ext >&5
7365
7366	dblib="no"
7367fi
7368
7369rm -rf conftest.dSYM
7370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7371      conftest$ac_exeext conftest.$ac_ext
7372        fi
7373	LIBS=$saved_LIBS
7374
7375	LDFLAGS=$BDB_SAVE_LDFLAGS
7376
7377else
7378  dblib="no"
7379fi
7380
7381
7382
7383	CPPFLAGS=$cmu_save_CPPFLAGS
7384
7385	if test "$dblib" = no; then
7386	  	  if test "${ac_cv_header_ndbm_h+set}" = set; then
7387  { $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5
7388$as_echo_n "checking for ndbm.h... " >&6; }
7389if test "${ac_cv_header_ndbm_h+set}" = set; then
7390  $as_echo_n "(cached) " >&6
7391fi
7392{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
7393$as_echo "$ac_cv_header_ndbm_h" >&6; }
7394else
7395  # Is the header compilable?
7396{ $as_echo "$as_me:$LINENO: checking ndbm.h usability" >&5
7397$as_echo_n "checking ndbm.h usability... " >&6; }
7398cat >conftest.$ac_ext <<_ACEOF
7399/* confdefs.h.  */
7400_ACEOF
7401cat confdefs.h >>conftest.$ac_ext
7402cat >>conftest.$ac_ext <<_ACEOF
7403/* end confdefs.h.  */
7404$ac_includes_default
7405#include <ndbm.h>
7406_ACEOF
7407rm -f conftest.$ac_objext
7408if { (ac_try="$ac_compile"
7409case "(($ac_try" in
7410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411  *) ac_try_echo=$ac_try;;
7412esac
7413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7414$as_echo "$ac_try_echo") >&5
7415  (eval "$ac_compile") 2>conftest.er1
7416  ac_status=$?
7417  grep -v '^ *+' conftest.er1 >conftest.err
7418  rm -f conftest.er1
7419  cat conftest.err >&5
7420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421  (exit $ac_status); } && {
7422	 test -z "$ac_c_werror_flag" ||
7423	 test ! -s conftest.err
7424       } && test -s conftest.$ac_objext; then
7425  ac_header_compiler=yes
7426else
7427  $as_echo "$as_me: failed program was:" >&5
7428sed 's/^/| /' conftest.$ac_ext >&5
7429
7430	ac_header_compiler=no
7431fi
7432
7433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7435$as_echo "$ac_header_compiler" >&6; }
7436
7437# Is the header present?
7438{ $as_echo "$as_me:$LINENO: checking ndbm.h presence" >&5
7439$as_echo_n "checking ndbm.h presence... " >&6; }
7440cat >conftest.$ac_ext <<_ACEOF
7441/* confdefs.h.  */
7442_ACEOF
7443cat confdefs.h >>conftest.$ac_ext
7444cat >>conftest.$ac_ext <<_ACEOF
7445/* end confdefs.h.  */
7446#include <ndbm.h>
7447_ACEOF
7448if { (ac_try="$ac_cpp conftest.$ac_ext"
7449case "(($ac_try" in
7450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451  *) ac_try_echo=$ac_try;;
7452esac
7453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7454$as_echo "$ac_try_echo") >&5
7455  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7456  ac_status=$?
7457  grep -v '^ *+' conftest.er1 >conftest.err
7458  rm -f conftest.er1
7459  cat conftest.err >&5
7460  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461  (exit $ac_status); } >/dev/null && {
7462	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7463	 test ! -s conftest.err
7464       }; then
7465  ac_header_preproc=yes
7466else
7467  $as_echo "$as_me: failed program was:" >&5
7468sed 's/^/| /' conftest.$ac_ext >&5
7469
7470  ac_header_preproc=no
7471fi
7472
7473rm -f conftest.err conftest.$ac_ext
7474{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7475$as_echo "$ac_header_preproc" >&6; }
7476
7477# So?  What about this header?
7478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7479  yes:no: )
7480    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
7481$as_echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7482    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
7483$as_echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
7484    ac_header_preproc=yes
7485    ;;
7486  no:yes:* )
7487    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
7488$as_echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
7489    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h:     check for missing prerequisite headers?" >&5
7490$as_echo "$as_me: WARNING: ndbm.h:     check for missing prerequisite headers?" >&2;}
7491    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
7492$as_echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
7493    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&5
7494$as_echo "$as_me: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7495    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
7496$as_echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
7497    { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
7498$as_echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
7499
7500    ;;
7501esac
7502{ $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5
7503$as_echo_n "checking for ndbm.h... " >&6; }
7504if test "${ac_cv_header_ndbm_h+set}" = set; then
7505  $as_echo_n "(cached) " >&6
7506else
7507  ac_cv_header_ndbm_h=$ac_header_preproc
7508fi
7509{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
7510$as_echo "$ac_cv_header_ndbm_h" >&6; }
7511
7512fi
7513if test "x$ac_cv_header_ndbm_h" = x""yes; then
7514
7515		{ $as_echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
7516$as_echo_n "checking for dbm_open in -lndbm... " >&6; }
7517if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
7518  $as_echo_n "(cached) " >&6
7519else
7520  ac_check_lib_save_LIBS=$LIBS
7521LIBS="-lndbm  $LIBS"
7522cat >conftest.$ac_ext <<_ACEOF
7523/* confdefs.h.  */
7524_ACEOF
7525cat confdefs.h >>conftest.$ac_ext
7526cat >>conftest.$ac_ext <<_ACEOF
7527/* end confdefs.h.  */
7528
7529/* Override any GCC internal prototype to avoid an error.
7530   Use char because int might match the return type of a GCC
7531   builtin and then its argument prototype would still apply.  */
7532#ifdef __cplusplus
7533extern "C"
7534#endif
7535char dbm_open ();
7536int
7537main ()
7538{
7539return dbm_open ();
7540  ;
7541  return 0;
7542}
7543_ACEOF
7544rm -f conftest.$ac_objext conftest$ac_exeext
7545if { (ac_try="$ac_link"
7546case "(($ac_try" in
7547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548  *) ac_try_echo=$ac_try;;
7549esac
7550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7551$as_echo "$ac_try_echo") >&5
7552  (eval "$ac_link") 2>conftest.er1
7553  ac_status=$?
7554  grep -v '^ *+' conftest.er1 >conftest.err
7555  rm -f conftest.er1
7556  cat conftest.err >&5
7557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558  (exit $ac_status); } && {
7559	 test -z "$ac_c_werror_flag" ||
7560	 test ! -s conftest.err
7561       } && test -s conftest$ac_exeext && {
7562	 test "$cross_compiling" = yes ||
7563	 $as_test_x conftest$ac_exeext
7564       }; then
7565  ac_cv_lib_ndbm_dbm_open=yes
7566else
7567  $as_echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
7570	ac_cv_lib_ndbm_dbm_open=no
7571fi
7572
7573rm -rf conftest.dSYM
7574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575      conftest$ac_exeext conftest.$ac_ext
7576LIBS=$ac_check_lib_save_LIBS
7577fi
7578{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
7579$as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
7580if test "x$ac_cv_lib_ndbm_dbm_open" = x""yes; then
7581  dblib="ndbm"; SASL_DB_LIB="-lndbm"
7582else
7583  dblib="weird"
7584fi
7585
7586else
7587  dblib="no"
7588fi
7589
7590
7591	  if test "$dblib" = "weird"; then
7592	                { $as_echo "$as_me:$LINENO: checking for dbm_open" >&5
7593$as_echo_n "checking for dbm_open... " >&6; }
7594if test "${ac_cv_func_dbm_open+set}" = set; then
7595  $as_echo_n "(cached) " >&6
7596else
7597  cat >conftest.$ac_ext <<_ACEOF
7598/* confdefs.h.  */
7599_ACEOF
7600cat confdefs.h >>conftest.$ac_ext
7601cat >>conftest.$ac_ext <<_ACEOF
7602/* end confdefs.h.  */
7603/* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
7604   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7605#define dbm_open innocuous_dbm_open
7606
7607/* System header to define __stub macros and hopefully few prototypes,
7608    which can conflict with char dbm_open (); below.
7609    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7610    <limits.h> exists even on freestanding compilers.  */
7611
7612#ifdef __STDC__
7613# include <limits.h>
7614#else
7615# include <assert.h>
7616#endif
7617
7618#undef dbm_open
7619
7620/* Override any GCC internal prototype to avoid an error.
7621   Use char because int might match the return type of a GCC
7622   builtin and then its argument prototype would still apply.  */
7623#ifdef __cplusplus
7624extern "C"
7625#endif
7626char dbm_open ();
7627/* The GNU C library defines this for functions which it implements
7628    to always fail with ENOSYS.  Some functions are actually named
7629    something starting with __ and the normal name is an alias.  */
7630#if defined __stub_dbm_open || defined __stub___dbm_open
7631choke me
7632#endif
7633
7634int
7635main ()
7636{
7637return dbm_open ();
7638  ;
7639  return 0;
7640}
7641_ACEOF
7642rm -f conftest.$ac_objext conftest$ac_exeext
7643if { (ac_try="$ac_link"
7644case "(($ac_try" in
7645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646  *) ac_try_echo=$ac_try;;
7647esac
7648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649$as_echo "$ac_try_echo") >&5
7650  (eval "$ac_link") 2>conftest.er1
7651  ac_status=$?
7652  grep -v '^ *+' conftest.er1 >conftest.err
7653  rm -f conftest.er1
7654  cat conftest.err >&5
7655  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656  (exit $ac_status); } && {
7657	 test -z "$ac_c_werror_flag" ||
7658	 test ! -s conftest.err
7659       } && test -s conftest$ac_exeext && {
7660	 test "$cross_compiling" = yes ||
7661	 $as_test_x conftest$ac_exeext
7662       }; then
7663  ac_cv_func_dbm_open=yes
7664else
7665  $as_echo "$as_me: failed program was:" >&5
7666sed 's/^/| /' conftest.$ac_ext >&5
7667
7668	ac_cv_func_dbm_open=no
7669fi
7670
7671rm -rf conftest.dSYM
7672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7673      conftest$ac_exeext conftest.$ac_ext
7674fi
7675{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
7676$as_echo "$ac_cv_func_dbm_open" >&6; }
7677if test "x$ac_cv_func_dbm_open" = x""yes; then
7678  dblib="ndbm"
7679else
7680  dblib="no"
7681fi
7682
7683	  fi
7684
7685	  if test "$dblib" = no; then
7686               	    if test "${ac_cv_header_gdbm_h+set}" = set; then
7687  { $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5
7688$as_echo_n "checking for gdbm.h... " >&6; }
7689if test "${ac_cv_header_gdbm_h+set}" = set; then
7690  $as_echo_n "(cached) " >&6
7691fi
7692{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
7693$as_echo "$ac_cv_header_gdbm_h" >&6; }
7694else
7695  # Is the header compilable?
7696{ $as_echo "$as_me:$LINENO: checking gdbm.h usability" >&5
7697$as_echo_n "checking gdbm.h usability... " >&6; }
7698cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h.  */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h.  */
7704$ac_includes_default
7705#include <gdbm.h>
7706_ACEOF
7707rm -f conftest.$ac_objext
7708if { (ac_try="$ac_compile"
7709case "(($ac_try" in
7710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711  *) ac_try_echo=$ac_try;;
7712esac
7713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7714$as_echo "$ac_try_echo") >&5
7715  (eval "$ac_compile") 2>conftest.er1
7716  ac_status=$?
7717  grep -v '^ *+' conftest.er1 >conftest.err
7718  rm -f conftest.er1
7719  cat conftest.err >&5
7720  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721  (exit $ac_status); } && {
7722	 test -z "$ac_c_werror_flag" ||
7723	 test ! -s conftest.err
7724       } && test -s conftest.$ac_objext; then
7725  ac_header_compiler=yes
7726else
7727  $as_echo "$as_me: failed program was:" >&5
7728sed 's/^/| /' conftest.$ac_ext >&5
7729
7730	ac_header_compiler=no
7731fi
7732
7733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7735$as_echo "$ac_header_compiler" >&6; }
7736
7737# Is the header present?
7738{ $as_echo "$as_me:$LINENO: checking gdbm.h presence" >&5
7739$as_echo_n "checking gdbm.h presence... " >&6; }
7740cat >conftest.$ac_ext <<_ACEOF
7741/* confdefs.h.  */
7742_ACEOF
7743cat confdefs.h >>conftest.$ac_ext
7744cat >>conftest.$ac_ext <<_ACEOF
7745/* end confdefs.h.  */
7746#include <gdbm.h>
7747_ACEOF
7748if { (ac_try="$ac_cpp conftest.$ac_ext"
7749case "(($ac_try" in
7750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751  *) ac_try_echo=$ac_try;;
7752esac
7753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7754$as_echo "$ac_try_echo") >&5
7755  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7756  ac_status=$?
7757  grep -v '^ *+' conftest.er1 >conftest.err
7758  rm -f conftest.er1
7759  cat conftest.err >&5
7760  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761  (exit $ac_status); } >/dev/null && {
7762	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7763	 test ! -s conftest.err
7764       }; then
7765  ac_header_preproc=yes
7766else
7767  $as_echo "$as_me: failed program was:" >&5
7768sed 's/^/| /' conftest.$ac_ext >&5
7769
7770  ac_header_preproc=no
7771fi
7772
7773rm -f conftest.err conftest.$ac_ext
7774{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7775$as_echo "$ac_header_preproc" >&6; }
7776
7777# So?  What about this header?
7778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7779  yes:no: )
7780    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
7781$as_echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7782    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
7783$as_echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
7784    ac_header_preproc=yes
7785    ;;
7786  no:yes:* )
7787    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
7788$as_echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
7789    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h:     check for missing prerequisite headers?" >&5
7790$as_echo "$as_me: WARNING: gdbm.h:     check for missing prerequisite headers?" >&2;}
7791    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
7792$as_echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
7793    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&5
7794$as_echo "$as_me: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7795    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
7796$as_echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
7797    { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
7798$as_echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
7799
7800    ;;
7801esac
7802{ $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5
7803$as_echo_n "checking for gdbm.h... " >&6; }
7804if test "${ac_cv_header_gdbm_h+set}" = set; then
7805  $as_echo_n "(cached) " >&6
7806else
7807  ac_cv_header_gdbm_h=$ac_header_preproc
7808fi
7809{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
7810$as_echo "$ac_cv_header_gdbm_h" >&6; }
7811
7812fi
7813if test "x$ac_cv_header_gdbm_h" = x""yes; then
7814
7815		{ $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
7816$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
7817if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
7818  $as_echo_n "(cached) " >&6
7819else
7820  ac_check_lib_save_LIBS=$LIBS
7821LIBS="-lgdbm  $LIBS"
7822cat >conftest.$ac_ext <<_ACEOF
7823/* confdefs.h.  */
7824_ACEOF
7825cat confdefs.h >>conftest.$ac_ext
7826cat >>conftest.$ac_ext <<_ACEOF
7827/* end confdefs.h.  */
7828
7829/* Override any GCC internal prototype to avoid an error.
7830   Use char because int might match the return type of a GCC
7831   builtin and then its argument prototype would still apply.  */
7832#ifdef __cplusplus
7833extern "C"
7834#endif
7835char gdbm_open ();
7836int
7837main ()
7838{
7839return gdbm_open ();
7840  ;
7841  return 0;
7842}
7843_ACEOF
7844rm -f conftest.$ac_objext conftest$ac_exeext
7845if { (ac_try="$ac_link"
7846case "(($ac_try" in
7847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848  *) ac_try_echo=$ac_try;;
7849esac
7850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851$as_echo "$ac_try_echo") >&5
7852  (eval "$ac_link") 2>conftest.er1
7853  ac_status=$?
7854  grep -v '^ *+' conftest.er1 >conftest.err
7855  rm -f conftest.er1
7856  cat conftest.err >&5
7857  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858  (exit $ac_status); } && {
7859	 test -z "$ac_c_werror_flag" ||
7860	 test ! -s conftest.err
7861       } && test -s conftest$ac_exeext && {
7862	 test "$cross_compiling" = yes ||
7863	 $as_test_x conftest$ac_exeext
7864       }; then
7865  ac_cv_lib_gdbm_gdbm_open=yes
7866else
7867  $as_echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870	ac_cv_lib_gdbm_gdbm_open=no
7871fi
7872
7873rm -rf conftest.dSYM
7874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7875      conftest$ac_exeext conftest.$ac_ext
7876LIBS=$ac_check_lib_save_LIBS
7877fi
7878{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
7879$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
7880if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
7881  dblib="gdbm";
7882					     SASL_DB_LIB="-lgdbm"
7883else
7884  dblib="no"
7885fi
7886
7887else
7888  dblib="no"
7889fi
7890
7891
7892	  fi
7893	else
7894	  	  CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
7895	  SASL_DB_INC=$BDB_INCADD
7896          SASL_DB_LIB="${BDB_LIBADD}"
7897	fi
7898	;;
7899  none)
7900	;;
7901  no)
7902	;;
7903  *)
7904	{ $as_echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5
7905$as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
7906	{ { $as_echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5
7907$as_echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;}
7908   { (exit 1); exit 1; }; }
7909	dblib=no
7910	;;
7911esac
7912LIBS="$cmu_save_LIBS"
7913
7914{ $as_echo "$as_me:$LINENO: checking DB library to use" >&5
7915$as_echo_n "checking DB library to use... " >&6; }
7916{ $as_echo "$as_me:$LINENO: result: $dblib" >&5
7917$as_echo "$dblib" >&6; }
7918
7919SASL_DB_BACKEND="db_${dblib}.lo"
7920SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
7921SASL_DB_BACKEND_STATIC_SRCS="\$(top_srcdir)/sasldb/db_${dblib}.c \$(top_srcdir)/sasldb/allockey.c"
7922SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
7923SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
7924
7925case "$dblib" in
7926  gdbm)
7927    SASL_MECHS="$SASL_MECHS libsasldb.la"
7928
7929cat >>confdefs.h <<\_ACEOF
7930#define SASL_GDBM /**/
7931_ACEOF
7932
7933    ;;
7934  ndbm)
7935    SASL_MECHS="$SASL_MECHS libsasldb.la"
7936
7937cat >>confdefs.h <<\_ACEOF
7938#define SASL_NDBM /**/
7939_ACEOF
7940
7941    ;;
7942  berkeley)
7943    SASL_MECHS="$SASL_MECHS libsasldb.la"
7944
7945cat >>confdefs.h <<\_ACEOF
7946#define SASL_BERKELEYDB /**/
7947_ACEOF
7948
7949    ;;
7950  *)
7951    { $as_echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5
7952$as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
7953            SASL_DB_BACKEND="db_none.lo"
7954    SASL_DB_BACKEND_STATIC="db_none.o"
7955    SASL_DB_BACKEND_STATIC_SRCS="\$(top_srcdir)/sasldb/db_none.c"
7956    SASL_DB_UTILS=""
7957    SASL_DB_MANS=""
7958    SASL_DB_LIB=""
7959    ;;
7960esac
7961
7962if test "$enable_static" = yes; then
7963    if test "$dblib" != "none"; then
7964      SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
7965      SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
7966
7967cat >>confdefs.h <<\_ACEOF
7968#define STATIC_SASLDB /**/
7969_ACEOF
7970
7971    else
7972      SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
7973      SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
7974    fi
7975fi
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985# Do we not install the SASL DB man pages?
7986 if test "x$SASL_DB_MANS" = "x"; then
7987  NO_SASL_DB_MANS_TRUE=
7988  NO_SASL_DB_MANS_FALSE='#'
7989else
7990  NO_SASL_DB_MANS_TRUE='#'
7991  NO_SASL_DB_MANS_FALSE=
7992fi
7993
7994
7995# Check whether --enable-keep_db_open was given.
7996if test "${enable_keep_db_open+set}" = set; then
7997  enableval=$enable_keep_db_open; keep_db_open=$enableval
7998else
7999  keep_db_open=no
8000fi
8001
8002
8003# Disable if Berkeley DB is not used
8004if test "$dblib" != berkeley; then
8005  keep_db_open=no
8006fi
8007
8008if test "$keep_db_open" = yes; then
8009
8010cat >>confdefs.h <<\_ACEOF
8011#define KEEP_DB_OPEN /**/
8012_ACEOF
8013
8014fi
8015{ $as_echo "$as_me:$LINENO: checking if Berkeley DB handle is kept open in SASLDB" >&5
8016$as_echo_n "checking if Berkeley DB handle is kept open in SASLDB... " >&6; }
8017{ $as_echo "$as_me:$LINENO: result: $keep_db_open" >&5
8018$as_echo "$keep_db_open" >&6; }
8019
8020{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8021$as_echo_n "checking for dlopen in -ldl... " >&6; }
8022if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8023  $as_echo_n "(cached) " >&6
8024else
8025  ac_check_lib_save_LIBS=$LIBS
8026LIBS="-ldl  $LIBS"
8027cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h.  */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h.  */
8033
8034/* Override any GCC internal prototype to avoid an error.
8035   Use char because int might match the return type of a GCC
8036   builtin and then its argument prototype would still apply.  */
8037#ifdef __cplusplus
8038extern "C"
8039#endif
8040char dlopen ();
8041int
8042main ()
8043{
8044return dlopen ();
8045  ;
8046  return 0;
8047}
8048_ACEOF
8049rm -f conftest.$ac_objext conftest$ac_exeext
8050if { (ac_try="$ac_link"
8051case "(($ac_try" in
8052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053  *) ac_try_echo=$ac_try;;
8054esac
8055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8056$as_echo "$ac_try_echo") >&5
8057  (eval "$ac_link") 2>conftest.er1
8058  ac_status=$?
8059  grep -v '^ *+' conftest.er1 >conftest.err
8060  rm -f conftest.er1
8061  cat conftest.err >&5
8062  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063  (exit $ac_status); } && {
8064	 test -z "$ac_c_werror_flag" ||
8065	 test ! -s conftest.err
8066       } && test -s conftest$ac_exeext && {
8067	 test "$cross_compiling" = yes ||
8068	 $as_test_x conftest$ac_exeext
8069       }; then
8070  ac_cv_lib_dl_dlopen=yes
8071else
8072  $as_echo "$as_me: failed program was:" >&5
8073sed 's/^/| /' conftest.$ac_ext >&5
8074
8075	ac_cv_lib_dl_dlopen=no
8076fi
8077
8078rm -rf conftest.dSYM
8079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8080      conftest$ac_exeext conftest.$ac_ext
8081LIBS=$ac_check_lib_save_LIBS
8082fi
8083{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8084$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8085if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
8086  SASL_DL_LIB="-ldl"
8087else
8088  SASL_DL_LIB=""
8089fi
8090
8091
8092
8093
8094
8095# Check whether --with-devrandom was given.
8096if test "${with_devrandom+set}" = set; then
8097  withval=$with_devrandom; devrandom=$withval
8098else
8099  devrandom=/dev/random
8100fi
8101
8102{ $as_echo "$as_me:$LINENO: checking /dev/random to use" >&5
8103$as_echo_n "checking /dev/random to use... " >&6; }
8104{ $as_echo "$as_me:$LINENO: result: $devrandom" >&5
8105$as_echo "$devrandom" >&6; }
8106
8107cat >>confdefs.h <<_ACEOF
8108#define SASL_DEV_RANDOM "$devrandom"
8109_ACEOF
8110
8111
8112
8113for ac_prog in nm
8114do
8115  # Extract the first word of "$ac_prog", so it can be a program name with args.
8116set dummy $ac_prog; ac_word=$2
8117{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8118$as_echo_n "checking for $ac_word... " >&6; }
8119if test "${ac_cv_prog_NM+set}" = set; then
8120  $as_echo_n "(cached) " >&6
8121else
8122  if test -n "$NM"; then
8123  ac_cv_prog_NM="$NM" # Let the user override the test.
8124else
8125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128  IFS=$as_save_IFS
8129  test -z "$as_dir" && as_dir=.
8130  for ac_exec_ext in '' $ac_executable_extensions; do
8131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132    ac_cv_prog_NM="$ac_prog"
8133    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134    break 2
8135  fi
8136done
8137done
8138IFS=$as_save_IFS
8139
8140fi
8141fi
8142NM=$ac_cv_prog_NM
8143if test -n "$NM"; then
8144  { $as_echo "$as_me:$LINENO: result: $NM" >&5
8145$as_echo "$NM" >&6; }
8146else
8147  { $as_echo "$as_me:$LINENO: result: no" >&5
8148$as_echo "no" >&6; }
8149fi
8150
8151
8152  test -n "$NM" && break
8153done
8154
8155
8156{ $as_echo "$as_me:$LINENO: checking for underscore before symbols" >&5
8157$as_echo_n "checking for underscore before symbols... " >&6; }
8158if test "${sasl_cv_uscore+set}" = set; then
8159  $as_echo_n "(cached) " >&6
8160else
8161
8162    echo "main(){int i=1;}
8163    foo(){int i=6;}" > conftest.c
8164    ${CC} -o a.out conftest.c > /dev/null
8165    if (${NM} a.out | grep _foo) > /dev/null; then
8166      sasl_cv_uscore=yes
8167    else
8168      sasl_cv_uscore=no
8169    fi
8170fi
8171
8172{ $as_echo "$as_me:$LINENO: result: $sasl_cv_uscore" >&5
8173$as_echo "$sasl_cv_uscore" >&6; }
8174rm -f conftest.c a.out
8175
8176if test $sasl_cv_uscore = yes; then
8177  if test $ac_cv_lib_dl_dlopen = yes ; then
8178	{ $as_echo "$as_me:$LINENO: checking whether dlsym adds the underscore for us" >&5
8179$as_echo_n "checking whether dlsym adds the underscore for us... " >&6; }
8180	cmu_save_LIBS="$LIBS"
8181	LIBS="$LIBS $SASL_DL_LIB"
8182	if test "${sasl_cv_dlsym_adds_uscore+set}" = set; then
8183  $as_echo_n "(cached) " >&6
8184else
8185  if test "$cross_compiling" = yes; then
8186  { $as_echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
8187$as_echo "$as_me: WARNING: cross-compiler" >&2;}
8188else
8189  cat >conftest.$ac_ext <<_ACEOF
8190/* confdefs.h.  */
8191_ACEOF
8192cat confdefs.h >>conftest.$ac_ext
8193cat >>conftest.$ac_ext <<_ACEOF
8194/* end confdefs.h.  */
8195
8196#include <dlfcn.h>
8197#include <stdio.h>
8198foo() { int i=0;}
8199main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
8200    if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
8201    if(ptr1 && !ptr2) exit(0); } exit(1); }
8202
8203_ACEOF
8204rm -f conftest$ac_exeext
8205if { (ac_try="$ac_link"
8206case "(($ac_try" in
8207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208  *) ac_try_echo=$ac_try;;
8209esac
8210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8211$as_echo "$ac_try_echo") >&5
8212  (eval "$ac_link") 2>&5
8213  ac_status=$?
8214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8216  { (case "(($ac_try" in
8217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218  *) ac_try_echo=$ac_try;;
8219esac
8220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8221$as_echo "$ac_try_echo") >&5
8222  (eval "$ac_try") 2>&5
8223  ac_status=$?
8224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225  (exit $ac_status); }; }; then
8226  sasl_cv_dlsym_adds_uscore=yes
8227else
8228  $as_echo "$as_me: program exited with status $ac_status" >&5
8229$as_echo "$as_me: failed program was:" >&5
8230sed 's/^/| /' conftest.$ac_ext >&5
8231
8232( exit $ac_status )
8233sasl_cv_dlsym_adds_uscore=no
8234
8235cat >>confdefs.h <<\_ACEOF
8236#define DLSYM_NEEDS_UNDERSCORE /**/
8237_ACEOF
8238
8239fi
8240rm -rf conftest.dSYM
8241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8242fi
8243
8244
8245fi
8246
8247	LIBS="$cmu_save_LIBS"
8248      { $as_echo "$as_me:$LINENO: result: $sasl_cv_dlsym_adds_uscore" >&5
8249$as_echo "$sasl_cv_dlsym_adds_uscore" >&6; }
8250  fi
8251fi
8252
8253
8254for ac_func in syslog
8255do
8256as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8257{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8258$as_echo_n "checking for $ac_func... " >&6; }
8259if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8260  $as_echo_n "(cached) " >&6
8261else
8262  cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h.  */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h.  */
8268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8269   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8270#define $ac_func innocuous_$ac_func
8271
8272/* System header to define __stub macros and hopefully few prototypes,
8273    which can conflict with char $ac_func (); below.
8274    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8275    <limits.h> exists even on freestanding compilers.  */
8276
8277#ifdef __STDC__
8278# include <limits.h>
8279#else
8280# include <assert.h>
8281#endif
8282
8283#undef $ac_func
8284
8285/* Override any GCC internal prototype to avoid an error.
8286   Use char because int might match the return type of a GCC
8287   builtin and then its argument prototype would still apply.  */
8288#ifdef __cplusplus
8289extern "C"
8290#endif
8291char $ac_func ();
8292/* The GNU C library defines this for functions which it implements
8293    to always fail with ENOSYS.  Some functions are actually named
8294    something starting with __ and the normal name is an alias.  */
8295#if defined __stub_$ac_func || defined __stub___$ac_func
8296choke me
8297#endif
8298
8299int
8300main ()
8301{
8302return $ac_func ();
8303  ;
8304  return 0;
8305}
8306_ACEOF
8307rm -f conftest.$ac_objext conftest$ac_exeext
8308if { (ac_try="$ac_link"
8309case "(($ac_try" in
8310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311  *) ac_try_echo=$ac_try;;
8312esac
8313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8314$as_echo "$ac_try_echo") >&5
8315  (eval "$ac_link") 2>conftest.er1
8316  ac_status=$?
8317  grep -v '^ *+' conftest.er1 >conftest.err
8318  rm -f conftest.er1
8319  cat conftest.err >&5
8320  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321  (exit $ac_status); } && {
8322	 test -z "$ac_c_werror_flag" ||
8323	 test ! -s conftest.err
8324       } && test -s conftest$ac_exeext && {
8325	 test "$cross_compiling" = yes ||
8326	 $as_test_x conftest$ac_exeext
8327       }; then
8328  eval "$as_ac_var=yes"
8329else
8330  $as_echo "$as_me: failed program was:" >&5
8331sed 's/^/| /' conftest.$ac_ext >&5
8332
8333	eval "$as_ac_var=no"
8334fi
8335
8336rm -rf conftest.dSYM
8337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8338      conftest$ac_exeext conftest.$ac_ext
8339fi
8340ac_res=`eval 'as_val=${'$as_ac_var'}
8341		 $as_echo "$as_val"'`
8342	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8343$as_echo "$ac_res" >&6; }
8344as_val=`eval 'as_val=${'$as_ac_var'}
8345		 $as_echo "$as_val"'`
8346   if test "x$as_val" = x""yes; then
8347  cat >>confdefs.h <<_ACEOF
8348#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8349_ACEOF
8350
8351fi
8352done
8353
8354
8355
8356# Check whether --with-pam was given.
8357if test "${with_pam+set}" = set; then
8358  withval=$with_pam; with_pam=$withval
8359else
8360  with_pam=yes
8361fi
8362
8363if test "$with_pam" != no; then
8364  if test -d $with_pam; then
8365    CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
8366    LDFLAGS="$LDFLAGS -L${with_pam}/lib"
8367  fi
8368
8369
8370for ac_header in security/pam_appl.h pam/pam_appl.h
8371do
8372as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8374  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8375$as_echo_n "checking for $ac_header... " >&6; }
8376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377  $as_echo_n "(cached) " >&6
8378fi
8379ac_res=`eval 'as_val=${'$as_ac_Header'}
8380		 $as_echo "$as_val"'`
8381	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8382$as_echo "$ac_res" >&6; }
8383else
8384  # Is the header compilable?
8385{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8386$as_echo_n "checking $ac_header usability... " >&6; }
8387cat >conftest.$ac_ext <<_ACEOF
8388/* confdefs.h.  */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h.  */
8393$ac_includes_default
8394#include <$ac_header>
8395_ACEOF
8396rm -f conftest.$ac_objext
8397if { (ac_try="$ac_compile"
8398case "(($ac_try" in
8399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400  *) ac_try_echo=$ac_try;;
8401esac
8402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8403$as_echo "$ac_try_echo") >&5
8404  (eval "$ac_compile") 2>conftest.er1
8405  ac_status=$?
8406  grep -v '^ *+' conftest.er1 >conftest.err
8407  rm -f conftest.er1
8408  cat conftest.err >&5
8409  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410  (exit $ac_status); } && {
8411	 test -z "$ac_c_werror_flag" ||
8412	 test ! -s conftest.err
8413       } && test -s conftest.$ac_objext; then
8414  ac_header_compiler=yes
8415else
8416  $as_echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419	ac_header_compiler=no
8420fi
8421
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8424$as_echo "$ac_header_compiler" >&6; }
8425
8426# Is the header present?
8427{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8428$as_echo_n "checking $ac_header presence... " >&6; }
8429cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h.  */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h.  */
8435#include <$ac_header>
8436_ACEOF
8437if { (ac_try="$ac_cpp conftest.$ac_ext"
8438case "(($ac_try" in
8439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440  *) ac_try_echo=$ac_try;;
8441esac
8442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8443$as_echo "$ac_try_echo") >&5
8444  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8445  ac_status=$?
8446  grep -v '^ *+' conftest.er1 >conftest.err
8447  rm -f conftest.er1
8448  cat conftest.err >&5
8449  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450  (exit $ac_status); } >/dev/null && {
8451	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8452	 test ! -s conftest.err
8453       }; then
8454  ac_header_preproc=yes
8455else
8456  $as_echo "$as_me: failed program was:" >&5
8457sed 's/^/| /' conftest.$ac_ext >&5
8458
8459  ac_header_preproc=no
8460fi
8461
8462rm -f conftest.err conftest.$ac_ext
8463{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8464$as_echo "$ac_header_preproc" >&6; }
8465
8466# So?  What about this header?
8467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8468  yes:no: )
8469    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8470$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8471    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8472$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8473    ac_header_preproc=yes
8474    ;;
8475  no:yes:* )
8476    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8477$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8478    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8479$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8480    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8481$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8482    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8483$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8484    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8485$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8486    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8487$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8488
8489    ;;
8490esac
8491{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8492$as_echo_n "checking for $ac_header... " >&6; }
8493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8494  $as_echo_n "(cached) " >&6
8495else
8496  eval "$as_ac_Header=\$ac_header_preproc"
8497fi
8498ac_res=`eval 'as_val=${'$as_ac_Header'}
8499		 $as_echo "$as_val"'`
8500	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8501$as_echo "$ac_res" >&6; }
8502
8503fi
8504as_val=`eval 'as_val=${'$as_ac_Header'}
8505		 $as_echo "$as_val"'`
8506   if test "x$as_val" = x""yes; then
8507  cat >>confdefs.h <<_ACEOF
8508#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8509_ACEOF
8510
8511fi
8512
8513done
8514
8515  cmu_save_LIBS="$LIBS"
8516  { $as_echo "$as_me:$LINENO: checking for pam_start" >&5
8517$as_echo_n "checking for pam_start... " >&6; }
8518if test "${ac_cv_func_pam_start+set}" = set; then
8519  $as_echo_n "(cached) " >&6
8520else
8521  cat >conftest.$ac_ext <<_ACEOF
8522/* confdefs.h.  */
8523_ACEOF
8524cat confdefs.h >>conftest.$ac_ext
8525cat >>conftest.$ac_ext <<_ACEOF
8526/* end confdefs.h.  */
8527/* Define pam_start to an innocuous variant, in case <limits.h> declares pam_start.
8528   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8529#define pam_start innocuous_pam_start
8530
8531/* System header to define __stub macros and hopefully few prototypes,
8532    which can conflict with char pam_start (); below.
8533    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8534    <limits.h> exists even on freestanding compilers.  */
8535
8536#ifdef __STDC__
8537# include <limits.h>
8538#else
8539# include <assert.h>
8540#endif
8541
8542#undef pam_start
8543
8544/* Override any GCC internal prototype to avoid an error.
8545   Use char because int might match the return type of a GCC
8546   builtin and then its argument prototype would still apply.  */
8547#ifdef __cplusplus
8548extern "C"
8549#endif
8550char pam_start ();
8551/* The GNU C library defines this for functions which it implements
8552    to always fail with ENOSYS.  Some functions are actually named
8553    something starting with __ and the normal name is an alias.  */
8554#if defined __stub_pam_start || defined __stub___pam_start
8555choke me
8556#endif
8557
8558int
8559main ()
8560{
8561return pam_start ();
8562  ;
8563  return 0;
8564}
8565_ACEOF
8566rm -f conftest.$ac_objext conftest$ac_exeext
8567if { (ac_try="$ac_link"
8568case "(($ac_try" in
8569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570  *) ac_try_echo=$ac_try;;
8571esac
8572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8573$as_echo "$ac_try_echo") >&5
8574  (eval "$ac_link") 2>conftest.er1
8575  ac_status=$?
8576  grep -v '^ *+' conftest.er1 >conftest.err
8577  rm -f conftest.er1
8578  cat conftest.err >&5
8579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); } && {
8581	 test -z "$ac_c_werror_flag" ||
8582	 test ! -s conftest.err
8583       } && test -s conftest$ac_exeext && {
8584	 test "$cross_compiling" = yes ||
8585	 $as_test_x conftest$ac_exeext
8586       }; then
8587  ac_cv_func_pam_start=yes
8588else
8589  $as_echo "$as_me: failed program was:" >&5
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
8592	ac_cv_func_pam_start=no
8593fi
8594
8595rm -rf conftest.dSYM
8596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8597      conftest$ac_exeext conftest.$ac_ext
8598fi
8599{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pam_start" >&5
8600$as_echo "$ac_cv_func_pam_start" >&6; }
8601if test "x$ac_cv_func_pam_start" = x""yes; then
8602  :
8603else
8604  LIBS="-lpam $LIBS"
8605	cat >conftest.$ac_ext <<_ACEOF
8606/* confdefs.h.  */
8607_ACEOF
8608cat confdefs.h >>conftest.$ac_ext
8609cat >>conftest.$ac_ext <<_ACEOF
8610/* end confdefs.h.  */
8611
8612#include <sys/types.h>
8613#ifdef HAVE_PAM_PAM_APPL_H
8614#include <pam/pam_appl.h>
8615#endif
8616#ifdef HAVE_SECURITY_PAM_H
8617#include <security/pam_appl.h>
8618#endif
8619int
8620main ()
8621{
8622
8623const char *service="foo";
8624const char *user="bar";
8625pam_handle_t *pamh;
8626struct pam_conv *conv;
8627int baz;
8628baz = pam_start(service, user, conv, &pamh);
8629return 0;
8630
8631  ;
8632  return 0;
8633}
8634_ACEOF
8635rm -f conftest.$ac_objext conftest$ac_exeext
8636if { (ac_try="$ac_link"
8637case "(($ac_try" in
8638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639  *) ac_try_echo=$ac_try;;
8640esac
8641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8642$as_echo "$ac_try_echo") >&5
8643  (eval "$ac_link") 2>conftest.er1
8644  ac_status=$?
8645  grep -v '^ *+' conftest.er1 >conftest.err
8646  rm -f conftest.er1
8647  cat conftest.err >&5
8648  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649  (exit $ac_status); } && {
8650	 test -z "$ac_c_werror_flag" ||
8651	 test ! -s conftest.err
8652       } && test -s conftest$ac_exeext && {
8653	 test "$cross_compiling" = yes ||
8654	 $as_test_x conftest$ac_exeext
8655       }; then
8656  LIBPAM="-lpam"
8657else
8658  $as_echo "$as_me: failed program was:" >&5
8659sed 's/^/| /' conftest.$ac_ext >&5
8660
8661
8662fi
8663
8664rm -rf conftest.dSYM
8665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8666      conftest$ac_exeext conftest.$ac_ext
8667
8668fi
8669
8670  LIBS="$cmu_save_LIBS $LIBPAM"
8671fi
8672
8673
8674# Check whether --with-saslauthd was given.
8675if test "${with_saslauthd+set}" = set; then
8676  withval=$with_saslauthd; with_saslauthd=$withval
8677else
8678  with_saslauthd=yes
8679fi
8680
8681if test "$with_saslauthd" != no; then
8682  if test "$with_saslauthd" = yes; then
8683    with_saslauthd="/var/state/saslauthd"
8684  fi
8685
8686cat >>confdefs.h <<\_ACEOF
8687#define HAVE_SASLAUTHD /**/
8688_ACEOF
8689
8690
8691cat >>confdefs.h <<_ACEOF
8692#define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
8693_ACEOF
8694
8695fi
8696 if test "$with_saslauthd" != no; then
8697  SASLAUTHD_TRUE=
8698  SASLAUTHD_FALSE='#'
8699else
8700  SASLAUTHD_TRUE='#'
8701  SASLAUTHD_FALSE=
8702fi
8703
8704{ $as_echo "$as_me:$LINENO: checking if I should include saslauthd" >&5
8705$as_echo_n "checking if I should include saslauthd... " >&6; }
8706{ $as_echo "$as_me:$LINENO: result: $with_saslauthd" >&5
8707$as_echo "$with_saslauthd" >&6; }
8708
8709
8710# Check whether --with-authdaemond was given.
8711if test "${with_authdaemond+set}" = set; then
8712  withval=$with_authdaemond; with_authdaemon=$withval
8713else
8714  with_authdaemon=yes
8715fi
8716
8717if test "$with_authdaemon" != no; then
8718  if test "$with_authdaemon" = yes; then
8719    with_authdaemon="/dev/null"
8720  fi
8721
8722cat >>confdefs.h <<\_ACEOF
8723#define HAVE_AUTHDAEMON /**/
8724_ACEOF
8725
8726
8727cat >>confdefs.h <<_ACEOF
8728#define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
8729_ACEOF
8730
8731fi
8732{ $as_echo "$as_me:$LINENO: checking to include Courier authdaemond support" >&5
8733$as_echo_n "checking to include Courier authdaemond support... " >&6; }
8734{ $as_echo "$as_me:$LINENO: result: $with_authdaemon" >&5
8735$as_echo "$with_authdaemon" >&6; }
8736
8737
8738# Check whether --with-pwcheck was given.
8739if test "${with_pwcheck+set}" = set; then
8740  withval=$with_pwcheck; with_pwcheck=$withval
8741else
8742  with_pwcheck=no
8743fi
8744
8745if test "$with_pwcheck" != no; then
8746   if test "$with_pwcheck" = yes; then
8747     with_pwcheck=/var/pwcheck
8748   fi
8749
8750cat >>confdefs.h <<\_ACEOF
8751#define HAVE_PWCHECK /**/
8752_ACEOF
8753
8754
8755cat >>confdefs.h <<_ACEOF
8756#define PWCHECKDIR "$with_pwcheck"
8757_ACEOF
8758
8759   { $as_echo "$as_me:$LINENO: checking for getspnam" >&5
8760$as_echo_n "checking for getspnam... " >&6; }
8761if test "${ac_cv_func_getspnam+set}" = set; then
8762  $as_echo_n "(cached) " >&6
8763else
8764  cat >conftest.$ac_ext <<_ACEOF
8765/* confdefs.h.  */
8766_ACEOF
8767cat confdefs.h >>conftest.$ac_ext
8768cat >>conftest.$ac_ext <<_ACEOF
8769/* end confdefs.h.  */
8770/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
8771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8772#define getspnam innocuous_getspnam
8773
8774/* System header to define __stub macros and hopefully few prototypes,
8775    which can conflict with char getspnam (); below.
8776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8777    <limits.h> exists even on freestanding compilers.  */
8778
8779#ifdef __STDC__
8780# include <limits.h>
8781#else
8782# include <assert.h>
8783#endif
8784
8785#undef getspnam
8786
8787/* Override any GCC internal prototype to avoid an error.
8788   Use char because int might match the return type of a GCC
8789   builtin and then its argument prototype would still apply.  */
8790#ifdef __cplusplus
8791extern "C"
8792#endif
8793char getspnam ();
8794/* The GNU C library defines this for functions which it implements
8795    to always fail with ENOSYS.  Some functions are actually named
8796    something starting with __ and the normal name is an alias.  */
8797#if defined __stub_getspnam || defined __stub___getspnam
8798choke me
8799#endif
8800
8801int
8802main ()
8803{
8804return getspnam ();
8805  ;
8806  return 0;
8807}
8808_ACEOF
8809rm -f conftest.$ac_objext conftest$ac_exeext
8810if { (ac_try="$ac_link"
8811case "(($ac_try" in
8812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813  *) ac_try_echo=$ac_try;;
8814esac
8815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8816$as_echo "$ac_try_echo") >&5
8817  (eval "$ac_link") 2>conftest.er1
8818  ac_status=$?
8819  grep -v '^ *+' conftest.er1 >conftest.err
8820  rm -f conftest.er1
8821  cat conftest.err >&5
8822  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823  (exit $ac_status); } && {
8824	 test -z "$ac_c_werror_flag" ||
8825	 test ! -s conftest.err
8826       } && test -s conftest$ac_exeext && {
8827	 test "$cross_compiling" = yes ||
8828	 $as_test_x conftest$ac_exeext
8829       }; then
8830  ac_cv_func_getspnam=yes
8831else
8832  $as_echo "$as_me: failed program was:" >&5
8833sed 's/^/| /' conftest.$ac_ext >&5
8834
8835	ac_cv_func_getspnam=no
8836fi
8837
8838rm -rf conftest.dSYM
8839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8840      conftest$ac_exeext conftest.$ac_ext
8841fi
8842{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
8843$as_echo "$ac_cv_func_getspnam" >&6; }
8844if test "x$ac_cv_func_getspnam" = x""yes; then
8845  PWCHECKMETH="getspnam"
8846else
8847  PWCHECKMETH="getpwnam"
8848fi
8849
8850
8851fi
8852 if test "$with_pwcheck" != no; then
8853  PWCHECK_TRUE=
8854  PWCHECK_FALSE='#'
8855else
8856  PWCHECK_TRUE='#'
8857  PWCHECK_FALSE=
8858fi
8859
8860{ $as_echo "$as_me:$LINENO: checking if I should include pwcheck" >&5
8861$as_echo_n "checking if I should include pwcheck... " >&6; }
8862{ $as_echo "$as_me:$LINENO: result: $with_pwcheck" >&5
8863$as_echo "$with_pwcheck" >&6; }
8864
8865
8866# Check whether --with-ipctype was given.
8867if test "${with_ipctype+set}" = set; then
8868  withval=$with_ipctype; with_ipctype=$withval
8869else
8870  with_ipctype="unix"
8871fi
8872
8873IPCTYPE=$with_ipctype
8874
8875LIB_DOOR=
8876if test "$with_ipctype" = "doors"; then
8877   LIB_DOOR="-ldoor"
8878
8879cat >>confdefs.h <<\_ACEOF
8880#define USE_DOORS /**/
8881_ACEOF
8882
8883fi
8884
8885
8886# Check whether --enable-alwaystrue was given.
8887if test "${enable_alwaystrue+set}" = set; then
8888  enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
8889else
8890  enable_alwaystrue=no
8891fi
8892
8893if test "$enable_alwaystrue" = yes; then
8894
8895cat >>confdefs.h <<\_ACEOF
8896#define HAVE_ALWAYSTRUE /**/
8897_ACEOF
8898
8899fi
8900{ $as_echo "$as_me:$LINENO: checking if I should include the alwaystrue verifier" >&5
8901$as_echo_n "checking if I should include the alwaystrue verifier... " >&6; }
8902{ $as_echo "$as_me:$LINENO: result: $enable_alwaystrue" >&5
8903$as_echo "$enable_alwaystrue" >&6; }
8904
8905# Check whether --enable-checkapop was given.
8906if test "${enable_checkapop+set}" = set; then
8907  enableval=$enable_checkapop; checkapop=$enableval
8908else
8909  checkapop=yes
8910fi
8911
8912
8913{ $as_echo "$as_me:$LINENO: checking if we should enable sasl_checkapop" >&5
8914$as_echo_n "checking if we should enable sasl_checkapop... " >&6; }
8915if test "$checkapop" != no; then
8916  { $as_echo "$as_me:$LINENO: result: enabled" >&5
8917$as_echo "enabled" >&6; }
8918
8919cat >>confdefs.h <<\_ACEOF
8920#define DO_SASL_CHECKAPOP /**/
8921_ACEOF
8922
8923else
8924  { $as_echo "$as_me:$LINENO: result: disabled" >&5
8925$as_echo "disabled" >&6; }
8926fi
8927
8928# Check whether --enable-cram was given.
8929if test "${enable_cram+set}" = set; then
8930  enableval=$enable_cram; cram=$enableval
8931else
8932  cram=yes
8933fi
8934
8935
8936{ $as_echo "$as_me:$LINENO: checking CRAM-MD5" >&5
8937$as_echo_n "checking CRAM-MD5... " >&6; }
8938if test "$cram" != no; then
8939  { $as_echo "$as_me:$LINENO: result: enabled" >&5
8940$as_echo "enabled" >&6; }
8941  SASL_MECHS="$SASL_MECHS libcrammd5.la"
8942  if test "$enable_obsolete_cram_attr" = yes; then
8943    CPPFLAGS="$CPPFLAGS -DOBSOLETE_CRAM_ATTR=1"
8944  fi
8945  if test "$enable_static" = yes; then
8946    SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
8947    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/cram.c"
8948
8949cat >>confdefs.h <<\_ACEOF
8950#define STATIC_CRAMMD5 /**/
8951_ACEOF
8952
8953  fi
8954else
8955  { $as_echo "$as_me:$LINENO: result: disabled" >&5
8956$as_echo "disabled" >&6; }
8957fi
8958
8959
8960# Check whether --with-lib-subdir was given.
8961if test "${with_lib_subdir+set}" = set; then
8962  withval=$with_lib_subdir;
8963fi
8964
8965# The cast to long int works around a bug in the HP C Compiler
8966# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8967# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8968# This bug is HP SR number 8606223364.
8969{ $as_echo "$as_me:$LINENO: checking size of long" >&5
8970$as_echo_n "checking size of long... " >&6; }
8971if test "${ac_cv_sizeof_long+set}" = set; then
8972  $as_echo_n "(cached) " >&6
8973else
8974  if test "$cross_compiling" = yes; then
8975  # Depending upon the size, compute the lo and hi bounds.
8976cat >conftest.$ac_ext <<_ACEOF
8977/* confdefs.h.  */
8978_ACEOF
8979cat confdefs.h >>conftest.$ac_ext
8980cat >>conftest.$ac_ext <<_ACEOF
8981/* end confdefs.h.  */
8982$ac_includes_default
8983int
8984main ()
8985{
8986static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
8987test_array [0] = 0
8988
8989  ;
8990  return 0;
8991}
8992_ACEOF
8993rm -f conftest.$ac_objext
8994if { (ac_try="$ac_compile"
8995case "(($ac_try" in
8996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997  *) ac_try_echo=$ac_try;;
8998esac
8999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9000$as_echo "$ac_try_echo") >&5
9001  (eval "$ac_compile") 2>conftest.er1
9002  ac_status=$?
9003  grep -v '^ *+' conftest.er1 >conftest.err
9004  rm -f conftest.er1
9005  cat conftest.err >&5
9006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007  (exit $ac_status); } && {
9008	 test -z "$ac_c_werror_flag" ||
9009	 test ! -s conftest.err
9010       } && test -s conftest.$ac_objext; then
9011  ac_lo=0 ac_mid=0
9012  while :; do
9013    cat >conftest.$ac_ext <<_ACEOF
9014/* confdefs.h.  */
9015_ACEOF
9016cat confdefs.h >>conftest.$ac_ext
9017cat >>conftest.$ac_ext <<_ACEOF
9018/* end confdefs.h.  */
9019$ac_includes_default
9020int
9021main ()
9022{
9023static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
9024test_array [0] = 0
9025
9026  ;
9027  return 0;
9028}
9029_ACEOF
9030rm -f conftest.$ac_objext
9031if { (ac_try="$ac_compile"
9032case "(($ac_try" in
9033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034  *) ac_try_echo=$ac_try;;
9035esac
9036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9037$as_echo "$ac_try_echo") >&5
9038  (eval "$ac_compile") 2>conftest.er1
9039  ac_status=$?
9040  grep -v '^ *+' conftest.er1 >conftest.err
9041  rm -f conftest.er1
9042  cat conftest.err >&5
9043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044  (exit $ac_status); } && {
9045	 test -z "$ac_c_werror_flag" ||
9046	 test ! -s conftest.err
9047       } && test -s conftest.$ac_objext; then
9048  ac_hi=$ac_mid; break
9049else
9050  $as_echo "$as_me: failed program was:" >&5
9051sed 's/^/| /' conftest.$ac_ext >&5
9052
9053	ac_lo=`expr $ac_mid + 1`
9054			if test $ac_lo -le $ac_mid; then
9055			  ac_lo= ac_hi=
9056			  break
9057			fi
9058			ac_mid=`expr 2 '*' $ac_mid + 1`
9059fi
9060
9061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062  done
9063else
9064  $as_echo "$as_me: failed program was:" >&5
9065sed 's/^/| /' conftest.$ac_ext >&5
9066
9067	cat >conftest.$ac_ext <<_ACEOF
9068/* confdefs.h.  */
9069_ACEOF
9070cat confdefs.h >>conftest.$ac_ext
9071cat >>conftest.$ac_ext <<_ACEOF
9072/* end confdefs.h.  */
9073$ac_includes_default
9074int
9075main ()
9076{
9077static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
9078test_array [0] = 0
9079
9080  ;
9081  return 0;
9082}
9083_ACEOF
9084rm -f conftest.$ac_objext
9085if { (ac_try="$ac_compile"
9086case "(($ac_try" in
9087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088  *) ac_try_echo=$ac_try;;
9089esac
9090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9091$as_echo "$ac_try_echo") >&5
9092  (eval "$ac_compile") 2>conftest.er1
9093  ac_status=$?
9094  grep -v '^ *+' conftest.er1 >conftest.err
9095  rm -f conftest.er1
9096  cat conftest.err >&5
9097  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098  (exit $ac_status); } && {
9099	 test -z "$ac_c_werror_flag" ||
9100	 test ! -s conftest.err
9101       } && test -s conftest.$ac_objext; then
9102  ac_hi=-1 ac_mid=-1
9103  while :; do
9104    cat >conftest.$ac_ext <<_ACEOF
9105/* confdefs.h.  */
9106_ACEOF
9107cat confdefs.h >>conftest.$ac_ext
9108cat >>conftest.$ac_ext <<_ACEOF
9109/* end confdefs.h.  */
9110$ac_includes_default
9111int
9112main ()
9113{
9114static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
9115test_array [0] = 0
9116
9117  ;
9118  return 0;
9119}
9120_ACEOF
9121rm -f conftest.$ac_objext
9122if { (ac_try="$ac_compile"
9123case "(($ac_try" in
9124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125  *) ac_try_echo=$ac_try;;
9126esac
9127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9128$as_echo "$ac_try_echo") >&5
9129  (eval "$ac_compile") 2>conftest.er1
9130  ac_status=$?
9131  grep -v '^ *+' conftest.er1 >conftest.err
9132  rm -f conftest.er1
9133  cat conftest.err >&5
9134  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135  (exit $ac_status); } && {
9136	 test -z "$ac_c_werror_flag" ||
9137	 test ! -s conftest.err
9138       } && test -s conftest.$ac_objext; then
9139  ac_lo=$ac_mid; break
9140else
9141  $as_echo "$as_me: failed program was:" >&5
9142sed 's/^/| /' conftest.$ac_ext >&5
9143
9144	ac_hi=`expr '(' $ac_mid ')' - 1`
9145			if test $ac_mid -le $ac_hi; then
9146			  ac_lo= ac_hi=
9147			  break
9148			fi
9149			ac_mid=`expr 2 '*' $ac_mid`
9150fi
9151
9152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153  done
9154else
9155  $as_echo "$as_me: failed program was:" >&5
9156sed 's/^/| /' conftest.$ac_ext >&5
9157
9158	ac_lo= ac_hi=
9159fi
9160
9161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162fi
9163
9164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165# Binary search between lo and hi bounds.
9166while test "x$ac_lo" != "x$ac_hi"; do
9167  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9168  cat >conftest.$ac_ext <<_ACEOF
9169/* confdefs.h.  */
9170_ACEOF
9171cat confdefs.h >>conftest.$ac_ext
9172cat >>conftest.$ac_ext <<_ACEOF
9173/* end confdefs.h.  */
9174$ac_includes_default
9175int
9176main ()
9177{
9178static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
9179test_array [0] = 0
9180
9181  ;
9182  return 0;
9183}
9184_ACEOF
9185rm -f conftest.$ac_objext
9186if { (ac_try="$ac_compile"
9187case "(($ac_try" in
9188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189  *) ac_try_echo=$ac_try;;
9190esac
9191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9192$as_echo "$ac_try_echo") >&5
9193  (eval "$ac_compile") 2>conftest.er1
9194  ac_status=$?
9195  grep -v '^ *+' conftest.er1 >conftest.err
9196  rm -f conftest.er1
9197  cat conftest.err >&5
9198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199  (exit $ac_status); } && {
9200	 test -z "$ac_c_werror_flag" ||
9201	 test ! -s conftest.err
9202       } && test -s conftest.$ac_objext; then
9203  ac_hi=$ac_mid
9204else
9205  $as_echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208	ac_lo=`expr '(' $ac_mid ')' + 1`
9209fi
9210
9211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212done
9213case $ac_lo in
9214?*) ac_cv_sizeof_long=$ac_lo;;
9215'') if test "$ac_cv_type_long" = yes; then
9216     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9218{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9219See \`config.log' for more details." >&5
9220$as_echo "$as_me: error: cannot compute sizeof (long)
9221See \`config.log' for more details." >&2;}
9222   { (exit 77); exit 77; }; }; }
9223   else
9224     ac_cv_sizeof_long=0
9225   fi ;;
9226esac
9227else
9228  cat >conftest.$ac_ext <<_ACEOF
9229/* confdefs.h.  */
9230_ACEOF
9231cat confdefs.h >>conftest.$ac_ext
9232cat >>conftest.$ac_ext <<_ACEOF
9233/* end confdefs.h.  */
9234$ac_includes_default
9235static long int longval () { return (long int) (sizeof (long)); }
9236static unsigned long int ulongval () { return (long int) (sizeof (long)); }
9237#include <stdio.h>
9238#include <stdlib.h>
9239int
9240main ()
9241{
9242
9243  FILE *f = fopen ("conftest.val", "w");
9244  if (! f)
9245    return 1;
9246  if (((long int) (sizeof (long))) < 0)
9247    {
9248      long int i = longval ();
9249      if (i != ((long int) (sizeof (long))))
9250	return 1;
9251      fprintf (f, "%ld", i);
9252    }
9253  else
9254    {
9255      unsigned long int i = ulongval ();
9256      if (i != ((long int) (sizeof (long))))
9257	return 1;
9258      fprintf (f, "%lu", i);
9259    }
9260  /* Do not output a trailing newline, as this causes \r\n confusion
9261     on some platforms.  */
9262  return ferror (f) || fclose (f) != 0;
9263
9264  ;
9265  return 0;
9266}
9267_ACEOF
9268rm -f conftest$ac_exeext
9269if { (ac_try="$ac_link"
9270case "(($ac_try" in
9271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272  *) ac_try_echo=$ac_try;;
9273esac
9274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9275$as_echo "$ac_try_echo") >&5
9276  (eval "$ac_link") 2>&5
9277  ac_status=$?
9278  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9280  { (case "(($ac_try" in
9281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282  *) ac_try_echo=$ac_try;;
9283esac
9284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9285$as_echo "$ac_try_echo") >&5
9286  (eval "$ac_try") 2>&5
9287  ac_status=$?
9288  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289  (exit $ac_status); }; }; then
9290  ac_cv_sizeof_long=`cat conftest.val`
9291else
9292  $as_echo "$as_me: program exited with status $ac_status" >&5
9293$as_echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296( exit $ac_status )
9297if test "$ac_cv_type_long" = yes; then
9298     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9300{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9301See \`config.log' for more details." >&5
9302$as_echo "$as_me: error: cannot compute sizeof (long)
9303See \`config.log' for more details." >&2;}
9304   { (exit 77); exit 77; }; }; }
9305   else
9306     ac_cv_sizeof_long=0
9307   fi
9308fi
9309rm -rf conftest.dSYM
9310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9311fi
9312rm -f conftest.val
9313fi
9314{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9315$as_echo "$ac_cv_sizeof_long" >&6; }
9316
9317
9318
9319cat >>confdefs.h <<_ACEOF
9320#define SIZEOF_LONG $ac_cv_sizeof_long
9321_ACEOF
9322
9323
9324{ $as_echo "$as_me:$LINENO: checking what directory libraries are found in" >&5
9325$as_echo_n "checking what directory libraries are found in... " >&6; }
9326if test "${ac_cv_cmu_lib_subdir+set}" = set; then
9327  $as_echo_n "(cached) " >&6
9328else
9329  test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
9330test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
9331if test "X$with_lib_subdir" = "X" ; then
9332  ac_cv_cmu_lib_subdir=lib
9333  if test $ac_cv_sizeof_long -eq 4 ; then
9334    test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
9335  fi
9336  if test $ac_cv_sizeof_long -eq 8 ; then
9337    test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
9338  fi
9339else
9340  ac_cv_cmu_lib_subdir=$with_lib_subdir
9341fi
9342fi
9343{ $as_echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5
9344$as_echo "$ac_cv_cmu_lib_subdir" >&6; }
9345CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
9346
9347
9348
9349
9350
9351# Check whether --with-openssl was given.
9352if test "${with_openssl+set}" = set; then
9353  withval=$with_openssl; with_openssl=$withval
9354else
9355  with_openssl="yes"
9356fi
9357
9358
9359	save_CPPFLAGS=$CPPFLAGS
9360	save_LDFLAGS=$LDFLAGS
9361
9362	if test -d $with_openssl; then
9363	  CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
9364
9365  # this is CMU ADD LIBPATH
9366  if test "$andrew_cv_runpath_switch" = "none" ; then
9367	LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
9368  else
9369	LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_cv_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
9370  fi
9371
9372	fi
9373
9374case "$with_openssl" in
9375	no)
9376	  with_openssl="no";;
9377	*)
9378	  	                  LIB_RSAREF=""
9379	        { $as_echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
9380$as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
9381if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
9382  $as_echo_n "(cached) " >&6
9383else
9384  ac_check_lib_save_LIBS=$LIBS
9385LIBS="-lrsaref  $LIBS"
9386cat >conftest.$ac_ext <<_ACEOF
9387/* confdefs.h.  */
9388_ACEOF
9389cat confdefs.h >>conftest.$ac_ext
9390cat >>conftest.$ac_ext <<_ACEOF
9391/* end confdefs.h.  */
9392
9393/* Override any GCC internal prototype to avoid an error.
9394   Use char because int might match the return type of a GCC
9395   builtin and then its argument prototype would still apply.  */
9396#ifdef __cplusplus
9397extern "C"
9398#endif
9399char RSAPublicEncrypt ();
9400int
9401main ()
9402{
9403return RSAPublicEncrypt ();
9404  ;
9405  return 0;
9406}
9407_ACEOF
9408rm -f conftest.$ac_objext conftest$ac_exeext
9409if { (ac_try="$ac_link"
9410case "(($ac_try" in
9411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412  *) ac_try_echo=$ac_try;;
9413esac
9414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9415$as_echo "$ac_try_echo") >&5
9416  (eval "$ac_link") 2>conftest.er1
9417  ac_status=$?
9418  grep -v '^ *+' conftest.er1 >conftest.err
9419  rm -f conftest.er1
9420  cat conftest.err >&5
9421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422  (exit $ac_status); } && {
9423	 test -z "$ac_c_werror_flag" ||
9424	 test ! -s conftest.err
9425       } && test -s conftest$ac_exeext && {
9426	 test "$cross_compiling" = yes ||
9427	 $as_test_x conftest$ac_exeext
9428       }; then
9429  ac_cv_lib_rsaref_RSAPublicEncrypt=yes
9430else
9431  $as_echo "$as_me: failed program was:" >&5
9432sed 's/^/| /' conftest.$ac_ext >&5
9433
9434	ac_cv_lib_rsaref_RSAPublicEncrypt=no
9435fi
9436
9437rm -rf conftest.dSYM
9438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9439      conftest$ac_exeext conftest.$ac_ext
9440LIBS=$ac_check_lib_save_LIBS
9441fi
9442{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
9443$as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
9444if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = x""yes; then
9445  cmu_have_rsaref=yes;
9446			{ $as_echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lRSAglue" >&5
9447$as_echo_n "checking for RSAPublicEncrypt in -lRSAglue... " >&6; }
9448if test "${ac_cv_lib_RSAglue_RSAPublicEncrypt+set}" = set; then
9449  $as_echo_n "(cached) " >&6
9450else
9451  ac_check_lib_save_LIBS=$LIBS
9452LIBS="-lRSAglue  $LIBS"
9453cat >conftest.$ac_ext <<_ACEOF
9454/* confdefs.h.  */
9455_ACEOF
9456cat confdefs.h >>conftest.$ac_ext
9457cat >>conftest.$ac_ext <<_ACEOF
9458/* end confdefs.h.  */
9459
9460/* Override any GCC internal prototype to avoid an error.
9461   Use char because int might match the return type of a GCC
9462   builtin and then its argument prototype would still apply.  */
9463#ifdef __cplusplus
9464extern "C"
9465#endif
9466char RSAPublicEncrypt ();
9467int
9468main ()
9469{
9470return RSAPublicEncrypt ();
9471  ;
9472  return 0;
9473}
9474_ACEOF
9475rm -f conftest.$ac_objext conftest$ac_exeext
9476if { (ac_try="$ac_link"
9477case "(($ac_try" in
9478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479  *) ac_try_echo=$ac_try;;
9480esac
9481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9482$as_echo "$ac_try_echo") >&5
9483  (eval "$ac_link") 2>conftest.er1
9484  ac_status=$?
9485  grep -v '^ *+' conftest.er1 >conftest.err
9486  rm -f conftest.er1
9487  cat conftest.err >&5
9488  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489  (exit $ac_status); } && {
9490	 test -z "$ac_c_werror_flag" ||
9491	 test ! -s conftest.err
9492       } && test -s conftest$ac_exeext && {
9493	 test "$cross_compiling" = yes ||
9494	 $as_test_x conftest$ac_exeext
9495       }; then
9496  ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
9497else
9498  $as_echo "$as_me: failed program was:" >&5
9499sed 's/^/| /' conftest.$ac_ext >&5
9500
9501	ac_cv_lib_RSAglue_RSAPublicEncrypt=no
9502fi
9503
9504rm -rf conftest.dSYM
9505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9506      conftest$ac_exeext conftest.$ac_ext
9507LIBS=$ac_check_lib_save_LIBS
9508fi
9509{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
9510$as_echo "$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
9511if test "x$ac_cv_lib_RSAglue_RSAPublicEncrypt" = x""yes; then
9512  LIB_RSAREF="-lRSAglue -lrsaref"
9513else
9514  LIB_RSAREF="-lrsaref"
9515fi
9516
9517else
9518  cmu_have_rsaref=no
9519fi
9520
9521
9522		if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9523  { $as_echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
9524$as_echo_n "checking for openssl/evp.h... " >&6; }
9525if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9526  $as_echo_n "(cached) " >&6
9527fi
9528{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9529$as_echo "$ac_cv_header_openssl_evp_h" >&6; }
9530else
9531  # Is the header compilable?
9532{ $as_echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
9533$as_echo_n "checking openssl/evp.h usability... " >&6; }
9534cat >conftest.$ac_ext <<_ACEOF
9535/* confdefs.h.  */
9536_ACEOF
9537cat confdefs.h >>conftest.$ac_ext
9538cat >>conftest.$ac_ext <<_ACEOF
9539/* end confdefs.h.  */
9540$ac_includes_default
9541#include <openssl/evp.h>
9542_ACEOF
9543rm -f conftest.$ac_objext
9544if { (ac_try="$ac_compile"
9545case "(($ac_try" in
9546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547  *) ac_try_echo=$ac_try;;
9548esac
9549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9550$as_echo "$ac_try_echo") >&5
9551  (eval "$ac_compile") 2>conftest.er1
9552  ac_status=$?
9553  grep -v '^ *+' conftest.er1 >conftest.err
9554  rm -f conftest.er1
9555  cat conftest.err >&5
9556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557  (exit $ac_status); } && {
9558	 test -z "$ac_c_werror_flag" ||
9559	 test ! -s conftest.err
9560       } && test -s conftest.$ac_objext; then
9561  ac_header_compiler=yes
9562else
9563  $as_echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566	ac_header_compiler=no
9567fi
9568
9569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9571$as_echo "$ac_header_compiler" >&6; }
9572
9573# Is the header present?
9574{ $as_echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
9575$as_echo_n "checking openssl/evp.h presence... " >&6; }
9576cat >conftest.$ac_ext <<_ACEOF
9577/* confdefs.h.  */
9578_ACEOF
9579cat confdefs.h >>conftest.$ac_ext
9580cat >>conftest.$ac_ext <<_ACEOF
9581/* end confdefs.h.  */
9582#include <openssl/evp.h>
9583_ACEOF
9584if { (ac_try="$ac_cpp conftest.$ac_ext"
9585case "(($ac_try" in
9586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587  *) ac_try_echo=$ac_try;;
9588esac
9589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9590$as_echo "$ac_try_echo") >&5
9591  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9592  ac_status=$?
9593  grep -v '^ *+' conftest.er1 >conftest.err
9594  rm -f conftest.er1
9595  cat conftest.err >&5
9596  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597  (exit $ac_status); } >/dev/null && {
9598	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9599	 test ! -s conftest.err
9600       }; then
9601  ac_header_preproc=yes
9602else
9603  $as_echo "$as_me: failed program was:" >&5
9604sed 's/^/| /' conftest.$ac_ext >&5
9605
9606  ac_header_preproc=no
9607fi
9608
9609rm -f conftest.err conftest.$ac_ext
9610{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9611$as_echo "$ac_header_preproc" >&6; }
9612
9613# So?  What about this header?
9614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9615  yes:no: )
9616    { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
9617$as_echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9618    { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
9619$as_echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
9620    ac_header_preproc=yes
9621    ;;
9622  no:yes:* )
9623    { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
9624$as_echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
9625    { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h:     check for missing prerequisite headers?" >&5
9626$as_echo "$as_me: WARNING: openssl/evp.h:     check for missing prerequisite headers?" >&2;}
9627    { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
9628$as_echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
9629    { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h:     section \"Present But Cannot Be Compiled\"" >&5
9630$as_echo "$as_me: WARNING: openssl/evp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9631    { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
9632$as_echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
9633    { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
9634$as_echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
9635
9636    ;;
9637esac
9638{ $as_echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
9639$as_echo_n "checking for openssl/evp.h... " >&6; }
9640if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9641  $as_echo_n "(cached) " >&6
9642else
9643  ac_cv_header_openssl_evp_h=$ac_header_preproc
9644fi
9645{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9646$as_echo "$ac_cv_header_openssl_evp_h" >&6; }
9647
9648fi
9649if test "x$ac_cv_header_openssl_evp_h" = x""yes; then
9650
9651			{ $as_echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
9652$as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; }
9653if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
9654  $as_echo_n "(cached) " >&6
9655else
9656  ac_check_lib_save_LIBS=$LIBS
9657LIBS="-lcrypto $LIB_RSAREF $LIBS"
9658cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h.  */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h.  */
9664
9665/* Override any GCC internal prototype to avoid an error.
9666   Use char because int might match the return type of a GCC
9667   builtin and then its argument prototype would still apply.  */
9668#ifdef __cplusplus
9669extern "C"
9670#endif
9671char EVP_DigestInit ();
9672int
9673main ()
9674{
9675return EVP_DigestInit ();
9676  ;
9677  return 0;
9678}
9679_ACEOF
9680rm -f conftest.$ac_objext conftest$ac_exeext
9681if { (ac_try="$ac_link"
9682case "(($ac_try" in
9683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684  *) ac_try_echo=$ac_try;;
9685esac
9686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9687$as_echo "$ac_try_echo") >&5
9688  (eval "$ac_link") 2>conftest.er1
9689  ac_status=$?
9690  grep -v '^ *+' conftest.er1 >conftest.err
9691  rm -f conftest.er1
9692  cat conftest.err >&5
9693  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694  (exit $ac_status); } && {
9695	 test -z "$ac_c_werror_flag" ||
9696	 test ! -s conftest.err
9697       } && test -s conftest$ac_exeext && {
9698	 test "$cross_compiling" = yes ||
9699	 $as_test_x conftest$ac_exeext
9700       }; then
9701  ac_cv_lib_crypto_EVP_DigestInit=yes
9702else
9703  $as_echo "$as_me: failed program was:" >&5
9704sed 's/^/| /' conftest.$ac_ext >&5
9705
9706	ac_cv_lib_crypto_EVP_DigestInit=no
9707fi
9708
9709rm -rf conftest.dSYM
9710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711      conftest$ac_exeext conftest.$ac_ext
9712LIBS=$ac_check_lib_save_LIBS
9713fi
9714{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
9715$as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
9716if test "x$ac_cv_lib_crypto_EVP_DigestInit" = x""yes; then
9717  with_openssl="yes"
9718else
9719  with_openssl="no"
9720fi
9721
9722else
9723  with_openssl=no
9724fi
9725
9726
9727		;;
9728esac
9729
9730	if test "$with_openssl" != "no"; then
9731
9732cat >>confdefs.h <<\_ACEOF
9733#define HAVE_OPENSSL /**/
9734_ACEOF
9735
9736	else
9737		CPPFLAGS=$save_CPPFLAGS
9738		LDFLAGS=$save_LDFLAGS
9739	fi
9740
9741{ $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
9742$as_echo_n "checking for OpenSSL... " >&6; }
9743{ $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
9744$as_echo "$with_openssl" >&6; }
9745
9746
9747
9748# Check whether --with-des was given.
9749if test "${with_des+set}" = set; then
9750  withval=$with_des; with_des=$withval
9751else
9752  with_des=yes
9753fi
9754
9755
9756LIB_DES=""
9757if test "$with_des" != no; then
9758  if test -d $with_des; then
9759    CPPFLAGS="$CPPFLAGS -I${with_des}/include"
9760    LDFLAGS="$LDFLAGS -L${with_des}/lib"
9761  fi
9762
9763  if test "$with_openssl" != no; then
9764        { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
9765$as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
9766if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
9767  $as_echo_n "(cached) " >&6
9768else
9769  ac_check_lib_save_LIBS=$LIBS
9770LIBS="-lcrypto $LIB_RSAREF $LIBS"
9771cat >conftest.$ac_ext <<_ACEOF
9772/* confdefs.h.  */
9773_ACEOF
9774cat confdefs.h >>conftest.$ac_ext
9775cat >>conftest.$ac_ext <<_ACEOF
9776/* end confdefs.h.  */
9777
9778/* Override any GCC internal prototype to avoid an error.
9779   Use char because int might match the return type of a GCC
9780   builtin and then its argument prototype would still apply.  */
9781#ifdef __cplusplus
9782extern "C"
9783#endif
9784char des_cbc_encrypt ();
9785int
9786main ()
9787{
9788return des_cbc_encrypt ();
9789  ;
9790  return 0;
9791}
9792_ACEOF
9793rm -f conftest.$ac_objext conftest$ac_exeext
9794if { (ac_try="$ac_link"
9795case "(($ac_try" in
9796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797  *) ac_try_echo=$ac_try;;
9798esac
9799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9800$as_echo "$ac_try_echo") >&5
9801  (eval "$ac_link") 2>conftest.er1
9802  ac_status=$?
9803  grep -v '^ *+' conftest.er1 >conftest.err
9804  rm -f conftest.er1
9805  cat conftest.err >&5
9806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807  (exit $ac_status); } && {
9808	 test -z "$ac_c_werror_flag" ||
9809	 test ! -s conftest.err
9810       } && test -s conftest$ac_exeext && {
9811	 test "$cross_compiling" = yes ||
9812	 $as_test_x conftest$ac_exeext
9813       }; then
9814  ac_cv_lib_crypto_des_cbc_encrypt=yes
9815else
9816  $as_echo "$as_me: failed program was:" >&5
9817sed 's/^/| /' conftest.$ac_ext >&5
9818
9819	ac_cv_lib_crypto_des_cbc_encrypt=no
9820fi
9821
9822rm -rf conftest.dSYM
9823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824      conftest$ac_exeext conftest.$ac_ext
9825LIBS=$ac_check_lib_save_LIBS
9826fi
9827{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
9828$as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
9829if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = x""yes; then
9830
9831        if test "${ac_cv_header_openssl_des_h+set}" = set; then
9832  { $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5
9833$as_echo_n "checking for openssl/des.h... " >&6; }
9834if test "${ac_cv_header_openssl_des_h+set}" = set; then
9835  $as_echo_n "(cached) " >&6
9836fi
9837{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9838$as_echo "$ac_cv_header_openssl_des_h" >&6; }
9839else
9840  # Is the header compilable?
9841{ $as_echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
9842$as_echo_n "checking openssl/des.h usability... " >&6; }
9843cat >conftest.$ac_ext <<_ACEOF
9844/* confdefs.h.  */
9845_ACEOF
9846cat confdefs.h >>conftest.$ac_ext
9847cat >>conftest.$ac_ext <<_ACEOF
9848/* end confdefs.h.  */
9849$ac_includes_default
9850#include <openssl/des.h>
9851_ACEOF
9852rm -f conftest.$ac_objext
9853if { (ac_try="$ac_compile"
9854case "(($ac_try" in
9855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856  *) ac_try_echo=$ac_try;;
9857esac
9858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9859$as_echo "$ac_try_echo") >&5
9860  (eval "$ac_compile") 2>conftest.er1
9861  ac_status=$?
9862  grep -v '^ *+' conftest.er1 >conftest.err
9863  rm -f conftest.er1
9864  cat conftest.err >&5
9865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866  (exit $ac_status); } && {
9867	 test -z "$ac_c_werror_flag" ||
9868	 test ! -s conftest.err
9869       } && test -s conftest.$ac_objext; then
9870  ac_header_compiler=yes
9871else
9872  $as_echo "$as_me: failed program was:" >&5
9873sed 's/^/| /' conftest.$ac_ext >&5
9874
9875	ac_header_compiler=no
9876fi
9877
9878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9880$as_echo "$ac_header_compiler" >&6; }
9881
9882# Is the header present?
9883{ $as_echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
9884$as_echo_n "checking openssl/des.h presence... " >&6; }
9885cat >conftest.$ac_ext <<_ACEOF
9886/* confdefs.h.  */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h.  */
9891#include <openssl/des.h>
9892_ACEOF
9893if { (ac_try="$ac_cpp conftest.$ac_ext"
9894case "(($ac_try" in
9895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896  *) ac_try_echo=$ac_try;;
9897esac
9898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9899$as_echo "$ac_try_echo") >&5
9900  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9901  ac_status=$?
9902  grep -v '^ *+' conftest.er1 >conftest.err
9903  rm -f conftest.er1
9904  cat conftest.err >&5
9905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906  (exit $ac_status); } >/dev/null && {
9907	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9908	 test ! -s conftest.err
9909       }; then
9910  ac_header_preproc=yes
9911else
9912  $as_echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
9915  ac_header_preproc=no
9916fi
9917
9918rm -f conftest.err conftest.$ac_ext
9919{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9920$as_echo "$ac_header_preproc" >&6; }
9921
9922# So?  What about this header?
9923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9924  yes:no: )
9925    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
9926$as_echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9927    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
9928$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
9929    ac_header_preproc=yes
9930    ;;
9931  no:yes:* )
9932    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
9933$as_echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
9934    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&5
9935$as_echo "$as_me: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&2;}
9936    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
9937$as_echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
9938    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&5
9939$as_echo "$as_me: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9940    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
9941$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
9942    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
9943$as_echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
9944
9945    ;;
9946esac
9947{ $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5
9948$as_echo_n "checking for openssl/des.h... " >&6; }
9949if test "${ac_cv_header_openssl_des_h+set}" = set; then
9950  $as_echo_n "(cached) " >&6
9951else
9952  ac_cv_header_openssl_des_h=$ac_header_preproc
9953fi
9954{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9955$as_echo "$ac_cv_header_openssl_des_h" >&6; }
9956
9957fi
9958if test "x$ac_cv_header_openssl_des_h" = x""yes; then
9959
9960cat >>confdefs.h <<\_ACEOF
9961#define WITH_SSL_DES /**/
9962_ACEOF
9963
9964                                       LIB_DES="-lcrypto";
9965                                       with_des=yes
9966else
9967  with_des=no
9968fi
9969
9970
9971else
9972  with_des=no
9973fi
9974
9975
9976        if test "$with_des" = no; then
9977      { $as_echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
9978$as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
9979if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
9980  $as_echo_n "(cached) " >&6
9981else
9982  ac_check_lib_save_LIBS=$LIBS
9983LIBS="-lcrypto $LIB_RSAREF $LIBS"
9984cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h.  */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h.  */
9990
9991/* Override any GCC internal prototype to avoid an error.
9992   Use char because int might match the return type of a GCC
9993   builtin and then its argument prototype would still apply.  */
9994#ifdef __cplusplus
9995extern "C"
9996#endif
9997char DES_cbc_encrypt ();
9998int
9999main ()
10000{
10001return DES_cbc_encrypt ();
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006rm -f conftest.$ac_objext conftest$ac_exeext
10007if { (ac_try="$ac_link"
10008case "(($ac_try" in
10009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010  *) ac_try_echo=$ac_try;;
10011esac
10012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10013$as_echo "$ac_try_echo") >&5
10014  (eval "$ac_link") 2>conftest.er1
10015  ac_status=$?
10016  grep -v '^ *+' conftest.er1 >conftest.err
10017  rm -f conftest.er1
10018  cat conftest.err >&5
10019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); } && {
10021	 test -z "$ac_c_werror_flag" ||
10022	 test ! -s conftest.err
10023       } && test -s conftest$ac_exeext && {
10024	 test "$cross_compiling" = yes ||
10025	 $as_test_x conftest$ac_exeext
10026       }; then
10027  ac_cv_lib_crypto_DES_cbc_encrypt=yes
10028else
10029  $as_echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032	ac_cv_lib_crypto_DES_cbc_encrypt=no
10033fi
10034
10035rm -rf conftest.dSYM
10036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10037      conftest$ac_exeext conftest.$ac_ext
10038LIBS=$ac_check_lib_save_LIBS
10039fi
10040{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
10041$as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
10042if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = x""yes; then
10043
10044        if test "${ac_cv_header_openssl_des_h+set}" = set; then
10045  { $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5
10046$as_echo_n "checking for openssl/des.h... " >&6; }
10047if test "${ac_cv_header_openssl_des_h+set}" = set; then
10048  $as_echo_n "(cached) " >&6
10049fi
10050{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
10051$as_echo "$ac_cv_header_openssl_des_h" >&6; }
10052else
10053  # Is the header compilable?
10054{ $as_echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
10055$as_echo_n "checking openssl/des.h usability... " >&6; }
10056cat >conftest.$ac_ext <<_ACEOF
10057/* confdefs.h.  */
10058_ACEOF
10059cat confdefs.h >>conftest.$ac_ext
10060cat >>conftest.$ac_ext <<_ACEOF
10061/* end confdefs.h.  */
10062$ac_includes_default
10063#include <openssl/des.h>
10064_ACEOF
10065rm -f conftest.$ac_objext
10066if { (ac_try="$ac_compile"
10067case "(($ac_try" in
10068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069  *) ac_try_echo=$ac_try;;
10070esac
10071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072$as_echo "$ac_try_echo") >&5
10073  (eval "$ac_compile") 2>conftest.er1
10074  ac_status=$?
10075  grep -v '^ *+' conftest.er1 >conftest.err
10076  rm -f conftest.er1
10077  cat conftest.err >&5
10078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079  (exit $ac_status); } && {
10080	 test -z "$ac_c_werror_flag" ||
10081	 test ! -s conftest.err
10082       } && test -s conftest.$ac_objext; then
10083  ac_header_compiler=yes
10084else
10085  $as_echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
10088	ac_header_compiler=no
10089fi
10090
10091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10093$as_echo "$ac_header_compiler" >&6; }
10094
10095# Is the header present?
10096{ $as_echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
10097$as_echo_n "checking openssl/des.h presence... " >&6; }
10098cat >conftest.$ac_ext <<_ACEOF
10099/* confdefs.h.  */
10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h.  */
10104#include <openssl/des.h>
10105_ACEOF
10106if { (ac_try="$ac_cpp conftest.$ac_ext"
10107case "(($ac_try" in
10108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109  *) ac_try_echo=$ac_try;;
10110esac
10111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10112$as_echo "$ac_try_echo") >&5
10113  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10114  ac_status=$?
10115  grep -v '^ *+' conftest.er1 >conftest.err
10116  rm -f conftest.er1
10117  cat conftest.err >&5
10118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119  (exit $ac_status); } >/dev/null && {
10120	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10121	 test ! -s conftest.err
10122       }; then
10123  ac_header_preproc=yes
10124else
10125  $as_echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128  ac_header_preproc=no
10129fi
10130
10131rm -f conftest.err conftest.$ac_ext
10132{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133$as_echo "$ac_header_preproc" >&6; }
10134
10135# So?  What about this header?
10136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10137  yes:no: )
10138    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
10139$as_echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
10141$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
10142    ac_header_preproc=yes
10143    ;;
10144  no:yes:* )
10145    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
10146$as_echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
10147    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&5
10148$as_echo "$as_me: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&2;}
10149    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
10150$as_echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
10151    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&5
10152$as_echo "$as_me: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10153    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
10154$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
10155    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
10156$as_echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
10157
10158    ;;
10159esac
10160{ $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5
10161$as_echo_n "checking for openssl/des.h... " >&6; }
10162if test "${ac_cv_header_openssl_des_h+set}" = set; then
10163  $as_echo_n "(cached) " >&6
10164else
10165  ac_cv_header_openssl_des_h=$ac_header_preproc
10166fi
10167{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
10168$as_echo "$ac_cv_header_openssl_des_h" >&6; }
10169
10170fi
10171if test "x$ac_cv_header_openssl_des_h" = x""yes; then
10172
10173cat >>confdefs.h <<\_ACEOF
10174#define WITH_SSL_DES /**/
10175_ACEOF
10176
10177                                       LIB_DES="-lcrypto";
10178                                       with_des=yes
10179else
10180  with_des=no
10181fi
10182
10183
10184else
10185  with_des=no
10186fi
10187
10188    fi
10189  fi
10190
10191  if test "$with_des" = no; then
10192    { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
10193$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
10194if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10195  $as_echo_n "(cached) " >&6
10196else
10197  ac_check_lib_save_LIBS=$LIBS
10198LIBS="-ldes  $LIBS"
10199cat >conftest.$ac_ext <<_ACEOF
10200/* confdefs.h.  */
10201_ACEOF
10202cat confdefs.h >>conftest.$ac_ext
10203cat >>conftest.$ac_ext <<_ACEOF
10204/* end confdefs.h.  */
10205
10206/* Override any GCC internal prototype to avoid an error.
10207   Use char because int might match the return type of a GCC
10208   builtin and then its argument prototype would still apply.  */
10209#ifdef __cplusplus
10210extern "C"
10211#endif
10212char des_cbc_encrypt ();
10213int
10214main ()
10215{
10216return des_cbc_encrypt ();
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221rm -f conftest.$ac_objext conftest$ac_exeext
10222if { (ac_try="$ac_link"
10223case "(($ac_try" in
10224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225  *) ac_try_echo=$ac_try;;
10226esac
10227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228$as_echo "$ac_try_echo") >&5
10229  (eval "$ac_link") 2>conftest.er1
10230  ac_status=$?
10231  grep -v '^ *+' conftest.er1 >conftest.err
10232  rm -f conftest.er1
10233  cat conftest.err >&5
10234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235  (exit $ac_status); } && {
10236	 test -z "$ac_c_werror_flag" ||
10237	 test ! -s conftest.err
10238       } && test -s conftest$ac_exeext && {
10239	 test "$cross_compiling" = yes ||
10240	 $as_test_x conftest$ac_exeext
10241       }; then
10242  ac_cv_lib_des_des_cbc_encrypt=yes
10243else
10244  $as_echo "$as_me: failed program was:" >&5
10245sed 's/^/| /' conftest.$ac_ext >&5
10246
10247	ac_cv_lib_des_des_cbc_encrypt=no
10248fi
10249
10250rm -rf conftest.dSYM
10251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10252      conftest$ac_exeext conftest.$ac_ext
10253LIBS=$ac_check_lib_save_LIBS
10254fi
10255{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10256$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
10257if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
10258  LIB_DES="-ldes";
10259                                        with_des=yes
10260else
10261  with_des=no
10262fi
10263
10264  fi
10265
10266  if test "$with_des" = no; then
10267     { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
10268$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
10269if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10270  $as_echo_n "(cached) " >&6
10271else
10272  ac_check_lib_save_LIBS=$LIBS
10273LIBS="-ldes425  $LIBS"
10274cat >conftest.$ac_ext <<_ACEOF
10275/* confdefs.h.  */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h.  */
10280
10281/* Override any GCC internal prototype to avoid an error.
10282   Use char because int might match the return type of a GCC
10283   builtin and then its argument prototype would still apply.  */
10284#ifdef __cplusplus
10285extern "C"
10286#endif
10287char des_cbc_encrypt ();
10288int
10289main ()
10290{
10291return des_cbc_encrypt ();
10292  ;
10293  return 0;
10294}
10295_ACEOF
10296rm -f conftest.$ac_objext conftest$ac_exeext
10297if { (ac_try="$ac_link"
10298case "(($ac_try" in
10299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300  *) ac_try_echo=$ac_try;;
10301esac
10302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303$as_echo "$ac_try_echo") >&5
10304  (eval "$ac_link") 2>conftest.er1
10305  ac_status=$?
10306  grep -v '^ *+' conftest.er1 >conftest.err
10307  rm -f conftest.er1
10308  cat conftest.err >&5
10309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); } && {
10311	 test -z "$ac_c_werror_flag" ||
10312	 test ! -s conftest.err
10313       } && test -s conftest$ac_exeext && {
10314	 test "$cross_compiling" = yes ||
10315	 $as_test_x conftest$ac_exeext
10316       }; then
10317  ac_cv_lib_des425_des_cbc_encrypt=yes
10318else
10319  $as_echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322	ac_cv_lib_des425_des_cbc_encrypt=no
10323fi
10324
10325rm -rf conftest.dSYM
10326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327      conftest$ac_exeext conftest.$ac_ext
10328LIBS=$ac_check_lib_save_LIBS
10329fi
10330{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10331$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
10332if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
10333  LIB_DES="-ldes425";
10334                                       with_des=yes
10335else
10336  with_des=no
10337fi
10338
10339  fi
10340
10341  if test "$with_des" = no; then
10342     { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5
10343$as_echo_n "checking for des_cbc_encrypt in -ldes524... " >&6; }
10344if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then
10345  $as_echo_n "(cached) " >&6
10346else
10347  ac_check_lib_save_LIBS=$LIBS
10348LIBS="-ldes524  $LIBS"
10349cat >conftest.$ac_ext <<_ACEOF
10350/* confdefs.h.  */
10351_ACEOF
10352cat confdefs.h >>conftest.$ac_ext
10353cat >>conftest.$ac_ext <<_ACEOF
10354/* end confdefs.h.  */
10355
10356/* Override any GCC internal prototype to avoid an error.
10357   Use char because int might match the return type of a GCC
10358   builtin and then its argument prototype would still apply.  */
10359#ifdef __cplusplus
10360extern "C"
10361#endif
10362char des_cbc_encrypt ();
10363int
10364main ()
10365{
10366return des_cbc_encrypt ();
10367  ;
10368  return 0;
10369}
10370_ACEOF
10371rm -f conftest.$ac_objext conftest$ac_exeext
10372if { (ac_try="$ac_link"
10373case "(($ac_try" in
10374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375  *) ac_try_echo=$ac_try;;
10376esac
10377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10378$as_echo "$ac_try_echo") >&5
10379  (eval "$ac_link") 2>conftest.er1
10380  ac_status=$?
10381  grep -v '^ *+' conftest.er1 >conftest.err
10382  rm -f conftest.er1
10383  cat conftest.err >&5
10384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385  (exit $ac_status); } && {
10386	 test -z "$ac_c_werror_flag" ||
10387	 test ! -s conftest.err
10388       } && test -s conftest$ac_exeext && {
10389	 test "$cross_compiling" = yes ||
10390	 $as_test_x conftest$ac_exeext
10391       }; then
10392  ac_cv_lib_des524_des_cbc_encrypt=yes
10393else
10394  $as_echo "$as_me: failed program was:" >&5
10395sed 's/^/| /' conftest.$ac_ext >&5
10396
10397	ac_cv_lib_des524_des_cbc_encrypt=no
10398fi
10399
10400rm -rf conftest.dSYM
10401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10402      conftest$ac_exeext conftest.$ac_ext
10403LIBS=$ac_check_lib_save_LIBS
10404fi
10405{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
10406$as_echo "$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
10407if test "x$ac_cv_lib_des524_des_cbc_encrypt" = x""yes; then
10408  LIB_DES="-ldes524";
10409                                       with_des=yes
10410else
10411  with_des=no
10412fi
10413
10414  fi
10415
10416  if test "$with_des" = no; then
10417
10418            LIB_RSAREF=""
10419    { $as_echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
10420$as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
10421if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
10422  $as_echo_n "(cached) " >&6
10423else
10424  ac_check_lib_save_LIBS=$LIBS
10425LIBS="-lrsaref  $LIBS"
10426cat >conftest.$ac_ext <<_ACEOF
10427/* confdefs.h.  */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h.  */
10432
10433/* Override any GCC internal prototype to avoid an error.
10434   Use char because int might match the return type of a GCC
10435   builtin and then its argument prototype would still apply.  */
10436#ifdef __cplusplus
10437extern "C"
10438#endif
10439char RSAPublicEncrypt ();
10440int
10441main ()
10442{
10443return RSAPublicEncrypt ();
10444  ;
10445  return 0;
10446}
10447_ACEOF
10448rm -f conftest.$ac_objext conftest$ac_exeext
10449if { (ac_try="$ac_link"
10450case "(($ac_try" in
10451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452  *) ac_try_echo=$ac_try;;
10453esac
10454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10455$as_echo "$ac_try_echo") >&5
10456  (eval "$ac_link") 2>conftest.er1
10457  ac_status=$?
10458  grep -v '^ *+' conftest.er1 >conftest.err
10459  rm -f conftest.er1
10460  cat conftest.err >&5
10461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462  (exit $ac_status); } && {
10463	 test -z "$ac_c_werror_flag" ||
10464	 test ! -s conftest.err
10465       } && test -s conftest$ac_exeext && {
10466	 test "$cross_compiling" = yes ||
10467	 $as_test_x conftest$ac_exeext
10468       }; then
10469  ac_cv_lib_rsaref_RSAPublicEncrypt=yes
10470else
10471  $as_echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5
10473
10474	ac_cv_lib_rsaref_RSAPublicEncrypt=no
10475fi
10476
10477rm -rf conftest.dSYM
10478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479      conftest$ac_exeext conftest.$ac_ext
10480LIBS=$ac_check_lib_save_LIBS
10481fi
10482{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
10483$as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
10484if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = x""yes; then
10485  LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
10486else
10487  cmu_have_rsaref=no
10488fi
10489
10490
10491    { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
10492$as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
10493if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
10494  $as_echo_n "(cached) " >&6
10495else
10496  ac_check_lib_save_LIBS=$LIBS
10497LIBS="-lcrypto $LIB_RSAREF $LIBS"
10498cat >conftest.$ac_ext <<_ACEOF
10499/* confdefs.h.  */
10500_ACEOF
10501cat confdefs.h >>conftest.$ac_ext
10502cat >>conftest.$ac_ext <<_ACEOF
10503/* end confdefs.h.  */
10504
10505/* Override any GCC internal prototype to avoid an error.
10506   Use char because int might match the return type of a GCC
10507   builtin and then its argument prototype would still apply.  */
10508#ifdef __cplusplus
10509extern "C"
10510#endif
10511char des_cbc_encrypt ();
10512int
10513main ()
10514{
10515return des_cbc_encrypt ();
10516  ;
10517  return 0;
10518}
10519_ACEOF
10520rm -f conftest.$ac_objext conftest$ac_exeext
10521if { (ac_try="$ac_link"
10522case "(($ac_try" in
10523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524  *) ac_try_echo=$ac_try;;
10525esac
10526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10527$as_echo "$ac_try_echo") >&5
10528  (eval "$ac_link") 2>conftest.er1
10529  ac_status=$?
10530  grep -v '^ *+' conftest.er1 >conftest.err
10531  rm -f conftest.er1
10532  cat conftest.err >&5
10533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534  (exit $ac_status); } && {
10535	 test -z "$ac_c_werror_flag" ||
10536	 test ! -s conftest.err
10537       } && test -s conftest$ac_exeext && {
10538	 test "$cross_compiling" = yes ||
10539	 $as_test_x conftest$ac_exeext
10540       }; then
10541  ac_cv_lib_crypto_des_cbc_encrypt=yes
10542else
10543  $as_echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
10546	ac_cv_lib_crypto_des_cbc_encrypt=no
10547fi
10548
10549rm -rf conftest.dSYM
10550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10551      conftest$ac_exeext conftest.$ac_ext
10552LIBS=$ac_check_lib_save_LIBS
10553fi
10554{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
10555$as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
10556if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = x""yes; then
10557
10558	if test "${ac_cv_header_openssl_des_h+set}" = set; then
10559  { $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5
10560$as_echo_n "checking for openssl/des.h... " >&6; }
10561if test "${ac_cv_header_openssl_des_h+set}" = set; then
10562  $as_echo_n "(cached) " >&6
10563fi
10564{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
10565$as_echo "$ac_cv_header_openssl_des_h" >&6; }
10566else
10567  # Is the header compilable?
10568{ $as_echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
10569$as_echo_n "checking openssl/des.h usability... " >&6; }
10570cat >conftest.$ac_ext <<_ACEOF
10571/* confdefs.h.  */
10572_ACEOF
10573cat confdefs.h >>conftest.$ac_ext
10574cat >>conftest.$ac_ext <<_ACEOF
10575/* end confdefs.h.  */
10576$ac_includes_default
10577#include <openssl/des.h>
10578_ACEOF
10579rm -f conftest.$ac_objext
10580if { (ac_try="$ac_compile"
10581case "(($ac_try" in
10582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583  *) ac_try_echo=$ac_try;;
10584esac
10585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10586$as_echo "$ac_try_echo") >&5
10587  (eval "$ac_compile") 2>conftest.er1
10588  ac_status=$?
10589  grep -v '^ *+' conftest.er1 >conftest.err
10590  rm -f conftest.er1
10591  cat conftest.err >&5
10592  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593  (exit $ac_status); } && {
10594	 test -z "$ac_c_werror_flag" ||
10595	 test ! -s conftest.err
10596       } && test -s conftest.$ac_objext; then
10597  ac_header_compiler=yes
10598else
10599  $as_echo "$as_me: failed program was:" >&5
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
10602	ac_header_compiler=no
10603fi
10604
10605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10606{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607$as_echo "$ac_header_compiler" >&6; }
10608
10609# Is the header present?
10610{ $as_echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
10611$as_echo_n "checking openssl/des.h presence... " >&6; }
10612cat >conftest.$ac_ext <<_ACEOF
10613/* confdefs.h.  */
10614_ACEOF
10615cat confdefs.h >>conftest.$ac_ext
10616cat >>conftest.$ac_ext <<_ACEOF
10617/* end confdefs.h.  */
10618#include <openssl/des.h>
10619_ACEOF
10620if { (ac_try="$ac_cpp conftest.$ac_ext"
10621case "(($ac_try" in
10622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623  *) ac_try_echo=$ac_try;;
10624esac
10625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10626$as_echo "$ac_try_echo") >&5
10627  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10628  ac_status=$?
10629  grep -v '^ *+' conftest.er1 >conftest.err
10630  rm -f conftest.er1
10631  cat conftest.err >&5
10632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); } >/dev/null && {
10634	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10635	 test ! -s conftest.err
10636       }; then
10637  ac_header_preproc=yes
10638else
10639  $as_echo "$as_me: failed program was:" >&5
10640sed 's/^/| /' conftest.$ac_ext >&5
10641
10642  ac_header_preproc=no
10643fi
10644
10645rm -f conftest.err conftest.$ac_ext
10646{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10647$as_echo "$ac_header_preproc" >&6; }
10648
10649# So?  What about this header?
10650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10651  yes:no: )
10652    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
10653$as_echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10654    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
10655$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
10656    ac_header_preproc=yes
10657    ;;
10658  no:yes:* )
10659    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
10660$as_echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
10661    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&5
10662$as_echo "$as_me: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&2;}
10663    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
10664$as_echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
10665    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&5
10666$as_echo "$as_me: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10667    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
10668$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
10669    { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
10670$as_echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
10671
10672    ;;
10673esac
10674{ $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5
10675$as_echo_n "checking for openssl/des.h... " >&6; }
10676if test "${ac_cv_header_openssl_des_h+set}" = set; then
10677  $as_echo_n "(cached) " >&6
10678else
10679  ac_cv_header_openssl_des_h=$ac_header_preproc
10680fi
10681{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
10682$as_echo "$ac_cv_header_openssl_des_h" >&6; }
10683
10684fi
10685if test "x$ac_cv_header_openssl_des_h" = x""yes; then
10686
10687cat >>confdefs.h <<\_ACEOF
10688#define WITH_SSL_DES /**/
10689_ACEOF
10690
10691					LIB_DES="-lcrypto";
10692					with_des=yes
10693else
10694  with_des=no
10695fi
10696
10697
10698else
10699  with_des=no
10700fi
10701
10702  fi
10703fi
10704
10705if test "$with_des" != no; then
10706
10707cat >>confdefs.h <<\_ACEOF
10708#define WITH_DES /**/
10709_ACEOF
10710
10711fi
10712
10713
10714
10715
10716# Check whether --enable-digest was given.
10717if test "${enable_digest+set}" = set; then
10718  enableval=$enable_digest; digest=$enableval
10719else
10720  digest=yes
10721fi
10722
10723
10724if test "$digest" != no; then
10725    if test -d $digest; then
10726    CPPFLAGS="$CPPFLAGS -I$digest/include"
10727    LDFLAGS="$LDFLAGS -L$digest/lib"
10728  fi
10729  if test "$with_des" = no; then
10730    { $as_echo "$as_me:$LINENO: WARNING: No DES support for DIGEST-MD5" >&5
10731$as_echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
10732  fi
10733fi
10734
10735{ $as_echo "$as_me:$LINENO: checking DIGEST-MD5" >&5
10736$as_echo_n "checking DIGEST-MD5... " >&6; }
10737if test "$digest" != no; then
10738  { $as_echo "$as_me:$LINENO: result: enabled" >&5
10739$as_echo "enabled" >&6; }
10740  SASL_MECHS="$SASL_MECHS libdigestmd5.la"
10741  if test "$enable_static" = yes; then
10742    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/digestmd5.c"
10743    SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
10744
10745cat >>confdefs.h <<\_ACEOF
10746#define STATIC_DIGESTMD5 /**/
10747_ACEOF
10748
10749  fi
10750else
10751  { $as_echo "$as_me:$LINENO: result: disabled" >&5
10752$as_echo "disabled" >&6; }
10753fi
10754
10755# Check whether --enable-scram was given.
10756if test "${enable_scram+set}" = set; then
10757  enableval=$enable_scram; scram=$enableval
10758else
10759  scram=yes
10760fi
10761
10762
10763if test "$with_openssl" = no; then
10764  { $as_echo "$as_me:$LINENO: WARNING: OpenSSL not found -- SCRAM will be disabled" >&5
10765$as_echo "$as_me: WARNING: OpenSSL not found -- SCRAM will be disabled" >&2;}
10766  scram=no
10767fi
10768
10769{ $as_echo "$as_me:$LINENO: checking SCRAM" >&5
10770$as_echo_n "checking SCRAM... " >&6; }
10771if test "$scram" != no; then
10772  { $as_echo "$as_me:$LINENO: result: enabled" >&5
10773$as_echo "enabled" >&6; }
10774  SCRAM_LIBS="-lcrypto $LIB_RSAREF"
10775
10776  SASL_MECHS="$SASL_MECHS libscram.la"
10777  if test "$enable_static" = yes; then
10778    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/scram.c"
10779    SASL_STATIC_OBJS="$SASL_STATIC_OBJS scram.o"
10780
10781cat >>confdefs.h <<\_ACEOF
10782#define STATIC_SCRAM /**/
10783_ACEOF
10784
10785  fi
10786
10787
10788else
10789  { $as_echo "$as_me:$LINENO: result: disabled" >&5
10790$as_echo "disabled" >&6; }
10791fi
10792
10793# Check whether --enable-otp was given.
10794if test "${enable_otp+set}" = set; then
10795  enableval=$enable_otp; otp=$enableval
10796else
10797  otp=yes
10798fi
10799
10800
10801if test "$with_openssl" = no; then
10802  { $as_echo "$as_me:$LINENO: WARNING: OpenSSL not found -- OTP will be disabled" >&5
10803$as_echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
10804  otp=no
10805fi
10806
10807{ $as_echo "$as_me:$LINENO: checking OTP" >&5
10808$as_echo_n "checking OTP... " >&6; }
10809if test "$otp" != no; then
10810  { $as_echo "$as_me:$LINENO: result: enabled" >&5
10811$as_echo "enabled" >&6; }
10812  OTP_LIBS="-lcrypto $LIB_RSAREF"
10813
10814  SASL_MECHS="$SASL_MECHS libotp.la"
10815  if test "$enable_static" = yes; then
10816    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/otp.c"
10817    SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
10818
10819cat >>confdefs.h <<\_ACEOF
10820#define STATIC_OTP /**/
10821_ACEOF
10822
10823  fi
10824
10825
10826# Check whether --with-with-opie was given.
10827if test "${with_with_opie+set}" = set; then
10828  withval=$with_with_opie; with_opie="${withval}"
10829fi
10830
10831
10832  case "$with_opie" in
10833	""|yes)
10834		{ $as_echo "$as_me:$LINENO: checking for opiechallenge in -lopie" >&5
10835$as_echo_n "checking for opiechallenge in -lopie... " >&6; }
10836if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then
10837  $as_echo_n "(cached) " >&6
10838else
10839  ac_check_lib_save_LIBS=$LIBS
10840LIBS="-lopie  $LIBS"
10841cat >conftest.$ac_ext <<_ACEOF
10842/* confdefs.h.  */
10843_ACEOF
10844cat confdefs.h >>conftest.$ac_ext
10845cat >>conftest.$ac_ext <<_ACEOF
10846/* end confdefs.h.  */
10847
10848/* Override any GCC internal prototype to avoid an error.
10849   Use char because int might match the return type of a GCC
10850   builtin and then its argument prototype would still apply.  */
10851#ifdef __cplusplus
10852extern "C"
10853#endif
10854char opiechallenge ();
10855int
10856main ()
10857{
10858return opiechallenge ();
10859  ;
10860  return 0;
10861}
10862_ACEOF
10863rm -f conftest.$ac_objext conftest$ac_exeext
10864if { (ac_try="$ac_link"
10865case "(($ac_try" in
10866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867  *) ac_try_echo=$ac_try;;
10868esac
10869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10870$as_echo "$ac_try_echo") >&5
10871  (eval "$ac_link") 2>conftest.er1
10872  ac_status=$?
10873  grep -v '^ *+' conftest.er1 >conftest.err
10874  rm -f conftest.er1
10875  cat conftest.err >&5
10876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877  (exit $ac_status); } && {
10878	 test -z "$ac_c_werror_flag" ||
10879	 test ! -s conftest.err
10880       } && test -s conftest$ac_exeext && {
10881	 test "$cross_compiling" = yes ||
10882	 $as_test_x conftest$ac_exeext
10883       }; then
10884  ac_cv_lib_opie_opiechallenge=yes
10885else
10886  $as_echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
10889	ac_cv_lib_opie_opiechallenge=no
10890fi
10891
10892rm -rf conftest.dSYM
10893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10894      conftest$ac_exeext conftest.$ac_ext
10895LIBS=$ac_check_lib_save_LIBS
10896fi
10897{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_opie_opiechallenge" >&5
10898$as_echo "$ac_cv_lib_opie_opiechallenge" >&6; }
10899if test "x$ac_cv_lib_opie_opiechallenge" = x""yes; then
10900
10901			if test "${ac_cv_header_opie_h+set}" = set; then
10902  { $as_echo "$as_me:$LINENO: checking for opie.h" >&5
10903$as_echo_n "checking for opie.h... " >&6; }
10904if test "${ac_cv_header_opie_h+set}" = set; then
10905  $as_echo_n "(cached) " >&6
10906fi
10907{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
10908$as_echo "$ac_cv_header_opie_h" >&6; }
10909else
10910  # Is the header compilable?
10911{ $as_echo "$as_me:$LINENO: checking opie.h usability" >&5
10912$as_echo_n "checking opie.h usability... " >&6; }
10913cat >conftest.$ac_ext <<_ACEOF
10914/* confdefs.h.  */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h.  */
10919$ac_includes_default
10920#include <opie.h>
10921_ACEOF
10922rm -f conftest.$ac_objext
10923if { (ac_try="$ac_compile"
10924case "(($ac_try" in
10925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926  *) ac_try_echo=$ac_try;;
10927esac
10928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10929$as_echo "$ac_try_echo") >&5
10930  (eval "$ac_compile") 2>conftest.er1
10931  ac_status=$?
10932  grep -v '^ *+' conftest.er1 >conftest.err
10933  rm -f conftest.er1
10934  cat conftest.err >&5
10935  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936  (exit $ac_status); } && {
10937	 test -z "$ac_c_werror_flag" ||
10938	 test ! -s conftest.err
10939       } && test -s conftest.$ac_objext; then
10940  ac_header_compiler=yes
10941else
10942  $as_echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
10945	ac_header_compiler=no
10946fi
10947
10948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10949{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10950$as_echo "$ac_header_compiler" >&6; }
10951
10952# Is the header present?
10953{ $as_echo "$as_me:$LINENO: checking opie.h presence" >&5
10954$as_echo_n "checking opie.h presence... " >&6; }
10955cat >conftest.$ac_ext <<_ACEOF
10956/* confdefs.h.  */
10957_ACEOF
10958cat confdefs.h >>conftest.$ac_ext
10959cat >>conftest.$ac_ext <<_ACEOF
10960/* end confdefs.h.  */
10961#include <opie.h>
10962_ACEOF
10963if { (ac_try="$ac_cpp conftest.$ac_ext"
10964case "(($ac_try" in
10965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966  *) ac_try_echo=$ac_try;;
10967esac
10968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10969$as_echo "$ac_try_echo") >&5
10970  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10971  ac_status=$?
10972  grep -v '^ *+' conftest.er1 >conftest.err
10973  rm -f conftest.er1
10974  cat conftest.err >&5
10975  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976  (exit $ac_status); } >/dev/null && {
10977	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10978	 test ! -s conftest.err
10979       }; then
10980  ac_header_preproc=yes
10981else
10982  $as_echo "$as_me: failed program was:" >&5
10983sed 's/^/| /' conftest.$ac_ext >&5
10984
10985  ac_header_preproc=no
10986fi
10987
10988rm -f conftest.err conftest.$ac_ext
10989{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10990$as_echo "$ac_header_preproc" >&6; }
10991
10992# So?  What about this header?
10993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10994  yes:no: )
10995    { $as_echo "$as_me:$LINENO: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&5
10996$as_echo "$as_me: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10997    { $as_echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the compiler's result" >&5
10998$as_echo "$as_me: WARNING: opie.h: proceeding with the compiler's result" >&2;}
10999    ac_header_preproc=yes
11000    ;;
11001  no:yes:* )
11002    { $as_echo "$as_me:$LINENO: WARNING: opie.h: present but cannot be compiled" >&5
11003$as_echo "$as_me: WARNING: opie.h: present but cannot be compiled" >&2;}
11004    { $as_echo "$as_me:$LINENO: WARNING: opie.h:     check for missing prerequisite headers?" >&5
11005$as_echo "$as_me: WARNING: opie.h:     check for missing prerequisite headers?" >&2;}
11006    { $as_echo "$as_me:$LINENO: WARNING: opie.h: see the Autoconf documentation" >&5
11007$as_echo "$as_me: WARNING: opie.h: see the Autoconf documentation" >&2;}
11008    { $as_echo "$as_me:$LINENO: WARNING: opie.h:     section \"Present But Cannot Be Compiled\"" >&5
11009$as_echo "$as_me: WARNING: opie.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11010    { $as_echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the preprocessor's result" >&5
11011$as_echo "$as_me: WARNING: opie.h: proceeding with the preprocessor's result" >&2;}
11012    { $as_echo "$as_me:$LINENO: WARNING: opie.h: in the future, the compiler will take precedence" >&5
11013$as_echo "$as_me: WARNING: opie.h: in the future, the compiler will take precedence" >&2;}
11014
11015    ;;
11016esac
11017{ $as_echo "$as_me:$LINENO: checking for opie.h" >&5
11018$as_echo_n "checking for opie.h... " >&6; }
11019if test "${ac_cv_header_opie_h+set}" = set; then
11020  $as_echo_n "(cached) " >&6
11021else
11022  ac_cv_header_opie_h=$ac_header_preproc
11023fi
11024{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
11025$as_echo "$ac_cv_header_opie_h" >&6; }
11026
11027fi
11028if test "x$ac_cv_header_opie_h" = x""yes; then
11029  with_opie="yes"
11030else
11031  with_opie="no"
11032fi
11033
11034
11035else
11036  with_opie="no"
11037fi
11038
11039		;;
11040	*)
11041		if test -d $with_opie; then
11042		  CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
11043		  LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
11044		else
11045		  with_opie="no"
11046		fi
11047		;;
11048  esac
11049
11050  { $as_echo "$as_me:$LINENO: checking for OPIE" >&5
11051$as_echo_n "checking for OPIE... " >&6; }
11052  { $as_echo "$as_me:$LINENO: result: $with_opie" >&5
11053$as_echo "$with_opie" >&6; }
11054
11055  if test "$with_opie" != no; then
11056
11057cat >>confdefs.h <<\_ACEOF
11058#define HAVE_OPIE /**/
11059_ACEOF
11060
11061    OTP_LIBS="$OTP_LIBS -lopie"
11062  fi
11063
11064
11065
11066else
11067  { $as_echo "$as_me:$LINENO: result: disabled" >&5
11068$as_echo "disabled" >&6; }
11069fi
11070
11071# Check whether --enable-srp was given.
11072if test "${enable_srp+set}" = set; then
11073  enableval=$enable_srp; srp=$enableval
11074else
11075  srp=no
11076fi
11077
11078
11079if test "$with_openssl" = no; then
11080  { $as_echo "$as_me:$LINENO: WARNING: OpenSSL not found -- SRP will be disabled" >&5
11081$as_echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
11082  srp=no
11083fi
11084
11085{ $as_echo "$as_me:$LINENO: checking SRP" >&5
11086$as_echo_n "checking SRP... " >&6; }
11087if test "$srp" != no; then
11088  { $as_echo "$as_me:$LINENO: result: enabled" >&5
11089$as_echo "enabled" >&6; }
11090  SRP_LIBS="-lcrypto $LIB_RSAREF"
11091
11092  SASL_MECHS="$SASL_MECHS libsrp.la"
11093  if test "$enable_static" = yes; then
11094    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/srp.c"
11095    SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
11096
11097cat >>confdefs.h <<\_ACEOF
11098#define STATIC_SRP /**/
11099_ACEOF
11100
11101  fi
11102
11103  # Check whether --enable-srp_setpass was given.
11104if test "${enable_srp_setpass+set}" = set; then
11105  enableval=$enable_srp_setpass; srp_setpass=$enableval
11106else
11107  srp_setpass=no
11108fi
11109
11110
11111  { $as_echo "$as_me:$LINENO: checking if we should enable setting SRP secrets with saslpasswd" >&5
11112$as_echo_n "checking if we should enable setting SRP secrets with saslpasswd... " >&6; }
11113  if test "$srp_setpass" != no; then
11114    { $as_echo "$as_me:$LINENO: result: enabled" >&5
11115$as_echo "enabled" >&6; }
11116
11117cat >>confdefs.h <<\_ACEOF
11118#define DO_SRP_SETPASS /**/
11119_ACEOF
11120
11121  else
11122    { $as_echo "$as_me:$LINENO: result: disabled" >&5
11123$as_echo "disabled" >&6; }
11124  fi
11125
11126
11127else
11128  { $as_echo "$as_me:$LINENO: result: disabled" >&5
11129$as_echo "disabled" >&6; }
11130fi
11131
11132
11133
11134
11135  # Check whether --enable-krb4 was given.
11136if test "${enable_krb4+set}" = set; then
11137  enableval=$enable_krb4; krb4=$enableval
11138else
11139  krb4=no
11140fi
11141
11142
11143  if test "$krb4" != no; then
11144
11145{ $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
11146$as_echo_n "checking for res_search in -lresolv... " >&6; }
11147if test "${ac_cv_lib_resolv_res_search+set}" = set; then
11148  $as_echo_n "(cached) " >&6
11149else
11150  ac_check_lib_save_LIBS=$LIBS
11151LIBS="-lresolv  $LIBS"
11152cat >conftest.$ac_ext <<_ACEOF
11153/* confdefs.h.  */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h.  */
11158
11159/* Override any GCC internal prototype to avoid an error.
11160   Use char because int might match the return type of a GCC
11161   builtin and then its argument prototype would still apply.  */
11162#ifdef __cplusplus
11163extern "C"
11164#endif
11165char res_search ();
11166int
11167main ()
11168{
11169return res_search ();
11170  ;
11171  return 0;
11172}
11173_ACEOF
11174rm -f conftest.$ac_objext conftest$ac_exeext
11175if { (ac_try="$ac_link"
11176case "(($ac_try" in
11177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178  *) ac_try_echo=$ac_try;;
11179esac
11180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11181$as_echo "$ac_try_echo") >&5
11182  (eval "$ac_link") 2>conftest.er1
11183  ac_status=$?
11184  grep -v '^ *+' conftest.er1 >conftest.err
11185  rm -f conftest.er1
11186  cat conftest.err >&5
11187  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188  (exit $ac_status); } && {
11189	 test -z "$ac_c_werror_flag" ||
11190	 test ! -s conftest.err
11191       } && test -s conftest$ac_exeext && {
11192	 test "$cross_compiling" = yes ||
11193	 $as_test_x conftest$ac_exeext
11194       }; then
11195  ac_cv_lib_resolv_res_search=yes
11196else
11197  $as_echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200	ac_cv_lib_resolv_res_search=no
11201fi
11202
11203rm -rf conftest.dSYM
11204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11205      conftest$ac_exeext conftest.$ac_ext
11206LIBS=$ac_check_lib_save_LIBS
11207fi
11208{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
11209$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
11210if test "x$ac_cv_lib_resolv_res_search" = x""yes; then
11211  cat >>confdefs.h <<_ACEOF
11212#define HAVE_LIBRESOLV 1
11213_ACEOF
11214
11215  LIBS="-lresolv $LIBS"
11216
11217fi
11218
11219
11220            if test -d ${krb4}; then
11221       { $as_echo "$as_me:$LINENO: checking for Kerberos includes" >&5
11222$as_echo_n "checking for Kerberos includes... " >&6; }
11223if test "${cyrus_krbinclude+set}" = set; then
11224  $as_echo_n "(cached) " >&6
11225else
11226
11227         for krbhloc in include/kerberosIV include/kerberos include
11228         do
11229           if test -f ${krb4}/${krbhloc}/krb.h ; then
11230             cyrus_krbinclude=${krb4}/${krbhloc}
11231             break
11232           fi
11233         done
11234
11235fi
11236{ $as_echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
11237$as_echo "$cyrus_krbinclude" >&6; }
11238
11239       if test -n "${cyrus_krbinclude}"; then
11240         CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
11241       fi
11242       LDFLAGS="$LDFLAGS -L$krb4/lib"
11243    fi
11244
11245    if test "$with_des" != no; then
11246      if test "${ac_cv_header_krb_h+set}" = set; then
11247  { $as_echo "$as_me:$LINENO: checking for krb.h" >&5
11248$as_echo_n "checking for krb.h... " >&6; }
11249if test "${ac_cv_header_krb_h+set}" = set; then
11250  $as_echo_n "(cached) " >&6
11251fi
11252{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
11253$as_echo "$ac_cv_header_krb_h" >&6; }
11254else
11255  # Is the header compilable?
11256{ $as_echo "$as_me:$LINENO: checking krb.h usability" >&5
11257$as_echo_n "checking krb.h usability... " >&6; }
11258cat >conftest.$ac_ext <<_ACEOF
11259/* confdefs.h.  */
11260_ACEOF
11261cat confdefs.h >>conftest.$ac_ext
11262cat >>conftest.$ac_ext <<_ACEOF
11263/* end confdefs.h.  */
11264$ac_includes_default
11265#include <krb.h>
11266_ACEOF
11267rm -f conftest.$ac_objext
11268if { (ac_try="$ac_compile"
11269case "(($ac_try" in
11270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271  *) ac_try_echo=$ac_try;;
11272esac
11273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11274$as_echo "$ac_try_echo") >&5
11275  (eval "$ac_compile") 2>conftest.er1
11276  ac_status=$?
11277  grep -v '^ *+' conftest.er1 >conftest.err
11278  rm -f conftest.er1
11279  cat conftest.err >&5
11280  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281  (exit $ac_status); } && {
11282	 test -z "$ac_c_werror_flag" ||
11283	 test ! -s conftest.err
11284       } && test -s conftest.$ac_objext; then
11285  ac_header_compiler=yes
11286else
11287  $as_echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290	ac_header_compiler=no
11291fi
11292
11293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295$as_echo "$ac_header_compiler" >&6; }
11296
11297# Is the header present?
11298{ $as_echo "$as_me:$LINENO: checking krb.h presence" >&5
11299$as_echo_n "checking krb.h presence... " >&6; }
11300cat >conftest.$ac_ext <<_ACEOF
11301/* confdefs.h.  */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h.  */
11306#include <krb.h>
11307_ACEOF
11308if { (ac_try="$ac_cpp conftest.$ac_ext"
11309case "(($ac_try" in
11310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311  *) ac_try_echo=$ac_try;;
11312esac
11313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11314$as_echo "$ac_try_echo") >&5
11315  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316  ac_status=$?
11317  grep -v '^ *+' conftest.er1 >conftest.err
11318  rm -f conftest.er1
11319  cat conftest.err >&5
11320  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321  (exit $ac_status); } >/dev/null && {
11322	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11323	 test ! -s conftest.err
11324       }; then
11325  ac_header_preproc=yes
11326else
11327  $as_echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
11330  ac_header_preproc=no
11331fi
11332
11333rm -f conftest.err conftest.$ac_ext
11334{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11335$as_echo "$ac_header_preproc" >&6; }
11336
11337# So?  What about this header?
11338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11339  yes:no: )
11340    { $as_echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
11341$as_echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11342    { $as_echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
11343$as_echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
11344    ac_header_preproc=yes
11345    ;;
11346  no:yes:* )
11347    { $as_echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
11348$as_echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
11349    { $as_echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
11350$as_echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
11351    { $as_echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
11352$as_echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
11353    { $as_echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
11354$as_echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11355    { $as_echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
11356$as_echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
11357    { $as_echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
11358$as_echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
11359
11360    ;;
11361esac
11362{ $as_echo "$as_me:$LINENO: checking for krb.h" >&5
11363$as_echo_n "checking for krb.h... " >&6; }
11364if test "${ac_cv_header_krb_h+set}" = set; then
11365  $as_echo_n "(cached) " >&6
11366else
11367  ac_cv_header_krb_h=$ac_header_preproc
11368fi
11369{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
11370$as_echo "$ac_cv_header_krb_h" >&6; }
11371
11372fi
11373if test "x$ac_cv_header_krb_h" = x""yes; then
11374
11375        { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
11376$as_echo_n "checking for com_err in -lcom_err... " >&6; }
11377if test "${ac_cv_lib_com_err_com_err+set}" = set; then
11378  $as_echo_n "(cached) " >&6
11379else
11380  ac_check_lib_save_LIBS=$LIBS
11381LIBS="-lcom_err  $LIBS"
11382cat >conftest.$ac_ext <<_ACEOF
11383/* confdefs.h.  */
11384_ACEOF
11385cat confdefs.h >>conftest.$ac_ext
11386cat >>conftest.$ac_ext <<_ACEOF
11387/* end confdefs.h.  */
11388
11389/* Override any GCC internal prototype to avoid an error.
11390   Use char because int might match the return type of a GCC
11391   builtin and then its argument prototype would still apply.  */
11392#ifdef __cplusplus
11393extern "C"
11394#endif
11395char com_err ();
11396int
11397main ()
11398{
11399return com_err ();
11400  ;
11401  return 0;
11402}
11403_ACEOF
11404rm -f conftest.$ac_objext conftest$ac_exeext
11405if { (ac_try="$ac_link"
11406case "(($ac_try" in
11407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408  *) ac_try_echo=$ac_try;;
11409esac
11410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11411$as_echo "$ac_try_echo") >&5
11412  (eval "$ac_link") 2>conftest.er1
11413  ac_status=$?
11414  grep -v '^ *+' conftest.er1 >conftest.err
11415  rm -f conftest.er1
11416  cat conftest.err >&5
11417  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418  (exit $ac_status); } && {
11419	 test -z "$ac_c_werror_flag" ||
11420	 test ! -s conftest.err
11421       } && test -s conftest$ac_exeext && {
11422	 test "$cross_compiling" = yes ||
11423	 $as_test_x conftest$ac_exeext
11424       }; then
11425  ac_cv_lib_com_err_com_err=yes
11426else
11427  $as_echo "$as_me: failed program was:" >&5
11428sed 's/^/| /' conftest.$ac_ext >&5
11429
11430	ac_cv_lib_com_err_com_err=no
11431fi
11432
11433rm -rf conftest.dSYM
11434rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11435      conftest$ac_exeext conftest.$ac_ext
11436LIBS=$ac_check_lib_save_LIBS
11437fi
11438{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
11439$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
11440if test "x$ac_cv_lib_com_err_com_err" = x""yes; then
11441
11442	  { $as_echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
11443$as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
11444if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
11445  $as_echo_n "(cached) " >&6
11446else
11447  ac_check_lib_save_LIBS=$LIBS
11448LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
11449cat >conftest.$ac_ext <<_ACEOF
11450/* confdefs.h.  */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h.  */
11455
11456/* Override any GCC internal prototype to avoid an error.
11457   Use char because int might match the return type of a GCC
11458   builtin and then its argument prototype would still apply.  */
11459#ifdef __cplusplus
11460extern "C"
11461#endif
11462char krb_mk_priv ();
11463int
11464main ()
11465{
11466return krb_mk_priv ();
11467  ;
11468  return 0;
11469}
11470_ACEOF
11471rm -f conftest.$ac_objext conftest$ac_exeext
11472if { (ac_try="$ac_link"
11473case "(($ac_try" in
11474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475  *) ac_try_echo=$ac_try;;
11476esac
11477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11478$as_echo "$ac_try_echo") >&5
11479  (eval "$ac_link") 2>conftest.er1
11480  ac_status=$?
11481  grep -v '^ *+' conftest.er1 >conftest.err
11482  rm -f conftest.er1
11483  cat conftest.err >&5
11484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485  (exit $ac_status); } && {
11486	 test -z "$ac_c_werror_flag" ||
11487	 test ! -s conftest.err
11488       } && test -s conftest$ac_exeext && {
11489	 test "$cross_compiling" = yes ||
11490	 $as_test_x conftest$ac_exeext
11491       }; then
11492  ac_cv_lib_krb_krb_mk_priv=yes
11493else
11494  $as_echo "$as_me: failed program was:" >&5
11495sed 's/^/| /' conftest.$ac_ext >&5
11496
11497	ac_cv_lib_krb_krb_mk_priv=no
11498fi
11499
11500rm -rf conftest.dSYM
11501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11502      conftest$ac_exeext conftest.$ac_ext
11503LIBS=$ac_check_lib_save_LIBS
11504fi
11505{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
11506$as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
11507if test "x$ac_cv_lib_krb_krb_mk_priv" = x""yes; then
11508  COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
11509else
11510  krb4lib=no
11511fi
11512
11513else
11514
11515    	  { $as_echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
11516$as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
11517if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
11518  $as_echo_n "(cached) " >&6
11519else
11520  ac_check_lib_save_LIBS=$LIBS
11521LIBS="-lkrb $LIB_DES $LIBS"
11522cat >conftest.$ac_ext <<_ACEOF
11523/* confdefs.h.  */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h.  */
11528
11529/* Override any GCC internal prototype to avoid an error.
11530   Use char because int might match the return type of a GCC
11531   builtin and then its argument prototype would still apply.  */
11532#ifdef __cplusplus
11533extern "C"
11534#endif
11535char krb_mk_priv ();
11536int
11537main ()
11538{
11539return krb_mk_priv ();
11540  ;
11541  return 0;
11542}
11543_ACEOF
11544rm -f conftest.$ac_objext conftest$ac_exeext
11545if { (ac_try="$ac_link"
11546case "(($ac_try" in
11547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548  *) ac_try_echo=$ac_try;;
11549esac
11550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11551$as_echo "$ac_try_echo") >&5
11552  (eval "$ac_link") 2>conftest.er1
11553  ac_status=$?
11554  grep -v '^ *+' conftest.er1 >conftest.err
11555  rm -f conftest.er1
11556  cat conftest.err >&5
11557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558  (exit $ac_status); } && {
11559	 test -z "$ac_c_werror_flag" ||
11560	 test ! -s conftest.err
11561       } && test -s conftest$ac_exeext && {
11562	 test "$cross_compiling" = yes ||
11563	 $as_test_x conftest$ac_exeext
11564       }; then
11565  ac_cv_lib_krb_krb_mk_priv=yes
11566else
11567  $as_echo "$as_me: failed program was:" >&5
11568sed 's/^/| /' conftest.$ac_ext >&5
11569
11570	ac_cv_lib_krb_krb_mk_priv=no
11571fi
11572
11573rm -rf conftest.dSYM
11574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11575      conftest$ac_exeext conftest.$ac_ext
11576LIBS=$ac_check_lib_save_LIBS
11577fi
11578{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
11579$as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
11580if test "x$ac_cv_lib_krb_krb_mk_priv" = x""yes; then
11581  COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
11582else
11583  krb4lib=no
11584fi
11585
11586fi
11587
11588else
11589  krb4="no"
11590fi
11591
11592
11593
11594      if test "$krb4" != "no" -a "$krb4lib" = "no"; then
11595	{ $as_echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5
11596$as_echo_n "checking for krb_mk_priv in -lkrb4... " >&6; }
11597if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then
11598  $as_echo_n "(cached) " >&6
11599else
11600  ac_check_lib_save_LIBS=$LIBS
11601LIBS="-lkrb4 $LIB_DES $LIBS"
11602cat >conftest.$ac_ext <<_ACEOF
11603/* confdefs.h.  */
11604_ACEOF
11605cat confdefs.h >>conftest.$ac_ext
11606cat >>conftest.$ac_ext <<_ACEOF
11607/* end confdefs.h.  */
11608
11609/* Override any GCC internal prototype to avoid an error.
11610   Use char because int might match the return type of a GCC
11611   builtin and then its argument prototype would still apply.  */
11612#ifdef __cplusplus
11613extern "C"
11614#endif
11615char krb_mk_priv ();
11616int
11617main ()
11618{
11619return krb_mk_priv ();
11620  ;
11621  return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext conftest$ac_exeext
11625if { (ac_try="$ac_link"
11626case "(($ac_try" in
11627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628  *) ac_try_echo=$ac_try;;
11629esac
11630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11631$as_echo "$ac_try_echo") >&5
11632  (eval "$ac_link") 2>conftest.er1
11633  ac_status=$?
11634  grep -v '^ *+' conftest.er1 >conftest.err
11635  rm -f conftest.er1
11636  cat conftest.err >&5
11637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638  (exit $ac_status); } && {
11639	 test -z "$ac_c_werror_flag" ||
11640	 test ! -s conftest.err
11641       } && test -s conftest$ac_exeext && {
11642	 test "$cross_compiling" = yes ||
11643	 $as_test_x conftest$ac_exeext
11644       }; then
11645  ac_cv_lib_krb4_krb_mk_priv=yes
11646else
11647  $as_echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
11650	ac_cv_lib_krb4_krb_mk_priv=no
11651fi
11652
11653rm -rf conftest.dSYM
11654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11655      conftest$ac_exeext conftest.$ac_ext
11656LIBS=$ac_check_lib_save_LIBS
11657fi
11658{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
11659$as_echo "$ac_cv_lib_krb4_krb_mk_priv" >&6; }
11660if test "x$ac_cv_lib_krb4_krb_mk_priv" = x""yes; then
11661  COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
11662else
11663  krb4=no
11664fi
11665
11666      fi
11667      if test "$krb4" = no; then
11668          { $as_echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5
11669$as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
11670      fi
11671    else
11672      { $as_echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5
11673$as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
11674      krb4=no
11675    fi
11676  fi
11677
11678  if test "$krb4" != no; then
11679    cmu_save_LIBS="$LIBS"
11680    LIBS="$LIBS $SASL_KRB_LIB"
11681
11682for ac_func in krb_get_err_text
11683do
11684as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11686$as_echo_n "checking for $ac_func... " >&6; }
11687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688  $as_echo_n "(cached) " >&6
11689else
11690  cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h.  */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h.  */
11696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11698#define $ac_func innocuous_$ac_func
11699
11700/* System header to define __stub macros and hopefully few prototypes,
11701    which can conflict with char $ac_func (); below.
11702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703    <limits.h> exists even on freestanding compilers.  */
11704
11705#ifdef __STDC__
11706# include <limits.h>
11707#else
11708# include <assert.h>
11709#endif
11710
11711#undef $ac_func
11712
11713/* Override any GCC internal prototype to avoid an error.
11714   Use char because int might match the return type of a GCC
11715   builtin and then its argument prototype would still apply.  */
11716#ifdef __cplusplus
11717extern "C"
11718#endif
11719char $ac_func ();
11720/* The GNU C library defines this for functions which it implements
11721    to always fail with ENOSYS.  Some functions are actually named
11722    something starting with __ and the normal name is an alias.  */
11723#if defined __stub_$ac_func || defined __stub___$ac_func
11724choke me
11725#endif
11726
11727int
11728main ()
11729{
11730return $ac_func ();
11731  ;
11732  return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext conftest$ac_exeext
11736if { (ac_try="$ac_link"
11737case "(($ac_try" in
11738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739  *) ac_try_echo=$ac_try;;
11740esac
11741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11742$as_echo "$ac_try_echo") >&5
11743  (eval "$ac_link") 2>conftest.er1
11744  ac_status=$?
11745  grep -v '^ *+' conftest.er1 >conftest.err
11746  rm -f conftest.er1
11747  cat conftest.err >&5
11748  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749  (exit $ac_status); } && {
11750	 test -z "$ac_c_werror_flag" ||
11751	 test ! -s conftest.err
11752       } && test -s conftest$ac_exeext && {
11753	 test "$cross_compiling" = yes ||
11754	 $as_test_x conftest$ac_exeext
11755       }; then
11756  eval "$as_ac_var=yes"
11757else
11758  $as_echo "$as_me: failed program was:" >&5
11759sed 's/^/| /' conftest.$ac_ext >&5
11760
11761	eval "$as_ac_var=no"
11762fi
11763
11764rm -rf conftest.dSYM
11765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11766      conftest$ac_exeext conftest.$ac_ext
11767fi
11768ac_res=`eval 'as_val=${'$as_ac_var'}
11769		 $as_echo "$as_val"'`
11770	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11771$as_echo "$ac_res" >&6; }
11772as_val=`eval 'as_val=${'$as_ac_var'}
11773		 $as_echo "$as_val"'`
11774   if test "x$as_val" = x""yes; then
11775  cat >>confdefs.h <<_ACEOF
11776#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11777_ACEOF
11778
11779fi
11780done
11781
11782    LIBS="$cmu_save_LIBS"
11783  fi
11784
11785  { $as_echo "$as_me:$LINENO: checking KERBEROS_V4" >&5
11786$as_echo_n "checking KERBEROS_V4... " >&6; }
11787  if test "$krb4" != no; then
11788    { $as_echo "$as_me:$LINENO: result: enabled" >&5
11789$as_echo "enabled" >&6; }
11790    SASL_MECHS="$SASL_MECHS libkerberos4.la"
11791    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/kerberos4.c"
11792    SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
11793
11794cat >>confdefs.h <<\_ACEOF
11795#define STATIC_KERBEROS4 /**/
11796_ACEOF
11797
11798
11799cat >>confdefs.h <<\_ACEOF
11800#define HAVE_KRB /**/
11801_ACEOF
11802
11803    SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
11804  else
11805    { $as_echo "$as_me:$LINENO: result: disabled" >&5
11806$as_echo "disabled" >&6; }
11807  fi
11808
11809
11810{ $as_echo "$as_me:$LINENO: checking for crypt" >&5
11811$as_echo_n "checking for crypt... " >&6; }
11812if test "${ac_cv_func_crypt+set}" = set; then
11813  $as_echo_n "(cached) " >&6
11814else
11815  cat >conftest.$ac_ext <<_ACEOF
11816/* confdefs.h.  */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h.  */
11821/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
11822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11823#define crypt innocuous_crypt
11824
11825/* System header to define __stub macros and hopefully few prototypes,
11826    which can conflict with char crypt (); below.
11827    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11828    <limits.h> exists even on freestanding compilers.  */
11829
11830#ifdef __STDC__
11831# include <limits.h>
11832#else
11833# include <assert.h>
11834#endif
11835
11836#undef crypt
11837
11838/* Override any GCC internal prototype to avoid an error.
11839   Use char because int might match the return type of a GCC
11840   builtin and then its argument prototype would still apply.  */
11841#ifdef __cplusplus
11842extern "C"
11843#endif
11844char crypt ();
11845/* The GNU C library defines this for functions which it implements
11846    to always fail with ENOSYS.  Some functions are actually named
11847    something starting with __ and the normal name is an alias.  */
11848#if defined __stub_crypt || defined __stub___crypt
11849choke me
11850#endif
11851
11852int
11853main ()
11854{
11855return crypt ();
11856  ;
11857  return 0;
11858}
11859_ACEOF
11860rm -f conftest.$ac_objext conftest$ac_exeext
11861if { (ac_try="$ac_link"
11862case "(($ac_try" in
11863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864  *) ac_try_echo=$ac_try;;
11865esac
11866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11867$as_echo "$ac_try_echo") >&5
11868  (eval "$ac_link") 2>conftest.er1
11869  ac_status=$?
11870  grep -v '^ *+' conftest.er1 >conftest.err
11871  rm -f conftest.er1
11872  cat conftest.err >&5
11873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874  (exit $ac_status); } && {
11875	 test -z "$ac_c_werror_flag" ||
11876	 test ! -s conftest.err
11877       } && test -s conftest$ac_exeext && {
11878	 test "$cross_compiling" = yes ||
11879	 $as_test_x conftest$ac_exeext
11880       }; then
11881  ac_cv_func_crypt=yes
11882else
11883  $as_echo "$as_me: failed program was:" >&5
11884sed 's/^/| /' conftest.$ac_ext >&5
11885
11886	ac_cv_func_crypt=no
11887fi
11888
11889rm -rf conftest.dSYM
11890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11891      conftest$ac_exeext conftest.$ac_ext
11892fi
11893{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
11894$as_echo "$ac_cv_func_crypt" >&6; }
11895if test "x$ac_cv_func_crypt" = x""yes; then
11896  cmu_have_crypt=yes
11897else
11898  { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
11899$as_echo_n "checking for crypt in -lcrypt... " >&6; }
11900if test "${ac_cv_lib_crypt_crypt+set}" = set; then
11901  $as_echo_n "(cached) " >&6
11902else
11903  ac_check_lib_save_LIBS=$LIBS
11904LIBS="-lcrypt  $LIBS"
11905cat >conftest.$ac_ext <<_ACEOF
11906/* confdefs.h.  */
11907_ACEOF
11908cat confdefs.h >>conftest.$ac_ext
11909cat >>conftest.$ac_ext <<_ACEOF
11910/* end confdefs.h.  */
11911
11912/* Override any GCC internal prototype to avoid an error.
11913   Use char because int might match the return type of a GCC
11914   builtin and then its argument prototype would still apply.  */
11915#ifdef __cplusplus
11916extern "C"
11917#endif
11918char crypt ();
11919int
11920main ()
11921{
11922return crypt ();
11923  ;
11924  return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext conftest$ac_exeext
11928if { (ac_try="$ac_link"
11929case "(($ac_try" in
11930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931  *) ac_try_echo=$ac_try;;
11932esac
11933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11934$as_echo "$ac_try_echo") >&5
11935  (eval "$ac_link") 2>conftest.er1
11936  ac_status=$?
11937  grep -v '^ *+' conftest.er1 >conftest.err
11938  rm -f conftest.er1
11939  cat conftest.err >&5
11940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941  (exit $ac_status); } && {
11942	 test -z "$ac_c_werror_flag" ||
11943	 test ! -s conftest.err
11944       } && test -s conftest$ac_exeext && {
11945	 test "$cross_compiling" = yes ||
11946	 $as_test_x conftest$ac_exeext
11947       }; then
11948  ac_cv_lib_crypt_crypt=yes
11949else
11950  $as_echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
11953	ac_cv_lib_crypt_crypt=no
11954fi
11955
11956rm -rf conftest.dSYM
11957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11958      conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
11962$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11963if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
11964  LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
11965else
11966  cmu_have_crypt=no
11967fi
11968
11969fi
11970
11971
11972
11973
11974
11975# Check whether --enable-gssapi was given.
11976if test "${enable_gssapi+set}" = set; then
11977  enableval=$enable_gssapi; gssapi=$enableval
11978else
11979  gssapi=yes
11980fi
11981
11982
11983# Check whether --with-gss_impl was given.
11984if test "${with_gss_impl+set}" = set; then
11985  withval=$with_gss_impl; gss_impl=$withval
11986else
11987  gss_impl=auto
11988fi
11989
11990
11991if test "$gssapi" != no; then
11992  platform=
11993  case "${host}" in
11994    *-*-linux*)
11995      platform=__linux
11996      ;;
11997    *-*-hpux*)
11998      platform=__hpux
11999      ;;
12000    *-*-irix*)
12001      platform=__irix
12002      ;;
12003    *-*-solaris2*)
12004# When should we use __sunos?
12005      platform=__solaris
12006      ;;
12007    *-*-aix*)
12008###_AIX
12009      platform=__aix
12010      ;;
12011    *)
12012      { $as_echo "$as_me:$LINENO: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5
12013$as_echo "$as_me: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&2;}
12014      if test "$gss_impl" = "cybersafe"; then
12015        { { $as_echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5
12016$as_echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;}
12017   { (exit 1); exit 1; }; }
12018      fi
12019      ;;
12020  esac
12021
12022  cmu_saved_CPPFLAGS=$CPPFLAGS
12023
12024  if test -d ${gssapi}; then
12025    CPPFLAGS="$CPPFLAGS -I$gssapi/include"
12026# We want to keep -I in our CPPFLAGS, but only if we succeed
12027    cmu_saved_CPPFLAGS=$CPPFLAGS
12028### I am not sure how useful is this (and whether this is required at all
12029### especially when we have to provide two -L flags for new CyberSafe
12030    LDFLAGS="$LDFLAGS -L$gssapi/lib"
12031
12032    if test -n "$platform"; then
12033      if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
12034        CPPFLAGS="$CPPFLAGS -D$platform"
12035        if test -d "${gssapi}/appsec-sdk/include"; then
12036          CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
12037        fi
12038      fi
12039    fi
12040  fi
12041  if test "${ac_cv_header_gssapi_h+set}" = set; then
12042  { $as_echo "$as_me:$LINENO: checking for gssapi.h" >&5
12043$as_echo_n "checking for gssapi.h... " >&6; }
12044if test "${ac_cv_header_gssapi_h+set}" = set; then
12045  $as_echo_n "(cached) " >&6
12046fi
12047{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
12048$as_echo "$ac_cv_header_gssapi_h" >&6; }
12049else
12050  # Is the header compilable?
12051{ $as_echo "$as_me:$LINENO: checking gssapi.h usability" >&5
12052$as_echo_n "checking gssapi.h usability... " >&6; }
12053cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h.  */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h.  */
12059$ac_includes_default
12060#include <gssapi.h>
12061_ACEOF
12062rm -f conftest.$ac_objext
12063if { (ac_try="$ac_compile"
12064case "(($ac_try" in
12065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066  *) ac_try_echo=$ac_try;;
12067esac
12068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12069$as_echo "$ac_try_echo") >&5
12070  (eval "$ac_compile") 2>conftest.er1
12071  ac_status=$?
12072  grep -v '^ *+' conftest.er1 >conftest.err
12073  rm -f conftest.er1
12074  cat conftest.err >&5
12075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076  (exit $ac_status); } && {
12077	 test -z "$ac_c_werror_flag" ||
12078	 test ! -s conftest.err
12079       } && test -s conftest.$ac_objext; then
12080  ac_header_compiler=yes
12081else
12082  $as_echo "$as_me: failed program was:" >&5
12083sed 's/^/| /' conftest.$ac_ext >&5
12084
12085	ac_header_compiler=no
12086fi
12087
12088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12090$as_echo "$ac_header_compiler" >&6; }
12091
12092# Is the header present?
12093{ $as_echo "$as_me:$LINENO: checking gssapi.h presence" >&5
12094$as_echo_n "checking gssapi.h presence... " >&6; }
12095cat >conftest.$ac_ext <<_ACEOF
12096/* confdefs.h.  */
12097_ACEOF
12098cat confdefs.h >>conftest.$ac_ext
12099cat >>conftest.$ac_ext <<_ACEOF
12100/* end confdefs.h.  */
12101#include <gssapi.h>
12102_ACEOF
12103if { (ac_try="$ac_cpp conftest.$ac_ext"
12104case "(($ac_try" in
12105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106  *) ac_try_echo=$ac_try;;
12107esac
12108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12109$as_echo "$ac_try_echo") >&5
12110  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12111  ac_status=$?
12112  grep -v '^ *+' conftest.er1 >conftest.err
12113  rm -f conftest.er1
12114  cat conftest.err >&5
12115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116  (exit $ac_status); } >/dev/null && {
12117	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12118	 test ! -s conftest.err
12119       }; then
12120  ac_header_preproc=yes
12121else
12122  $as_echo "$as_me: failed program was:" >&5
12123sed 's/^/| /' conftest.$ac_ext >&5
12124
12125  ac_header_preproc=no
12126fi
12127
12128rm -f conftest.err conftest.$ac_ext
12129{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12130$as_echo "$ac_header_preproc" >&6; }
12131
12132# So?  What about this header?
12133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12134  yes:no: )
12135    { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
12136$as_echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12137    { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
12138$as_echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
12139    ac_header_preproc=yes
12140    ;;
12141  no:yes:* )
12142    { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
12143$as_echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
12144    { $as_echo "$as_me:$LINENO: WARNING: gssapi.h:     check for missing prerequisite headers?" >&5
12145$as_echo "$as_me: WARNING: gssapi.h:     check for missing prerequisite headers?" >&2;}
12146    { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
12147$as_echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
12148    { $as_echo "$as_me:$LINENO: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&5
12149$as_echo "$as_me: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12150    { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
12151$as_echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
12152    { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
12153$as_echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
12154
12155    ;;
12156esac
12157{ $as_echo "$as_me:$LINENO: checking for gssapi.h" >&5
12158$as_echo_n "checking for gssapi.h... " >&6; }
12159if test "${ac_cv_header_gssapi_h+set}" = set; then
12160  $as_echo_n "(cached) " >&6
12161else
12162  ac_cv_header_gssapi_h=$ac_header_preproc
12163fi
12164{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
12165$as_echo "$ac_cv_header_gssapi_h" >&6; }
12166
12167fi
12168if test "x$ac_cv_header_gssapi_h" = x""yes; then
12169  :
12170else
12171  if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
12172  { $as_echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
12173$as_echo_n "checking for gssapi/gssapi.h... " >&6; }
12174if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
12175  $as_echo_n "(cached) " >&6
12176fi
12177{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
12178$as_echo "$ac_cv_header_gssapi_gssapi_h" >&6; }
12179else
12180  # Is the header compilable?
12181{ $as_echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5
12182$as_echo_n "checking gssapi/gssapi.h usability... " >&6; }
12183cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h.  */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
12188/* end confdefs.h.  */
12189$ac_includes_default
12190#include <gssapi/gssapi.h>
12191_ACEOF
12192rm -f conftest.$ac_objext
12193if { (ac_try="$ac_compile"
12194case "(($ac_try" in
12195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196  *) ac_try_echo=$ac_try;;
12197esac
12198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12199$as_echo "$ac_try_echo") >&5
12200  (eval "$ac_compile") 2>conftest.er1
12201  ac_status=$?
12202  grep -v '^ *+' conftest.er1 >conftest.err
12203  rm -f conftest.er1
12204  cat conftest.err >&5
12205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206  (exit $ac_status); } && {
12207	 test -z "$ac_c_werror_flag" ||
12208	 test ! -s conftest.err
12209       } && test -s conftest.$ac_objext; then
12210  ac_header_compiler=yes
12211else
12212  $as_echo "$as_me: failed program was:" >&5
12213sed 's/^/| /' conftest.$ac_ext >&5
12214
12215	ac_header_compiler=no
12216fi
12217
12218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12220$as_echo "$ac_header_compiler" >&6; }
12221
12222# Is the header present?
12223{ $as_echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5
12224$as_echo_n "checking gssapi/gssapi.h presence... " >&6; }
12225cat >conftest.$ac_ext <<_ACEOF
12226/* confdefs.h.  */
12227_ACEOF
12228cat confdefs.h >>conftest.$ac_ext
12229cat >>conftest.$ac_ext <<_ACEOF
12230/* end confdefs.h.  */
12231#include <gssapi/gssapi.h>
12232_ACEOF
12233if { (ac_try="$ac_cpp conftest.$ac_ext"
12234case "(($ac_try" in
12235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236  *) ac_try_echo=$ac_try;;
12237esac
12238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239$as_echo "$ac_try_echo") >&5
12240  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12241  ac_status=$?
12242  grep -v '^ *+' conftest.er1 >conftest.err
12243  rm -f conftest.er1
12244  cat conftest.err >&5
12245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246  (exit $ac_status); } >/dev/null && {
12247	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12248	 test ! -s conftest.err
12249       }; then
12250  ac_header_preproc=yes
12251else
12252  $as_echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255  ac_header_preproc=no
12256fi
12257
12258rm -f conftest.err conftest.$ac_ext
12259{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12260$as_echo "$ac_header_preproc" >&6; }
12261
12262# So?  What about this header?
12263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12264  yes:no: )
12265    { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
12266$as_echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12267    { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&5
12268$as_echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&2;}
12269    ac_header_preproc=yes
12270    ;;
12271  no:yes:* )
12272    { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5
12273$as_echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;}
12274    { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h:     check for missing prerequisite headers?" >&5
12275$as_echo "$as_me: WARNING: gssapi/gssapi.h:     check for missing prerequisite headers?" >&2;}
12276    { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&5
12277$as_echo "$as_me: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&2;}
12278    { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h:     section \"Present But Cannot Be Compiled\"" >&5
12279$as_echo "$as_me: WARNING: gssapi/gssapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12280    { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
12281$as_echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
12282    { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&5
12283$as_echo "$as_me: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&2;}
12284
12285    ;;
12286esac
12287{ $as_echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
12288$as_echo_n "checking for gssapi/gssapi.h... " >&6; }
12289if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
12290  $as_echo_n "(cached) " >&6
12291else
12292  ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
12293fi
12294{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
12295$as_echo "$ac_cv_header_gssapi_gssapi_h" >&6; }
12296
12297fi
12298if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then
12299  :
12300else
12301  { $as_echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5
12302$as_echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
12303fi
12304
12305
12306fi
12307
12308
12309
12310for ac_header in gssapi/gssapi_ext.h
12311do
12312as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12314  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12315$as_echo_n "checking for $ac_header... " >&6; }
12316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12317  $as_echo_n "(cached) " >&6
12318fi
12319ac_res=`eval 'as_val=${'$as_ac_Header'}
12320		 $as_echo "$as_val"'`
12321	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12322$as_echo "$ac_res" >&6; }
12323else
12324  # Is the header compilable?
12325{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12326$as_echo_n "checking $ac_header usability... " >&6; }
12327cat >conftest.$ac_ext <<_ACEOF
12328/* confdefs.h.  */
12329_ACEOF
12330cat confdefs.h >>conftest.$ac_ext
12331cat >>conftest.$ac_ext <<_ACEOF
12332/* end confdefs.h.  */
12333$ac_includes_default
12334#include <$ac_header>
12335_ACEOF
12336rm -f conftest.$ac_objext
12337if { (ac_try="$ac_compile"
12338case "(($ac_try" in
12339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340  *) ac_try_echo=$ac_try;;
12341esac
12342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12343$as_echo "$ac_try_echo") >&5
12344  (eval "$ac_compile") 2>conftest.er1
12345  ac_status=$?
12346  grep -v '^ *+' conftest.er1 >conftest.err
12347  rm -f conftest.er1
12348  cat conftest.err >&5
12349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350  (exit $ac_status); } && {
12351	 test -z "$ac_c_werror_flag" ||
12352	 test ! -s conftest.err
12353       } && test -s conftest.$ac_objext; then
12354  ac_header_compiler=yes
12355else
12356  $as_echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
12359	ac_header_compiler=no
12360fi
12361
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12364$as_echo "$ac_header_compiler" >&6; }
12365
12366# Is the header present?
12367{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12368$as_echo_n "checking $ac_header presence... " >&6; }
12369cat >conftest.$ac_ext <<_ACEOF
12370/* confdefs.h.  */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h.  */
12375#include <$ac_header>
12376_ACEOF
12377if { (ac_try="$ac_cpp conftest.$ac_ext"
12378case "(($ac_try" in
12379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380  *) ac_try_echo=$ac_try;;
12381esac
12382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12383$as_echo "$ac_try_echo") >&5
12384  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12385  ac_status=$?
12386  grep -v '^ *+' conftest.er1 >conftest.err
12387  rm -f conftest.er1
12388  cat conftest.err >&5
12389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390  (exit $ac_status); } >/dev/null && {
12391	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12392	 test ! -s conftest.err
12393       }; then
12394  ac_header_preproc=yes
12395else
12396  $as_echo "$as_me: failed program was:" >&5
12397sed 's/^/| /' conftest.$ac_ext >&5
12398
12399  ac_header_preproc=no
12400fi
12401
12402rm -f conftest.err conftest.$ac_ext
12403{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12404$as_echo "$ac_header_preproc" >&6; }
12405
12406# So?  What about this header?
12407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12408  yes:no: )
12409    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12410$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12411    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12412$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12413    ac_header_preproc=yes
12414    ;;
12415  no:yes:* )
12416    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12417$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12418    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12419$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12420    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12421$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12422    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12423$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12424    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12425$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12426    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12427$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12428
12429    ;;
12430esac
12431{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12432$as_echo_n "checking for $ac_header... " >&6; }
12433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12434  $as_echo_n "(cached) " >&6
12435else
12436  eval "$as_ac_Header=\$ac_header_preproc"
12437fi
12438ac_res=`eval 'as_val=${'$as_ac_Header'}
12439		 $as_echo "$as_val"'`
12440	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12441$as_echo "$ac_res" >&6; }
12442
12443fi
12444as_val=`eval 'as_val=${'$as_ac_Header'}
12445		 $as_echo "$as_val"'`
12446   if test "x$as_val" = x""yes; then
12447  cat >>confdefs.h <<_ACEOF
12448#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12449_ACEOF
12450
12451fi
12452
12453done
12454
12455  CPPFLAGS=$cmu_saved_CPPFLAGS
12456
12457fi
12458
12459if test "$gssapi" != no; then
12460  if test "$ac_cv_header_gssapi_h" = "yes" -o "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
12461
12462cat >>confdefs.h <<\_ACEOF
12463#define HAVE_GSSAPI_H /**/
12464_ACEOF
12465
12466  fi
12467
12468  # We need to find out which gssapi implementation we are
12469  # using. Supported alternatives are: MIT Kerberos 5,
12470  # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
12471  # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
12472  # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
12473  #
12474  # The choice is reflected in GSSAPIBASE_LIBS
12475
12476
12477{ $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
12478$as_echo_n "checking for res_search in -lresolv... " >&6; }
12479if test "${ac_cv_lib_resolv_res_search+set}" = set; then
12480  $as_echo_n "(cached) " >&6
12481else
12482  ac_check_lib_save_LIBS=$LIBS
12483LIBS="-lresolv  $LIBS"
12484cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h.  */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h.  */
12490
12491/* Override any GCC internal prototype to avoid an error.
12492   Use char because int might match the return type of a GCC
12493   builtin and then its argument prototype would still apply.  */
12494#ifdef __cplusplus
12495extern "C"
12496#endif
12497char res_search ();
12498int
12499main ()
12500{
12501return res_search ();
12502  ;
12503  return 0;
12504}
12505_ACEOF
12506rm -f conftest.$ac_objext conftest$ac_exeext
12507if { (ac_try="$ac_link"
12508case "(($ac_try" in
12509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510  *) ac_try_echo=$ac_try;;
12511esac
12512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12513$as_echo "$ac_try_echo") >&5
12514  (eval "$ac_link") 2>conftest.er1
12515  ac_status=$?
12516  grep -v '^ *+' conftest.er1 >conftest.err
12517  rm -f conftest.er1
12518  cat conftest.err >&5
12519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520  (exit $ac_status); } && {
12521	 test -z "$ac_c_werror_flag" ||
12522	 test ! -s conftest.err
12523       } && test -s conftest$ac_exeext && {
12524	 test "$cross_compiling" = yes ||
12525	 $as_test_x conftest$ac_exeext
12526       }; then
12527  ac_cv_lib_resolv_res_search=yes
12528else
12529  $as_echo "$as_me: failed program was:" >&5
12530sed 's/^/| /' conftest.$ac_ext >&5
12531
12532	ac_cv_lib_resolv_res_search=no
12533fi
12534
12535rm -rf conftest.dSYM
12536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12537      conftest$ac_exeext conftest.$ac_ext
12538LIBS=$ac_check_lib_save_LIBS
12539fi
12540{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
12541$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
12542if test "x$ac_cv_lib_resolv_res_search" = x""yes; then
12543  cat >>confdefs.h <<_ACEOF
12544#define HAVE_LIBRESOLV 1
12545_ACEOF
12546
12547  LIBS="-lresolv $LIBS"
12548
12549fi
12550
12551  if test -d ${gssapi}; then
12552     gssapi_dir="${gssapi}/lib"
12553     GSSAPIBASE_LIBS="-L$gssapi_dir"
12554     GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
12555  else
12556     # FIXME: This is only used for building cyrus, and then only as
12557     # a real hack.  it needs to be fixed.
12558     gssapi_dir="/usr/local/lib"
12559  fi
12560
12561  # Check a full link against the Heimdal libraries.
12562  # If this fails, check a full link against the MIT libraries.
12563  # If this fails, check a full link against the CyberSafe libraries.
12564  # If this fails, check a full link against the Solaris 8 and up libgss.
12565
12566  if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
12567    gss_failed=0
12568    { $as_echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
12569$as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; }
12570if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
12571  $as_echo_n "(cached) " >&6
12572else
12573  ac_check_lib_save_LIBS=$LIBS
12574LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
12575cat >conftest.$ac_ext <<_ACEOF
12576/* confdefs.h.  */
12577_ACEOF
12578cat confdefs.h >>conftest.$ac_ext
12579cat >>conftest.$ac_ext <<_ACEOF
12580/* end confdefs.h.  */
12581
12582/* Override any GCC internal prototype to avoid an error.
12583   Use char because int might match the return type of a GCC
12584   builtin and then its argument prototype would still apply.  */
12585#ifdef __cplusplus
12586extern "C"
12587#endif
12588char gss_unwrap ();
12589int
12590main ()
12591{
12592return gss_unwrap ();
12593  ;
12594  return 0;
12595}
12596_ACEOF
12597rm -f conftest.$ac_objext conftest$ac_exeext
12598if { (ac_try="$ac_link"
12599case "(($ac_try" in
12600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601  *) ac_try_echo=$ac_try;;
12602esac
12603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12604$as_echo "$ac_try_echo") >&5
12605  (eval "$ac_link") 2>conftest.er1
12606  ac_status=$?
12607  grep -v '^ *+' conftest.er1 >conftest.err
12608  rm -f conftest.er1
12609  cat conftest.err >&5
12610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611  (exit $ac_status); } && {
12612	 test -z "$ac_c_werror_flag" ||
12613	 test ! -s conftest.err
12614       } && test -s conftest$ac_exeext && {
12615	 test "$cross_compiling" = yes ||
12616	 $as_test_x conftest$ac_exeext
12617       }; then
12618  ac_cv_lib_gssapi_gss_unwrap=yes
12619else
12620  $as_echo "$as_me: failed program was:" >&5
12621sed 's/^/| /' conftest.$ac_ext >&5
12622
12623	ac_cv_lib_gssapi_gss_unwrap=no
12624fi
12625
12626rm -rf conftest.dSYM
12627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12628      conftest$ac_exeext conftest.$ac_ext
12629LIBS=$ac_check_lib_save_LIBS
12630fi
12631{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
12632$as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; }
12633if test "x$ac_cv_lib_gssapi_gss_unwrap" = x""yes; then
12634  gss_impl="heimdal"
12635else
12636  gss_failed=1
12637fi
12638
12639    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
12640      gss_impl="failed"
12641    fi
12642  fi
12643
12644  if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
12645    # check for libkrb5support first
12646    { $as_echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
12647$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
12648if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
12649  $as_echo_n "(cached) " >&6
12650else
12651  ac_check_lib_save_LIBS=$LIBS
12652LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
12653cat >conftest.$ac_ext <<_ACEOF
12654/* confdefs.h.  */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h.  */
12659
12660/* Override any GCC internal prototype to avoid an error.
12661   Use char because int might match the return type of a GCC
12662   builtin and then its argument prototype would still apply.  */
12663#ifdef __cplusplus
12664extern "C"
12665#endif
12666char krb5int_getspecific ();
12667int
12668main ()
12669{
12670return krb5int_getspecific ();
12671  ;
12672  return 0;
12673}
12674_ACEOF
12675rm -f conftest.$ac_objext conftest$ac_exeext
12676if { (ac_try="$ac_link"
12677case "(($ac_try" in
12678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679  *) ac_try_echo=$ac_try;;
12680esac
12681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12682$as_echo "$ac_try_echo") >&5
12683  (eval "$ac_link") 2>conftest.er1
12684  ac_status=$?
12685  grep -v '^ *+' conftest.er1 >conftest.err
12686  rm -f conftest.er1
12687  cat conftest.err >&5
12688  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689  (exit $ac_status); } && {
12690	 test -z "$ac_c_werror_flag" ||
12691	 test ! -s conftest.err
12692       } && test -s conftest$ac_exeext && {
12693	 test "$cross_compiling" = yes ||
12694	 $as_test_x conftest$ac_exeext
12695       }; then
12696  ac_cv_lib_krb5support_krb5int_getspecific=yes
12697else
12698  $as_echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701	ac_cv_lib_krb5support_krb5int_getspecific=no
12702fi
12703
12704rm -rf conftest.dSYM
12705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12706      conftest$ac_exeext conftest.$ac_ext
12707LIBS=$ac_check_lib_save_LIBS
12708fi
12709{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
12710$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
12711if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = x""yes; then
12712  K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
12713fi
12714
12715
12716    gss_failed=0
12717    { $as_echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
12718$as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; }
12719if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
12720  $as_echo_n "(cached) " >&6
12721else
12722  ac_check_lib_save_LIBS=$LIBS
12723LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
12724cat >conftest.$ac_ext <<_ACEOF
12725/* confdefs.h.  */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
12729/* end confdefs.h.  */
12730
12731/* Override any GCC internal prototype to avoid an error.
12732   Use char because int might match the return type of a GCC
12733   builtin and then its argument prototype would still apply.  */
12734#ifdef __cplusplus
12735extern "C"
12736#endif
12737char gss_unwrap ();
12738int
12739main ()
12740{
12741return gss_unwrap ();
12742  ;
12743  return 0;
12744}
12745_ACEOF
12746rm -f conftest.$ac_objext conftest$ac_exeext
12747if { (ac_try="$ac_link"
12748case "(($ac_try" in
12749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750  *) ac_try_echo=$ac_try;;
12751esac
12752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12753$as_echo "$ac_try_echo") >&5
12754  (eval "$ac_link") 2>conftest.er1
12755  ac_status=$?
12756  grep -v '^ *+' conftest.er1 >conftest.err
12757  rm -f conftest.er1
12758  cat conftest.err >&5
12759  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760  (exit $ac_status); } && {
12761	 test -z "$ac_c_werror_flag" ||
12762	 test ! -s conftest.err
12763       } && test -s conftest$ac_exeext && {
12764	 test "$cross_compiling" = yes ||
12765	 $as_test_x conftest$ac_exeext
12766       }; then
12767  ac_cv_lib_gssapi_krb5_gss_unwrap=yes
12768else
12769  $as_echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
12772	ac_cv_lib_gssapi_krb5_gss_unwrap=no
12773fi
12774
12775rm -rf conftest.dSYM
12776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12777      conftest$ac_exeext conftest.$ac_ext
12778LIBS=$ac_check_lib_save_LIBS
12779fi
12780{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
12781$as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
12782if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = x""yes; then
12783  gss_impl="mit"
12784else
12785  gss_failed=1
12786fi
12787
12788    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
12789      gss_impl="failed"
12790    fi
12791  fi
12792
12793  # For Cybersafe one has to set a platform define in order to make compilation work
12794  if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
12795
12796    cmu_saved_CPPFLAGS=$CPPFLAGS
12797    cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
12798# FIXME - Note that the libraries are in .../lib64 for 64bit kernels
12799    if test -d "${gssapi}/appsec-rt/lib"; then
12800      GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
12801    fi
12802    CPPFLAGS="$CPPFLAGS -D$platform"
12803    if test -d "${gssapi}/appsec-sdk/include"; then
12804      CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
12805    fi
12806
12807    gss_failed=0
12808
12809# Check for CyberSafe with two libraries first, than fall back to a single
12810# library (older CyberSafe)
12811
12812    unset ac_cv_lib_gss_csf_gss_acq_user
12813    { $as_echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
12814$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
12815if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
12816  $as_echo_n "(cached) " >&6
12817else
12818  ac_check_lib_save_LIBS=$LIBS
12819LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
12820cat >conftest.$ac_ext <<_ACEOF
12821/* confdefs.h.  */
12822_ACEOF
12823cat confdefs.h >>conftest.$ac_ext
12824cat >>conftest.$ac_ext <<_ACEOF
12825/* end confdefs.h.  */
12826
12827/* Override any GCC internal prototype to avoid an error.
12828   Use char because int might match the return type of a GCC
12829   builtin and then its argument prototype would still apply.  */
12830#ifdef __cplusplus
12831extern "C"
12832#endif
12833char csf_gss_acq_user ();
12834int
12835main ()
12836{
12837return csf_gss_acq_user ();
12838  ;
12839  return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
12843if { (ac_try="$ac_link"
12844case "(($ac_try" in
12845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846  *) ac_try_echo=$ac_try;;
12847esac
12848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12849$as_echo "$ac_try_echo") >&5
12850  (eval "$ac_link") 2>conftest.er1
12851  ac_status=$?
12852  grep -v '^ *+' conftest.er1 >conftest.err
12853  rm -f conftest.er1
12854  cat conftest.err >&5
12855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856  (exit $ac_status); } && {
12857	 test -z "$ac_c_werror_flag" ||
12858	 test ! -s conftest.err
12859       } && test -s conftest$ac_exeext && {
12860	 test "$cross_compiling" = yes ||
12861	 $as_test_x conftest$ac_exeext
12862       }; then
12863  ac_cv_lib_gss_csf_gss_acq_user=yes
12864else
12865  $as_echo "$as_me: failed program was:" >&5
12866sed 's/^/| /' conftest.$ac_ext >&5
12867
12868	ac_cv_lib_gss_csf_gss_acq_user=no
12869fi
12870
12871rm -rf conftest.dSYM
12872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12873      conftest$ac_exeext conftest.$ac_ext
12874LIBS=$ac_check_lib_save_LIBS
12875fi
12876{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
12877$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
12878if test "x$ac_cv_lib_gss_csf_gss_acq_user" = x""yes; then
12879  gss_impl="cybersafe03"
12880else
12881  unset ac_cv_lib_gss_csf_gss_acq_user;
12882                  { $as_echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
12883$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
12884if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
12885  $as_echo_n "(cached) " >&6
12886else
12887  ac_check_lib_save_LIBS=$LIBS
12888LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
12889cat >conftest.$ac_ext <<_ACEOF
12890/* confdefs.h.  */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h.  */
12895
12896/* Override any GCC internal prototype to avoid an error.
12897   Use char because int might match the return type of a GCC
12898   builtin and then its argument prototype would still apply.  */
12899#ifdef __cplusplus
12900extern "C"
12901#endif
12902char csf_gss_acq_user ();
12903int
12904main ()
12905{
12906return csf_gss_acq_user ();
12907  ;
12908  return 0;
12909}
12910_ACEOF
12911rm -f conftest.$ac_objext conftest$ac_exeext
12912if { (ac_try="$ac_link"
12913case "(($ac_try" in
12914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915  *) ac_try_echo=$ac_try;;
12916esac
12917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12918$as_echo "$ac_try_echo") >&5
12919  (eval "$ac_link") 2>conftest.er1
12920  ac_status=$?
12921  grep -v '^ *+' conftest.er1 >conftest.err
12922  rm -f conftest.er1
12923  cat conftest.err >&5
12924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925  (exit $ac_status); } && {
12926	 test -z "$ac_c_werror_flag" ||
12927	 test ! -s conftest.err
12928       } && test -s conftest$ac_exeext && {
12929	 test "$cross_compiling" = yes ||
12930	 $as_test_x conftest$ac_exeext
12931       }; then
12932  ac_cv_lib_gss_csf_gss_acq_user=yes
12933else
12934  $as_echo "$as_me: failed program was:" >&5
12935sed 's/^/| /' conftest.$ac_ext >&5
12936
12937	ac_cv_lib_gss_csf_gss_acq_user=no
12938fi
12939
12940rm -rf conftest.dSYM
12941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12942      conftest$ac_exeext conftest.$ac_ext
12943LIBS=$ac_check_lib_save_LIBS
12944fi
12945{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
12946$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
12947if test "x$ac_cv_lib_gss_csf_gss_acq_user" = x""yes; then
12948  gss_impl="cybersafe"
12949else
12950  gss_failed=1
12951fi
12952
12953fi
12954
12955
12956    if test "$gss_failed" = "1"; then
12957# Restore variables
12958      GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
12959      CPPFLAGS=$cmu_saved_CPPFLAGS
12960
12961      if test "$gss_impl" != "auto"; then
12962        gss_impl="failed"
12963      fi
12964    fi
12965  fi
12966
12967  if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
12968    gss_failed=0
12969    { $as_echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
12970$as_echo_n "checking for gss_unwrap in -lgss... " >&6; }
12971if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
12972  $as_echo_n "(cached) " >&6
12973else
12974  ac_check_lib_save_LIBS=$LIBS
12975LIBS="-lgss -lgss $LIBS"
12976cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h.  */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h.  */
12982
12983/* Override any GCC internal prototype to avoid an error.
12984   Use char because int might match the return type of a GCC
12985   builtin and then its argument prototype would still apply.  */
12986#ifdef __cplusplus
12987extern "C"
12988#endif
12989char gss_unwrap ();
12990int
12991main ()
12992{
12993return gss_unwrap ();
12994  ;
12995  return 0;
12996}
12997_ACEOF
12998rm -f conftest.$ac_objext conftest$ac_exeext
12999if { (ac_try="$ac_link"
13000case "(($ac_try" in
13001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002  *) ac_try_echo=$ac_try;;
13003esac
13004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13005$as_echo "$ac_try_echo") >&5
13006  (eval "$ac_link") 2>conftest.er1
13007  ac_status=$?
13008  grep -v '^ *+' conftest.er1 >conftest.err
13009  rm -f conftest.er1
13010  cat conftest.err >&5
13011  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012  (exit $ac_status); } && {
13013	 test -z "$ac_c_werror_flag" ||
13014	 test ! -s conftest.err
13015       } && test -s conftest$ac_exeext && {
13016	 test "$cross_compiling" = yes ||
13017	 $as_test_x conftest$ac_exeext
13018       }; then
13019  ac_cv_lib_gss_gss_unwrap=yes
13020else
13021  $as_echo "$as_me: failed program was:" >&5
13022sed 's/^/| /' conftest.$ac_ext >&5
13023
13024	ac_cv_lib_gss_gss_unwrap=no
13025fi
13026
13027rm -rf conftest.dSYM
13028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13029      conftest$ac_exeext conftest.$ac_ext
13030LIBS=$ac_check_lib_save_LIBS
13031fi
13032{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
13033$as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; }
13034if test "x$ac_cv_lib_gss_gss_unwrap" = x""yes; then
13035  gss_impl="seam"
13036else
13037  gss_failed=1
13038fi
13039
13040    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
13041      gss_impl="failed"
13042    fi
13043  fi
13044
13045  if test "$gss_impl" = "mit"; then
13046    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
13047    GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
13048  elif test "$gss_impl" = "heimdal"; then
13049    CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
13050    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
13051    GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}"
13052  elif test "$gss_impl" = "cybersafe03"; then
13053# Version of CyberSafe with two libraries
13054    CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
13055    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
13056    # there is no static libgss for CyberSafe
13057    GSSAPIBASE_STATIC_LIBS=none
13058  elif test "$gss_impl" = "cybersafe"; then
13059    CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
13060    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
13061    # there is no static libgss for CyberSafe
13062    GSSAPIBASE_STATIC_LIBS=none
13063  elif test "$gss_impl" = "seam"; then
13064    GSSAPIBASE_LIBS=-lgss
13065    # there is no static libgss on Solaris 8 and up
13066    GSSAPIBASE_STATIC_LIBS=none
13067  elif test "$gss_impl" = "failed"; then
13068    gssapi="no"
13069    GSSAPIBASE_LIBS=
13070    GSSAPIBASE_STATIC_LIBS=
13071    { $as_echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
13072$as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
13073  else
13074    gssapi="no"
13075    GSSAPIBASE_LIBS=
13076    GSSAPIBASE_STATIC_LIBS=
13077    { $as_echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
13078$as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
13079  fi
13080fi
13081
13082#
13083# Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
13084# in gssapi\rfckrb5.h
13085#
13086if test "$gssapi" != "no"; then
13087  if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
13088    cat >conftest.$ac_ext <<_ACEOF
13089/* confdefs.h.  */
13090_ACEOF
13091cat confdefs.h >>conftest.$ac_ext
13092cat >>conftest.$ac_ext <<_ACEOF
13093/* end confdefs.h.  */
13094#include <gssapi/gssapi.h>
13095                  #ifdef GSS_C_NT_HOSTBASED_SERVICE
13096                    hostbased_service_gss_nt_yes
13097                  #endif
13098_ACEOF
13099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13100  $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
13101
13102cat >>confdefs.h <<\_ACEOF
13103#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/
13104_ACEOF
13105
13106else
13107  { $as_echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
13108$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
13109fi
13110rm -f conftest*
13111
13112
13113  elif test "$ac_cv_header_gssapi_h" = "yes"; then
13114    cat >conftest.$ac_ext <<_ACEOF
13115/* confdefs.h.  */
13116_ACEOF
13117cat confdefs.h >>conftest.$ac_ext
13118cat >>conftest.$ac_ext <<_ACEOF
13119/* end confdefs.h.  */
13120#include <gssapi.h>
13121
13122_ACEOF
13123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13124  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
13125
13126cat >>confdefs.h <<\_ACEOF
13127#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/
13128_ACEOF
13129
13130fi
13131rm -f conftest*
13132
13133  elif test "$ac_cv_header_gssapi_gssapi_h"; then
13134    cat >conftest.$ac_ext <<_ACEOF
13135/* confdefs.h.  */
13136_ACEOF
13137cat confdefs.h >>conftest.$ac_ext
13138cat >>conftest.$ac_ext <<_ACEOF
13139/* end confdefs.h.  */
13140#include <gssapi/gssapi.h>
13141
13142_ACEOF
13143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13144  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
13145
13146cat >>confdefs.h <<\_ACEOF
13147#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/
13148_ACEOF
13149
13150fi
13151rm -f conftest*
13152
13153  fi
13154
13155  if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
13156    cat >conftest.$ac_ext <<_ACEOF
13157/* confdefs.h.  */
13158_ACEOF
13159cat confdefs.h >>conftest.$ac_ext
13160cat >>conftest.$ac_ext <<_ACEOF
13161/* end confdefs.h.  */
13162#include <gssapi/gssapi.h>
13163                  #ifdef GSS_C_NT_USER_NAME
13164                   user_name_yes_gss_nt
13165                  #endif
13166_ACEOF
13167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13168  $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
13169
13170cat >>confdefs.h <<\_ACEOF
13171#define HAVE_GSS_C_NT_USER_NAME /**/
13172_ACEOF
13173
13174else
13175  { $as_echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
13176$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
13177fi
13178rm -f conftest*
13179
13180  elif test "$ac_cv_header_gssapi_h" = "yes"; then
13181    cat >conftest.$ac_ext <<_ACEOF
13182/* confdefs.h.  */
13183_ACEOF
13184cat confdefs.h >>conftest.$ac_ext
13185cat >>conftest.$ac_ext <<_ACEOF
13186/* end confdefs.h.  */
13187#include <gssapi.h>
13188
13189_ACEOF
13190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13191  $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
13192
13193cat >>confdefs.h <<\_ACEOF
13194#define HAVE_GSS_C_NT_USER_NAME /**/
13195_ACEOF
13196
13197fi
13198rm -f conftest*
13199
13200    cat >conftest.$ac_ext <<_ACEOF
13201/* confdefs.h.  */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h.  */
13206#include <gssapi.h>
13207
13208_ACEOF
13209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13210  $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
13211  rfc5587=yes
13212fi
13213rm -f conftest*
13214
13215    cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h.  */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h.  */
13221#include <gssapi.h>
13222
13223_ACEOF
13224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13225  $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then
13226  rfc5801=yes
13227fi
13228rm -f conftest*
13229
13230  elif test "$ac_cv_header_gssapi_gssapi_h"; then
13231    cat >conftest.$ac_ext <<_ACEOF
13232/* confdefs.h.  */
13233_ACEOF
13234cat confdefs.h >>conftest.$ac_ext
13235cat >>conftest.$ac_ext <<_ACEOF
13236/* end confdefs.h.  */
13237#include <gssapi/gssapi.h>
13238
13239_ACEOF
13240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13241  $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
13242
13243cat >>confdefs.h <<\_ACEOF
13244#define HAVE_GSS_C_NT_USER_NAME /**/
13245_ACEOF
13246
13247fi
13248rm -f conftest*
13249
13250    cat >conftest.$ac_ext <<_ACEOF
13251/* confdefs.h.  */
13252_ACEOF
13253cat confdefs.h >>conftest.$ac_ext
13254cat >>conftest.$ac_ext <<_ACEOF
13255/* end confdefs.h.  */
13256#include <gssapi/gssapi.h>
13257
13258_ACEOF
13259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13260  $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
13261  rfc5587=yes
13262fi
13263rm -f conftest*
13264
13265    cat >conftest.$ac_ext <<_ACEOF
13266/* confdefs.h.  */
13267_ACEOF
13268cat confdefs.h >>conftest.$ac_ext
13269cat >>conftest.$ac_ext <<_ACEOF
13270/* end confdefs.h.  */
13271#include <gssapi.h>
13272
13273_ACEOF
13274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13275  $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then
13276  rfc5801=yes
13277fi
13278rm -f conftest*
13279
13280  fi
13281fi
13282
13283GSSAPI_LIBS=""
13284{ $as_echo "$as_me:$LINENO: checking GSSAPI" >&5
13285$as_echo_n "checking GSSAPI... " >&6; }
13286if test "$gssapi" != no; then
13287  { $as_echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
13288$as_echo "with implementation ${gss_impl}" >&6; }
13289  { $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
13290$as_echo_n "checking for res_search in -lresolv... " >&6; }
13291if test "${ac_cv_lib_resolv_res_search+set}" = set; then
13292  $as_echo_n "(cached) " >&6
13293else
13294  ac_check_lib_save_LIBS=$LIBS
13295LIBS="-lresolv  $LIBS"
13296cat >conftest.$ac_ext <<_ACEOF
13297/* confdefs.h.  */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
13301/* end confdefs.h.  */
13302
13303/* Override any GCC internal prototype to avoid an error.
13304   Use char because int might match the return type of a GCC
13305   builtin and then its argument prototype would still apply.  */
13306#ifdef __cplusplus
13307extern "C"
13308#endif
13309char res_search ();
13310int
13311main ()
13312{
13313return res_search ();
13314  ;
13315  return 0;
13316}
13317_ACEOF
13318rm -f conftest.$ac_objext conftest$ac_exeext
13319if { (ac_try="$ac_link"
13320case "(($ac_try" in
13321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322  *) ac_try_echo=$ac_try;;
13323esac
13324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13325$as_echo "$ac_try_echo") >&5
13326  (eval "$ac_link") 2>conftest.er1
13327  ac_status=$?
13328  grep -v '^ *+' conftest.er1 >conftest.err
13329  rm -f conftest.er1
13330  cat conftest.err >&5
13331  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332  (exit $ac_status); } && {
13333	 test -z "$ac_c_werror_flag" ||
13334	 test ! -s conftest.err
13335       } && test -s conftest$ac_exeext && {
13336	 test "$cross_compiling" = yes ||
13337	 $as_test_x conftest$ac_exeext
13338       }; then
13339  ac_cv_lib_resolv_res_search=yes
13340else
13341  $as_echo "$as_me: failed program was:" >&5
13342sed 's/^/| /' conftest.$ac_ext >&5
13343
13344	ac_cv_lib_resolv_res_search=no
13345fi
13346
13347rm -rf conftest.dSYM
13348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13349      conftest$ac_exeext conftest.$ac_ext
13350LIBS=$ac_check_lib_save_LIBS
13351fi
13352{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
13353$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
13354if test "x$ac_cv_lib_resolv_res_search" = x""yes; then
13355  GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
13356fi
13357
13358  SASL_MECHS="$SASL_MECHS libgssapiv2.la"
13359  SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
13360  SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gssapi.c"
13361  if test "$rfc5587" = "yes" -a "$rfc5801" = "yes"; then
13362    SASL_MECHS="$SASL_MECHS libgs2.la"
13363    SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
13364    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gs2.c"
13365  fi
13366
13367  cmu_save_LIBS="$LIBS"
13368  LIBS="$LIBS $GSSAPIBASE_LIBS"
13369
13370for ac_func in gsskrb5_register_acceptor_identity
13371do
13372as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13373{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13374$as_echo_n "checking for $ac_func... " >&6; }
13375if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13376  $as_echo_n "(cached) " >&6
13377else
13378  cat >conftest.$ac_ext <<_ACEOF
13379/* confdefs.h.  */
13380_ACEOF
13381cat confdefs.h >>conftest.$ac_ext
13382cat >>conftest.$ac_ext <<_ACEOF
13383/* end confdefs.h.  */
13384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13385   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13386#define $ac_func innocuous_$ac_func
13387
13388/* System header to define __stub macros and hopefully few prototypes,
13389    which can conflict with char $ac_func (); below.
13390    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13391    <limits.h> exists even on freestanding compilers.  */
13392
13393#ifdef __STDC__
13394# include <limits.h>
13395#else
13396# include <assert.h>
13397#endif
13398
13399#undef $ac_func
13400
13401/* Override any GCC internal prototype to avoid an error.
13402   Use char because int might match the return type of a GCC
13403   builtin and then its argument prototype would still apply.  */
13404#ifdef __cplusplus
13405extern "C"
13406#endif
13407char $ac_func ();
13408/* The GNU C library defines this for functions which it implements
13409    to always fail with ENOSYS.  Some functions are actually named
13410    something starting with __ and the normal name is an alias.  */
13411#if defined __stub_$ac_func || defined __stub___$ac_func
13412choke me
13413#endif
13414
13415int
13416main ()
13417{
13418return $ac_func ();
13419  ;
13420  return 0;
13421}
13422_ACEOF
13423rm -f conftest.$ac_objext conftest$ac_exeext
13424if { (ac_try="$ac_link"
13425case "(($ac_try" in
13426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427  *) ac_try_echo=$ac_try;;
13428esac
13429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13430$as_echo "$ac_try_echo") >&5
13431  (eval "$ac_link") 2>conftest.er1
13432  ac_status=$?
13433  grep -v '^ *+' conftest.er1 >conftest.err
13434  rm -f conftest.er1
13435  cat conftest.err >&5
13436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437  (exit $ac_status); } && {
13438	 test -z "$ac_c_werror_flag" ||
13439	 test ! -s conftest.err
13440       } && test -s conftest$ac_exeext && {
13441	 test "$cross_compiling" = yes ||
13442	 $as_test_x conftest$ac_exeext
13443       }; then
13444  eval "$as_ac_var=yes"
13445else
13446  $as_echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449	eval "$as_ac_var=no"
13450fi
13451
13452rm -rf conftest.dSYM
13453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13454      conftest$ac_exeext conftest.$ac_ext
13455fi
13456ac_res=`eval 'as_val=${'$as_ac_var'}
13457		 $as_echo "$as_val"'`
13458	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13459$as_echo "$ac_res" >&6; }
13460as_val=`eval 'as_val=${'$as_ac_var'}
13461		 $as_echo "$as_val"'`
13462   if test "x$as_val" = x""yes; then
13463  cat >>confdefs.h <<_ACEOF
13464#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13465_ACEOF
13466
13467fi
13468done
13469
13470
13471for ac_func in gss_decapsulate_token
13472do
13473as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13474{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13475$as_echo_n "checking for $ac_func... " >&6; }
13476if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13477  $as_echo_n "(cached) " >&6
13478else
13479  cat >conftest.$ac_ext <<_ACEOF
13480/* confdefs.h.  */
13481_ACEOF
13482cat confdefs.h >>conftest.$ac_ext
13483cat >>conftest.$ac_ext <<_ACEOF
13484/* end confdefs.h.  */
13485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13486   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13487#define $ac_func innocuous_$ac_func
13488
13489/* System header to define __stub macros and hopefully few prototypes,
13490    which can conflict with char $ac_func (); below.
13491    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13492    <limits.h> exists even on freestanding compilers.  */
13493
13494#ifdef __STDC__
13495# include <limits.h>
13496#else
13497# include <assert.h>
13498#endif
13499
13500#undef $ac_func
13501
13502/* Override any GCC internal prototype to avoid an error.
13503   Use char because int might match the return type of a GCC
13504   builtin and then its argument prototype would still apply.  */
13505#ifdef __cplusplus
13506extern "C"
13507#endif
13508char $ac_func ();
13509/* The GNU C library defines this for functions which it implements
13510    to always fail with ENOSYS.  Some functions are actually named
13511    something starting with __ and the normal name is an alias.  */
13512#if defined __stub_$ac_func || defined __stub___$ac_func
13513choke me
13514#endif
13515
13516int
13517main ()
13518{
13519return $ac_func ();
13520  ;
13521  return 0;
13522}
13523_ACEOF
13524rm -f conftest.$ac_objext conftest$ac_exeext
13525if { (ac_try="$ac_link"
13526case "(($ac_try" in
13527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528  *) ac_try_echo=$ac_try;;
13529esac
13530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13531$as_echo "$ac_try_echo") >&5
13532  (eval "$ac_link") 2>conftest.er1
13533  ac_status=$?
13534  grep -v '^ *+' conftest.er1 >conftest.err
13535  rm -f conftest.er1
13536  cat conftest.err >&5
13537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538  (exit $ac_status); } && {
13539	 test -z "$ac_c_werror_flag" ||
13540	 test ! -s conftest.err
13541       } && test -s conftest$ac_exeext && {
13542	 test "$cross_compiling" = yes ||
13543	 $as_test_x conftest$ac_exeext
13544       }; then
13545  eval "$as_ac_var=yes"
13546else
13547  $as_echo "$as_me: failed program was:" >&5
13548sed 's/^/| /' conftest.$ac_ext >&5
13549
13550	eval "$as_ac_var=no"
13551fi
13552
13553rm -rf conftest.dSYM
13554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13555      conftest$ac_exeext conftest.$ac_ext
13556fi
13557ac_res=`eval 'as_val=${'$as_ac_var'}
13558		 $as_echo "$as_val"'`
13559	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13560$as_echo "$ac_res" >&6; }
13561as_val=`eval 'as_val=${'$as_ac_var'}
13562		 $as_echo "$as_val"'`
13563   if test "x$as_val" = x""yes; then
13564  cat >>confdefs.h <<_ACEOF
13565#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13566_ACEOF
13567
13568fi
13569done
13570
13571
13572for ac_func in gss_encapsulate_token
13573do
13574as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13575{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13576$as_echo_n "checking for $ac_func... " >&6; }
13577if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13578  $as_echo_n "(cached) " >&6
13579else
13580  cat >conftest.$ac_ext <<_ACEOF
13581/* confdefs.h.  */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
13585/* end confdefs.h.  */
13586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13587   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13588#define $ac_func innocuous_$ac_func
13589
13590/* System header to define __stub macros and hopefully few prototypes,
13591    which can conflict with char $ac_func (); below.
13592    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13593    <limits.h> exists even on freestanding compilers.  */
13594
13595#ifdef __STDC__
13596# include <limits.h>
13597#else
13598# include <assert.h>
13599#endif
13600
13601#undef $ac_func
13602
13603/* Override any GCC internal prototype to avoid an error.
13604   Use char because int might match the return type of a GCC
13605   builtin and then its argument prototype would still apply.  */
13606#ifdef __cplusplus
13607extern "C"
13608#endif
13609char $ac_func ();
13610/* The GNU C library defines this for functions which it implements
13611    to always fail with ENOSYS.  Some functions are actually named
13612    something starting with __ and the normal name is an alias.  */
13613#if defined __stub_$ac_func || defined __stub___$ac_func
13614choke me
13615#endif
13616
13617int
13618main ()
13619{
13620return $ac_func ();
13621  ;
13622  return 0;
13623}
13624_ACEOF
13625rm -f conftest.$ac_objext conftest$ac_exeext
13626if { (ac_try="$ac_link"
13627case "(($ac_try" in
13628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629  *) ac_try_echo=$ac_try;;
13630esac
13631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13632$as_echo "$ac_try_echo") >&5
13633  (eval "$ac_link") 2>conftest.er1
13634  ac_status=$?
13635  grep -v '^ *+' conftest.er1 >conftest.err
13636  rm -f conftest.er1
13637  cat conftest.err >&5
13638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639  (exit $ac_status); } && {
13640	 test -z "$ac_c_werror_flag" ||
13641	 test ! -s conftest.err
13642       } && test -s conftest$ac_exeext && {
13643	 test "$cross_compiling" = yes ||
13644	 $as_test_x conftest$ac_exeext
13645       }; then
13646  eval "$as_ac_var=yes"
13647else
13648  $as_echo "$as_me: failed program was:" >&5
13649sed 's/^/| /' conftest.$ac_ext >&5
13650
13651	eval "$as_ac_var=no"
13652fi
13653
13654rm -rf conftest.dSYM
13655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13656      conftest$ac_exeext conftest.$ac_ext
13657fi
13658ac_res=`eval 'as_val=${'$as_ac_var'}
13659		 $as_echo "$as_val"'`
13660	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13661$as_echo "$ac_res" >&6; }
13662as_val=`eval 'as_val=${'$as_ac_var'}
13663		 $as_echo "$as_val"'`
13664   if test "x$as_val" = x""yes; then
13665  cat >>confdefs.h <<_ACEOF
13666#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13667_ACEOF
13668
13669fi
13670done
13671
13672
13673for ac_func in gss_oid_equal
13674do
13675as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13676{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13677$as_echo_n "checking for $ac_func... " >&6; }
13678if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13679  $as_echo_n "(cached) " >&6
13680else
13681  cat >conftest.$ac_ext <<_ACEOF
13682/* confdefs.h.  */
13683_ACEOF
13684cat confdefs.h >>conftest.$ac_ext
13685cat >>conftest.$ac_ext <<_ACEOF
13686/* end confdefs.h.  */
13687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13688   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13689#define $ac_func innocuous_$ac_func
13690
13691/* System header to define __stub macros and hopefully few prototypes,
13692    which can conflict with char $ac_func (); below.
13693    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13694    <limits.h> exists even on freestanding compilers.  */
13695
13696#ifdef __STDC__
13697# include <limits.h>
13698#else
13699# include <assert.h>
13700#endif
13701
13702#undef $ac_func
13703
13704/* Override any GCC internal prototype to avoid an error.
13705   Use char because int might match the return type of a GCC
13706   builtin and then its argument prototype would still apply.  */
13707#ifdef __cplusplus
13708extern "C"
13709#endif
13710char $ac_func ();
13711/* The GNU C library defines this for functions which it implements
13712    to always fail with ENOSYS.  Some functions are actually named
13713    something starting with __ and the normal name is an alias.  */
13714#if defined __stub_$ac_func || defined __stub___$ac_func
13715choke me
13716#endif
13717
13718int
13719main ()
13720{
13721return $ac_func ();
13722  ;
13723  return 0;
13724}
13725_ACEOF
13726rm -f conftest.$ac_objext conftest$ac_exeext
13727if { (ac_try="$ac_link"
13728case "(($ac_try" in
13729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730  *) ac_try_echo=$ac_try;;
13731esac
13732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13733$as_echo "$ac_try_echo") >&5
13734  (eval "$ac_link") 2>conftest.er1
13735  ac_status=$?
13736  grep -v '^ *+' conftest.er1 >conftest.err
13737  rm -f conftest.er1
13738  cat conftest.err >&5
13739  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740  (exit $ac_status); } && {
13741	 test -z "$ac_c_werror_flag" ||
13742	 test ! -s conftest.err
13743       } && test -s conftest$ac_exeext && {
13744	 test "$cross_compiling" = yes ||
13745	 $as_test_x conftest$ac_exeext
13746       }; then
13747  eval "$as_ac_var=yes"
13748else
13749  $as_echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752	eval "$as_ac_var=no"
13753fi
13754
13755rm -rf conftest.dSYM
13756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13757      conftest$ac_exeext conftest.$ac_ext
13758fi
13759ac_res=`eval 'as_val=${'$as_ac_var'}
13760		 $as_echo "$as_val"'`
13761	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13762$as_echo "$ac_res" >&6; }
13763as_val=`eval 'as_val=${'$as_ac_var'}
13764		 $as_echo "$as_val"'`
13765   if test "x$as_val" = x""yes; then
13766  cat >>confdefs.h <<_ACEOF
13767#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13768_ACEOF
13769
13770fi
13771done
13772
13773  LIBS="$cmu_save_LIBS"
13774
13775  cmu_save_LIBS="$LIBS"
13776  LIBS="$LIBS $GSSAPIBASE_LIBS"
13777
13778for ac_func in gss_get_name_attribute
13779do
13780as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13781{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13782$as_echo_n "checking for $ac_func... " >&6; }
13783if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13784  $as_echo_n "(cached) " >&6
13785else
13786  cat >conftest.$ac_ext <<_ACEOF
13787/* confdefs.h.  */
13788_ACEOF
13789cat confdefs.h >>conftest.$ac_ext
13790cat >>conftest.$ac_ext <<_ACEOF
13791/* end confdefs.h.  */
13792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13793   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13794#define $ac_func innocuous_$ac_func
13795
13796/* System header to define __stub macros and hopefully few prototypes,
13797    which can conflict with char $ac_func (); below.
13798    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13799    <limits.h> exists even on freestanding compilers.  */
13800
13801#ifdef __STDC__
13802# include <limits.h>
13803#else
13804# include <assert.h>
13805#endif
13806
13807#undef $ac_func
13808
13809/* Override any GCC internal prototype to avoid an error.
13810   Use char because int might match the return type of a GCC
13811   builtin and then its argument prototype would still apply.  */
13812#ifdef __cplusplus
13813extern "C"
13814#endif
13815char $ac_func ();
13816/* The GNU C library defines this for functions which it implements
13817    to always fail with ENOSYS.  Some functions are actually named
13818    something starting with __ and the normal name is an alias.  */
13819#if defined __stub_$ac_func || defined __stub___$ac_func
13820choke me
13821#endif
13822
13823int
13824main ()
13825{
13826return $ac_func ();
13827  ;
13828  return 0;
13829}
13830_ACEOF
13831rm -f conftest.$ac_objext conftest$ac_exeext
13832if { (ac_try="$ac_link"
13833case "(($ac_try" in
13834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835  *) ac_try_echo=$ac_try;;
13836esac
13837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13838$as_echo "$ac_try_echo") >&5
13839  (eval "$ac_link") 2>conftest.er1
13840  ac_status=$?
13841  grep -v '^ *+' conftest.er1 >conftest.err
13842  rm -f conftest.er1
13843  cat conftest.err >&5
13844  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845  (exit $ac_status); } && {
13846	 test -z "$ac_c_werror_flag" ||
13847	 test ! -s conftest.err
13848       } && test -s conftest$ac_exeext && {
13849	 test "$cross_compiling" = yes ||
13850	 $as_test_x conftest$ac_exeext
13851       }; then
13852  eval "$as_ac_var=yes"
13853else
13854  $as_echo "$as_me: failed program was:" >&5
13855sed 's/^/| /' conftest.$ac_ext >&5
13856
13857	eval "$as_ac_var=no"
13858fi
13859
13860rm -rf conftest.dSYM
13861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13862      conftest$ac_exeext conftest.$ac_ext
13863fi
13864ac_res=`eval 'as_val=${'$as_ac_var'}
13865		 $as_echo "$as_val"'`
13866	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13867$as_echo "$ac_res" >&6; }
13868as_val=`eval 'as_val=${'$as_ac_var'}
13869		 $as_echo "$as_val"'`
13870   if test "x$as_val" = x""yes; then
13871  cat >>confdefs.h <<_ACEOF
13872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13873_ACEOF
13874
13875fi
13876done
13877
13878  LIBS="$cmu_save_LIBS"
13879
13880  cmu_save_LIBS="$LIBS"
13881  LIBS="$LIBS $GSSAPIBASE_LIBS"
13882  { $as_echo "$as_me:$LINENO: checking for SPNEGO support in GSSAPI libraries" >&5
13883$as_echo_n "checking for SPNEGO support in GSSAPI libraries... " >&6; }
13884  if test "$cross_compiling" = yes; then
13885  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13887{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13888See \`config.log' for more details." >&5
13889$as_echo "$as_me: error: cannot run test program while cross compiling
13890See \`config.log' for more details." >&2;}
13891   { (exit 1); exit 1; }; }; }
13892else
13893  cat >conftest.$ac_ext <<_ACEOF
13894/* confdefs.h.  */
13895_ACEOF
13896cat confdefs.h >>conftest.$ac_ext
13897cat >>conftest.$ac_ext <<_ACEOF
13898/* end confdefs.h.  */
13899
13900#ifdef HAVE_GSSAPI_H
13901#include <gssapi.h>
13902#else
13903#include <gssapi/gssapi.h>
13904#endif
13905
13906int main(void)
13907{
13908    gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
13909    gss_OID_set mech_set;
13910    OM_uint32 min_stat;
13911    int have_spnego = 0;
13912
13913    if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) {
13914	gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego);
13915	gss_release_oid_set(&min_stat, &mech_set);
13916    }
13917
13918    return (!have_spnego);  // 0 = success, 1 = failure
13919}
13920
13921_ACEOF
13922rm -f conftest$ac_exeext
13923if { (ac_try="$ac_link"
13924case "(($ac_try" in
13925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926  *) ac_try_echo=$ac_try;;
13927esac
13928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13929$as_echo "$ac_try_echo") >&5
13930  (eval "$ac_link") 2>&5
13931  ac_status=$?
13932  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13934  { (case "(($ac_try" in
13935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936  *) ac_try_echo=$ac_try;;
13937esac
13938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13939$as_echo "$ac_try_echo") >&5
13940  (eval "$ac_try") 2>&5
13941  ac_status=$?
13942  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943  (exit $ac_status); }; }; then
13944
13945cat >>confdefs.h <<\_ACEOF
13946#define HAVE_GSS_SPNEGO /**/
13947_ACEOF
13948
13949	{ $as_echo "$as_me:$LINENO: result: yes" >&5
13950$as_echo "yes" >&6; }
13951else
13952  $as_echo "$as_me: program exited with status $ac_status" >&5
13953$as_echo "$as_me: failed program was:" >&5
13954sed 's/^/| /' conftest.$ac_ext >&5
13955
13956( exit $ac_status )
13957{ $as_echo "$as_me:$LINENO: result: no" >&5
13958$as_echo "no" >&6; }
13959fi
13960rm -rf conftest.dSYM
13961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13962fi
13963
13964
13965  LIBS="$cmu_save_LIBS"
13966
13967else
13968  { $as_echo "$as_me:$LINENO: result: disabled" >&5
13969$as_echo "disabled" >&6; }
13970fi
13971
13972
13973
13974
13975if test "$gssapi" != "no"; then
13976
13977cat >>confdefs.h <<\_ACEOF
13978#define STATIC_GSSAPIV2 /**/
13979_ACEOF
13980
13981  mutex_default="no"
13982  if test "$gss_impl" = "mit"; then
13983     mutex_default="yes"
13984  fi
13985  { $as_echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
13986$as_echo_n "checking to use mutexes aroung GSS calls... " >&6; }
13987  # Check whether --enable-gss_mutexes was given.
13988if test "${enable_gss_mutexes+set}" = set; then
13989  enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
13990else
13991  use_gss_mutexes=$mutex_default
13992fi
13993
13994  if test $use_gss_mutexes = "yes"; then
13995
13996cat >>confdefs.h <<\_ACEOF
13997#define GSS_USE_MUTEXES /**/
13998_ACEOF
13999
14000  fi
14001  { $as_echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
14002$as_echo "$use_gss_mutexes" >&6; }
14003fi
14004
14005
14006
14007
14008 # Check whether --enable-plain was given.
14009if test "${enable_plain+set}" = set; then
14010  enableval=$enable_plain; plain=$enableval
14011else
14012  plain=yes
14013fi
14014
14015
14016 PLAIN_LIBS=""
14017 if test "$plain" != no; then
14018    if test "$cmu_have_crypt" = yes; then
14019    PLAIN_LIBS=$LIB_CRYPT
14020  fi
14021 fi
14022
14023
14024 { $as_echo "$as_me:$LINENO: checking PLAIN" >&5
14025$as_echo_n "checking PLAIN... " >&6; }
14026 if test "$plain" != no; then
14027  { $as_echo "$as_me:$LINENO: result: enabled" >&5
14028$as_echo "enabled" >&6; }
14029  SASL_MECHS="$SASL_MECHS libplain.la"
14030  if test "$enable_static" = yes; then
14031    SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
14032    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/plain.c"
14033
14034cat >>confdefs.h <<\_ACEOF
14035#define STATIC_PLAIN /**/
14036_ACEOF
14037
14038  fi
14039 else
14040  { $as_echo "$as_me:$LINENO: result: disabled" >&5
14041$as_echo "disabled" >&6; }
14042 fi
14043
14044
14045# Check whether --enable-anon was given.
14046if test "${enable_anon+set}" = set; then
14047  enableval=$enable_anon; anon=$enableval
14048else
14049  anon=yes
14050fi
14051
14052
14053{ $as_echo "$as_me:$LINENO: checking ANONYMOUS" >&5
14054$as_echo_n "checking ANONYMOUS... " >&6; }
14055if test "$anon" != no; then
14056  { $as_echo "$as_me:$LINENO: result: enabled" >&5
14057$as_echo "enabled" >&6; }
14058  SASL_MECHS="$SASL_MECHS libanonymous.la"
14059  if test "$enable_static" = yes; then
14060    SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
14061    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/anonymous.c"
14062
14063cat >>confdefs.h <<\_ACEOF
14064#define STATIC_ANONYMOUS /**/
14065_ACEOF
14066
14067  fi
14068else
14069  { $as_echo "$as_me:$LINENO: result: disabled" >&5
14070$as_echo "disabled" >&6; }
14071fi
14072
14073# Check whether --enable-login was given.
14074if test "${enable_login+set}" = set; then
14075  enableval=$enable_login; login=$enableval
14076else
14077  login=no
14078fi
14079
14080
14081{ $as_echo "$as_me:$LINENO: checking LOGIN" >&5
14082$as_echo_n "checking LOGIN... " >&6; }
14083if test "$login" != no; then
14084  { $as_echo "$as_me:$LINENO: result: enabled" >&5
14085$as_echo "enabled" >&6; }
14086  SASL_MECHS="$SASL_MECHS liblogin.la"
14087  if test "$enable_static" = yes; then
14088    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/login.c"
14089    SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
14090
14091cat >>confdefs.h <<\_ACEOF
14092#define STATIC_LOGIN /**/
14093_ACEOF
14094
14095  fi
14096else
14097  { $as_echo "$as_me:$LINENO: result: disabled" >&5
14098$as_echo "disabled" >&6; }
14099fi
14100
14101# Check whether --enable-ntlm was given.
14102if test "${enable_ntlm+set}" = set; then
14103  enableval=$enable_ntlm; ntlm=$enableval
14104else
14105  ntlm=no
14106fi
14107
14108
14109if test "$with_openssl" = no; then
14110  { $as_echo "$as_me:$LINENO: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
14111$as_echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
14112  ntlm=no
14113fi
14114
14115{ $as_echo "$as_me:$LINENO: checking NTLM" >&5
14116$as_echo_n "checking NTLM... " >&6; }
14117if test "$ntlm" != no; then
14118  { $as_echo "$as_me:$LINENO: result: enabled" >&5
14119$as_echo "enabled" >&6; }
14120  NTLM_LIBS="-lcrypto $LIB_RSAREF"
14121
14122
14123  SASL_MECHS="$SASL_MECHS libntlm.la"
14124  if test "$enable_static" = yes; then
14125    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/ntlm.c"
14126    SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
14127
14128cat >>confdefs.h <<\_ACEOF
14129#define STATIC_NTLM /**/
14130_ACEOF
14131
14132  fi
14133else
14134  { $as_echo "$as_me:$LINENO: result: disabled" >&5
14135$as_echo "disabled" >&6; }
14136fi
14137
14138# Check whether --enable-passdss was given.
14139if test "${enable_passdss+set}" = set; then
14140  enableval=$enable_passdss; passdss=$enableval
14141else
14142  passdss=no
14143fi
14144
14145
14146if test "$with_openssl" = no; then
14147  { $as_echo "$as_me:$LINENO: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
14148$as_echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
14149  passdss=no
14150fi
14151
14152{ $as_echo "$as_me:$LINENO: checking PASSDSS" >&5
14153$as_echo_n "checking PASSDSS... " >&6; }
14154if test "$passdss" != no; then
14155  { $as_echo "$as_me:$LINENO: result: enabled" >&5
14156$as_echo "enabled" >&6; }
14157  PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
14158
14159
14160  SASL_MECHS="$SASL_MECHS libpassdss.la"
14161  if test "$enable_static" = yes; then
14162    SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
14163    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/passdss.c"
14164
14165cat >>confdefs.h <<\_ACEOF
14166#define STATIC_PASSDSS /**/
14167_ACEOF
14168
14169  fi
14170else
14171  { $as_echo "$as_me:$LINENO: result: disabled" >&5
14172$as_echo "disabled" >&6; }
14173fi
14174
14175
14176# make the option show up so people don't whine that it is only in the
14177# saslauthd configure script --help
14178
14179# Check whether --with-ldap was given.
14180if test "${with_ldap+set}" = set; then
14181  withval=$with_ldap;
14182else
14183  with_ldap=no
14184fi
14185
14186
14187
14188
14189# Check whether --enable-sql was given.
14190if test "${enable_sql+set}" = set; then
14191  enableval=$enable_sql; sql=$enableval
14192else
14193  sql=no
14194fi
14195
14196
14197{ $as_echo "$as_me:$LINENO: checking SQL" >&5
14198$as_echo_n "checking SQL... " >&6; }
14199if test "$sql" != no; then
14200  { $as_echo "$as_me:$LINENO: result: enabled" >&5
14201$as_echo "enabled" >&6; }
14202  SASL_MECHS="$SASL_MECHS libsql.la"
14203  if test "$enable_static" = yes; then
14204    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/sql.c"
14205    SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
14206
14207cat >>confdefs.h <<\_ACEOF
14208#define STATIC_SQL /**/
14209_ACEOF
14210
14211  fi
14212else
14213  { $as_echo "$as_me:$LINENO: result: disabled" >&5
14214$as_echo "disabled" >&6; }
14215fi
14216
14217
14218# Check whether --with-mysql was given.
14219if test "${with_mysql+set}" = set; then
14220  withval=$with_mysql; with_mysql=$withval
14221else
14222  with_mysql=$sql
14223fi
14224
14225
14226# find location of library
14227# presuming if one given then correct
14228if test "${with_mysql}" = "yes"; then
14229  with_mysql=notfound
14230  for mysqlloc in lib/mysql lib mysql/lib
14231  do
14232    if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
14233      with_mysql="${prefix}"
14234      break
14235    elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
14236      with_mysql="/usr/local"
14237      break
14238    elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
14239      with_mysql="/usr"
14240      break
14241    fi
14242  done
14243fi
14244
14245LIB_MYSQL=""
14246
14247case "$with_mysql" in
14248    no) true;;
14249    notfound) { $as_echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
14250$as_echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
14251    *)
14252     if test -d ${with_mysql}/lib/mysql; then
14253
14254  # this is CMU ADD LIBPATH TO
14255  if test "$andrew_cv_runpath_switch" = "none" ; then
14256	LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
14257  else
14258	LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib/mysql"
14259  fi
14260
14261     elif test -d ${with_mysql}/mysql/lib; then
14262
14263  # this is CMU ADD LIBPATH TO
14264  if test "$andrew_cv_runpath_switch" = "none" ; then
14265	LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
14266  else
14267	LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/mysql/lib"
14268  fi
14269
14270     elif test -d ${with_mysql}/lib; then
14271
14272  # this is CMU ADD LIBPATH TO
14273  if test "$andrew_cv_runpath_switch" = "none" ; then
14274	LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
14275  else
14276	LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib"
14277  fi
14278
14279     else
14280
14281  # this is CMU ADD LIBPATH TO
14282  if test "$andrew_cv_runpath_switch" = "none" ; then
14283	LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
14284  else
14285	LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}"
14286  fi
14287
14288     fi
14289
14290     LIB_MYSQL_DIR=$LIB_MYSQL
14291     LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
14292
14293     if test -d ${with_mysql}/include/mysql; then
14294         CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
14295     elif test -d ${with_mysql}/mysql/include; then
14296         CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
14297     elif test -d ${with_mysql}/include; then
14298         CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
14299     else
14300         CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
14301     fi
14302
14303       save_LDFLAGS=$LDFLAGS
14304       LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
14305       { $as_echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
14306$as_echo_n "checking for mysql_select_db in -lmysqlclient... " >&6; }
14307if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
14308  $as_echo_n "(cached) " >&6
14309else
14310  ac_check_lib_save_LIBS=$LIBS
14311LIBS="-lmysqlclient  $LIBS"
14312cat >conftest.$ac_ext <<_ACEOF
14313/* confdefs.h.  */
14314_ACEOF
14315cat confdefs.h >>conftest.$ac_ext
14316cat >>conftest.$ac_ext <<_ACEOF
14317/* end confdefs.h.  */
14318
14319/* Override any GCC internal prototype to avoid an error.
14320   Use char because int might match the return type of a GCC
14321   builtin and then its argument prototype would still apply.  */
14322#ifdef __cplusplus
14323extern "C"
14324#endif
14325char mysql_select_db ();
14326int
14327main ()
14328{
14329return mysql_select_db ();
14330  ;
14331  return 0;
14332}
14333_ACEOF
14334rm -f conftest.$ac_objext conftest$ac_exeext
14335if { (ac_try="$ac_link"
14336case "(($ac_try" in
14337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338  *) ac_try_echo=$ac_try;;
14339esac
14340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14341$as_echo "$ac_try_echo") >&5
14342  (eval "$ac_link") 2>conftest.er1
14343  ac_status=$?
14344  grep -v '^ *+' conftest.er1 >conftest.err
14345  rm -f conftest.er1
14346  cat conftest.err >&5
14347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348  (exit $ac_status); } && {
14349	 test -z "$ac_c_werror_flag" ||
14350	 test ! -s conftest.err
14351       } && test -s conftest$ac_exeext && {
14352	 test "$cross_compiling" = yes ||
14353	 $as_test_x conftest$ac_exeext
14354       }; then
14355  ac_cv_lib_mysqlclient_mysql_select_db=yes
14356else
14357  $as_echo "$as_me: failed program was:" >&5
14358sed 's/^/| /' conftest.$ac_ext >&5
14359
14360	ac_cv_lib_mysqlclient_mysql_select_db=no
14361fi
14362
14363rm -rf conftest.dSYM
14364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14365      conftest$ac_exeext conftest.$ac_ext
14366LIBS=$ac_check_lib_save_LIBS
14367fi
14368{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
14369$as_echo "$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
14370if test "x$ac_cv_lib_mysqlclient_mysql_select_db" = x""yes; then
14371
14372cat >>confdefs.h <<\_ACEOF
14373#define HAVE_MYSQL /**/
14374_ACEOF
14375
14376else
14377  { $as_echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
14378$as_echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
14379	    with_mysql=no
14380fi
14381
14382       LDFLAGS=$save_LDFLAGS;;
14383
14384esac
14385
14386
14387
14388# Check whether --with-pgsql was given.
14389if test "${with_pgsql+set}" = set; then
14390  withval=$with_pgsql; with_pgsql=$withval
14391else
14392  with_pgsql=$sql
14393fi
14394
14395
14396# find location of library
14397# presuing if one given then correct
14398if test "${with_pgsql}" = "yes"; then
14399  with_pgsql=notfound
14400  for pgsqlloc in lib/pgsql lib pgsql/lib
14401  do
14402    if test -f ${prefix}/${pgsqlloc}/libpq.a; then
14403      with_pgsql="${prefix}"
14404      break
14405    elif test -f /usr/local/${pgsqlloc}/libpq.a; then
14406      with_pgsql="/usr/local"
14407      break
14408    elif test -f /usr/${pgsqlloc}/libpq.a; then
14409      with_pgsql="/usr"
14410      break
14411    fi
14412  done
14413fi
14414
14415LIB_PGSQL=""
14416
14417case "$with_pgsql" in
14418    no) true;;
14419    notfound) { $as_echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
14420$as_echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
14421    *)
14422     if test -d ${with_pgsql}/lib/pgsql; then
14423
14424  # this is CMU ADD LIBPATH TO
14425  if test "$andrew_cv_runpath_switch" = "none" ; then
14426	LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
14427  else
14428	LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_cv_runpath_switch${with_pgsql}/lib/pgsql"
14429  fi
14430
14431     elif test -d ${with_pgsql}/pgsql/lib; then
14432
14433  # this is CMU ADD LIBPATH TO
14434  if test "$andrew_cv_runpath_switch" = "none" ; then
14435	LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
14436  else
14437	LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_cv_runpath_switch${with_pgsql}/pgsql/lib"
14438  fi
14439
14440     elif test -d ${with_pgsql}/lib; then
14441
14442  # this is CMU ADD LIBPATH TO
14443  if test "$andrew_cv_runpath_switch" = "none" ; then
14444	LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
14445  else
14446	LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_cv_runpath_switch${with_pgsql}/lib"
14447  fi
14448
14449     else
14450
14451  # this is CMU ADD LIBPATH TO
14452  if test "$andrew_cv_runpath_switch" = "none" ; then
14453	LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
14454  else
14455	LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_cv_runpath_switch${with_pgsql}"
14456  fi
14457
14458     fi
14459
14460     LIB_PGSQL_DIR=$LIB_PGSQL
14461     LIB_PGSQL="$LIB_PGSQL -lpq"
14462
14463     if test -d ${with_pgsql}/include/pgsql; then
14464         CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
14465     elif test -d ${with_pgsql}/pgsql/include; then
14466         CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
14467     elif test -d ${with_pgsql}/include; then
14468         CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
14469     else
14470         CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
14471     fi
14472
14473
14474       save_LDFLAGS=$LDFLAGS
14475       LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
14476       { $as_echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
14477$as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
14478if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
14479  $as_echo_n "(cached) " >&6
14480else
14481  ac_check_lib_save_LIBS=$LIBS
14482LIBS="-lpq  $LIBS"
14483cat >conftest.$ac_ext <<_ACEOF
14484/* confdefs.h.  */
14485_ACEOF
14486cat confdefs.h >>conftest.$ac_ext
14487cat >>conftest.$ac_ext <<_ACEOF
14488/* end confdefs.h.  */
14489
14490/* Override any GCC internal prototype to avoid an error.
14491   Use char because int might match the return type of a GCC
14492   builtin and then its argument prototype would still apply.  */
14493#ifdef __cplusplus
14494extern "C"
14495#endif
14496char PQsetdbLogin ();
14497int
14498main ()
14499{
14500return PQsetdbLogin ();
14501  ;
14502  return 0;
14503}
14504_ACEOF
14505rm -f conftest.$ac_objext conftest$ac_exeext
14506if { (ac_try="$ac_link"
14507case "(($ac_try" in
14508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509  *) ac_try_echo=$ac_try;;
14510esac
14511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14512$as_echo "$ac_try_echo") >&5
14513  (eval "$ac_link") 2>conftest.er1
14514  ac_status=$?
14515  grep -v '^ *+' conftest.er1 >conftest.err
14516  rm -f conftest.er1
14517  cat conftest.err >&5
14518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519  (exit $ac_status); } && {
14520	 test -z "$ac_c_werror_flag" ||
14521	 test ! -s conftest.err
14522       } && test -s conftest$ac_exeext && {
14523	 test "$cross_compiling" = yes ||
14524	 $as_test_x conftest$ac_exeext
14525       }; then
14526  ac_cv_lib_pq_PQsetdbLogin=yes
14527else
14528  $as_echo "$as_me: failed program was:" >&5
14529sed 's/^/| /' conftest.$ac_ext >&5
14530
14531	ac_cv_lib_pq_PQsetdbLogin=no
14532fi
14533
14534rm -rf conftest.dSYM
14535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14536      conftest$ac_exeext conftest.$ac_ext
14537LIBS=$ac_check_lib_save_LIBS
14538fi
14539{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
14540$as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
14541if test "x$ac_cv_lib_pq_PQsetdbLogin" = x""yes; then
14542
14543cat >>confdefs.h <<\_ACEOF
14544#define HAVE_PGSQL /**/
14545_ACEOF
14546
14547else
14548  { $as_echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
14549$as_echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
14550	    with_pgsql=no
14551fi
14552
14553       LDFLAGS=$save_LDFLAGS;;
14554
14555esac
14556
14557
14558
14559# Check whether --with-sqlite was given.
14560if test "${with_sqlite+set}" = set; then
14561  withval=$with_sqlite; with_sqlite=$withval
14562else
14563  with_sqlite=$sql
14564fi
14565
14566
14567# find location of library
14568# presuing if one given then correct
14569if test "${with_sqlite}" = "yes"; then
14570  with_sqlite=notfound
14571  for sqliteloc in lib
14572  do
14573    if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
14574      with_sqlite="${prefix}"
14575      break
14576    elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
14577      with_sqlite="/usr/local"
14578      break
14579    elif test -f /usr/${sqliteloc}/libsqlite.a; then
14580      with_sqlite="/usr"
14581      break
14582    fi
14583  done
14584fi
14585
14586LIB_SQLITE=""
14587
14588case "$with_sqlite" in
14589    no) true;;
14590    notfound) { $as_echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
14591$as_echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
14592    *)
14593     if test -d ${with_sqlite}/lib; then
14594         LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
14595     else
14596         LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
14597     fi
14598
14599     LIB_SQLITE_DIR=$LIB_SQLITE
14600     LIB_SQLITE="$LIB_SQLITE -lsqlite"
14601
14602     if test -d ${with_sqlite}/include; then
14603         CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
14604     else
14605         CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
14606     fi
14607       { $as_echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
14608$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
14609if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
14610  $as_echo_n "(cached) " >&6
14611else
14612  ac_check_lib_save_LIBS=$LIBS
14613LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
14614cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h.  */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h.  */
14620
14621/* Override any GCC internal prototype to avoid an error.
14622   Use char because int might match the return type of a GCC
14623   builtin and then its argument prototype would still apply.  */
14624#ifdef __cplusplus
14625extern "C"
14626#endif
14627char sqlite_open ();
14628int
14629main ()
14630{
14631return sqlite_open ();
14632  ;
14633  return 0;
14634}
14635_ACEOF
14636rm -f conftest.$ac_objext conftest$ac_exeext
14637if { (ac_try="$ac_link"
14638case "(($ac_try" in
14639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640  *) ac_try_echo=$ac_try;;
14641esac
14642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14643$as_echo "$ac_try_echo") >&5
14644  (eval "$ac_link") 2>conftest.er1
14645  ac_status=$?
14646  grep -v '^ *+' conftest.er1 >conftest.err
14647  rm -f conftest.er1
14648  cat conftest.err >&5
14649  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650  (exit $ac_status); } && {
14651	 test -z "$ac_c_werror_flag" ||
14652	 test ! -s conftest.err
14653       } && test -s conftest$ac_exeext && {
14654	 test "$cross_compiling" = yes ||
14655	 $as_test_x conftest$ac_exeext
14656       }; then
14657  ac_cv_lib_sqlite_sqlite_open=yes
14658else
14659  $as_echo "$as_me: failed program was:" >&5
14660sed 's/^/| /' conftest.$ac_ext >&5
14661
14662	ac_cv_lib_sqlite_sqlite_open=no
14663fi
14664
14665rm -rf conftest.dSYM
14666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14667      conftest$ac_exeext conftest.$ac_ext
14668LIBS=$ac_check_lib_save_LIBS
14669fi
14670{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
14671$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
14672if test "x$ac_cv_lib_sqlite_sqlite_open" = x""yes; then
14673
14674cat >>confdefs.h <<\_ACEOF
14675#define HAVE_SQLITE /**/
14676_ACEOF
14677
14678else
14679  { $as_echo "$as_me:$LINENO: WARNING: SQLite Library sqlite does not work" >&5
14680$as_echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
14681	    with_sqlite=no
14682fi
14683;;
14684
14685esac
14686
14687
14688
14689# Check whether --with-sqlite3 was given.
14690if test "${with_sqlite3+set}" = set; then
14691  withval=$with_sqlite3; with_sqlite3=$withval
14692else
14693  with_sqlite3=$sql
14694fi
14695
14696
14697# find location of library
14698# we assume that if one given then it is correct
14699if test "${with_sqlite3}" = "yes"; then
14700  with_sqlite3=notfound
14701  for sqlite3loc in lib
14702  do
14703    if test -f ${prefix}/${sqlite3loc}/libsqlite3.a; then
14704      with_sqlite3="${prefix}"
14705      break
14706    elif test -f /usr/local/${sqlite3loc}/libsqlite3.a; then
14707      with_sqlite3="/usr/local"
14708      break
14709    elif test -f /usr/${sqlite3loc}/libsqlite3.a; then
14710      with_sqlite3="/usr"
14711      break
14712    fi
14713  done
14714fi
14715
14716LIB_SQLITE3=""
14717
14718case "$with_sqlite3" in
14719    no) true;;
14720    notfound) { $as_echo "$as_me:$LINENO: WARNING: SQLite3 Library not found" >&5
14721$as_echo "$as_me: WARNING: SQLite3 Library not found" >&2;}; true;;
14722    *)
14723     if test -d ${with_sqlite3}/lib; then
14724         LIB_SQLITE3="-L${with_sqlite3}/lib -R${with_sqlite3}/lib"
14725     else
14726         LIB_SQLITE3="-L${with_sqlite3} -R${with_sqlite3}"
14727     fi
14728
14729     LIB_SQLITE3_DIR=$LIB_SQLITE3
14730     LIB_SQLITE3="$LIB_SQLITE3 -lsqlite3"
14731
14732     if test -d ${with_sqlite3}/include; then
14733         CPPFLAGS="${CPPFLAGS} -I${with_sqlite3}/include"
14734     else
14735         CPPFLAGS="${CPPFLAGS} -I${with_sqlite3}"
14736     fi
14737       { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
14738$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
14739if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
14740  $as_echo_n "(cached) " >&6
14741else
14742  ac_check_lib_save_LIBS=$LIBS
14743LIBS="-lsqlite3 $LIB_SQLITE3_DIR $LIBS"
14744cat >conftest.$ac_ext <<_ACEOF
14745/* confdefs.h.  */
14746_ACEOF
14747cat confdefs.h >>conftest.$ac_ext
14748cat >>conftest.$ac_ext <<_ACEOF
14749/* end confdefs.h.  */
14750
14751/* Override any GCC internal prototype to avoid an error.
14752   Use char because int might match the return type of a GCC
14753   builtin and then its argument prototype would still apply.  */
14754#ifdef __cplusplus
14755extern "C"
14756#endif
14757char sqlite3_open ();
14758int
14759main ()
14760{
14761return sqlite3_open ();
14762  ;
14763  return 0;
14764}
14765_ACEOF
14766rm -f conftest.$ac_objext conftest$ac_exeext
14767if { (ac_try="$ac_link"
14768case "(($ac_try" in
14769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770  *) ac_try_echo=$ac_try;;
14771esac
14772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14773$as_echo "$ac_try_echo") >&5
14774  (eval "$ac_link") 2>conftest.er1
14775  ac_status=$?
14776  grep -v '^ *+' conftest.er1 >conftest.err
14777  rm -f conftest.er1
14778  cat conftest.err >&5
14779  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780  (exit $ac_status); } && {
14781	 test -z "$ac_c_werror_flag" ||
14782	 test ! -s conftest.err
14783       } && test -s conftest$ac_exeext && {
14784	 test "$cross_compiling" = yes ||
14785	 $as_test_x conftest$ac_exeext
14786       }; then
14787  ac_cv_lib_sqlite3_sqlite3_open=yes
14788else
14789  $as_echo "$as_me: failed program was:" >&5
14790sed 's/^/| /' conftest.$ac_ext >&5
14791
14792	ac_cv_lib_sqlite3_sqlite3_open=no
14793fi
14794
14795rm -rf conftest.dSYM
14796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14797      conftest$ac_exeext conftest.$ac_ext
14798LIBS=$ac_check_lib_save_LIBS
14799fi
14800{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
14801$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
14802if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then
14803
14804cat >>confdefs.h <<\_ACEOF
14805#define HAVE_SQLITE3 /**/
14806_ACEOF
14807
14808else
14809  { $as_echo "$as_me:$LINENO: WARNING: SQLite3 Library sqlite3 does not work" >&5
14810$as_echo "$as_me: WARNING: SQLite3 Library sqlite3 does not work" >&2;}
14811	    with_sqlite3=no
14812fi
14813;;
14814
14815esac
14816
14817
14818if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no -a "$with_sqlite3" = no; then
14819    { { $as_echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite nor SQLite3 found" >&5
14820$as_echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite nor SQLite3 found" >&2;}
14821   { (exit 1); exit 1; }; }
14822fi
14823
14824if test "$enable_shared" = yes; then
14825
14826cat >>confdefs.h <<\_ACEOF
14827#define DO_DLOPEN /**/
14828_ACEOF
14829
14830fi
14831
14832# Check whether --enable-ldapdb was given.
14833if test "${enable_ldapdb+set}" = set; then
14834  enableval=$enable_ldapdb; ldapdb=$enableval
14835else
14836  ldapdb=no
14837fi
14838
14839{ $as_echo "$as_me:$LINENO: checking LDAPDB" >&5
14840$as_echo_n "checking LDAPDB... " >&6; }
14841if test "$ldapdb" != no; then
14842    { $as_echo "$as_me:$LINENO: result: enabled" >&5
14843$as_echo "enabled" >&6; }
14844
14845    if test "$with_ldap" = no; then
14846        { { $as_echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&5
14847$as_echo "$as_me: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&2;}
14848   { (exit 1); exit 1; }; }
14849    fi
14850
14851    save_CPPFLAGS=$CPPFLAGS
14852    save_LDFLAGS=$LDFLAGS
14853
14854    if test -d $with_ldap; then
14855        CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
14856
14857  # this is CMU ADD LIBPATH
14858  if test "$andrew_cv_runpath_switch" = "none" ; then
14859	LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
14860  else
14861	LDFLAGS="-L${with_ldap}/lib $andrew_cv_runpath_switch${with_ldap}/lib ${LDFLAGS}"
14862  fi
14863
14864    fi
14865
14866
14867
14868for ac_header in ldap.h lber.h
14869do
14870as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14872  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14873$as_echo_n "checking for $ac_header... " >&6; }
14874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875  $as_echo_n "(cached) " >&6
14876fi
14877ac_res=`eval 'as_val=${'$as_ac_Header'}
14878		 $as_echo "$as_val"'`
14879	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14880$as_echo "$ac_res" >&6; }
14881else
14882  # Is the header compilable?
14883{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14884$as_echo_n "checking $ac_header usability... " >&6; }
14885cat >conftest.$ac_ext <<_ACEOF
14886/* confdefs.h.  */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h.  */
14891$ac_includes_default
14892#include <$ac_header>
14893_ACEOF
14894rm -f conftest.$ac_objext
14895if { (ac_try="$ac_compile"
14896case "(($ac_try" in
14897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898  *) ac_try_echo=$ac_try;;
14899esac
14900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14901$as_echo "$ac_try_echo") >&5
14902  (eval "$ac_compile") 2>conftest.er1
14903  ac_status=$?
14904  grep -v '^ *+' conftest.er1 >conftest.err
14905  rm -f conftest.er1
14906  cat conftest.err >&5
14907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908  (exit $ac_status); } && {
14909	 test -z "$ac_c_werror_flag" ||
14910	 test ! -s conftest.err
14911       } && test -s conftest.$ac_objext; then
14912  ac_header_compiler=yes
14913else
14914  $as_echo "$as_me: failed program was:" >&5
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
14917	ac_header_compiler=no
14918fi
14919
14920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14922$as_echo "$ac_header_compiler" >&6; }
14923
14924# Is the header present?
14925{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14926$as_echo_n "checking $ac_header presence... " >&6; }
14927cat >conftest.$ac_ext <<_ACEOF
14928/* confdefs.h.  */
14929_ACEOF
14930cat confdefs.h >>conftest.$ac_ext
14931cat >>conftest.$ac_ext <<_ACEOF
14932/* end confdefs.h.  */
14933#include <$ac_header>
14934_ACEOF
14935if { (ac_try="$ac_cpp conftest.$ac_ext"
14936case "(($ac_try" in
14937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938  *) ac_try_echo=$ac_try;;
14939esac
14940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14941$as_echo "$ac_try_echo") >&5
14942  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14943  ac_status=$?
14944  grep -v '^ *+' conftest.er1 >conftest.err
14945  rm -f conftest.er1
14946  cat conftest.err >&5
14947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948  (exit $ac_status); } >/dev/null && {
14949	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14950	 test ! -s conftest.err
14951       }; then
14952  ac_header_preproc=yes
14953else
14954  $as_echo "$as_me: failed program was:" >&5
14955sed 's/^/| /' conftest.$ac_ext >&5
14956
14957  ac_header_preproc=no
14958fi
14959
14960rm -f conftest.err conftest.$ac_ext
14961{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14962$as_echo "$ac_header_preproc" >&6; }
14963
14964# So?  What about this header?
14965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14966  yes:no: )
14967    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14968$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14969    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14970$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14971    ac_header_preproc=yes
14972    ;;
14973  no:yes:* )
14974    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14975$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14976    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14977$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14978    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14979$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14980    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14981$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14982    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14983$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14984    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14985$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14986
14987    ;;
14988esac
14989{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14990$as_echo_n "checking for $ac_header... " >&6; }
14991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992  $as_echo_n "(cached) " >&6
14993else
14994  eval "$as_ac_Header=\$ac_header_preproc"
14995fi
14996ac_res=`eval 'as_val=${'$as_ac_Header'}
14997		 $as_echo "$as_val"'`
14998	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14999$as_echo "$ac_res" >&6; }
15000
15001fi
15002as_val=`eval 'as_val=${'$as_ac_Header'}
15003		 $as_echo "$as_val"'`
15004   if test "x$as_val" = x""yes; then
15005  cat >>confdefs.h <<_ACEOF
15006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15007_ACEOF
15008
15009fi
15010
15011done
15012
15013
15014    if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
15015        { $as_echo "$as_me:$LINENO: checking OpenLDAP api" >&5
15016$as_echo_n "checking OpenLDAP api... " >&6; }
15017if test "${cmu_cv_openldap_api+set}" = set; then
15018  $as_echo_n "(cached) " >&6
15019else
15020
15021    cat >conftest.$ac_ext <<_ACEOF
15022/* confdefs.h.  */
15023_ACEOF
15024cat confdefs.h >>conftest.$ac_ext
15025cat >>conftest.$ac_ext <<_ACEOF
15026/* end confdefs.h.  */
15027
15028#include <ldap.h>
15029
15030#ifdef LDAP_API_FEATURE_X_OPENLDAP
15031char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
15032#endif
15033
15034_ACEOF
15035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15036  $EGREP "__openldap_api" >/dev/null 2>&1; then
15037  cmu_cv_openldap_api=yes
15038else
15039  cmu_cv_openldap_api=no
15040fi
15041rm -f conftest*
15042
15043fi
15044{ $as_echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
15045$as_echo "$cmu_cv_openldap_api" >&6; }
15046
15047
15048        if test "$cmu_cv_openldap_api" = yes; then
15049            { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
15050$as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
15051if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
15052  $as_echo_n "(cached) " >&6
15053else
15054  ac_check_lib_save_LIBS=$LIBS
15055LIBS="-lldap -llber $LIBS"
15056cat >conftest.$ac_ext <<_ACEOF
15057/* confdefs.h.  */
15058_ACEOF
15059cat confdefs.h >>conftest.$ac_ext
15060cat >>conftest.$ac_ext <<_ACEOF
15061/* end confdefs.h.  */
15062
15063/* Override any GCC internal prototype to avoid an error.
15064   Use char because int might match the return type of a GCC
15065   builtin and then its argument prototype would still apply.  */
15066#ifdef __cplusplus
15067extern "C"
15068#endif
15069char ldap_initialize ();
15070int
15071main ()
15072{
15073return ldap_initialize ();
15074  ;
15075  return 0;
15076}
15077_ACEOF
15078rm -f conftest.$ac_objext conftest$ac_exeext
15079if { (ac_try="$ac_link"
15080case "(($ac_try" in
15081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082  *) ac_try_echo=$ac_try;;
15083esac
15084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15085$as_echo "$ac_try_echo") >&5
15086  (eval "$ac_link") 2>conftest.er1
15087  ac_status=$?
15088  grep -v '^ *+' conftest.er1 >conftest.err
15089  rm -f conftest.er1
15090  cat conftest.err >&5
15091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092  (exit $ac_status); } && {
15093	 test -z "$ac_c_werror_flag" ||
15094	 test ! -s conftest.err
15095       } && test -s conftest$ac_exeext && {
15096	 test "$cross_compiling" = yes ||
15097	 $as_test_x conftest$ac_exeext
15098       }; then
15099  ac_cv_lib_ldap_ldap_initialize=yes
15100else
15101  $as_echo "$as_me: failed program was:" >&5
15102sed 's/^/| /' conftest.$ac_ext >&5
15103
15104	ac_cv_lib_ldap_ldap_initialize=no
15105fi
15106
15107rm -rf conftest.dSYM
15108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15109      conftest$ac_exeext conftest.$ac_ext
15110LIBS=$ac_check_lib_save_LIBS
15111fi
15112{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
15113$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
15114if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then
15115   cmu_link_openldap="-lldap -llber"
15116else
15117   cmu_link_openldap=no
15118fi
15119
15120        fi
15121    fi
15122
15123    if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
15124        { { $as_echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&5
15125$as_echo "$as_me: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&2;}
15126   { (exit 1); exit 1; }; }
15127    else
15128        { $as_echo "$as_me:$LINENO: checking OpenLDAP version" >&5
15129$as_echo_n "checking OpenLDAP version... " >&6; }
15130if test "${cmu_cv_openldap_compat+set}" = set; then
15131  $as_echo_n "(cached) " >&6
15132else
15133
15134    cat >conftest.$ac_ext <<_ACEOF
15135/* confdefs.h.  */
15136_ACEOF
15137cat confdefs.h >>conftest.$ac_ext
15138cat >>conftest.$ac_ext <<_ACEOF
15139/* end confdefs.h.  */
15140
15141#include <ldap.h>
15142
15143/* Require 2.1.27+ and 2.2.6+ */
15144#if LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
15145char *__openldap_compat = "2.1.27 or better okay";
15146#elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
15147char *__openldap_compat = "2.2.6 or better okay";
15148#elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR > 2
15149char *__openldap_compat = "2.3 or better okay"
15150#endif
15151
15152_ACEOF
15153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15154  $EGREP "__openldap_compat" >/dev/null 2>&1; then
15155  cmu_cv_openldap_compat=yes
15156else
15157  cmu_cv_openldap_compat=no
15158fi
15159rm -f conftest*
15160
15161fi
15162{ $as_echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
15163$as_echo "$cmu_cv_openldap_compat" >&6; }
15164
15165
15166        if test "$cmu_cv_openldap_compat" = no; then
15167            { { $as_echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&5
15168$as_echo "$as_me: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&2;}
15169   { (exit 1); exit 1; }; }
15170        else
15171            LIB_LDAP=$cmu_link_openldap
15172
15173
15174            SASL_MECHS="$SASL_MECHS libldapdb.la"
15175            if test "$enable_static" = yes; then
15176                SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/ldapdb.c"
15177                SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
15178
15179cat >>confdefs.h <<\_ACEOF
15180#define STATIC_LDAPDB /**/
15181_ACEOF
15182
15183            fi
15184        fi
15185    fi
15186
15187    if test "$cmu_cv_openldap_compat" != yes; then
15188        CPPFLAGS=$save_CPPFLAGS
15189        LDFLAGS=$save_LDFLAGS
15190    fi
15191else
15192    { $as_echo "$as_me:$LINENO: result: disabled" >&5
15193$as_echo "disabled" >&6; }
15194fi
15195
15196
15197
15198
15199
15200
15201
15202# Check whether --with-plugindir was given.
15203if test "${with_plugindir+set}" = set; then
15204  withval=$with_plugindir; plugindir=$withval
15205else
15206  plugindir=/usr/lib/sasl2
15207fi
15208
15209
15210cat >>confdefs.h <<_ACEOF
15211#define PLUGINDIR "$plugindir"
15212_ACEOF
15213
15214
15215
15216
15217# Check whether --with-configdir was given.
15218if test "${with_configdir+set}" = set; then
15219  withval=$with_configdir; configdir=$withval
15220else
15221  configdir=$plugindir:/etc/sasl2
15222fi
15223
15224
15225cat >>confdefs.h <<_ACEOF
15226#define CONFIGDIR "$configdir"
15227_ACEOF
15228
15229
15230
15231
15232# Check whether --with-rc4 was given.
15233if test "${with_rc4+set}" = set; then
15234  withval=$with_rc4; with_rc4=$withval
15235else
15236  with_rc4=yes
15237fi
15238
15239
15240if test "$with_rc4" != no; then
15241
15242cat >>confdefs.h <<\_ACEOF
15243#define WITH_RC4 /**/
15244_ACEOF
15245
15246fi
15247
15248building_for_macosx=no
15249case "$host_os" in
15250        darwin*)
15251# Check whether --enable-macos-framework was given.
15252if test "${enable_macos_framework+set}" = set; then
15253  enableval=$enable_macos_framework; building_for_macosx=no
15254else
15255  building_for_macosx=yes
15256fi
15257
15258        ;;
15259esac
15260 if test "$building_for_macosx" = yes; then
15261  MACOSX_TRUE=
15262  MACOSX_FALSE='#'
15263else
15264  MACOSX_TRUE='#'
15265  MACOSX_FALSE=
15266fi
15267
15268
15269{ $as_echo "$as_me:$LINENO: checking for dmalloc library" >&5
15270$as_echo_n "checking for dmalloc library... " >&6; }
15271
15272# Check whether --with-dmalloc was given.
15273if test "${with_dmalloc+set}" = set; then
15274  withval=$with_dmalloc; with_dmalloc=$withval
15275else
15276  with_dmalloc=no
15277fi
15278
15279
15280DMALLOC_LIBS=""
15281
15282if test "$with_dmalloc" != "no"; then
15283   if test "$with_dmalloc" = "yes"; then
15284	with_dmalloc="/usr/local"
15285   fi
15286
15287   if test -r "$with_dmalloc/libdmalloc.a"; then
15288	DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
15289
15290cat >>confdefs.h <<\_ACEOF
15291#define WITH_DMALLOC /**/
15292_ACEOF
15293
15294	{ $as_echo "$as_me:$LINENO: result: yes" >&5
15295$as_echo "yes" >&6; }
15296   elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
15297	DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
15298
15299cat >>confdefs.h <<\_ACEOF
15300#define WITH_DMALLOC /**/
15301_ACEOF
15302
15303	{ $as_echo "$as_me:$LINENO: result: yes" >&5
15304$as_echo "yes" >&6; }
15305   else
15306	{ { $as_echo "$as_me:$LINENO: error: cannot find dmalloc library" >&5
15307$as_echo "$as_me: error: cannot find dmalloc library" >&2;}
15308   { (exit please check your installation.); exit please check your installation.; }; }
15309   fi
15310else
15311   { $as_echo "$as_me:$LINENO: result: no" >&5
15312$as_echo "no" >&6; }
15313fi
15314
15315
15316
15317{ $as_echo "$as_me:$LINENO: checking for sfio library" >&5
15318$as_echo_n "checking for sfio library... " >&6; }
15319
15320# Check whether --with-sfio was given.
15321if test "${with_sfio+set}" = set; then
15322  withval=$with_sfio; with_sfio=$withval
15323else
15324  with_sfio=no
15325fi
15326
15327
15328if test "$with_sfio" != "no"; then
15329   if test "$with_sfio" = "yes"; then
15330	with_sfio="/usr/local"
15331   fi
15332
15333
15334
15335
15336
15337   if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15338					      SFIO_INC_DIR=$with_sfio
15339   elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
15340					      SFIO_INC_DIR=$with_sfio/include
15341   elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15342					      SFIO_INC_DIR=$with_sfio/include/sfio
15343   fi
15344
15345   if test -z "$SFIO_DIR"; then
15346	{ { $as_echo "$as_me:$LINENO: error: Cannot find sfio.h" >&5
15347$as_echo "$as_me: error: Cannot find sfio.h" >&2;}
15348   { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
15349   fi
15350
15351
15352		str="$SFIO_DIR/lib/libsfio.*"
15353		for i in `echo $str`; do
15354			if test -r $i; then
15355				SFIO_LIBDIR=$SFIO_DIR/lib
15356				break 2
15357			fi
15358		done
15359
15360
15361		str="$SFIO_DIR/lib/sfio/libsfio.*"
15362		for i in `echo $str`; do
15363			if test -r $i; then
15364				SFIO_LIBDIR=$SFIO_DIR/lib/sfio
15365				break 2
15366			fi
15367		done
15368
15369
15370   if test -z "$SFIO_LIBDIR"; then
15371	{ { $as_echo "$as_me:$LINENO: error: Cannot find sfio library" >&5
15372$as_echo "$as_me: error: Cannot find sfio library" >&2;}
15373   { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
15374   fi
15375
15376   SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
15377   SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
15378   SMTPTEST_PROGRAM="smtptest"
15379   SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
15380   SASL_UTIL_HEADERS_EXTRA=sfsasl.h
15381
15382   { $as_echo "$as_me:$LINENO: result: yes" >&5
15383$as_echo "yes" >&6; }
15384else
15385   { $as_echo "$as_me:$LINENO: result: no" >&5
15386$as_echo "no" >&6; }
15387   SFIO_INC_FLAGS=""
15388   SFIO_LIB_FLAGS=""
15389   SMTPTEST_PROGRAM=""
15390   SASL_UTIL_LIBS_EXTRA=""
15391   SASL_UTIL_HEADERS_EXTRA=""
15392fi
15393
15394
15395
15396
15397
15398
15399
15400sasl_cv_getsubopt=no
15401{ $as_echo "$as_me:$LINENO: checking for getsubopt" >&5
15402$as_echo_n "checking for getsubopt... " >&6; }
15403if test "${ac_cv_func_getsubopt+set}" = set; then
15404  $as_echo_n "(cached) " >&6
15405else
15406  cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h.  */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h.  */
15412/* Define getsubopt to an innocuous variant, in case <limits.h> declares getsubopt.
15413   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15414#define getsubopt innocuous_getsubopt
15415
15416/* System header to define __stub macros and hopefully few prototypes,
15417    which can conflict with char getsubopt (); below.
15418    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15419    <limits.h> exists even on freestanding compilers.  */
15420
15421#ifdef __STDC__
15422# include <limits.h>
15423#else
15424# include <assert.h>
15425#endif
15426
15427#undef getsubopt
15428
15429/* Override any GCC internal prototype to avoid an error.
15430   Use char because int might match the return type of a GCC
15431   builtin and then its argument prototype would still apply.  */
15432#ifdef __cplusplus
15433extern "C"
15434#endif
15435char getsubopt ();
15436/* The GNU C library defines this for functions which it implements
15437    to always fail with ENOSYS.  Some functions are actually named
15438    something starting with __ and the normal name is an alias.  */
15439#if defined __stub_getsubopt || defined __stub___getsubopt
15440choke me
15441#endif
15442
15443int
15444main ()
15445{
15446return getsubopt ();
15447  ;
15448  return 0;
15449}
15450_ACEOF
15451rm -f conftest.$ac_objext conftest$ac_exeext
15452if { (ac_try="$ac_link"
15453case "(($ac_try" in
15454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15455  *) ac_try_echo=$ac_try;;
15456esac
15457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15458$as_echo "$ac_try_echo") >&5
15459  (eval "$ac_link") 2>conftest.er1
15460  ac_status=$?
15461  grep -v '^ *+' conftest.er1 >conftest.err
15462  rm -f conftest.er1
15463  cat conftest.err >&5
15464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465  (exit $ac_status); } && {
15466	 test -z "$ac_c_werror_flag" ||
15467	 test ! -s conftest.err
15468       } && test -s conftest$ac_exeext && {
15469	 test "$cross_compiling" = yes ||
15470	 $as_test_x conftest$ac_exeext
15471       }; then
15472  ac_cv_func_getsubopt=yes
15473else
15474  $as_echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477	ac_cv_func_getsubopt=no
15478fi
15479
15480rm -rf conftest.dSYM
15481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15482      conftest$ac_exeext conftest.$ac_ext
15483fi
15484{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5
15485$as_echo "$ac_cv_func_getsubopt" >&6; }
15486if test "x$ac_cv_func_getsubopt" = x""yes; then
15487
15488cat >>confdefs.h <<\_ACEOF
15489#define HAVE_GETSUBOPT /**/
15490_ACEOF
15491
15492else
15493  sasl_cv_getsubopt=yes
15494fi
15495
15496if test $sasl_cv_getsubopt = yes; then
15497	case " $LIBOBJS " in
15498  *" getsubopt.$ac_objext "* ) ;;
15499  *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
15500 ;;
15501esac
15502
15503	GETSUBOPT="getsubopt.lo"
15504fi
15505
15506
15507sasl_cv_snprintf=no
15508SNPRINTFOBJS=""
15509{ $as_echo "$as_me:$LINENO: checking for snprintf" >&5
15510$as_echo_n "checking for snprintf... " >&6; }
15511if test "${ac_cv_func_snprintf+set}" = set; then
15512  $as_echo_n "(cached) " >&6
15513else
15514  cat >conftest.$ac_ext <<_ACEOF
15515/* confdefs.h.  */
15516_ACEOF
15517cat confdefs.h >>conftest.$ac_ext
15518cat >>conftest.$ac_ext <<_ACEOF
15519/* end confdefs.h.  */
15520/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
15521   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15522#define snprintf innocuous_snprintf
15523
15524/* System header to define __stub macros and hopefully few prototypes,
15525    which can conflict with char snprintf (); below.
15526    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15527    <limits.h> exists even on freestanding compilers.  */
15528
15529#ifdef __STDC__
15530# include <limits.h>
15531#else
15532# include <assert.h>
15533#endif
15534
15535#undef snprintf
15536
15537/* Override any GCC internal prototype to avoid an error.
15538   Use char because int might match the return type of a GCC
15539   builtin and then its argument prototype would still apply.  */
15540#ifdef __cplusplus
15541extern "C"
15542#endif
15543char snprintf ();
15544/* The GNU C library defines this for functions which it implements
15545    to always fail with ENOSYS.  Some functions are actually named
15546    something starting with __ and the normal name is an alias.  */
15547#if defined __stub_snprintf || defined __stub___snprintf
15548choke me
15549#endif
15550
15551int
15552main ()
15553{
15554return snprintf ();
15555  ;
15556  return 0;
15557}
15558_ACEOF
15559rm -f conftest.$ac_objext conftest$ac_exeext
15560if { (ac_try="$ac_link"
15561case "(($ac_try" in
15562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563  *) ac_try_echo=$ac_try;;
15564esac
15565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15566$as_echo "$ac_try_echo") >&5
15567  (eval "$ac_link") 2>conftest.er1
15568  ac_status=$?
15569  grep -v '^ *+' conftest.er1 >conftest.err
15570  rm -f conftest.er1
15571  cat conftest.err >&5
15572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573  (exit $ac_status); } && {
15574	 test -z "$ac_c_werror_flag" ||
15575	 test ! -s conftest.err
15576       } && test -s conftest$ac_exeext && {
15577	 test "$cross_compiling" = yes ||
15578	 $as_test_x conftest$ac_exeext
15579       }; then
15580  ac_cv_func_snprintf=yes
15581else
15582  $as_echo "$as_me: failed program was:" >&5
15583sed 's/^/| /' conftest.$ac_ext >&5
15584
15585	ac_cv_func_snprintf=no
15586fi
15587
15588rm -rf conftest.dSYM
15589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15590      conftest$ac_exeext conftest.$ac_ext
15591fi
15592{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
15593$as_echo "$ac_cv_func_snprintf" >&6; }
15594if test "x$ac_cv_func_snprintf" = x""yes; then
15595
15596cat >>confdefs.h <<\_ACEOF
15597#define HAVE_SNPRINTF /**/
15598_ACEOF
15599
15600else
15601  sasl_cv_snprintf=yes
15602fi
15603
15604{ $as_echo "$as_me:$LINENO: checking for vsnprintf" >&5
15605$as_echo_n "checking for vsnprintf... " >&6; }
15606if test "${ac_cv_func_vsnprintf+set}" = set; then
15607  $as_echo_n "(cached) " >&6
15608else
15609  cat >conftest.$ac_ext <<_ACEOF
15610/* confdefs.h.  */
15611_ACEOF
15612cat confdefs.h >>conftest.$ac_ext
15613cat >>conftest.$ac_ext <<_ACEOF
15614/* end confdefs.h.  */
15615/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
15616   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15617#define vsnprintf innocuous_vsnprintf
15618
15619/* System header to define __stub macros and hopefully few prototypes,
15620    which can conflict with char vsnprintf (); below.
15621    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15622    <limits.h> exists even on freestanding compilers.  */
15623
15624#ifdef __STDC__
15625# include <limits.h>
15626#else
15627# include <assert.h>
15628#endif
15629
15630#undef vsnprintf
15631
15632/* Override any GCC internal prototype to avoid an error.
15633   Use char because int might match the return type of a GCC
15634   builtin and then its argument prototype would still apply.  */
15635#ifdef __cplusplus
15636extern "C"
15637#endif
15638char vsnprintf ();
15639/* The GNU C library defines this for functions which it implements
15640    to always fail with ENOSYS.  Some functions are actually named
15641    something starting with __ and the normal name is an alias.  */
15642#if defined __stub_vsnprintf || defined __stub___vsnprintf
15643choke me
15644#endif
15645
15646int
15647main ()
15648{
15649return vsnprintf ();
15650  ;
15651  return 0;
15652}
15653_ACEOF
15654rm -f conftest.$ac_objext conftest$ac_exeext
15655if { (ac_try="$ac_link"
15656case "(($ac_try" in
15657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658  *) ac_try_echo=$ac_try;;
15659esac
15660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15661$as_echo "$ac_try_echo") >&5
15662  (eval "$ac_link") 2>conftest.er1
15663  ac_status=$?
15664  grep -v '^ *+' conftest.er1 >conftest.err
15665  rm -f conftest.er1
15666  cat conftest.err >&5
15667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668  (exit $ac_status); } && {
15669	 test -z "$ac_c_werror_flag" ||
15670	 test ! -s conftest.err
15671       } && test -s conftest$ac_exeext && {
15672	 test "$cross_compiling" = yes ||
15673	 $as_test_x conftest$ac_exeext
15674       }; then
15675  ac_cv_func_vsnprintf=yes
15676else
15677  $as_echo "$as_me: failed program was:" >&5
15678sed 's/^/| /' conftest.$ac_ext >&5
15679
15680	ac_cv_func_vsnprintf=no
15681fi
15682
15683rm -rf conftest.dSYM
15684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15685      conftest$ac_exeext conftest.$ac_ext
15686fi
15687{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
15688$as_echo "$ac_cv_func_vsnprintf" >&6; }
15689if test "x$ac_cv_func_vsnprintf" = x""yes; then
15690
15691cat >>confdefs.h <<\_ACEOF
15692#define HAVE_VSNPRINTF /**/
15693_ACEOF
15694
15695else
15696  sasl_cv_snprintf=yes
15697fi
15698
15699if test $sasl_cv_snprintf = yes; then
15700	case " $LIBOBJS " in
15701  *" snprintf.$ac_objext "* ) ;;
15702  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15703 ;;
15704esac
15705
15706        SNPRINTFOBJS="snprintf.o"
15707        LTSNPRINTFOBJS="snprintf.lo"
15708fi
15709
15710
15711
15712
15713{ $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15714$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
15715if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15716  $as_echo_n "(cached) " >&6
15717else
15718  ac_check_lib_save_LIBS=$LIBS
15719LIBS="-lresolv  $LIBS"
15720cat >conftest.$ac_ext <<_ACEOF
15721/* confdefs.h.  */
15722_ACEOF
15723cat confdefs.h >>conftest.$ac_ext
15724cat >>conftest.$ac_ext <<_ACEOF
15725/* end confdefs.h.  */
15726
15727/* Override any GCC internal prototype to avoid an error.
15728   Use char because int might match the return type of a GCC
15729   builtin and then its argument prototype would still apply.  */
15730#ifdef __cplusplus
15731extern "C"
15732#endif
15733char inet_aton ();
15734int
15735main ()
15736{
15737return inet_aton ();
15738  ;
15739  return 0;
15740}
15741_ACEOF
15742rm -f conftest.$ac_objext conftest$ac_exeext
15743if { (ac_try="$ac_link"
15744case "(($ac_try" in
15745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746  *) ac_try_echo=$ac_try;;
15747esac
15748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15749$as_echo "$ac_try_echo") >&5
15750  (eval "$ac_link") 2>conftest.er1
15751  ac_status=$?
15752  grep -v '^ *+' conftest.er1 >conftest.err
15753  rm -f conftest.er1
15754  cat conftest.err >&5
15755  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756  (exit $ac_status); } && {
15757	 test -z "$ac_c_werror_flag" ||
15758	 test ! -s conftest.err
15759       } && test -s conftest$ac_exeext && {
15760	 test "$cross_compiling" = yes ||
15761	 $as_test_x conftest$ac_exeext
15762       }; then
15763  ac_cv_lib_resolv_inet_aton=yes
15764else
15765  $as_echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
15768	ac_cv_lib_resolv_inet_aton=no
15769fi
15770
15771rm -rf conftest.dSYM
15772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15773      conftest$ac_exeext conftest.$ac_ext
15774LIBS=$ac_check_lib_save_LIBS
15775fi
15776{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15777$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
15778if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then
15779  cat >>confdefs.h <<_ACEOF
15780#define HAVE_LIBRESOLV 1
15781_ACEOF
15782
15783  LIBS="-lresolv $LIBS"
15784
15785fi
15786
15787
15788GETADDRINFOOBJS=""
15789sasl_cv_getaddrinfo=yes
15790
15791{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
15792$as_echo_n "checking for getaddrinfo... " >&6; }
15793if test "${ac_cv_func_getaddrinfo+set}" = set; then
15794  $as_echo_n "(cached) " >&6
15795else
15796  cat >conftest.$ac_ext <<_ACEOF
15797/* confdefs.h.  */
15798_ACEOF
15799cat confdefs.h >>conftest.$ac_ext
15800cat >>conftest.$ac_ext <<_ACEOF
15801/* end confdefs.h.  */
15802/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
15803   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15804#define getaddrinfo innocuous_getaddrinfo
15805
15806/* System header to define __stub macros and hopefully few prototypes,
15807    which can conflict with char getaddrinfo (); below.
15808    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15809    <limits.h> exists even on freestanding compilers.  */
15810
15811#ifdef __STDC__
15812# include <limits.h>
15813#else
15814# include <assert.h>
15815#endif
15816
15817#undef getaddrinfo
15818
15819/* Override any GCC internal prototype to avoid an error.
15820   Use char because int might match the return type of a GCC
15821   builtin and then its argument prototype would still apply.  */
15822#ifdef __cplusplus
15823extern "C"
15824#endif
15825char getaddrinfo ();
15826/* The GNU C library defines this for functions which it implements
15827    to always fail with ENOSYS.  Some functions are actually named
15828    something starting with __ and the normal name is an alias.  */
15829#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
15830choke me
15831#endif
15832
15833int
15834main ()
15835{
15836return getaddrinfo ();
15837  ;
15838  return 0;
15839}
15840_ACEOF
15841rm -f conftest.$ac_objext conftest$ac_exeext
15842if { (ac_try="$ac_link"
15843case "(($ac_try" in
15844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845  *) ac_try_echo=$ac_try;;
15846esac
15847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15848$as_echo "$ac_try_echo") >&5
15849  (eval "$ac_link") 2>conftest.er1
15850  ac_status=$?
15851  grep -v '^ *+' conftest.er1 >conftest.err
15852  rm -f conftest.er1
15853  cat conftest.err >&5
15854  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855  (exit $ac_status); } && {
15856	 test -z "$ac_c_werror_flag" ||
15857	 test ! -s conftest.err
15858       } && test -s conftest$ac_exeext && {
15859	 test "$cross_compiling" = yes ||
15860	 $as_test_x conftest$ac_exeext
15861       }; then
15862  ac_cv_func_getaddrinfo=yes
15863else
15864  $as_echo "$as_me: failed program was:" >&5
15865sed 's/^/| /' conftest.$ac_ext >&5
15866
15867	ac_cv_func_getaddrinfo=no
15868fi
15869
15870rm -rf conftest.dSYM
15871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15872      conftest$ac_exeext conftest.$ac_ext
15873fi
15874{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
15875$as_echo "$ac_cv_func_getaddrinfo" >&6; }
15876if test "x$ac_cv_func_getaddrinfo" = x""yes; then
15877    ac_cv_lib_socket_getaddrinfo=no
15878  ac_cv_lib_inet6_getaddrinfo=no
15879
15880else
15881    { $as_echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
15882$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
15883if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
15884  $as_echo_n "(cached) " >&6
15885else
15886  ac_check_lib_save_LIBS=$LIBS
15887LIBS="-lsocket  $LIBS"
15888cat >conftest.$ac_ext <<_ACEOF
15889/* confdefs.h.  */
15890_ACEOF
15891cat confdefs.h >>conftest.$ac_ext
15892cat >>conftest.$ac_ext <<_ACEOF
15893/* end confdefs.h.  */
15894
15895/* Override any GCC internal prototype to avoid an error.
15896   Use char because int might match the return type of a GCC
15897   builtin and then its argument prototype would still apply.  */
15898#ifdef __cplusplus
15899extern "C"
15900#endif
15901char getaddrinfo ();
15902int
15903main ()
15904{
15905return getaddrinfo ();
15906  ;
15907  return 0;
15908}
15909_ACEOF
15910rm -f conftest.$ac_objext conftest$ac_exeext
15911if { (ac_try="$ac_link"
15912case "(($ac_try" in
15913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914  *) ac_try_echo=$ac_try;;
15915esac
15916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15917$as_echo "$ac_try_echo") >&5
15918  (eval "$ac_link") 2>conftest.er1
15919  ac_status=$?
15920  grep -v '^ *+' conftest.er1 >conftest.err
15921  rm -f conftest.er1
15922  cat conftest.err >&5
15923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924  (exit $ac_status); } && {
15925	 test -z "$ac_c_werror_flag" ||
15926	 test ! -s conftest.err
15927       } && test -s conftest$ac_exeext && {
15928	 test "$cross_compiling" = yes ||
15929	 $as_test_x conftest$ac_exeext
15930       }; then
15931  ac_cv_lib_socket_getaddrinfo=yes
15932else
15933  $as_echo "$as_me: failed program was:" >&5
15934sed 's/^/| /' conftest.$ac_ext >&5
15935
15936	ac_cv_lib_socket_getaddrinfo=no
15937fi
15938
15939rm -rf conftest.dSYM
15940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15941      conftest$ac_exeext conftest.$ac_ext
15942LIBS=$ac_check_lib_save_LIBS
15943fi
15944{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
15945$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
15946if test "x$ac_cv_lib_socket_getaddrinfo" = x""yes; then
15947      LIBS="$LIBS -lsocket"
15948    ac_cv_lib_inet6_getaddrinfo=no
15949
15950else
15951      { $as_echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
15952$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
15953    if test "${ipv6_cv_dir+set}" = set; then
15954  $as_echo_n "(cached) " >&6
15955else
15956        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15957	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15958	  break
15959	fi
15960      done
15961fi
15962    { $as_echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
15963$as_echo "$ipv6_cv_dir" >&6; }
15964    if test $ipv6_cv_dir = no; then
15965      ac_cv_lib_inet6_getaddrinfo=no
15966    else
15967      if test x$ipv6_libinet6 = x; then
15968	ipv6_libinet6=no
15969	SAVELDFLAGS="$LDFLAGS"
15970	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15971      fi
15972      { $as_echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
15973$as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
15974if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
15975  $as_echo_n "(cached) " >&6
15976else
15977  ac_check_lib_save_LIBS=$LIBS
15978LIBS="-linet6  $LIBS"
15979cat >conftest.$ac_ext <<_ACEOF
15980/* confdefs.h.  */
15981_ACEOF
15982cat confdefs.h >>conftest.$ac_ext
15983cat >>conftest.$ac_ext <<_ACEOF
15984/* end confdefs.h.  */
15985
15986/* Override any GCC internal prototype to avoid an error.
15987   Use char because int might match the return type of a GCC
15988   builtin and then its argument prototype would still apply.  */
15989#ifdef __cplusplus
15990extern "C"
15991#endif
15992char getaddrinfo ();
15993int
15994main ()
15995{
15996return getaddrinfo ();
15997  ;
15998  return 0;
15999}
16000_ACEOF
16001rm -f conftest.$ac_objext conftest$ac_exeext
16002if { (ac_try="$ac_link"
16003case "(($ac_try" in
16004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005  *) ac_try_echo=$ac_try;;
16006esac
16007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16008$as_echo "$ac_try_echo") >&5
16009  (eval "$ac_link") 2>conftest.er1
16010  ac_status=$?
16011  grep -v '^ *+' conftest.er1 >conftest.err
16012  rm -f conftest.er1
16013  cat conftest.err >&5
16014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015  (exit $ac_status); } && {
16016	 test -z "$ac_c_werror_flag" ||
16017	 test ! -s conftest.err
16018       } && test -s conftest$ac_exeext && {
16019	 test "$cross_compiling" = yes ||
16020	 $as_test_x conftest$ac_exeext
16021       }; then
16022  ac_cv_lib_inet6_getaddrinfo=yes
16023else
16024  $as_echo "$as_me: failed program was:" >&5
16025sed 's/^/| /' conftest.$ac_ext >&5
16026
16027	ac_cv_lib_inet6_getaddrinfo=no
16028fi
16029
16030rm -rf conftest.dSYM
16031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16032      conftest$ac_exeext conftest.$ac_ext
16033LIBS=$ac_check_lib_save_LIBS
16034fi
16035{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
16036$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
16037if test "x$ac_cv_lib_inet6_getaddrinfo" = x""yes; then
16038  	if test $ipv6_libinet6 = no; then
16039	  ipv6_libinet6=yes
16040	  LIBS="$LIBS -linet6"
16041	fi
16042fi
16043      if test $ipv6_libinet6 = no; then
16044	LDFLAGS="$SAVELDFLAGS"
16045      fi
16046    fi
16047fi
16048
16049fi
16050ipv6_cv_getaddrinfo=no
16051if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
16052     -o $ac_cv_lib_inet6_getaddrinfo = yes
16053then
16054  ipv6_cv_getaddrinfo=yes
16055fi
16056if test $ipv6_cv_getaddrinfo = no; then
16057  if test getaddrinfo = getaddrinfo; then
16058    for ipv6_cv_pfx in o n; do
16059      cat >conftest.$ac_ext <<_ACEOF
16060/* confdefs.h.  */
16061_ACEOF
16062cat confdefs.h >>conftest.$ac_ext
16063cat >>conftest.$ac_ext <<_ACEOF
16064/* end confdefs.h.  */
16065#include <netdb.h>
16066
16067_ACEOF
16068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16069  $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
16070  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
16071{ $as_echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
16072$as_echo_n "checking for ${ipv6_cv_pfx}getaddrinfo... " >&6; }
16073if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16074  $as_echo_n "(cached) " >&6
16075else
16076  cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h.  */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h.  */
16082/* Define ${ipv6_cv_pfx}getaddrinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getaddrinfo.
16083   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16084#define ${ipv6_cv_pfx}getaddrinfo innocuous_${ipv6_cv_pfx}getaddrinfo
16085
16086/* System header to define __stub macros and hopefully few prototypes,
16087    which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
16088    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16089    <limits.h> exists even on freestanding compilers.  */
16090
16091#ifdef __STDC__
16092# include <limits.h>
16093#else
16094# include <assert.h>
16095#endif
16096
16097#undef ${ipv6_cv_pfx}getaddrinfo
16098
16099/* Override any GCC internal prototype to avoid an error.
16100   Use char because int might match the return type of a GCC
16101   builtin and then its argument prototype would still apply.  */
16102#ifdef __cplusplus
16103extern "C"
16104#endif
16105char ${ipv6_cv_pfx}getaddrinfo ();
16106/* The GNU C library defines this for functions which it implements
16107    to always fail with ENOSYS.  Some functions are actually named
16108    something starting with __ and the normal name is an alias.  */
16109#if defined __stub_${ipv6_cv_pfx}getaddrinfo || defined __stub___${ipv6_cv_pfx}getaddrinfo
16110choke me
16111#endif
16112
16113int
16114main ()
16115{
16116return ${ipv6_cv_pfx}getaddrinfo ();
16117  ;
16118  return 0;
16119}
16120_ACEOF
16121rm -f conftest.$ac_objext conftest$ac_exeext
16122if { (ac_try="$ac_link"
16123case "(($ac_try" in
16124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125  *) ac_try_echo=$ac_try;;
16126esac
16127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16128$as_echo "$ac_try_echo") >&5
16129  (eval "$ac_link") 2>conftest.er1
16130  ac_status=$?
16131  grep -v '^ *+' conftest.er1 >conftest.err
16132  rm -f conftest.er1
16133  cat conftest.err >&5
16134  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135  (exit $ac_status); } && {
16136	 test -z "$ac_c_werror_flag" ||
16137	 test ! -s conftest.err
16138       } && test -s conftest$ac_exeext && {
16139	 test "$cross_compiling" = yes ||
16140	 $as_test_x conftest$ac_exeext
16141       }; then
16142  eval "$as_ac_var=yes"
16143else
16144  $as_echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147	eval "$as_ac_var=no"
16148fi
16149
16150rm -rf conftest.dSYM
16151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16152      conftest$ac_exeext conftest.$ac_ext
16153fi
16154ac_res=`eval 'as_val=${'$as_ac_var'}
16155		 $as_echo "$as_val"'`
16156	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16157$as_echo "$ac_res" >&6; }
16158as_val=`eval 'as_val=${'$as_ac_var'}
16159		 $as_echo "$as_val"'`
16160
16161fi
16162rm -f conftest*
16163
16164      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
16165
16166cat >>confdefs.h <<\_ACEOF
16167#define HAVE_GETADDRINFO /**/
16168_ACEOF
16169
16170        ipv6_cv_getaddrinfo=yes
16171        break
16172      fi
16173    done
16174  fi
16175fi
16176if test $ipv6_cv_getaddrinfo = yes; then
16177
16178{ $as_echo "$as_me:$LINENO: checking for gai_strerror" >&5
16179$as_echo_n "checking for gai_strerror... " >&6; }
16180if test "${ac_cv_func_gai_strerror+set}" = set; then
16181  $as_echo_n "(cached) " >&6
16182else
16183  cat >conftest.$ac_ext <<_ACEOF
16184/* confdefs.h.  */
16185_ACEOF
16186cat confdefs.h >>conftest.$ac_ext
16187cat >>conftest.$ac_ext <<_ACEOF
16188/* end confdefs.h.  */
16189/* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
16190   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16191#define gai_strerror innocuous_gai_strerror
16192
16193/* System header to define __stub macros and hopefully few prototypes,
16194    which can conflict with char gai_strerror (); below.
16195    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16196    <limits.h> exists even on freestanding compilers.  */
16197
16198#ifdef __STDC__
16199# include <limits.h>
16200#else
16201# include <assert.h>
16202#endif
16203
16204#undef gai_strerror
16205
16206/* Override any GCC internal prototype to avoid an error.
16207   Use char because int might match the return type of a GCC
16208   builtin and then its argument prototype would still apply.  */
16209#ifdef __cplusplus
16210extern "C"
16211#endif
16212char gai_strerror ();
16213/* The GNU C library defines this for functions which it implements
16214    to always fail with ENOSYS.  Some functions are actually named
16215    something starting with __ and the normal name is an alias.  */
16216#if defined __stub_gai_strerror || defined __stub___gai_strerror
16217choke me
16218#endif
16219
16220int
16221main ()
16222{
16223return gai_strerror ();
16224  ;
16225  return 0;
16226}
16227_ACEOF
16228rm -f conftest.$ac_objext conftest$ac_exeext
16229if { (ac_try="$ac_link"
16230case "(($ac_try" in
16231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232  *) ac_try_echo=$ac_try;;
16233esac
16234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16235$as_echo "$ac_try_echo") >&5
16236  (eval "$ac_link") 2>conftest.er1
16237  ac_status=$?
16238  grep -v '^ *+' conftest.er1 >conftest.err
16239  rm -f conftest.er1
16240  cat conftest.err >&5
16241  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242  (exit $ac_status); } && {
16243	 test -z "$ac_c_werror_flag" ||
16244	 test ! -s conftest.err
16245       } && test -s conftest$ac_exeext && {
16246	 test "$cross_compiling" = yes ||
16247	 $as_test_x conftest$ac_exeext
16248       }; then
16249  ac_cv_func_gai_strerror=yes
16250else
16251  $as_echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254	ac_cv_func_gai_strerror=no
16255fi
16256
16257rm -rf conftest.dSYM
16258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16259      conftest$ac_exeext conftest.$ac_ext
16260fi
16261{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
16262$as_echo "$ac_cv_func_gai_strerror" >&6; }
16263if test "x$ac_cv_func_gai_strerror" = x""yes; then
16264    ac_cv_lib_socket_gai_strerror=no
16265  ac_cv_lib_inet6_gai_strerror=no
16266
16267else
16268    { $as_echo "$as_me:$LINENO: checking for gai_strerror in -lsocket" >&5
16269$as_echo_n "checking for gai_strerror in -lsocket... " >&6; }
16270if test "${ac_cv_lib_socket_gai_strerror+set}" = set; then
16271  $as_echo_n "(cached) " >&6
16272else
16273  ac_check_lib_save_LIBS=$LIBS
16274LIBS="-lsocket  $LIBS"
16275cat >conftest.$ac_ext <<_ACEOF
16276/* confdefs.h.  */
16277_ACEOF
16278cat confdefs.h >>conftest.$ac_ext
16279cat >>conftest.$ac_ext <<_ACEOF
16280/* end confdefs.h.  */
16281
16282/* Override any GCC internal prototype to avoid an error.
16283   Use char because int might match the return type of a GCC
16284   builtin and then its argument prototype would still apply.  */
16285#ifdef __cplusplus
16286extern "C"
16287#endif
16288char gai_strerror ();
16289int
16290main ()
16291{
16292return gai_strerror ();
16293  ;
16294  return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext conftest$ac_exeext
16298if { (ac_try="$ac_link"
16299case "(($ac_try" in
16300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301  *) ac_try_echo=$ac_try;;
16302esac
16303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16304$as_echo "$ac_try_echo") >&5
16305  (eval "$ac_link") 2>conftest.er1
16306  ac_status=$?
16307  grep -v '^ *+' conftest.er1 >conftest.err
16308  rm -f conftest.er1
16309  cat conftest.err >&5
16310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311  (exit $ac_status); } && {
16312	 test -z "$ac_c_werror_flag" ||
16313	 test ! -s conftest.err
16314       } && test -s conftest$ac_exeext && {
16315	 test "$cross_compiling" = yes ||
16316	 $as_test_x conftest$ac_exeext
16317       }; then
16318  ac_cv_lib_socket_gai_strerror=yes
16319else
16320  $as_echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5
16322
16323	ac_cv_lib_socket_gai_strerror=no
16324fi
16325
16326rm -rf conftest.dSYM
16327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16328      conftest$ac_exeext conftest.$ac_ext
16329LIBS=$ac_check_lib_save_LIBS
16330fi
16331{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gai_strerror" >&5
16332$as_echo "$ac_cv_lib_socket_gai_strerror" >&6; }
16333if test "x$ac_cv_lib_socket_gai_strerror" = x""yes; then
16334      LIBS="$LIBS -lsocket"
16335    ac_cv_lib_inet6_gai_strerror=no
16336
16337else
16338      { $as_echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
16339$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
16340    if test "${ipv6_cv_dir+set}" = set; then
16341  $as_echo_n "(cached) " >&6
16342else
16343        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
16344	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
16345	  break
16346	fi
16347      done
16348fi
16349    { $as_echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
16350$as_echo "$ipv6_cv_dir" >&6; }
16351    if test $ipv6_cv_dir = no; then
16352      ac_cv_lib_inet6_gai_strerror=no
16353    else
16354      if test x$ipv6_libinet6 = x; then
16355	ipv6_libinet6=no
16356	SAVELDFLAGS="$LDFLAGS"
16357	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
16358      fi
16359      { $as_echo "$as_me:$LINENO: checking for gai_strerror in -linet6" >&5
16360$as_echo_n "checking for gai_strerror in -linet6... " >&6; }
16361if test "${ac_cv_lib_inet6_gai_strerror+set}" = set; then
16362  $as_echo_n "(cached) " >&6
16363else
16364  ac_check_lib_save_LIBS=$LIBS
16365LIBS="-linet6  $LIBS"
16366cat >conftest.$ac_ext <<_ACEOF
16367/* confdefs.h.  */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h.  */
16372
16373/* Override any GCC internal prototype to avoid an error.
16374   Use char because int might match the return type of a GCC
16375   builtin and then its argument prototype would still apply.  */
16376#ifdef __cplusplus
16377extern "C"
16378#endif
16379char gai_strerror ();
16380int
16381main ()
16382{
16383return gai_strerror ();
16384  ;
16385  return 0;
16386}
16387_ACEOF
16388rm -f conftest.$ac_objext conftest$ac_exeext
16389if { (ac_try="$ac_link"
16390case "(($ac_try" in
16391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392  *) ac_try_echo=$ac_try;;
16393esac
16394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395$as_echo "$ac_try_echo") >&5
16396  (eval "$ac_link") 2>conftest.er1
16397  ac_status=$?
16398  grep -v '^ *+' conftest.er1 >conftest.err
16399  rm -f conftest.er1
16400  cat conftest.err >&5
16401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402  (exit $ac_status); } && {
16403	 test -z "$ac_c_werror_flag" ||
16404	 test ! -s conftest.err
16405       } && test -s conftest$ac_exeext && {
16406	 test "$cross_compiling" = yes ||
16407	 $as_test_x conftest$ac_exeext
16408       }; then
16409  ac_cv_lib_inet6_gai_strerror=yes
16410else
16411  $as_echo "$as_me: failed program was:" >&5
16412sed 's/^/| /' conftest.$ac_ext >&5
16413
16414	ac_cv_lib_inet6_gai_strerror=no
16415fi
16416
16417rm -rf conftest.dSYM
16418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16419      conftest$ac_exeext conftest.$ac_ext
16420LIBS=$ac_check_lib_save_LIBS
16421fi
16422{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_gai_strerror" >&5
16423$as_echo "$ac_cv_lib_inet6_gai_strerror" >&6; }
16424if test "x$ac_cv_lib_inet6_gai_strerror" = x""yes; then
16425  	if test $ipv6_libinet6 = no; then
16426	  ipv6_libinet6=yes
16427	  LIBS="$LIBS -linet6"
16428	fi
16429fi
16430      if test $ipv6_libinet6 = no; then
16431	LDFLAGS="$SAVELDFLAGS"
16432      fi
16433    fi
16434fi
16435
16436fi
16437ipv6_cv_gai_strerror=no
16438if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
16439     -o $ac_cv_lib_inet6_gai_strerror = yes
16440then
16441  ipv6_cv_gai_strerror=yes
16442fi
16443if test $ipv6_cv_gai_strerror = no; then
16444  if test gai_strerror = getaddrinfo; then
16445    for ipv6_cv_pfx in o n; do
16446      cat >conftest.$ac_ext <<_ACEOF
16447/* confdefs.h.  */
16448_ACEOF
16449cat confdefs.h >>conftest.$ac_ext
16450cat >>conftest.$ac_ext <<_ACEOF
16451/* end confdefs.h.  */
16452#include <netdb.h>
16453
16454_ACEOF
16455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16456  $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then
16457  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
16458{ $as_echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}gai_strerror" >&5
16459$as_echo_n "checking for ${ipv6_cv_pfx}gai_strerror... " >&6; }
16460if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16461  $as_echo_n "(cached) " >&6
16462else
16463  cat >conftest.$ac_ext <<_ACEOF
16464/* confdefs.h.  */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h.  */
16469/* Define ${ipv6_cv_pfx}gai_strerror to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}gai_strerror.
16470   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16471#define ${ipv6_cv_pfx}gai_strerror innocuous_${ipv6_cv_pfx}gai_strerror
16472
16473/* System header to define __stub macros and hopefully few prototypes,
16474    which can conflict with char ${ipv6_cv_pfx}gai_strerror (); below.
16475    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16476    <limits.h> exists even on freestanding compilers.  */
16477
16478#ifdef __STDC__
16479# include <limits.h>
16480#else
16481# include <assert.h>
16482#endif
16483
16484#undef ${ipv6_cv_pfx}gai_strerror
16485
16486/* Override any GCC internal prototype to avoid an error.
16487   Use char because int might match the return type of a GCC
16488   builtin and then its argument prototype would still apply.  */
16489#ifdef __cplusplus
16490extern "C"
16491#endif
16492char ${ipv6_cv_pfx}gai_strerror ();
16493/* The GNU C library defines this for functions which it implements
16494    to always fail with ENOSYS.  Some functions are actually named
16495    something starting with __ and the normal name is an alias.  */
16496#if defined __stub_${ipv6_cv_pfx}gai_strerror || defined __stub___${ipv6_cv_pfx}gai_strerror
16497choke me
16498#endif
16499
16500int
16501main ()
16502{
16503return ${ipv6_cv_pfx}gai_strerror ();
16504  ;
16505  return 0;
16506}
16507_ACEOF
16508rm -f conftest.$ac_objext conftest$ac_exeext
16509if { (ac_try="$ac_link"
16510case "(($ac_try" in
16511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512  *) ac_try_echo=$ac_try;;
16513esac
16514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16515$as_echo "$ac_try_echo") >&5
16516  (eval "$ac_link") 2>conftest.er1
16517  ac_status=$?
16518  grep -v '^ *+' conftest.er1 >conftest.err
16519  rm -f conftest.er1
16520  cat conftest.err >&5
16521  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522  (exit $ac_status); } && {
16523	 test -z "$ac_c_werror_flag" ||
16524	 test ! -s conftest.err
16525       } && test -s conftest$ac_exeext && {
16526	 test "$cross_compiling" = yes ||
16527	 $as_test_x conftest$ac_exeext
16528       }; then
16529  eval "$as_ac_var=yes"
16530else
16531  $as_echo "$as_me: failed program was:" >&5
16532sed 's/^/| /' conftest.$ac_ext >&5
16533
16534	eval "$as_ac_var=no"
16535fi
16536
16537rm -rf conftest.dSYM
16538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16539      conftest$ac_exeext conftest.$ac_ext
16540fi
16541ac_res=`eval 'as_val=${'$as_ac_var'}
16542		 $as_echo "$as_val"'`
16543	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16544$as_echo "$ac_res" >&6; }
16545as_val=`eval 'as_val=${'$as_ac_var'}
16546		 $as_echo "$as_val"'`
16547
16548fi
16549rm -f conftest*
16550
16551      if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
16552
16553cat >>confdefs.h <<\_ACEOF
16554#define HAVE_GETADDRINFO /**/
16555_ACEOF
16556
16557        ipv6_cv_gai_strerror=yes
16558        break
16559      fi
16560    done
16561  fi
16562fi
16563if test $ipv6_cv_gai_strerror = yes; then
16564
16565cat >>confdefs.h <<\_ACEOF
16566#define HAVE_GETADDRINFO /**/
16567_ACEOF
16568
16569                sasl_cv_getaddrinfo=no
16570else
16571  :
16572fi
16573else
16574  :
16575fi
16576if test $sasl_cv_getaddrinfo = yes; then
16577    case " $LIBOBJS " in
16578  *" getaddrinfo.$ac_objext "* ) ;;
16579  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16580 ;;
16581esac
16582
16583    GETADDRINFOOBJS="getaddrinfo.o"
16584    LTGETADDRINFOOBJS="getaddrinfo.lo"
16585fi
16586
16587
16588
16589GETNAMEINFOOBJS=""
16590sasl_cv_getnameinfo=no
16591
16592{ $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
16593$as_echo_n "checking for getnameinfo... " >&6; }
16594if test "${ac_cv_func_getnameinfo+set}" = set; then
16595  $as_echo_n "(cached) " >&6
16596else
16597  cat >conftest.$ac_ext <<_ACEOF
16598/* confdefs.h.  */
16599_ACEOF
16600cat confdefs.h >>conftest.$ac_ext
16601cat >>conftest.$ac_ext <<_ACEOF
16602/* end confdefs.h.  */
16603/* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
16604   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16605#define getnameinfo innocuous_getnameinfo
16606
16607/* System header to define __stub macros and hopefully few prototypes,
16608    which can conflict with char getnameinfo (); below.
16609    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610    <limits.h> exists even on freestanding compilers.  */
16611
16612#ifdef __STDC__
16613# include <limits.h>
16614#else
16615# include <assert.h>
16616#endif
16617
16618#undef getnameinfo
16619
16620/* Override any GCC internal prototype to avoid an error.
16621   Use char because int might match the return type of a GCC
16622   builtin and then its argument prototype would still apply.  */
16623#ifdef __cplusplus
16624extern "C"
16625#endif
16626char getnameinfo ();
16627/* The GNU C library defines this for functions which it implements
16628    to always fail with ENOSYS.  Some functions are actually named
16629    something starting with __ and the normal name is an alias.  */
16630#if defined __stub_getnameinfo || defined __stub___getnameinfo
16631choke me
16632#endif
16633
16634int
16635main ()
16636{
16637return getnameinfo ();
16638  ;
16639  return 0;
16640}
16641_ACEOF
16642rm -f conftest.$ac_objext conftest$ac_exeext
16643if { (ac_try="$ac_link"
16644case "(($ac_try" in
16645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646  *) ac_try_echo=$ac_try;;
16647esac
16648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16649$as_echo "$ac_try_echo") >&5
16650  (eval "$ac_link") 2>conftest.er1
16651  ac_status=$?
16652  grep -v '^ *+' conftest.er1 >conftest.err
16653  rm -f conftest.er1
16654  cat conftest.err >&5
16655  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656  (exit $ac_status); } && {
16657	 test -z "$ac_c_werror_flag" ||
16658	 test ! -s conftest.err
16659       } && test -s conftest$ac_exeext && {
16660	 test "$cross_compiling" = yes ||
16661	 $as_test_x conftest$ac_exeext
16662       }; then
16663  ac_cv_func_getnameinfo=yes
16664else
16665  $as_echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667
16668	ac_cv_func_getnameinfo=no
16669fi
16670
16671rm -rf conftest.dSYM
16672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16673      conftest$ac_exeext conftest.$ac_ext
16674fi
16675{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
16676$as_echo "$ac_cv_func_getnameinfo" >&6; }
16677if test "x$ac_cv_func_getnameinfo" = x""yes; then
16678    ac_cv_lib_socket_getnameinfo=no
16679  ac_cv_lib_inet6_getnameinfo=no
16680
16681else
16682    { $as_echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
16683$as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
16684if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
16685  $as_echo_n "(cached) " >&6
16686else
16687  ac_check_lib_save_LIBS=$LIBS
16688LIBS="-lsocket  $LIBS"
16689cat >conftest.$ac_ext <<_ACEOF
16690/* confdefs.h.  */
16691_ACEOF
16692cat confdefs.h >>conftest.$ac_ext
16693cat >>conftest.$ac_ext <<_ACEOF
16694/* end confdefs.h.  */
16695
16696/* Override any GCC internal prototype to avoid an error.
16697   Use char because int might match the return type of a GCC
16698   builtin and then its argument prototype would still apply.  */
16699#ifdef __cplusplus
16700extern "C"
16701#endif
16702char getnameinfo ();
16703int
16704main ()
16705{
16706return getnameinfo ();
16707  ;
16708  return 0;
16709}
16710_ACEOF
16711rm -f conftest.$ac_objext conftest$ac_exeext
16712if { (ac_try="$ac_link"
16713case "(($ac_try" in
16714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715  *) ac_try_echo=$ac_try;;
16716esac
16717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16718$as_echo "$ac_try_echo") >&5
16719  (eval "$ac_link") 2>conftest.er1
16720  ac_status=$?
16721  grep -v '^ *+' conftest.er1 >conftest.err
16722  rm -f conftest.er1
16723  cat conftest.err >&5
16724  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725  (exit $ac_status); } && {
16726	 test -z "$ac_c_werror_flag" ||
16727	 test ! -s conftest.err
16728       } && test -s conftest$ac_exeext && {
16729	 test "$cross_compiling" = yes ||
16730	 $as_test_x conftest$ac_exeext
16731       }; then
16732  ac_cv_lib_socket_getnameinfo=yes
16733else
16734  $as_echo "$as_me: failed program was:" >&5
16735sed 's/^/| /' conftest.$ac_ext >&5
16736
16737	ac_cv_lib_socket_getnameinfo=no
16738fi
16739
16740rm -rf conftest.dSYM
16741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16742      conftest$ac_exeext conftest.$ac_ext
16743LIBS=$ac_check_lib_save_LIBS
16744fi
16745{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
16746$as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
16747if test "x$ac_cv_lib_socket_getnameinfo" = x""yes; then
16748      LIBS="$LIBS -lsocket"
16749    ac_cv_lib_inet6_getnameinfo=no
16750
16751else
16752      { $as_echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
16753$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
16754    if test "${ipv6_cv_dir+set}" = set; then
16755  $as_echo_n "(cached) " >&6
16756else
16757        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
16758	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
16759	  break
16760	fi
16761      done
16762fi
16763    { $as_echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
16764$as_echo "$ipv6_cv_dir" >&6; }
16765    if test $ipv6_cv_dir = no; then
16766      ac_cv_lib_inet6_getnameinfo=no
16767    else
16768      if test x$ipv6_libinet6 = x; then
16769	ipv6_libinet6=no
16770	SAVELDFLAGS="$LDFLAGS"
16771	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
16772      fi
16773      { $as_echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
16774$as_echo_n "checking for getnameinfo in -linet6... " >&6; }
16775if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
16776  $as_echo_n "(cached) " >&6
16777else
16778  ac_check_lib_save_LIBS=$LIBS
16779LIBS="-linet6  $LIBS"
16780cat >conftest.$ac_ext <<_ACEOF
16781/* confdefs.h.  */
16782_ACEOF
16783cat confdefs.h >>conftest.$ac_ext
16784cat >>conftest.$ac_ext <<_ACEOF
16785/* end confdefs.h.  */
16786
16787/* Override any GCC internal prototype to avoid an error.
16788   Use char because int might match the return type of a GCC
16789   builtin and then its argument prototype would still apply.  */
16790#ifdef __cplusplus
16791extern "C"
16792#endif
16793char getnameinfo ();
16794int
16795main ()
16796{
16797return getnameinfo ();
16798  ;
16799  return 0;
16800}
16801_ACEOF
16802rm -f conftest.$ac_objext conftest$ac_exeext
16803if { (ac_try="$ac_link"
16804case "(($ac_try" in
16805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806  *) ac_try_echo=$ac_try;;
16807esac
16808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16809$as_echo "$ac_try_echo") >&5
16810  (eval "$ac_link") 2>conftest.er1
16811  ac_status=$?
16812  grep -v '^ *+' conftest.er1 >conftest.err
16813  rm -f conftest.er1
16814  cat conftest.err >&5
16815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816  (exit $ac_status); } && {
16817	 test -z "$ac_c_werror_flag" ||
16818	 test ! -s conftest.err
16819       } && test -s conftest$ac_exeext && {
16820	 test "$cross_compiling" = yes ||
16821	 $as_test_x conftest$ac_exeext
16822       }; then
16823  ac_cv_lib_inet6_getnameinfo=yes
16824else
16825  $as_echo "$as_me: failed program was:" >&5
16826sed 's/^/| /' conftest.$ac_ext >&5
16827
16828	ac_cv_lib_inet6_getnameinfo=no
16829fi
16830
16831rm -rf conftest.dSYM
16832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16833      conftest$ac_exeext conftest.$ac_ext
16834LIBS=$ac_check_lib_save_LIBS
16835fi
16836{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
16837$as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
16838if test "x$ac_cv_lib_inet6_getnameinfo" = x""yes; then
16839  	if test $ipv6_libinet6 = no; then
16840	  ipv6_libinet6=yes
16841	  LIBS="$LIBS -linet6"
16842	fi
16843fi
16844      if test $ipv6_libinet6 = no; then
16845	LDFLAGS="$SAVELDFLAGS"
16846      fi
16847    fi
16848fi
16849
16850fi
16851ipv6_cv_getnameinfo=no
16852if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
16853     -o $ac_cv_lib_inet6_getnameinfo = yes
16854then
16855  ipv6_cv_getnameinfo=yes
16856fi
16857if test $ipv6_cv_getnameinfo = no; then
16858  if test getnameinfo = getaddrinfo; then
16859    for ipv6_cv_pfx in o n; do
16860      cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h.  */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h.  */
16866#include <netdb.h>
16867
16868_ACEOF
16869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16870  $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
16871  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
16872{ $as_echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
16873$as_echo_n "checking for ${ipv6_cv_pfx}getnameinfo... " >&6; }
16874if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16875  $as_echo_n "(cached) " >&6
16876else
16877  cat >conftest.$ac_ext <<_ACEOF
16878/* confdefs.h.  */
16879_ACEOF
16880cat confdefs.h >>conftest.$ac_ext
16881cat >>conftest.$ac_ext <<_ACEOF
16882/* end confdefs.h.  */
16883/* Define ${ipv6_cv_pfx}getnameinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getnameinfo.
16884   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16885#define ${ipv6_cv_pfx}getnameinfo innocuous_${ipv6_cv_pfx}getnameinfo
16886
16887/* System header to define __stub macros and hopefully few prototypes,
16888    which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
16889    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16890    <limits.h> exists even on freestanding compilers.  */
16891
16892#ifdef __STDC__
16893# include <limits.h>
16894#else
16895# include <assert.h>
16896#endif
16897
16898#undef ${ipv6_cv_pfx}getnameinfo
16899
16900/* Override any GCC internal prototype to avoid an error.
16901   Use char because int might match the return type of a GCC
16902   builtin and then its argument prototype would still apply.  */
16903#ifdef __cplusplus
16904extern "C"
16905#endif
16906char ${ipv6_cv_pfx}getnameinfo ();
16907/* The GNU C library defines this for functions which it implements
16908    to always fail with ENOSYS.  Some functions are actually named
16909    something starting with __ and the normal name is an alias.  */
16910#if defined __stub_${ipv6_cv_pfx}getnameinfo || defined __stub___${ipv6_cv_pfx}getnameinfo
16911choke me
16912#endif
16913
16914int
16915main ()
16916{
16917return ${ipv6_cv_pfx}getnameinfo ();
16918  ;
16919  return 0;
16920}
16921_ACEOF
16922rm -f conftest.$ac_objext conftest$ac_exeext
16923if { (ac_try="$ac_link"
16924case "(($ac_try" in
16925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926  *) ac_try_echo=$ac_try;;
16927esac
16928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16929$as_echo "$ac_try_echo") >&5
16930  (eval "$ac_link") 2>conftest.er1
16931  ac_status=$?
16932  grep -v '^ *+' conftest.er1 >conftest.err
16933  rm -f conftest.er1
16934  cat conftest.err >&5
16935  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936  (exit $ac_status); } && {
16937	 test -z "$ac_c_werror_flag" ||
16938	 test ! -s conftest.err
16939       } && test -s conftest$ac_exeext && {
16940	 test "$cross_compiling" = yes ||
16941	 $as_test_x conftest$ac_exeext
16942       }; then
16943  eval "$as_ac_var=yes"
16944else
16945  $as_echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
16948	eval "$as_ac_var=no"
16949fi
16950
16951rm -rf conftest.dSYM
16952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16953      conftest$ac_exeext conftest.$ac_ext
16954fi
16955ac_res=`eval 'as_val=${'$as_ac_var'}
16956		 $as_echo "$as_val"'`
16957	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16958$as_echo "$ac_res" >&6; }
16959as_val=`eval 'as_val=${'$as_ac_var'}
16960		 $as_echo "$as_val"'`
16961
16962fi
16963rm -f conftest*
16964
16965      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
16966
16967cat >>confdefs.h <<\_ACEOF
16968#define HAVE_GETADDRINFO /**/
16969_ACEOF
16970
16971        ipv6_cv_getnameinfo=yes
16972        break
16973      fi
16974    done
16975  fi
16976fi
16977if test $ipv6_cv_getnameinfo = yes; then
16978
16979cat >>confdefs.h <<\_ACEOF
16980#define HAVE_GETNAMEINFO /**/
16981_ACEOF
16982
16983else
16984  sasl_cv_getnameinfo=yes
16985fi
16986if test $sasl_cv_getnameinfo = yes; then
16987	case " $LIBOBJS " in
16988  *" getnameinfo.$ac_objext "* ) ;;
16989  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
16990 ;;
16991esac
16992
16993        GETNAMEINFOOBJS="getnameinfo.o"
16994        LTGETNAMEINFOOBJS="getnameinfo.lo"
16995fi
16996
16997
16998
16999LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
17000
17001
17002{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17003$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17004if test "${ac_cv_c_const+set}" = set; then
17005  $as_echo_n "(cached) " >&6
17006else
17007  cat >conftest.$ac_ext <<_ACEOF
17008/* confdefs.h.  */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h.  */
17013
17014int
17015main ()
17016{
17017/* FIXME: Include the comments suggested by Paul. */
17018#ifndef __cplusplus
17019  /* Ultrix mips cc rejects this.  */
17020  typedef int charset[2];
17021  const charset cs;
17022  /* SunOS 4.1.1 cc rejects this.  */
17023  char const *const *pcpcc;
17024  char **ppc;
17025  /* NEC SVR4.0.2 mips cc rejects this.  */
17026  struct point {int x, y;};
17027  static struct point const zero = {0,0};
17028  /* AIX XL C 1.02.0.0 rejects this.
17029     It does not let you subtract one const X* pointer from another in
17030     an arm of an if-expression whose if-part is not a constant
17031     expression */
17032  const char *g = "string";
17033  pcpcc = &g + (g ? g-g : 0);
17034  /* HPUX 7.0 cc rejects these. */
17035  ++pcpcc;
17036  ppc = (char**) pcpcc;
17037  pcpcc = (char const *const *) ppc;
17038  { /* SCO 3.2v4 cc rejects this.  */
17039    char *t;
17040    char const *s = 0 ? (char *) 0 : (char const *) 0;
17041
17042    *t++ = 0;
17043    if (s) return 0;
17044  }
17045  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17046    int x[] = {25, 17};
17047    const int *foo = &x[0];
17048    ++foo;
17049  }
17050  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17051    typedef const int *iptr;
17052    iptr p = 0;
17053    ++p;
17054  }
17055  { /* AIX XL C 1.02.0.0 rejects this saying
17056       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17057    struct s { int j; const int *ap[3]; };
17058    struct s *b; b->j = 5;
17059  }
17060  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17061    const int foo = 10;
17062    if (!foo) return 0;
17063  }
17064  return !cs[0] && !zero.x;
17065#endif
17066
17067  ;
17068  return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext
17072if { (ac_try="$ac_compile"
17073case "(($ac_try" in
17074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075  *) ac_try_echo=$ac_try;;
17076esac
17077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17078$as_echo "$ac_try_echo") >&5
17079  (eval "$ac_compile") 2>conftest.er1
17080  ac_status=$?
17081  grep -v '^ *+' conftest.er1 >conftest.err
17082  rm -f conftest.er1
17083  cat conftest.err >&5
17084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085  (exit $ac_status); } && {
17086	 test -z "$ac_c_werror_flag" ||
17087	 test ! -s conftest.err
17088       } && test -s conftest.$ac_objext; then
17089  ac_cv_c_const=yes
17090else
17091  $as_echo "$as_me: failed program was:" >&5
17092sed 's/^/| /' conftest.$ac_ext >&5
17093
17094	ac_cv_c_const=no
17095fi
17096
17097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098fi
17099{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17100$as_echo "$ac_cv_c_const" >&6; }
17101if test $ac_cv_c_const = no; then
17102
17103cat >>confdefs.h <<\_ACEOF
17104#define const /**/
17105_ACEOF
17106
17107fi
17108
17109{ $as_echo "$as_me:$LINENO: checking for inline" >&5
17110$as_echo_n "checking for inline... " >&6; }
17111if test "${ac_cv_c_inline+set}" = set; then
17112  $as_echo_n "(cached) " >&6
17113else
17114  ac_cv_c_inline=no
17115for ac_kw in inline __inline__ __inline; do
17116  cat >conftest.$ac_ext <<_ACEOF
17117/* confdefs.h.  */
17118_ACEOF
17119cat confdefs.h >>conftest.$ac_ext
17120cat >>conftest.$ac_ext <<_ACEOF
17121/* end confdefs.h.  */
17122#ifndef __cplusplus
17123typedef int foo_t;
17124static $ac_kw foo_t static_foo () {return 0; }
17125$ac_kw foo_t foo () {return 0; }
17126#endif
17127
17128_ACEOF
17129rm -f conftest.$ac_objext
17130if { (ac_try="$ac_compile"
17131case "(($ac_try" in
17132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133  *) ac_try_echo=$ac_try;;
17134esac
17135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17136$as_echo "$ac_try_echo") >&5
17137  (eval "$ac_compile") 2>conftest.er1
17138  ac_status=$?
17139  grep -v '^ *+' conftest.er1 >conftest.err
17140  rm -f conftest.er1
17141  cat conftest.err >&5
17142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143  (exit $ac_status); } && {
17144	 test -z "$ac_c_werror_flag" ||
17145	 test ! -s conftest.err
17146       } && test -s conftest.$ac_objext; then
17147  ac_cv_c_inline=$ac_kw
17148else
17149  $as_echo "$as_me: failed program was:" >&5
17150sed 's/^/| /' conftest.$ac_ext >&5
17151
17152
17153fi
17154
17155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17156  test "$ac_cv_c_inline" != no && break
17157done
17158
17159fi
17160{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17161$as_echo "$ac_cv_c_inline" >&6; }
17162
17163
17164case $ac_cv_c_inline in
17165  inline | yes) ;;
17166  *)
17167    case $ac_cv_c_inline in
17168      no) ac_val=;;
17169      *) ac_val=$ac_cv_c_inline;;
17170    esac
17171    cat >>confdefs.h <<_ACEOF
17172#ifndef __cplusplus
17173#define inline $ac_val
17174#endif
17175_ACEOF
17176    ;;
17177esac
17178
17179{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
17180$as_echo_n "checking for mode_t... " >&6; }
17181if test "${ac_cv_type_mode_t+set}" = set; then
17182  $as_echo_n "(cached) " >&6
17183else
17184  ac_cv_type_mode_t=no
17185cat >conftest.$ac_ext <<_ACEOF
17186/* confdefs.h.  */
17187_ACEOF
17188cat confdefs.h >>conftest.$ac_ext
17189cat >>conftest.$ac_ext <<_ACEOF
17190/* end confdefs.h.  */
17191$ac_includes_default
17192int
17193main ()
17194{
17195if (sizeof (mode_t))
17196       return 0;
17197  ;
17198  return 0;
17199}
17200_ACEOF
17201rm -f conftest.$ac_objext
17202if { (ac_try="$ac_compile"
17203case "(($ac_try" in
17204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205  *) ac_try_echo=$ac_try;;
17206esac
17207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17208$as_echo "$ac_try_echo") >&5
17209  (eval "$ac_compile") 2>conftest.er1
17210  ac_status=$?
17211  grep -v '^ *+' conftest.er1 >conftest.err
17212  rm -f conftest.er1
17213  cat conftest.err >&5
17214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215  (exit $ac_status); } && {
17216	 test -z "$ac_c_werror_flag" ||
17217	 test ! -s conftest.err
17218       } && test -s conftest.$ac_objext; then
17219  cat >conftest.$ac_ext <<_ACEOF
17220/* confdefs.h.  */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h.  */
17225$ac_includes_default
17226int
17227main ()
17228{
17229if (sizeof ((mode_t)))
17230	  return 0;
17231  ;
17232  return 0;
17233}
17234_ACEOF
17235rm -f conftest.$ac_objext
17236if { (ac_try="$ac_compile"
17237case "(($ac_try" in
17238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239  *) ac_try_echo=$ac_try;;
17240esac
17241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17242$as_echo "$ac_try_echo") >&5
17243  (eval "$ac_compile") 2>conftest.er1
17244  ac_status=$?
17245  grep -v '^ *+' conftest.er1 >conftest.err
17246  rm -f conftest.er1
17247  cat conftest.err >&5
17248  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249  (exit $ac_status); } && {
17250	 test -z "$ac_c_werror_flag" ||
17251	 test ! -s conftest.err
17252       } && test -s conftest.$ac_objext; then
17253  :
17254else
17255  $as_echo "$as_me: failed program was:" >&5
17256sed 's/^/| /' conftest.$ac_ext >&5
17257
17258	ac_cv_type_mode_t=yes
17259fi
17260
17261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262else
17263  $as_echo "$as_me: failed program was:" >&5
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
17266
17267fi
17268
17269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17270fi
17271{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17272$as_echo "$ac_cv_type_mode_t" >&6; }
17273if test "x$ac_cv_type_mode_t" = x""yes; then
17274  :
17275else
17276
17277cat >>confdefs.h <<_ACEOF
17278#define mode_t int
17279_ACEOF
17280
17281fi
17282
17283{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
17284$as_echo_n "checking for pid_t... " >&6; }
17285if test "${ac_cv_type_pid_t+set}" = set; then
17286  $as_echo_n "(cached) " >&6
17287else
17288  ac_cv_type_pid_t=no
17289cat >conftest.$ac_ext <<_ACEOF
17290/* confdefs.h.  */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h.  */
17295$ac_includes_default
17296int
17297main ()
17298{
17299if (sizeof (pid_t))
17300       return 0;
17301  ;
17302  return 0;
17303}
17304_ACEOF
17305rm -f conftest.$ac_objext
17306if { (ac_try="$ac_compile"
17307case "(($ac_try" in
17308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309  *) ac_try_echo=$ac_try;;
17310esac
17311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17312$as_echo "$ac_try_echo") >&5
17313  (eval "$ac_compile") 2>conftest.er1
17314  ac_status=$?
17315  grep -v '^ *+' conftest.er1 >conftest.err
17316  rm -f conftest.er1
17317  cat conftest.err >&5
17318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319  (exit $ac_status); } && {
17320	 test -z "$ac_c_werror_flag" ||
17321	 test ! -s conftest.err
17322       } && test -s conftest.$ac_objext; then
17323  cat >conftest.$ac_ext <<_ACEOF
17324/* confdefs.h.  */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h.  */
17329$ac_includes_default
17330int
17331main ()
17332{
17333if (sizeof ((pid_t)))
17334	  return 0;
17335  ;
17336  return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext
17340if { (ac_try="$ac_compile"
17341case "(($ac_try" in
17342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343  *) ac_try_echo=$ac_try;;
17344esac
17345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17346$as_echo "$ac_try_echo") >&5
17347  (eval "$ac_compile") 2>conftest.er1
17348  ac_status=$?
17349  grep -v '^ *+' conftest.er1 >conftest.err
17350  rm -f conftest.er1
17351  cat conftest.err >&5
17352  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353  (exit $ac_status); } && {
17354	 test -z "$ac_c_werror_flag" ||
17355	 test ! -s conftest.err
17356       } && test -s conftest.$ac_objext; then
17357  :
17358else
17359  $as_echo "$as_me: failed program was:" >&5
17360sed 's/^/| /' conftest.$ac_ext >&5
17361
17362	ac_cv_type_pid_t=yes
17363fi
17364
17365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17366else
17367  $as_echo "$as_me: failed program was:" >&5
17368sed 's/^/| /' conftest.$ac_ext >&5
17369
17370
17371fi
17372
17373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374fi
17375{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17376$as_echo "$ac_cv_type_pid_t" >&6; }
17377if test "x$ac_cv_type_pid_t" = x""yes; then
17378  :
17379else
17380
17381cat >>confdefs.h <<_ACEOF
17382#define pid_t int
17383_ACEOF
17384
17385fi
17386
17387{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17388$as_echo_n "checking return type of signal handlers... " >&6; }
17389if test "${ac_cv_type_signal+set}" = set; then
17390  $as_echo_n "(cached) " >&6
17391else
17392  cat >conftest.$ac_ext <<_ACEOF
17393/* confdefs.h.  */
17394_ACEOF
17395cat confdefs.h >>conftest.$ac_ext
17396cat >>conftest.$ac_ext <<_ACEOF
17397/* end confdefs.h.  */
17398#include <sys/types.h>
17399#include <signal.h>
17400
17401int
17402main ()
17403{
17404return *(signal (0, 0)) (0) == 1;
17405  ;
17406  return 0;
17407}
17408_ACEOF
17409rm -f conftest.$ac_objext
17410if { (ac_try="$ac_compile"
17411case "(($ac_try" in
17412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413  *) ac_try_echo=$ac_try;;
17414esac
17415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17416$as_echo "$ac_try_echo") >&5
17417  (eval "$ac_compile") 2>conftest.er1
17418  ac_status=$?
17419  grep -v '^ *+' conftest.er1 >conftest.err
17420  rm -f conftest.er1
17421  cat conftest.err >&5
17422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423  (exit $ac_status); } && {
17424	 test -z "$ac_c_werror_flag" ||
17425	 test ! -s conftest.err
17426       } && test -s conftest.$ac_objext; then
17427  ac_cv_type_signal=int
17428else
17429  $as_echo "$as_me: failed program was:" >&5
17430sed 's/^/| /' conftest.$ac_ext >&5
17431
17432	ac_cv_type_signal=void
17433fi
17434
17435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436fi
17437{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17438$as_echo "$ac_cv_type_signal" >&6; }
17439
17440cat >>confdefs.h <<_ACEOF
17441#define RETSIGTYPE $ac_cv_type_signal
17442_ACEOF
17443
17444
17445
17446{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17447$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17448if test "${ac_cv_header_time+set}" = set; then
17449  $as_echo_n "(cached) " >&6
17450else
17451  cat >conftest.$ac_ext <<_ACEOF
17452/* confdefs.h.  */
17453_ACEOF
17454cat confdefs.h >>conftest.$ac_ext
17455cat >>conftest.$ac_ext <<_ACEOF
17456/* end confdefs.h.  */
17457#include <sys/types.h>
17458#include <sys/time.h>
17459#include <time.h>
17460
17461int
17462main ()
17463{
17464if ((struct tm *) 0)
17465return 0;
17466  ;
17467  return 0;
17468}
17469_ACEOF
17470rm -f conftest.$ac_objext
17471if { (ac_try="$ac_compile"
17472case "(($ac_try" in
17473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474  *) ac_try_echo=$ac_try;;
17475esac
17476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17477$as_echo "$ac_try_echo") >&5
17478  (eval "$ac_compile") 2>conftest.er1
17479  ac_status=$?
17480  grep -v '^ *+' conftest.er1 >conftest.err
17481  rm -f conftest.er1
17482  cat conftest.err >&5
17483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484  (exit $ac_status); } && {
17485	 test -z "$ac_c_werror_flag" ||
17486	 test ! -s conftest.err
17487       } && test -s conftest.$ac_objext; then
17488  ac_cv_header_time=yes
17489else
17490  $as_echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
17493	ac_cv_header_time=no
17494fi
17495
17496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17497fi
17498{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17499$as_echo "$ac_cv_header_time" >&6; }
17500if test $ac_cv_header_time = yes; then
17501
17502cat >>confdefs.h <<\_ACEOF
17503#define TIME_WITH_SYS_TIME 1
17504_ACEOF
17505
17506fi
17507
17508{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17509$as_echo_n "checking for ANSI C header files... " >&6; }
17510if test "${ac_cv_header_stdc+set}" = set; then
17511  $as_echo_n "(cached) " >&6
17512else
17513  cat >conftest.$ac_ext <<_ACEOF
17514/* confdefs.h.  */
17515_ACEOF
17516cat confdefs.h >>conftest.$ac_ext
17517cat >>conftest.$ac_ext <<_ACEOF
17518/* end confdefs.h.  */
17519#include <stdlib.h>
17520#include <stdarg.h>
17521#include <string.h>
17522#include <float.h>
17523
17524int
17525main ()
17526{
17527
17528  ;
17529  return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext
17533if { (ac_try="$ac_compile"
17534case "(($ac_try" in
17535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536  *) ac_try_echo=$ac_try;;
17537esac
17538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17539$as_echo "$ac_try_echo") >&5
17540  (eval "$ac_compile") 2>conftest.er1
17541  ac_status=$?
17542  grep -v '^ *+' conftest.er1 >conftest.err
17543  rm -f conftest.er1
17544  cat conftest.err >&5
17545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546  (exit $ac_status); } && {
17547	 test -z "$ac_c_werror_flag" ||
17548	 test ! -s conftest.err
17549       } && test -s conftest.$ac_objext; then
17550  ac_cv_header_stdc=yes
17551else
17552  $as_echo "$as_me: failed program was:" >&5
17553sed 's/^/| /' conftest.$ac_ext >&5
17554
17555	ac_cv_header_stdc=no
17556fi
17557
17558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559
17560if test $ac_cv_header_stdc = yes; then
17561  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17562  cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h.  */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h.  */
17568#include <string.h>
17569
17570_ACEOF
17571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17572  $EGREP "memchr" >/dev/null 2>&1; then
17573  :
17574else
17575  ac_cv_header_stdc=no
17576fi
17577rm -f conftest*
17578
17579fi
17580
17581if test $ac_cv_header_stdc = yes; then
17582  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17583  cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h.  */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h.  */
17589#include <stdlib.h>
17590
17591_ACEOF
17592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17593  $EGREP "free" >/dev/null 2>&1; then
17594  :
17595else
17596  ac_cv_header_stdc=no
17597fi
17598rm -f conftest*
17599
17600fi
17601
17602if test $ac_cv_header_stdc = yes; then
17603  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17604  if test "$cross_compiling" = yes; then
17605  :
17606else
17607  cat >conftest.$ac_ext <<_ACEOF
17608/* confdefs.h.  */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h.  */
17613#include <ctype.h>
17614#include <stdlib.h>
17615#if ((' ' & 0x0FF) == 0x020)
17616# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17617# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17618#else
17619# define ISLOWER(c) \
17620		   (('a' <= (c) && (c) <= 'i') \
17621		     || ('j' <= (c) && (c) <= 'r') \
17622		     || ('s' <= (c) && (c) <= 'z'))
17623# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17624#endif
17625
17626#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17627int
17628main ()
17629{
17630  int i;
17631  for (i = 0; i < 256; i++)
17632    if (XOR (islower (i), ISLOWER (i))
17633	|| toupper (i) != TOUPPER (i))
17634      return 2;
17635  return 0;
17636}
17637_ACEOF
17638rm -f conftest$ac_exeext
17639if { (ac_try="$ac_link"
17640case "(($ac_try" in
17641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642  *) ac_try_echo=$ac_try;;
17643esac
17644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17645$as_echo "$ac_try_echo") >&5
17646  (eval "$ac_link") 2>&5
17647  ac_status=$?
17648  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17650  { (case "(($ac_try" in
17651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652  *) ac_try_echo=$ac_try;;
17653esac
17654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17655$as_echo "$ac_try_echo") >&5
17656  (eval "$ac_try") 2>&5
17657  ac_status=$?
17658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659  (exit $ac_status); }; }; then
17660  :
17661else
17662  $as_echo "$as_me: program exited with status $ac_status" >&5
17663$as_echo "$as_me: failed program was:" >&5
17664sed 's/^/| /' conftest.$ac_ext >&5
17665
17666( exit $ac_status )
17667ac_cv_header_stdc=no
17668fi
17669rm -rf conftest.dSYM
17670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17671fi
17672
17673
17674fi
17675fi
17676{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17677$as_echo "$ac_cv_header_stdc" >&6; }
17678if test $ac_cv_header_stdc = yes; then
17679
17680cat >>confdefs.h <<\_ACEOF
17681#define STDC_HEADERS 1
17682_ACEOF
17683
17684fi
17685
17686
17687
17688
17689
17690
17691ac_header_dirent=no
17692for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17693  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17694{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17695$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17697  $as_echo_n "(cached) " >&6
17698else
17699  cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h.  */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
17704/* end confdefs.h.  */
17705#include <sys/types.h>
17706#include <$ac_hdr>
17707
17708int
17709main ()
17710{
17711if ((DIR *) 0)
17712return 0;
17713  ;
17714  return 0;
17715}
17716_ACEOF
17717rm -f conftest.$ac_objext
17718if { (ac_try="$ac_compile"
17719case "(($ac_try" in
17720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721  *) ac_try_echo=$ac_try;;
17722esac
17723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17724$as_echo "$ac_try_echo") >&5
17725  (eval "$ac_compile") 2>conftest.er1
17726  ac_status=$?
17727  grep -v '^ *+' conftest.er1 >conftest.err
17728  rm -f conftest.er1
17729  cat conftest.err >&5
17730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731  (exit $ac_status); } && {
17732	 test -z "$ac_c_werror_flag" ||
17733	 test ! -s conftest.err
17734       } && test -s conftest.$ac_objext; then
17735  eval "$as_ac_Header=yes"
17736else
17737  $as_echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
17739
17740	eval "$as_ac_Header=no"
17741fi
17742
17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744fi
17745ac_res=`eval 'as_val=${'$as_ac_Header'}
17746		 $as_echo "$as_val"'`
17747	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17748$as_echo "$ac_res" >&6; }
17749as_val=`eval 'as_val=${'$as_ac_Header'}
17750		 $as_echo "$as_val"'`
17751   if test "x$as_val" = x""yes; then
17752  cat >>confdefs.h <<_ACEOF
17753#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17754_ACEOF
17755
17756ac_header_dirent=$ac_hdr; break
17757fi
17758
17759done
17760# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17761if test $ac_header_dirent = dirent.h; then
17762  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
17763$as_echo_n "checking for library containing opendir... " >&6; }
17764if test "${ac_cv_search_opendir+set}" = set; then
17765  $as_echo_n "(cached) " >&6
17766else
17767  ac_func_search_save_LIBS=$LIBS
17768cat >conftest.$ac_ext <<_ACEOF
17769/* confdefs.h.  */
17770_ACEOF
17771cat confdefs.h >>conftest.$ac_ext
17772cat >>conftest.$ac_ext <<_ACEOF
17773/* end confdefs.h.  */
17774
17775/* Override any GCC internal prototype to avoid an error.
17776   Use char because int might match the return type of a GCC
17777   builtin and then its argument prototype would still apply.  */
17778#ifdef __cplusplus
17779extern "C"
17780#endif
17781char opendir ();
17782int
17783main ()
17784{
17785return opendir ();
17786  ;
17787  return 0;
17788}
17789_ACEOF
17790for ac_lib in '' dir; do
17791  if test -z "$ac_lib"; then
17792    ac_res="none required"
17793  else
17794    ac_res=-l$ac_lib
17795    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17796  fi
17797  rm -f conftest.$ac_objext conftest$ac_exeext
17798if { (ac_try="$ac_link"
17799case "(($ac_try" in
17800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801  *) ac_try_echo=$ac_try;;
17802esac
17803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17804$as_echo "$ac_try_echo") >&5
17805  (eval "$ac_link") 2>conftest.er1
17806  ac_status=$?
17807  grep -v '^ *+' conftest.er1 >conftest.err
17808  rm -f conftest.er1
17809  cat conftest.err >&5
17810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811  (exit $ac_status); } && {
17812	 test -z "$ac_c_werror_flag" ||
17813	 test ! -s conftest.err
17814       } && test -s conftest$ac_exeext && {
17815	 test "$cross_compiling" = yes ||
17816	 $as_test_x conftest$ac_exeext
17817       }; then
17818  ac_cv_search_opendir=$ac_res
17819else
17820  $as_echo "$as_me: failed program was:" >&5
17821sed 's/^/| /' conftest.$ac_ext >&5
17822
17823
17824fi
17825
17826rm -rf conftest.dSYM
17827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17828      conftest$ac_exeext
17829  if test "${ac_cv_search_opendir+set}" = set; then
17830  break
17831fi
17832done
17833if test "${ac_cv_search_opendir+set}" = set; then
17834  :
17835else
17836  ac_cv_search_opendir=no
17837fi
17838rm conftest.$ac_ext
17839LIBS=$ac_func_search_save_LIBS
17840fi
17841{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17842$as_echo "$ac_cv_search_opendir" >&6; }
17843ac_res=$ac_cv_search_opendir
17844if test "$ac_res" != no; then
17845  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17846
17847fi
17848
17849else
17850  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
17851$as_echo_n "checking for library containing opendir... " >&6; }
17852if test "${ac_cv_search_opendir+set}" = set; then
17853  $as_echo_n "(cached) " >&6
17854else
17855  ac_func_search_save_LIBS=$LIBS
17856cat >conftest.$ac_ext <<_ACEOF
17857/* confdefs.h.  */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h.  */
17862
17863/* Override any GCC internal prototype to avoid an error.
17864   Use char because int might match the return type of a GCC
17865   builtin and then its argument prototype would still apply.  */
17866#ifdef __cplusplus
17867extern "C"
17868#endif
17869char opendir ();
17870int
17871main ()
17872{
17873return opendir ();
17874  ;
17875  return 0;
17876}
17877_ACEOF
17878for ac_lib in '' x; do
17879  if test -z "$ac_lib"; then
17880    ac_res="none required"
17881  else
17882    ac_res=-l$ac_lib
17883    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17884  fi
17885  rm -f conftest.$ac_objext conftest$ac_exeext
17886if { (ac_try="$ac_link"
17887case "(($ac_try" in
17888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889  *) ac_try_echo=$ac_try;;
17890esac
17891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17892$as_echo "$ac_try_echo") >&5
17893  (eval "$ac_link") 2>conftest.er1
17894  ac_status=$?
17895  grep -v '^ *+' conftest.er1 >conftest.err
17896  rm -f conftest.er1
17897  cat conftest.err >&5
17898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899  (exit $ac_status); } && {
17900	 test -z "$ac_c_werror_flag" ||
17901	 test ! -s conftest.err
17902       } && test -s conftest$ac_exeext && {
17903	 test "$cross_compiling" = yes ||
17904	 $as_test_x conftest$ac_exeext
17905       }; then
17906  ac_cv_search_opendir=$ac_res
17907else
17908  $as_echo "$as_me: failed program was:" >&5
17909sed 's/^/| /' conftest.$ac_ext >&5
17910
17911
17912fi
17913
17914rm -rf conftest.dSYM
17915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17916      conftest$ac_exeext
17917  if test "${ac_cv_search_opendir+set}" = set; then
17918  break
17919fi
17920done
17921if test "${ac_cv_search_opendir+set}" = set; then
17922  :
17923else
17924  ac_cv_search_opendir=no
17925fi
17926rm conftest.$ac_ext
17927LIBS=$ac_func_search_save_LIBS
17928fi
17929{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17930$as_echo "$ac_cv_search_opendir" >&6; }
17931ac_res=$ac_cv_search_opendir
17932if test "$ac_res" != no; then
17933  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17934
17935fi
17936
17937fi
17938
17939{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
17940$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17941if test "${ac_cv_header_sys_wait_h+set}" = set; then
17942  $as_echo_n "(cached) " >&6
17943else
17944  cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h.  */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h.  */
17950#include <sys/types.h>
17951#include <sys/wait.h>
17952#ifndef WEXITSTATUS
17953# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17954#endif
17955#ifndef WIFEXITED
17956# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17957#endif
17958
17959int
17960main ()
17961{
17962  int s;
17963  wait (&s);
17964  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17965  ;
17966  return 0;
17967}
17968_ACEOF
17969rm -f conftest.$ac_objext
17970if { (ac_try="$ac_compile"
17971case "(($ac_try" in
17972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973  *) ac_try_echo=$ac_try;;
17974esac
17975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17976$as_echo "$ac_try_echo") >&5
17977  (eval "$ac_compile") 2>conftest.er1
17978  ac_status=$?
17979  grep -v '^ *+' conftest.er1 >conftest.err
17980  rm -f conftest.er1
17981  cat conftest.err >&5
17982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983  (exit $ac_status); } && {
17984	 test -z "$ac_c_werror_flag" ||
17985	 test ! -s conftest.err
17986       } && test -s conftest.$ac_objext; then
17987  ac_cv_header_sys_wait_h=yes
17988else
17989  $as_echo "$as_me: failed program was:" >&5
17990sed 's/^/| /' conftest.$ac_ext >&5
17991
17992	ac_cv_header_sys_wait_h=no
17993fi
17994
17995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996fi
17997{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
17998$as_echo "$ac_cv_header_sys_wait_h" >&6; }
17999if test $ac_cv_header_sys_wait_h = yes; then
18000
18001cat >>confdefs.h <<\_ACEOF
18002#define HAVE_SYS_WAIT_H 1
18003_ACEOF
18004
18005fi
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024for ac_header in des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h
18025do
18026as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18028  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18029$as_echo_n "checking for $ac_header... " >&6; }
18030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18031  $as_echo_n "(cached) " >&6
18032fi
18033ac_res=`eval 'as_val=${'$as_ac_Header'}
18034		 $as_echo "$as_val"'`
18035	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18036$as_echo "$ac_res" >&6; }
18037else
18038  # Is the header compilable?
18039{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18040$as_echo_n "checking $ac_header usability... " >&6; }
18041cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h.  */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h.  */
18047$ac_includes_default
18048#include <$ac_header>
18049_ACEOF
18050rm -f conftest.$ac_objext
18051if { (ac_try="$ac_compile"
18052case "(($ac_try" in
18053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054  *) ac_try_echo=$ac_try;;
18055esac
18056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18057$as_echo "$ac_try_echo") >&5
18058  (eval "$ac_compile") 2>conftest.er1
18059  ac_status=$?
18060  grep -v '^ *+' conftest.er1 >conftest.err
18061  rm -f conftest.er1
18062  cat conftest.err >&5
18063  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064  (exit $ac_status); } && {
18065	 test -z "$ac_c_werror_flag" ||
18066	 test ! -s conftest.err
18067       } && test -s conftest.$ac_objext; then
18068  ac_header_compiler=yes
18069else
18070  $as_echo "$as_me: failed program was:" >&5
18071sed 's/^/| /' conftest.$ac_ext >&5
18072
18073	ac_header_compiler=no
18074fi
18075
18076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078$as_echo "$ac_header_compiler" >&6; }
18079
18080# Is the header present?
18081{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18082$as_echo_n "checking $ac_header presence... " >&6; }
18083cat >conftest.$ac_ext <<_ACEOF
18084/* confdefs.h.  */
18085_ACEOF
18086cat confdefs.h >>conftest.$ac_ext
18087cat >>conftest.$ac_ext <<_ACEOF
18088/* end confdefs.h.  */
18089#include <$ac_header>
18090_ACEOF
18091if { (ac_try="$ac_cpp conftest.$ac_ext"
18092case "(($ac_try" in
18093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094  *) ac_try_echo=$ac_try;;
18095esac
18096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18097$as_echo "$ac_try_echo") >&5
18098  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18099  ac_status=$?
18100  grep -v '^ *+' conftest.er1 >conftest.err
18101  rm -f conftest.er1
18102  cat conftest.err >&5
18103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104  (exit $ac_status); } >/dev/null && {
18105	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18106	 test ! -s conftest.err
18107       }; then
18108  ac_header_preproc=yes
18109else
18110  $as_echo "$as_me: failed program was:" >&5
18111sed 's/^/| /' conftest.$ac_ext >&5
18112
18113  ac_header_preproc=no
18114fi
18115
18116rm -f conftest.err conftest.$ac_ext
18117{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18118$as_echo "$ac_header_preproc" >&6; }
18119
18120# So?  What about this header?
18121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18122  yes:no: )
18123    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18124$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18125    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18126$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18127    ac_header_preproc=yes
18128    ;;
18129  no:yes:* )
18130    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18131$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18132    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18133$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18134    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18135$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18136    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18137$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18138    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18139$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18140    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18141$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18142
18143    ;;
18144esac
18145{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18146$as_echo_n "checking for $ac_header... " >&6; }
18147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18148  $as_echo_n "(cached) " >&6
18149else
18150  eval "$as_ac_Header=\$ac_header_preproc"
18151fi
18152ac_res=`eval 'as_val=${'$as_ac_Header'}
18153		 $as_echo "$as_val"'`
18154	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18155$as_echo "$ac_res" >&6; }
18156
18157fi
18158as_val=`eval 'as_val=${'$as_ac_Header'}
18159		 $as_echo "$as_val"'`
18160   if test "x$as_val" = x""yes; then
18161  cat >>confdefs.h <<_ACEOF
18162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18163_ACEOF
18164
18165fi
18166
18167done
18168
18169
18170
18171{ $as_echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
18172$as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; }
18173if test "${ipv6_cv_ss_family+set}" = set; then
18174  $as_echo_n "(cached) " >&6
18175else
18176  cat >conftest.$ac_ext <<_ACEOF
18177/* confdefs.h.  */
18178_ACEOF
18179cat confdefs.h >>conftest.$ac_ext
18180cat >>conftest.$ac_ext <<_ACEOF
18181/* end confdefs.h.  */
18182#include <sys/types.h>
18183#include <sys/socket.h>
18184int
18185main ()
18186{
18187struct sockaddr_storage ss; int i = ss.ss_family;
18188  ;
18189  return 0;
18190}
18191_ACEOF
18192rm -f conftest.$ac_objext
18193if { (ac_try="$ac_compile"
18194case "(($ac_try" in
18195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196  *) ac_try_echo=$ac_try;;
18197esac
18198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18199$as_echo "$ac_try_echo") >&5
18200  (eval "$ac_compile") 2>conftest.er1
18201  ac_status=$?
18202  grep -v '^ *+' conftest.er1 >conftest.err
18203  rm -f conftest.er1
18204  cat conftest.err >&5
18205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206  (exit $ac_status); } && {
18207	 test -z "$ac_c_werror_flag" ||
18208	 test ! -s conftest.err
18209       } && test -s conftest.$ac_objext; then
18210  ipv6_cv_ss_family=yes
18211else
18212  $as_echo "$as_me: failed program was:" >&5
18213sed 's/^/| /' conftest.$ac_ext >&5
18214
18215	ipv6_cv_ss_family=no
18216fi
18217
18218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18219fi
18220if test $ipv6_cv_ss_family = yes; then
18221
18222cat >>confdefs.h <<\_ACEOF
18223#define HAVE_SS_FAMILY /**/
18224_ACEOF
18225
18226else
18227  :
18228fi
18229{ $as_echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
18230$as_echo "$ipv6_cv_ss_family" >&6; }
18231
18232{ $as_echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
18233$as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
18234if test "${ipv6_cv_sa_len+set}" = set; then
18235  $as_echo_n "(cached) " >&6
18236else
18237  cat >conftest.$ac_ext <<_ACEOF
18238/* confdefs.h.  */
18239_ACEOF
18240cat confdefs.h >>conftest.$ac_ext
18241cat >>conftest.$ac_ext <<_ACEOF
18242/* end confdefs.h.  */
18243#include <sys/types.h>
18244#include <sys/socket.h>
18245int
18246main ()
18247{
18248struct sockaddr sa; int i = sa.sa_len;
18249  ;
18250  return 0;
18251}
18252_ACEOF
18253rm -f conftest.$ac_objext
18254if { (ac_try="$ac_compile"
18255case "(($ac_try" in
18256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257  *) ac_try_echo=$ac_try;;
18258esac
18259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18260$as_echo "$ac_try_echo") >&5
18261  (eval "$ac_compile") 2>conftest.er1
18262  ac_status=$?
18263  grep -v '^ *+' conftest.er1 >conftest.err
18264  rm -f conftest.er1
18265  cat conftest.err >&5
18266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267  (exit $ac_status); } && {
18268	 test -z "$ac_c_werror_flag" ||
18269	 test ! -s conftest.err
18270       } && test -s conftest.$ac_objext; then
18271  ipv6_cv_sa_len=yes
18272else
18273  $as_echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276	ipv6_cv_sa_len=no
18277fi
18278
18279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18280fi
18281if test $ipv6_cv_sa_len = yes; then
18282
18283cat >>confdefs.h <<\_ACEOF
18284#define HAVE_SOCKADDR_SA_LEN /**/
18285_ACEOF
18286
18287else
18288  :
18289fi
18290{ $as_echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
18291$as_echo "$ipv6_cv_sa_len" >&6; }
18292
18293{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
18294$as_echo_n "checking for socklen_t... " >&6; }
18295if test "${ipv6_cv_socklen_t+set}" = set; then
18296  $as_echo_n "(cached) " >&6
18297else
18298  cat >conftest.$ac_ext <<_ACEOF
18299/* confdefs.h.  */
18300_ACEOF
18301cat confdefs.h >>conftest.$ac_ext
18302cat >>conftest.$ac_ext <<_ACEOF
18303/* end confdefs.h.  */
18304#include <sys/types.h>
18305#include <sys/socket.h>
18306int
18307main ()
18308{
18309socklen_t len = 0;
18310  ;
18311  return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext conftest$ac_exeext
18315if { (ac_try="$ac_link"
18316case "(($ac_try" in
18317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318  *) ac_try_echo=$ac_try;;
18319esac
18320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18321$as_echo "$ac_try_echo") >&5
18322  (eval "$ac_link") 2>conftest.er1
18323  ac_status=$?
18324  grep -v '^ *+' conftest.er1 >conftest.err
18325  rm -f conftest.er1
18326  cat conftest.err >&5
18327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328  (exit $ac_status); } && {
18329	 test -z "$ac_c_werror_flag" ||
18330	 test ! -s conftest.err
18331       } && test -s conftest$ac_exeext && {
18332	 test "$cross_compiling" = yes ||
18333	 $as_test_x conftest$ac_exeext
18334       }; then
18335  ipv6_cv_socklen_t=yes
18336else
18337  $as_echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340	ipv6_cv_socklen_t=no
18341fi
18342
18343rm -rf conftest.dSYM
18344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18345      conftest$ac_exeext conftest.$ac_ext
18346fi
18347if test $ipv6_cv_socklen_t = yes; then
18348
18349cat >>confdefs.h <<\_ACEOF
18350#define HAVE_SOCKLEN_T /**/
18351_ACEOF
18352
18353else
18354  :
18355fi
18356{ $as_echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
18357$as_echo "$ipv6_cv_socklen_t" >&6; }
18358
18359#AC_FUNC_MEMCMP
18360#AC_FUNC_VPRINTF
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48 getpassphrase
18380do
18381as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18382{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18383$as_echo_n "checking for $ac_func... " >&6; }
18384if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18385  $as_echo_n "(cached) " >&6
18386else
18387  cat >conftest.$ac_ext <<_ACEOF
18388/* confdefs.h.  */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h.  */
18393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18394   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18395#define $ac_func innocuous_$ac_func
18396
18397/* System header to define __stub macros and hopefully few prototypes,
18398    which can conflict with char $ac_func (); below.
18399    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18400    <limits.h> exists even on freestanding compilers.  */
18401
18402#ifdef __STDC__
18403# include <limits.h>
18404#else
18405# include <assert.h>
18406#endif
18407
18408#undef $ac_func
18409
18410/* Override any GCC internal prototype to avoid an error.
18411   Use char because int might match the return type of a GCC
18412   builtin and then its argument prototype would still apply.  */
18413#ifdef __cplusplus
18414extern "C"
18415#endif
18416char $ac_func ();
18417/* The GNU C library defines this for functions which it implements
18418    to always fail with ENOSYS.  Some functions are actually named
18419    something starting with __ and the normal name is an alias.  */
18420#if defined __stub_$ac_func || defined __stub___$ac_func
18421choke me
18422#endif
18423
18424int
18425main ()
18426{
18427return $ac_func ();
18428  ;
18429  return 0;
18430}
18431_ACEOF
18432rm -f conftest.$ac_objext conftest$ac_exeext
18433if { (ac_try="$ac_link"
18434case "(($ac_try" in
18435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436  *) ac_try_echo=$ac_try;;
18437esac
18438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18439$as_echo "$ac_try_echo") >&5
18440  (eval "$ac_link") 2>conftest.er1
18441  ac_status=$?
18442  grep -v '^ *+' conftest.er1 >conftest.err
18443  rm -f conftest.er1
18444  cat conftest.err >&5
18445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446  (exit $ac_status); } && {
18447	 test -z "$ac_c_werror_flag" ||
18448	 test ! -s conftest.err
18449       } && test -s conftest$ac_exeext && {
18450	 test "$cross_compiling" = yes ||
18451	 $as_test_x conftest$ac_exeext
18452       }; then
18453  eval "$as_ac_var=yes"
18454else
18455  $as_echo "$as_me: failed program was:" >&5
18456sed 's/^/| /' conftest.$ac_ext >&5
18457
18458	eval "$as_ac_var=no"
18459fi
18460
18461rm -rf conftest.dSYM
18462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18463      conftest$ac_exeext conftest.$ac_ext
18464fi
18465ac_res=`eval 'as_val=${'$as_ac_var'}
18466		 $as_echo "$as_val"'`
18467	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18468$as_echo "$ac_res" >&6; }
18469as_val=`eval 'as_val=${'$as_ac_var'}
18470		 $as_echo "$as_val"'`
18471   if test "x$as_val" = x""yes; then
18472  cat >>confdefs.h <<_ACEOF
18473#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18474_ACEOF
18475
18476fi
18477done
18478
18479
18480if test $enable_cmulocal = yes; then
18481    { $as_echo "$as_me:$LINENO: WARNING: enabling CMU local kludges" >&5
18482$as_echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
18483
18484cat >>confdefs.h <<\_ACEOF
18485#define KRB4_IGNORE_IP_ADDRESS /**/
18486_ACEOF
18487
18488
18489cat >>confdefs.h <<_ACEOF
18490#define PREFER_MECH "KERBEROS_V4"
18491_ACEOF
18492
18493fi
18494
18495cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h.  */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h.  */
18501#include <sys/socket.h>
18502
18503_ACEOF
18504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18505  $EGREP "sockaddr_storage" >/dev/null 2>&1; then
18506
18507
18508cat >>confdefs.h <<\_ACEOF
18509#define HAVE_STRUCT_SOCKADDR_STORAGE /**/
18510_ACEOF
18511
18512fi
18513rm -f conftest*
18514
18515
18516
18517
18518
18519
18520subdirs="$subdirs saslauthd"
18521
18522
18523
18524
18525
18526
18527
18528
18529ac_config_headers="$ac_config_headers config.h"
18530
18531
18532ac_config_files="$ac_config_files Makefile libsasl2.pc include/Makefile sasldb/Makefile plugins/Makefile lib/Makefile utils/Makefile doc/Makefile sample/Makefile java/Makefile java/CyrusSasl/Makefile java/Test/Makefile java/javax/Makefile java/javax/security/Makefile java/javax/security/auth/Makefile java/javax/security/auth/callback/Makefile pwcheck/Makefile man/Makefile"
18533
18534cat >confcache <<\_ACEOF
18535# This file is a shell script that caches the results of configure
18536# tests run on this system so they can be shared between configure
18537# scripts and configure runs, see configure's option --config-cache.
18538# It is not useful on other systems.  If it contains results you don't
18539# want to keep, you may remove or edit it.
18540#
18541# config.status only pays attention to the cache file if you give it
18542# the --recheck option to rerun configure.
18543#
18544# `ac_cv_env_foo' variables (set or unset) will be overridden when
18545# loading this file, other *unset* `ac_cv_foo' will be assigned the
18546# following values.
18547
18548_ACEOF
18549
18550# The following way of writing the cache mishandles newlines in values,
18551# but we know of no workaround that is simple, portable, and efficient.
18552# So, we kill variables containing newlines.
18553# Ultrix sh set writes to stderr and can't be redirected directly,
18554# and sets the high bit in the cache file unless we assign to the vars.
18555(
18556  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18557    eval ac_val=\$$ac_var
18558    case $ac_val in #(
18559    *${as_nl}*)
18560      case $ac_var in #(
18561      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18562$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18563      esac
18564      case $ac_var in #(
18565      _ | IFS | as_nl) ;; #(
18566      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18567      *) $as_unset $ac_var ;;
18568      esac ;;
18569    esac
18570  done
18571
18572  (set) 2>&1 |
18573    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18574    *${as_nl}ac_space=\ *)
18575      # `set' does not quote correctly, so add quotes (double-quote
18576      # substitution turns \\\\ into \\, and sed turns \\ into \).
18577      sed -n \
18578	"s/'/'\\\\''/g;
18579	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18580      ;; #(
18581    *)
18582      # `set' quotes correctly as required by POSIX, so do not add quotes.
18583      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18584      ;;
18585    esac |
18586    sort
18587) |
18588  sed '
18589     /^ac_cv_env_/b end
18590     t clear
18591     :clear
18592     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18593     t end
18594     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18595     :end' >>confcache
18596if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18597  if test -w "$cache_file"; then
18598    test "x$cache_file" != "x/dev/null" &&
18599      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18600$as_echo "$as_me: updating cache $cache_file" >&6;}
18601    cat confcache >$cache_file
18602  else
18603    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18604$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18605  fi
18606fi
18607rm -f confcache
18608
18609test "x$prefix" = xNONE && prefix=$ac_default_prefix
18610# Let make expand exec_prefix.
18611test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18612
18613DEFS=-DHAVE_CONFIG_H
18614
18615ac_libobjs=
18616ac_ltlibobjs=
18617for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18618  # 1. Remove the extension, and $U if already installed.
18619  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18620  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18621  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18622  #    will be set to the directory where LIBOBJS objects are built.
18623  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18624  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18625done
18626LIBOBJS=$ac_libobjs
18627
18628LTLIBOBJS=$ac_ltlibobjs
18629
18630
18631 if test -n "$EXEEXT"; then
18632  am__EXEEXT_TRUE=
18633  am__EXEEXT_FALSE='#'
18634else
18635  am__EXEEXT_TRUE='#'
18636  am__EXEEXT_FALSE=
18637fi
18638
18639if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18640  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18641Usually this means the macro was only invoked conditionally." >&5
18642$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18643Usually this means the macro was only invoked conditionally." >&2;}
18644   { (exit 1); exit 1; }; }
18645fi
18646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18647  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18648Usually this means the macro was only invoked conditionally." >&5
18649$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18650Usually this means the macro was only invoked conditionally." >&2;}
18651   { (exit 1); exit 1; }; }
18652fi
18653if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
18654  { { $as_echo "$as_me:$LINENO: error: conditional \"JAVA\" was never defined.
18655Usually this means the macro was only invoked conditionally." >&5
18656$as_echo "$as_me: error: conditional \"JAVA\" was never defined.
18657Usually this means the macro was only invoked conditionally." >&2;}
18658   { (exit 1); exit 1; }; }
18659fi
18660if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
18661  { { $as_echo "$as_me:$LINENO: error: conditional \"SAMPLE\" was never defined.
18662Usually this means the macro was only invoked conditionally." >&5
18663$as_echo "$as_me: error: conditional \"SAMPLE\" was never defined.
18664Usually this means the macro was only invoked conditionally." >&2;}
18665   { (exit 1); exit 1; }; }
18666fi
18667if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
18668  { { $as_echo "$as_me:$LINENO: error: conditional \"NO_SASL_DB_MANS\" was never defined.
18669Usually this means the macro was only invoked conditionally." >&5
18670$as_echo "$as_me: error: conditional \"NO_SASL_DB_MANS\" was never defined.
18671Usually this means the macro was only invoked conditionally." >&2;}
18672   { (exit 1); exit 1; }; }
18673fi
18674if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
18675  { { $as_echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
18676Usually this means the macro was only invoked conditionally." >&5
18677$as_echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
18678Usually this means the macro was only invoked conditionally." >&2;}
18679   { (exit 1); exit 1; }; }
18680fi
18681if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
18682  { { $as_echo "$as_me:$LINENO: error: conditional \"PWCHECK\" was never defined.
18683Usually this means the macro was only invoked conditionally." >&5
18684$as_echo "$as_me: error: conditional \"PWCHECK\" was never defined.
18685Usually this means the macro was only invoked conditionally." >&2;}
18686   { (exit 1); exit 1; }; }
18687fi
18688if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
18689  { { $as_echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined.
18690Usually this means the macro was only invoked conditionally." >&5
18691$as_echo "$as_me: error: conditional \"MACOSX\" was never defined.
18692Usually this means the macro was only invoked conditionally." >&2;}
18693   { (exit 1); exit 1; }; }
18694fi
18695
18696: ${CONFIG_STATUS=./config.status}
18697ac_write_fail=0
18698ac_clean_files_save=$ac_clean_files
18699ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18700{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18701$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18702cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18703#! $SHELL
18704# Generated by $as_me.
18705# Run this file to recreate the current configuration.
18706# Compiler output produced by configure, useful for debugging
18707# configure, is in config.log if it exists.
18708
18709debug=false
18710ac_cs_recheck=false
18711ac_cs_silent=false
18712SHELL=\${CONFIG_SHELL-$SHELL}
18713_ACEOF
18714
18715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18716## --------------------- ##
18717## M4sh Initialization.  ##
18718## --------------------- ##
18719
18720# Be more Bourne compatible
18721DUALCASE=1; export DUALCASE # for MKS sh
18722if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18723  emulate sh
18724  NULLCMD=:
18725  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18726  # is contrary to our usage.  Disable this feature.
18727  alias -g '${1+"$@"}'='"$@"'
18728  setopt NO_GLOB_SUBST
18729else
18730  case `(set -o) 2>/dev/null` in
18731  *posix*) set -o posix ;;
18732esac
18733
18734fi
18735
18736
18737
18738
18739# PATH needs CR
18740# Avoid depending upon Character Ranges.
18741as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18742as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18743as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18744as_cr_digits='0123456789'
18745as_cr_alnum=$as_cr_Letters$as_cr_digits
18746
18747as_nl='
18748'
18749export as_nl
18750# Printing a long string crashes Solaris 7 /usr/bin/printf.
18751as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18752as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18753as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18754if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18755  as_echo='printf %s\n'
18756  as_echo_n='printf %s'
18757else
18758  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18759    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18760    as_echo_n='/usr/ucb/echo -n'
18761  else
18762    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18763    as_echo_n_body='eval
18764      arg=$1;
18765      case $arg in
18766      *"$as_nl"*)
18767	expr "X$arg" : "X\\(.*\\)$as_nl";
18768	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18769      esac;
18770      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18771    '
18772    export as_echo_n_body
18773    as_echo_n='sh -c $as_echo_n_body as_echo'
18774  fi
18775  export as_echo_body
18776  as_echo='sh -c $as_echo_body as_echo'
18777fi
18778
18779# The user is always right.
18780if test "${PATH_SEPARATOR+set}" != set; then
18781  PATH_SEPARATOR=:
18782  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18783    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18784      PATH_SEPARATOR=';'
18785  }
18786fi
18787
18788# Support unset when possible.
18789if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18790  as_unset=unset
18791else
18792  as_unset=false
18793fi
18794
18795
18796# IFS
18797# We need space, tab and new line, in precisely that order.  Quoting is
18798# there to prevent editors from complaining about space-tab.
18799# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18800# splitting by setting IFS to empty value.)
18801IFS=" ""	$as_nl"
18802
18803# Find who we are.  Look in the path if we contain no directory separator.
18804case $0 in
18805  *[\\/]* ) as_myself=$0 ;;
18806  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807for as_dir in $PATH
18808do
18809  IFS=$as_save_IFS
18810  test -z "$as_dir" && as_dir=.
18811  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18812done
18813IFS=$as_save_IFS
18814
18815     ;;
18816esac
18817# We did not find ourselves, most probably we were run as `sh COMMAND'
18818# in which case we are not to be found in the path.
18819if test "x$as_myself" = x; then
18820  as_myself=$0
18821fi
18822if test ! -f "$as_myself"; then
18823  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18824  { (exit 1); exit 1; }
18825fi
18826
18827# Work around bugs in pre-3.0 UWIN ksh.
18828for as_var in ENV MAIL MAILPATH
18829do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18830done
18831PS1='$ '
18832PS2='> '
18833PS4='+ '
18834
18835# NLS nuisances.
18836LC_ALL=C
18837export LC_ALL
18838LANGUAGE=C
18839export LANGUAGE
18840
18841# Required to use basename.
18842if expr a : '\(a\)' >/dev/null 2>&1 &&
18843   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18844  as_expr=expr
18845else
18846  as_expr=false
18847fi
18848
18849if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18850  as_basename=basename
18851else
18852  as_basename=false
18853fi
18854
18855
18856# Name of the executable.
18857as_me=`$as_basename -- "$0" ||
18858$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18859	 X"$0" : 'X\(//\)$' \| \
18860	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18861$as_echo X/"$0" |
18862    sed '/^.*\/\([^/][^/]*\)\/*$/{
18863	    s//\1/
18864	    q
18865	  }
18866	  /^X\/\(\/\/\)$/{
18867	    s//\1/
18868	    q
18869	  }
18870	  /^X\/\(\/\).*/{
18871	    s//\1/
18872	    q
18873	  }
18874	  s/.*/./; q'`
18875
18876# CDPATH.
18877$as_unset CDPATH
18878
18879
18880
18881  as_lineno_1=$LINENO
18882  as_lineno_2=$LINENO
18883  test "x$as_lineno_1" != "x$as_lineno_2" &&
18884  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18885
18886  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18887  # uniformly replaced by the line number.  The first 'sed' inserts a
18888  # line-number line after each line using $LINENO; the second 'sed'
18889  # does the real work.  The second script uses 'N' to pair each
18890  # line-number line with the line containing $LINENO, and appends
18891  # trailing '-' during substitution so that $LINENO is not a special
18892  # case at line end.
18893  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18894  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18895  # E. McMahon (1931-1989) for sed's syntax.  :-)
18896  sed -n '
18897    p
18898    /[$]LINENO/=
18899  ' <$as_myself |
18900    sed '
18901      s/[$]LINENO.*/&-/
18902      t lineno
18903      b
18904      :lineno
18905      N
18906      :loop
18907      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18908      t loop
18909      s/-\n.*//
18910    ' >$as_me.lineno &&
18911  chmod +x "$as_me.lineno" ||
18912    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18913   { (exit 1); exit 1; }; }
18914
18915  # Don't try to exec as it changes $[0], causing all sort of problems
18916  # (the dirname of $[0] is not the place where we might find the
18917  # original and so on.  Autoconf is especially sensitive to this).
18918  . "./$as_me.lineno"
18919  # Exit status is that of the last command.
18920  exit
18921}
18922
18923
18924if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18925  as_dirname=dirname
18926else
18927  as_dirname=false
18928fi
18929
18930ECHO_C= ECHO_N= ECHO_T=
18931case `echo -n x` in
18932-n*)
18933  case `echo 'x\c'` in
18934  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18935  *)   ECHO_C='\c';;
18936  esac;;
18937*)
18938  ECHO_N='-n';;
18939esac
18940if expr a : '\(a\)' >/dev/null 2>&1 &&
18941   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18942  as_expr=expr
18943else
18944  as_expr=false
18945fi
18946
18947rm -f conf$$ conf$$.exe conf$$.file
18948if test -d conf$$.dir; then
18949  rm -f conf$$.dir/conf$$.file
18950else
18951  rm -f conf$$.dir
18952  mkdir conf$$.dir 2>/dev/null
18953fi
18954if (echo >conf$$.file) 2>/dev/null; then
18955  if ln -s conf$$.file conf$$ 2>/dev/null; then
18956    as_ln_s='ln -s'
18957    # ... but there are two gotchas:
18958    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18959    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18960    # In both cases, we have to default to `cp -p'.
18961    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18962      as_ln_s='cp -p'
18963  elif ln conf$$.file conf$$ 2>/dev/null; then
18964    as_ln_s=ln
18965  else
18966    as_ln_s='cp -p'
18967  fi
18968else
18969  as_ln_s='cp -p'
18970fi
18971rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18972rmdir conf$$.dir 2>/dev/null
18973
18974if mkdir -p . 2>/dev/null; then
18975  as_mkdir_p=:
18976else
18977  test -d ./-p && rmdir ./-p
18978  as_mkdir_p=false
18979fi
18980
18981if test -x / >/dev/null 2>&1; then
18982  as_test_x='test -x'
18983else
18984  if ls -dL / >/dev/null 2>&1; then
18985    as_ls_L_option=L
18986  else
18987    as_ls_L_option=
18988  fi
18989  as_test_x='
18990    eval sh -c '\''
18991      if test -d "$1"; then
18992	test -d "$1/.";
18993      else
18994	case $1 in
18995	-*)set "./$1";;
18996	esac;
18997	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18998	???[sx]*):;;*)false;;esac;fi
18999    '\'' sh
19000  '
19001fi
19002as_executable_p=$as_test_x
19003
19004# Sed expression to map a string onto a valid CPP name.
19005as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19006
19007# Sed expression to map a string onto a valid variable name.
19008as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19009
19010
19011exec 6>&1
19012
19013# Save the log message, to keep $[0] and so on meaningful, and to
19014# report actual input values of CONFIG_FILES etc. instead of their
19015# values after options handling.
19016ac_log="
19017This file was extended by $as_me, which was
19018generated by GNU Autoconf 2.63.  Invocation command line was
19019
19020  CONFIG_FILES    = $CONFIG_FILES
19021  CONFIG_HEADERS  = $CONFIG_HEADERS
19022  CONFIG_LINKS    = $CONFIG_LINKS
19023  CONFIG_COMMANDS = $CONFIG_COMMANDS
19024  $ $0 $@
19025
19026on `(hostname || uname -n) 2>/dev/null | sed 1q`
19027"
19028
19029_ACEOF
19030
19031case $ac_config_files in *"
19032"*) set x $ac_config_files; shift; ac_config_files=$*;;
19033esac
19034
19035case $ac_config_headers in *"
19036"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19037esac
19038
19039
19040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19041# Files that config.status was made for.
19042config_files="$ac_config_files"
19043config_headers="$ac_config_headers"
19044config_commands="$ac_config_commands"
19045
19046_ACEOF
19047
19048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19049ac_cs_usage="\
19050\`$as_me' instantiates files from templates according to the
19051current configuration.
19052
19053Usage: $0 [OPTION]... [FILE]...
19054
19055  -h, --help       print this help, then exit
19056  -V, --version    print version number and configuration settings, then exit
19057  -q, --quiet, --silent
19058                   do not print progress messages
19059  -d, --debug      don't remove temporary files
19060      --recheck    update $as_me by reconfiguring in the same conditions
19061      --file=FILE[:TEMPLATE]
19062                   instantiate the configuration file FILE
19063      --header=FILE[:TEMPLATE]
19064                   instantiate the configuration header FILE
19065
19066Configuration files:
19067$config_files
19068
19069Configuration headers:
19070$config_headers
19071
19072Configuration commands:
19073$config_commands
19074
19075Report bugs to <bug-autoconf@gnu.org>."
19076
19077_ACEOF
19078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19079ac_cs_version="\\
19080config.status
19081configured by $0, generated by GNU Autoconf 2.63,
19082  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19083
19084Copyright (C) 2008 Free Software Foundation, Inc.
19085This config.status script is free software; the Free Software Foundation
19086gives unlimited permission to copy, distribute and modify it."
19087
19088ac_pwd='$ac_pwd'
19089srcdir='$srcdir'
19090INSTALL='$INSTALL'
19091MKDIR_P='$MKDIR_P'
19092AWK='$AWK'
19093test -n "\$AWK" || AWK=awk
19094_ACEOF
19095
19096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19097# The default lists apply if the user does not specify any file.
19098ac_need_defaults=:
19099while test $# != 0
19100do
19101  case $1 in
19102  --*=*)
19103    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19104    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19105    ac_shift=:
19106    ;;
19107  *)
19108    ac_option=$1
19109    ac_optarg=$2
19110    ac_shift=shift
19111    ;;
19112  esac
19113
19114  case $ac_option in
19115  # Handling of the options.
19116  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19117    ac_cs_recheck=: ;;
19118  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19119    $as_echo "$ac_cs_version"; exit ;;
19120  --debug | --debu | --deb | --de | --d | -d )
19121    debug=: ;;
19122  --file | --fil | --fi | --f )
19123    $ac_shift
19124    case $ac_optarg in
19125    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19126    esac
19127    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19128    ac_need_defaults=false;;
19129  --header | --heade | --head | --hea )
19130    $ac_shift
19131    case $ac_optarg in
19132    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19133    esac
19134    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
19135    ac_need_defaults=false;;
19136  --he | --h)
19137    # Conflict between --help and --header
19138    { $as_echo "$as_me: error: ambiguous option: $1
19139Try \`$0 --help' for more information." >&2
19140   { (exit 1); exit 1; }; };;
19141  --help | --hel | -h )
19142    $as_echo "$ac_cs_usage"; exit ;;
19143  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19144  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19145    ac_cs_silent=: ;;
19146
19147  # This is an error.
19148  -*) { $as_echo "$as_me: error: unrecognized option: $1
19149Try \`$0 --help' for more information." >&2
19150   { (exit 1); exit 1; }; } ;;
19151
19152  *) ac_config_targets="$ac_config_targets $1"
19153     ac_need_defaults=false ;;
19154
19155  esac
19156  shift
19157done
19158
19159ac_configure_extra_args=
19160
19161if $ac_cs_silent; then
19162  exec 6>/dev/null
19163  ac_configure_extra_args="$ac_configure_extra_args --silent"
19164fi
19165
19166_ACEOF
19167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19168if \$ac_cs_recheck; then
19169  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19170  shift
19171  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19172  CONFIG_SHELL='$SHELL'
19173  export CONFIG_SHELL
19174  exec "\$@"
19175fi
19176
19177_ACEOF
19178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19179exec 5>>config.log
19180{
19181  echo
19182  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19183## Running $as_me. ##
19184_ASBOX
19185  $as_echo "$ac_log"
19186} >&5
19187
19188_ACEOF
19189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19190#
19191# INIT-COMMANDS
19192#
19193AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19194
19195_ACEOF
19196
19197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19198
19199# Handling of arguments.
19200for ac_config_target in $ac_config_targets
19201do
19202  case $ac_config_target in
19203    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19204    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19205    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19206    "libsasl2.pc") CONFIG_FILES="$CONFIG_FILES libsasl2.pc" ;;
19207    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19208    "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
19209    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
19210    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19211    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
19212    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19213    "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
19214    "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
19215    "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
19216    "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
19217    "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
19218    "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
19219    "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
19220    "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
19221    "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
19222    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19223
19224  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19225$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19226   { (exit 1); exit 1; }; };;
19227  esac
19228done
19229
19230
19231# If the user did not use the arguments to specify the items to instantiate,
19232# then the envvar interface is used.  Set only those that are not.
19233# We use the long form for the default assignment because of an extremely
19234# bizarre bug on SunOS 4.1.3.
19235if $ac_need_defaults; then
19236  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19237  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19238  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19239fi
19240
19241# Have a temporary directory for convenience.  Make it in the build tree
19242# simply because there is no reason against having it here, and in addition,
19243# creating and moving files from /tmp can sometimes cause problems.
19244# Hook for its removal unless debugging.
19245# Note that there is a small window in which the directory will not be cleaned:
19246# after its creation but before its name has been assigned to `$tmp'.
19247$debug ||
19248{
19249  tmp=
19250  trap 'exit_status=$?
19251  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19252' 0
19253  trap '{ (exit 1); exit 1; }' 1 2 13 15
19254}
19255# Create a (secure) tmp directory for tmp files.
19256
19257{
19258  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19259  test -n "$tmp" && test -d "$tmp"
19260}  ||
19261{
19262  tmp=./conf$$-$RANDOM
19263  (umask 077 && mkdir "$tmp")
19264} ||
19265{
19266   $as_echo "$as_me: cannot create a temporary directory in ." >&2
19267   { (exit 1); exit 1; }
19268}
19269
19270# Set up the scripts for CONFIG_FILES section.
19271# No need to generate them if there are no CONFIG_FILES.
19272# This happens for instance with `./config.status config.h'.
19273if test -n "$CONFIG_FILES"; then
19274
19275
19276ac_cr='
19277'
19278ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19279if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19280  ac_cs_awk_cr='\\r'
19281else
19282  ac_cs_awk_cr=$ac_cr
19283fi
19284
19285echo 'BEGIN {' >"$tmp/subs1.awk" &&
19286_ACEOF
19287
19288
19289{
19290  echo "cat >conf$$subs.awk <<_ACEOF" &&
19291  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19292  echo "_ACEOF"
19293} >conf$$subs.sh ||
19294  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19295$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19296   { (exit 1); exit 1; }; }
19297ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19298ac_delim='%!_!# '
19299for ac_last_try in false false false false false :; do
19300  . ./conf$$subs.sh ||
19301    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19302$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19303   { (exit 1); exit 1; }; }
19304
19305  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19306  if test $ac_delim_n = $ac_delim_num; then
19307    break
19308  elif $ac_last_try; then
19309    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19310$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19311   { (exit 1); exit 1; }; }
19312  else
19313    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19314  fi
19315done
19316rm -f conf$$subs.sh
19317
19318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19319cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19320_ACEOF
19321sed -n '
19322h
19323s/^/S["/; s/!.*/"]=/
19324p
19325g
19326s/^[^!]*!//
19327:repl
19328t repl
19329s/'"$ac_delim"'$//
19330t delim
19331:nl
19332h
19333s/\(.\{148\}\).*/\1/
19334t more1
19335s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19336p
19337n
19338b repl
19339:more1
19340s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19341p
19342g
19343s/.\{148\}//
19344t nl
19345:delim
19346h
19347s/\(.\{148\}\).*/\1/
19348t more2
19349s/["\\]/\\&/g; s/^/"/; s/$/"/
19350p
19351b
19352:more2
19353s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19354p
19355g
19356s/.\{148\}//
19357t delim
19358' <conf$$subs.awk | sed '
19359/^[^""]/{
19360  N
19361  s/\n//
19362}
19363' >>$CONFIG_STATUS || ac_write_fail=1
19364rm -f conf$$subs.awk
19365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19366_ACAWK
19367cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19368  for (key in S) S_is_set[key] = 1
19369  FS = ""
19370
19371}
19372{
19373  line = $ 0
19374  nfields = split(line, field, "@")
19375  substed = 0
19376  len = length(field[1])
19377  for (i = 2; i < nfields; i++) {
19378    key = field[i]
19379    keylen = length(key)
19380    if (S_is_set[key]) {
19381      value = S[key]
19382      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19383      len += length(value) + length(field[++i])
19384      substed = 1
19385    } else
19386      len += 1 + keylen
19387  }
19388
19389  print line
19390}
19391
19392_ACAWK
19393_ACEOF
19394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19395if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19396  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19397else
19398  cat
19399fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19400  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19401$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19402   { (exit 1); exit 1; }; }
19403_ACEOF
19404
19405# VPATH may cause trouble with some makes, so we remove $(srcdir),
19406# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19407# trailing colons and then remove the whole line if VPATH becomes empty
19408# (actually we leave an empty line to preserve line numbers).
19409if test "x$srcdir" = x.; then
19410  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19411s/:*\$(srcdir):*/:/
19412s/:*\${srcdir}:*/:/
19413s/:*@srcdir@:*/:/
19414s/^\([^=]*=[	 ]*\):*/\1/
19415s/:*$//
19416s/^[^=]*=[	 ]*$//
19417}'
19418fi
19419
19420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19421fi # test -n "$CONFIG_FILES"
19422
19423# Set up the scripts for CONFIG_HEADERS section.
19424# No need to generate them if there are no CONFIG_HEADERS.
19425# This happens for instance with `./config.status Makefile'.
19426if test -n "$CONFIG_HEADERS"; then
19427cat >"$tmp/defines.awk" <<\_ACAWK ||
19428BEGIN {
19429_ACEOF
19430
19431# Transform confdefs.h into an awk script `defines.awk', embedded as
19432# here-document in config.status, that substitutes the proper values into
19433# config.h.in to produce config.h.
19434
19435# Create a delimiter string that does not exist in confdefs.h, to ease
19436# handling of long lines.
19437ac_delim='%!_!# '
19438for ac_last_try in false false :; do
19439  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19440  if test -z "$ac_t"; then
19441    break
19442  elif $ac_last_try; then
19443    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19444$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19445   { (exit 1); exit 1; }; }
19446  else
19447    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19448  fi
19449done
19450
19451# For the awk script, D is an array of macro values keyed by name,
19452# likewise P contains macro parameters if any.  Preserve backslash
19453# newline sequences.
19454
19455ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19456sed -n '
19457s/.\{148\}/&'"$ac_delim"'/g
19458t rset
19459:rset
19460s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19461t def
19462d
19463:def
19464s/\\$//
19465t bsnl
19466s/["\\]/\\&/g
19467s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19468D["\1"]=" \3"/p
19469s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19470d
19471:bsnl
19472s/["\\]/\\&/g
19473s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19474D["\1"]=" \3\\\\\\n"\\/p
19475t cont
19476s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19477t cont
19478d
19479:cont
19480n
19481s/.\{148\}/&'"$ac_delim"'/g
19482t clear
19483:clear
19484s/\\$//
19485t bsnlc
19486s/["\\]/\\&/g; s/^/"/; s/$/"/p
19487d
19488:bsnlc
19489s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19490b cont
19491' <confdefs.h | sed '
19492s/'"$ac_delim"'/"\\\
19493"/g' >>$CONFIG_STATUS || ac_write_fail=1
19494
19495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496  for (key in D) D_is_set[key] = 1
19497  FS = ""
19498}
19499/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19500  line = \$ 0
19501  split(line, arg, " ")
19502  if (arg[1] == "#") {
19503    defundef = arg[2]
19504    mac1 = arg[3]
19505  } else {
19506    defundef = substr(arg[1], 2)
19507    mac1 = arg[2]
19508  }
19509  split(mac1, mac2, "(") #)
19510  macro = mac2[1]
19511  prefix = substr(line, 1, index(line, defundef) - 1)
19512  if (D_is_set[macro]) {
19513    # Preserve the white space surrounding the "#".
19514    print prefix "define", macro P[macro] D[macro]
19515    next
19516  } else {
19517    # Replace #undef with comments.  This is necessary, for example,
19518    # in the case of _POSIX_SOURCE, which is predefined and required
19519    # on some systems where configure will not decide to define it.
19520    if (defundef == "undef") {
19521      print "/*", prefix defundef, macro, "*/"
19522      next
19523    }
19524  }
19525}
19526{ print }
19527_ACAWK
19528_ACEOF
19529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19530  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19531$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19532   { (exit 1); exit 1; }; }
19533fi # test -n "$CONFIG_HEADERS"
19534
19535
19536eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19537shift
19538for ac_tag
19539do
19540  case $ac_tag in
19541  :[FHLC]) ac_mode=$ac_tag; continue;;
19542  esac
19543  case $ac_mode$ac_tag in
19544  :[FHL]*:*);;
19545  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19546$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19547   { (exit 1); exit 1; }; };;
19548  :[FH]-) ac_tag=-:-;;
19549  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19550  esac
19551  ac_save_IFS=$IFS
19552  IFS=:
19553  set x $ac_tag
19554  IFS=$ac_save_IFS
19555  shift
19556  ac_file=$1
19557  shift
19558
19559  case $ac_mode in
19560  :L) ac_source=$1;;
19561  :[FH])
19562    ac_file_inputs=
19563    for ac_f
19564    do
19565      case $ac_f in
19566      -) ac_f="$tmp/stdin";;
19567      *) # Look for the file first in the build tree, then in the source tree
19568	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19569	 # because $ac_f cannot contain `:'.
19570	 test -f "$ac_f" ||
19571	   case $ac_f in
19572	   [\\/$]*) false;;
19573	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19574	   esac ||
19575	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19576$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19577   { (exit 1); exit 1; }; };;
19578      esac
19579      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19580      ac_file_inputs="$ac_file_inputs '$ac_f'"
19581    done
19582
19583    # Let's still pretend it is `configure' which instantiates (i.e., don't
19584    # use $as_me), people would be surprised to read:
19585    #    /* config.h.  Generated by config.status.  */
19586    configure_input='Generated from '`
19587	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19588	`' by configure.'
19589    if test x"$ac_file" != x-; then
19590      configure_input="$ac_file.  $configure_input"
19591      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19592$as_echo "$as_me: creating $ac_file" >&6;}
19593    fi
19594    # Neutralize special characters interpreted by sed in replacement strings.
19595    case $configure_input in #(
19596    *\&* | *\|* | *\\* )
19597       ac_sed_conf_input=`$as_echo "$configure_input" |
19598       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19599    *) ac_sed_conf_input=$configure_input;;
19600    esac
19601
19602    case $ac_tag in
19603    *:-:* | *:-) cat >"$tmp/stdin" \
19604      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19605$as_echo "$as_me: error: could not create $ac_file" >&2;}
19606   { (exit 1); exit 1; }; } ;;
19607    esac
19608    ;;
19609  esac
19610
19611  ac_dir=`$as_dirname -- "$ac_file" ||
19612$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19613	 X"$ac_file" : 'X\(//\)[^/]' \| \
19614	 X"$ac_file" : 'X\(//\)$' \| \
19615	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19616$as_echo X"$ac_file" |
19617    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19618	    s//\1/
19619	    q
19620	  }
19621	  /^X\(\/\/\)[^/].*/{
19622	    s//\1/
19623	    q
19624	  }
19625	  /^X\(\/\/\)$/{
19626	    s//\1/
19627	    q
19628	  }
19629	  /^X\(\/\).*/{
19630	    s//\1/
19631	    q
19632	  }
19633	  s/.*/./; q'`
19634  { as_dir="$ac_dir"
19635  case $as_dir in #(
19636  -*) as_dir=./$as_dir;;
19637  esac
19638  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19639    as_dirs=
19640    while :; do
19641      case $as_dir in #(
19642      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19643      *) as_qdir=$as_dir;;
19644      esac
19645      as_dirs="'$as_qdir' $as_dirs"
19646      as_dir=`$as_dirname -- "$as_dir" ||
19647$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19648	 X"$as_dir" : 'X\(//\)[^/]' \| \
19649	 X"$as_dir" : 'X\(//\)$' \| \
19650	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19651$as_echo X"$as_dir" |
19652    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19653	    s//\1/
19654	    q
19655	  }
19656	  /^X\(\/\/\)[^/].*/{
19657	    s//\1/
19658	    q
19659	  }
19660	  /^X\(\/\/\)$/{
19661	    s//\1/
19662	    q
19663	  }
19664	  /^X\(\/\).*/{
19665	    s//\1/
19666	    q
19667	  }
19668	  s/.*/./; q'`
19669      test -d "$as_dir" && break
19670    done
19671    test -z "$as_dirs" || eval "mkdir $as_dirs"
19672  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19673$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19674   { (exit 1); exit 1; }; }; }
19675  ac_builddir=.
19676
19677case "$ac_dir" in
19678.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19679*)
19680  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19681  # A ".." for each directory in $ac_dir_suffix.
19682  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19683  case $ac_top_builddir_sub in
19684  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19685  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19686  esac ;;
19687esac
19688ac_abs_top_builddir=$ac_pwd
19689ac_abs_builddir=$ac_pwd$ac_dir_suffix
19690# for backward compatibility:
19691ac_top_builddir=$ac_top_build_prefix
19692
19693case $srcdir in
19694  .)  # We are building in place.
19695    ac_srcdir=.
19696    ac_top_srcdir=$ac_top_builddir_sub
19697    ac_abs_top_srcdir=$ac_pwd ;;
19698  [\\/]* | ?:[\\/]* )  # Absolute name.
19699    ac_srcdir=$srcdir$ac_dir_suffix;
19700    ac_top_srcdir=$srcdir
19701    ac_abs_top_srcdir=$srcdir ;;
19702  *) # Relative name.
19703    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19704    ac_top_srcdir=$ac_top_build_prefix$srcdir
19705    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19706esac
19707ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19708
19709
19710  case $ac_mode in
19711  :F)
19712  #
19713  # CONFIG_FILE
19714  #
19715
19716  case $INSTALL in
19717  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19718  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19719  esac
19720  ac_MKDIR_P=$MKDIR_P
19721  case $MKDIR_P in
19722  [\\/$]* | ?:[\\/]* ) ;;
19723  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19724  esac
19725_ACEOF
19726
19727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19728# If the template does not know about datarootdir, expand it.
19729# FIXME: This hack should be removed a few years after 2.60.
19730ac_datarootdir_hack=; ac_datarootdir_seen=
19731
19732ac_sed_dataroot='
19733/datarootdir/ {
19734  p
19735  q
19736}
19737/@datadir@/p
19738/@docdir@/p
19739/@infodir@/p
19740/@localedir@/p
19741/@mandir@/p
19742'
19743case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19744*datarootdir*) ac_datarootdir_seen=yes;;
19745*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19746  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19747$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19748_ACEOF
19749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19750  ac_datarootdir_hack='
19751  s&@datadir@&$datadir&g
19752  s&@docdir@&$docdir&g
19753  s&@infodir@&$infodir&g
19754  s&@localedir@&$localedir&g
19755  s&@mandir@&$mandir&g
19756    s&\\\${datarootdir}&$datarootdir&g' ;;
19757esac
19758_ACEOF
19759
19760# Neutralize VPATH when `$srcdir' = `.'.
19761# Shell code in configure.ac might set extrasub.
19762# FIXME: do we really want to maintain this feature?
19763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19764ac_sed_extra="$ac_vpsub
19765$extrasub
19766_ACEOF
19767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19768:t
19769/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19770s|@configure_input@|$ac_sed_conf_input|;t t
19771s&@top_builddir@&$ac_top_builddir_sub&;t t
19772s&@top_build_prefix@&$ac_top_build_prefix&;t t
19773s&@srcdir@&$ac_srcdir&;t t
19774s&@abs_srcdir@&$ac_abs_srcdir&;t t
19775s&@top_srcdir@&$ac_top_srcdir&;t t
19776s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19777s&@builddir@&$ac_builddir&;t t
19778s&@abs_builddir@&$ac_abs_builddir&;t t
19779s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19780s&@INSTALL@&$ac_INSTALL&;t t
19781s&@MKDIR_P@&$ac_MKDIR_P&;t t
19782$ac_datarootdir_hack
19783"
19784eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19785  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19786$as_echo "$as_me: error: could not create $ac_file" >&2;}
19787   { (exit 1); exit 1; }; }
19788
19789test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19790  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19791  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19792  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19793which seems to be undefined.  Please make sure it is defined." >&5
19794$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19795which seems to be undefined.  Please make sure it is defined." >&2;}
19796
19797  rm -f "$tmp/stdin"
19798  case $ac_file in
19799  -) cat "$tmp/out" && rm -f "$tmp/out";;
19800  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19801  esac \
19802  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19803$as_echo "$as_me: error: could not create $ac_file" >&2;}
19804   { (exit 1); exit 1; }; }
19805 ;;
19806  :H)
19807  #
19808  # CONFIG_HEADER
19809  #
19810  if test x"$ac_file" != x-; then
19811    {
19812      $as_echo "/* $configure_input  */" \
19813      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19814    } >"$tmp/config.h" \
19815      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19816$as_echo "$as_me: error: could not create $ac_file" >&2;}
19817   { (exit 1); exit 1; }; }
19818    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19819      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19820$as_echo "$as_me: $ac_file is unchanged" >&6;}
19821    else
19822      rm -f "$ac_file"
19823      mv "$tmp/config.h" "$ac_file" \
19824	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19825$as_echo "$as_me: error: could not create $ac_file" >&2;}
19826   { (exit 1); exit 1; }; }
19827    fi
19828  else
19829    $as_echo "/* $configure_input  */" \
19830      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19831      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19832$as_echo "$as_me: error: could not create -" >&2;}
19833   { (exit 1); exit 1; }; }
19834  fi
19835# Compute "$ac_file"'s index in $config_headers.
19836_am_arg="$ac_file"
19837_am_stamp_count=1
19838for _am_header in $config_headers :; do
19839  case $_am_header in
19840    $_am_arg | $_am_arg:* )
19841      break ;;
19842    * )
19843      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19844  esac
19845done
19846echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19847$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19848	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19849	 X"$_am_arg" : 'X\(//\)$' \| \
19850	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19851$as_echo X"$_am_arg" |
19852    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19853	    s//\1/
19854	    q
19855	  }
19856	  /^X\(\/\/\)[^/].*/{
19857	    s//\1/
19858	    q
19859	  }
19860	  /^X\(\/\/\)$/{
19861	    s//\1/
19862	    q
19863	  }
19864	  /^X\(\/\).*/{
19865	    s//\1/
19866	    q
19867	  }
19868	  s/.*/./; q'`/stamp-h$_am_stamp_count
19869 ;;
19870
19871  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19872$as_echo "$as_me: executing $ac_file commands" >&6;}
19873 ;;
19874  esac
19875
19876
19877  case $ac_file$ac_mode in
19878    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19879  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19880  # are listed without --file.  Let's play safe and only enable the eval
19881  # if we detect the quoting.
19882  case $CONFIG_FILES in
19883  *\'*) eval set x "$CONFIG_FILES" ;;
19884  *)   set x $CONFIG_FILES ;;
19885  esac
19886  shift
19887  for mf
19888  do
19889    # Strip MF so we end up with the name of the file.
19890    mf=`echo "$mf" | sed -e 's/:.*$//'`
19891    # Check whether this is an Automake generated Makefile or not.
19892    # We used to match only the files named `Makefile.in', but
19893    # some people rename them; so instead we look at the file content.
19894    # Grep'ing the first line is not enough: some people post-process
19895    # each Makefile.in and add a new line on top of each file to say so.
19896    # Grep'ing the whole file is not good either: AIX grep has a line
19897    # limit of 2048, but all sed's we know have understand at least 4000.
19898    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19899      dirpart=`$as_dirname -- "$mf" ||
19900$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19901	 X"$mf" : 'X\(//\)[^/]' \| \
19902	 X"$mf" : 'X\(//\)$' \| \
19903	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19904$as_echo X"$mf" |
19905    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19906	    s//\1/
19907	    q
19908	  }
19909	  /^X\(\/\/\)[^/].*/{
19910	    s//\1/
19911	    q
19912	  }
19913	  /^X\(\/\/\)$/{
19914	    s//\1/
19915	    q
19916	  }
19917	  /^X\(\/\).*/{
19918	    s//\1/
19919	    q
19920	  }
19921	  s/.*/./; q'`
19922    else
19923      continue
19924    fi
19925    # Extract the definition of DEPDIR, am__include, and am__quote
19926    # from the Makefile without running `make'.
19927    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19928    test -z "$DEPDIR" && continue
19929    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19930    test -z "am__include" && continue
19931    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19932    # When using ansi2knr, U may be empty or an underscore; expand it
19933    U=`sed -n 's/^U = //p' < "$mf"`
19934    # Find all dependency output files, they are included files with
19935    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19936    # simplest approach to changing $(DEPDIR) to its actual value in the
19937    # expansion.
19938    for file in `sed -n "
19939      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19940	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19941      # Make sure the directory exists.
19942      test -f "$dirpart/$file" && continue
19943      fdir=`$as_dirname -- "$file" ||
19944$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19945	 X"$file" : 'X\(//\)[^/]' \| \
19946	 X"$file" : 'X\(//\)$' \| \
19947	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19948$as_echo X"$file" |
19949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19950	    s//\1/
19951	    q
19952	  }
19953	  /^X\(\/\/\)[^/].*/{
19954	    s//\1/
19955	    q
19956	  }
19957	  /^X\(\/\/\)$/{
19958	    s//\1/
19959	    q
19960	  }
19961	  /^X\(\/\).*/{
19962	    s//\1/
19963	    q
19964	  }
19965	  s/.*/./; q'`
19966      { as_dir=$dirpart/$fdir
19967  case $as_dir in #(
19968  -*) as_dir=./$as_dir;;
19969  esac
19970  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19971    as_dirs=
19972    while :; do
19973      case $as_dir in #(
19974      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19975      *) as_qdir=$as_dir;;
19976      esac
19977      as_dirs="'$as_qdir' $as_dirs"
19978      as_dir=`$as_dirname -- "$as_dir" ||
19979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19980	 X"$as_dir" : 'X\(//\)[^/]' \| \
19981	 X"$as_dir" : 'X\(//\)$' \| \
19982	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19983$as_echo X"$as_dir" |
19984    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19985	    s//\1/
19986	    q
19987	  }
19988	  /^X\(\/\/\)[^/].*/{
19989	    s//\1/
19990	    q
19991	  }
19992	  /^X\(\/\/\)$/{
19993	    s//\1/
19994	    q
19995	  }
19996	  /^X\(\/\).*/{
19997	    s//\1/
19998	    q
19999	  }
20000	  s/.*/./; q'`
20001      test -d "$as_dir" && break
20002    done
20003    test -z "$as_dirs" || eval "mkdir $as_dirs"
20004  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20005$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20006   { (exit 1); exit 1; }; }; }
20007      # echo "creating $dirpart/$file"
20008      echo '# dummy' > "$dirpart/$file"
20009    done
20010  done
20011}
20012 ;;
20013
20014  esac
20015done # for ac_tag
20016
20017
20018{ (exit 0); exit 0; }
20019_ACEOF
20020chmod +x $CONFIG_STATUS
20021ac_clean_files=$ac_clean_files_save
20022
20023test $ac_write_fail = 0 ||
20024  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20025$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20026   { (exit 1); exit 1; }; }
20027
20028
20029# configure is writing to config.log, and then calls config.status.
20030# config.status does its own redirection, appending to config.log.
20031# Unfortunately, on DOS this fails, as config.log is still kept open
20032# by configure, so config.status won't be able to write to it; its
20033# output is simply discarded.  So we exec the FD to /dev/null,
20034# effectively closing config.log, so it can be properly (re)opened and
20035# appended to by config.status.  When coming back to configure, we
20036# need to make the FD available again.
20037if test "$no_create" != yes; then
20038  ac_cs_success=:
20039  ac_config_status_args=
20040  test "$silent" = yes &&
20041    ac_config_status_args="$ac_config_status_args --quiet"
20042  exec 5>/dev/null
20043  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20044  exec 5>>config.log
20045  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20046  # would make configure fail if this is the last instruction.
20047  $ac_cs_success || { (exit 1); exit 1; }
20048fi
20049
20050#
20051# CONFIG_SUBDIRS section.
20052#
20053if test "$no_recursion" != yes; then
20054
20055  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20056  # so they do not pile up.
20057  ac_sub_configure_args=
20058  ac_prev=
20059  eval "set x $ac_configure_args"
20060  shift
20061  for ac_arg
20062  do
20063    if test -n "$ac_prev"; then
20064      ac_prev=
20065      continue
20066    fi
20067    case $ac_arg in
20068    -cache-file | --cache-file | --cache-fil | --cache-fi \
20069    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20070      ac_prev=cache_file ;;
20071    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20072    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20073    | --c=*)
20074      ;;
20075    --config-cache | -C)
20076      ;;
20077    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20078      ac_prev=srcdir ;;
20079    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20080      ;;
20081    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20082      ac_prev=prefix ;;
20083    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20084      ;;
20085    --disable-option-checking)
20086      ;;
20087    *)
20088      case $ac_arg in
20089      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20090      esac
20091      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20092    esac
20093  done
20094
20095  # Always prepend --prefix to ensure using the same prefix
20096  # in subdir configurations.
20097  ac_arg="--prefix=$prefix"
20098  case $ac_arg in
20099  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20100  esac
20101  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20102
20103  # Pass --silent
20104  if test "$silent" = yes; then
20105    ac_sub_configure_args="--silent $ac_sub_configure_args"
20106  fi
20107
20108  # Always prepend --disable-option-checking to silence warnings, since
20109  # different subdirs can have different --enable and --with options.
20110  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20111
20112  ac_popdir=`pwd`
20113  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20114
20115    # Do not complain, so a configure script can configure whichever
20116    # parts of a large source tree are present.
20117    test -d "$srcdir/$ac_dir" || continue
20118
20119    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20120    $as_echo "$as_me:$LINENO: $ac_msg" >&5
20121    $as_echo "$ac_msg" >&6
20122    { as_dir="$ac_dir"
20123  case $as_dir in #(
20124  -*) as_dir=./$as_dir;;
20125  esac
20126  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20127    as_dirs=
20128    while :; do
20129      case $as_dir in #(
20130      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20131      *) as_qdir=$as_dir;;
20132      esac
20133      as_dirs="'$as_qdir' $as_dirs"
20134      as_dir=`$as_dirname -- "$as_dir" ||
20135$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20136	 X"$as_dir" : 'X\(//\)[^/]' \| \
20137	 X"$as_dir" : 'X\(//\)$' \| \
20138	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20139$as_echo X"$as_dir" |
20140    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20141	    s//\1/
20142	    q
20143	  }
20144	  /^X\(\/\/\)[^/].*/{
20145	    s//\1/
20146	    q
20147	  }
20148	  /^X\(\/\/\)$/{
20149	    s//\1/
20150	    q
20151	  }
20152	  /^X\(\/\).*/{
20153	    s//\1/
20154	    q
20155	  }
20156	  s/.*/./; q'`
20157      test -d "$as_dir" && break
20158    done
20159    test -z "$as_dirs" || eval "mkdir $as_dirs"
20160  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20161$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20162   { (exit 1); exit 1; }; }; }
20163    ac_builddir=.
20164
20165case "$ac_dir" in
20166.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20167*)
20168  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20169  # A ".." for each directory in $ac_dir_suffix.
20170  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20171  case $ac_top_builddir_sub in
20172  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20173  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20174  esac ;;
20175esac
20176ac_abs_top_builddir=$ac_pwd
20177ac_abs_builddir=$ac_pwd$ac_dir_suffix
20178# for backward compatibility:
20179ac_top_builddir=$ac_top_build_prefix
20180
20181case $srcdir in
20182  .)  # We are building in place.
20183    ac_srcdir=.
20184    ac_top_srcdir=$ac_top_builddir_sub
20185    ac_abs_top_srcdir=$ac_pwd ;;
20186  [\\/]* | ?:[\\/]* )  # Absolute name.
20187    ac_srcdir=$srcdir$ac_dir_suffix;
20188    ac_top_srcdir=$srcdir
20189    ac_abs_top_srcdir=$srcdir ;;
20190  *) # Relative name.
20191    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20192    ac_top_srcdir=$ac_top_build_prefix$srcdir
20193    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20194esac
20195ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20196
20197
20198    cd "$ac_dir"
20199
20200    # Check for guested configure; otherwise get Cygnus style configure.
20201    if test -f "$ac_srcdir/configure.gnu"; then
20202      ac_sub_configure=$ac_srcdir/configure.gnu
20203    elif test -f "$ac_srcdir/configure"; then
20204      ac_sub_configure=$ac_srcdir/configure
20205    elif test -f "$ac_srcdir/configure.in"; then
20206      # This should be Cygnus configure.
20207      ac_sub_configure=$ac_aux_dir/configure
20208    else
20209      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20210$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20211      ac_sub_configure=
20212    fi
20213
20214    # The recursion is here.
20215    if test -n "$ac_sub_configure"; then
20216      # Make the cache file name correct relative to the subdirectory.
20217      case $cache_file in
20218      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20219      *) # Relative name.
20220	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20221      esac
20222
20223      { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20224$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20225      # The eval makes quoting arguments work.
20226      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20227	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20228	{ { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20229$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20230   { (exit 1); exit 1; }; }
20231    fi
20232
20233    cd "$ac_popdir"
20234  done
20235fi
20236if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20237  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20238$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20239fi
20240
20241
20242echo Configuration Complete.  Type \'make\' to build.
20243