import cyrus-sasl-2.1.23
[cyrus-sasl.git] / saslauthd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="mechanisms.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SASLAUTHD_TRUE SASLAUTHD_FALSE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S LIB_SOCKET EGREP CMU_LIB_SUBDIR LIB_DES SASL_KRB_LIB LIB_CRYPT GSSAPI_LIBS GSSAPIBASE_LIBS LIB_SIA SASL_DB_UTILS SASL_DB_MANS SASL_DB_BACKEND SASL_DB_BACKEND_STATIC SASL_DB_INC SASL_DB_LIB MAIN_COMPAT_OBJ LIB_PAM LDAP_LIBS LTLIBOBJS LIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --enable-krb4           enable KERBEROS_V4 authentication [no]
854   --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
855   --enable-sia            enable SIA authentication no
856   --enable-auth-sasldb    enable experimental SASLdb authentication module no
857   --enable-httpform       enable HTTP form authentication [no]
858
859 Optional Packages:
860   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
861   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
862   --with-saslauthd=DIR    enable use of the saslauth daemon using state dir DIR
863   --with-lib-subdir=DIR   Find libraries in DIR instead of lib
864   --with-openssl=PATH     use OpenSSL from PATH
865   --with-des=DIR          with DES (look in DIR) yes
866   --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
867                           choose specific GSSAPI implementation [[auto]]
868   --with-dbpath=PATH      set the DB path to use /etc/sasldb2
869   --with-dblib=DBLIB      set the DB library to use berkeley
870   --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
871   --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
872   --with-gdbm=PATH        use gdbm from PATH
873   --with-pam=DIR          use PAM (rooted in DIR) yes
874   --with-ipctype={unix,doors}    use ipctype unix
875   --with-ldap=DIR         use LDAP (in DIR) no
876
877 Some influential environment variables:
878   CC          C compiler command
879   CFLAGS      C compiler flags
880   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
881               nonstandard directory <lib dir>
882   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
883               headers in a nonstandard directory <include dir>
884   CPP         C preprocessor
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 _ACEOF
890 fi
891
892 if test "$ac_init_help" = "recursive"; then
893   # If there are subdirs, report their specific --help.
894   ac_popdir=`pwd`
895   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896     test -d $ac_dir || continue
897     ac_builddir=.
898
899 if test "$ac_dir" != .; then
900   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901   # A "../" for each directory in $ac_dir_suffix.
902   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904   ac_dir_suffix= ac_top_builddir=
905 fi
906
907 case $srcdir in
908   .)  # No --srcdir option.  We are building in place.
909     ac_srcdir=.
910     if test -z "$ac_top_builddir"; then
911        ac_top_srcdir=.
912     else
913        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914     fi ;;
915   [\\/]* | ?:[\\/]* )  # Absolute path.
916     ac_srcdir=$srcdir$ac_dir_suffix;
917     ac_top_srcdir=$srcdir ;;
918   *) # Relative path.
919     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920     ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
922 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
923 # absolute.
924 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
925 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
926 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
927 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
928
929     cd $ac_dir
930     # Check for guested configure; otherwise get Cygnus style configure.
931     if test -f $ac_srcdir/configure.gnu; then
932       echo
933       $SHELL $ac_srcdir/configure.gnu  --help=recursive
934     elif test -f $ac_srcdir/configure; then
935       echo
936       $SHELL $ac_srcdir/configure  --help=recursive
937     elif test -f $ac_srcdir/configure.ac ||
938            test -f $ac_srcdir/configure.in; then
939       echo
940       $ac_configure --help
941     else
942       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943     fi
944     cd $ac_popdir
945   done
946 fi
947
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
950   cat <<\_ACEOF
951
952 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
953 Free Software Foundation, Inc.
954 This configure script is free software; the Free Software Foundation
955 gives unlimited permission to copy, distribute and modify it.
956 _ACEOF
957   exit 0
958 fi
959 exec 5>config.log
960 cat >&5 <<_ACEOF
961 This file contains any messages produced by compilers while
962 running configure, to aid debugging if configure makes a mistake.
963
964 It was created by $as_me, which was
965 generated by GNU Autoconf 2.57.  Invocation command line was
966
967   $ $0 $@
968
969 _ACEOF
970 {
971 cat <<_ASUNAME
972 ## --------- ##
973 ## Platform. ##
974 ## --------- ##
975
976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
981
982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
983 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
984
985 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
986 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
988 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
989 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
990 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
991 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
992
993 _ASUNAME
994
995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
996 for as_dir in $PATH
997 do
998   IFS=$as_save_IFS
999   test -z "$as_dir" && as_dir=.
1000   echo "PATH: $as_dir"
1001 done
1002
1003 } >&5
1004
1005 cat >&5 <<_ACEOF
1006
1007
1008 ## ----------- ##
1009 ## Core tests. ##
1010 ## ----------- ##
1011
1012 _ACEOF
1013
1014
1015 # Keep a trace of the command line.
1016 # Strip out --no-create and --no-recursion so they do not pile up.
1017 # Strip out --silent because we don't want to record it for future runs.
1018 # Also quote any args containing shell meta-characters.
1019 # Make two passes to allow for proper duplicate-argument suppression.
1020 ac_configure_args=
1021 ac_configure_args0=
1022 ac_configure_args1=
1023 ac_sep=
1024 ac_must_keep_next=false
1025 for ac_pass in 1 2
1026 do
1027   for ac_arg
1028   do
1029     case $ac_arg in
1030     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1031     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032     | -silent | --silent | --silen | --sile | --sil)
1033       continue ;;
1034     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036     esac
1037     case $ac_pass in
1038     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1039     2)
1040       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1041       if test $ac_must_keep_next = true; then
1042         ac_must_keep_next=false # Got value, back to normal.
1043       else
1044         case $ac_arg in
1045           *=* | --config-cache | -C | -disable-* | --disable-* \
1046           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1047           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1048           | -with-* | --with-* | -without-* | --without-* | --x)
1049             case "$ac_configure_args0 " in
1050               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1051             esac
1052             ;;
1053           -* ) ac_must_keep_next=true ;;
1054         esac
1055       fi
1056       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1057       # Get rid of the leading space.
1058       ac_sep=" "
1059       ;;
1060     esac
1061   done
1062 done
1063 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1064 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1065
1066 # When interrupted or exit'd, cleanup temporary files, and complete
1067 # config.log.  We remove comments because anyway the quotes in there
1068 # would cause problems or look ugly.
1069 # WARNING: Be sure not to use single quotes in there, as some shells,
1070 # such as our DU 5.0 friend, will then `close' the trap.
1071 trap 'exit_status=$?
1072   # Save into config.log some information that might help in debugging.
1073   {
1074     echo
1075
1076     cat <<\_ASBOX
1077 ## ---------------- ##
1078 ## Cache variables. ##
1079 ## ---------------- ##
1080 _ASBOX
1081     echo
1082     # The following way of writing the cache mishandles newlines in values,
1083 {
1084   (set) 2>&1 |
1085     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1086     *ac_space=\ *)
1087       sed -n \
1088         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090       ;;
1091     *)
1092       sed -n \
1093         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1094       ;;
1095     esac;
1096 }
1097     echo
1098
1099     cat <<\_ASBOX
1100 ## ----------------- ##
1101 ## Output variables. ##
1102 ## ----------------- ##
1103 _ASBOX
1104     echo
1105     for ac_var in $ac_subst_vars
1106     do
1107       eval ac_val=$`echo $ac_var`
1108       echo "$ac_var='"'"'$ac_val'"'"'"
1109     done | sort
1110     echo
1111
1112     if test -n "$ac_subst_files"; then
1113       cat <<\_ASBOX
1114 ## ------------- ##
1115 ## Output files. ##
1116 ## ------------- ##
1117 _ASBOX
1118       echo
1119       for ac_var in $ac_subst_files
1120       do
1121         eval ac_val=$`echo $ac_var`
1122         echo "$ac_var='"'"'$ac_val'"'"'"
1123       done | sort
1124       echo
1125     fi
1126
1127     if test -s confdefs.h; then
1128       cat <<\_ASBOX
1129 ## ----------- ##
1130 ## confdefs.h. ##
1131 ## ----------- ##
1132 _ASBOX
1133       echo
1134       sed "/^$/d" confdefs.h | sort
1135       echo
1136     fi
1137     test "$ac_signal" != 0 &&
1138       echo "$as_me: caught signal $ac_signal"
1139     echo "$as_me: exit $exit_status"
1140   } >&5
1141   rm -f core core.* *.core &&
1142   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1143     exit $exit_status
1144      ' 0
1145 for ac_signal in 1 2 13 15; do
1146   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1147 done
1148 ac_signal=0
1149
1150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1151 rm -rf conftest* confdefs.h
1152 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1153 echo >confdefs.h
1154
1155 # Predefined preprocessor variables.
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_NAME "$PACKAGE_NAME"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1169 _ACEOF
1170
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_STRING "$PACKAGE_STRING"
1174 _ACEOF
1175
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1179 _ACEOF
1180
1181
1182 # Let the site file select an alternate cache file if it wants to.
1183 # Prefer explicitly selected file to automatically selected ones.
1184 if test -z "$CONFIG_SITE"; then
1185   if test "x$prefix" != xNONE; then
1186     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1187   else
1188     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1189   fi
1190 fi
1191 for ac_site_file in $CONFIG_SITE; do
1192   if test -r "$ac_site_file"; then
1193     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1194 echo "$as_me: loading site script $ac_site_file" >&6;}
1195     sed 's/^/| /' "$ac_site_file" >&5
1196     . "$ac_site_file"
1197   fi
1198 done
1199
1200 if test -r "$cache_file"; then
1201   # Some versions of bash will fail to source /dev/null (special
1202   # files actually), so we avoid doing that.
1203   if test -f "$cache_file"; then
1204     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1205 echo "$as_me: loading cache $cache_file" >&6;}
1206     case $cache_file in
1207       [\\/]* | ?:[\\/]* ) . $cache_file;;
1208       *)                      . ./$cache_file;;
1209     esac
1210   fi
1211 else
1212   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1213 echo "$as_me: creating cache $cache_file" >&6;}
1214   >$cache_file
1215 fi
1216
1217 # Check that the precious variables saved in the cache have kept the same
1218 # value.
1219 ac_cache_corrupted=false
1220 for ac_var in `(set) 2>&1 |
1221                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1222   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1223   eval ac_new_set=\$ac_env_${ac_var}_set
1224   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1225   eval ac_new_val="\$ac_env_${ac_var}_value"
1226   case $ac_old_set,$ac_new_set in
1227     set,)
1228       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1230       ac_cache_corrupted=: ;;
1231     ,set)
1232       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1234       ac_cache_corrupted=: ;;
1235     ,);;
1236     *)
1237       if test "x$ac_old_val" != "x$ac_new_val"; then
1238         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1239 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1240         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1241 echo "$as_me:   former value:  $ac_old_val" >&2;}
1242         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1243 echo "$as_me:   current value: $ac_new_val" >&2;}
1244         ac_cache_corrupted=:
1245       fi;;
1246   esac
1247   # Pass precious variables to config.status.
1248   if test "$ac_new_set" = set; then
1249     case $ac_new_val in
1250     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1252     *) ac_arg=$ac_var=$ac_new_val ;;
1253     esac
1254     case " $ac_configure_args " in
1255       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1256       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1257     esac
1258   fi
1259 done
1260 if $ac_cache_corrupted; then
1261   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1262 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1263   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1264 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1265    { (exit 1); exit 1; }; }
1266 fi
1267
1268 ac_ext=c
1269 ac_cpp='$CPP $CPPFLAGS'
1270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294 ac_aux_dir=
1295 for ac_dir in config $srcdir/config; do
1296   if test -f $ac_dir/install-sh; then
1297     ac_aux_dir=$ac_dir
1298     ac_install_sh="$ac_aux_dir/install-sh -c"
1299     break
1300   elif test -f $ac_dir/install.sh; then
1301     ac_aux_dir=$ac_dir
1302     ac_install_sh="$ac_aux_dir/install.sh -c"
1303     break
1304   elif test -f $ac_dir/shtool; then
1305     ac_aux_dir=$ac_dir
1306     ac_install_sh="$ac_aux_dir/shtool install -c"
1307     break
1308   fi
1309 done
1310 if test -z "$ac_aux_dir"; then
1311   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1312 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1313    { (exit 1); exit 1; }; }
1314 fi
1315 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1316 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1317 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1318
1319 # Make sure we can run config.sub.
1320 $ac_config_sub sun4 >/dev/null 2>&1 ||
1321   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1322 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1323    { (exit 1); exit 1; }; }
1324
1325 echo "$as_me:$LINENO: checking build system type" >&5
1326 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1327 if test "${ac_cv_build+set}" = set; then
1328   echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330   ac_cv_build_alias=$build_alias
1331 test -z "$ac_cv_build_alias" &&
1332   ac_cv_build_alias=`$ac_config_guess`
1333 test -z "$ac_cv_build_alias" &&
1334   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1335 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1336    { (exit 1); exit 1; }; }
1337 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1338   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1339 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1340    { (exit 1); exit 1; }; }
1341
1342 fi
1343 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1344 echo "${ECHO_T}$ac_cv_build" >&6
1345 build=$ac_cv_build
1346 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1347 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1348 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1349
1350
1351 echo "$as_me:$LINENO: checking host system type" >&5
1352 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1353 if test "${ac_cv_host+set}" = set; then
1354   echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356   ac_cv_host_alias=$host_alias
1357 test -z "$ac_cv_host_alias" &&
1358   ac_cv_host_alias=$ac_cv_build_alias
1359 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1360   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1361 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1362    { (exit 1); exit 1; }; }
1363
1364 fi
1365 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1366 echo "${ECHO_T}$ac_cv_host" >&6
1367 host=$ac_cv_host
1368 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1371
1372
1373
1374
1375 # Check whether --with-saslauthd or --without-saslauthd was given.
1376 if test "${with_saslauthd+set}" = set; then
1377   withval="$with_saslauthd"
1378   with_saslauthd=$withval
1379 else
1380   with_saslauthd=yes
1381 fi;
1382   if test "$with_saslauthd" = yes; then
1383     with_saslauthd="/var/state/saslauthd"
1384   fi
1385
1386 cat >>confdefs.h <<\_ACEOF
1387 #define HAVE_SASLAUTHD
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
1393 _ACEOF
1394
1395
1396
1397 if test "$with_saslauthd" != no; then
1398   SASLAUTHD_TRUE=
1399   SASLAUTHD_FALSE='#'
1400 else
1401   SASLAUTHD_TRUE='#'
1402   SASLAUTHD_FALSE=
1403 fi
1404
1405
1406 am__api_version="1.7"
1407 # Find a good install program.  We prefer a C program (faster),
1408 # so one script is as good as another.  But avoid the broken or
1409 # incompatible versions:
1410 # SysV /etc/install, /usr/sbin/install
1411 # SunOS /usr/etc/install
1412 # IRIX /sbin/install
1413 # AIX /bin/install
1414 # AmigaOS /C/install, which installs bootblocks on floppy discs
1415 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1416 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1417 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1418 # ./install, which can be erroneously created by make from ./install.sh.
1419 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1420 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1421 if test -z "$INSTALL"; then
1422 if test "${ac_cv_path_install+set}" = set; then
1423   echo $ECHO_N "(cached) $ECHO_C" >&6
1424 else
1425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $PATH
1427 do
1428   IFS=$as_save_IFS
1429   test -z "$as_dir" && as_dir=.
1430   # Account for people who put trailing slashes in PATH elements.
1431 case $as_dir/ in
1432   ./ | .// | /cC/* | \
1433   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1434   /usr/ucb/* ) ;;
1435   *)
1436     # OSF1 and SCO ODT 3.0 have their own names for install.
1437     # Don't use installbsd from OSF since it installs stuff as root
1438     # by default.
1439     for ac_prog in ginstall scoinst install; do
1440       for ac_exec_ext in '' $ac_executable_extensions; do
1441         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1442           if test $ac_prog = install &&
1443             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1444             # AIX install.  It has an incompatible calling convention.
1445             :
1446           elif test $ac_prog = install &&
1447             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1448             # program-specific install script used by HP pwplus--don't use.
1449             :
1450           else
1451             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1452             break 3
1453           fi
1454         fi
1455       done
1456     done
1457     ;;
1458 esac
1459 done
1460
1461
1462 fi
1463   if test "${ac_cv_path_install+set}" = set; then
1464     INSTALL=$ac_cv_path_install
1465   else
1466     # As a last resort, use the slow shell script.  We don't cache a
1467     # path for INSTALL within a source directory, because that will
1468     # break other packages using the cache if that directory is
1469     # removed, or if the path is relative.
1470     INSTALL=$ac_install_sh
1471   fi
1472 fi
1473 echo "$as_me:$LINENO: result: $INSTALL" >&5
1474 echo "${ECHO_T}$INSTALL" >&6
1475
1476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1477 # It thinks the first close brace ends the variable substitution.
1478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1479
1480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1481
1482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1483
1484 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1485 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1486 # Just in case
1487 sleep 1
1488 echo timestamp > conftest.file
1489 # Do `set' in a subshell so we don't clobber the current shell's
1490 # arguments.  Must try -L first in case configure is actually a
1491 # symlink; some systems play weird games with the mod time of symlinks
1492 # (eg FreeBSD returns the mod time of the symlink's containing
1493 # directory).
1494 if (
1495    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1496    if test "$*" = "X"; then
1497       # -L didn't work.
1498       set X `ls -t $srcdir/configure conftest.file`
1499    fi
1500    rm -f conftest.file
1501    if test "$*" != "X $srcdir/configure conftest.file" \
1502       && test "$*" != "X conftest.file $srcdir/configure"; then
1503
1504       # If neither matched, then we have a broken ls.  This can happen
1505       # if, for instance, CONFIG_SHELL is bash and it inherits a
1506       # broken ls alias from the environment.  This has actually
1507       # happened.  Such a system could not be considered "sane".
1508       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1509 alias in your environment" >&5
1510 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1511 alias in your environment" >&2;}
1512    { (exit 1); exit 1; }; }
1513    fi
1514
1515    test "$2" = conftest.file
1516    )
1517 then
1518    # Ok.
1519    :
1520 else
1521    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1522 Check your system clock" >&5
1523 echo "$as_me: error: newly created file is older than distributed files!
1524 Check your system clock" >&2;}
1525    { (exit 1); exit 1; }; }
1526 fi
1527 echo "$as_me:$LINENO: result: yes" >&5
1528 echo "${ECHO_T}yes" >&6
1529 test "$program_prefix" != NONE &&
1530   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1531 # Use a double $ so make ignores it.
1532 test "$program_suffix" != NONE &&
1533   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1534 # Double any \ or $.  echo might interpret backslashes.
1535 # By default was `s,x,x', remove it if useless.
1536 cat <<\_ACEOF >conftest.sed
1537 s/[\\$]/&&/g;s/;s,x,x,$//
1538 _ACEOF
1539 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1540 rm conftest.sed
1541
1542
1543 # expand $ac_aux_dir to an absolute path
1544 am_aux_dir=`cd $ac_aux_dir && pwd`
1545
1546 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1547 # Use eval to expand $SHELL
1548 if eval "$MISSING --run true"; then
1549   am_missing_run="$MISSING --run "
1550 else
1551   am_missing_run=
1552   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1553 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1554 fi
1555
1556 for ac_prog in gawk mawk nawk awk
1557 do
1558   # Extract the first word of "$ac_prog", so it can be a program name with args.
1559 set dummy $ac_prog; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_AWK+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$AWK"; then
1566   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_AWK="$ac_prog"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 AWK=$ac_cv_prog_AWK
1585 if test -n "$AWK"; then
1586   echo "$as_me:$LINENO: result: $AWK" >&5
1587 echo "${ECHO_T}$AWK" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593   test -n "$AWK" && break
1594 done
1595
1596 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1597 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1598 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1599 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   cat >conftest.make <<\_ACEOF
1603 all:
1604         @echo 'ac_maketemp="$(MAKE)"'
1605 _ACEOF
1606 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1607 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1608 if test -n "$ac_maketemp"; then
1609   eval ac_cv_prog_make_${ac_make}_set=yes
1610 else
1611   eval ac_cv_prog_make_${ac_make}_set=no
1612 fi
1613 rm -f conftest.make
1614 fi
1615 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1616   echo "$as_me:$LINENO: result: yes" >&5
1617 echo "${ECHO_T}yes" >&6
1618   SET_MAKE=
1619 else
1620   echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622   SET_MAKE="MAKE=${MAKE-make}"
1623 fi
1624
1625 rm -rf .tst 2>/dev/null
1626 mkdir .tst 2>/dev/null
1627 if test -d .tst; then
1628   am__leading_dot=.
1629 else
1630   am__leading_dot=_
1631 fi
1632 rmdir .tst 2>/dev/null
1633
1634  # test to see if srcdir already configured
1635 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1636    test -f $srcdir/config.status; then
1637   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1638 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1639    { (exit 1); exit 1; }; }
1640 fi
1641
1642 # test whether we have cygpath
1643 if test -z "$CYGPATH_W"; then
1644   if (cygpath --version) >/dev/null 2>/dev/null; then
1645     CYGPATH_W='cygpath -w'
1646   else
1647     CYGPATH_W=echo
1648   fi
1649 fi
1650
1651
1652 # Define the identity of the package.
1653  PACKAGE=saslauthd
1654  VERSION=2.1.23
1655
1656
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE "$PACKAGE"
1659 _ACEOF
1660
1661
1662 cat >>confdefs.h <<_ACEOF
1663 #define VERSION "$VERSION"
1664 _ACEOF
1665
1666 # Some tools Automake needs.
1667
1668 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1669
1670
1671 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1672
1673
1674 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1675
1676
1677 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1678
1679
1680 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1681
1682
1683 AMTAR=${AMTAR-"${am_missing_run}tar"}
1684
1685 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1686
1687 # Installed binaries are usually stripped using `strip' when the user
1688 # run `make install-strip'.  However `strip' might not be the right
1689 # tool to use in cross-compilation environments, therefore Automake
1690 # will honor the `STRIP' environment variable to overrule this program.
1691 if test "$cross_compiling" != no; then
1692   if test -n "$ac_tool_prefix"; then
1693   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1694 set dummy ${ac_tool_prefix}strip; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_STRIP+set}" = set; then
1698   echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700   if test -n "$STRIP"; then
1701   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1702 else
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706   IFS=$as_save_IFS
1707   test -z "$as_dir" && as_dir=.
1708   for ac_exec_ext in '' $ac_executable_extensions; do
1709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712     break 2
1713   fi
1714 done
1715 done
1716
1717 fi
1718 fi
1719 STRIP=$ac_cv_prog_STRIP
1720 if test -n "$STRIP"; then
1721   echo "$as_me:$LINENO: result: $STRIP" >&5
1722 echo "${ECHO_T}$STRIP" >&6
1723 else
1724   echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1726 fi
1727
1728 fi
1729 if test -z "$ac_cv_prog_STRIP"; then
1730   ac_ct_STRIP=$STRIP
1731   # Extract the first word of "strip", so it can be a program name with args.
1732 set dummy strip; ac_word=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1736   echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738   if test -n "$ac_ct_STRIP"; then
1739   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1740 else
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 for as_dir in $PATH
1743 do
1744   IFS=$as_save_IFS
1745   test -z "$as_dir" && as_dir=.
1746   for ac_exec_ext in '' $ac_executable_extensions; do
1747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748     ac_cv_prog_ac_ct_STRIP="strip"
1749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750     break 2
1751   fi
1752 done
1753 done
1754
1755   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1756 fi
1757 fi
1758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1759 if test -n "$ac_ct_STRIP"; then
1760   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1761 echo "${ECHO_T}$ac_ct_STRIP" >&6
1762 else
1763   echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767   STRIP=$ac_ct_STRIP
1768 else
1769   STRIP="$ac_cv_prog_STRIP"
1770 fi
1771
1772 fi
1773 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1774
1775 # We need awk for the "check" target.  The system "awk" is bad on
1776 # some platforms.
1777
1778
1779
1780
1781
1782         ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
1783
1784
1785 ac_ext=c
1786 ac_cpp='$CPP $CPPFLAGS'
1787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1790 if test -n "$ac_tool_prefix"; then
1791   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_CC+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   if test -n "$CC"; then
1799   ac_cv_prog_CC="$CC" # Let the user override the test.
1800 else
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1803 do
1804   IFS=$as_save_IFS
1805   test -z "$as_dir" && as_dir=.
1806   for ac_exec_ext in '' $ac_executable_extensions; do
1807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810     break 2
1811   fi
1812 done
1813 done
1814
1815 fi
1816 fi
1817 CC=$ac_cv_prog_CC
1818 if test -n "$CC"; then
1819   echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1821 else
1822   echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826 fi
1827 if test -z "$ac_cv_prog_CC"; then
1828   ac_ct_CC=$CC
1829   # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834   echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836   if test -n "$ac_ct_CC"; then
1837   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842   IFS=$as_save_IFS
1843   test -z "$as_dir" && as_dir=.
1844   for ac_exec_ext in '' $ac_executable_extensions; do
1845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846     ac_cv_prog_ac_ct_CC="gcc"
1847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848     break 2
1849   fi
1850 done
1851 done
1852
1853 fi
1854 fi
1855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1856 if test -n "$ac_ct_CC"; then
1857   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1858 echo "${ECHO_T}$ac_ct_CC" >&6
1859 else
1860   echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862 fi
1863
1864   CC=$ac_ct_CC
1865 else
1866   CC="$ac_cv_prog_CC"
1867 fi
1868
1869 if test -z "$CC"; then
1870   if test -n "$ac_tool_prefix"; then
1871   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}cc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$CC"; then
1879   ac_cv_prog_CC="$CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888     ac_cv_prog_CC="${ac_tool_prefix}cc"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899   echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1901 else
1902   echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906 fi
1907 if test -z "$ac_cv_prog_CC"; then
1908   ac_ct_CC=$CC
1909   # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$ac_ct_CC"; then
1917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926     ac_cv_prog_ac_ct_CC="cc"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944   CC=$ac_ct_CC
1945 else
1946   CC="$ac_cv_prog_CC"
1947 fi
1948
1949 fi
1950 if test -z "$CC"; then
1951   # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$CC"; then
1959   ac_cv_prog_CC="$CC" # Let the user override the test.
1960 else
1961   ac_prog_rejected=no
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965   IFS=$as_save_IFS
1966   test -z "$as_dir" && as_dir=.
1967   for ac_exec_ext in '' $ac_executable_extensions; do
1968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1970        ac_prog_rejected=yes
1971        continue
1972      fi
1973     ac_cv_prog_CC="cc"
1974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975     break 2
1976   fi
1977 done
1978 done
1979
1980 if test $ac_prog_rejected = yes; then
1981   # We found a bogon in the path, so make sure we never use it.
1982   set dummy $ac_cv_prog_CC
1983   shift
1984   if test $# != 0; then
1985     # We chose a different compiler from the bogus one.
1986     # However, it has the same basename, so the bogon will be chosen
1987     # first if we set CC to just the basename; use the full file name.
1988     shift
1989     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1990   fi
1991 fi
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1998 else
1999   echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2001 fi
2002
2003 fi
2004 if test -z "$CC"; then
2005   if test -n "$ac_tool_prefix"; then
2006   for ac_prog in cl
2007   do
2008     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$CC"; then
2016   ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 CC=$ac_cv_prog_CC
2035 if test -n "$CC"; then
2036   echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043     test -n "$CC" && break
2044   done
2045 fi
2046 if test -z "$CC"; then
2047   ac_ct_CC=$CC
2048   for ac_prog in cl
2049 do
2050   # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$ac_ct_CC"; then
2058   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     ac_cv_prog_ac_ct_CC="$ac_prog"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6
2080 else
2081   echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085   test -n "$ac_ct_CC" && break
2086 done
2087
2088   CC=$ac_ct_CC
2089 fi
2090
2091 fi
2092
2093
2094 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&2;}
2098    { (exit 1); exit 1; }; }
2099
2100 # Provide some information about the compiler.
2101 echo "$as_me:$LINENO:" \
2102      "checking for C compiler version" >&5
2103 ac_compiler=`set X $ac_compile; echo $2`
2104 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2105   (eval $ac_compiler --version </dev/null >&5) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2110   (eval $ac_compiler -v </dev/null >&5) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2115   (eval $ac_compiler -V </dev/null >&5) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line $LINENO "configure"
2122 /* confdefs.h.  */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h.  */
2127
2128 int
2129 main ()
2130 {
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2140 # of exeext.
2141 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2142 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2145   (eval $ac_link_default) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   # Find the output, starting from the most likely.  This scheme is
2150 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2151 # resort.
2152
2153 # Be careful to initialize this variable, since it used to be cached.
2154 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2155 ac_cv_exeext=
2156 # b.out is created by i960 compilers.
2157 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2158 do
2159   test -f "$ac_file" || continue
2160   case $ac_file in
2161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2162         ;;
2163     conftest.$ac_ext )
2164         # This is the source file.
2165         ;;
2166     [ab].out )
2167         # We found the default executable, but exeext='' is most
2168         # certainly right.
2169         break;;
2170     *.* )
2171         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172         # FIXME: I believe we export ac_cv_exeext for Libtool,
2173         # but it would be cool to find out if it's true.  Does anybody
2174         # maintain Libtool? --akim.
2175         export ac_cv_exeext
2176         break;;
2177     * )
2178         break;;
2179   esac
2180 done
2181 else
2182   echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&2;}
2189    { (exit 77); exit 77; }; }
2190 fi
2191
2192 ac_exeext=$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_file" >&5
2194 echo "${ECHO_T}$ac_file" >&6
2195
2196 # Check the compiler produces executables we can run.  If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2199 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2200 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2201 # If not cross compiling, check that we can run a simple program.
2202 if test "$cross_compiling" != yes; then
2203   if { ac_try='./$ac_file'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; }; then
2209     cross_compiling=no
2210   else
2211     if test "$cross_compiling" = maybe; then
2212         cross_compiling=yes
2213     else
2214         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot run C compiled programs.
2218 If you meant to cross compile, use \`--host'.
2219 See \`config.log' for more details." >&2;}
2220    { (exit 1); exit 1; }; }
2221     fi
2222   fi
2223 fi
2224 echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
2226
2227 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2228 ac_clean_files=$ac_clean_files_save
2229 # Check the compiler produces executables we can run.  If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2232 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2233 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2234 echo "${ECHO_T}$cross_compiling" >&6
2235
2236 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2237 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239   (eval $ac_link) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; then
2243   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2244 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2245 # work properly (i.e., refer to `conftest.exe'), while it won't with
2246 # `rm'.
2247 for ac_file in conftest.exe conftest conftest.*; do
2248   test -f "$ac_file" || continue
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2251     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252           export ac_cv_exeext
2253           break;;
2254     * ) break;;
2255   esac
2256 done
2257 else
2258   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&2;}
2262    { (exit 1); exit 1; }; }
2263 fi
2264
2265 rm -f conftest$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2267 echo "${ECHO_T}$ac_cv_exeext" >&6
2268
2269 rm -f conftest.$ac_ext
2270 EXEEXT=$ac_cv_exeext
2271 ac_exeext=$EXEEXT
2272 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2273 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2274 if test "${ac_cv_objext+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   cat >conftest.$ac_ext <<_ACEOF
2278 #line $LINENO "configure"
2279 /* confdefs.h.  */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h.  */
2284
2285 int
2286 main ()
2287 {
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 rm -f conftest.o conftest.obj
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295   (eval $ac_compile) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; then
2299   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2300   case $ac_file in
2301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2302     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2303        break;;
2304   esac
2305 done
2306 else
2307   echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2313 See \`config.log' for more details." >&2;}
2314    { (exit 1); exit 1; }; }
2315 fi
2316
2317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2318 fi
2319 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2320 echo "${ECHO_T}$ac_cv_objext" >&6
2321 OBJEXT=$ac_cv_objext
2322 ac_objext=$OBJEXT
2323 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   cat >conftest.$ac_ext <<_ACEOF
2329 #line $LINENO "configure"
2330 /* confdefs.h.  */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h.  */
2335
2336 int
2337 main ()
2338 {
2339 #ifndef __GNUC__
2340        choke me
2341 #endif
2342
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349   (eval $ac_compile) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); } &&
2353          { ac_try='test -s conftest.$ac_objext'
2354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355   (eval $ac_try) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; }; then
2359   ac_compiler_gnu=yes
2360 else
2361   echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2363
2364 ac_compiler_gnu=no
2365 fi
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2368
2369 fi
2370 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2371 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2372 GCC=`test $ac_compiler_gnu = yes && echo yes`
2373 ac_test_CFLAGS=${CFLAGS+set}
2374 ac_save_CFLAGS=$CFLAGS
2375 CFLAGS="-g"
2376 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2378 if test "${ac_cv_prog_cc_g+set}" = set; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2383 /* confdefs.h.  */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h.  */
2388
2389 int
2390 main ()
2391 {
2392
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   ac_cv_prog_cc_g=yes
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 ac_cv_prog_cc_g=no
2415 fi
2416 rm -f conftest.$ac_objext conftest.$ac_ext
2417 fi
2418 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2419 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2420 if test "$ac_test_CFLAGS" = set; then
2421   CFLAGS=$ac_save_CFLAGS
2422 elif test $ac_cv_prog_cc_g = yes; then
2423   if test "$GCC" = yes; then
2424     CFLAGS="-g -O2"
2425   else
2426     CFLAGS="-g"
2427   fi
2428 else
2429   if test "$GCC" = yes; then
2430     CFLAGS="-O2"
2431   else
2432     CFLAGS=
2433   fi
2434 fi
2435 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2436 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2437 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   ac_cv_prog_cc_stdc=no
2441 ac_save_CC=$CC
2442 cat >conftest.$ac_ext <<_ACEOF
2443 #line $LINENO "configure"
2444 /* confdefs.h.  */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h.  */
2449 #include <stdarg.h>
2450 #include <stdio.h>
2451 #include <sys/types.h>
2452 #include <sys/stat.h>
2453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2454 struct buf { int x; };
2455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2456 static char *e (p, i)
2457      char **p;
2458      int i;
2459 {
2460   return p[i];
2461 }
2462 static char *f (char * (*g) (char **, int), char **p, ...)
2463 {
2464   char *s;
2465   va_list v;
2466   va_start (v,p);
2467   s = g (p, va_arg (v,int));
2468   va_end (v);
2469   return s;
2470 }
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2475 int argc;
2476 char **argv;
2477 int
2478 main ()
2479 {
2480 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 # Don't try gcc -ansi; that turns off useful extensions and
2486 # breaks some systems' header files.
2487 # AIX                   -qlanglvl=ansi
2488 # Ultrix and OSF/1      -std1
2489 # HP-UX 10.20 and later -Ae
2490 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2491 # SVR4                  -Xc -D__EXTENSIONS__
2492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 do
2494   CC="$ac_save_CC $ac_arg"
2495   rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497   (eval $ac_compile) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); } &&
2501          { ac_try='test -s conftest.$ac_objext'
2502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503   (eval $ac_try) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; }; then
2507   ac_cv_prog_cc_stdc=$ac_arg
2508 break
2509 else
2510   echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 fi
2514 rm -f conftest.$ac_objext
2515 done
2516 rm -f conftest.$ac_ext conftest.$ac_objext
2517 CC=$ac_save_CC
2518
2519 fi
2520
2521 case "x$ac_cv_prog_cc_stdc" in
2522   x|xno)
2523     echo "$as_me:$LINENO: result: none needed" >&5
2524 echo "${ECHO_T}none needed" >&6 ;;
2525   *)
2526     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2527 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2528     CC="$CC $ac_cv_prog_cc_stdc" ;;
2529 esac
2530
2531 # Some people use a C++ compiler to compile C.  Since we use `exit',
2532 # in C++ we need to declare it.  In case someone uses the same compiler
2533 # for both compiling C and C++ we need to have the C++ compiler decide
2534 # the declaration of exit, since it's the most demanding environment.
2535 cat >conftest.$ac_ext <<_ACEOF
2536 #ifndef __cplusplus
2537   choke me
2538 #endif
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542   (eval $ac_compile) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); } &&
2546          { ac_try='test -s conftest.$ac_objext'
2547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548   (eval $ac_try) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; }; then
2552   for ac_declaration in \
2553    ''\
2554    '#include <stdlib.h>' \
2555    'extern "C" void std::exit (int) throw (); using std::exit;' \
2556    'extern "C" void std::exit (int); using std::exit;' \
2557    'extern "C" void exit (int) throw ();' \
2558    'extern "C" void exit (int);' \
2559    'void exit (int);'
2560 do
2561   cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568 #include <stdlib.h>
2569 $ac_declaration
2570 int
2571 main ()
2572 {
2573 exit (42);
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580   (eval $ac_compile) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } &&
2584          { ac_try='test -s conftest.$ac_objext'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590   :
2591 else
2592   echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 continue
2596 fi
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2598   cat >conftest.$ac_ext <<_ACEOF
2599 #line $LINENO "configure"
2600 /* confdefs.h.  */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h.  */
2605 $ac_declaration
2606 int
2607 main ()
2608 {
2609 exit (42);
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616   (eval $ac_compile) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   break
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 fi
2632 rm -f conftest.$ac_objext conftest.$ac_ext
2633 done
2634 rm -f conftest*
2635 if test -n "$ac_declaration"; then
2636   echo '#ifdef __cplusplus' >>confdefs.h
2637   echo $ac_declaration      >>confdefs.h
2638   echo '#endif'             >>confdefs.h
2639 fi
2640
2641 else
2642   echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2644
2645 fi
2646 rm -f conftest.$ac_objext conftest.$ac_ext
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 DEPDIR="${am__leading_dot}deps"
2653
2654           ac_config_commands="$ac_config_commands depfiles"
2655
2656
2657 am_make=${MAKE-make}
2658 cat > confinc << 'END'
2659 am__doit:
2660         @echo done
2661 .PHONY: am__doit
2662 END
2663 # If we don't find an include directive, just comment out the code.
2664 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2665 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2666 am__include="#"
2667 am__quote=
2668 _am_result=none
2669 # First try GNU make style include.
2670 echo "include confinc" > confmf
2671 # We grep out `Entering directory' and `Leaving directory'
2672 # messages which can occur if `w' ends up in MAKEFLAGS.
2673 # In particular we don't look at `^make:' because GNU make might
2674 # be invoked under some other name (usually "gmake"), in which
2675 # case it prints its new name instead of `make'.
2676 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2677    am__include=include
2678    am__quote=
2679    _am_result=GNU
2680 fi
2681 # Now try BSD make style include.
2682 if test "$am__include" = "#"; then
2683    echo '.include "confinc"' > confmf
2684    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2685       am__include=.include
2686       am__quote="\""
2687       _am_result=BSD
2688    fi
2689 fi
2690
2691
2692 echo "$as_me:$LINENO: result: $_am_result" >&5
2693 echo "${ECHO_T}$_am_result" >&6
2694 rm -f confinc confmf
2695
2696 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2697 if test "${enable_dependency_tracking+set}" = set; then
2698   enableval="$enable_dependency_tracking"
2699
2700 fi;
2701 if test "x$enable_dependency_tracking" != xno; then
2702   am_depcomp="$ac_aux_dir/depcomp"
2703   AMDEPBACKSLASH='\'
2704 fi
2705
2706
2707 if test "x$enable_dependency_tracking" != xno; then
2708   AMDEP_TRUE=
2709   AMDEP_FALSE='#'
2710 else
2711   AMDEP_TRUE='#'
2712   AMDEP_FALSE=
2713 fi
2714
2715
2716
2717
2718 depcc="$CC"   am_compiler_list=
2719
2720 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2721 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2722 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2723   echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2726   # We make a subdir and do the tests there.  Otherwise we can end up
2727   # making bogus files that we don't know about and never remove.  For
2728   # instance it was reported that on HP-UX the gcc test will end up
2729   # making a dummy file named `D' -- because `-MD' means `put the output
2730   # in D'.
2731   mkdir conftest.dir
2732   # Copy depcomp to subdir because otherwise we won't find it if we're
2733   # using a relative directory.
2734   cp "$am_depcomp" conftest.dir
2735   cd conftest.dir
2736   # We will build objects and dependencies in a subdirectory because
2737   # it helps to detect inapplicable dependency modes.  For instance
2738   # both Tru64's cc and ICC support -MD to output dependencies as a
2739   # side effect of compilation, but ICC will put the dependencies in
2740   # the current directory while Tru64 will put them in the object
2741   # directory.
2742   mkdir sub
2743
2744   am_cv_CC_dependencies_compiler_type=none
2745   if test "$am_compiler_list" = ""; then
2746      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2747   fi
2748   for depmode in $am_compiler_list; do
2749     # Setup a source with many dependencies, because some compilers
2750     # like to wrap large dependency lists on column 80 (with \), and
2751     # we should not choose a depcomp mode which is confused by this.
2752     #
2753     # We need to recreate these files for each test, as the compiler may
2754     # overwrite some of them when testing with obscure command lines.
2755     # This happens at least with the AIX C compiler.
2756     : > sub/conftest.c
2757     for i in 1 2 3 4 5 6; do
2758       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2759       : > sub/conftst$i.h
2760     done
2761     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2762
2763     case $depmode in
2764     nosideeffect)
2765       # after this tag, mechanisms are not by side-effect, so they'll
2766       # only be used when explicitly requested
2767       if test "x$enable_dependency_tracking" = xyes; then
2768         continue
2769       else
2770         break
2771       fi
2772       ;;
2773     none) break ;;
2774     esac
2775     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2776     # mode.  It turns out that the SunPro C++ compiler does not properly
2777     # handle `-M -o', and we need to detect this.
2778     if depmode=$depmode \
2779        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2780        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2781        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2782          >/dev/null 2>conftest.err &&
2783        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2784        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2785        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2786       # icc doesn't choke on unknown options, it will just issue warnings
2787       # (even with -Werror).  So we grep stderr for any message
2788       # that says an option was ignored.
2789       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2790         am_cv_CC_dependencies_compiler_type=$depmode
2791         break
2792       fi
2793     fi
2794   done
2795
2796   cd ..
2797   rm -rf conftest.dir
2798 else
2799   am_cv_CC_dependencies_compiler_type=none
2800 fi
2801
2802 fi
2803 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2804 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2806
2807
2808
2809 if
2810   test "x$enable_dependency_tracking" != xno \
2811   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2812   am__fastdepCC_TRUE=
2813   am__fastdepCC_FALSE='#'
2814 else
2815   am__fastdepCC_TRUE='#'
2816   am__fastdepCC_FALSE=
2817 fi
2818
2819
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2826 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2827 # On Suns, sometimes $CPP names a directory.
2828 if test -n "$CPP" && test -d "$CPP"; then
2829   CPP=
2830 fi
2831 if test -z "$CPP"; then
2832   if test "${ac_cv_prog_CPP+set}" = set; then
2833   echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835       # Double quotes because CPP needs to be expanded
2836     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2837     do
2838       ac_preproc_ok=false
2839 for ac_c_preproc_warn_flag in '' yes
2840 do
2841   # Use a header file that comes with gcc, so configuring glibc
2842   # with a fresh cross-compiler works.
2843   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2844   # <limits.h> exists even on freestanding compilers.
2845   # On the NeXT, cc -E runs the code through the compiler's parser,
2846   # not just through cpp. "Syntax error" is here to catch this case.
2847   cat >conftest.$ac_ext <<_ACEOF
2848 #line $LINENO "configure"
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854 #ifdef __STDC__
2855 # include <limits.h>
2856 #else
2857 # include <assert.h>
2858 #endif
2859                      Syntax error
2860 _ACEOF
2861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } >/dev/null; then
2869   if test -s conftest.err; then
2870     ac_cpp_err=$ac_c_preproc_warn_flag
2871   else
2872     ac_cpp_err=
2873   fi
2874 else
2875   ac_cpp_err=yes
2876 fi
2877 if test -z "$ac_cpp_err"; then
2878   :
2879 else
2880   echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883   # Broken: fails on valid input.
2884 continue
2885 fi
2886 rm -f conftest.err conftest.$ac_ext
2887
2888   # OK, works on sane cases.  Now check whether non-existent headers
2889   # can be detected and how.
2890   cat >conftest.$ac_ext <<_ACEOF
2891 #line $LINENO "configure"
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897 #include <ac_nonexistent.h>
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } >/dev/null; then
2907   if test -s conftest.err; then
2908     ac_cpp_err=$ac_c_preproc_warn_flag
2909   else
2910     ac_cpp_err=
2911   fi
2912 else
2913   ac_cpp_err=yes
2914 fi
2915 if test -z "$ac_cpp_err"; then
2916   # Broken: success on invalid input.
2917 continue
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922   # Passes both tests.
2923 ac_preproc_ok=:
2924 break
2925 fi
2926 rm -f conftest.err conftest.$ac_ext
2927
2928 done
2929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2930 rm -f conftest.err conftest.$ac_ext
2931 if $ac_preproc_ok; then
2932   break
2933 fi
2934
2935     done
2936     ac_cv_prog_CPP=$CPP
2937
2938 fi
2939   CPP=$ac_cv_prog_CPP
2940 else
2941   ac_cv_prog_CPP=$CPP
2942 fi
2943 echo "$as_me:$LINENO: result: $CPP" >&5
2944 echo "${ECHO_T}$CPP" >&6
2945 ac_preproc_ok=false
2946 for ac_c_preproc_warn_flag in '' yes
2947 do
2948   # Use a header file that comes with gcc, so configuring glibc
2949   # with a fresh cross-compiler works.
2950   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2951   # <limits.h> exists even on freestanding compilers.
2952   # On the NeXT, cc -E runs the code through the compiler's parser,
2953   # not just through cpp. "Syntax error" is here to catch this case.
2954   cat >conftest.$ac_ext <<_ACEOF
2955 #line $LINENO "configure"
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961 #ifdef __STDC__
2962 # include <limits.h>
2963 #else
2964 # include <assert.h>
2965 #endif
2966                      Syntax error
2967 _ACEOF
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } >/dev/null; then
2976   if test -s conftest.err; then
2977     ac_cpp_err=$ac_c_preproc_warn_flag
2978   else
2979     ac_cpp_err=
2980   fi
2981 else
2982   ac_cpp_err=yes
2983 fi
2984 if test -z "$ac_cpp_err"; then
2985   :
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990   # Broken: fails on valid input.
2991 continue
2992 fi
2993 rm -f conftest.err conftest.$ac_ext
2994
2995   # OK, works on sane cases.  Now check whether non-existent headers
2996   # can be detected and how.
2997   cat >conftest.$ac_ext <<_ACEOF
2998 #line $LINENO "configure"
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3004 #include <ac_nonexistent.h>
3005 _ACEOF
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } >/dev/null; then
3014   if test -s conftest.err; then
3015     ac_cpp_err=$ac_c_preproc_warn_flag
3016   else
3017     ac_cpp_err=
3018   fi
3019 else
3020   ac_cpp_err=yes
3021 fi
3022 if test -z "$ac_cpp_err"; then
3023   # Broken: success on invalid input.
3024 continue
3025 else
3026   echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3028
3029   # Passes both tests.
3030 ac_preproc_ok=:
3031 break
3032 fi
3033 rm -f conftest.err conftest.$ac_ext
3034
3035 done
3036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3037 rm -f conftest.err conftest.$ac_ext
3038 if $ac_preproc_ok; then
3039   :
3040 else
3041   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3042 See \`config.log' for more details." >&5
3043 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3044 See \`config.log' for more details." >&2;}
3045    { (exit 1); exit 1; }; }
3046 fi
3047
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053
3054 for ac_prog in gawk mawk nawk awk
3055 do
3056   # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_prog_AWK+set}" = set; then
3061   echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063   if test -n "$AWK"; then
3064   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071   for ac_exec_ext in '' $ac_executable_extensions; do
3072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073     ac_cv_prog_AWK="$ac_prog"
3074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075     break 2
3076   fi
3077 done
3078 done
3079
3080 fi
3081 fi
3082 AWK=$ac_cv_prog_AWK
3083 if test -n "$AWK"; then
3084   echo "$as_me:$LINENO: result: $AWK" >&5
3085 echo "${ECHO_T}$AWK" >&6
3086 else
3087   echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3089 fi
3090
3091   test -n "$AWK" && break
3092 done
3093
3094 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3095 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3096 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3097 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3098   echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100   cat >conftest.make <<\_ACEOF
3101 all:
3102         @echo 'ac_maketemp="$(MAKE)"'
3103 _ACEOF
3104 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3105 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3106 if test -n "$ac_maketemp"; then
3107   eval ac_cv_prog_make_${ac_make}_set=yes
3108 else
3109   eval ac_cv_prog_make_${ac_make}_set=no
3110 fi
3111 rm -f conftest.make
3112 fi
3113 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3114   echo "$as_me:$LINENO: result: yes" >&5
3115 echo "${ECHO_T}yes" >&6
3116   SET_MAKE=
3117 else
3118   echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3120   SET_MAKE="MAKE=${MAKE-make}"
3121 fi
3122
3123 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3124 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3125 LN_S=$as_ln_s
3126 if test "$LN_S" = "ln -s"; then
3127   echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3129 else
3130   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3131 echo "${ECHO_T}no, using $LN_S" >&6
3132 fi
3133
3134 # Find a good install program.  We prefer a C program (faster),
3135 # so one script is as good as another.  But avoid the broken or
3136 # incompatible versions:
3137 # SysV /etc/install, /usr/sbin/install
3138 # SunOS /usr/etc/install
3139 # IRIX /sbin/install
3140 # AIX /bin/install
3141 # AmigaOS /C/install, which installs bootblocks on floppy discs
3142 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3143 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3144 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3145 # ./install, which can be erroneously created by make from ./install.sh.
3146 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3147 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3148 if test -z "$INSTALL"; then
3149 if test "${ac_cv_path_install+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155   IFS=$as_save_IFS
3156   test -z "$as_dir" && as_dir=.
3157   # Account for people who put trailing slashes in PATH elements.
3158 case $as_dir/ in
3159   ./ | .// | /cC/* | \
3160   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3161   /usr/ucb/* ) ;;
3162   *)
3163     # OSF1 and SCO ODT 3.0 have their own names for install.
3164     # Don't use installbsd from OSF since it installs stuff as root
3165     # by default.
3166     for ac_prog in ginstall scoinst install; do
3167       for ac_exec_ext in '' $ac_executable_extensions; do
3168         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3169           if test $ac_prog = install &&
3170             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3171             # AIX install.  It has an incompatible calling convention.
3172             :
3173           elif test $ac_prog = install &&
3174             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3175             # program-specific install script used by HP pwplus--don't use.
3176             :
3177           else
3178             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3179             break 3
3180           fi
3181         fi
3182       done
3183     done
3184     ;;
3185 esac
3186 done
3187
3188
3189 fi
3190   if test "${ac_cv_path_install+set}" = set; then
3191     INSTALL=$ac_cv_path_install
3192   else
3193     # As a last resort, use the slow shell script.  We don't cache a
3194     # path for INSTALL within a source directory, because that will
3195     # break other packages using the cache if that directory is
3196     # removed, or if the path is relative.
3197     INSTALL=$ac_install_sh
3198   fi
3199 fi
3200 echo "$as_me:$LINENO: result: $INSTALL" >&5
3201 echo "${ECHO_T}$INSTALL" >&6
3202
3203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3204 # It thinks the first close brace ends the variable substitution.
3205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3206
3207 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3208
3209 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3210
3211
3212
3213
3214 echo "$as_me:$LINENO: checking for __attribute__" >&5
3215 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
3216 if test "${ac_cv___attribute__+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line $LINENO "configure"
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227
3228 #include <stdlib.h>
3229
3230 int
3231 main ()
3232 {
3233
3234 static void foo(void) __attribute__ ((noreturn));
3235
3236 static void
3237 foo(void)
3238 {
3239   exit(1);
3240 }
3241
3242   ;
3243   return 0;
3244 }
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248   (eval $ac_compile) 2>&5
3249   ac_status=$?
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } &&
3252          { ac_try='test -s conftest.$ac_objext'
3253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254   (eval $ac_try) 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }; }; then
3258   ac_cv___attribute__=yes
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 ac_cv___attribute__=no
3264 fi
3265 rm -f conftest.$ac_objext conftest.$ac_ext
3266 fi
3267
3268 if test "$ac_cv___attribute__" = "yes"; then
3269
3270 cat >>confdefs.h <<\_ACEOF
3271 #define HAVE___ATTRIBUTE__ 1
3272 _ACEOF
3273
3274 fi
3275 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3276 echo "${ECHO_T}$ac_cv___attribute__" >&6
3277
3278
3279    # CMU GUESS RUNPATH SWITCH
3280   echo "$as_me:$LINENO: checking for runpath switch" >&5
3281 echo $ECHO_N "checking for runpath switch... $ECHO_C" >&6
3282 if test "${andrew_runpath_switch+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285
3286     # first, try -R
3287     SAVE_LDFLAGS="${LDFLAGS}"
3288     LDFLAGS="-R /usr/lib"
3289     cat >conftest.$ac_ext <<_ACEOF
3290 #line $LINENO "configure"
3291 /* confdefs.h.  */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h.  */
3296
3297 int
3298 main ()
3299 {
3300
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 rm -f conftest.$ac_objext conftest$ac_exeext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3307   (eval $ac_link) 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } &&
3311          { ac_try='test -s conftest$ac_exeext'
3312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313   (eval $ac_try) 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }; }; then
3317   andrew_runpath_switch="-R"
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322
3323         LDFLAGS="-Wl,-rpath,/usr/lib"
3324     cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331
3332 int
3333 main ()
3334 {
3335
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext conftest$ac_exeext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342   (eval $ac_link) 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } &&
3346          { ac_try='test -s conftest$ac_exeext'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352   andrew_runpath_switch="-Wl,-rpath,"
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 andrew_runpath_switch="none"
3358 fi
3359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3360
3361 fi
3362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3363   LDFLAGS="${SAVE_LDFLAGS}"
3364
3365 fi
3366 echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
3367 echo "${ECHO_T}$andrew_runpath_switch" >&6
3368
3369
3370         save_LIBS="$LIBS"
3371         LIB_SOCKET=""
3372         echo "$as_me:$LINENO: checking for connect" >&5
3373 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3374 if test "${ac_cv_func_connect+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   cat >conftest.$ac_ext <<_ACEOF
3378 #line $LINENO "configure"
3379 /* confdefs.h.  */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h.  */
3384 /* System header to define __stub macros and hopefully few prototypes,
3385     which can conflict with char connect (); below.
3386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3387     <limits.h> exists even on freestanding compilers.  */
3388 #ifdef __STDC__
3389 # include <limits.h>
3390 #else
3391 # include <assert.h>
3392 #endif
3393 /* Override any gcc2 internal prototype to avoid an error.  */
3394 #ifdef __cplusplus
3395 extern "C"
3396 {
3397 #endif
3398 /* We use char because int might match the return type of a gcc2
3399    builtin and then its argument prototype would still apply.  */
3400 char connect ();
3401 /* The GNU C library defines this for functions which it implements
3402     to always fail with ENOSYS.  Some functions are actually named
3403     something starting with __ and the normal name is an alias.  */
3404 #if defined (__stub_connect) || defined (__stub___connect)
3405 choke me
3406 #else
3407 char (*f) () = connect;
3408 #endif
3409 #ifdef __cplusplus
3410 }
3411 #endif
3412
3413 int
3414 main ()
3415 {
3416 return f != connect;
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext conftest$ac_exeext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423   (eval $ac_link) 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); } &&
3427          { ac_try='test -s conftest$ac_exeext'
3428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429   (eval $ac_try) 2>&5
3430   ac_status=$?
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); }; }; then
3433   ac_cv_func_connect=yes
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 ac_cv_func_connect=no
3439 fi
3440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3441 fi
3442 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3443 echo "${ECHO_T}$ac_cv_func_connect" >&6
3444 if test $ac_cv_func_connect = yes; then
3445   :
3446 else
3447   echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3448 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3449 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   ac_check_lib_save_LIBS=$LIBS
3453 LIBS="-lnsl  $LIBS"
3454 cat >conftest.$ac_ext <<_ACEOF
3455 #line $LINENO "configure"
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461
3462 /* Override any gcc2 internal prototype to avoid an error.  */
3463 #ifdef __cplusplus
3464 extern "C"
3465 #endif
3466 /* We use char because int might match the return type of a gcc2
3467    builtin and then its argument prototype would still apply.  */
3468 char gethostbyname ();
3469 int
3470 main ()
3471 {
3472 gethostbyname ();
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext conftest$ac_exeext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3479   (eval $ac_link) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } &&
3483          { ac_try='test -s conftest$ac_exeext'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489   ac_cv_lib_nsl_gethostbyname=yes
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 ac_cv_lib_nsl_gethostbyname=no
3495 fi
3496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3497 LIBS=$ac_check_lib_save_LIBS
3498 fi
3499 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3500 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3501 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3502   LIB_SOCKET="-lnsl $LIB_SOCKET"
3503 fi
3504
3505                 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3506 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3507 if test "${ac_cv_lib_socket_connect+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   ac_check_lib_save_LIBS=$LIBS
3511 LIBS="-lsocket  $LIBS"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #line $LINENO "configure"
3514 /* confdefs.h.  */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h.  */
3519
3520 /* Override any gcc2 internal prototype to avoid an error.  */
3521 #ifdef __cplusplus
3522 extern "C"
3523 #endif
3524 /* We use char because int might match the return type of a gcc2
3525    builtin and then its argument prototype would still apply.  */
3526 char connect ();
3527 int
3528 main ()
3529 {
3530 connect ();
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext conftest$ac_exeext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3537   (eval $ac_link) 2>&5
3538   ac_status=$?
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); } &&
3541          { ac_try='test -s conftest$ac_exeext'
3542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543   (eval $ac_try) 2>&5
3544   ac_status=$?
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }; }; then
3547   ac_cv_lib_socket_connect=yes
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 ac_cv_lib_socket_connect=no
3553 fi
3554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3555 LIBS=$ac_check_lib_save_LIBS
3556 fi
3557 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3558 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3559 if test $ac_cv_lib_socket_connect = yes; then
3560   LIB_SOCKET="-lsocket $LIB_SOCKET"
3561 fi
3562
3563
3564 fi
3565
3566         LIBS="$LIB_SOCKET $save_LIBS"
3567         echo "$as_me:$LINENO: checking for res_search" >&5
3568 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
3569 if test "${ac_cv_func_res_search+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   cat >conftest.$ac_ext <<_ACEOF
3573 #line $LINENO "configure"
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579 /* System header to define __stub macros and hopefully few prototypes,
3580     which can conflict with char res_search (); below.
3581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582     <limits.h> exists even on freestanding compilers.  */
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588 /* Override any gcc2 internal prototype to avoid an error.  */
3589 #ifdef __cplusplus
3590 extern "C"
3591 {
3592 #endif
3593 /* We use char because int might match the return type of a gcc2
3594    builtin and then its argument prototype would still apply.  */
3595 char res_search ();
3596 /* The GNU C library defines this for functions which it implements
3597     to always fail with ENOSYS.  Some functions are actually named
3598     something starting with __ and the normal name is an alias.  */
3599 #if defined (__stub_res_search) || defined (__stub___res_search)
3600 choke me
3601 #else
3602 char (*f) () = res_search;
3603 #endif
3604 #ifdef __cplusplus
3605 }
3606 #endif
3607
3608 int
3609 main ()
3610 {
3611 return f != res_search;
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618   (eval $ac_link) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -s conftest$ac_exeext'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; }; then
3628   ac_cv_func_res_search=yes
3629 else
3630   echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 ac_cv_func_res_search=no
3634 fi
3635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
3638 echo "${ECHO_T}$ac_cv_func_res_search" >&6
3639 if test $ac_cv_func_res_search = yes; then
3640   :
3641 else
3642   LIBS="-lresolv $LIB_SOCKET $save_LIBS"
3643                 cat >conftest.$ac_ext <<_ACEOF
3644 #line $LINENO "configure"
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650
3651 #include <sys/types.h>
3652 #include <netinet/in.h>
3653 #include <arpa/nameser.h>
3654 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
3655 #include <arpa/nameser_compat.h>
3656 #endif
3657 #include <resolv.h>
3658 int
3659 main ()
3660 {
3661
3662 const char host[12]="openafs.org";
3663 u_char ans[1024];
3664 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
3665 return 0;
3666
3667   ;
3668   return 0;
3669 }
3670 _ACEOF
3671 rm -f conftest.$ac_objext conftest$ac_exeext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3673   (eval $ac_link) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } &&
3677          { ac_try='test -s conftest$ac_exeext'
3678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679   (eval $ac_try) 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); }; }; then
3683   LIB_SOCKET="-lresolv $LIB_SOCKET"
3684 else
3685   echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 fi
3689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3690
3691 fi
3692
3693         LIBS="$LIB_SOCKET $save_LIBS"
3694
3695
3696 for ac_func in dn_expand dns_lookup
3697 do
3698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3699 echo "$as_me:$LINENO: checking for $ac_func" >&5
3700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3701 if eval "test \"\${$as_ac_var+set}\" = set"; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   cat >conftest.$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 /* System header to define __stub macros and hopefully few prototypes,
3712     which can conflict with char $ac_func (); below.
3713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714     <limits.h> exists even on freestanding compilers.  */
3715 #ifdef __STDC__
3716 # include <limits.h>
3717 #else
3718 # include <assert.h>
3719 #endif
3720 /* Override any gcc2 internal prototype to avoid an error.  */
3721 #ifdef __cplusplus
3722 extern "C"
3723 {
3724 #endif
3725 /* We use char because int might match the return type of a gcc2
3726    builtin and then its argument prototype would still apply.  */
3727 char $ac_func ();
3728 /* The GNU C library defines this for functions which it implements
3729     to always fail with ENOSYS.  Some functions are actually named
3730     something starting with __ and the normal name is an alias.  */
3731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3732 choke me
3733 #else
3734 char (*f) () = $ac_func;
3735 #endif
3736 #ifdef __cplusplus
3737 }
3738 #endif
3739
3740 int
3741 main ()
3742 {
3743 return f != $ac_func;
3744   ;
3745   return 0;
3746 }
3747 _ACEOF
3748 rm -f conftest.$ac_objext conftest$ac_exeext
3749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3750   (eval $ac_link) 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } &&
3754          { ac_try='test -s conftest$ac_exeext'
3755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756   (eval $ac_try) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); }; }; then
3760   eval "$as_ac_var=yes"
3761 else
3762   echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765 eval "$as_ac_var=no"
3766 fi
3767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3768 fi
3769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3771 if test `eval echo '${'$as_ac_var'}'` = yes; then
3772   cat >>confdefs.h <<_ACEOF
3773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3774 _ACEOF
3775
3776 fi
3777 done
3778
3779         LIBS="$save_LIBS"
3780
3781
3782
3783
3784 echo "$as_me:$LINENO: checking for egrep" >&5
3785 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3786 if test "${ac_cv_prog_egrep+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3790     then ac_cv_prog_egrep='grep -E'
3791     else ac_cv_prog_egrep='egrep'
3792     fi
3793 fi
3794 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3795 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3796  EGREP=$ac_cv_prog_egrep
3797
3798
3799 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3801 if test "${ac_cv_header_stdc+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   cat >conftest.$ac_ext <<_ACEOF
3805 #line $LINENO "configure"
3806 /* confdefs.h.  */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h.  */
3811 #include <stdlib.h>
3812 #include <stdarg.h>
3813 #include <string.h>
3814 #include <float.h>
3815
3816 int
3817 main ()
3818 {
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826   (eval $ac_compile) 2>&5
3827   ac_status=$?
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } &&
3830          { ac_try='test -s conftest.$ac_objext'
3831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832   (eval $ac_try) 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }; }; then
3836   ac_cv_header_stdc=yes
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841 ac_cv_header_stdc=no
3842 fi
3843 rm -f conftest.$ac_objext conftest.$ac_ext
3844
3845 if test $ac_cv_header_stdc = yes; then
3846   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3847   cat >conftest.$ac_ext <<_ACEOF
3848 #line $LINENO "configure"
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854 #include <string.h>
3855
3856 _ACEOF
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858   $EGREP "memchr" >/dev/null 2>&1; then
3859   :
3860 else
3861   ac_cv_header_stdc=no
3862 fi
3863 rm -f conftest*
3864
3865 fi
3866
3867 if test $ac_cv_header_stdc = yes; then
3868   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3869   cat >conftest.$ac_ext <<_ACEOF
3870 #line $LINENO "configure"
3871 /* confdefs.h.  */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h.  */
3876 #include <stdlib.h>
3877
3878 _ACEOF
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880   $EGREP "free" >/dev/null 2>&1; then
3881   :
3882 else
3883   ac_cv_header_stdc=no
3884 fi
3885 rm -f conftest*
3886
3887 fi
3888
3889 if test $ac_cv_header_stdc = yes; then
3890   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3891   if test "$cross_compiling" = yes; then
3892   :
3893 else
3894   cat >conftest.$ac_ext <<_ACEOF
3895 #line $LINENO "configure"
3896 /* confdefs.h.  */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h.  */
3901 #include <ctype.h>
3902 #if ((' ' & 0x0FF) == 0x020)
3903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3905 #else
3906 # define ISLOWER(c) \
3907                    (('a' <= (c) && (c) <= 'i') \
3908                      || ('j' <= (c) && (c) <= 'r') \
3909                      || ('s' <= (c) && (c) <= 'z'))
3910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3911 #endif
3912
3913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3914 int
3915 main ()
3916 {
3917   int i;
3918   for (i = 0; i < 256; i++)
3919     if (XOR (islower (i), ISLOWER (i))
3920         || toupper (i) != TOUPPER (i))
3921       exit(2);
3922   exit (0);
3923 }
3924 _ACEOF
3925 rm -f conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927   (eval $ac_link) 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932   (eval $ac_try) 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); }; }; then
3936   :
3937 else
3938   echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 ( exit $ac_status )
3943 ac_cv_header_stdc=no
3944 fi
3945 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3946 fi
3947 fi
3948 fi
3949 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3950 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3951 if test $ac_cv_header_stdc = yes; then
3952
3953 cat >>confdefs.h <<\_ACEOF
3954 #define STDC_HEADERS 1
3955 _ACEOF
3956
3957 fi
3958
3959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3970                   inttypes.h stdint.h unistd.h
3971 do
3972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3973 echo "$as_me:$LINENO: checking for $ac_header" >&5
3974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   cat >conftest.$ac_ext <<_ACEOF
3979 #line $LINENO "configure"
3980 /* confdefs.h.  */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h.  */
3985 $ac_includes_default
3986
3987 #include <$ac_header>
3988 _ACEOF
3989 rm -f conftest.$ac_objext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991   (eval $ac_compile) 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } &&
3995          { ac_try='test -s conftest.$ac_objext'
3996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997   (eval $ac_try) 2>&5
3998   ac_status=$?
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); }; }; then
4001   eval "$as_ac_Header=yes"
4002 else
4003   echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 eval "$as_ac_Header=no"
4007 fi
4008 rm -f conftest.$ac_objext conftest.$ac_ext
4009 fi
4010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4013   cat >>confdefs.h <<_ACEOF
4014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015 _ACEOF
4016
4017 fi
4018
4019 done
4020
4021
4022
4023 # Check whether --with-lib-subdir or --without-lib-subdir was given.
4024 if test "${with_lib_subdir+set}" = set; then
4025   withval="$with_lib_subdir"
4026
4027 fi;
4028 echo "$as_me:$LINENO: checking for long" >&5
4029 echo $ECHO_N "checking for long... $ECHO_C" >&6
4030 if test "${ac_cv_type_long+set}" = set; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   cat >conftest.$ac_ext <<_ACEOF
4034 #line $LINENO "configure"
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 $ac_includes_default
4041 int
4042 main ()
4043 {
4044 if ((long *) 0)
4045   return 0;
4046 if (sizeof (long))
4047   return 0;
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054   (eval $ac_compile) 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); } &&
4058          { ac_try='test -s conftest.$ac_objext'
4059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060   (eval $ac_try) 2>&5
4061   ac_status=$?
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); }; }; then
4064   ac_cv_type_long=yes
4065 else
4066   echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069 ac_cv_type_long=no
4070 fi
4071 rm -f conftest.$ac_objext conftest.$ac_ext
4072 fi
4073 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4074 echo "${ECHO_T}$ac_cv_type_long" >&6
4075
4076 echo "$as_me:$LINENO: checking size of long" >&5
4077 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4078 if test "${ac_cv_sizeof_long+set}" = set; then
4079   echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081   if test "$ac_cv_type_long" = yes; then
4082   # The cast to unsigned long works around a bug in the HP C Compiler
4083   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4084   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4085   # This bug is HP SR number 8606223364.
4086   if test "$cross_compiling" = yes; then
4087   # Depending upon the size, compute the lo and hi bounds.
4088 cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 $ac_includes_default
4096 int
4097 main ()
4098 {
4099 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4100 test_array [0] = 0
4101
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108   (eval $ac_compile) 2>&5
4109   ac_status=$?
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); } &&
4112          { ac_try='test -s conftest.$ac_objext'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; }; then
4118   ac_lo=0 ac_mid=0
4119   while :; do
4120     cat >conftest.$ac_ext <<_ACEOF
4121 #line $LINENO "configure"
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 $ac_includes_default
4128 int
4129 main ()
4130 {
4131 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4132 test_array [0] = 0
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140   (eval $ac_compile) 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } &&
4144          { ac_try='test -s conftest.$ac_objext'
4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146   (eval $ac_try) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; }; then
4150   ac_hi=$ac_mid; break
4151 else
4152   echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155 ac_lo=`expr $ac_mid + 1`
4156                     if test $ac_lo -le $ac_mid; then
4157                       ac_lo= ac_hi=
4158                       break
4159                     fi
4160                     ac_mid=`expr 2 '*' $ac_mid + 1`
4161 fi
4162 rm -f conftest.$ac_objext conftest.$ac_ext
4163   done
4164 else
4165   echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 cat >conftest.$ac_ext <<_ACEOF
4169 #line $LINENO "configure"
4170 /* confdefs.h.  */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h.  */
4175 $ac_includes_default
4176 int
4177 main ()
4178 {
4179 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4180 test_array [0] = 0
4181
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188   (eval $ac_compile) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } &&
4192          { ac_try='test -s conftest.$ac_objext'
4193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194   (eval $ac_try) 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); }; }; then
4198   ac_hi=-1 ac_mid=-1
4199   while :; do
4200     cat >conftest.$ac_ext <<_ACEOF
4201 #line $LINENO "configure"
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 $ac_includes_default
4208 int
4209 main ()
4210 {
4211 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4212 test_array [0] = 0
4213
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220   (eval $ac_compile) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -s conftest.$ac_objext'
4225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226   (eval $ac_try) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; }; then
4230   ac_lo=$ac_mid; break
4231 else
4232   echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 ac_hi=`expr '(' $ac_mid ')' - 1`
4236                        if test $ac_mid -le $ac_hi; then
4237                          ac_lo= ac_hi=
4238                          break
4239                        fi
4240                        ac_mid=`expr 2 '*' $ac_mid`
4241 fi
4242 rm -f conftest.$ac_objext conftest.$ac_ext
4243   done
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_lo= ac_hi=
4249 fi
4250 rm -f conftest.$ac_objext conftest.$ac_ext
4251 fi
4252 rm -f conftest.$ac_objext conftest.$ac_ext
4253 # Binary search between lo and hi bounds.
4254 while test "x$ac_lo" != "x$ac_hi"; do
4255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4256   cat >conftest.$ac_ext <<_ACEOF
4257 #line $LINENO "configure"
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263 $ac_includes_default
4264 int
4265 main ()
4266 {
4267 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4268 test_array [0] = 0
4269
4270   ;
4271   return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276   (eval $ac_compile) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } &&
4280          { ac_try='test -s conftest.$ac_objext'
4281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282   (eval $ac_try) 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; }; then
4286   ac_hi=$ac_mid
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ac_lo=`expr '(' $ac_mid ')' + 1`
4292 fi
4293 rm -f conftest.$ac_objext conftest.$ac_ext
4294 done
4295 case $ac_lo in
4296 ?*) ac_cv_sizeof_long=$ac_lo;;
4297 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4298 See \`config.log' for more details." >&5
4299 echo "$as_me: error: cannot compute sizeof (long), 77
4300 See \`config.log' for more details." >&2;}
4301    { (exit 1); exit 1; }; } ;;
4302 esac
4303 else
4304   if test "$cross_compiling" = yes; then
4305   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4306 See \`config.log' for more details." >&5
4307 echo "$as_me: error: cannot run test program while cross compiling
4308 See \`config.log' for more details." >&2;}
4309    { (exit 1); exit 1; }; }
4310 else
4311   cat >conftest.$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318 $ac_includes_default
4319 long longval () { return (long) (sizeof (long)); }
4320 unsigned long ulongval () { return (long) (sizeof (long)); }
4321 #include <stdio.h>
4322 #include <stdlib.h>
4323 int
4324 main ()
4325 {
4326
4327   FILE *f = fopen ("conftest.val", "w");
4328   if (! f)
4329     exit (1);
4330   if (((long) (sizeof (long))) < 0)
4331     {
4332       long i = longval ();
4333       if (i != ((long) (sizeof (long))))
4334         exit (1);
4335       fprintf (f, "%ld\n", i);
4336     }
4337   else
4338     {
4339       unsigned long i = ulongval ();
4340       if (i != ((long) (sizeof (long))))
4341         exit (1);
4342       fprintf (f, "%lu\n", i);
4343     }
4344   exit (ferror (f) || fclose (f) != 0);
4345
4346   ;
4347   return 0;
4348 }
4349 _ACEOF
4350 rm -f conftest$ac_exeext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352   (eval $ac_link) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   ac_cv_sizeof_long=`cat conftest.val`
4362 else
4363   echo "$as_me: program exited with status $ac_status" >&5
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367 ( exit $ac_status )
4368 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4369 See \`config.log' for more details." >&5
4370 echo "$as_me: error: cannot compute sizeof (long), 77
4371 See \`config.log' for more details." >&2;}
4372    { (exit 1); exit 1; }; }
4373 fi
4374 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375 fi
4376 fi
4377 rm -f conftest.val
4378 else
4379   ac_cv_sizeof_long=0
4380 fi
4381 fi
4382 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4383 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4384 cat >>confdefs.h <<_ACEOF
4385 #define SIZEOF_LONG $ac_cv_sizeof_long
4386 _ACEOF
4387
4388
4389 echo "$as_me:$LINENO: checking what directory libraries are found in" >&5
4390 echo $ECHO_N "checking what directory libraries are found in... $ECHO_C" >&6
4391 if test "${ac_cv_cmu_lib_subdir+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
4395 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
4396 if test "X$with_lib_subdir" = "X" ; then
4397   ac_cv_cmu_lib_subdir=lib
4398   if test $ac_cv_sizeof_long -eq 4 ; then
4399     test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
4400   fi
4401   if test $ac_cv_sizeof_long -eq 8 ; then
4402     test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
4403   fi
4404 else
4405   ac_cv_cmu_lib_subdir=$with_lib_subdir
4406 fi
4407 fi
4408 echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5
4409 echo "${ECHO_T}$ac_cv_cmu_lib_subdir" >&6
4410 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
4411
4412
4413
4414
4415
4416 # Check whether --with-openssl or --without-openssl was given.
4417 if test "${with_openssl+set}" = set; then
4418   withval="$with_openssl"
4419   with_openssl=$withval
4420 else
4421   with_openssl="yes"
4422 fi;
4423
4424         save_CPPFLAGS=$CPPFLAGS
4425         save_LDFLAGS=$LDFLAGS
4426
4427         if test -d $with_openssl; then
4428           CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
4429
4430   # this is CMU ADD LIBPATH
4431   if test "$andrew_runpath_switch" = "none" ; then
4432         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4433   else
4434         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4435   fi
4436
4437         fi
4438
4439 case "$with_openssl" in
4440         no)
4441           with_openssl="no";;
4442         *)
4443                                   LIB_RSAREF=""
4444                 echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
4445 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6
4446 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   ac_check_lib_save_LIBS=$LIBS
4450 LIBS="-lrsaref  $LIBS"
4451 cat >conftest.$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4453 /* confdefs.h.  */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h.  */
4458
4459 /* Override any gcc2 internal prototype to avoid an error.  */
4460 #ifdef __cplusplus
4461 extern "C"
4462 #endif
4463 /* We use char because int might match the return type of a gcc2
4464    builtin and then its argument prototype would still apply.  */
4465 char RSAPublicEncrypt ();
4466 int
4467 main ()
4468 {
4469 RSAPublicEncrypt ();
4470   ;
4471   return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.$ac_objext conftest$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476   (eval $ac_link) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); } &&
4480          { ac_try='test -s conftest$ac_exeext'
4481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482   (eval $ac_try) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); }; }; then
4486   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
4487 else
4488   echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 ac_cv_lib_rsaref_RSAPublicEncrypt=no
4492 fi
4493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4494 LIBS=$ac_check_lib_save_LIBS
4495 fi
4496 echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
4497 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6
4498 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
4499   cmu_have_rsaref=yes;
4500                         echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lRSAglue" >&5
4501 echo $ECHO_N "checking for RSAPublicEncrypt in -lRSAglue... $ECHO_C" >&6
4502 if test "${ac_cv_lib_RSAglue_RSAPublicEncrypt+set}" = set; then
4503   echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505   ac_check_lib_save_LIBS=$LIBS
4506 LIBS="-lRSAglue  $LIBS"
4507 cat >conftest.$ac_ext <<_ACEOF
4508 #line $LINENO "configure"
4509 /* confdefs.h.  */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h.  */
4514
4515 /* Override any gcc2 internal prototype to avoid an error.  */
4516 #ifdef __cplusplus
4517 extern "C"
4518 #endif
4519 /* We use char because int might match the return type of a gcc2
4520    builtin and then its argument prototype would still apply.  */
4521 char RSAPublicEncrypt ();
4522 int
4523 main ()
4524 {
4525 RSAPublicEncrypt ();
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 rm -f conftest.$ac_objext conftest$ac_exeext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532   (eval $ac_link) 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); } &&
4536          { ac_try='test -s conftest$ac_exeext'
4537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538   (eval $ac_try) 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }; }; then
4542   ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
4543 else
4544   echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
4548 fi
4549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4550 LIBS=$ac_check_lib_save_LIBS
4551 fi
4552 echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
4553 echo "${ECHO_T}$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6
4554 if test $ac_cv_lib_RSAglue_RSAPublicEncrypt = yes; then
4555   LIB_RSAREF="-lRSAglue -lrsaref"
4556 else
4557   LIB_RSAREF="-lrsaref"
4558 fi
4559
4560 else
4561   cmu_have_rsaref=no
4562 fi
4563
4564
4565                 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
4566   echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
4567 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
4568 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
4569   echo $ECHO_N "(cached) $ECHO_C" >&6
4570 fi
4571 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
4572 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
4573 else
4574   # Is the header compilable?
4575 echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
4576 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6
4577 cat >conftest.$ac_ext <<_ACEOF
4578 #line $LINENO "configure"
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584 $ac_includes_default
4585 #include <openssl/evp.h>
4586 _ACEOF
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589   (eval $ac_compile) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); } &&
4593          { ac_try='test -s conftest.$ac_objext'
4594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595   (eval $ac_try) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; }; then
4599   ac_header_compiler=yes
4600 else
4601   echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 ac_header_compiler=no
4605 fi
4606 rm -f conftest.$ac_objext conftest.$ac_ext
4607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4608 echo "${ECHO_T}$ac_header_compiler" >&6
4609
4610 # Is the header present?
4611 echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
4612 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 #include <openssl/evp.h>
4621 _ACEOF
4622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4624   ac_status=$?
4625   grep -v '^ *+' conftest.er1 >conftest.err
4626   rm -f conftest.er1
4627   cat conftest.err >&5
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); } >/dev/null; then
4630   if test -s conftest.err; then
4631     ac_cpp_err=$ac_c_preproc_warn_flag
4632   else
4633     ac_cpp_err=
4634   fi
4635 else
4636   ac_cpp_err=yes
4637 fi
4638 if test -z "$ac_cpp_err"; then
4639   ac_header_preproc=yes
4640 else
4641   echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644   ac_header_preproc=no
4645 fi
4646 rm -f conftest.err conftest.$ac_ext
4647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4648 echo "${ECHO_T}$ac_header_preproc" >&6
4649
4650 # So?  What about this header?
4651 case $ac_header_compiler:$ac_header_preproc in
4652   yes:no )
4653     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
4654 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4655     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
4656 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
4657     (
4658       cat <<\_ASBOX
4659 ## ------------------------------------ ##
4660 ## Report this to bug-autoconf@gnu.org. ##
4661 ## ------------------------------------ ##
4662 _ASBOX
4663     ) |
4664       sed "s/^/$as_me: WARNING:     /" >&2
4665     ;;
4666   no:yes )
4667     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
4668 echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
4669     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
4670 echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
4671     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
4672 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
4673     (
4674       cat <<\_ASBOX
4675 ## ------------------------------------ ##
4676 ## Report this to bug-autoconf@gnu.org. ##
4677 ## ------------------------------------ ##
4678 _ASBOX
4679     ) |
4680       sed "s/^/$as_me: WARNING:     /" >&2
4681     ;;
4682 esac
4683 echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
4684 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
4685 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   ac_cv_header_openssl_evp_h=$ac_header_preproc
4689 fi
4690 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
4691 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
4692
4693 fi
4694 if test $ac_cv_header_openssl_evp_h = yes; then
4695
4696                         echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
4697 echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6
4698 if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   ac_check_lib_save_LIBS=$LIBS
4702 LIBS="-lcrypto $LIB_RSAREF $LIBS"
4703 cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710
4711 /* Override any gcc2 internal prototype to avoid an error.  */
4712 #ifdef __cplusplus
4713 extern "C"
4714 #endif
4715 /* We use char because int might match the return type of a gcc2
4716    builtin and then its argument prototype would still apply.  */
4717 char EVP_DigestInit ();
4718 int
4719 main ()
4720 {
4721 EVP_DigestInit ();
4722   ;
4723   return 0;
4724 }
4725 _ACEOF
4726 rm -f conftest.$ac_objext conftest$ac_exeext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728   (eval $ac_link) 2>&5
4729   ac_status=$?
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); } &&
4732          { ac_try='test -s conftest$ac_exeext'
4733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734   (eval $ac_try) 2>&5
4735   ac_status=$?
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); }; }; then
4738   ac_cv_lib_crypto_EVP_DigestInit=yes
4739 else
4740   echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 ac_cv_lib_crypto_EVP_DigestInit=no
4744 fi
4745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4746 LIBS=$ac_check_lib_save_LIBS
4747 fi
4748 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
4749 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6
4750 if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then
4751   with_openssl="yes"
4752 else
4753   with_openssl="no"
4754 fi
4755
4756 else
4757   with_openssl=no
4758 fi
4759
4760
4761                 ;;
4762 esac
4763
4764         if test "$with_openssl" != "no"; then
4765
4766 cat >>confdefs.h <<\_ACEOF
4767 #define HAVE_OPENSSL
4768 _ACEOF
4769
4770         else
4771                 CPPFLAGS=$save_CPPFLAGS
4772                 LDFLAGS=$save_LDFLAGS
4773         fi
4774
4775 echo "$as_me:$LINENO: checking for OpenSSL" >&5
4776 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
4777 echo "$as_me:$LINENO: result: $with_openssl" >&5
4778 echo "${ECHO_T}$with_openssl" >&6
4779
4780
4781
4782 # Check whether --with-des or --without-des was given.
4783 if test "${with_des+set}" = set; then
4784   withval="$with_des"
4785   with_des=$withval
4786 else
4787   with_des=yes
4788 fi;
4789
4790 LIB_DES=""
4791 if test "$with_des" != no; then
4792   if test -d $with_des; then
4793     CPPFLAGS="$CPPFLAGS -I${with_des}/include"
4794     LDFLAGS="$LDFLAGS -L${with_des}/lib"
4795   fi
4796
4797   if test "$with_openssl" != no; then
4798         echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
4799 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
4800 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   ac_check_lib_save_LIBS=$LIBS
4804 LIBS="-lcrypto $LIB_RSAREF $LIBS"
4805 cat >conftest.$ac_ext <<_ACEOF
4806 #line $LINENO "configure"
4807 /* confdefs.h.  */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h.  */
4812
4813 /* Override any gcc2 internal prototype to avoid an error.  */
4814 #ifdef __cplusplus
4815 extern "C"
4816 #endif
4817 /* We use char because int might match the return type of a gcc2
4818    builtin and then its argument prototype would still apply.  */
4819 char des_cbc_encrypt ();
4820 int
4821 main ()
4822 {
4823 des_cbc_encrypt ();
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext conftest$ac_exeext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4830   (eval $ac_link) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); } &&
4834          { ac_try='test -s conftest$ac_exeext'
4835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836   (eval $ac_try) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; }; then
4840   ac_cv_lib_crypto_des_cbc_encrypt=yes
4841 else
4842   echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 ac_cv_lib_crypto_des_cbc_encrypt=no
4846 fi
4847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4848 LIBS=$ac_check_lib_save_LIBS
4849 fi
4850 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
4851 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
4852 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
4853
4854         if test "${ac_cv_header_openssl_des_h+set}" = set; then
4855   echo "$as_me:$LINENO: checking for openssl/des.h" >&5
4856 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
4857 if test "${ac_cv_header_openssl_des_h+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 fi
4860 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
4861 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
4862 else
4863   # Is the header compilable?
4864 echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
4865 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6
4866 cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873 $ac_includes_default
4874 #include <openssl/des.h>
4875 _ACEOF
4876 rm -f conftest.$ac_objext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878   (eval $ac_compile) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } &&
4882          { ac_try='test -s conftest.$ac_objext'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; }; then
4888   ac_header_compiler=yes
4889 else
4890   echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 ac_header_compiler=no
4894 fi
4895 rm -f conftest.$ac_objext conftest.$ac_ext
4896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4897 echo "${ECHO_T}$ac_header_compiler" >&6
4898
4899 # Is the header present?
4900 echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
4901 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6
4902 cat >conftest.$ac_ext <<_ACEOF
4903 #line $LINENO "configure"
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 #include <openssl/des.h>
4910 _ACEOF
4911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4913   ac_status=$?
4914   grep -v '^ *+' conftest.er1 >conftest.err
4915   rm -f conftest.er1
4916   cat conftest.err >&5
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); } >/dev/null; then
4919   if test -s conftest.err; then
4920     ac_cpp_err=$ac_c_preproc_warn_flag
4921   else
4922     ac_cpp_err=
4923   fi
4924 else
4925   ac_cpp_err=yes
4926 fi
4927 if test -z "$ac_cpp_err"; then
4928   ac_header_preproc=yes
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933   ac_header_preproc=no
4934 fi
4935 rm -f conftest.err conftest.$ac_ext
4936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4937 echo "${ECHO_T}$ac_header_preproc" >&6
4938
4939 # So?  What about this header?
4940 case $ac_header_compiler:$ac_header_preproc in
4941   yes:no )
4942     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
4943 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4944     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
4945 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
4946     (
4947       cat <<\_ASBOX
4948 ## ------------------------------------ ##
4949 ## Report this to bug-autoconf@gnu.org. ##
4950 ## ------------------------------------ ##
4951 _ASBOX
4952     ) |
4953       sed "s/^/$as_me: WARNING:     /" >&2
4954     ;;
4955   no:yes )
4956     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
4957 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
4958     { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
4959 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
4960     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
4961 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
4962     (
4963       cat <<\_ASBOX
4964 ## ------------------------------------ ##
4965 ## Report this to bug-autoconf@gnu.org. ##
4966 ## ------------------------------------ ##
4967 _ASBOX
4968     ) |
4969       sed "s/^/$as_me: WARNING:     /" >&2
4970     ;;
4971 esac
4972 echo "$as_me:$LINENO: checking for openssl/des.h" >&5
4973 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
4974 if test "${ac_cv_header_openssl_des_h+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   ac_cv_header_openssl_des_h=$ac_header_preproc
4978 fi
4979 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
4980 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
4981
4982 fi
4983 if test $ac_cv_header_openssl_des_h = yes; then
4984
4985 cat >>confdefs.h <<\_ACEOF
4986 #define WITH_SSL_DES
4987 _ACEOF
4988
4989                                        LIB_DES="-lcrypto";
4990                                        with_des=yes
4991 else
4992   with_des=no
4993 fi
4994
4995
4996 else
4997   with_des=no
4998 fi
4999
5000
5001         if test "$with_des" = no; then
5002       echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
5003 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
5004 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016
5017 /* Override any gcc2 internal prototype to avoid an error.  */
5018 #ifdef __cplusplus
5019 extern "C"
5020 #endif
5021 /* We use char because int might match the return type of a gcc2
5022    builtin and then its argument prototype would still apply.  */
5023 char DES_cbc_encrypt ();
5024 int
5025 main ()
5026 {
5027 DES_cbc_encrypt ();
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034   (eval $ac_link) 2>&5
5035   ac_status=$?
5036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } &&
5038          { ac_try='test -s conftest$ac_exeext'
5039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040   (eval $ac_try) 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); }; }; then
5044   ac_cv_lib_crypto_DES_cbc_encrypt=yes
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_cv_lib_crypto_DES_cbc_encrypt=no
5050 fi
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
5055 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
5056 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
5057
5058         if test "${ac_cv_header_openssl_des_h+set}" = set; then
5059   echo "$as_me:$LINENO: checking for openssl/des.h" >&5
5060 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
5061 if test "${ac_cv_header_openssl_des_h+set}" = set; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 fi
5064 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5065 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
5066 else
5067   # Is the header compilable?
5068 echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
5069 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6
5070 cat >conftest.$ac_ext <<_ACEOF
5071 #line $LINENO "configure"
5072 /* confdefs.h.  */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h.  */
5077 $ac_includes_default
5078 #include <openssl/des.h>
5079 _ACEOF
5080 rm -f conftest.$ac_objext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082   (eval $ac_compile) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } &&
5086          { ac_try='test -s conftest.$ac_objext'
5087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088   (eval $ac_try) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); }; }; then
5092   ac_header_compiler=yes
5093 else
5094   echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 ac_header_compiler=no
5098 fi
5099 rm -f conftest.$ac_objext conftest.$ac_ext
5100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5101 echo "${ECHO_T}$ac_header_compiler" >&6
5102
5103 # Is the header present?
5104 echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
5105 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6
5106 cat >conftest.$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 #include <openssl/des.h>
5114 _ACEOF
5115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5117   ac_status=$?
5118   grep -v '^ *+' conftest.er1 >conftest.err
5119   rm -f conftest.er1
5120   cat conftest.err >&5
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } >/dev/null; then
5123   if test -s conftest.err; then
5124     ac_cpp_err=$ac_c_preproc_warn_flag
5125   else
5126     ac_cpp_err=
5127   fi
5128 else
5129   ac_cpp_err=yes
5130 fi
5131 if test -z "$ac_cpp_err"; then
5132   ac_header_preproc=yes
5133 else
5134   echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137   ac_header_preproc=no
5138 fi
5139 rm -f conftest.err conftest.$ac_ext
5140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5141 echo "${ECHO_T}$ac_header_preproc" >&6
5142
5143 # So?  What about this header?
5144 case $ac_header_compiler:$ac_header_preproc in
5145   yes:no )
5146     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
5147 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5148     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
5149 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
5150     (
5151       cat <<\_ASBOX
5152 ## ------------------------------------ ##
5153 ## Report this to bug-autoconf@gnu.org. ##
5154 ## ------------------------------------ ##
5155 _ASBOX
5156     ) |
5157       sed "s/^/$as_me: WARNING:     /" >&2
5158     ;;
5159   no:yes )
5160     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
5161 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
5162     { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
5163 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
5164     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
5165 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
5166     (
5167       cat <<\_ASBOX
5168 ## ------------------------------------ ##
5169 ## Report this to bug-autoconf@gnu.org. ##
5170 ## ------------------------------------ ##
5171 _ASBOX
5172     ) |
5173       sed "s/^/$as_me: WARNING:     /" >&2
5174     ;;
5175 esac
5176 echo "$as_me:$LINENO: checking for openssl/des.h" >&5
5177 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
5178 if test "${ac_cv_header_openssl_des_h+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181   ac_cv_header_openssl_des_h=$ac_header_preproc
5182 fi
5183 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5184 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
5185
5186 fi
5187 if test $ac_cv_header_openssl_des_h = yes; then
5188
5189 cat >>confdefs.h <<\_ACEOF
5190 #define WITH_SSL_DES
5191 _ACEOF
5192
5193                                        LIB_DES="-lcrypto";
5194                                        with_des=yes
5195 else
5196   with_des=no
5197 fi
5198
5199
5200 else
5201   with_des=no
5202 fi
5203
5204     fi
5205   fi
5206
5207   if test "$with_des" = no; then
5208     echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
5209 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
5210 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   ac_check_lib_save_LIBS=$LIBS
5214 LIBS="-ldes  $LIBS"
5215 cat >conftest.$ac_ext <<_ACEOF
5216 #line $LINENO "configure"
5217 /* confdefs.h.  */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h.  */
5222
5223 /* Override any gcc2 internal prototype to avoid an error.  */
5224 #ifdef __cplusplus
5225 extern "C"
5226 #endif
5227 /* We use char because int might match the return type of a gcc2
5228    builtin and then its argument prototype would still apply.  */
5229 char des_cbc_encrypt ();
5230 int
5231 main ()
5232 {
5233 des_cbc_encrypt ();
5234   ;
5235   return 0;
5236 }
5237 _ACEOF
5238 rm -f conftest.$ac_objext conftest$ac_exeext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5240   (eval $ac_link) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); } &&
5244          { ac_try='test -s conftest$ac_exeext'
5245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246   (eval $ac_try) 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }; }; then
5250   ac_cv_lib_des_des_cbc_encrypt=yes
5251 else
5252   echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5254
5255 ac_cv_lib_des_des_cbc_encrypt=no
5256 fi
5257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5258 LIBS=$ac_check_lib_save_LIBS
5259 fi
5260 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
5261 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
5262 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
5263   LIB_DES="-ldes";
5264                                         with_des=yes
5265 else
5266   with_des=no
5267 fi
5268
5269   fi
5270
5271   if test "$with_des" = no; then
5272      echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
5273 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
5274 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   ac_check_lib_save_LIBS=$LIBS
5278 LIBS="-ldes425  $LIBS"
5279 cat >conftest.$ac_ext <<_ACEOF
5280 #line $LINENO "configure"
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286
5287 /* Override any gcc2 internal prototype to avoid an error.  */
5288 #ifdef __cplusplus
5289 extern "C"
5290 #endif
5291 /* We use char because int might match the return type of a gcc2
5292    builtin and then its argument prototype would still apply.  */
5293 char des_cbc_encrypt ();
5294 int
5295 main ()
5296 {
5297 des_cbc_encrypt ();
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 rm -f conftest.$ac_objext conftest$ac_exeext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5304   (eval $ac_link) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } &&
5308          { ac_try='test -s conftest$ac_exeext'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; }; then
5314   ac_cv_lib_des425_des_cbc_encrypt=yes
5315 else
5316   echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5318
5319 ac_cv_lib_des425_des_cbc_encrypt=no
5320 fi
5321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5323 fi
5324 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
5325 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
5326 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
5327   LIB_DES="-ldes425";
5328                                        with_des=yes
5329 else
5330   with_des=no
5331 fi
5332
5333   fi
5334
5335   if test "$with_des" = no; then
5336      echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5
5337 echo $ECHO_N "checking for des_cbc_encrypt in -ldes524... $ECHO_C" >&6
5338 if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   ac_check_lib_save_LIBS=$LIBS
5342 LIBS="-ldes524  $LIBS"
5343 cat >conftest.$ac_ext <<_ACEOF
5344 #line $LINENO "configure"
5345 /* confdefs.h.  */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h.  */
5350
5351 /* Override any gcc2 internal prototype to avoid an error.  */
5352 #ifdef __cplusplus
5353 extern "C"
5354 #endif
5355 /* We use char because int might match the return type of a gcc2
5356    builtin and then its argument prototype would still apply.  */
5357 char des_cbc_encrypt ();
5358 int
5359 main ()
5360 {
5361 des_cbc_encrypt ();
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 rm -f conftest.$ac_objext conftest$ac_exeext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5368   (eval $ac_link) 2>&5
5369   ac_status=$?
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); } &&
5372          { ac_try='test -s conftest$ac_exeext'
5373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374   (eval $ac_try) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; }; then
5378   ac_cv_lib_des524_des_cbc_encrypt=yes
5379 else
5380   echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 ac_cv_lib_des524_des_cbc_encrypt=no
5384 fi
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
5387 fi
5388 echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
5389 echo "${ECHO_T}$ac_cv_lib_des524_des_cbc_encrypt" >&6
5390 if test $ac_cv_lib_des524_des_cbc_encrypt = yes; then
5391   LIB_DES="-ldes524";
5392                                        with_des=yes
5393 else
5394   with_des=no
5395 fi
5396
5397   fi
5398
5399   if test "$with_des" = no; then
5400
5401             LIB_RSAREF=""
5402     echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
5403 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6
5404 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   ac_check_lib_save_LIBS=$LIBS
5408 LIBS="-lrsaref  $LIBS"
5409 cat >conftest.$ac_ext <<_ACEOF
5410 #line $LINENO "configure"
5411 /* confdefs.h.  */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h.  */
5416
5417 /* Override any gcc2 internal prototype to avoid an error.  */
5418 #ifdef __cplusplus
5419 extern "C"
5420 #endif
5421 /* We use char because int might match the return type of a gcc2
5422    builtin and then its argument prototype would still apply.  */
5423 char RSAPublicEncrypt ();
5424 int
5425 main ()
5426 {
5427 RSAPublicEncrypt ();
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext conftest$ac_exeext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5434   (eval $ac_link) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } &&
5438          { ac_try='test -s conftest$ac_exeext'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 ac_cv_lib_rsaref_RSAPublicEncrypt=no
5450 fi
5451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5452 LIBS=$ac_check_lib_save_LIBS
5453 fi
5454 echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
5455 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6
5456 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
5457   LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
5458 else
5459   cmu_have_rsaref=no
5460 fi
5461
5462
5463     echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
5464 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
5465 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   ac_check_lib_save_LIBS=$LIBS
5469 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477
5478 /* Override any gcc2 internal prototype to avoid an error.  */
5479 #ifdef __cplusplus
5480 extern "C"
5481 #endif
5482 /* We use char because int might match the return type of a gcc2
5483    builtin and then its argument prototype would still apply.  */
5484 char des_cbc_encrypt ();
5485 int
5486 main ()
5487 {
5488 des_cbc_encrypt ();
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext conftest$ac_exeext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5495   (eval $ac_link) 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } &&
5499          { ac_try='test -s conftest$ac_exeext'
5500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501   (eval $ac_try) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; }; then
5505   ac_cv_lib_crypto_des_cbc_encrypt=yes
5506 else
5507   echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 ac_cv_lib_crypto_des_cbc_encrypt=no
5511 fi
5512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5513 LIBS=$ac_check_lib_save_LIBS
5514 fi
5515 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
5516 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
5517 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
5518
5519         if test "${ac_cv_header_openssl_des_h+set}" = set; then
5520   echo "$as_me:$LINENO: checking for openssl/des.h" >&5
5521 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
5522 if test "${ac_cv_header_openssl_des_h+set}" = set; then
5523   echo $ECHO_N "(cached) $ECHO_C" >&6
5524 fi
5525 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5526 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
5527 else
5528   # Is the header compilable?
5529 echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
5530 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6
5531 cat >conftest.$ac_ext <<_ACEOF
5532 #line $LINENO "configure"
5533 /* confdefs.h.  */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h.  */
5538 $ac_includes_default
5539 #include <openssl/des.h>
5540 _ACEOF
5541 rm -f conftest.$ac_objext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543   (eval $ac_compile) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } &&
5547          { ac_try='test -s conftest.$ac_objext'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; }; then
5553   ac_header_compiler=yes
5554 else
5555   echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558 ac_header_compiler=no
5559 fi
5560 rm -f conftest.$ac_objext conftest.$ac_ext
5561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5562 echo "${ECHO_T}$ac_header_compiler" >&6
5563
5564 # Is the header present?
5565 echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
5566 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6
5567 cat >conftest.$ac_ext <<_ACEOF
5568 #line $LINENO "configure"
5569 /* confdefs.h.  */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h.  */
5574 #include <openssl/des.h>
5575 _ACEOF
5576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5578   ac_status=$?
5579   grep -v '^ *+' conftest.er1 >conftest.err
5580   rm -f conftest.er1
5581   cat conftest.err >&5
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } >/dev/null; then
5584   if test -s conftest.err; then
5585     ac_cpp_err=$ac_c_preproc_warn_flag
5586   else
5587     ac_cpp_err=
5588   fi
5589 else
5590   ac_cpp_err=yes
5591 fi
5592 if test -z "$ac_cpp_err"; then
5593   ac_header_preproc=yes
5594 else
5595   echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598   ac_header_preproc=no
5599 fi
5600 rm -f conftest.err conftest.$ac_ext
5601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5602 echo "${ECHO_T}$ac_header_preproc" >&6
5603
5604 # So?  What about this header?
5605 case $ac_header_compiler:$ac_header_preproc in
5606   yes:no )
5607     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
5608 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5609     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
5610 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
5611     (
5612       cat <<\_ASBOX
5613 ## ------------------------------------ ##
5614 ## Report this to bug-autoconf@gnu.org. ##
5615 ## ------------------------------------ ##
5616 _ASBOX
5617     ) |
5618       sed "s/^/$as_me: WARNING:     /" >&2
5619     ;;
5620   no:yes )
5621     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
5622 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
5623     { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
5624 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
5625     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
5626 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
5627     (
5628       cat <<\_ASBOX
5629 ## ------------------------------------ ##
5630 ## Report this to bug-autoconf@gnu.org. ##
5631 ## ------------------------------------ ##
5632 _ASBOX
5633     ) |
5634       sed "s/^/$as_me: WARNING:     /" >&2
5635     ;;
5636 esac
5637 echo "$as_me:$LINENO: checking for openssl/des.h" >&5
5638 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
5639 if test "${ac_cv_header_openssl_des_h+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   ac_cv_header_openssl_des_h=$ac_header_preproc
5643 fi
5644 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5645 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
5646
5647 fi
5648 if test $ac_cv_header_openssl_des_h = yes; then
5649
5650 cat >>confdefs.h <<\_ACEOF
5651 #define WITH_SSL_DES
5652 _ACEOF
5653
5654                                         LIB_DES="-lcrypto";
5655                                         with_des=yes
5656 else
5657   with_des=no
5658 fi
5659
5660
5661 else
5662   with_des=no
5663 fi
5664
5665   fi
5666 fi
5667
5668 if test "$with_des" != no; then
5669
5670 cat >>confdefs.h <<\_ACEOF
5671 #define WITH_DES
5672 _ACEOF
5673
5674 fi
5675
5676
5677
5678
5679
5680
5681
5682   # Check whether --enable-krb4 or --disable-krb4 was given.
5683 if test "${enable_krb4+set}" = set; then
5684   enableval="$enable_krb4"
5685   krb4=$enableval
5686 else
5687   krb4=no
5688 fi;
5689
5690   if test "$krb4" != no; then
5691
5692 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
5693 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
5694 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   ac_check_lib_save_LIBS=$LIBS
5698 LIBS="-lresolv  $LIBS"
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706
5707 /* Override any gcc2 internal prototype to avoid an error.  */
5708 #ifdef __cplusplus
5709 extern "C"
5710 #endif
5711 /* We use char because int might match the return type of a gcc2
5712    builtin and then its argument prototype would still apply.  */
5713 char res_search ();
5714 int
5715 main ()
5716 {
5717 res_search ();
5718   ;
5719   return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext conftest$ac_exeext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724   (eval $ac_link) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); } &&
5728          { ac_try='test -s conftest$ac_exeext'
5729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730   (eval $ac_try) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; }; then
5734   ac_cv_lib_resolv_res_search=yes
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739 ac_cv_lib_resolv_res_search=no
5740 fi
5741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5742 LIBS=$ac_check_lib_save_LIBS
5743 fi
5744 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
5745 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
5746 if test $ac_cv_lib_resolv_res_search = yes; then
5747   cat >>confdefs.h <<_ACEOF
5748 #define HAVE_LIBRESOLV 1
5749 _ACEOF
5750
5751   LIBS="-lresolv $LIBS"
5752
5753 fi
5754
5755
5756             if test -d ${krb4}; then
5757        echo "$as_me:$LINENO: checking for Kerberos includes" >&5
5758 echo $ECHO_N "checking for Kerberos includes... $ECHO_C" >&6
5759 if test "${cyrus_krbinclude+set}" = set; then
5760   echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762
5763          for krbhloc in include/kerberosIV include/kerberos include
5764          do
5765            if test -f ${krb4}/${krbhloc}/krb.h ; then
5766              cyrus_krbinclude=${krb4}/${krbhloc}
5767              break
5768            fi
5769          done
5770
5771 fi
5772 echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
5773 echo "${ECHO_T}$cyrus_krbinclude" >&6
5774
5775        if test -n "${cyrus_krbinclude}"; then
5776          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
5777        fi
5778        LDFLAGS="$LDFLAGS -L$krb4/lib"
5779     fi
5780
5781     if test "$with_des" != no; then
5782       if test "${ac_cv_header_krb_h+set}" = set; then
5783   echo "$as_me:$LINENO: checking for krb.h" >&5
5784 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
5785 if test "${ac_cv_header_krb_h+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 fi
5788 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
5789 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
5790 else
5791   # Is the header compilable?
5792 echo "$as_me:$LINENO: checking krb.h usability" >&5
5793 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
5794 cat >conftest.$ac_ext <<_ACEOF
5795 #line $LINENO "configure"
5796 /* confdefs.h.  */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h.  */
5801 $ac_includes_default
5802 #include <krb.h>
5803 _ACEOF
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806   (eval $ac_compile) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); } &&
5810          { ac_try='test -s conftest.$ac_objext'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; }; then
5816   ac_header_compiler=yes
5817 else
5818   echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 ac_header_compiler=no
5822 fi
5823 rm -f conftest.$ac_objext conftest.$ac_ext
5824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5825 echo "${ECHO_T}$ac_header_compiler" >&6
5826
5827 # Is the header present?
5828 echo "$as_me:$LINENO: checking krb.h presence" >&5
5829 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
5830 cat >conftest.$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837 #include <krb.h>
5838 _ACEOF
5839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5841   ac_status=$?
5842   grep -v '^ *+' conftest.er1 >conftest.err
5843   rm -f conftest.er1
5844   cat conftest.err >&5
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); } >/dev/null; then
5847   if test -s conftest.err; then
5848     ac_cpp_err=$ac_c_preproc_warn_flag
5849   else
5850     ac_cpp_err=
5851   fi
5852 else
5853   ac_cpp_err=yes
5854 fi
5855 if test -z "$ac_cpp_err"; then
5856   ac_header_preproc=yes
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861   ac_header_preproc=no
5862 fi
5863 rm -f conftest.err conftest.$ac_ext
5864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5865 echo "${ECHO_T}$ac_header_preproc" >&6
5866
5867 # So?  What about this header?
5868 case $ac_header_compiler:$ac_header_preproc in
5869   yes:no )
5870     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5871 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5872     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
5873 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
5874     (
5875       cat <<\_ASBOX
5876 ## ------------------------------------ ##
5877 ## Report this to bug-autoconf@gnu.org. ##
5878 ## ------------------------------------ ##
5879 _ASBOX
5880     ) |
5881       sed "s/^/$as_me: WARNING:     /" >&2
5882     ;;
5883   no:yes )
5884     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
5885 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
5886     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
5887 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
5888     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
5889 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
5890     (
5891       cat <<\_ASBOX
5892 ## ------------------------------------ ##
5893 ## Report this to bug-autoconf@gnu.org. ##
5894 ## ------------------------------------ ##
5895 _ASBOX
5896     ) |
5897       sed "s/^/$as_me: WARNING:     /" >&2
5898     ;;
5899 esac
5900 echo "$as_me:$LINENO: checking for krb.h" >&5
5901 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
5902 if test "${ac_cv_header_krb_h+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   ac_cv_header_krb_h=$ac_header_preproc
5906 fi
5907 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
5908 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
5909
5910 fi
5911 if test $ac_cv_header_krb_h = yes; then
5912
5913         echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
5914 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
5915 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   ac_check_lib_save_LIBS=$LIBS
5919 LIBS="-lcom_err  $LIBS"
5920 cat >conftest.$ac_ext <<_ACEOF
5921 #line $LINENO "configure"
5922 /* confdefs.h.  */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h.  */
5927
5928 /* Override any gcc2 internal prototype to avoid an error.  */
5929 #ifdef __cplusplus
5930 extern "C"
5931 #endif
5932 /* We use char because int might match the return type of a gcc2
5933    builtin and then its argument prototype would still apply.  */
5934 char com_err ();
5935 int
5936 main ()
5937 {
5938 com_err ();
5939   ;
5940   return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945   (eval $ac_link) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); } &&
5949          { ac_try='test -s conftest$ac_exeext'
5950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951   (eval $ac_try) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; }; then
5955   ac_cv_lib_com_err_com_err=yes
5956 else
5957   echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 ac_cv_lib_com_err_com_err=no
5961 fi
5962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5963 LIBS=$ac_check_lib_save_LIBS
5964 fi
5965 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
5966 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
5967 if test $ac_cv_lib_com_err_com_err = yes; then
5968
5969           echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
5970 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6
5971 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   ac_check_lib_save_LIBS=$LIBS
5975 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
5976 cat >conftest.$ac_ext <<_ACEOF
5977 #line $LINENO "configure"
5978 /* confdefs.h.  */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h.  */
5983
5984 /* Override any gcc2 internal prototype to avoid an error.  */
5985 #ifdef __cplusplus
5986 extern "C"
5987 #endif
5988 /* We use char because int might match the return type of a gcc2
5989    builtin and then its argument prototype would still apply.  */
5990 char krb_mk_priv ();
5991 int
5992 main ()
5993 {
5994 krb_mk_priv ();
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001   (eval $ac_link) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } &&
6005          { ac_try='test -s conftest$ac_exeext'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; }; then
6011   ac_cv_lib_krb_krb_mk_priv=yes
6012 else
6013   echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6015
6016 ac_cv_lib_krb_krb_mk_priv=no
6017 fi
6018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6019 LIBS=$ac_check_lib_save_LIBS
6020 fi
6021 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
6022 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6
6023 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
6024   COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
6025 else
6026   krb4lib=no
6027 fi
6028
6029 else
6030
6031           echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
6032 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6
6033 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   ac_check_lib_save_LIBS=$LIBS
6037 LIBS="-lkrb $LIB_DES $LIBS"
6038 cat >conftest.$ac_ext <<_ACEOF
6039 #line $LINENO "configure"
6040 /* confdefs.h.  */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h.  */
6045
6046 /* Override any gcc2 internal prototype to avoid an error.  */
6047 #ifdef __cplusplus
6048 extern "C"
6049 #endif
6050 /* We use char because int might match the return type of a gcc2
6051    builtin and then its argument prototype would still apply.  */
6052 char krb_mk_priv ();
6053 int
6054 main ()
6055 {
6056 krb_mk_priv ();
6057   ;
6058   return 0;
6059 }
6060 _ACEOF
6061 rm -f conftest.$ac_objext conftest$ac_exeext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6063   (eval $ac_link) 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } &&
6067          { ac_try='test -s conftest$ac_exeext'
6068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; }; then
6073   ac_cv_lib_krb_krb_mk_priv=yes
6074 else
6075   echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078 ac_cv_lib_krb_krb_mk_priv=no
6079 fi
6080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6081 LIBS=$ac_check_lib_save_LIBS
6082 fi
6083 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
6084 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6
6085 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
6086   COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
6087 else
6088   krb4lib=no
6089 fi
6090
6091 fi
6092
6093 else
6094   krb4="no"
6095 fi
6096
6097
6098
6099       if test "$krb4" != "no" -a "$krb4lib" = "no"; then
6100         echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5
6101 echo $ECHO_N "checking for krb_mk_priv in -lkrb4... $ECHO_C" >&6
6102 if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105   ac_check_lib_save_LIBS=$LIBS
6106 LIBS="-lkrb4 $LIB_DES $LIBS"
6107 cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6109 /* confdefs.h.  */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h.  */
6114
6115 /* Override any gcc2 internal prototype to avoid an error.  */
6116 #ifdef __cplusplus
6117 extern "C"
6118 #endif
6119 /* We use char because int might match the return type of a gcc2
6120    builtin and then its argument prototype would still apply.  */
6121 char krb_mk_priv ();
6122 int
6123 main ()
6124 {
6125 krb_mk_priv ();
6126   ;
6127   return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132   (eval $ac_link) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } &&
6136          { ac_try='test -s conftest$ac_exeext'
6137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138   (eval $ac_try) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); }; }; then
6142   ac_cv_lib_krb4_krb_mk_priv=yes
6143 else
6144   echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 ac_cv_lib_krb4_krb_mk_priv=no
6148 fi
6149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6150 LIBS=$ac_check_lib_save_LIBS
6151 fi
6152 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
6153 echo "${ECHO_T}$ac_cv_lib_krb4_krb_mk_priv" >&6
6154 if test $ac_cv_lib_krb4_krb_mk_priv = yes; then
6155   COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
6156 else
6157   krb4=no
6158 fi
6159
6160       fi
6161       if test "$krb4" = no; then
6162           { echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5
6163 echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
6164       fi
6165     else
6166       { echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5
6167 echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
6168       krb4=no
6169     fi
6170   fi
6171
6172   if test "$krb4" != no; then
6173     cmu_save_LIBS="$LIBS"
6174     LIBS="$LIBS $SASL_KRB_LIB"
6175
6176 for ac_func in krb_get_err_text
6177 do
6178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6179 echo "$as_me:$LINENO: checking for $ac_func" >&5
6180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6181 if eval "test \"\${$as_ac_var+set}\" = set"; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6186 /* confdefs.h.  */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h.  */
6191 /* System header to define __stub macros and hopefully few prototypes,
6192     which can conflict with char $ac_func (); below.
6193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6194     <limits.h> exists even on freestanding compilers.  */
6195 #ifdef __STDC__
6196 # include <limits.h>
6197 #else
6198 # include <assert.h>
6199 #endif
6200 /* Override any gcc2 internal prototype to avoid an error.  */
6201 #ifdef __cplusplus
6202 extern "C"
6203 {
6204 #endif
6205 /* We use char because int might match the return type of a gcc2
6206    builtin and then its argument prototype would still apply.  */
6207 char $ac_func ();
6208 /* The GNU C library defines this for functions which it implements
6209     to always fail with ENOSYS.  Some functions are actually named
6210     something starting with __ and the normal name is an alias.  */
6211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6212 choke me
6213 #else
6214 char (*f) () = $ac_func;
6215 #endif
6216 #ifdef __cplusplus
6217 }
6218 #endif
6219
6220 int
6221 main ()
6222 {
6223 return f != $ac_func;
6224   ;
6225   return 0;
6226 }
6227 _ACEOF
6228 rm -f conftest.$ac_objext conftest$ac_exeext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6230   (eval $ac_link) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } &&
6234          { ac_try='test -s conftest$ac_exeext'
6235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236   (eval $ac_try) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; }; then
6240   eval "$as_ac_var=yes"
6241 else
6242   echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 eval "$as_ac_var=no"
6246 fi
6247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6248 fi
6249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6251 if test `eval echo '${'$as_ac_var'}'` = yes; then
6252   cat >>confdefs.h <<_ACEOF
6253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6254 _ACEOF
6255
6256 fi
6257 done
6258
6259     LIBS="$cmu_save_LIBS"
6260   fi
6261
6262   echo "$as_me:$LINENO: checking KERBEROS_V4" >&5
6263 echo $ECHO_N "checking KERBEROS_V4... $ECHO_C" >&6
6264   if test "$krb4" != no; then
6265     echo "$as_me:$LINENO: result: enabled" >&5
6266 echo "${ECHO_T}enabled" >&6
6267     SASL_MECHS="$SASL_MECHS libkerberos4.la"
6268     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
6269     SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
6270
6271 cat >>confdefs.h <<\_ACEOF
6272 #define STATIC_KERBEROS4
6273 _ACEOF
6274
6275
6276 cat >>confdefs.h <<\_ACEOF
6277 #define HAVE_KRB
6278 _ACEOF
6279
6280     SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
6281   else
6282     echo "$as_me:$LINENO: result: disabled" >&5
6283 echo "${ECHO_T}disabled" >&6
6284   fi
6285
6286
6287 echo "$as_me:$LINENO: checking for crypt" >&5
6288 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
6289 if test "${ac_cv_func_crypt+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6294 /* confdefs.h.  */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h.  */
6299 /* System header to define __stub macros and hopefully few prototypes,
6300     which can conflict with char crypt (); below.
6301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6302     <limits.h> exists even on freestanding compilers.  */
6303 #ifdef __STDC__
6304 # include <limits.h>
6305 #else
6306 # include <assert.h>
6307 #endif
6308 /* Override any gcc2 internal prototype to avoid an error.  */
6309 #ifdef __cplusplus
6310 extern "C"
6311 {
6312 #endif
6313 /* We use char because int might match the return type of a gcc2
6314    builtin and then its argument prototype would still apply.  */
6315 char crypt ();
6316 /* The GNU C library defines this for functions which it implements
6317     to always fail with ENOSYS.  Some functions are actually named
6318     something starting with __ and the normal name is an alias.  */
6319 #if defined (__stub_crypt) || defined (__stub___crypt)
6320 choke me
6321 #else
6322 char (*f) () = crypt;
6323 #endif
6324 #ifdef __cplusplus
6325 }
6326 #endif
6327
6328 int
6329 main ()
6330 {
6331 return f != crypt;
6332   ;
6333   return 0;
6334 }
6335 _ACEOF
6336 rm -f conftest.$ac_objext conftest$ac_exeext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338   (eval $ac_link) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } &&
6342          { ac_try='test -s conftest$ac_exeext'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; }; then
6348   ac_cv_func_crypt=yes
6349 else
6350   echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6352
6353 ac_cv_func_crypt=no
6354 fi
6355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6356 fi
6357 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
6358 echo "${ECHO_T}$ac_cv_func_crypt" >&6
6359 if test $ac_cv_func_crypt = yes; then
6360   cmu_have_crypt=yes
6361 else
6362   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
6363 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
6364 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   ac_check_lib_save_LIBS=$LIBS
6368 LIBS="-lcrypt  $LIBS"
6369 cat >conftest.$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6371 /* confdefs.h.  */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h.  */
6376
6377 /* Override any gcc2 internal prototype to avoid an error.  */
6378 #ifdef __cplusplus
6379 extern "C"
6380 #endif
6381 /* We use char because int might match the return type of a gcc2
6382    builtin and then its argument prototype would still apply.  */
6383 char crypt ();
6384 int
6385 main ()
6386 {
6387 crypt ();
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394   (eval $ac_link) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); } &&
6398          { ac_try='test -s conftest$ac_exeext'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; }; then
6404   ac_cv_lib_crypt_crypt=yes
6405 else
6406   echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_cv_lib_crypt_crypt=no
6410 fi
6411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6412 LIBS=$ac_check_lib_save_LIBS
6413 fi
6414 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
6415 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
6416 if test $ac_cv_lib_crypt_crypt = yes; then
6417   LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
6418 else
6419   cmu_have_crypt=no
6420 fi
6421
6422 fi
6423
6424
6425
6426
6427
6428 # Check whether --enable-gssapi or --disable-gssapi was given.
6429 if test "${enable_gssapi+set}" = set; then
6430   enableval="$enable_gssapi"
6431   gssapi=$enableval
6432 else
6433   gssapi=yes
6434 fi;
6435
6436 # Check whether --with-gss_impl or --without-gss_impl was given.
6437 if test "${with_gss_impl+set}" = set; then
6438   withval="$with_gss_impl"
6439   gss_impl=$withval
6440 else
6441   gss_impl=auto
6442 fi;
6443
6444 if test "$gssapi" != no; then
6445   platform=
6446   case "${host}" in
6447     *-*-linux*)
6448       platform=__linux
6449       ;;
6450     *-*-hpux*)
6451       platform=__hpux
6452       ;;
6453     *-*-irix*)
6454       platform=__irix
6455       ;;
6456     *-*-solaris2*)
6457 # When should we use __sunos?
6458       platform=__solaris
6459       ;;
6460     *-*-aix*)
6461       platform=__aix
6462       ;;
6463     *)
6464       { 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
6465 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;}
6466       if test "$gss_impl" = "cybersafe"; then
6467         { { echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5
6468 echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;}
6469    { (exit 1); exit 1; }; }
6470       fi
6471       ;;
6472   esac
6473
6474   cmu_saved_CPPFLAGS=$CPPFLAGS
6475
6476   if test -d ${gssapi}; then
6477     CPPFLAGS="$CPPFLAGS -I$gssapi/include"
6478 # We want to keep -I in our CPPFLAGS, but only if we succeed
6479     cmu_saved_CPPFLAGS=$CPPFLAGS
6480     LDFLAGS="$LDFLAGS -L$gssapi/lib"
6481
6482     if test -n "$platform"; then
6483       if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
6484         CPPFLAGS="$CPPFLAGS -D$platform"
6485         if test -d "${gssapi}/appsec-sdk/include"; then
6486           CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
6487         fi
6488       fi
6489     fi
6490   fi
6491   if test "${ac_cv_header_gssapi_h+set}" = set; then
6492   echo "$as_me:$LINENO: checking for gssapi.h" >&5
6493 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
6494 if test "${ac_cv_header_gssapi_h+set}" = set; then
6495   echo $ECHO_N "(cached) $ECHO_C" >&6
6496 fi
6497 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
6498 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
6499 else
6500   # Is the header compilable?
6501 echo "$as_me:$LINENO: checking gssapi.h usability" >&5
6502 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6
6503 cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6505 /* confdefs.h.  */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h.  */
6510 $ac_includes_default
6511 #include <gssapi.h>
6512 _ACEOF
6513 rm -f conftest.$ac_objext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515   (eval $ac_compile) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); } &&
6519          { ac_try='test -s conftest.$ac_objext'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; }; then
6525   ac_header_compiler=yes
6526 else
6527   echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_header_compiler=no
6531 fi
6532 rm -f conftest.$ac_objext conftest.$ac_ext
6533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6534 echo "${ECHO_T}$ac_header_compiler" >&6
6535
6536 # Is the header present?
6537 echo "$as_me:$LINENO: checking gssapi.h presence" >&5
6538 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6
6539 cat >conftest.$ac_ext <<_ACEOF
6540 #line $LINENO "configure"
6541 /* confdefs.h.  */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h.  */
6546 #include <gssapi.h>
6547 _ACEOF
6548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6550   ac_status=$?
6551   grep -v '^ *+' conftest.er1 >conftest.err
6552   rm -f conftest.er1
6553   cat conftest.err >&5
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); } >/dev/null; then
6556   if test -s conftest.err; then
6557     ac_cpp_err=$ac_c_preproc_warn_flag
6558   else
6559     ac_cpp_err=
6560   fi
6561 else
6562   ac_cpp_err=yes
6563 fi
6564 if test -z "$ac_cpp_err"; then
6565   ac_header_preproc=yes
6566 else
6567   echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6569
6570   ac_header_preproc=no
6571 fi
6572 rm -f conftest.err conftest.$ac_ext
6573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6574 echo "${ECHO_T}$ac_header_preproc" >&6
6575
6576 # So?  What about this header?
6577 case $ac_header_compiler:$ac_header_preproc in
6578   yes:no )
6579     { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
6580 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6581     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
6582 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
6583     (
6584       cat <<\_ASBOX
6585 ## ------------------------------------ ##
6586 ## Report this to bug-autoconf@gnu.org. ##
6587 ## ------------------------------------ ##
6588 _ASBOX
6589     ) |
6590       sed "s/^/$as_me: WARNING:     /" >&2
6591     ;;
6592   no:yes )
6593     { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
6594 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
6595     { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
6596 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
6597     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
6598 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
6599     (
6600       cat <<\_ASBOX
6601 ## ------------------------------------ ##
6602 ## Report this to bug-autoconf@gnu.org. ##
6603 ## ------------------------------------ ##
6604 _ASBOX
6605     ) |
6606       sed "s/^/$as_me: WARNING:     /" >&2
6607     ;;
6608 esac
6609 echo "$as_me:$LINENO: checking for gssapi.h" >&5
6610 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
6611 if test "${ac_cv_header_gssapi_h+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   ac_cv_header_gssapi_h=$ac_header_preproc
6615 fi
6616 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
6617 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
6618
6619 fi
6620 if test $ac_cv_header_gssapi_h = yes; then
6621
6622 cat >>confdefs.h <<\_ACEOF
6623 #define HAVE_GSSAPI_H
6624 _ACEOF
6625
6626 else
6627   if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
6628   echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
6629 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6
6630 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 fi
6633 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
6634 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
6635 else
6636   # Is the header compilable?
6637 echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5
6638 echo $ECHO_N "checking gssapi/gssapi.h usability... $ECHO_C" >&6
6639 cat >conftest.$ac_ext <<_ACEOF
6640 #line $LINENO "configure"
6641 /* confdefs.h.  */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h.  */
6646 $ac_includes_default
6647 #include <gssapi/gssapi.h>
6648 _ACEOF
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651   (eval $ac_compile) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } &&
6655          { ac_try='test -s conftest.$ac_objext'
6656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657   (eval $ac_try) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; }; then
6661   ac_header_compiler=yes
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 ac_header_compiler=no
6667 fi
6668 rm -f conftest.$ac_objext conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6670 echo "${ECHO_T}$ac_header_compiler" >&6
6671
6672 # Is the header present?
6673 echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5
6674 echo $ECHO_N "checking gssapi/gssapi.h presence... $ECHO_C" >&6
6675 cat >conftest.$ac_ext <<_ACEOF
6676 #line $LINENO "configure"
6677 /* confdefs.h.  */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h.  */
6682 #include <gssapi/gssapi.h>
6683 _ACEOF
6684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6685   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6686   ac_status=$?
6687   grep -v '^ *+' conftest.er1 >conftest.err
6688   rm -f conftest.er1
6689   cat conftest.err >&5
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); } >/dev/null; then
6692   if test -s conftest.err; then
6693     ac_cpp_err=$ac_c_preproc_warn_flag
6694   else
6695     ac_cpp_err=
6696   fi
6697 else
6698   ac_cpp_err=yes
6699 fi
6700 if test -z "$ac_cpp_err"; then
6701   ac_header_preproc=yes
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706   ac_header_preproc=no
6707 fi
6708 rm -f conftest.err conftest.$ac_ext
6709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6710 echo "${ECHO_T}$ac_header_preproc" >&6
6711
6712 # So?  What about this header?
6713 case $ac_header_compiler:$ac_header_preproc in
6714   yes:no )
6715     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
6716 echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6717     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
6718 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
6719     (
6720       cat <<\_ASBOX
6721 ## ------------------------------------ ##
6722 ## Report this to bug-autoconf@gnu.org. ##
6723 ## ------------------------------------ ##
6724 _ASBOX
6725     ) |
6726       sed "s/^/$as_me: WARNING:     /" >&2
6727     ;;
6728   no:yes )
6729     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5
6730 echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;}
6731     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&5
6732 echo "$as_me: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&2;}
6733     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
6734 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
6735     (
6736       cat <<\_ASBOX
6737 ## ------------------------------------ ##
6738 ## Report this to bug-autoconf@gnu.org. ##
6739 ## ------------------------------------ ##
6740 _ASBOX
6741     ) |
6742       sed "s/^/$as_me: WARNING:     /" >&2
6743     ;;
6744 esac
6745 echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
6746 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6
6747 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
6748   echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750   ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
6751 fi
6752 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
6753 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
6754
6755 fi
6756 if test $ac_cv_header_gssapi_gssapi_h = yes; then
6757   :
6758 else
6759   { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5
6760 echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
6761 fi
6762
6763
6764 fi
6765
6766
6767
6768   CPPFLAGS=$cmu_saved_CPPFLAGS
6769
6770 fi
6771
6772 if test "$gssapi" != no; then
6773   # We need to find out which gssapi implementation we are
6774   # using. Supported alternatives are: MIT Kerberos 5,
6775   # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
6776   # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
6777   # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
6778   #
6779   # The choice is reflected in GSSAPIBASE_LIBS
6780
6781
6782 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
6783 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
6784 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   ac_check_lib_save_LIBS=$LIBS
6788 LIBS="-lresolv  $LIBS"
6789 cat >conftest.$ac_ext <<_ACEOF
6790 #line $LINENO "configure"
6791 /* confdefs.h.  */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h.  */
6796
6797 /* Override any gcc2 internal prototype to avoid an error.  */
6798 #ifdef __cplusplus
6799 extern "C"
6800 #endif
6801 /* We use char because int might match the return type of a gcc2
6802    builtin and then its argument prototype would still apply.  */
6803 char res_search ();
6804 int
6805 main ()
6806 {
6807 res_search ();
6808   ;
6809   return 0;
6810 }
6811 _ACEOF
6812 rm -f conftest.$ac_objext conftest$ac_exeext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6814   (eval $ac_link) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); } &&
6818          { ac_try='test -s conftest$ac_exeext'
6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820   (eval $ac_try) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); }; }; then
6824   ac_cv_lib_resolv_res_search=yes
6825 else
6826   echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829 ac_cv_lib_resolv_res_search=no
6830 fi
6831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6832 LIBS=$ac_check_lib_save_LIBS
6833 fi
6834 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
6835 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
6836 if test $ac_cv_lib_resolv_res_search = yes; then
6837   cat >>confdefs.h <<_ACEOF
6838 #define HAVE_LIBRESOLV 1
6839 _ACEOF
6840
6841   LIBS="-lresolv $LIBS"
6842
6843 fi
6844
6845   if test -d ${gssapi}; then
6846      gssapi_dir="${gssapi}/lib"
6847      GSSAPIBASE_LIBS="-L$gssapi_dir"
6848      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
6849   else
6850      # FIXME: This is only used for building cyrus, and then only as
6851      # a real hack.  it needs to be fixed.
6852      gssapi_dir="/usr/local/lib"
6853   fi
6854
6855   # Check a full link against the Heimdal libraries.
6856   # If this fails, check a full link against the MIT libraries.
6857   # If this fails, check a full link against the CyberSafe libraries.
6858   # If this fails, check a full link against the Solaris 8 and up libgss.
6859
6860   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
6861     gss_failed=0
6862     echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
6863 echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6
6864 if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   ac_check_lib_save_LIBS=$LIBS
6868 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
6869 cat >conftest.$ac_ext <<_ACEOF
6870 #line $LINENO "configure"
6871 /* confdefs.h.  */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h.  */
6876
6877 /* Override any gcc2 internal prototype to avoid an error.  */
6878 #ifdef __cplusplus
6879 extern "C"
6880 #endif
6881 /* We use char because int might match the return type of a gcc2
6882    builtin and then its argument prototype would still apply.  */
6883 char gss_unwrap ();
6884 int
6885 main ()
6886 {
6887 gss_unwrap ();
6888   ;
6889   return 0;
6890 }
6891 _ACEOF
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894   (eval $ac_link) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } &&
6898          { ac_try='test -s conftest$ac_exeext'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; }; then
6904   ac_cv_lib_gssapi_gss_unwrap=yes
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 ac_cv_lib_gssapi_gss_unwrap=no
6910 fi
6911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6912 LIBS=$ac_check_lib_save_LIBS
6913 fi
6914 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
6915 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6
6916 if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
6917   gss_impl="heimdal"
6918 else
6919   gss_failed=1
6920 fi
6921
6922     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
6923       gss_impl="failed"
6924     fi
6925   fi
6926
6927   if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
6928     # check for libkrb5support first
6929     echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
6930 echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6
6931 if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   ac_check_lib_save_LIBS=$LIBS
6935 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
6936 cat >conftest.$ac_ext <<_ACEOF
6937 #line $LINENO "configure"
6938 /* confdefs.h.  */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h.  */
6943
6944 /* Override any gcc2 internal prototype to avoid an error.  */
6945 #ifdef __cplusplus
6946 extern "C"
6947 #endif
6948 /* We use char because int might match the return type of a gcc2
6949    builtin and then its argument prototype would still apply.  */
6950 char krb5int_getspecific ();
6951 int
6952 main ()
6953 {
6954 krb5int_getspecific ();
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961   (eval $ac_link) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); } &&
6965          { ac_try='test -s conftest$ac_exeext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   ac_cv_lib_krb5support_krb5int_getspecific=yes
6972 else
6973   echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976 ac_cv_lib_krb5support_krb5int_getspecific=no
6977 fi
6978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6979 LIBS=$ac_check_lib_save_LIBS
6980 fi
6981 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
6982 echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6
6983 if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
6984   K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
6985 fi
6986
6987
6988     gss_failed=0
6989     echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
6990 echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6
6991 if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   ac_check_lib_save_LIBS=$LIBS
6995 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
6996 cat >conftest.$ac_ext <<_ACEOF
6997 #line $LINENO "configure"
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003
7004 /* Override any gcc2 internal prototype to avoid an error.  */
7005 #ifdef __cplusplus
7006 extern "C"
7007 #endif
7008 /* We use char because int might match the return type of a gcc2
7009    builtin and then its argument prototype would still apply.  */
7010 char gss_unwrap ();
7011 int
7012 main ()
7013 {
7014 gss_unwrap ();
7015   ;
7016   return 0;
7017 }
7018 _ACEOF
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021   (eval $ac_link) 2>&5
7022   ac_status=$?
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } &&
7025          { ac_try='test -s conftest$ac_exeext'
7026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027   (eval $ac_try) 2>&5
7028   ac_status=$?
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); }; }; then
7031   ac_cv_lib_gssapi_krb5_gss_unwrap=yes
7032 else
7033   echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 ac_cv_lib_gssapi_krb5_gss_unwrap=no
7037 fi
7038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7039 LIBS=$ac_check_lib_save_LIBS
7040 fi
7041 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
7042 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6
7043 if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
7044   gss_impl="mit"
7045 else
7046   gss_failed=1
7047 fi
7048
7049     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
7050       gss_impl="failed"
7051     fi
7052   fi
7053
7054   # For Cybersafe one has to set a platform define in order to make compilation work
7055   if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
7056
7057     cmu_saved_CPPFLAGS=$CPPFLAGS
7058     cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
7059 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
7060     if test -d "${gssapi}/appsec-rt/lib"; then
7061       GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
7062     fi
7063     CPPFLAGS="$CPPFLAGS -D$platform"
7064     if test -d "${gssapi}/appsec-sdk/include"; then
7065       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
7066     fi
7067
7068     gss_failed=0
7069
7070 # Check for CyberSafe with two libraries first, than fall back to a single
7071 # library (older CyberSafe)
7072
7073     unset ac_cv_lib_gss_csf_gss_acq_user
7074     echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
7075 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6
7076 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   ac_check_lib_save_LIBS=$LIBS
7080 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
7081 cat >conftest.$ac_ext <<_ACEOF
7082 #line $LINENO "configure"
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088
7089 /* Override any gcc2 internal prototype to avoid an error.  */
7090 #ifdef __cplusplus
7091 extern "C"
7092 #endif
7093 /* We use char because int might match the return type of a gcc2
7094    builtin and then its argument prototype would still apply.  */
7095 char csf_gss_acq_user ();
7096 int
7097 main ()
7098 {
7099 csf_gss_acq_user ();
7100   ;
7101   return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest.$ac_objext conftest$ac_exeext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106   (eval $ac_link) 2>&5
7107   ac_status=$?
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); } &&
7110          { ac_try='test -s conftest$ac_exeext'
7111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112   (eval $ac_try) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); }; }; then
7116   ac_cv_lib_gss_csf_gss_acq_user=yes
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121 ac_cv_lib_gss_csf_gss_acq_user=no
7122 fi
7123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7124 LIBS=$ac_check_lib_save_LIBS
7125 fi
7126 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
7127 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6
7128 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
7129   gss_impl="cybersafe03"
7130 else
7131   unset ac_cv_lib_gss_csf_gss_acq_user;
7132                   echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
7133 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6
7134 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   ac_check_lib_save_LIBS=$LIBS
7138 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146
7147 /* Override any gcc2 internal prototype to avoid an error.  */
7148 #ifdef __cplusplus
7149 extern "C"
7150 #endif
7151 /* We use char because int might match the return type of a gcc2
7152    builtin and then its argument prototype would still apply.  */
7153 char csf_gss_acq_user ();
7154 int
7155 main ()
7156 {
7157 csf_gss_acq_user ();
7158   ;
7159   return 0;
7160 }
7161 _ACEOF
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164   (eval $ac_link) 2>&5
7165   ac_status=$?
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } &&
7168          { ac_try='test -s conftest$ac_exeext'
7169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170   (eval $ac_try) 2>&5
7171   ac_status=$?
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); }; }; then
7174   ac_cv_lib_gss_csf_gss_acq_user=yes
7175 else
7176   echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ac_cv_lib_gss_csf_gss_acq_user=no
7180 fi
7181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7182 LIBS=$ac_check_lib_save_LIBS
7183 fi
7184 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
7185 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6
7186 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
7187   gss_impl="cybersafe"
7188 else
7189   gss_failed=1
7190 fi
7191
7192 fi
7193
7194
7195     if test "$gss_failed" = "1"; then
7196 # Restore variables
7197       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
7198       CPPFLAGS=$cmu_saved_CPPFLAGS
7199
7200       if test "$gss_impl" != "auto"; then
7201         gss_impl="failed"
7202       fi
7203     fi
7204   fi
7205
7206   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
7207     gss_failed=0
7208     echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
7209 echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6
7210 if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   ac_check_lib_save_LIBS=$LIBS
7214 LIBS="-lgss -lgss $LIBS"
7215 cat >conftest.$ac_ext <<_ACEOF
7216 #line $LINENO "configure"
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222
7223 /* Override any gcc2 internal prototype to avoid an error.  */
7224 #ifdef __cplusplus
7225 extern "C"
7226 #endif
7227 /* We use char because int might match the return type of a gcc2
7228    builtin and then its argument prototype would still apply.  */
7229 char gss_unwrap ();
7230 int
7231 main ()
7232 {
7233 gss_unwrap ();
7234   ;
7235   return 0;
7236 }
7237 _ACEOF
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240   (eval $ac_link) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); } &&
7244          { ac_try='test -s conftest$ac_exeext'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; }; then
7250   ac_cv_lib_gss_gss_unwrap=yes
7251 else
7252   echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 ac_cv_lib_gss_gss_unwrap=no
7256 fi
7257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7258 LIBS=$ac_check_lib_save_LIBS
7259 fi
7260 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
7261 echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6
7262 if test $ac_cv_lib_gss_gss_unwrap = yes; then
7263   gss_impl="seam"
7264 else
7265   gss_failed=1
7266 fi
7267
7268     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
7269       gss_impl="failed"
7270     fi
7271   fi
7272
7273   if test "$gss_impl" = "mit"; then
7274     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
7275     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
7276   elif test "$gss_impl" = "heimdal"; then
7277     CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
7278     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
7279     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}"
7280   elif test "$gss_impl" = "cybersafe03"; then
7281 # Version of CyberSafe with two libraries
7282     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
7283     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
7284     # there is no static libgss for CyberSafe
7285     GSSAPIBASE_STATIC_LIBS=none
7286   elif test "$gss_impl" = "cybersafe"; then
7287     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
7288     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
7289     # there is no static libgss for CyberSafe
7290     GSSAPIBASE_STATIC_LIBS=none
7291   elif test "$gss_impl" = "seam"; then
7292     GSSAPIBASE_LIBS=-lgss
7293     # there is no static libgss on Solaris 8 and up
7294     GSSAPIBASE_STATIC_LIBS=none
7295   elif test "$gss_impl" = "failed"; then
7296     gssapi="no"
7297     GSSAPIBASE_LIBS=
7298     GSSAPIBASE_STATIC_LIBS=
7299     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
7300 echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
7301   else
7302     gssapi="no"
7303     GSSAPIBASE_LIBS=
7304     GSSAPIBASE_STATIC_LIBS=
7305     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
7306 echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
7307   fi
7308 fi
7309
7310 #
7311 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
7312 # in gssapi\rfckrb5.h
7313 #
7314 if test "$gssapi" != "no"; then
7315   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
7316     cat >conftest.$ac_ext <<_ACEOF
7317 #line $LINENO "configure"
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 #include <gssapi/gssapi.h>
7324                   #ifdef GSS_C_NT_HOSTBASED_SERVICE
7325                     hostbased_service_gss_nt_yes
7326                   #endif
7327 _ACEOF
7328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7329   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
7330
7331 cat >>confdefs.h <<\_ACEOF
7332 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
7333 _ACEOF
7334
7335 else
7336   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
7337 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
7338 fi
7339 rm -f conftest*
7340
7341
7342   elif test "$ac_cv_header_gssapi_h" = "yes"; then
7343     cat >conftest.$ac_ext <<_ACEOF
7344 #line $LINENO "configure"
7345 /* confdefs.h.  */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h.  */
7350 #include <gssapi.h>
7351
7352 _ACEOF
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7355
7356 cat >>confdefs.h <<\_ACEOF
7357 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
7358 _ACEOF
7359
7360 fi
7361 rm -f conftest*
7362
7363   elif test "$ac_cv_header_gssapi_gssapi_h"; then
7364     cat >conftest.$ac_ext <<_ACEOF
7365 #line $LINENO "configure"
7366 /* confdefs.h.  */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h.  */
7371 #include <gssapi/gssapi.h>
7372
7373 _ACEOF
7374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7375   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7376
7377 cat >>confdefs.h <<\_ACEOF
7378 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
7379 _ACEOF
7380
7381 fi
7382 rm -f conftest*
7383
7384   fi
7385
7386   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
7387     cat >conftest.$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 /* confdefs.h.  */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h.  */
7394 #include <gssapi/gssapi.h>
7395                   #ifdef GSS_C_NT_USER_NAME
7396                    user_name_yes_gss_nt
7397                   #endif
7398 _ACEOF
7399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7400   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
7401
7402 cat >>confdefs.h <<\_ACEOF
7403 #define HAVE_GSS_C_NT_USER_NAME
7404 _ACEOF
7405
7406 else
7407   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
7408 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
7409 fi
7410 rm -f conftest*
7411
7412   elif test "$ac_cv_header_gssapi_h" = "yes"; then
7413     cat >conftest.$ac_ext <<_ACEOF
7414 #line $LINENO "configure"
7415 /* confdefs.h.  */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h.  */
7420 #include <gssapi.h>
7421
7422 _ACEOF
7423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7424   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
7425
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_GSS_C_NT_USER_NAME
7428 _ACEOF
7429
7430 fi
7431 rm -f conftest*
7432
7433   elif test "$ac_cv_header_gssapi_gssapi_h"; then
7434     cat >conftest.$ac_ext <<_ACEOF
7435 #line $LINENO "configure"
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 #include <gssapi/gssapi.h>
7442
7443 _ACEOF
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
7446
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_GSS_C_NT_USER_NAME
7449 _ACEOF
7450
7451 fi
7452 rm -f conftest*
7453
7454   fi
7455 fi
7456
7457 GSSAPI_LIBS=""
7458 echo "$as_me:$LINENO: checking GSSAPI" >&5
7459 echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6
7460 if test "$gssapi" != no; then
7461   echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
7462 echo "${ECHO_T}with implementation ${gss_impl}" >&6
7463   echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
7464 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
7465 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   ac_check_lib_save_LIBS=$LIBS
7469 LIBS="-lresolv  $LIBS"
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477
7478 /* Override any gcc2 internal prototype to avoid an error.  */
7479 #ifdef __cplusplus
7480 extern "C"
7481 #endif
7482 /* We use char because int might match the return type of a gcc2
7483    builtin and then its argument prototype would still apply.  */
7484 char res_search ();
7485 int
7486 main ()
7487 {
7488 res_search ();
7489   ;
7490   return 0;
7491 }
7492 _ACEOF
7493 rm -f conftest.$ac_objext conftest$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495   (eval $ac_link) 2>&5
7496   ac_status=$?
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); } &&
7499          { ac_try='test -s conftest$ac_exeext'
7500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501   (eval $ac_try) 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }; }; then
7505   ac_cv_lib_resolv_res_search=yes
7506 else
7507   echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510 ac_cv_lib_resolv_res_search=no
7511 fi
7512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7513 LIBS=$ac_check_lib_save_LIBS
7514 fi
7515 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
7516 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
7517 if test $ac_cv_lib_resolv_res_search = yes; then
7518   GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
7519 fi
7520
7521   SASL_MECHS="$SASL_MECHS libgssapiv2.la"
7522   SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
7523   SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
7524
7525   cmu_save_LIBS="$LIBS"
7526   LIBS="$LIBS $GSSAPIBASE_LIBS"
7527
7528 for ac_func in gsskrb5_register_acceptor_identity
7529 do
7530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7531 echo "$as_me:$LINENO: checking for $ac_func" >&5
7532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7533 if eval "test \"\${$as_ac_var+set}\" = set"; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   cat >conftest.$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7538 /* confdefs.h.  */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h.  */
7543 /* System header to define __stub macros and hopefully few prototypes,
7544     which can conflict with char $ac_func (); below.
7545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7546     <limits.h> exists even on freestanding compilers.  */
7547 #ifdef __STDC__
7548 # include <limits.h>
7549 #else
7550 # include <assert.h>
7551 #endif
7552 /* Override any gcc2 internal prototype to avoid an error.  */
7553 #ifdef __cplusplus
7554 extern "C"
7555 {
7556 #endif
7557 /* We use char because int might match the return type of a gcc2
7558    builtin and then its argument prototype would still apply.  */
7559 char $ac_func ();
7560 /* The GNU C library defines this for functions which it implements
7561     to always fail with ENOSYS.  Some functions are actually named
7562     something starting with __ and the normal name is an alias.  */
7563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7564 choke me
7565 #else
7566 char (*f) () = $ac_func;
7567 #endif
7568 #ifdef __cplusplus
7569 }
7570 #endif
7571
7572 int
7573 main ()
7574 {
7575 return f != $ac_func;
7576   ;
7577   return 0;
7578 }
7579 _ACEOF
7580 rm -f conftest.$ac_objext conftest$ac_exeext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582   (eval $ac_link) 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); } &&
7586          { ac_try='test -s conftest$ac_exeext'
7587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588   (eval $ac_try) 2>&5
7589   ac_status=$?
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); }; }; then
7592   eval "$as_ac_var=yes"
7593 else
7594   echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 eval "$as_ac_var=no"
7598 fi
7599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7600 fi
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7603 if test `eval echo '${'$as_ac_var'}'` = yes; then
7604   cat >>confdefs.h <<_ACEOF
7605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7606 _ACEOF
7607
7608 fi
7609 done
7610
7611   LIBS="$cmu_save_LIBS"
7612 else
7613   echo "$as_me:$LINENO: result: disabled" >&5
7614 echo "${ECHO_T}disabled" >&6
7615 fi
7616
7617
7618
7619
7620 if test "$gssapi" != no; then
7621         if test "$gss_impl" = "heimdal"; then
7622
7623 cat >>confdefs.h <<\_ACEOF
7624 #define KRB5_HEIMDAL
7625 _ACEOF
7626
7627         fi
7628
7629 cat >>confdefs.h <<\_ACEOF
7630 #define HAVE_GSSAPI
7631 _ACEOF
7632
7633 fi
7634
7635 echo "$as_me:$LINENO: checking for crypt" >&5
7636 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7637 if test "${ac_cv_func_crypt+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   cat >conftest.$ac_ext <<_ACEOF
7641 #line $LINENO "configure"
7642 /* confdefs.h.  */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h.  */
7647 /* System header to define __stub macros and hopefully few prototypes,
7648     which can conflict with char crypt (); below.
7649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7650     <limits.h> exists even on freestanding compilers.  */
7651 #ifdef __STDC__
7652 # include <limits.h>
7653 #else
7654 # include <assert.h>
7655 #endif
7656 /* Override any gcc2 internal prototype to avoid an error.  */
7657 #ifdef __cplusplus
7658 extern "C"
7659 {
7660 #endif
7661 /* We use char because int might match the return type of a gcc2
7662    builtin and then its argument prototype would still apply.  */
7663 char crypt ();
7664 /* The GNU C library defines this for functions which it implements
7665     to always fail with ENOSYS.  Some functions are actually named
7666     something starting with __ and the normal name is an alias.  */
7667 #if defined (__stub_crypt) || defined (__stub___crypt)
7668 choke me
7669 #else
7670 char (*f) () = crypt;
7671 #endif
7672 #ifdef __cplusplus
7673 }
7674 #endif
7675
7676 int
7677 main ()
7678 {
7679 return f != crypt;
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext conftest$ac_exeext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686   (eval $ac_link) 2>&5
7687   ac_status=$?
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); } &&
7690          { ac_try='test -s conftest$ac_exeext'
7691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696   ac_cv_func_crypt=yes
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 ac_cv_func_crypt=no
7702 fi
7703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7704 fi
7705 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7706 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7707 if test $ac_cv_func_crypt = yes; then
7708   cmu_have_crypt=yes
7709 else
7710   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7711 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7712 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-lcrypt  $LIBS"
7717 cat >conftest.$ac_ext <<_ACEOF
7718 #line $LINENO "configure"
7719 /* confdefs.h.  */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h.  */
7724
7725 /* Override any gcc2 internal prototype to avoid an error.  */
7726 #ifdef __cplusplus
7727 extern "C"
7728 #endif
7729 /* We use char because int might match the return type of a gcc2
7730    builtin and then its argument prototype would still apply.  */
7731 char crypt ();
7732 int
7733 main ()
7734 {
7735 crypt ();
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742   (eval $ac_link) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); } &&
7746          { ac_try='test -s conftest$ac_exeext'
7747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748   (eval $ac_try) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; }; then
7752   ac_cv_lib_crypt_crypt=yes
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 ac_cv_lib_crypt_crypt=no
7758 fi
7759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
7761 fi
7762 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7763 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7764 if test $ac_cv_lib_crypt_crypt = yes; then
7765   LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
7766 else
7767   cmu_have_crypt=no
7768 fi
7769
7770 fi
7771
7772
7773
7774
7775 # Check whether --enable-sia or --disable-sia was given.
7776 if test "${enable_sia+set}" = set; then
7777   enableval="$enable_sia"
7778   sia=$enableval
7779 else
7780   sia=no
7781 fi;
7782 LIB_SIA=""
7783 if test "$sia" != no; then
7784   if test -f /etc/sia/matrix.conf; then
7785
7786 cat >>confdefs.h <<\_ACEOF
7787 #define HAVE_SIA
7788 _ACEOF
7789
7790     LIB_SIA="-lsecurity -ldb -lm -laud"
7791   else
7792     { { echo "$as_me:$LINENO: error: No support for SIA found" >&5
7793 echo "$as_me: error: No support for SIA found" >&2;}
7794    { (exit 1); exit 1; }; }
7795   fi
7796 fi
7797
7798
7799 # Check whether --enable-auth-sasldb or --disable-auth-sasldb was given.
7800 if test "${enable_auth_sasldb+set}" = set; then
7801   enableval="$enable_auth_sasldb"
7802   authsasldb=$enableval
7803 else
7804   authsasldb=no
7805 fi;
7806 if test "$authsasldb" != no; then
7807   if test ! -d "../sasldb"; then
7808      echo "ERROR: Cannot build sasldb module outside of the full SASL source tree."
7809      exit 0;
7810   fi
7811
7812 cat >>confdefs.h <<\_ACEOF
7813 #define AUTH_SASLDB
7814 _ACEOF
7815
7816
7817
7818 # Check whether --with-dbpath or --without-dbpath was given.
7819 if test "${with_dbpath+set}" = set; then
7820   withval="$with_dbpath"
7821   dbpath=$withval
7822 else
7823   dbpath=/etc/sasldb2
7824 fi;
7825 echo "$as_me:$LINENO: checking DB path to use" >&5
7826 echo $ECHO_N "checking DB path to use... $ECHO_C" >&6
7827 echo "$as_me:$LINENO: result: $dbpath" >&5
7828 echo "${ECHO_T}$dbpath" >&6
7829
7830 cat >>confdefs.h <<_ACEOF
7831 #define SASL_DB_PATH "$dbpath"
7832 _ACEOF
7833
7834
7835 cmu_save_LIBS="$LIBS"
7836
7837 # Check whether --with-dblib or --without-dblib was given.
7838 if test "${with_dblib+set}" = set; then
7839   withval="$with_dblib"
7840   dblib=$withval
7841 else
7842   dblib=auto_detect
7843 fi;
7844
7845
7846
7847 # Check whether --with-bdb-libdir or --without-bdb-libdir was given.
7848 if test "${with_bdb_libdir+set}" = set; then
7849   withval="$with_bdb_libdir"
7850   with_bdb_lib=$withval
7851 else
7852    test "${with_bdb_lib+set}" = set || with_bdb_lib=none
7853 fi;
7854
7855 # Check whether --with-bdb-incdir or --without-bdb-incdir was given.
7856 if test "${with_bdb_incdir+set}" = set; then
7857   withval="$with_bdb_incdir"
7858   with_bdb_inc=$withval
7859 else
7860    test "${with_bdb_inc+set}" = set || with_bdb_inc=none
7861 fi;
7862
7863
7864 SASL_DB_LIB=""
7865
7866 case "$dblib" in
7867   berkeley)
7868
7869
7870
7871         cmu_save_CPPFLAGS=$CPPFLAGS
7872
7873         if test -d $with_bdb_inc; then
7874             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
7875             BDB_INCADD="-I$with_bdb_inc"
7876         else
7877             BDB_INCADD=""
7878         fi
7879
7880                         if test "${ac_cv_header_db_h+set}" = set; then
7881   echo "$as_me:$LINENO: checking for db.h" >&5
7882 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
7883 if test "${ac_cv_header_db_h+set}" = set; then
7884   echo $ECHO_N "(cached) $ECHO_C" >&6
7885 fi
7886 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
7887 echo "${ECHO_T}$ac_cv_header_db_h" >&6
7888 else
7889   # Is the header compilable?
7890 echo "$as_me:$LINENO: checking db.h usability" >&5
7891 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6
7892 cat >conftest.$ac_ext <<_ACEOF
7893 #line $LINENO "configure"
7894 /* confdefs.h.  */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h.  */
7899 $ac_includes_default
7900 #include <db.h>
7901 _ACEOF
7902 rm -f conftest.$ac_objext
7903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7904   (eval $ac_compile) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } &&
7908          { ac_try='test -s conftest.$ac_objext'
7909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; }; then
7914   ac_header_compiler=yes
7915 else
7916   echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7918
7919 ac_header_compiler=no
7920 fi
7921 rm -f conftest.$ac_objext conftest.$ac_ext
7922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7923 echo "${ECHO_T}$ac_header_compiler" >&6
7924
7925 # Is the header present?
7926 echo "$as_me:$LINENO: checking db.h presence" >&5
7927 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7930 /* confdefs.h.  */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h.  */
7935 #include <db.h>
7936 _ACEOF
7937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7939   ac_status=$?
7940   grep -v '^ *+' conftest.er1 >conftest.err
7941   rm -f conftest.er1
7942   cat conftest.err >&5
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } >/dev/null; then
7945   if test -s conftest.err; then
7946     ac_cpp_err=$ac_c_preproc_warn_flag
7947   else
7948     ac_cpp_err=
7949   fi
7950 else
7951   ac_cpp_err=yes
7952 fi
7953 if test -z "$ac_cpp_err"; then
7954   ac_header_preproc=yes
7955 else
7956   echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7958
7959   ac_header_preproc=no
7960 fi
7961 rm -f conftest.err conftest.$ac_ext
7962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7963 echo "${ECHO_T}$ac_header_preproc" >&6
7964
7965 # So?  What about this header?
7966 case $ac_header_compiler:$ac_header_preproc in
7967   yes:no )
7968     { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
7969 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7970     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
7971 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
7972     (
7973       cat <<\_ASBOX
7974 ## ------------------------------------ ##
7975 ## Report this to bug-autoconf@gnu.org. ##
7976 ## ------------------------------------ ##
7977 _ASBOX
7978     ) |
7979       sed "s/^/$as_me: WARNING:     /" >&2
7980     ;;
7981   no:yes )
7982     { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
7983 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
7984     { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
7985 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
7986     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
7987 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
7988     (
7989       cat <<\_ASBOX
7990 ## ------------------------------------ ##
7991 ## Report this to bug-autoconf@gnu.org. ##
7992 ## ------------------------------------ ##
7993 _ASBOX
7994     ) |
7995       sed "s/^/$as_me: WARNING:     /" >&2
7996     ;;
7997 esac
7998 echo "$as_me:$LINENO: checking for db.h" >&5
7999 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
8000 if test "${ac_cv_header_db_h+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003   ac_cv_header_db_h=$ac_header_preproc
8004 fi
8005 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8006 echo "${ECHO_T}$ac_cv_header_db_h" >&6
8007
8008 fi
8009 if test $ac_cv_header_db_h = yes; then
8010
8011         BDB_SAVE_LDFLAGS=$LDFLAGS
8012
8013         if test -d $with_bdb_lib; then
8014
8015   # this is CMU ADD LIBPATH TO
8016   if test "$andrew_runpath_switch" = "none" ; then
8017         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
8018   else
8019         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
8020   fi
8021
8022
8023   # this is CMU ADD LIBPATH TO
8024   if test "$andrew_runpath_switch" = "none" ; then
8025         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
8026   else
8027         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
8028   fi
8029
8030         else
8031             BDB_LIBADD=""
8032         fi
8033
8034         saved_LIBS=$LIBS
8035         for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
8036           do
8037             LIBS="$saved_LIBS -l$dbname"
8038             cat >conftest.$ac_ext <<_ACEOF
8039 #line $LINENO "configure"
8040 /* confdefs.h.  */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h.  */
8045 #include <db.h>
8046 int
8047 main ()
8048 {
8049 db_create(NULL, NULL, 0);
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext conftest$ac_exeext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8056   (eval $ac_link) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } &&
8060          { ac_try='test -s conftest$ac_exeext'
8061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062   (eval $ac_try) 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; }; then
8066   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071 dblib="no"
8072 fi
8073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8074             if test "$dblib" = "berkeley"; then break; fi
8075           done
8076         if test "$dblib" = "no"; then
8077             LIBS="$saved_LIBS -ldb"
8078             cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 #include <db.h>
8086 int
8087 main ()
8088 {
8089 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
8090   ;
8091   return 0;
8092 }
8093 _ACEOF
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8096   (eval $ac_link) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); } &&
8100          { ac_try='test -s conftest$ac_exeext'
8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102   (eval $ac_try) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); }; }; then
8106   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
8107 else
8108   echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 dblib="no"
8112 fi
8113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8114         fi
8115         LIBS=$saved_LIBS
8116
8117         LDFLAGS=$BDB_SAVE_LDFLAGS
8118
8119 else
8120   dblib="no"
8121 fi
8122
8123
8124
8125         CPPFLAGS=$cmu_save_CPPFLAGS
8126
8127         CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
8128         SASL_DB_INC=$BDB_INCADD
8129         SASL_DB_LIB="${BDB_LIBADD}"
8130         ;;
8131   gdbm)
8132
8133 # Check whether --with-gdbm or --without-gdbm was given.
8134 if test "${with_gdbm+set}" = set; then
8135   withval="$with_gdbm"
8136   with_gdbm="${withval}"
8137 fi;
8138
8139         case "$with_gdbm" in
8140            ""|yes)
8141                if test "${ac_cv_header_gdbm_h+set}" = set; then
8142   echo "$as_me:$LINENO: checking for gdbm.h" >&5
8143 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
8144 if test "${ac_cv_header_gdbm_h+set}" = set; then
8145   echo $ECHO_N "(cached) $ECHO_C" >&6
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8148 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
8149 else
8150   # Is the header compilable?
8151 echo "$as_me:$LINENO: checking gdbm.h usability" >&5
8152 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6
8153 cat >conftest.$ac_ext <<_ACEOF
8154 #line $LINENO "configure"
8155 /* confdefs.h.  */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h.  */
8160 $ac_includes_default
8161 #include <gdbm.h>
8162 _ACEOF
8163 rm -f conftest.$ac_objext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165   (eval $ac_compile) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -s conftest.$ac_objext'
8170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171   (eval $ac_try) 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); }; }; then
8175   ac_header_compiler=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 ac_header_compiler=no
8181 fi
8182 rm -f conftest.$ac_objext conftest.$ac_ext
8183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8184 echo "${ECHO_T}$ac_header_compiler" >&6
8185
8186 # Is the header present?
8187 echo "$as_me:$LINENO: checking gdbm.h presence" >&5
8188 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6
8189 cat >conftest.$ac_ext <<_ACEOF
8190 #line $LINENO "configure"
8191 /* confdefs.h.  */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h.  */
8196 #include <gdbm.h>
8197 _ACEOF
8198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } >/dev/null; then
8206   if test -s conftest.err; then
8207     ac_cpp_err=$ac_c_preproc_warn_flag
8208   else
8209     ac_cpp_err=
8210   fi
8211 else
8212   ac_cpp_err=yes
8213 fi
8214 if test -z "$ac_cpp_err"; then
8215   ac_header_preproc=yes
8216 else
8217   echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220   ac_header_preproc=no
8221 fi
8222 rm -f conftest.err conftest.$ac_ext
8223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8224 echo "${ECHO_T}$ac_header_preproc" >&6
8225
8226 # So?  What about this header?
8227 case $ac_header_compiler:$ac_header_preproc in
8228   yes:no )
8229     { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8230 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8231     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
8232 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
8233     (
8234       cat <<\_ASBOX
8235 ## ------------------------------------ ##
8236 ## Report this to bug-autoconf@gnu.org. ##
8237 ## ------------------------------------ ##
8238 _ASBOX
8239     ) |
8240       sed "s/^/$as_me: WARNING:     /" >&2
8241     ;;
8242   no:yes )
8243     { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
8244 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
8245     { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
8246 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
8247     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
8248 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
8249     (
8250       cat <<\_ASBOX
8251 ## ------------------------------------ ##
8252 ## Report this to bug-autoconf@gnu.org. ##
8253 ## ------------------------------------ ##
8254 _ASBOX
8255     ) |
8256       sed "s/^/$as_me: WARNING:     /" >&2
8257     ;;
8258 esac
8259 echo "$as_me:$LINENO: checking for gdbm.h" >&5
8260 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
8261 if test "${ac_cv_header_gdbm_h+set}" = set; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264   ac_cv_header_gdbm_h=$ac_header_preproc
8265 fi
8266 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8267 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
8268
8269 fi
8270 if test $ac_cv_header_gdbm_h = yes; then
8271
8272                         echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
8273 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
8274 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   ac_check_lib_save_LIBS=$LIBS
8278 LIBS="-lgdbm  $LIBS"
8279 cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286
8287 /* Override any gcc2 internal prototype to avoid an error.  */
8288 #ifdef __cplusplus
8289 extern "C"
8290 #endif
8291 /* We use char because int might match the return type of a gcc2
8292    builtin and then its argument prototype would still apply.  */
8293 char gdbm_open ();
8294 int
8295 main ()
8296 {
8297 gdbm_open ();
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304   (eval $ac_link) 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); } &&
8308          { ac_try='test -s conftest$ac_exeext'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   ac_cv_lib_gdbm_gdbm_open=yes
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 ac_cv_lib_gdbm_gdbm_open=no
8320 fi
8321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8322 LIBS=$ac_check_lib_save_LIBS
8323 fi
8324 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
8325 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
8326 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
8327   SASL_DB_LIB="-lgdbm"
8328 else
8329   dblib="no"
8330 fi
8331
8332 else
8333   dblib="no"
8334 fi
8335
8336
8337                ;;
8338            *)
8339                if test -d $with_gdbm; then
8340                  CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
8341                  LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
8342                  SASL_DB_LIB="-lgdbm"
8343                else
8344                  with_gdbm="no"
8345                fi
8346        esac
8347         ;;
8348   ndbm)
8349                         if test "${ac_cv_header_ndbm_h+set}" = set; then
8350   echo "$as_me:$LINENO: checking for ndbm.h" >&5
8351 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
8352 if test "${ac_cv_header_ndbm_h+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 fi
8355 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8356 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
8357 else
8358   # Is the header compilable?
8359 echo "$as_me:$LINENO: checking ndbm.h usability" >&5
8360 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6
8361 cat >conftest.$ac_ext <<_ACEOF
8362 #line $LINENO "configure"
8363 /* confdefs.h.  */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h.  */
8368 $ac_includes_default
8369 #include <ndbm.h>
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373   (eval $ac_compile) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } &&
8377          { ac_try='test -s conftest.$ac_objext'
8378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379   (eval $ac_try) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; }; then
8383   ac_header_compiler=yes
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388 ac_header_compiler=no
8389 fi
8390 rm -f conftest.$ac_objext conftest.$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8392 echo "${ECHO_T}$ac_header_compiler" >&6
8393
8394 # Is the header present?
8395 echo "$as_me:$LINENO: checking ndbm.h presence" >&5
8396 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6
8397 cat >conftest.$ac_ext <<_ACEOF
8398 #line $LINENO "configure"
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404 #include <ndbm.h>
8405 _ACEOF
8406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8408   ac_status=$?
8409   grep -v '^ *+' conftest.er1 >conftest.err
8410   rm -f conftest.er1
8411   cat conftest.err >&5
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); } >/dev/null; then
8414   if test -s conftest.err; then
8415     ac_cpp_err=$ac_c_preproc_warn_flag
8416   else
8417     ac_cpp_err=
8418   fi
8419 else
8420   ac_cpp_err=yes
8421 fi
8422 if test -z "$ac_cpp_err"; then
8423   ac_header_preproc=yes
8424 else
8425   echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428   ac_header_preproc=no
8429 fi
8430 rm -f conftest.err conftest.$ac_ext
8431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8432 echo "${ECHO_T}$ac_header_preproc" >&6
8433
8434 # So?  What about this header?
8435 case $ac_header_compiler:$ac_header_preproc in
8436   yes:no )
8437     { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8438 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8439     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
8440 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
8441     (
8442       cat <<\_ASBOX
8443 ## ------------------------------------ ##
8444 ## Report this to bug-autoconf@gnu.org. ##
8445 ## ------------------------------------ ##
8446 _ASBOX
8447     ) |
8448       sed "s/^/$as_me: WARNING:     /" >&2
8449     ;;
8450   no:yes )
8451     { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
8452 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
8453     { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
8454 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
8455     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
8456 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
8457     (
8458       cat <<\_ASBOX
8459 ## ------------------------------------ ##
8460 ## Report this to bug-autoconf@gnu.org. ##
8461 ## ------------------------------------ ##
8462 _ASBOX
8463     ) |
8464       sed "s/^/$as_me: WARNING:     /" >&2
8465     ;;
8466 esac
8467 echo "$as_me:$LINENO: checking for ndbm.h" >&5
8468 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
8469 if test "${ac_cv_header_ndbm_h+set}" = set; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472   ac_cv_header_ndbm_h=$ac_header_preproc
8473 fi
8474 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8475 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
8476
8477 fi
8478 if test $ac_cv_header_ndbm_h = yes; then
8479
8480                         echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
8481 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
8482 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
8483   echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485   ac_check_lib_save_LIBS=$LIBS
8486 LIBS="-lndbm  $LIBS"
8487 cat >conftest.$ac_ext <<_ACEOF
8488 #line $LINENO "configure"
8489 /* confdefs.h.  */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h.  */
8494
8495 /* Override any gcc2 internal prototype to avoid an error.  */
8496 #ifdef __cplusplus
8497 extern "C"
8498 #endif
8499 /* We use char because int might match the return type of a gcc2
8500    builtin and then its argument prototype would still apply.  */
8501 char dbm_open ();
8502 int
8503 main ()
8504 {
8505 dbm_open ();
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512   (eval $ac_link) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } &&
8516          { ac_try='test -s conftest$ac_exeext'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; }; then
8522   ac_cv_lib_ndbm_dbm_open=yes
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527 ac_cv_lib_ndbm_dbm_open=no
8528 fi
8529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8530 LIBS=$ac_check_lib_save_LIBS
8531 fi
8532 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
8533 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
8534 if test $ac_cv_lib_ndbm_dbm_open = yes; then
8535   SASL_DB_LIB="-lndbm"
8536 else
8537
8538                                 echo "$as_me:$LINENO: checking for dbm_open" >&5
8539 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
8540 if test "${ac_cv_func_dbm_open+set}" = set; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   cat >conftest.$ac_ext <<_ACEOF
8544 #line $LINENO "configure"
8545 /* confdefs.h.  */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h.  */
8550 /* System header to define __stub macros and hopefully few prototypes,
8551     which can conflict with char dbm_open (); below.
8552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553     <limits.h> exists even on freestanding compilers.  */
8554 #ifdef __STDC__
8555 # include <limits.h>
8556 #else
8557 # include <assert.h>
8558 #endif
8559 /* Override any gcc2 internal prototype to avoid an error.  */
8560 #ifdef __cplusplus
8561 extern "C"
8562 {
8563 #endif
8564 /* We use char because int might match the return type of a gcc2
8565    builtin and then its argument prototype would still apply.  */
8566 char dbm_open ();
8567 /* The GNU C library defines this for functions which it implements
8568     to always fail with ENOSYS.  Some functions are actually named
8569     something starting with __ and the normal name is an alias.  */
8570 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8571 choke me
8572 #else
8573 char (*f) () = dbm_open;
8574 #endif
8575 #ifdef __cplusplus
8576 }
8577 #endif
8578
8579 int
8580 main ()
8581 {
8582 return f != dbm_open;
8583   ;
8584   return 0;
8585 }
8586 _ACEOF
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8589   (eval $ac_link) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -s conftest$ac_exeext'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; }; then
8599   ac_cv_func_dbm_open=yes
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604 ac_cv_func_dbm_open=no
8605 fi
8606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8607 fi
8608 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
8609 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
8610 if test $ac_cv_func_dbm_open = yes; then
8611   :
8612 else
8613   dblib="no"
8614 fi
8615
8616 fi
8617
8618 else
8619   dblib="no"
8620 fi
8621
8622
8623         ;;
8624   auto_detect)
8625
8626
8627
8628         cmu_save_CPPFLAGS=$CPPFLAGS
8629
8630         if test -d $with_bdb_inc; then
8631             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
8632             BDB_INCADD="-I$with_bdb_inc"
8633         else
8634             BDB_INCADD=""
8635         fi
8636
8637                         if test "${ac_cv_header_db_h+set}" = set; then
8638   echo "$as_me:$LINENO: checking for db.h" >&5
8639 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
8640 if test "${ac_cv_header_db_h+set}" = set; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 fi
8643 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8644 echo "${ECHO_T}$ac_cv_header_db_h" >&6
8645 else
8646   # Is the header compilable?
8647 echo "$as_me:$LINENO: checking db.h usability" >&5
8648 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6
8649 cat >conftest.$ac_ext <<_ACEOF
8650 #line $LINENO "configure"
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 $ac_includes_default
8657 #include <db.h>
8658 _ACEOF
8659 rm -f conftest.$ac_objext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8661   (eval $ac_compile) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } &&
8665          { ac_try='test -s conftest.$ac_objext'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; }; then
8671   ac_header_compiler=yes
8672 else
8673   echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8675
8676 ac_header_compiler=no
8677 fi
8678 rm -f conftest.$ac_objext conftest.$ac_ext
8679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8680 echo "${ECHO_T}$ac_header_compiler" >&6
8681
8682 # Is the header present?
8683 echo "$as_me:$LINENO: checking db.h presence" >&5
8684 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6
8685 cat >conftest.$ac_ext <<_ACEOF
8686 #line $LINENO "configure"
8687 /* confdefs.h.  */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h.  */
8692 #include <db.h>
8693 _ACEOF
8694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8696   ac_status=$?
8697   grep -v '^ *+' conftest.er1 >conftest.err
8698   rm -f conftest.er1
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } >/dev/null; then
8702   if test -s conftest.err; then
8703     ac_cpp_err=$ac_c_preproc_warn_flag
8704   else
8705     ac_cpp_err=
8706   fi
8707 else
8708   ac_cpp_err=yes
8709 fi
8710 if test -z "$ac_cpp_err"; then
8711   ac_header_preproc=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716   ac_header_preproc=no
8717 fi
8718 rm -f conftest.err conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8720 echo "${ECHO_T}$ac_header_preproc" >&6
8721
8722 # So?  What about this header?
8723 case $ac_header_compiler:$ac_header_preproc in
8724   yes:no )
8725     { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
8726 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8727     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
8728 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
8729     (
8730       cat <<\_ASBOX
8731 ## ------------------------------------ ##
8732 ## Report this to bug-autoconf@gnu.org. ##
8733 ## ------------------------------------ ##
8734 _ASBOX
8735     ) |
8736       sed "s/^/$as_me: WARNING:     /" >&2
8737     ;;
8738   no:yes )
8739     { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
8740 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
8741     { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
8742 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
8743     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
8744 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
8745     (
8746       cat <<\_ASBOX
8747 ## ------------------------------------ ##
8748 ## Report this to bug-autoconf@gnu.org. ##
8749 ## ------------------------------------ ##
8750 _ASBOX
8751     ) |
8752       sed "s/^/$as_me: WARNING:     /" >&2
8753     ;;
8754 esac
8755 echo "$as_me:$LINENO: checking for db.h" >&5
8756 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
8757 if test "${ac_cv_header_db_h+set}" = set; then
8758   echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760   ac_cv_header_db_h=$ac_header_preproc
8761 fi
8762 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8763 echo "${ECHO_T}$ac_cv_header_db_h" >&6
8764
8765 fi
8766 if test $ac_cv_header_db_h = yes; then
8767
8768         BDB_SAVE_LDFLAGS=$LDFLAGS
8769
8770         if test -d $with_bdb_lib; then
8771
8772   # this is CMU ADD LIBPATH TO
8773   if test "$andrew_runpath_switch" = "none" ; then
8774         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
8775   else
8776         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
8777   fi
8778
8779
8780   # this is CMU ADD LIBPATH TO
8781   if test "$andrew_runpath_switch" = "none" ; then
8782         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
8783   else
8784         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
8785   fi
8786
8787         else
8788             BDB_LIBADD=""
8789         fi
8790
8791         saved_LIBS=$LIBS
8792         for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
8793           do
8794             LIBS="$saved_LIBS -l$dbname"
8795             cat >conftest.$ac_ext <<_ACEOF
8796 #line $LINENO "configure"
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802 #include <db.h>
8803 int
8804 main ()
8805 {
8806 db_create(NULL, NULL, 0);
8807   ;
8808   return 0;
8809 }
8810 _ACEOF
8811 rm -f conftest.$ac_objext conftest$ac_exeext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8813   (eval $ac_link) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } &&
8817          { ac_try='test -s conftest$ac_exeext'
8818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819   (eval $ac_try) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; }; then
8823   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
8824 else
8825   echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8827
8828 dblib="no"
8829 fi
8830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8831             if test "$dblib" = "berkeley"; then break; fi
8832           done
8833         if test "$dblib" = "no"; then
8834             LIBS="$saved_LIBS -ldb"
8835             cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 /* confdefs.h.  */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h.  */
8842 #include <db.h>
8843 int
8844 main ()
8845 {
8846 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853   (eval $ac_link) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); } &&
8857          { ac_try='test -s conftest$ac_exeext'
8858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859   (eval $ac_try) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); }; }; then
8863   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
8864 else
8865   echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 dblib="no"
8869 fi
8870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8871         fi
8872         LIBS=$saved_LIBS
8873
8874         LDFLAGS=$BDB_SAVE_LDFLAGS
8875
8876 else
8877   dblib="no"
8878 fi
8879
8880
8881
8882         CPPFLAGS=$cmu_save_CPPFLAGS
8883
8884         if test "$dblib" = no; then
8885                   if test "${ac_cv_header_ndbm_h+set}" = set; then
8886   echo "$as_me:$LINENO: checking for ndbm.h" >&5
8887 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
8888 if test "${ac_cv_header_ndbm_h+set}" = set; then
8889   echo $ECHO_N "(cached) $ECHO_C" >&6
8890 fi
8891 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8892 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
8893 else
8894   # Is the header compilable?
8895 echo "$as_me:$LINENO: checking ndbm.h usability" >&5
8896 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6
8897 cat >conftest.$ac_ext <<_ACEOF
8898 #line $LINENO "configure"
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904 $ac_includes_default
8905 #include <ndbm.h>
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909   (eval $ac_compile) 2>&5
8910   ac_status=$?
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); } &&
8913          { ac_try='test -s conftest.$ac_objext'
8914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915   (eval $ac_try) 2>&5
8916   ac_status=$?
8917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918   (exit $ac_status); }; }; then
8919   ac_header_compiler=yes
8920 else
8921   echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924 ac_header_compiler=no
8925 fi
8926 rm -f conftest.$ac_objext conftest.$ac_ext
8927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8928 echo "${ECHO_T}$ac_header_compiler" >&6
8929
8930 # Is the header present?
8931 echo "$as_me:$LINENO: checking ndbm.h presence" >&5
8932 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6
8933 cat >conftest.$ac_ext <<_ACEOF
8934 #line $LINENO "configure"
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940 #include <ndbm.h>
8941 _ACEOF
8942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8944   ac_status=$?
8945   grep -v '^ *+' conftest.er1 >conftest.err
8946   rm -f conftest.er1
8947   cat conftest.err >&5
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); } >/dev/null; then
8950   if test -s conftest.err; then
8951     ac_cpp_err=$ac_c_preproc_warn_flag
8952   else
8953     ac_cpp_err=
8954   fi
8955 else
8956   ac_cpp_err=yes
8957 fi
8958 if test -z "$ac_cpp_err"; then
8959   ac_header_preproc=yes
8960 else
8961   echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8963
8964   ac_header_preproc=no
8965 fi
8966 rm -f conftest.err conftest.$ac_ext
8967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8968 echo "${ECHO_T}$ac_header_preproc" >&6
8969
8970 # So?  What about this header?
8971 case $ac_header_compiler:$ac_header_preproc in
8972   yes:no )
8973     { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8974 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8975     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
8976 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
8977     (
8978       cat <<\_ASBOX
8979 ## ------------------------------------ ##
8980 ## Report this to bug-autoconf@gnu.org. ##
8981 ## ------------------------------------ ##
8982 _ASBOX
8983     ) |
8984       sed "s/^/$as_me: WARNING:     /" >&2
8985     ;;
8986   no:yes )
8987     { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
8988 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
8989     { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
8990 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
8991     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
8992 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
8993     (
8994       cat <<\_ASBOX
8995 ## ------------------------------------ ##
8996 ## Report this to bug-autoconf@gnu.org. ##
8997 ## ------------------------------------ ##
8998 _ASBOX
8999     ) |
9000       sed "s/^/$as_me: WARNING:     /" >&2
9001     ;;
9002 esac
9003 echo "$as_me:$LINENO: checking for ndbm.h" >&5
9004 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
9005 if test "${ac_cv_header_ndbm_h+set}" = set; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   ac_cv_header_ndbm_h=$ac_header_preproc
9009 fi
9010 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
9011 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
9012
9013 fi
9014 if test $ac_cv_header_ndbm_h = yes; then
9015
9016                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
9017 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
9018 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   ac_check_lib_save_LIBS=$LIBS
9022 LIBS="-lndbm  $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9024 #line $LINENO "configure"
9025 /* confdefs.h.  */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h.  */
9030
9031 /* Override any gcc2 internal prototype to avoid an error.  */
9032 #ifdef __cplusplus
9033 extern "C"
9034 #endif
9035 /* We use char because int might match the return type of a gcc2
9036    builtin and then its argument prototype would still apply.  */
9037 char dbm_open ();
9038 int
9039 main ()
9040 {
9041 dbm_open ();
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048   (eval $ac_link) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } &&
9052          { ac_try='test -s conftest$ac_exeext'
9053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054   (eval $ac_try) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   ac_cv_lib_ndbm_dbm_open=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 ac_cv_lib_ndbm_dbm_open=no
9064 fi
9065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9067 fi
9068 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
9069 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
9070 if test $ac_cv_lib_ndbm_dbm_open = yes; then
9071   dblib="ndbm"; SASL_DB_LIB="-lndbm"
9072 else
9073   dblib="weird"
9074 fi
9075
9076 else
9077   dblib="no"
9078 fi
9079
9080
9081           if test "$dblib" = "weird"; then
9082                         echo "$as_me:$LINENO: checking for dbm_open" >&5
9083 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
9084 if test "${ac_cv_func_dbm_open+set}" = set; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087   cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9089 /* confdefs.h.  */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h.  */
9094 /* System header to define __stub macros and hopefully few prototypes,
9095     which can conflict with char dbm_open (); below.
9096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9097     <limits.h> exists even on freestanding compilers.  */
9098 #ifdef __STDC__
9099 # include <limits.h>
9100 #else
9101 # include <assert.h>
9102 #endif
9103 /* Override any gcc2 internal prototype to avoid an error.  */
9104 #ifdef __cplusplus
9105 extern "C"
9106 {
9107 #endif
9108 /* We use char because int might match the return type of a gcc2
9109    builtin and then its argument prototype would still apply.  */
9110 char dbm_open ();
9111 /* The GNU C library defines this for functions which it implements
9112     to always fail with ENOSYS.  Some functions are actually named
9113     something starting with __ and the normal name is an alias.  */
9114 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
9115 choke me
9116 #else
9117 char (*f) () = dbm_open;
9118 #endif
9119 #ifdef __cplusplus
9120 }
9121 #endif
9122
9123 int
9124 main ()
9125 {
9126 return f != dbm_open;
9127   ;
9128   return 0;
9129 }
9130 _ACEOF
9131 rm -f conftest.$ac_objext conftest$ac_exeext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9133   (eval $ac_link) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); } &&
9137          { ac_try='test -s conftest$ac_exeext'
9138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139   (eval $ac_try) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); }; }; then
9143   ac_cv_func_dbm_open=yes
9144 else
9145   echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9147
9148 ac_cv_func_dbm_open=no
9149 fi
9150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9151 fi
9152 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
9153 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
9154 if test $ac_cv_func_dbm_open = yes; then
9155   dblib="ndbm"
9156 else
9157   dblib="no"
9158 fi
9159
9160           fi
9161
9162           if test "$dblib" = no; then
9163                     if test "${ac_cv_header_gdbm_h+set}" = set; then
9164   echo "$as_me:$LINENO: checking for gdbm.h" >&5
9165 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
9166 if test "${ac_cv_header_gdbm_h+set}" = set; then
9167   echo $ECHO_N "(cached) $ECHO_C" >&6
9168 fi
9169 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9170 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
9171 else
9172   # Is the header compilable?
9173 echo "$as_me:$LINENO: checking gdbm.h usability" >&5
9174 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6
9175 cat >conftest.$ac_ext <<_ACEOF
9176 #line $LINENO "configure"
9177 /* confdefs.h.  */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h.  */
9182 $ac_includes_default
9183 #include <gdbm.h>
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187   (eval $ac_compile) 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); } &&
9191          { ac_try='test -s conftest.$ac_objext'
9192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193   (eval $ac_try) 2>&5
9194   ac_status=$?
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); }; }; then
9197   ac_header_compiler=yes
9198 else
9199   echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202 ac_header_compiler=no
9203 fi
9204 rm -f conftest.$ac_objext conftest.$ac_ext
9205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9206 echo "${ECHO_T}$ac_header_compiler" >&6
9207
9208 # Is the header present?
9209 echo "$as_me:$LINENO: checking gdbm.h presence" >&5
9210 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6
9211 cat >conftest.$ac_ext <<_ACEOF
9212 #line $LINENO "configure"
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218 #include <gdbm.h>
9219 _ACEOF
9220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9222   ac_status=$?
9223   grep -v '^ *+' conftest.er1 >conftest.err
9224   rm -f conftest.er1
9225   cat conftest.err >&5
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); } >/dev/null; then
9228   if test -s conftest.err; then
9229     ac_cpp_err=$ac_c_preproc_warn_flag
9230   else
9231     ac_cpp_err=
9232   fi
9233 else
9234   ac_cpp_err=yes
9235 fi
9236 if test -z "$ac_cpp_err"; then
9237   ac_header_preproc=yes
9238 else
9239   echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242   ac_header_preproc=no
9243 fi
9244 rm -f conftest.err conftest.$ac_ext
9245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9246 echo "${ECHO_T}$ac_header_preproc" >&6
9247
9248 # So?  What about this header?
9249 case $ac_header_compiler:$ac_header_preproc in
9250   yes:no )
9251     { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9252 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9253     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
9254 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
9255     (
9256       cat <<\_ASBOX
9257 ## ------------------------------------ ##
9258 ## Report this to bug-autoconf@gnu.org. ##
9259 ## ------------------------------------ ##
9260 _ASBOX
9261     ) |
9262       sed "s/^/$as_me: WARNING:     /" >&2
9263     ;;
9264   no:yes )
9265     { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
9266 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
9267     { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
9268 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
9269     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
9270 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
9271     (
9272       cat <<\_ASBOX
9273 ## ------------------------------------ ##
9274 ## Report this to bug-autoconf@gnu.org. ##
9275 ## ------------------------------------ ##
9276 _ASBOX
9277     ) |
9278       sed "s/^/$as_me: WARNING:     /" >&2
9279     ;;
9280 esac
9281 echo "$as_me:$LINENO: checking for gdbm.h" >&5
9282 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
9283 if test "${ac_cv_header_gdbm_h+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   ac_cv_header_gdbm_h=$ac_header_preproc
9287 fi
9288 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9289 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
9290
9291 fi
9292 if test $ac_cv_header_gdbm_h = yes; then
9293
9294                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
9295 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
9296 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   ac_check_lib_save_LIBS=$LIBS
9300 LIBS="-lgdbm  $LIBS"
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308
9309 /* Override any gcc2 internal prototype to avoid an error.  */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 /* We use char because int might match the return type of a gcc2
9314    builtin and then its argument prototype would still apply.  */
9315 char gdbm_open ();
9316 int
9317 main ()
9318 {
9319 gdbm_open ();
9320   ;
9321   return 0;
9322 }
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326   (eval $ac_link) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); } &&
9330          { ac_try='test -s conftest$ac_exeext'
9331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332   (eval $ac_try) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; }; then
9336   ac_cv_lib_gdbm_gdbm_open=yes
9337 else
9338   echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341 ac_cv_lib_gdbm_gdbm_open=no
9342 fi
9343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
9345 fi
9346 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
9347 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
9348 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
9349   dblib="gdbm";
9350                                              SASL_DB_LIB="-lgdbm"
9351 else
9352   dblib="no"
9353 fi
9354
9355 else
9356   dblib="no"
9357 fi
9358
9359
9360           fi
9361         else
9362                   CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
9363           SASL_DB_INC=$BDB_INCADD
9364           SASL_DB_LIB="${BDB_LIBADD}"
9365         fi
9366         ;;
9367   none)
9368         ;;
9369   no)
9370         ;;
9371   *)
9372         { echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5
9373 echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
9374         { { echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5
9375 echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;}
9376    { (exit 1); exit 1; }; }
9377         dblib=no
9378         ;;
9379 esac
9380 LIBS="$cmu_save_LIBS"
9381
9382 echo "$as_me:$LINENO: checking DB library to use" >&5
9383 echo $ECHO_N "checking DB library to use... $ECHO_C" >&6
9384 echo "$as_me:$LINENO: result: $dblib" >&5
9385 echo "${ECHO_T}$dblib" >&6
9386
9387 SASL_DB_BACKEND="db_${dblib}.lo"
9388 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
9389 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
9390 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
9391 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
9392
9393 case "$dblib" in
9394   gdbm)
9395     SASL_MECHS="$SASL_MECHS libsasldb.la"
9396
9397 cat >>confdefs.h <<\_ACEOF
9398 #define SASL_GDBM
9399 _ACEOF
9400
9401     ;;
9402   ndbm)
9403     SASL_MECHS="$SASL_MECHS libsasldb.la"
9404
9405 cat >>confdefs.h <<\_ACEOF
9406 #define SASL_NDBM
9407 _ACEOF
9408
9409     ;;
9410   berkeley)
9411     SASL_MECHS="$SASL_MECHS libsasldb.la"
9412
9413 cat >>confdefs.h <<\_ACEOF
9414 #define SASL_BERKELEYDB
9415 _ACEOF
9416
9417     ;;
9418   *)
9419     { echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5
9420 echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
9421             SASL_DB_BACKEND="db_none.lo"
9422     SASL_DB_BACKEND_STATIC="db_none.o"
9423     SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
9424     SASL_DB_UTILS=""
9425     SASL_DB_MANS=""
9426     SASL_DB_LIB=""
9427     ;;
9428 esac
9429
9430 if test "$enable_static" = yes; then
9431     if test "$dblib" != "none"; then
9432       SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
9433       SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
9434
9435 cat >>confdefs.h <<\_ACEOF
9436 #define STATIC_SASLDB
9437 _ACEOF
9438
9439     else
9440       SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
9441       SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
9442     fi
9443 fi
9444
9445
9446
9447
9448
9449
9450
9451
9452   SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.al"
9453 fi
9454
9455 # Check whether --enable-httpform or --disable-httpform was given.
9456 if test "${enable_httpform+set}" = set; then
9457   enableval="$enable_httpform"
9458   httpform=$enableval
9459 else
9460   httpform=no
9461 fi;
9462 if test "$httpform" != no; then
9463
9464 cat >>confdefs.h <<\_ACEOF
9465 #define HAVE_HTTPFORM
9466 _ACEOF
9467
9468 fi
9469
9470
9471 # Check whether --with-pam or --without-pam was given.
9472 if test "${with_pam+set}" = set; then
9473   withval="$with_pam"
9474   with_pam=$withval
9475 else
9476   with_pam=yes
9477 fi;
9478 if test "$with_pam" != no; then
9479   if test -d $with_pam; then
9480     CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
9481     LDFLAGS="$LDFLAGS -L${with_pam}/lib"
9482   fi
9483   cmu_save_LIBS="$LIBS"
9484   echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9485 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
9486 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   ac_check_lib_save_LIBS=$LIBS
9490 LIBS="-lpam $SASL_DL_LIB $LIBS"
9491 cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9493 /* confdefs.h.  */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h.  */
9498
9499 /* Override any gcc2 internal prototype to avoid an error.  */
9500 #ifdef __cplusplus
9501 extern "C"
9502 #endif
9503 /* We use char because int might match the return type of a gcc2
9504    builtin and then its argument prototype would still apply.  */
9505 char pam_start ();
9506 int
9507 main ()
9508 {
9509 pam_start ();
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9516   (eval $ac_link) 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } &&
9520          { ac_try='test -s conftest$ac_exeext'
9521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522   (eval $ac_try) 2>&5
9523   ac_status=$?
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); }; }; then
9526   ac_cv_lib_pam_pam_start=yes
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531 ac_cv_lib_pam_pam_start=no
9532 fi
9533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9534 LIBS=$ac_check_lib_save_LIBS
9535 fi
9536 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9537 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
9538 if test $ac_cv_lib_pam_pam_start = yes; then
9539
9540           if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9541   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9542 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9543 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 fi
9546 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9547 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9548 else
9549   # Is the header compilable?
9550 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
9551 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
9552 cat >conftest.$ac_ext <<_ACEOF
9553 #line $LINENO "configure"
9554 /* confdefs.h.  */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h.  */
9559 $ac_includes_default
9560 #include <security/pam_appl.h>
9561 _ACEOF
9562 rm -f conftest.$ac_objext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564   (eval $ac_compile) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); } &&
9568          { ac_try='test -s conftest.$ac_objext'
9569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570   (eval $ac_try) 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); }; }; then
9574   ac_header_compiler=yes
9575 else
9576   echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9578
9579 ac_header_compiler=no
9580 fi
9581 rm -f conftest.$ac_objext conftest.$ac_ext
9582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9583 echo "${ECHO_T}$ac_header_compiler" >&6
9584
9585 # Is the header present?
9586 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
9587 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
9588 cat >conftest.$ac_ext <<_ACEOF
9589 #line $LINENO "configure"
9590 /* confdefs.h.  */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h.  */
9595 #include <security/pam_appl.h>
9596 _ACEOF
9597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9599   ac_status=$?
9600   grep -v '^ *+' conftest.er1 >conftest.err
9601   rm -f conftest.er1
9602   cat conftest.err >&5
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); } >/dev/null; then
9605   if test -s conftest.err; then
9606     ac_cpp_err=$ac_c_preproc_warn_flag
9607   else
9608     ac_cpp_err=
9609   fi
9610 else
9611   ac_cpp_err=yes
9612 fi
9613 if test -z "$ac_cpp_err"; then
9614   ac_header_preproc=yes
9615 else
9616   echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9618
9619   ac_header_preproc=no
9620 fi
9621 rm -f conftest.err conftest.$ac_ext
9622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9623 echo "${ECHO_T}$ac_header_preproc" >&6
9624
9625 # So?  What about this header?
9626 case $ac_header_compiler:$ac_header_preproc in
9627   yes:no )
9628     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9629 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9630     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9631 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
9632     (
9633       cat <<\_ASBOX
9634 ## ------------------------------------ ##
9635 ## Report this to bug-autoconf@gnu.org. ##
9636 ## ------------------------------------ ##
9637 _ASBOX
9638     ) |
9639       sed "s/^/$as_me: WARNING:     /" >&2
9640     ;;
9641   no:yes )
9642     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9643 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9644     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9645 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9646     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9647 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
9648     (
9649       cat <<\_ASBOX
9650 ## ------------------------------------ ##
9651 ## Report this to bug-autoconf@gnu.org. ##
9652 ## ------------------------------------ ##
9653 _ASBOX
9654     ) |
9655       sed "s/^/$as_me: WARNING:     /" >&2
9656     ;;
9657 esac
9658 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9659 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9660 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   ac_cv_header_security_pam_appl_h=$ac_header_preproc
9664 fi
9665 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9666 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9667
9668 fi
9669 if test $ac_cv_header_security_pam_appl_h = yes; then
9670   :
9671 else
9672   with_pam=no
9673 fi
9674
9675
9676 else
9677   with_pam=no
9678 fi
9679
9680   LIBS="$cmu_save_LIBS"
9681 fi
9682
9683
9684 # Check whether --with-ipctype or --without-ipctype was given.
9685 if test "${with_ipctype+set}" = set; then
9686   withval="$with_ipctype"
9687   with_ipctype=$withval
9688 else
9689   with_ipctype="unix"
9690 fi;
9691 MAIN_COMPAT_OBJ="saslauthd-${with_ipctype}.o"
9692
9693 if test "$with_ipctype" = "doors"; then
9694
9695 cat >>confdefs.h <<\_ACEOF
9696 #define USE_DOORS
9697 _ACEOF
9698
9699
9700 cat >>confdefs.h <<\_ACEOF
9701 #define SASLAUTHD_THREADED
9702 _ACEOF
9703
9704   LIBS="$LIBS -ldoor -lpthread"
9705 fi
9706
9707 echo "$as_me:$LINENO: checking for PAM support" >&5
9708 echo $ECHO_N "checking for PAM support... $ECHO_C" >&6
9709 echo "$as_me:$LINENO: result: $with_pam" >&5
9710 echo "${ECHO_T}$with_pam" >&6
9711 LIB_PAM=""
9712 if test "$with_pam" != no; then
9713
9714 cat >>confdefs.h <<\_ACEOF
9715 #define HAVE_PAM
9716 _ACEOF
9717
9718   LIB_PAM="-lpam"
9719 fi
9720
9721
9722
9723 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
9724 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
9725 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
9726   echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728   ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-lresolv  $LIBS"
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9732 /* confdefs.h.  */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h.  */
9737
9738 /* Override any gcc2 internal prototype to avoid an error.  */
9739 #ifdef __cplusplus
9740 extern "C"
9741 #endif
9742 /* We use char because int might match the return type of a gcc2
9743    builtin and then its argument prototype would still apply.  */
9744 char inet_aton ();
9745 int
9746 main ()
9747 {
9748 inet_aton ();
9749   ;
9750   return 0;
9751 }
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755   (eval $ac_link) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } &&
9759          { ac_try='test -s conftest$ac_exeext'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; }; then
9765   ac_cv_lib_resolv_inet_aton=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_cv_lib_resolv_inet_aton=no
9771 fi
9772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9774 fi
9775 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
9776 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
9777 if test $ac_cv_lib_resolv_inet_aton = yes; then
9778   cat >>confdefs.h <<_ACEOF
9779 #define HAVE_LIBRESOLV 1
9780 _ACEOF
9781
9782   LIBS="-lresolv $LIBS"
9783
9784 fi
9785
9786
9787 echo "$as_me:$LINENO: checking to include LDAP support" >&5
9788 echo $ECHO_N "checking to include LDAP support... $ECHO_C" >&6
9789
9790 # Check whether --with-ldap or --without-ldap was given.
9791 if test "${with_ldap+set}" = set; then
9792   withval="$with_ldap"
9793   with_ldap=$withval
9794 else
9795   with_ldap=no
9796 fi;
9797 echo "$as_me:$LINENO: result: $with_ldap" >&5
9798 echo "${ECHO_T}$with_ldap" >&6
9799
9800 if test -d $with_ldap; then
9801     CPPFLAGS="$CPPFLAGS -I${with_ldap}/include"
9802
9803   # this is CMU ADD LIBPATH
9804   if test "$andrew_runpath_switch" = "none" ; then
9805         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
9806   else
9807         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
9808   fi
9809
9810 fi
9811
9812 LDAP_LIBS=""
9813 if test "$with_ldap" != no; then
9814   echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
9815 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6
9816 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-lldap -llber $LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 #line $LINENO "configure"
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828
9829 /* Override any gcc2 internal prototype to avoid an error.  */
9830 #ifdef __cplusplus
9831 extern "C"
9832 #endif
9833 /* We use char because int might match the return type of a gcc2
9834    builtin and then its argument prototype would still apply.  */
9835 char ldap_initialize ();
9836 int
9837 main ()
9838 {
9839 ldap_initialize ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846   (eval $ac_link) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } &&
9850          { ac_try='test -s conftest$ac_exeext'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   ac_cv_lib_ldap_ldap_initialize=yes
9857 else
9858   echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ac_cv_lib_ldap_ldap_initialize=no
9862 fi
9863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
9865 fi
9866 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
9867 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6
9868 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
9869
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_LDAP
9872 _ACEOF
9873
9874                                         LDAP_LIBS="-lldap -llber"
9875                                         if test "$with_openssl" != "no"; then
9876                                             LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF"
9877                                         fi
9878 fi
9879
9880
9881 fi
9882
9883
9884
9885 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9886 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9887 if test "${ac_cv_header_stdc+set}" = set; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   cat >conftest.$ac_ext <<_ACEOF
9891 #line $LINENO "configure"
9892 /* confdefs.h.  */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h.  */
9897 #include <stdlib.h>
9898 #include <stdarg.h>
9899 #include <string.h>
9900 #include <float.h>
9901
9902 int
9903 main ()
9904 {
9905
9906   ;
9907   return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912   (eval $ac_compile) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -s conftest.$ac_objext'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; }; then
9922   ac_cv_header_stdc=yes
9923 else
9924   echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927 ac_cv_header_stdc=no
9928 fi
9929 rm -f conftest.$ac_objext conftest.$ac_ext
9930
9931 if test $ac_cv_header_stdc = yes; then
9932   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9933   cat >conftest.$ac_ext <<_ACEOF
9934 #line $LINENO "configure"
9935 /* confdefs.h.  */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h.  */
9940 #include <string.h>
9941
9942 _ACEOF
9943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9944   $EGREP "memchr" >/dev/null 2>&1; then
9945   :
9946 else
9947   ac_cv_header_stdc=no
9948 fi
9949 rm -f conftest*
9950
9951 fi
9952
9953 if test $ac_cv_header_stdc = yes; then
9954   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9955   cat >conftest.$ac_ext <<_ACEOF
9956 #line $LINENO "configure"
9957 /* confdefs.h.  */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h.  */
9962 #include <stdlib.h>
9963
9964 _ACEOF
9965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9966   $EGREP "free" >/dev/null 2>&1; then
9967   :
9968 else
9969   ac_cv_header_stdc=no
9970 fi
9971 rm -f conftest*
9972
9973 fi
9974
9975 if test $ac_cv_header_stdc = yes; then
9976   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9977   if test "$cross_compiling" = yes; then
9978   :
9979 else
9980   cat >conftest.$ac_ext <<_ACEOF
9981 #line $LINENO "configure"
9982 /* confdefs.h.  */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h.  */
9987 #include <ctype.h>
9988 #if ((' ' & 0x0FF) == 0x020)
9989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9991 #else
9992 # define ISLOWER(c) \
9993                    (('a' <= (c) && (c) <= 'i') \
9994                      || ('j' <= (c) && (c) <= 'r') \
9995                      || ('s' <= (c) && (c) <= 'z'))
9996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9997 #endif
9998
9999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10000 int
10001 main ()
10002 {
10003   int i;
10004   for (i = 0; i < 256; i++)
10005     if (XOR (islower (i), ISLOWER (i))
10006         || toupper (i) != TOUPPER (i))
10007       exit(2);
10008   exit (0);
10009 }
10010 _ACEOF
10011 rm -f conftest$ac_exeext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013   (eval $ac_link) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018   (eval $ac_try) 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; }; then
10022   :
10023 else
10024   echo "$as_me: program exited with status $ac_status" >&5
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028 ( exit $ac_status )
10029 ac_cv_header_stdc=no
10030 fi
10031 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10032 fi
10033 fi
10034 fi
10035 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10036 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10037 if test $ac_cv_header_stdc = yes; then
10038
10039 cat >>confdefs.h <<\_ACEOF
10040 #define STDC_HEADERS 1
10041 _ACEOF
10042
10043 fi
10044
10045 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10046 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10047 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10048   echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050   cat >conftest.$ac_ext <<_ACEOF
10051 #line $LINENO "configure"
10052 /* confdefs.h.  */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h.  */
10057 #include <sys/types.h>
10058 #include <sys/wait.h>
10059 #ifndef WEXITSTATUS
10060 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10061 #endif
10062 #ifndef WIFEXITED
10063 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10064 #endif
10065
10066 int
10067 main ()
10068 {
10069   int s;
10070   wait (&s);
10071   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10072   ;
10073   return 0;
10074 }
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078   (eval $ac_compile) 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } &&
10082          { ac_try='test -s conftest.$ac_objext'
10083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084   (eval $ac_try) 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; }; then
10088   ac_cv_header_sys_wait_h=yes
10089 else
10090   echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10092
10093 ac_cv_header_sys_wait_h=no
10094 fi
10095 rm -f conftest.$ac_objext conftest.$ac_ext
10096 fi
10097 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10098 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10099 if test $ac_cv_header_sys_wait_h = yes; then
10100
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_SYS_WAIT_H 1
10103 _ACEOF
10104
10105 fi
10106
10107 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10108 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10109 if test "${ac_cv_header_time+set}" = set; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   cat >conftest.$ac_ext <<_ACEOF
10113 #line $LINENO "configure"
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119 #include <sys/types.h>
10120 #include <sys/time.h>
10121 #include <time.h>
10122
10123 int
10124 main ()
10125 {
10126 if ((struct tm *) 0)
10127 return 0;
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10134   (eval $ac_compile) 2>&5
10135   ac_status=$?
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -s conftest.$ac_objext'
10139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140   (eval $ac_try) 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); }; }; then
10144   ac_cv_header_time=yes
10145 else
10146   echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10148
10149 ac_cv_header_time=no
10150 fi
10151 rm -f conftest.$ac_objext conftest.$ac_ext
10152 fi
10153 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10154 echo "${ECHO_T}$ac_cv_header_time" >&6
10155 if test $ac_cv_header_time = yes; then
10156
10157 cat >>confdefs.h <<\_ACEOF
10158 #define TIME_WITH_SYS_TIME 1
10159 _ACEOF
10160
10161 fi
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171 for ac_header in crypt.h fcntl.h krb5.h strings.h syslog.h unistd.h sys/time.h sys/uio.h
10172 do
10173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10175   echo "$as_me:$LINENO: checking for $ac_header" >&5
10176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 fi
10180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10182 else
10183   # Is the header compilable?
10184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10186 cat >conftest.$ac_ext <<_ACEOF
10187 #line $LINENO "configure"
10188 /* confdefs.h.  */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h.  */
10193 $ac_includes_default
10194 #include <$ac_header>
10195 _ACEOF
10196 rm -f conftest.$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198   (eval $ac_compile) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } &&
10202          { ac_try='test -s conftest.$ac_objext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   ac_header_compiler=yes
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 ac_header_compiler=no
10214 fi
10215 rm -f conftest.$ac_objext conftest.$ac_ext
10216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10217 echo "${ECHO_T}$ac_header_compiler" >&6
10218
10219 # Is the header present?
10220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10223 #line $LINENO "configure"
10224 /* confdefs.h.  */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h.  */
10229 #include <$ac_header>
10230 _ACEOF
10231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10233   ac_status=$?
10234   grep -v '^ *+' conftest.er1 >conftest.err
10235   rm -f conftest.er1
10236   cat conftest.err >&5
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } >/dev/null; then
10239   if test -s conftest.err; then
10240     ac_cpp_err=$ac_c_preproc_warn_flag
10241   else
10242     ac_cpp_err=
10243   fi
10244 else
10245   ac_cpp_err=yes
10246 fi
10247 if test -z "$ac_cpp_err"; then
10248   ac_header_preproc=yes
10249 else
10250   echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10252
10253   ac_header_preproc=no
10254 fi
10255 rm -f conftest.err conftest.$ac_ext
10256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10257 echo "${ECHO_T}$ac_header_preproc" >&6
10258
10259 # So?  What about this header?
10260 case $ac_header_compiler:$ac_header_preproc in
10261   yes:no )
10262     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10266     (
10267       cat <<\_ASBOX
10268 ## ------------------------------------ ##
10269 ## Report this to bug-autoconf@gnu.org. ##
10270 ## ------------------------------------ ##
10271 _ASBOX
10272     ) |
10273       sed "s/^/$as_me: WARNING:     /" >&2
10274     ;;
10275   no:yes )
10276     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10278     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10282     (
10283       cat <<\_ASBOX
10284 ## ------------------------------------ ##
10285 ## Report this to bug-autoconf@gnu.org. ##
10286 ## ------------------------------------ ##
10287 _ASBOX
10288     ) |
10289       sed "s/^/$as_me: WARNING:     /" >&2
10290     ;;
10291 esac
10292 echo "$as_me:$LINENO: checking for $ac_header" >&5
10293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10295   echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297   eval "$as_ac_Header=$ac_header_preproc"
10298 fi
10299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10301
10302 fi
10303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10304   cat >>confdefs.h <<_ACEOF
10305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10306 _ACEOF
10307
10308 fi
10309
10310 done
10311
10312
10313 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10314 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10315 if test "${ac_cv_c_const+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   cat >conftest.$ac_ext <<_ACEOF
10319 #line $LINENO "configure"
10320 /* confdefs.h.  */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h.  */
10325
10326 int
10327 main ()
10328 {
10329 /* FIXME: Include the comments suggested by Paul. */
10330 #ifndef __cplusplus
10331   /* Ultrix mips cc rejects this.  */
10332   typedef int charset[2];
10333   const charset x;
10334   /* SunOS 4.1.1 cc rejects this.  */
10335   char const *const *ccp;
10336   char **p;
10337   /* NEC SVR4.0.2 mips cc rejects this.  */
10338   struct point {int x, y;};
10339   static struct point const zero = {0,0};
10340   /* AIX XL C 1.02.0.0 rejects this.
10341      It does not let you subtract one const X* pointer from another in
10342      an arm of an if-expression whose if-part is not a constant
10343      expression */
10344   const char *g = "string";
10345   ccp = &g + (g ? g-g : 0);
10346   /* HPUX 7.0 cc rejects these. */
10347   ++ccp;
10348   p = (char**) ccp;
10349   ccp = (char const *const *) p;
10350   { /* SCO 3.2v4 cc rejects this.  */
10351     char *t;
10352     char const *s = 0 ? (char *) 0 : (char const *) 0;
10353
10354     *t++ = 0;
10355   }
10356   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10357     int x[] = {25, 17};
10358     const int *foo = &x[0];
10359     ++foo;
10360   }
10361   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10362     typedef const int *iptr;
10363     iptr p = 0;
10364     ++p;
10365   }
10366   { /* AIX XL C 1.02.0.0 rejects this saying
10367        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10368     struct s { int j; const int *ap[3]; };
10369     struct s *b; b->j = 5;
10370   }
10371   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10372     const int foo = 10;
10373   }
10374 #endif
10375
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382   (eval $ac_compile) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } &&
10386          { ac_try='test -s conftest.$ac_objext'
10387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388   (eval $ac_try) 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; }; then
10392   ac_cv_c_const=yes
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397 ac_cv_c_const=no
10398 fi
10399 rm -f conftest.$ac_objext conftest.$ac_ext
10400 fi
10401 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10402 echo "${ECHO_T}$ac_cv_c_const" >&6
10403 if test $ac_cv_c_const = no; then
10404
10405 cat >>confdefs.h <<\_ACEOF
10406 #define const
10407 _ACEOF
10408
10409 fi
10410
10411 echo "$as_me:$LINENO: checking for pid_t" >&5
10412 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10413 if test "${ac_cv_type_pid_t+set}" = set; then
10414   echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416   cat >conftest.$ac_ext <<_ACEOF
10417 #line $LINENO "configure"
10418 /* confdefs.h.  */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h.  */
10423 $ac_includes_default
10424 int
10425 main ()
10426 {
10427 if ((pid_t *) 0)
10428   return 0;
10429 if (sizeof (pid_t))
10430   return 0;
10431   ;
10432   return 0;
10433 }
10434 _ACEOF
10435 rm -f conftest.$ac_objext
10436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10437   (eval $ac_compile) 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); } &&
10441          { ac_try='test -s conftest.$ac_objext'
10442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443   (eval $ac_try) 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }; }; then
10447   ac_cv_type_pid_t=yes
10448 else
10449   echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10451
10452 ac_cv_type_pid_t=no
10453 fi
10454 rm -f conftest.$ac_objext conftest.$ac_ext
10455 fi
10456 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10457 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10458 if test $ac_cv_type_pid_t = yes; then
10459   :
10460 else
10461
10462 cat >>confdefs.h <<_ACEOF
10463 #define pid_t int
10464 _ACEOF
10465
10466 fi
10467
10468
10469 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
10470
10471
10472 echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
10473 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
10474 if test "${have_func+set}" = set; then
10475   echo $ECHO_N "(cached) $ECHO_C" >&6
10476 else
10477   cat >conftest.$ac_ext <<_ACEOF
10478 #line $LINENO "configure"
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 #include <stdio.h>
10485 int
10486 main ()
10487 {
10488 printf("%s", __func__);
10489   ;
10490   return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495   (eval $ac_link) 2>&5
10496   ac_status=$?
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } &&
10499          { ac_try='test -s conftest$ac_exeext'
10500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501   (eval $ac_try) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; }; then
10505   have_func=yes
10506 else
10507   echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510 have_func=no
10511 fi
10512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10513 fi
10514
10515 echo "$as_me:$LINENO: result: $have_func" >&5
10516 echo "${ECHO_T}$have_func" >&6
10517 if test "$have_func" = yes; then
10518
10519 cat >>confdefs.h <<\_ACEOF
10520 #define HAVE_FUNC
10521 _ACEOF
10522
10523 else
10524        echo "$as_me:$LINENO: checking whether $CC implements __PRETTY_FUNCTION__" >&5
10525 echo $ECHO_N "checking whether $CC implements __PRETTY_FUNCTION__... $ECHO_C" >&6
10526        if test "${have_pretty_function+set}" = set; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529   cat >conftest.$ac_ext <<_ACEOF
10530 #line $LINENO "configure"
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536 #include <stdio.h>
10537 int
10538 main ()
10539 {
10540 printf("%s", __PRETTY_FUNCTION__);
10541   ;
10542   return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10547   (eval $ac_link) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); } &&
10551          { ac_try='test -s conftest$ac_exeext'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; }; then
10557   have_pretty_function=yes
10558 else
10559   echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10561
10562 have_pretty_function=no
10563 fi
10564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10565 fi
10566
10567        echo "$as_me:$LINENO: result: $have_pretty_function" >&5
10568 echo "${ECHO_T}$have_pretty_function" >&6
10569        if test "$have_pretty_function" = yes; then
10570
10571 cat >>confdefs.h <<\_ACEOF
10572 #define HAVE_PRETTY_FUNCTION
10573 _ACEOF
10574
10575        else
10576                echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
10577 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
10578                if test "${have_function+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 /* confdefs.h.  */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h.  */
10588 #include <stdio.h>
10589 int
10590 main ()
10591 {
10592 printf("%s", __FUNCTION__);
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599   (eval $ac_link) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } &&
10603          { ac_try='test -s conftest$ac_exeext'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; }; then
10609   have_function=yes
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 have_function=no
10615 fi
10616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10617 fi
10618
10619                echo "$as_me:$LINENO: result: $have_function" >&5
10620 echo "${ECHO_T}$have_function" >&6
10621                if test "$have_function" = yes; then
10622
10623 cat >>confdefs.h <<\_ACEOF
10624 #define HAVE_FUNCTION
10625 _ACEOF
10626
10627                fi
10628        fi
10629 fi
10630
10631 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10632 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10633 if test "${ac_cv_type_signal+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   cat >conftest.$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 #include <sys/types.h>
10644 #include <signal.h>
10645 #ifdef signal
10646 # undef signal
10647 #endif
10648 #ifdef __cplusplus
10649 extern "C" void (*signal (int, void (*)(int)))(int);
10650 #else
10651 void (*signal ()) ();
10652 #endif
10653
10654 int
10655 main ()
10656 {
10657 int i;
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10664   (eval $ac_compile) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } &&
10668          { ac_try='test -s conftest.$ac_objext'
10669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670   (eval $ac_try) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); }; }; then
10674   ac_cv_type_signal=void
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ac_cv_type_signal=int
10680 fi
10681 rm -f conftest.$ac_objext conftest.$ac_ext
10682 fi
10683 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10684 echo "${ECHO_T}$ac_cv_type_signal" >&6
10685
10686 cat >>confdefs.h <<_ACEOF
10687 #define RETSIGTYPE $ac_cv_type_signal
10688 _ACEOF
10689
10690
10691
10692
10693
10694
10695 for ac_func in gethostname mkdir socket strdup
10696 do
10697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10698 echo "$as_me:$LINENO: checking for $ac_func" >&5
10699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10700 if eval "test \"\${$as_ac_var+set}\" = set"; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   cat >conftest.$ac_ext <<_ACEOF
10704 #line $LINENO "configure"
10705 /* confdefs.h.  */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h.  */
10710 /* System header to define __stub macros and hopefully few prototypes,
10711     which can conflict with char $ac_func (); below.
10712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713     <limits.h> exists even on freestanding compilers.  */
10714 #ifdef __STDC__
10715 # include <limits.h>
10716 #else
10717 # include <assert.h>
10718 #endif
10719 /* Override any gcc2 internal prototype to avoid an error.  */
10720 #ifdef __cplusplus
10721 extern "C"
10722 {
10723 #endif
10724 /* We use char because int might match the return type of a gcc2
10725    builtin and then its argument prototype would still apply.  */
10726 char $ac_func ();
10727 /* The GNU C library defines this for functions which it implements
10728     to always fail with ENOSYS.  Some functions are actually named
10729     something starting with __ and the normal name is an alias.  */
10730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10731 choke me
10732 #else
10733 char (*f) () = $ac_func;
10734 #endif
10735 #ifdef __cplusplus
10736 }
10737 #endif
10738
10739 int
10740 main ()
10741 {
10742 return f != $ac_func;
10743   ;
10744   return 0;
10745 }
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10749   (eval $ac_link) 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); } &&
10753          { ac_try='test -s conftest$ac_exeext'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; }; then
10759   eval "$as_ac_var=yes"
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 eval "$as_ac_var=no"
10765 fi
10766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10767 fi
10768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10770 if test `eval echo '${'$as_ac_var'}'` = yes; then
10771   cat >>confdefs.h <<_ACEOF
10772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10773 _ACEOF
10774
10775 fi
10776 done
10777
10778
10779
10780 for ac_func in getspnam getuserpw
10781 do
10782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10783 echo "$as_me:$LINENO: checking for $ac_func" >&5
10784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10785 if eval "test \"\${$as_ac_var+set}\" = set"; then
10786   echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788   cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10790 /* confdefs.h.  */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h.  */
10795 /* System header to define __stub macros and hopefully few prototypes,
10796     which can conflict with char $ac_func (); below.
10797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10798     <limits.h> exists even on freestanding compilers.  */
10799 #ifdef __STDC__
10800 # include <limits.h>
10801 #else
10802 # include <assert.h>
10803 #endif
10804 /* Override any gcc2 internal prototype to avoid an error.  */
10805 #ifdef __cplusplus
10806 extern "C"
10807 {
10808 #endif
10809 /* We use char because int might match the return type of a gcc2
10810    builtin and then its argument prototype would still apply.  */
10811 char $ac_func ();
10812 /* The GNU C library defines this for functions which it implements
10813     to always fail with ENOSYS.  Some functions are actually named
10814     something starting with __ and the normal name is an alias.  */
10815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10816 choke me
10817 #else
10818 char (*f) () = $ac_func;
10819 #endif
10820 #ifdef __cplusplus
10821 }
10822 #endif
10823
10824 int
10825 main ()
10826 {
10827 return f != $ac_func;
10828   ;
10829   return 0;
10830 }
10831 _ACEOF
10832 rm -f conftest.$ac_objext conftest$ac_exeext
10833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10834   (eval $ac_link) 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } &&
10838          { ac_try='test -s conftest$ac_exeext'
10839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840   (eval $ac_try) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; }; then
10844   eval "$as_ac_var=yes"
10845 else
10846   echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 eval "$as_ac_var=no"
10850 fi
10851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10852 fi
10853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10855 if test `eval echo '${'$as_ac_var'}'` = yes; then
10856   cat >>confdefs.h <<_ACEOF
10857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10858 _ACEOF
10859  break
10860 fi
10861 done
10862
10863
10864
10865 for ac_func in strlcat strlcpy
10866 do
10867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10868 echo "$as_me:$LINENO: checking for $ac_func" >&5
10869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10870 if eval "test \"\${$as_ac_var+set}\" = set"; then
10871   echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873   cat >conftest.$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
10875 /* confdefs.h.  */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h.  */
10880 /* System header to define __stub macros and hopefully few prototypes,
10881     which can conflict with char $ac_func (); below.
10882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10883     <limits.h> exists even on freestanding compilers.  */
10884 #ifdef __STDC__
10885 # include <limits.h>
10886 #else
10887 # include <assert.h>
10888 #endif
10889 /* Override any gcc2 internal prototype to avoid an error.  */
10890 #ifdef __cplusplus
10891 extern "C"
10892 {
10893 #endif
10894 /* We use char because int might match the return type of a gcc2
10895    builtin and then its argument prototype would still apply.  */
10896 char $ac_func ();
10897 /* The GNU C library defines this for functions which it implements
10898     to always fail with ENOSYS.  Some functions are actually named
10899     something starting with __ and the normal name is an alias.  */
10900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10901 choke me
10902 #else
10903 char (*f) () = $ac_func;
10904 #endif
10905 #ifdef __cplusplus
10906 }
10907 #endif
10908
10909 int
10910 main ()
10911 {
10912 return f != $ac_func;
10913   ;
10914   return 0;
10915 }
10916 _ACEOF
10917 rm -f conftest.$ac_objext conftest$ac_exeext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10919   (eval $ac_link) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); } &&
10923          { ac_try='test -s conftest$ac_exeext'
10924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925   (eval $ac_try) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; }; then
10929   eval "$as_ac_var=yes"
10930 else
10931   echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10933
10934 eval "$as_ac_var=no"
10935 fi
10936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10937 fi
10938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10940 if test `eval echo '${'$as_ac_var'}'` = yes; then
10941   cat >>confdefs.h <<_ACEOF
10942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10943 _ACEOF
10944
10945 fi
10946 done
10947
10948
10949 if test $ac_cv_func_getspnam = yes; then
10950         echo "$as_me:$LINENO: checking if getpwnam_r/getspnam_r take 5 arguments" >&5
10951 echo $ECHO_N "checking if getpwnam_r/getspnam_r take 5 arguments... $ECHO_C" >&6
10952         cat >conftest.$ac_ext <<_ACEOF
10953 #line $LINENO "configure"
10954 /* confdefs.h.  */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h.  */
10959
10960 #include <sys/types.h>
10961 #include <pwd.h>
10962 #include <shadow.h>
10963
10964 int
10965 main ()
10966 {
10967
10968 struct passwd *pw;
10969 struct passwd pwbuf;
10970 char pwdata[512];
10971 (void) getpwnam_r("bin", &pwbuf, pwdata, sizeof(pwdata), &pw);
10972
10973   ;
10974   return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979   (eval $ac_compile) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); } &&
10983          { ac_try='test -s conftest.$ac_objext'
10984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985   (eval $ac_try) 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }; }; then
10989   echo "$as_me:$LINENO: result: yes" >&5
10990 echo "${ECHO_T}yes" >&6
10991
10992 cat >>confdefs.h <<\_ACEOF
10993 #define GETXXNAM_R_5ARG 1
10994 _ACEOF
10995
10996 else
10997   echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
10999
11000 echo "$as_me:$LINENO: result: no" >&5
11001 echo "${ECHO_T}no" >&6
11002
11003 fi
11004 rm -f conftest.$ac_objext conftest.$ac_ext
11005 fi
11006
11007 GETADDRINFOOBJS=""
11008 sasl_cv_getaddrinfo=no
11009
11010 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
11011 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
11012 if test "${ac_cv_func_getaddrinfo+set}" = set; then
11013   echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015   cat >conftest.$ac_ext <<_ACEOF
11016 #line $LINENO "configure"
11017 /* confdefs.h.  */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h.  */
11022 /* System header to define __stub macros and hopefully few prototypes,
11023     which can conflict with char getaddrinfo (); below.
11024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11025     <limits.h> exists even on freestanding compilers.  */
11026 #ifdef __STDC__
11027 # include <limits.h>
11028 #else
11029 # include <assert.h>
11030 #endif
11031 /* Override any gcc2 internal prototype to avoid an error.  */
11032 #ifdef __cplusplus
11033 extern "C"
11034 {
11035 #endif
11036 /* We use char because int might match the return type of a gcc2
11037    builtin and then its argument prototype would still apply.  */
11038 char getaddrinfo ();
11039 /* The GNU C library defines this for functions which it implements
11040     to always fail with ENOSYS.  Some functions are actually named
11041     something starting with __ and the normal name is an alias.  */
11042 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
11043 choke me
11044 #else
11045 char (*f) () = getaddrinfo;
11046 #endif
11047 #ifdef __cplusplus
11048 }
11049 #endif
11050
11051 int
11052 main ()
11053 {
11054 return f != getaddrinfo;
11055   ;
11056   return 0;
11057 }
11058 _ACEOF
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061   (eval $ac_link) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } &&
11065          { ac_try='test -s conftest$ac_exeext'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; }; then
11071   ac_cv_func_getaddrinfo=yes
11072 else
11073   echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 ac_cv_func_getaddrinfo=no
11077 fi
11078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11079 fi
11080 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
11081 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
11082 if test $ac_cv_func_getaddrinfo = yes; then
11083     ac_cv_lib_socket_getaddrinfo=no
11084   ac_cv_lib_inet6_getaddrinfo=no
11085
11086 else
11087     echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
11088 echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6
11089 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
11090   echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092   ac_check_lib_save_LIBS=$LIBS
11093 LIBS="-lsocket  $LIBS"
11094 cat >conftest.$ac_ext <<_ACEOF
11095 #line $LINENO "configure"
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101
11102 /* Override any gcc2 internal prototype to avoid an error.  */
11103 #ifdef __cplusplus
11104 extern "C"
11105 #endif
11106 /* We use char because int might match the return type of a gcc2
11107    builtin and then its argument prototype would still apply.  */
11108 char getaddrinfo ();
11109 int
11110 main ()
11111 {
11112 getaddrinfo ();
11113   ;
11114   return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119   (eval $ac_link) 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } &&
11123          { ac_try='test -s conftest$ac_exeext'
11124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125   (eval $ac_try) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; }; then
11129   ac_cv_lib_socket_getaddrinfo=yes
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 ac_cv_lib_socket_getaddrinfo=no
11135 fi
11136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11138 fi
11139 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
11140 echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6
11141 if test $ac_cv_lib_socket_getaddrinfo = yes; then
11142       LIBS="$LIBS -lsocket"
11143     ac_cv_lib_inet6_getaddrinfo=no
11144
11145 else
11146       echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
11147 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6
11148     if test "${ipv6_cv_dir+set}" = set; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
11152         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
11153           break
11154         fi
11155       done
11156 fi
11157     echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
11158 echo "${ECHO_T}$ipv6_cv_dir" >&6
11159     if test $ipv6_cv_dir = no; then
11160       ac_cv_lib_inet6_getaddrinfo=no
11161     else
11162       if test x$ipv6_libinet6 = x; then
11163         ipv6_libinet6=no
11164         SAVELDFLAGS="$LDFLAGS"
11165         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
11166       fi
11167       echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
11168 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6
11169 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
11170   echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172   ac_check_lib_save_LIBS=$LIBS
11173 LIBS="-linet6  $LIBS"
11174 cat >conftest.$ac_ext <<_ACEOF
11175 #line $LINENO "configure"
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181
11182 /* Override any gcc2 internal prototype to avoid an error.  */
11183 #ifdef __cplusplus
11184 extern "C"
11185 #endif
11186 /* We use char because int might match the return type of a gcc2
11187    builtin and then its argument prototype would still apply.  */
11188 char getaddrinfo ();
11189 int
11190 main ()
11191 {
11192 getaddrinfo ();
11193   ;
11194   return 0;
11195 }
11196 _ACEOF
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199   (eval $ac_link) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } &&
11203          { ac_try='test -s conftest$ac_exeext'
11204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205   (eval $ac_try) 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); }; }; then
11209   ac_cv_lib_inet6_getaddrinfo=yes
11210 else
11211   echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214 ac_cv_lib_inet6_getaddrinfo=no
11215 fi
11216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
11218 fi
11219 echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
11220 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6
11221 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
11222         if test $ipv6_libinet6 = no; then
11223           ipv6_libinet6=yes
11224           LIBS="$LIBS -linet6"
11225         fi
11226 fi
11227       if test $ipv6_libinet6 = no; then
11228         LDFLAGS="$SAVELDFLAGS"
11229       fi
11230     fi
11231 fi
11232
11233 fi
11234 ipv6_cv_getaddrinfo=no
11235 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
11236      -o $ac_cv_lib_inet6_getaddrinfo = yes
11237 then
11238   ipv6_cv_getaddrinfo=yes
11239 fi
11240 if test $ipv6_cv_getaddrinfo = no; then
11241   if test getaddrinfo = getaddrinfo; then
11242     for ipv6_cv_pfx in o n; do
11243       cat >conftest.$ac_ext <<_ACEOF
11244 #line $LINENO "configure"
11245 /* confdefs.h.  */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h.  */
11250 #include <netdb.h>
11251
11252 _ACEOF
11253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11254   $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
11255   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
11256 echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
11257 echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6
11258 if eval "test \"\${$as_ac_var+set}\" = set"; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261   cat >conftest.$ac_ext <<_ACEOF
11262 #line $LINENO "configure"
11263 /* confdefs.h.  */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h.  */
11268 /* System header to define __stub macros and hopefully few prototypes,
11269     which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
11270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11271     <limits.h> exists even on freestanding compilers.  */
11272 #ifdef __STDC__
11273 # include <limits.h>
11274 #else
11275 # include <assert.h>
11276 #endif
11277 /* Override any gcc2 internal prototype to avoid an error.  */
11278 #ifdef __cplusplus
11279 extern "C"
11280 {
11281 #endif
11282 /* We use char because int might match the return type of a gcc2
11283    builtin and then its argument prototype would still apply.  */
11284 char ${ipv6_cv_pfx}getaddrinfo ();
11285 /* The GNU C library defines this for functions which it implements
11286     to always fail with ENOSYS.  Some functions are actually named
11287     something starting with __ and the normal name is an alias.  */
11288 #if defined (__stub_${ipv6_cv_pfx}getaddrinfo) || defined (__stub___${ipv6_cv_pfx}getaddrinfo)
11289 choke me
11290 #else
11291 char (*f) () = ${ipv6_cv_pfx}getaddrinfo;
11292 #endif
11293 #ifdef __cplusplus
11294 }
11295 #endif
11296
11297 int
11298 main ()
11299 {
11300 return f != ${ipv6_cv_pfx}getaddrinfo;
11301   ;
11302   return 0;
11303 }
11304 _ACEOF
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307   (eval $ac_link) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } &&
11311          { ac_try='test -s conftest$ac_exeext'
11312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313   (eval $ac_try) 2>&5
11314   ac_status=$?
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); }; }; then
11317   eval "$as_ac_var=yes"
11318 else
11319   echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 eval "$as_ac_var=no"
11323 fi
11324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11325 fi
11326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11328
11329 fi
11330 rm -f conftest*
11331
11332       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
11333
11334 cat >>confdefs.h <<\_ACEOF
11335 #define HAVE_GETADDRINFO
11336 _ACEOF
11337
11338         ipv6_cv_getaddrinfo=yes
11339         break
11340       fi
11341     done
11342   fi
11343 fi
11344 if test $ipv6_cv_getaddrinfo = yes; then
11345
11346 cat >>confdefs.h <<\_ACEOF
11347 #define HAVE_GETADDRINFO
11348 _ACEOF
11349
11350 else
11351   sasl_cv_getaddrinfo=yes
11352 fi
11353 if test $sasl_cv_getaddrinfo = yes; then
11354         LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11355 fi
11356
11357 GETNAMEINFOOBJS=""
11358 sasl_cv_getnameinfo=no
11359
11360 echo "$as_me:$LINENO: checking for getnameinfo" >&5
11361 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
11362 if test "${ac_cv_func_getnameinfo+set}" = set; then
11363   echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365   cat >conftest.$ac_ext <<_ACEOF
11366 #line $LINENO "configure"
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 /* System header to define __stub macros and hopefully few prototypes,
11373     which can conflict with char getnameinfo (); below.
11374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11375     <limits.h> exists even on freestanding compilers.  */
11376 #ifdef __STDC__
11377 # include <limits.h>
11378 #else
11379 # include <assert.h>
11380 #endif
11381 /* Override any gcc2 internal prototype to avoid an error.  */
11382 #ifdef __cplusplus
11383 extern "C"
11384 {
11385 #endif
11386 /* We use char because int might match the return type of a gcc2
11387    builtin and then its argument prototype would still apply.  */
11388 char getnameinfo ();
11389 /* The GNU C library defines this for functions which it implements
11390     to always fail with ENOSYS.  Some functions are actually named
11391     something starting with __ and the normal name is an alias.  */
11392 #if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
11393 choke me
11394 #else
11395 char (*f) () = getnameinfo;
11396 #endif
11397 #ifdef __cplusplus
11398 }
11399 #endif
11400
11401 int
11402 main ()
11403 {
11404 return f != getnameinfo;
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 rm -f conftest.$ac_objext conftest$ac_exeext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11411   (eval $ac_link) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } &&
11415          { ac_try='test -s conftest$ac_exeext'
11416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417   (eval $ac_try) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; }; then
11421   ac_cv_func_getnameinfo=yes
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 ac_cv_func_getnameinfo=no
11427 fi
11428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11429 fi
11430 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
11431 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6
11432 if test $ac_cv_func_getnameinfo = yes; then
11433     ac_cv_lib_socket_getnameinfo=no
11434   ac_cv_lib_inet6_getnameinfo=no
11435
11436 else
11437     echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
11438 echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6
11439 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442   ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-lsocket  $LIBS"
11444 cat >conftest.$ac_ext <<_ACEOF
11445 #line $LINENO "configure"
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451
11452 /* Override any gcc2 internal prototype to avoid an error.  */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 /* We use char because int might match the return type of a gcc2
11457    builtin and then its argument prototype would still apply.  */
11458 char getnameinfo ();
11459 int
11460 main ()
11461 {
11462 getnameinfo ();
11463   ;
11464   return 0;
11465 }
11466 _ACEOF
11467 rm -f conftest.$ac_objext conftest$ac_exeext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11469   (eval $ac_link) 2>&5
11470   ac_status=$?
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); } &&
11473          { ac_try='test -s conftest$ac_exeext'
11474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475   (eval $ac_try) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; }; then
11479   ac_cv_lib_socket_getnameinfo=yes
11480 else
11481   echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11483
11484 ac_cv_lib_socket_getnameinfo=no
11485 fi
11486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11488 fi
11489 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
11490 echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6
11491 if test $ac_cv_lib_socket_getnameinfo = yes; then
11492       LIBS="$LIBS -lsocket"
11493     ac_cv_lib_inet6_getnameinfo=no
11494
11495 else
11496       echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
11497 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6
11498     if test "${ipv6_cv_dir+set}" = set; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
11502         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
11503           break
11504         fi
11505       done
11506 fi
11507     echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
11508 echo "${ECHO_T}$ipv6_cv_dir" >&6
11509     if test $ipv6_cv_dir = no; then
11510       ac_cv_lib_inet6_getnameinfo=no
11511     else
11512       if test x$ipv6_libinet6 = x; then
11513         ipv6_libinet6=no
11514         SAVELDFLAGS="$LDFLAGS"
11515         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
11516       fi
11517       echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
11518 echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6
11519 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522   ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-linet6  $LIBS"
11524 cat >conftest.$ac_ext <<_ACEOF
11525 #line $LINENO "configure"
11526 /* confdefs.h.  */
11527 _ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h.  */
11531
11532 /* Override any gcc2 internal prototype to avoid an error.  */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 /* We use char because int might match the return type of a gcc2
11537    builtin and then its argument prototype would still apply.  */
11538 char getnameinfo ();
11539 int
11540 main ()
11541 {
11542 getnameinfo ();
11543   ;
11544   return 0;
11545 }
11546 _ACEOF
11547 rm -f conftest.$ac_objext conftest$ac_exeext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11549   (eval $ac_link) 2>&5
11550   ac_status=$?
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); } &&
11553          { ac_try='test -s conftest$ac_exeext'
11554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555   (eval $ac_try) 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); }; }; then
11559   ac_cv_lib_inet6_getnameinfo=yes
11560 else
11561   echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 ac_cv_lib_inet6_getnameinfo=no
11565 fi
11566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11568 fi
11569 echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
11570 echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6
11571 if test $ac_cv_lib_inet6_getnameinfo = yes; then
11572         if test $ipv6_libinet6 = no; then
11573           ipv6_libinet6=yes
11574           LIBS="$LIBS -linet6"
11575         fi
11576 fi
11577       if test $ipv6_libinet6 = no; then
11578         LDFLAGS="$SAVELDFLAGS"
11579       fi
11580     fi
11581 fi
11582
11583 fi
11584 ipv6_cv_getnameinfo=no
11585 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
11586      -o $ac_cv_lib_inet6_getnameinfo = yes
11587 then
11588   ipv6_cv_getnameinfo=yes
11589 fi
11590 if test $ipv6_cv_getnameinfo = no; then
11591   if test getnameinfo = getaddrinfo; then
11592     for ipv6_cv_pfx in o n; do
11593       cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600 #include <netdb.h>
11601
11602 _ACEOF
11603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11604   $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
11605   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
11606 echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
11607 echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6
11608 if eval "test \"\${$as_ac_var+set}\" = set"; then
11609   echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611   cat >conftest.$ac_ext <<_ACEOF
11612 #line $LINENO "configure"
11613 /* confdefs.h.  */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h.  */
11618 /* System header to define __stub macros and hopefully few prototypes,
11619     which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
11620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11621     <limits.h> exists even on freestanding compilers.  */
11622 #ifdef __STDC__
11623 # include <limits.h>
11624 #else
11625 # include <assert.h>
11626 #endif
11627 /* Override any gcc2 internal prototype to avoid an error.  */
11628 #ifdef __cplusplus
11629 extern "C"
11630 {
11631 #endif
11632 /* We use char because int might match the return type of a gcc2
11633    builtin and then its argument prototype would still apply.  */
11634 char ${ipv6_cv_pfx}getnameinfo ();
11635 /* The GNU C library defines this for functions which it implements
11636     to always fail with ENOSYS.  Some functions are actually named
11637     something starting with __ and the normal name is an alias.  */
11638 #if defined (__stub_${ipv6_cv_pfx}getnameinfo) || defined (__stub___${ipv6_cv_pfx}getnameinfo)
11639 choke me
11640 #else
11641 char (*f) () = ${ipv6_cv_pfx}getnameinfo;
11642 #endif
11643 #ifdef __cplusplus
11644 }
11645 #endif
11646
11647 int
11648 main ()
11649 {
11650 return f != ${ipv6_cv_pfx}getnameinfo;
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657   (eval $ac_link) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } &&
11661          { ac_try='test -s conftest$ac_exeext'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; }; then
11667   eval "$as_ac_var=yes"
11668 else
11669   echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 eval "$as_ac_var=no"
11673 fi
11674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11675 fi
11676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11678
11679 fi
11680 rm -f conftest*
11681
11682       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
11683
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_GETADDRINFO
11686 _ACEOF
11687
11688         ipv6_cv_getnameinfo=yes
11689         break
11690       fi
11691     done
11692   fi
11693 fi
11694 if test $ipv6_cv_getnameinfo = yes; then
11695
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_GETNAMEINFO
11698 _ACEOF
11699
11700 else
11701   sasl_cv_getnameinfo=yes
11702 fi
11703 if test $sasl_cv_getnameinfo = yes; then
11704         LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
11705 fi
11706
11707
11708 echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
11709 echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6
11710 if test "${ipv6_cv_ss_family+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 /* confdefs.h.  */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h.  */
11720 #include <sys/types.h>
11721 #include <sys/socket.h>
11722 int
11723 main ()
11724 {
11725 struct sockaddr_storage ss; int i = ss.ss_family;
11726   ;
11727   return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest.$ac_objext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732   (eval $ac_compile) 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); } &&
11736          { ac_try='test -s conftest.$ac_objext'
11737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738   (eval $ac_try) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }; }; then
11742   ipv6_cv_ss_family=yes
11743 else
11744   echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 ipv6_cv_ss_family=no
11748 fi
11749 rm -f conftest.$ac_objext conftest.$ac_ext
11750 fi
11751 if test $ipv6_cv_ss_family = yes; then
11752
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_SS_FAMILY
11755 _ACEOF
11756
11757 else
11758   :
11759 fi
11760 echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
11761 echo "${ECHO_T}$ipv6_cv_ss_family" >&6
11762
11763 echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
11764 echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6
11765 if test "${ipv6_cv_sa_len+set}" = set; then
11766   echo $ECHO_N "(cached) $ECHO_C" >&6
11767 else
11768   cat >conftest.$ac_ext <<_ACEOF
11769 #line $LINENO "configure"
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775 #include <sys/types.h>
11776 #include <sys/socket.h>
11777 int
11778 main ()
11779 {
11780 struct sockaddr sa; int i = sa.sa_len;
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787   (eval $ac_compile) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } &&
11791          { ac_try='test -s conftest.$ac_objext'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; }; then
11797   ipv6_cv_sa_len=yes
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 ipv6_cv_sa_len=no
11803 fi
11804 rm -f conftest.$ac_objext conftest.$ac_ext
11805 fi
11806 if test $ipv6_cv_sa_len = yes; then
11807
11808 cat >>confdefs.h <<\_ACEOF
11809 #define HAVE_SOCKADDR_SA_LEN
11810 _ACEOF
11811
11812 else
11813   :
11814 fi
11815 echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
11816 echo "${ECHO_T}$ipv6_cv_sa_len" >&6
11817
11818 echo "$as_me:$LINENO: checking for socklen_t" >&5
11819 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11820 if test "${ipv6_cv_socklen_t+set}" = set; then
11821   echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823   cat >conftest.$ac_ext <<_ACEOF
11824 #line $LINENO "configure"
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830 #include <sys/types.h>
11831 #include <sys/socket.h>
11832 int
11833 main ()
11834 {
11835 socklen_t len = 0;
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842   (eval $ac_link) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } &&
11846          { ac_try='test -s conftest$ac_exeext'
11847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848   (eval $ac_try) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; }; then
11852   ipv6_cv_socklen_t=yes
11853 else
11854   echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857 ipv6_cv_socklen_t=no
11858 fi
11859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11860 fi
11861 if test $ipv6_cv_socklen_t = yes; then
11862
11863 cat >>confdefs.h <<\_ACEOF
11864 #define HAVE_SOCKLEN_T
11865 _ACEOF
11866
11867 else
11868   :
11869 fi
11870 echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
11871 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6
11872
11873 cat >conftest.$ac_ext <<_ACEOF
11874 #line $LINENO "configure"
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880 #include <sys/socket.h>
11881
11882 _ACEOF
11883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11884   $EGREP "sockaddr_storage" >/dev/null 2>&1; then
11885
11886 cat >>confdefs.h <<\_ACEOF
11887 #define HAVE_STRUCT_SOCKADDR_STORAGE
11888 _ACEOF
11889
11890 fi
11891 rm -f conftest*
11892
11893
11894
11895
11896
11897
11898
11899
11900           ac_config_headers="$ac_config_headers saslauthd.h"
11901
11902
11903           ac_config_files="$ac_config_files Makefile"
11904 cat >confcache <<\_ACEOF
11905 # This file is a shell script that caches the results of configure
11906 # tests run on this system so they can be shared between configure
11907 # scripts and configure runs, see configure's option --config-cache.
11908 # It is not useful on other systems.  If it contains results you don't
11909 # want to keep, you may remove or edit it.
11910 #
11911 # config.status only pays attention to the cache file if you give it
11912 # the --recheck option to rerun configure.
11913 #
11914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11916 # following values.
11917
11918 _ACEOF
11919
11920 # The following way of writing the cache mishandles newlines in values,
11921 # but we know of no workaround that is simple, portable, and efficient.
11922 # So, don't put newlines in cache variables' values.
11923 # Ultrix sh set writes to stderr and can't be redirected directly,
11924 # and sets the high bit in the cache file unless we assign to the vars.
11925 {
11926   (set) 2>&1 |
11927     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11928     *ac_space=\ *)
11929       # `set' does not quote correctly, so add quotes (double-quote
11930       # substitution turns \\\\ into \\, and sed turns \\ into \).
11931       sed -n \
11932         "s/'/'\\\\''/g;
11933           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11934       ;;
11935     *)
11936       # `set' quotes correctly as required by POSIX, so do not add quotes.
11937       sed -n \
11938         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11939       ;;
11940     esac;
11941 } |
11942   sed '
11943      t clear
11944      : clear
11945      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11946      t end
11947      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11948      : end' >>confcache
11949 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11950   if test -w $cache_file; then
11951     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11952     cat confcache >$cache_file
11953   else
11954     echo "not updating unwritable cache $cache_file"
11955   fi
11956 fi
11957 rm -f confcache
11958
11959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11960 # Let make expand exec_prefix.
11961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11962
11963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11965 # trailing colons and then remove the whole line if VPATH becomes empty
11966 # (actually we leave an empty line to preserve line numbers).
11967 if test "x$srcdir" = x.; then
11968   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11969 s/:*\$(srcdir):*/:/;
11970 s/:*\${srcdir}:*/:/;
11971 s/:*@srcdir@:*/:/;
11972 s/^\([^=]*=[    ]*\):*/\1/;
11973 s/:*$//;
11974 s/^[^=]*=[      ]*$//;
11975 }'
11976 fi
11977
11978 DEFS=-DHAVE_CONFIG_H
11979
11980 ac_libobjs=
11981 ac_ltlibobjs=
11982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11983   # 1. Remove the extension, and $U if already installed.
11984   ac_i=`echo "$ac_i" |
11985          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11986   # 2. Add them.
11987   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11988   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11989 done
11990 LIBOBJS=$ac_libobjs
11991
11992 LTLIBOBJS=$ac_ltlibobjs
11993
11994
11995 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
11996   { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
11997 Usually this means the macro was only invoked conditionally." >&5
11998 echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
11999 Usually this means the macro was only invoked conditionally." >&2;}
12000    { (exit 1); exit 1; }; }
12001 fi
12002 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12003   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12004 Usually this means the macro was only invoked conditionally." >&5
12005 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12006 Usually this means the macro was only invoked conditionally." >&2;}
12007    { (exit 1); exit 1; }; }
12008 fi
12009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12010   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12011 Usually this means the macro was only invoked conditionally." >&5
12012 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12013 Usually this means the macro was only invoked conditionally." >&2;}
12014    { (exit 1); exit 1; }; }
12015 fi
12016
12017 : ${CONFIG_STATUS=./config.status}
12018 ac_clean_files_save=$ac_clean_files
12019 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12020 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12021 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12022 cat >$CONFIG_STATUS <<_ACEOF
12023 #! $SHELL
12024 # Generated by $as_me.
12025 # Run this file to recreate the current configuration.
12026 # Compiler output produced by configure, useful for debugging
12027 # configure, is in config.log if it exists.
12028
12029 debug=false
12030 ac_cs_recheck=false
12031 ac_cs_silent=false
12032 SHELL=\${CONFIG_SHELL-$SHELL}
12033 _ACEOF
12034
12035 cat >>$CONFIG_STATUS <<\_ACEOF
12036 ## --------------------- ##
12037 ## M4sh Initialization.  ##
12038 ## --------------------- ##
12039
12040 # Be Bourne compatible
12041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12042   emulate sh
12043   NULLCMD=:
12044   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12045   # is contrary to our usage.  Disable this feature.
12046   alias -g '${1+"$@"}'='"$@"'
12047 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12048   set -o posix
12049 fi
12050
12051 # Support unset when possible.
12052 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12053   as_unset=unset
12054 else
12055   as_unset=false
12056 fi
12057
12058
12059 # Work around bugs in pre-3.0 UWIN ksh.
12060 $as_unset ENV MAIL MAILPATH
12061 PS1='$ '
12062 PS2='> '
12063 PS4='+ '
12064
12065 # NLS nuisances.
12066 for as_var in \
12067   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12068   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12069   LC_TELEPHONE LC_TIME
12070 do
12071   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12072     eval $as_var=C; export $as_var
12073   else
12074     $as_unset $as_var
12075   fi
12076 done
12077
12078 # Required to use basename.
12079 if expr a : '\(a\)' >/dev/null 2>&1; then
12080   as_expr=expr
12081 else
12082   as_expr=false
12083 fi
12084
12085 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12086   as_basename=basename
12087 else
12088   as_basename=false
12089 fi
12090
12091
12092 # Name of the executable.
12093 as_me=`$as_basename "$0" ||
12094 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12095          X"$0" : 'X\(//\)$' \| \
12096          X"$0" : 'X\(/\)$' \| \
12097          .     : '\(.\)' 2>/dev/null ||
12098 echo X/"$0" |
12099     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12100           /^X\/\(\/\/\)$/{ s//\1/; q; }
12101           /^X\/\(\/\).*/{ s//\1/; q; }
12102           s/.*/./; q'`
12103
12104
12105 # PATH needs CR, and LINENO needs CR and PATH.
12106 # Avoid depending upon Character Ranges.
12107 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12108 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12109 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12110 as_cr_digits='0123456789'
12111 as_cr_alnum=$as_cr_Letters$as_cr_digits
12112
12113 # The user is always right.
12114 if test "${PATH_SEPARATOR+set}" != set; then
12115   echo "#! /bin/sh" >conf$$.sh
12116   echo  "exit 0"   >>conf$$.sh
12117   chmod +x conf$$.sh
12118   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12119     PATH_SEPARATOR=';'
12120   else
12121     PATH_SEPARATOR=:
12122   fi
12123   rm -f conf$$.sh
12124 fi
12125
12126
12127   as_lineno_1=$LINENO
12128   as_lineno_2=$LINENO
12129   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12130   test "x$as_lineno_1" != "x$as_lineno_2" &&
12131   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12132   # Find who we are.  Look in the path if we contain no path at all
12133   # relative or not.
12134   case $0 in
12135     *[\\/]* ) as_myself=$0 ;;
12136     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12138 do
12139   IFS=$as_save_IFS
12140   test -z "$as_dir" && as_dir=.
12141   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12142 done
12143
12144        ;;
12145   esac
12146   # We did not find ourselves, most probably we were run as `sh COMMAND'
12147   # in which case we are not to be found in the path.
12148   if test "x$as_myself" = x; then
12149     as_myself=$0
12150   fi
12151   if test ! -f "$as_myself"; then
12152     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12153 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12154    { (exit 1); exit 1; }; }
12155   fi
12156   case $CONFIG_SHELL in
12157   '')
12158     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12160 do
12161   IFS=$as_save_IFS
12162   test -z "$as_dir" && as_dir=.
12163   for as_base in sh bash ksh sh5; do
12164          case $as_dir in
12165          /*)
12166            if ("$as_dir/$as_base" -c '
12167   as_lineno_1=$LINENO
12168   as_lineno_2=$LINENO
12169   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12170   test "x$as_lineno_1" != "x$as_lineno_2" &&
12171   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12172              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12173              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12174              CONFIG_SHELL=$as_dir/$as_base
12175              export CONFIG_SHELL
12176              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12177            fi;;
12178          esac
12179        done
12180 done
12181 ;;
12182   esac
12183
12184   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12185   # uniformly replaced by the line number.  The first 'sed' inserts a
12186   # line-number line before each line; the second 'sed' does the real
12187   # work.  The second script uses 'N' to pair each line-number line
12188   # with the numbered line, and appends trailing '-' during
12189   # substitution so that $LINENO is not a special case at line end.
12190   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12191   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12192   sed '=' <$as_myself |
12193     sed '
12194       N
12195       s,$,-,
12196       : loop
12197       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12198       t loop
12199       s,-$,,
12200       s,^['$as_cr_digits']*\n,,
12201     ' >$as_me.lineno &&
12202   chmod +x $as_me.lineno ||
12203     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12204 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12205    { (exit 1); exit 1; }; }
12206
12207   # Don't try to exec as it changes $[0], causing all sort of problems
12208   # (the dirname of $[0] is not the place where we might find the
12209   # original and so on.  Autoconf is especially sensible to this).
12210   . ./$as_me.lineno
12211   # Exit status is that of the last command.
12212   exit
12213 }
12214
12215
12216 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12217   *c*,-n*) ECHO_N= ECHO_C='
12218 ' ECHO_T='      ' ;;
12219   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12220   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12221 esac
12222
12223 if expr a : '\(a\)' >/dev/null 2>&1; then
12224   as_expr=expr
12225 else
12226   as_expr=false
12227 fi
12228
12229 rm -f conf$$ conf$$.exe conf$$.file
12230 echo >conf$$.file
12231 if ln -s conf$$.file conf$$ 2>/dev/null; then
12232   # We could just check for DJGPP; but this test a) works b) is more generic
12233   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12234   if test -f conf$$.exe; then
12235     # Don't use ln at all; we don't have any links
12236     as_ln_s='cp -p'
12237   else
12238     as_ln_s='ln -s'
12239   fi
12240 elif ln conf$$.file conf$$ 2>/dev/null; then
12241   as_ln_s=ln
12242 else
12243   as_ln_s='cp -p'
12244 fi
12245 rm -f conf$$ conf$$.exe conf$$.file
12246
12247 if mkdir -p . 2>/dev/null; then
12248   as_mkdir_p=:
12249 else
12250   as_mkdir_p=false
12251 fi
12252
12253 as_executable_p="test -f"
12254
12255 # Sed expression to map a string onto a valid CPP name.
12256 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12257
12258 # Sed expression to map a string onto a valid variable name.
12259 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12260
12261
12262 # IFS
12263 # We need space, tab and new line, in precisely that order.
12264 as_nl='
12265 '
12266 IFS="   $as_nl"
12267
12268 # CDPATH.
12269 $as_unset CDPATH
12270
12271 exec 6>&1
12272
12273 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12274 # report actual input values of CONFIG_FILES etc. instead of their
12275 # values after options handling.  Logging --version etc. is OK.
12276 exec 5>>config.log
12277 {
12278   echo
12279   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12280 ## Running $as_me. ##
12281 _ASBOX
12282 } >&5
12283 cat >&5 <<_CSEOF
12284
12285 This file was extended by $as_me, which was
12286 generated by GNU Autoconf 2.57.  Invocation command line was
12287
12288   CONFIG_FILES    = $CONFIG_FILES
12289   CONFIG_HEADERS  = $CONFIG_HEADERS
12290   CONFIG_LINKS    = $CONFIG_LINKS
12291   CONFIG_COMMANDS = $CONFIG_COMMANDS
12292   $ $0 $@
12293
12294 _CSEOF
12295 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12296 echo >&5
12297 _ACEOF
12298
12299 # Files that config.status was made for.
12300 if test -n "$ac_config_files"; then
12301   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12302 fi
12303
12304 if test -n "$ac_config_headers"; then
12305   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12306 fi
12307
12308 if test -n "$ac_config_links"; then
12309   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12310 fi
12311
12312 if test -n "$ac_config_commands"; then
12313   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12314 fi
12315
12316 cat >>$CONFIG_STATUS <<\_ACEOF
12317
12318 ac_cs_usage="\
12319 \`$as_me' instantiates files from templates according to the
12320 current configuration.
12321
12322 Usage: $0 [OPTIONS] [FILE]...
12323
12324   -h, --help       print this help, then exit
12325   -V, --version    print version number, then exit
12326   -q, --quiet      do not print progress messages
12327   -d, --debug      don't remove temporary files
12328       --recheck    update $as_me by reconfiguring in the same conditions
12329   --file=FILE[:TEMPLATE]
12330                    instantiate the configuration file FILE
12331   --header=FILE[:TEMPLATE]
12332                    instantiate the configuration header FILE
12333
12334 Configuration files:
12335 $config_files
12336
12337 Configuration headers:
12338 $config_headers
12339
12340 Configuration commands:
12341 $config_commands
12342
12343 Report bugs to <bug-autoconf@gnu.org>."
12344 _ACEOF
12345
12346 cat >>$CONFIG_STATUS <<_ACEOF
12347 ac_cs_version="\\
12348 config.status
12349 configured by $0, generated by GNU Autoconf 2.57,
12350   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12351
12352 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12353 Free Software Foundation, Inc.
12354 This config.status script is free software; the Free Software Foundation
12355 gives unlimited permission to copy, distribute and modify it."
12356 srcdir=$srcdir
12357 INSTALL="$INSTALL"
12358 _ACEOF
12359
12360 cat >>$CONFIG_STATUS <<\_ACEOF
12361 # If no file are specified by the user, then we need to provide default
12362 # value.  By we need to know if files were specified by the user.
12363 ac_need_defaults=:
12364 while test $# != 0
12365 do
12366   case $1 in
12367   --*=*)
12368     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12369     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12370     ac_shift=:
12371     ;;
12372   -*)
12373     ac_option=$1
12374     ac_optarg=$2
12375     ac_shift=shift
12376     ;;
12377   *) # This is not an option, so the user has probably given explicit
12378      # arguments.
12379      ac_option=$1
12380      ac_need_defaults=false;;
12381   esac
12382
12383   case $ac_option in
12384   # Handling of the options.
12385 _ACEOF
12386 cat >>$CONFIG_STATUS <<\_ACEOF
12387   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12388     ac_cs_recheck=: ;;
12389   --version | --vers* | -V )
12390     echo "$ac_cs_version"; exit 0 ;;
12391   --he | --h)
12392     # Conflict between --help and --header
12393     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12394 Try \`$0 --help' for more information." >&5
12395 echo "$as_me: error: ambiguous option: $1
12396 Try \`$0 --help' for more information." >&2;}
12397    { (exit 1); exit 1; }; };;
12398   --help | --hel | -h )
12399     echo "$ac_cs_usage"; exit 0 ;;
12400   --debug | --d* | -d )
12401     debug=: ;;
12402   --file | --fil | --fi | --f )
12403     $ac_shift
12404     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12405     ac_need_defaults=false;;
12406   --header | --heade | --head | --hea )
12407     $ac_shift
12408     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12409     ac_need_defaults=false;;
12410   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12411   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12412     ac_cs_silent=: ;;
12413
12414   # This is an error.
12415   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12416 Try \`$0 --help' for more information." >&5
12417 echo "$as_me: error: unrecognized option: $1
12418 Try \`$0 --help' for more information." >&2;}
12419    { (exit 1); exit 1; }; } ;;
12420
12421   *) ac_config_targets="$ac_config_targets $1" ;;
12422
12423   esac
12424   shift
12425 done
12426
12427 ac_configure_extra_args=
12428
12429 if $ac_cs_silent; then
12430   exec 6>/dev/null
12431   ac_configure_extra_args="$ac_configure_extra_args --silent"
12432 fi
12433
12434 _ACEOF
12435 cat >>$CONFIG_STATUS <<_ACEOF
12436 if \$ac_cs_recheck; then
12437   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12438   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12439 fi
12440
12441 _ACEOF
12442
12443 cat >>$CONFIG_STATUS <<_ACEOF
12444 #
12445 # INIT-COMMANDS section.
12446 #
12447
12448 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12449
12450 _ACEOF
12451
12452
12453
12454 cat >>$CONFIG_STATUS <<\_ACEOF
12455 for ac_config_target in $ac_config_targets
12456 do
12457   case "$ac_config_target" in
12458   # Handling of arguments.
12459   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12460   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12461   "saslauthd.h" ) CONFIG_HEADERS="$CONFIG_HEADERS saslauthd.h" ;;
12462   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12463 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12464    { (exit 1); exit 1; }; };;
12465   esac
12466 done
12467
12468 # If the user did not use the arguments to specify the items to instantiate,
12469 # then the envvar interface is used.  Set only those that are not.
12470 # We use the long form for the default assignment because of an extremely
12471 # bizarre bug on SunOS 4.1.3.
12472 if $ac_need_defaults; then
12473   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12474   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12475   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12476 fi
12477
12478 # Have a temporary directory for convenience.  Make it in the build tree
12479 # simply because there is no reason to put it here, and in addition,
12480 # creating and moving files from /tmp can sometimes cause problems.
12481 # Create a temporary directory, and hook for its removal unless debugging.
12482 $debug ||
12483 {
12484   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12485   trap '{ (exit 1); exit 1; }' 1 2 13 15
12486 }
12487
12488 # Create a (secure) tmp directory for tmp files.
12489
12490 {
12491   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12492   test -n "$tmp" && test -d "$tmp"
12493 }  ||
12494 {
12495   tmp=./confstat$$-$RANDOM
12496   (umask 077 && mkdir $tmp)
12497 } ||
12498 {
12499    echo "$me: cannot create a temporary directory in ." >&2
12500    { (exit 1); exit 1; }
12501 }
12502
12503 _ACEOF
12504
12505 cat >>$CONFIG_STATUS <<_ACEOF
12506
12507 #
12508 # CONFIG_FILES section.
12509 #
12510
12511 # No need to generate the scripts if there are no CONFIG_FILES.
12512 # This happens for instance when ./config.status config.h
12513 if test -n "\$CONFIG_FILES"; then
12514   # Protect against being on the right side of a sed subst in config.status.
12515   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12516    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12517 s,@SHELL@,$SHELL,;t t
12518 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12519 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12520 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12521 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12522 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12523 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12524 s,@exec_prefix@,$exec_prefix,;t t
12525 s,@prefix@,$prefix,;t t
12526 s,@program_transform_name@,$program_transform_name,;t t
12527 s,@bindir@,$bindir,;t t
12528 s,@sbindir@,$sbindir,;t t
12529 s,@libexecdir@,$libexecdir,;t t
12530 s,@datadir@,$datadir,;t t
12531 s,@sysconfdir@,$sysconfdir,;t t
12532 s,@sharedstatedir@,$sharedstatedir,;t t
12533 s,@localstatedir@,$localstatedir,;t t
12534 s,@libdir@,$libdir,;t t
12535 s,@includedir@,$includedir,;t t
12536 s,@oldincludedir@,$oldincludedir,;t t
12537 s,@infodir@,$infodir,;t t
12538 s,@mandir@,$mandir,;t t
12539 s,@build_alias@,$build_alias,;t t
12540 s,@host_alias@,$host_alias,;t t
12541 s,@target_alias@,$target_alias,;t t
12542 s,@DEFS@,$DEFS,;t t
12543 s,@ECHO_C@,$ECHO_C,;t t
12544 s,@ECHO_N@,$ECHO_N,;t t
12545 s,@ECHO_T@,$ECHO_T,;t t
12546 s,@LIBS@,$LIBS,;t t
12547 s,@build@,$build,;t t
12548 s,@build_cpu@,$build_cpu,;t t
12549 s,@build_vendor@,$build_vendor,;t t
12550 s,@build_os@,$build_os,;t t
12551 s,@host@,$host,;t t
12552 s,@host_cpu@,$host_cpu,;t t
12553 s,@host_vendor@,$host_vendor,;t t
12554 s,@host_os@,$host_os,;t t
12555 s,@SASLAUTHD_TRUE@,$SASLAUTHD_TRUE,;t t
12556 s,@SASLAUTHD_FALSE@,$SASLAUTHD_FALSE,;t t
12557 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12558 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12559 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12560 s,@CYGPATH_W@,$CYGPATH_W,;t t
12561 s,@PACKAGE@,$PACKAGE,;t t
12562 s,@VERSION@,$VERSION,;t t
12563 s,@ACLOCAL@,$ACLOCAL,;t t
12564 s,@AUTOCONF@,$AUTOCONF,;t t
12565 s,@AUTOMAKE@,$AUTOMAKE,;t t
12566 s,@AUTOHEADER@,$AUTOHEADER,;t t
12567 s,@MAKEINFO@,$MAKEINFO,;t t
12568 s,@AMTAR@,$AMTAR,;t t
12569 s,@install_sh@,$install_sh,;t t
12570 s,@STRIP@,$STRIP,;t t
12571 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12572 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12573 s,@AWK@,$AWK,;t t
12574 s,@SET_MAKE@,$SET_MAKE,;t t
12575 s,@am__leading_dot@,$am__leading_dot,;t t
12576 s,@CC@,$CC,;t t
12577 s,@CFLAGS@,$CFLAGS,;t t
12578 s,@LDFLAGS@,$LDFLAGS,;t t
12579 s,@CPPFLAGS@,$CPPFLAGS,;t t
12580 s,@ac_ct_CC@,$ac_ct_CC,;t t
12581 s,@EXEEXT@,$EXEEXT,;t t
12582 s,@OBJEXT@,$OBJEXT,;t t
12583 s,@DEPDIR@,$DEPDIR,;t t
12584 s,@am__include@,$am__include,;t t
12585 s,@am__quote@,$am__quote,;t t
12586 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12587 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12588 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12589 s,@CCDEPMODE@,$CCDEPMODE,;t t
12590 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12591 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12592 s,@CPP@,$CPP,;t t
12593 s,@LN_S@,$LN_S,;t t
12594 s,@LIB_SOCKET@,$LIB_SOCKET,;t t
12595 s,@EGREP@,$EGREP,;t t
12596 s,@CMU_LIB_SUBDIR@,$CMU_LIB_SUBDIR,;t t
12597 s,@LIB_DES@,$LIB_DES,;t t
12598 s,@SASL_KRB_LIB@,$SASL_KRB_LIB,;t t
12599 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
12600 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
12601 s,@GSSAPIBASE_LIBS@,$GSSAPIBASE_LIBS,;t t
12602 s,@LIB_SIA@,$LIB_SIA,;t t
12603 s,@SASL_DB_UTILS@,$SASL_DB_UTILS,;t t
12604 s,@SASL_DB_MANS@,$SASL_DB_MANS,;t t
12605 s,@SASL_DB_BACKEND@,$SASL_DB_BACKEND,;t t
12606 s,@SASL_DB_BACKEND_STATIC@,$SASL_DB_BACKEND_STATIC,;t t
12607 s,@SASL_DB_INC@,$SASL_DB_INC,;t t
12608 s,@SASL_DB_LIB@,$SASL_DB_LIB,;t t
12609 s,@MAIN_COMPAT_OBJ@,$MAIN_COMPAT_OBJ,;t t
12610 s,@LIB_PAM@,$LIB_PAM,;t t
12611 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
12612 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12613 s,@LIBOBJS@,$LIBOBJS,;t t
12614 CEOF
12615
12616 _ACEOF
12617
12618   cat >>$CONFIG_STATUS <<\_ACEOF
12619   # Split the substitutions into bite-sized pieces for seds with
12620   # small command number limits, like on Digital OSF/1 and HP-UX.
12621   ac_max_sed_lines=48
12622   ac_sed_frag=1 # Number of current file.
12623   ac_beg=1 # First line for current file.
12624   ac_end=$ac_max_sed_lines # Line after last line for current file.
12625   ac_more_lines=:
12626   ac_sed_cmds=
12627   while $ac_more_lines; do
12628     if test $ac_beg -gt 1; then
12629       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12630     else
12631       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12632     fi
12633     if test ! -s $tmp/subs.frag; then
12634       ac_more_lines=false
12635     else
12636       # The purpose of the label and of the branching condition is to
12637       # speed up the sed processing (if there are no `@' at all, there
12638       # is no need to browse any of the substitutions).
12639       # These are the two extra sed commands mentioned above.
12640       (echo ':t
12641   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12642       if test -z "$ac_sed_cmds"; then
12643         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12644       else
12645         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12646       fi
12647       ac_sed_frag=`expr $ac_sed_frag + 1`
12648       ac_beg=$ac_end
12649       ac_end=`expr $ac_end + $ac_max_sed_lines`
12650     fi
12651   done
12652   if test -z "$ac_sed_cmds"; then
12653     ac_sed_cmds=cat
12654   fi
12655 fi # test -n "$CONFIG_FILES"
12656
12657 _ACEOF
12658 cat >>$CONFIG_STATUS <<\_ACEOF
12659 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12660   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12661   case $ac_file in
12662   - | *:- | *:-:* ) # input from stdin
12663         cat >$tmp/stdin
12664         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12665         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12666   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12668   * )   ac_file_in=$ac_file.in ;;
12669   esac
12670
12671   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12672   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12674          X"$ac_file" : 'X\(//\)[^/]' \| \
12675          X"$ac_file" : 'X\(//\)$' \| \
12676          X"$ac_file" : 'X\(/\)' \| \
12677          .     : '\(.\)' 2>/dev/null ||
12678 echo X"$ac_file" |
12679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12681           /^X\(\/\/\)$/{ s//\1/; q; }
12682           /^X\(\/\).*/{ s//\1/; q; }
12683           s/.*/./; q'`
12684   { if $as_mkdir_p; then
12685     mkdir -p "$ac_dir"
12686   else
12687     as_dir="$ac_dir"
12688     as_dirs=
12689     while test ! -d "$as_dir"; do
12690       as_dirs="$as_dir $as_dirs"
12691       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12693          X"$as_dir" : 'X\(//\)[^/]' \| \
12694          X"$as_dir" : 'X\(//\)$' \| \
12695          X"$as_dir" : 'X\(/\)' \| \
12696          .     : '\(.\)' 2>/dev/null ||
12697 echo X"$as_dir" |
12698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12699           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12700           /^X\(\/\/\)$/{ s//\1/; q; }
12701           /^X\(\/\).*/{ s//\1/; q; }
12702           s/.*/./; q'`
12703     done
12704     test ! -n "$as_dirs" || mkdir $as_dirs
12705   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12706 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12707    { (exit 1); exit 1; }; }; }
12708
12709   ac_builddir=.
12710
12711 if test "$ac_dir" != .; then
12712   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12713   # A "../" for each directory in $ac_dir_suffix.
12714   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12715 else
12716   ac_dir_suffix= ac_top_builddir=
12717 fi
12718
12719 case $srcdir in
12720   .)  # No --srcdir option.  We are building in place.
12721     ac_srcdir=.
12722     if test -z "$ac_top_builddir"; then
12723        ac_top_srcdir=.
12724     else
12725        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12726     fi ;;
12727   [\\/]* | ?:[\\/]* )  # Absolute path.
12728     ac_srcdir=$srcdir$ac_dir_suffix;
12729     ac_top_srcdir=$srcdir ;;
12730   *) # Relative path.
12731     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12732     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12733 esac
12734 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12735 # absolute.
12736 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12737 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12738 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12739 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12740
12741
12742   case $INSTALL in
12743   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12744   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12745   esac
12746
12747   if test x"$ac_file" != x-; then
12748     { echo "$as_me:$LINENO: creating $ac_file" >&5
12749 echo "$as_me: creating $ac_file" >&6;}
12750     rm -f "$ac_file"
12751   fi
12752   # Let's still pretend it is `configure' which instantiates (i.e., don't
12753   # use $as_me), people would be surprised to read:
12754   #    /* config.h.  Generated by config.status.  */
12755   if test x"$ac_file" = x-; then
12756     configure_input=
12757   else
12758     configure_input="$ac_file.  "
12759   fi
12760   configure_input=$configure_input"Generated from `echo $ac_file_in |
12761                                      sed 's,.*/,,'` by configure."
12762
12763   # First look for the input files in the build tree, otherwise in the
12764   # src tree.
12765   ac_file_inputs=`IFS=:
12766     for f in $ac_file_in; do
12767       case $f in
12768       -) echo $tmp/stdin ;;
12769       [\\/$]*)
12770          # Absolute (can't be DOS-style, as IFS=:)
12771          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12772 echo "$as_me: error: cannot find input file: $f" >&2;}
12773    { (exit 1); exit 1; }; }
12774          echo $f;;
12775       *) # Relative
12776          if test -f "$f"; then
12777            # Build tree
12778            echo $f
12779          elif test -f "$srcdir/$f"; then
12780            # Source tree
12781            echo $srcdir/$f
12782          else
12783            # /dev/null tree
12784            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12785 echo "$as_me: error: cannot find input file: $f" >&2;}
12786    { (exit 1); exit 1; }; }
12787          fi;;
12788       esac
12789     done` || { (exit 1); exit 1; }
12790 _ACEOF
12791 cat >>$CONFIG_STATUS <<_ACEOF
12792   sed "$ac_vpsub
12793 $extrasub
12794 _ACEOF
12795 cat >>$CONFIG_STATUS <<\_ACEOF
12796 :t
12797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12798 s,@configure_input@,$configure_input,;t t
12799 s,@srcdir@,$ac_srcdir,;t t
12800 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12801 s,@top_srcdir@,$ac_top_srcdir,;t t
12802 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12803 s,@builddir@,$ac_builddir,;t t
12804 s,@abs_builddir@,$ac_abs_builddir,;t t
12805 s,@top_builddir@,$ac_top_builddir,;t t
12806 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12807 s,@INSTALL@,$ac_INSTALL,;t t
12808 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12809   rm -f $tmp/stdin
12810   if test x"$ac_file" != x-; then
12811     mv $tmp/out $ac_file
12812   else
12813     cat $tmp/out
12814     rm -f $tmp/out
12815   fi
12816
12817 done
12818 _ACEOF
12819 cat >>$CONFIG_STATUS <<\_ACEOF
12820
12821 #
12822 # CONFIG_HEADER section.
12823 #
12824
12825 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12826 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12827 #
12828 # ac_d sets the value in "#define NAME VALUE" lines.
12829 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12830 ac_dB='[        ].*$,\1#\2'
12831 ac_dC=' '
12832 ac_dD=',;t'
12833 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12834 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12835 ac_uB='$,\1#\2define\3'
12836 ac_uC=' '
12837 ac_uD=',;t'
12838
12839 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12840   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12841   case $ac_file in
12842   - | *:- | *:-:* ) # input from stdin
12843         cat >$tmp/stdin
12844         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12845         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12846   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12847         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12848   * )   ac_file_in=$ac_file.in ;;
12849   esac
12850
12851   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12852 echo "$as_me: creating $ac_file" >&6;}
12853
12854   # First look for the input files in the build tree, otherwise in the
12855   # src tree.
12856   ac_file_inputs=`IFS=:
12857     for f in $ac_file_in; do
12858       case $f in
12859       -) echo $tmp/stdin ;;
12860       [\\/$]*)
12861          # Absolute (can't be DOS-style, as IFS=:)
12862          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12863 echo "$as_me: error: cannot find input file: $f" >&2;}
12864    { (exit 1); exit 1; }; }
12865          echo $f;;
12866       *) # Relative
12867          if test -f "$f"; then
12868            # Build tree
12869            echo $f
12870          elif test -f "$srcdir/$f"; then
12871            # Source tree
12872            echo $srcdir/$f
12873          else
12874            # /dev/null tree
12875            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12876 echo "$as_me: error: cannot find input file: $f" >&2;}
12877    { (exit 1); exit 1; }; }
12878          fi;;
12879       esac
12880     done` || { (exit 1); exit 1; }
12881   # Remove the trailing spaces.
12882   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12883
12884 _ACEOF
12885
12886 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12887 # `conftest.undefs', that substitutes the proper values into
12888 # config.h.in to produce config.h.  The first handles `#define'
12889 # templates, and the second `#undef' templates.
12890 # And first: Protect against being on the right side of a sed subst in
12891 # config.status.  Protect against being in an unquoted here document
12892 # in config.status.
12893 rm -f conftest.defines conftest.undefs
12894 # Using a here document instead of a string reduces the quoting nightmare.
12895 # Putting comments in sed scripts is not portable.
12896 #
12897 # `end' is used to avoid that the second main sed command (meant for
12898 # 0-ary CPP macros) applies to n-ary macro definitions.
12899 # See the Autoconf documentation for `clear'.
12900 cat >confdef2sed.sed <<\_ACEOF
12901 s/[\\&,]/\\&/g
12902 s,[\\$`],\\&,g
12903 t clear
12904 : clear
12905 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12906 t end
12907 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12908 : end
12909 _ACEOF
12910 # If some macros were called several times there might be several times
12911 # the same #defines, which is useless.  Nevertheless, we may not want to
12912 # sort them, since we want the *last* AC-DEFINE to be honored.
12913 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12914 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12915 rm -f confdef2sed.sed
12916
12917 # This sed command replaces #undef with comments.  This is necessary, for
12918 # example, in the case of _POSIX_SOURCE, which is predefined and required
12919 # on some systems where configure will not decide to define it.
12920 cat >>conftest.undefs <<\_ACEOF
12921 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12922 _ACEOF
12923
12924 # Break up conftest.defines because some shells have a limit on the size
12925 # of here documents, and old seds have small limits too (100 cmds).
12926 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12927 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12928 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12929 echo '  :' >>$CONFIG_STATUS
12930 rm -f conftest.tail
12931 while grep . conftest.defines >/dev/null
12932 do
12933   # Write a limited-size here document to $tmp/defines.sed.
12934   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12935   # Speed up: don't consider the non `#define' lines.
12936   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12937   # Work around the forget-to-reset-the-flag bug.
12938   echo 't clr' >>$CONFIG_STATUS
12939   echo ': clr' >>$CONFIG_STATUS
12940   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12941   echo 'CEOF
12942   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12943   rm -f $tmp/in
12944   mv $tmp/out $tmp/in
12945 ' >>$CONFIG_STATUS
12946   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12947   rm -f conftest.defines
12948   mv conftest.tail conftest.defines
12949 done
12950 rm -f conftest.defines
12951 echo '  fi # grep' >>$CONFIG_STATUS
12952 echo >>$CONFIG_STATUS
12953
12954 # Break up conftest.undefs because some shells have a limit on the size
12955 # of here documents, and old seds have small limits too (100 cmds).
12956 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12957 rm -f conftest.tail
12958 while grep . conftest.undefs >/dev/null
12959 do
12960   # Write a limited-size here document to $tmp/undefs.sed.
12961   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12962   # Speed up: don't consider the non `#undef'
12963   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12964   # Work around the forget-to-reset-the-flag bug.
12965   echo 't clr' >>$CONFIG_STATUS
12966   echo ': clr' >>$CONFIG_STATUS
12967   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12968   echo 'CEOF
12969   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12970   rm -f $tmp/in
12971   mv $tmp/out $tmp/in
12972 ' >>$CONFIG_STATUS
12973   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12974   rm -f conftest.undefs
12975   mv conftest.tail conftest.undefs
12976 done
12977 rm -f conftest.undefs
12978
12979 cat >>$CONFIG_STATUS <<\_ACEOF
12980   # Let's still pretend it is `configure' which instantiates (i.e., don't
12981   # use $as_me), people would be surprised to read:
12982   #    /* config.h.  Generated by config.status.  */
12983   if test x"$ac_file" = x-; then
12984     echo "/* Generated by configure.  */" >$tmp/config.h
12985   else
12986     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12987   fi
12988   cat $tmp/in >>$tmp/config.h
12989   rm -f $tmp/in
12990   if test x"$ac_file" != x-; then
12991     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12992       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12993 echo "$as_me: $ac_file is unchanged" >&6;}
12994     else
12995       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997          X"$ac_file" : 'X\(//\)[^/]' \| \
12998          X"$ac_file" : 'X\(//\)$' \| \
12999          X"$ac_file" : 'X\(/\)' \| \
13000          .     : '\(.\)' 2>/dev/null ||
13001 echo X"$ac_file" |
13002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13004           /^X\(\/\/\)$/{ s//\1/; q; }
13005           /^X\(\/\).*/{ s//\1/; q; }
13006           s/.*/./; q'`
13007       { if $as_mkdir_p; then
13008     mkdir -p "$ac_dir"
13009   else
13010     as_dir="$ac_dir"
13011     as_dirs=
13012     while test ! -d "$as_dir"; do
13013       as_dirs="$as_dir $as_dirs"
13014       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13016          X"$as_dir" : 'X\(//\)[^/]' \| \
13017          X"$as_dir" : 'X\(//\)$' \| \
13018          X"$as_dir" : 'X\(/\)' \| \
13019          .     : '\(.\)' 2>/dev/null ||
13020 echo X"$as_dir" |
13021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13022           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13023           /^X\(\/\/\)$/{ s//\1/; q; }
13024           /^X\(\/\).*/{ s//\1/; q; }
13025           s/.*/./; q'`
13026     done
13027     test ! -n "$as_dirs" || mkdir $as_dirs
13028   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13029 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13030    { (exit 1); exit 1; }; }; }
13031
13032       rm -f $ac_file
13033       mv $tmp/config.h $ac_file
13034     fi
13035   else
13036     cat $tmp/config.h
13037     rm -f $tmp/config.h
13038   fi
13039 # Compute $ac_file's index in $config_headers.
13040 _am_stamp_count=1
13041 for _am_header in $config_headers :; do
13042   case $_am_header in
13043     $ac_file | $ac_file:* )
13044       break ;;
13045     * )
13046       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13047   esac
13048 done
13049 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13050 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13051          X$ac_file : 'X\(//\)[^/]' \| \
13052          X$ac_file : 'X\(//\)$' \| \
13053          X$ac_file : 'X\(/\)' \| \
13054          .     : '\(.\)' 2>/dev/null ||
13055 echo X$ac_file |
13056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13057           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13058           /^X\(\/\/\)$/{ s//\1/; q; }
13059           /^X\(\/\).*/{ s//\1/; q; }
13060           s/.*/./; q'`/stamp-h$_am_stamp_count
13061 done
13062 _ACEOF
13063 cat >>$CONFIG_STATUS <<\_ACEOF
13064
13065 #
13066 # CONFIG_COMMANDS section.
13067 #
13068 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13069   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13070   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13071   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13072 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13073          X"$ac_dest" : 'X\(//\)[^/]' \| \
13074          X"$ac_dest" : 'X\(//\)$' \| \
13075          X"$ac_dest" : 'X\(/\)' \| \
13076          .     : '\(.\)' 2>/dev/null ||
13077 echo X"$ac_dest" |
13078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13080           /^X\(\/\/\)$/{ s//\1/; q; }
13081           /^X\(\/\).*/{ s//\1/; q; }
13082           s/.*/./; q'`
13083   ac_builddir=.
13084
13085 if test "$ac_dir" != .; then
13086   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13087   # A "../" for each directory in $ac_dir_suffix.
13088   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13089 else
13090   ac_dir_suffix= ac_top_builddir=
13091 fi
13092
13093 case $srcdir in
13094   .)  # No --srcdir option.  We are building in place.
13095     ac_srcdir=.
13096     if test -z "$ac_top_builddir"; then
13097        ac_top_srcdir=.
13098     else
13099        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13100     fi ;;
13101   [\\/]* | ?:[\\/]* )  # Absolute path.
13102     ac_srcdir=$srcdir$ac_dir_suffix;
13103     ac_top_srcdir=$srcdir ;;
13104   *) # Relative path.
13105     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13106     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13107 esac
13108 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13109 # absolute.
13110 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13111 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13112 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13113 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13114
13115
13116   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13117 echo "$as_me: executing $ac_dest commands" >&6;}
13118   case $ac_dest in
13119     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13120   # Strip MF so we end up with the name of the file.
13121   mf=`echo "$mf" | sed -e 's/:.*$//'`
13122   # Check whether this is an Automake generated Makefile or not.
13123   # We used to match only the files named `Makefile.in', but
13124   # some people rename them; so instead we look at the file content.
13125   # Grep'ing the first line is not enough: some people post-process
13126   # each Makefile.in and add a new line on top of each file to say so.
13127   # So let's grep whole file.
13128   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13129     dirpart=`(dirname "$mf") 2>/dev/null ||
13130 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13131          X"$mf" : 'X\(//\)[^/]' \| \
13132          X"$mf" : 'X\(//\)$' \| \
13133          X"$mf" : 'X\(/\)' \| \
13134          .     : '\(.\)' 2>/dev/null ||
13135 echo X"$mf" |
13136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13137           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13138           /^X\(\/\/\)$/{ s//\1/; q; }
13139           /^X\(\/\).*/{ s//\1/; q; }
13140           s/.*/./; q'`
13141   else
13142     continue
13143   fi
13144   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13145   # Extract the definition of DEP_FILES from the Makefile without
13146   # running `make'.
13147   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13148   test -z "$DEPDIR" && continue
13149   # When using ansi2knr, U may be empty or an underscore; expand it
13150   U=`sed -n -e '/^U = / s///p' < "$mf"`
13151   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13152   # We invoke sed twice because it is the simplest approach to
13153   # changing $(DEPDIR) to its actual value in the expansion.
13154   for file in `sed -n -e '
13155     /^DEP_FILES = .*\\\\$/ {
13156       s/^DEP_FILES = //
13157       :loop
13158         s/\\\\$//
13159         p
13160         n
13161         /\\\\$/ b loop
13162       p
13163     }
13164     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13165        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13166     # Make sure the directory exists.
13167     test -f "$dirpart/$file" && continue
13168     fdir=`(dirname "$file") 2>/dev/null ||
13169 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13170          X"$file" : 'X\(//\)[^/]' \| \
13171          X"$file" : 'X\(//\)$' \| \
13172          X"$file" : 'X\(/\)' \| \
13173          .     : '\(.\)' 2>/dev/null ||
13174 echo X"$file" |
13175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13176           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13177           /^X\(\/\/\)$/{ s//\1/; q; }
13178           /^X\(\/\).*/{ s//\1/; q; }
13179           s/.*/./; q'`
13180     { if $as_mkdir_p; then
13181     mkdir -p $dirpart/$fdir
13182   else
13183     as_dir=$dirpart/$fdir
13184     as_dirs=
13185     while test ! -d "$as_dir"; do
13186       as_dirs="$as_dir $as_dirs"
13187       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13189          X"$as_dir" : 'X\(//\)[^/]' \| \
13190          X"$as_dir" : 'X\(//\)$' \| \
13191          X"$as_dir" : 'X\(/\)' \| \
13192          .     : '\(.\)' 2>/dev/null ||
13193 echo X"$as_dir" |
13194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13195           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13196           /^X\(\/\/\)$/{ s//\1/; q; }
13197           /^X\(\/\).*/{ s//\1/; q; }
13198           s/.*/./; q'`
13199     done
13200     test ! -n "$as_dirs" || mkdir $as_dirs
13201   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13202 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13203    { (exit 1); exit 1; }; }; }
13204
13205     # echo "creating $dirpart/$file"
13206     echo '# dummy' > "$dirpart/$file"
13207   done
13208 done
13209  ;;
13210   esac
13211 done
13212 _ACEOF
13213
13214 cat >>$CONFIG_STATUS <<\_ACEOF
13215
13216 { (exit 0); exit 0; }
13217 _ACEOF
13218 chmod +x $CONFIG_STATUS
13219 ac_clean_files=$ac_clean_files_save
13220
13221
13222 # configure is writing to config.log, and then calls config.status.
13223 # config.status does its own redirection, appending to config.log.
13224 # Unfortunately, on DOS this fails, as config.log is still kept open
13225 # by configure, so config.status won't be able to write to it; its
13226 # output is simply discarded.  So we exec the FD to /dev/null,
13227 # effectively closing config.log, so it can be properly (re)opened and
13228 # appended to by config.status.  When coming back to configure, we
13229 # need to make the FD available again.
13230 if test "$no_create" != yes; then
13231   ac_cs_success=:
13232   ac_config_status_args=
13233   test "$silent" = yes &&
13234     ac_config_status_args="$ac_config_status_args --quiet"
13235   exec 5>/dev/null
13236   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13237   exec 5>>config.log
13238   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13239   # would make configure fail if this is the last instruction.
13240   $ac_cs_success || { (exit 1); exit 1; }
13241 fi
13242