2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
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"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
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`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
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}
266 # Identity of this package.
273 ac_unique_file="mechanisms.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
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'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
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'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
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 ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
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" ;;
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'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
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 ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
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 ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
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'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
608 # Obsolete; use --with-x.
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 ;;
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 ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
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
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
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.
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
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
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 ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
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; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
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}
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
774 # Report the --help message.
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.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
787 Defaults for the options are specified in brackets.
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 \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
814 For better control, use the options below.
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]
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
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
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]
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
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>
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.
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
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'`
904 ac_dir_suffix= ac_top_builddir=
908 .) # No --srcdir option. We are building in place.
910 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
930 # Check for guested configure; otherwise get Cygnus style configure.
931 if test -f $ac_srcdir/configure.gnu; then
933 $SHELL $ac_srcdir/configure.gnu --help=recursive
934 elif test -f $ac_srcdir/configure; then
936 $SHELL $ac_srcdir/configure --help=recursive
937 elif test -f $ac_srcdir/configure.ac ||
938 test -f $ac_srcdir/configure.in; then
942 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
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.
961 This file contains any messages produced by compilers while
962 running configure, to aid debugging if configure makes a mistake.
964 It was created by $as_me, which was
965 generated by GNU Autoconf 2.57. Invocation command line was
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`
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`
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`
995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
999 test -z "$as_dir" && as_dir=.
1000 echo "PATH: $as_dir"
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.
1024 ac_must_keep_next=false
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)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1053 -* ) ac_must_keep_next=true ;;
1056 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1057 # Get rid of the leading space.
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; }
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.
1077 ## ---------------- ##
1078 ## Cache variables. ##
1079 ## ---------------- ##
1082 # The following way of writing the cache mishandles newlines in values,
1085 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1088 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1093 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100 ## ----------------- ##
1101 ## Output variables. ##
1102 ## ----------------- ##
1105 for ac_var in $ac_subst_vars
1107 eval ac_val=$`echo $ac_var`
1108 echo "$ac_var='"'"'$ac_val'"'"'"
1112 if test -n "$ac_subst_files"; then
1119 for ac_var in $ac_subst_files
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1127 if test -s confdefs.h; then
1134 sed "/^$/d" confdefs.h | sort
1137 test "$ac_signal" != 0 &&
1138 echo "$as_me: caught signal $ac_signal"
1139 echo "$as_me: exit $exit_status"
1141 rm -f core core.* *.core &&
1142 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1145 for ac_signal in 1 2 13 15; do
1146 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1155 # Predefined preprocessor variables.
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_NAME "$PACKAGE_NAME"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_STRING "$PACKAGE_STRING"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1188 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
1207 [\\/]* | ?:[\\/]* ) . $cache_file;;
1208 *) . ./$cache_file;;
1212 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1213 echo "$as_me: creating cache $cache_file" >&6;}
1217 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1247 # Pass precious variables to config.status.
1248 if test "$ac_new_set" = set; then
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1295 for ac_dir in config $srcdir/config; do
1296 if test -f $ac_dir/install-sh; then
1298 ac_install_sh="$ac_aux_dir/install-sh -c"
1300 elif test -f $ac_dir/install.sh; then
1302 ac_install_sh="$ac_aux_dir/install.sh -c"
1304 elif test -f $ac_dir/shtool; then
1306 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
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; }; }
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
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; }; }
1343 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1344 echo "${ECHO_T}$ac_cv_build" >&6
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/'`
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
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; }; }
1365 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1366 echo "${ECHO_T}$ac_cv_host" >&6
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/'`
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
1382 if test "$with_saslauthd" = yes; then
1383 with_saslauthd="/var/state/saslauthd"
1386 cat >>confdefs.h <<\_ACEOF
1387 #define HAVE_SASLAUTHD
1391 cat >>confdefs.h <<_ACEOF
1392 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
1397 if test "$with_saslauthd" != no; then
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
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
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 test -z "$as_dir" && as_dir=.
1430 # Account for people who put trailing slashes in PATH elements.
1432 ./ | .// | /cC/* | \
1433 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
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
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.
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.
1451 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1463 if test "${ac_cv_path_install+set}" = set; then
1464 INSTALL=$ac_cv_path_install
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
1473 echo "$as_me:$LINENO: result: $INSTALL" >&5
1474 echo "${ECHO_T}$INSTALL" >&6
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}'
1480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
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
1495 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1496 if test "$*" = "X"; then
1498 set X `ls -t $srcdir/configure conftest.file`
1501 if test "$*" != "X $srcdir/configure conftest.file" \
1502 && test "$*" != "X conftest.file $srcdir/configure"; then
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; }; }
1515 test "$2" = conftest.file
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; }; }
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,$//
1539 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1543 # expand $ac_aux_dir to an absolute path
1544 am_aux_dir=`cd $ac_aux_dir && pwd`
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 "
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;}
1556 for ac_prog in gawk mawk nawk awk
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
1565 if test -n "$AWK"; then
1566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1585 if test -n "$AWK"; then
1586 echo "$as_me:$LINENO: result: $AWK" >&5
1587 echo "${ECHO_T}$AWK" >&6
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1593 test -n "$AWK" && break
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
1602 cat >conftest.make <<\_ACEOF
1604 @echo 'ac_maketemp="$(MAKE)"'
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
1611 eval ac_cv_prog_make_${ac_make}_set=no
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
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622 SET_MAKE="MAKE=${MAKE-make}"
1625 rm -rf .tst 2>/dev/null
1626 mkdir .tst 2>/dev/null
1627 if test -d .tst; then
1632 rmdir .tst 2>/dev/null
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; }; }
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'
1652 # Define the identity of the package.
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE "$PACKAGE"
1662 cat >>confdefs.h <<_ACEOF
1663 #define VERSION "$VERSION"
1666 # Some tools Automake needs.
1668 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1671 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1674 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1677 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1680 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1683 AMTAR=${AMTAR-"${am_missing_run}tar"}
1685 install_sh=${install_sh-"$am_aux_dir/install-sh"}
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
1700 if test -n "$STRIP"; then
1701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1729 if test -z "$ac_cv_prog_STRIP"; then
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
1738 if test -n "$ac_ct_STRIP"; then
1739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1755 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
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
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1769 STRIP="$ac_cv_prog_STRIP"
1773 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1775 # We need awk for the "check" target. The system "awk" is bad on
1782 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
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
1798 if test -n "$CC"; then
1799 ac_cv_prog_CC="$CC" # Let the user override the test.
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1818 if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1827 if test -z "$ac_cv_prog_CC"; then
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
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
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
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1898 if test -n "$CC"; then
1899 echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1907 if test -z "$ac_cv_prog_CC"; then
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
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
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
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
1989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1995 if test -n "$CC"; then
1996 echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2004 if test -z "$CC"; then
2005 if test -n "$ac_tool_prefix"; then
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
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2035 if test -n "$CC"; then
2036 echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2043 test -n "$CC" && break
2046 if test -z "$CC"; then
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
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2085 test -n "$ac_ct_CC" && break
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; }; }
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
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
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
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line $LINENO "configure"
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
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
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
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
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.
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
2159 test -f "$ac_file" || continue
2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2164 # This is the source file.
2167 # We found the default executable, but exeext='' is most
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.
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
2192 ac_exeext=$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_file" >&5
2194 echo "${ECHO_T}$ac_file" >&6
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
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 if test "$cross_compiling" = maybe; then
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; }; }
2224 echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
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
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
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
2247 for ac_file in conftest.exe conftest conftest.*; do
2248 test -f "$ac_file" || continue
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
2269 rm -f conftest.$ac_ext
2270 EXEEXT=$ac_cv_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
2277 cat >conftest.$ac_ext <<_ACEOF
2278 #line $LINENO "configure"
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2293 rm -f conftest.o conftest.obj
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
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
2301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
2317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2319 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2320 echo "${ECHO_T}$ac_cv_objext" >&6
2321 OBJEXT=$ac_cv_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
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line $LINENO "configure"
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
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
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
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
2381 cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
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
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f conftest.$ac_objext conftest.$ac_ext
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
2429 if test "$GCC" = yes; then
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
2440 ac_cv_prog_cc_stdc=no
2442 cat >conftest.$ac_ext <<_ACEOF
2443 #line $LINENO "configure"
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.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)
2462 static char *f (char * (*g) (char **, int), char **p, ...)
2467 s = g (p, va_arg (v,int));
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);
2480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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__"
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
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
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 ac_cv_prog_cc_stdc=$ac_arg
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2514 rm -f conftest.$ac_objext
2516 rm -f conftest.$ac_ext conftest.$ac_objext
2521 case "x$ac_cv_prog_cc_stdc" in
2523 echo "$as_me:$LINENO: result: none needed" >&5
2524 echo "${ECHO_T}none needed" >&6 ;;
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" ;;
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
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>&5
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
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2552 for ac_declaration in \
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);' \
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>&5
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
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2598 cat >conftest.$ac_ext <<_ACEOF
2599 #line $LINENO "configure"
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
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
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2632 rm -f conftest.$ac_objext conftest.$ac_ext
2635 if test -n "$ac_declaration"; then
2636 echo '#ifdef __cplusplus' >>confdefs.h
2637 echo $ac_declaration >>confdefs.h
2638 echo '#endif' >>confdefs.h
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2646 rm -f conftest.$ac_objext conftest.$ac_ext
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"
2654 ac_config_commands="$ac_config_commands depfiles"
2657 am_make=${MAKE-make}
2658 cat > confinc << '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
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
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
2692 echo "$as_me:$LINENO: result: $_am_result" >&5
2693 echo "${ECHO_T}$_am_result" >&6
2694 rm -f confinc confmf
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"
2701 if test "x$enable_dependency_tracking" != xno; then
2702 am_depcomp="$ac_aux_dir/depcomp"
2707 if test "x$enable_dependency_tracking" != xno; then
2718 depcc="$CC" am_compiler_list=
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
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
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
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
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`
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.
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.
2757 for i in 1 2 3 4 5 6; do
2758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2761 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
2799 am_cv_CC_dependencies_compiler_type=none
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
2810 test "x$enable_dependency_tracking" != xno \
2811 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2813 am__fastdepCC_FALSE='#'
2815 am__fastdepCC_TRUE='#'
2816 am__fastdepCC_FALSE=
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
2831 if test -z "$CPP"; then
2832 if test "${ac_cv_prog_CPP+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 # Double quotes because CPP needs to be expanded
2836 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2839 for ac_c_preproc_warn_flag in '' yes
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"
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2855 # include <limits.h>
2857 # include <assert.h>
2861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
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
2877 if test -z "$ac_cpp_err"; then
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2883 # Broken: fails on valid input.
2886 rm -f conftest.err conftest.$ac_ext
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"
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897 #include <ac_nonexistent.h>
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
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
2915 if test -z "$ac_cpp_err"; then
2916 # Broken: success on invalid input.
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 # Passes both tests.
2926 rm -f conftest.err conftest.$ac_ext
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
2943 echo "$as_me:$LINENO: result: $CPP" >&5
2944 echo "${ECHO_T}$CPP" >&6
2946 for ac_c_preproc_warn_flag in '' yes
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"
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2962 # include <limits.h>
2964 # include <assert.h>
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
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
2984 if test -z "$ac_cpp_err"; then
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 # Broken: fails on valid input.
2993 rm -f conftest.err conftest.$ac_ext
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"
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3004 #include <ac_nonexistent.h>
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
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
3022 if test -z "$ac_cpp_err"; then
3023 # Broken: success on invalid input.
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3029 # Passes both tests.
3033 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
3054 for ac_prog in gawk mawk nawk awk
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
3063 if test -n "$AWK"; then
3064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3083 if test -n "$AWK"; then
3084 echo "$as_me:$LINENO: result: $AWK" >&5
3085 echo "${ECHO_T}$AWK" >&6
3087 echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3091 test -n "$AWK" && break
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
3100 cat >conftest.make <<\_ACEOF
3102 @echo 'ac_maketemp="$(MAKE)"'
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
3109 eval ac_cv_prog_make_${ac_make}_set=no
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
3118 echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3120 SET_MAKE="MAKE=${MAKE-make}"
3123 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3124 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3126 if test "$LN_S" = "ln -s"; then
3127 echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3130 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3131 echo "${ECHO_T}no, using $LN_S" >&6
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
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
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir=.
3157 # Account for people who put trailing slashes in PATH elements.
3159 ./ | .// | /cC/* | \
3160 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
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
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.
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.
3178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3190 if test "${ac_cv_path_install+set}" = set; then
3191 INSTALL=$ac_cv_path_install
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
3200 echo "$as_me:$LINENO: result: $INSTALL" >&5
3201 echo "${ECHO_T}$INSTALL" >&6
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}'
3207 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3209 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line $LINENO "configure"
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3234 static void foo(void) __attribute__ ((noreturn));
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>&5
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
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv___attribute__=yes
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 ac_cv___attribute__=no
3265 rm -f conftest.$ac_objext conftest.$ac_ext
3268 if test "$ac_cv___attribute__" = "yes"; then
3270 cat >>confdefs.h <<\_ACEOF
3271 #define HAVE___ATTRIBUTE__ 1
3275 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3276 echo "${ECHO_T}$ac_cv___attribute__" >&6
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
3287 SAVE_LDFLAGS="${LDFLAGS}"
3288 LDFLAGS="-R /usr/lib"
3289 cat >conftest.$ac_ext <<_ACEOF
3290 #line $LINENO "configure"
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
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
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
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 andrew_runpath_switch="-R"
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3323 LDFLAGS="-Wl,-rpath,/usr/lib"
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
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
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
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 andrew_runpath_switch="-Wl,-rpath,"
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 andrew_runpath_switch="none"
3359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3363 LDFLAGS="${SAVE_LDFLAGS}"
3366 echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
3367 echo "${ECHO_T}$andrew_runpath_switch" >&6
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
3377 cat >conftest.$ac_ext <<_ACEOF
3378 #line $LINENO "configure"
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. */
3389 # include <limits.h>
3391 # include <assert.h>
3393 /* Override any gcc2 internal prototype to avoid an error. */
3398 /* We use char because int might match the return type of a gcc2
3399 builtin and then its argument prototype would still apply. */
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)
3407 char (*f) () = connect;
3416 return f != connect;
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
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
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 ac_cv_func_connect=yes
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 ac_cv_func_connect=no
3440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
3452 ac_check_lib_save_LIBS=$LIBS
3454 cat >conftest.$ac_ext <<_ACEOF
3455 #line $LINENO "configure"
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3462 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_cv_lib_nsl_gethostbyname=yes
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 ac_cv_lib_nsl_gethostbyname=no
3496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3497 LIBS=$ac_check_lib_save_LIBS
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"
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
3510 ac_check_lib_save_LIBS=$LIBS
3511 LIBS="-lsocket $LIBS"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #line $LINENO "configure"
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3520 /* Override any gcc2 internal prototype to avoid an error. */
3524 /* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
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
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
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_cv_lib_socket_connect=yes
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 ac_cv_lib_socket_connect=no
3554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3555 LIBS=$ac_check_lib_save_LIBS
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"
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
3572 cat >conftest.$ac_ext <<_ACEOF
3573 #line $LINENO "configure"
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. */
3584 # include <limits.h>
3586 # include <assert.h>
3588 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
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)
3602 char (*f) () = res_search;
3611 return f != res_search;
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
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
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_func_res_search=yes
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 ac_cv_func_res_search=no
3635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
3642 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
3643 cat >conftest.$ac_ext <<_ACEOF
3644 #line $LINENO "configure"
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
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>
3662 const char host[12]="openafs.org";
3664 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
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
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
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 LIB_SOCKET="-lresolv $LIB_SOCKET"
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3693 LIBS="$LIB_SOCKET $save_LIBS"
3696 for ac_func in dn_expand dns_lookup
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
3704 cat >conftest.$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
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. */
3716 # include <limits.h>
3718 # include <assert.h>
3720 /* Override any gcc2 internal prototype to avoid an error. */
3725 /* We use char because int might match the return type of a gcc2
3726 builtin and then its argument prototype would still apply. */
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)
3734 char (*f) () = $ac_func;
3743 return f != $ac_func;
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
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
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 eval "$as_ac_var=yes"
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 eval "$as_ac_var=no"
3767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
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'
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
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
3804 cat >conftest.$ac_ext <<_ACEOF
3805 #line $LINENO "configure"
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>&5
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
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_cv_header_stdc=yes
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_cv_header_stdc=no
3843 rm -f conftest.$ac_objext conftest.$ac_ext
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"
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 $EGREP "memchr" >/dev/null 2>&1; then
3861 ac_cv_header_stdc=no
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"
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 $EGREP "free" >/dev/null 2>&1; then
3883 ac_cv_header_stdc=no
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
3894 cat >conftest.$ac_ext <<_ACEOF
3895 #line $LINENO "configure"
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3902 #if ((' ' & 0x0FF) == 0x020)
3903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3918 for (i = 0; i < 256; i++)
3919 if (XOR (islower (i), ISLOWER (i))
3920 || toupper (i) != TOUPPER (i))
3925 rm -f conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
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
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
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
3943 ac_cv_header_stdc=no
3945 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
3953 cat >>confdefs.h <<\_ACEOF
3954 #define STDC_HEADERS 1
3959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
3978 cat >conftest.$ac_ext <<_ACEOF
3979 #line $LINENO "configure"
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 $ac_includes_default
3987 #include <$ac_header>
3989 rm -f conftest.$ac_objext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>&5
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
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 eval "$as_ac_Header=yes"
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4006 eval "$as_ac_Header=no"
4008 rm -f conftest.$ac_objext conftest.$ac_ext
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
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"
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
4033 cat >conftest.$ac_ext <<_ACEOF
4034 #line $LINENO "configure"
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 $ac_includes_default
4052 rm -f conftest.$ac_objext
4053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054 (eval $ac_compile) 2>&5
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
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4071 rm -f conftest.$ac_objext conftest.$ac_ext
4073 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4074 echo "${ECHO_T}$ac_cv_type_long" >&6
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
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"
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 $ac_includes_default
4099 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>&5
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
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4120 cat >conftest.$ac_ext <<_ACEOF
4121 #line $LINENO "configure"
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 $ac_includes_default
4131 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>&5
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
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 ac_hi=$ac_mid; break
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 ac_lo=`expr $ac_mid + 1`
4156 if test $ac_lo -le $ac_mid; then
4160 ac_mid=`expr 2 '*' $ac_mid + 1`
4162 rm -f conftest.$ac_objext conftest.$ac_ext
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4168 cat >conftest.$ac_ext <<_ACEOF
4169 #line $LINENO "configure"
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4175 $ac_includes_default
4179 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>&5
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
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4200 cat >conftest.$ac_ext <<_ACEOF
4201 #line $LINENO "configure"
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 $ac_includes_default
4211 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>&5
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
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_lo=$ac_mid; break
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 ac_hi=`expr '(' $ac_mid ')' - 1`
4236 if test $ac_mid -le $ac_hi; then
4240 ac_mid=`expr 2 '*' $ac_mid`
4242 rm -f conftest.$ac_objext conftest.$ac_ext
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4250 rm -f conftest.$ac_objext conftest.$ac_ext
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"
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 $ac_includes_default
4267 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>&5
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
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 ac_lo=`expr '(' $ac_mid ')' + 1`
4293 rm -f conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
4311 cat >conftest.$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
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)); }
4327 FILE *f = fopen ("conftest.val", "w");
4330 if (((long) (sizeof (long))) < 0)
4332 long i = longval ();
4333 if (i != ((long) (sizeof (long))))
4335 fprintf (f, "%ld\n", i);
4339 unsigned long i = ulongval ();
4340 if (i != ((long) (sizeof (long))))
4342 fprintf (f, "%lu\n", i);
4344 exit (ferror (f) || fclose (f) != 0);
4350 rm -f conftest$ac_exeext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352 (eval $ac_link) 2>&5
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
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_sizeof_long=`cat conftest.val`
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
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; }; }
4374 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
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
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
4401 if test $ac_cv_sizeof_long -eq 8 ; then
4402 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
4405 ac_cv_cmu_lib_subdir=$with_lib_subdir
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
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
4424 save_CPPFLAGS=$CPPFLAGS
4425 save_LDFLAGS=$LDFLAGS
4427 if test -d $with_openssl; then
4428 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
4430 # this is CMU ADD LIBPATH
4431 if test "$andrew_runpath_switch" = "none" ; then
4432 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4434 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4439 case "$with_openssl" in
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
4449 ac_check_lib_save_LIBS=$LIBS
4450 LIBS="-lrsaref $LIBS"
4451 cat >conftest.$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4459 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
4469 RSAPublicEncrypt ();
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
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
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 ac_cv_lib_rsaref_RSAPublicEncrypt=no
4493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4494 LIBS=$ac_check_lib_save_LIBS
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
4505 ac_check_lib_save_LIBS=$LIBS
4506 LIBS="-lRSAglue $LIBS"
4507 cat >conftest.$ac_ext <<_ACEOF
4508 #line $LINENO "configure"
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4515 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
4525 RSAPublicEncrypt ();
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
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
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
4549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4550 LIBS=$ac_check_lib_save_LIBS
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"
4557 LIB_RSAREF="-lrsaref"
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
4571 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
4572 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
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"
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>
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>&5
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
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 ac_header_compiler=yes
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4604 ac_header_compiler=no
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
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"
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 #include <openssl/evp.h>
4622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4625 grep -v '^ *+' conftest.er1 >conftest.err
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
4638 if test -z "$ac_cpp_err"; then
4639 ac_header_preproc=yes
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 ac_header_preproc=no
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
4650 # So? What about this header?
4651 case $ac_header_compiler:$ac_header_preproc in
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;}
4659 ## ------------------------------------ ##
4660 ## Report this to bug-autoconf@gnu.org. ##
4661 ## ------------------------------------ ##
4664 sed "s/^/$as_me: WARNING: /" >&2
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;}
4675 ## ------------------------------------ ##
4676 ## Report this to bug-autoconf@gnu.org. ##
4677 ## ------------------------------------ ##
4680 sed "s/^/$as_me: WARNING: /" >&2
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
4688 ac_cv_header_openssl_evp_h=$ac_header_preproc
4690 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
4691 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
4694 if test $ac_cv_header_openssl_evp_h = yes; then
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
4701 ac_check_lib_save_LIBS=$LIBS
4702 LIBS="-lcrypto $LIB_RSAREF $LIBS"
4703 cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4711 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_lib_crypto_EVP_DigestInit=yes
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 ac_cv_lib_crypto_EVP_DigestInit=no
4745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4746 LIBS=$ac_check_lib_save_LIBS
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
4764 if test "$with_openssl" != "no"; then
4766 cat >>confdefs.h <<\_ACEOF
4767 #define HAVE_OPENSSL
4771 CPPFLAGS=$save_CPPFLAGS
4772 LDFLAGS=$save_LDFLAGS
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
4782 # Check whether --with-des or --without-des was given.
4783 if test "${with_des+set}" = set; then
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"
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
4803 ac_check_lib_save_LIBS=$LIBS
4804 LIBS="-lcrypto $LIB_RSAREF $LIBS"
4805 cat >conftest.$ac_ext <<_ACEOF
4806 #line $LINENO "configure"
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4813 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 ac_cv_lib_crypto_des_cbc_encrypt=yes
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4845 ac_cv_lib_crypto_des_cbc_encrypt=no
4847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4848 LIBS=$ac_check_lib_save_LIBS
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
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
4860 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
4861 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
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"
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>
4876 rm -f conftest.$ac_objext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878 (eval $ac_compile) 2>&5
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
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_header_compiler=yes
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 ac_header_compiler=no
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
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"
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <openssl/des.h>
4911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
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
4927 if test -z "$ac_cpp_err"; then
4928 ac_header_preproc=yes
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 ac_header_preproc=no
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
4939 # So? What about this header?
4940 case $ac_header_compiler:$ac_header_preproc in
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;}
4948 ## ------------------------------------ ##
4949 ## Report this to bug-autoconf@gnu.org. ##
4950 ## ------------------------------------ ##
4953 sed "s/^/$as_me: WARNING: /" >&2
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;}
4964 ## ------------------------------------ ##
4965 ## Report this to bug-autoconf@gnu.org. ##
4966 ## ------------------------------------ ##
4969 sed "s/^/$as_me: WARNING: /" >&2
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
4977 ac_cv_header_openssl_des_h=$ac_header_preproc
4979 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
4980 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
4983 if test $ac_cv_header_openssl_des_h = yes; then
4985 cat >>confdefs.h <<\_ACEOF
4986 #define WITH_SSL_DES
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
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5017 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_cv_lib_crypto_DES_cbc_encrypt=yes
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 ac_cv_lib_crypto_DES_cbc_encrypt=no
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
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
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
5064 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5065 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
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"
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>
5080 rm -f conftest.$ac_objext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082 (eval $ac_compile) 2>&5
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
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 ac_header_compiler=yes
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 ac_header_compiler=no
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
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"
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 #include <openssl/des.h>
5115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
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
5131 if test -z "$ac_cpp_err"; then
5132 ac_header_preproc=yes
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 ac_header_preproc=no
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
5143 # So? What about this header?
5144 case $ac_header_compiler:$ac_header_preproc in
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;}
5152 ## ------------------------------------ ##
5153 ## Report this to bug-autoconf@gnu.org. ##
5154 ## ------------------------------------ ##
5157 sed "s/^/$as_me: WARNING: /" >&2
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;}
5168 ## ------------------------------------ ##
5169 ## Report this to bug-autoconf@gnu.org. ##
5170 ## ------------------------------------ ##
5173 sed "s/^/$as_me: WARNING: /" >&2
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
5181 ac_cv_header_openssl_des_h=$ac_header_preproc
5183 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5184 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
5187 if test $ac_cv_header_openssl_des_h = yes; then
5189 cat >>confdefs.h <<\_ACEOF
5190 #define WITH_SSL_DES
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
5213 ac_check_lib_save_LIBS=$LIBS
5215 cat >conftest.$ac_ext <<_ACEOF
5216 #line $LINENO "configure"
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5223 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_cv_lib_des_des_cbc_encrypt=yes
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 ac_cv_lib_des_des_cbc_encrypt=no
5257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5258 LIBS=$ac_check_lib_save_LIBS
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
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
5277 ac_check_lib_save_LIBS=$LIBS
5278 LIBS="-ldes425 $LIBS"
5279 cat >conftest.$ac_ext <<_ACEOF
5280 #line $LINENO "configure"
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5287 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5314 ac_cv_lib_des425_des_cbc_encrypt=yes
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5319 ac_cv_lib_des425_des_cbc_encrypt=no
5321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
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
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
5341 ac_check_lib_save_LIBS=$LIBS
5342 LIBS="-ldes524 $LIBS"
5343 cat >conftest.$ac_ext <<_ACEOF
5344 #line $LINENO "configure"
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5351 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_cv_lib_des524_des_cbc_encrypt=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_cv_lib_des524_des_cbc_encrypt=no
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
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
5399 if test "$with_des" = no; then
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
5407 ac_check_lib_save_LIBS=$LIBS
5408 LIBS="-lrsaref $LIBS"
5409 cat >conftest.$ac_ext <<_ACEOF
5410 #line $LINENO "configure"
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5417 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
5427 RSAPublicEncrypt ();
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
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
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 ac_cv_lib_rsaref_RSAPublicEncrypt=no
5451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5452 LIBS=$ac_check_lib_save_LIBS
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
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
5468 ac_check_lib_save_LIBS=$LIBS
5469 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5478 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_lib_crypto_des_cbc_encrypt=yes
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_cv_lib_crypto_des_cbc_encrypt=no
5512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5513 LIBS=$ac_check_lib_save_LIBS
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
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
5525 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5526 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
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"
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>
5541 rm -f conftest.$ac_objext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543 (eval $ac_compile) 2>&5
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
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_header_compiler=yes
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 ac_header_compiler=no
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
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"
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #include <openssl/des.h>
5576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
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
5592 if test -z "$ac_cpp_err"; then
5593 ac_header_preproc=yes
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 ac_header_preproc=no
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
5604 # So? What about this header?
5605 case $ac_header_compiler:$ac_header_preproc in
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;}
5613 ## ------------------------------------ ##
5614 ## Report this to bug-autoconf@gnu.org. ##
5615 ## ------------------------------------ ##
5618 sed "s/^/$as_me: WARNING: /" >&2
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;}
5629 ## ------------------------------------ ##
5630 ## Report this to bug-autoconf@gnu.org. ##
5631 ## ------------------------------------ ##
5634 sed "s/^/$as_me: WARNING: /" >&2
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
5642 ac_cv_header_openssl_des_h=$ac_header_preproc
5644 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5645 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
5648 if test $ac_cv_header_openssl_des_h = yes; then
5650 cat >>confdefs.h <<\_ACEOF
5651 #define WITH_SSL_DES
5668 if test "$with_des" != no; then
5670 cat >>confdefs.h <<\_ACEOF
5682 # Check whether --enable-krb4 or --disable-krb4 was given.
5683 if test "${enable_krb4+set}" = set; then
5684 enableval="$enable_krb4"
5690 if test "$krb4" != no; then
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
5697 ac_check_lib_save_LIBS=$LIBS
5698 LIBS="-lresolv $LIBS"
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5707 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
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
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
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_lib_resolv_res_search=yes
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_cv_lib_resolv_res_search=no
5741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5742 LIBS=$ac_check_lib_save_LIBS
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
5751 LIBS="-lresolv $LIBS"
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
5763 for krbhloc in include/kerberosIV include/kerberos include
5765 if test -f ${krb4}/${krbhloc}/krb.h ; then
5766 cyrus_krbinclude=${krb4}/${krbhloc}
5772 echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
5773 echo "${ECHO_T}$cyrus_krbinclude" >&6
5775 if test -n "${cyrus_krbinclude}"; then
5776 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
5778 LDFLAGS="$LDFLAGS -L$krb4/lib"
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
5788 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
5789 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
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"
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806 (eval $ac_compile) 2>&5
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
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; }; then
5816 ac_header_compiler=yes
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 ac_header_compiler=no
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
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"
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5842 grep -v '^ *+' conftest.er1 >conftest.err
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
5855 if test -z "$ac_cpp_err"; then
5856 ac_header_preproc=yes
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 ac_header_preproc=no
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
5867 # So? What about this header?
5868 case $ac_header_compiler:$ac_header_preproc in
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;}
5876 ## ------------------------------------ ##
5877 ## Report this to bug-autoconf@gnu.org. ##
5878 ## ------------------------------------ ##
5881 sed "s/^/$as_me: WARNING: /" >&2
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;}
5892 ## ------------------------------------ ##
5893 ## Report this to bug-autoconf@gnu.org. ##
5894 ## ------------------------------------ ##
5897 sed "s/^/$as_me: WARNING: /" >&2
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
5905 ac_cv_header_krb_h=$ac_header_preproc
5907 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
5908 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
5911 if test $ac_cv_header_krb_h = yes; then
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
5918 ac_check_lib_save_LIBS=$LIBS
5919 LIBS="-lcom_err $LIBS"
5920 cat >conftest.$ac_ext <<_ACEOF
5921 #line $LINENO "configure"
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5928 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
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
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
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_lib_com_err_com_err=yes
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 ac_cv_lib_com_err_com_err=no
5962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5963 LIBS=$ac_check_lib_save_LIBS
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
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
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"
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5984 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_lib_krb_krb_mk_priv=yes
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 ac_cv_lib_krb_krb_mk_priv=no
6018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6019 LIBS=$ac_check_lib_save_LIBS
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"
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
6036 ac_check_lib_save_LIBS=$LIBS
6037 LIBS="-lkrb $LIB_DES $LIBS"
6038 cat >conftest.$ac_ext <<_ACEOF
6039 #line $LINENO "configure"
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6046 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 ac_cv_lib_krb_krb_mk_priv=yes
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_cv_lib_krb_krb_mk_priv=no
6080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6081 LIBS=$ac_check_lib_save_LIBS
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"
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
6105 ac_check_lib_save_LIBS=$LIBS
6106 LIBS="-lkrb4 $LIB_DES $LIBS"
6107 cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6115 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_lib_krb4_krb_mk_priv=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_lib_krb4_krb_mk_priv=no
6149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6150 LIBS=$ac_check_lib_save_LIBS
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
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;}
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;}
6172 if test "$krb4" != no; then
6173 cmu_save_LIBS="$LIBS"
6174 LIBS="$LIBS $SASL_KRB_LIB"
6176 for ac_func in krb_get_err_text
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
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
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. */
6196 # include <limits.h>
6198 # include <assert.h>
6200 /* Override any gcc2 internal prototype to avoid an error. */
6205 /* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
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)
6214 char (*f) () = $ac_func;
6223 return f != $ac_func;
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
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
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
6240 eval "$as_ac_var=yes"
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 eval "$as_ac_var=no"
6247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
6259 LIBS="$cmu_save_LIBS"
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"
6271 cat >>confdefs.h <<\_ACEOF
6272 #define STATIC_KERBEROS4
6276 cat >>confdefs.h <<\_ACEOF
6280 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
6282 echo "$as_me:$LINENO: result: disabled" >&5
6283 echo "${ECHO_T}disabled" >&6
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
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
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. */
6304 # include <limits.h>
6306 # include <assert.h>
6308 /* Override any gcc2 internal prototype to avoid an error. */
6313 /* We use char because int might match the return type of a gcc2
6314 builtin and then its argument prototype would still apply. */
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)
6322 char (*f) () = crypt;
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
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
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_cv_func_crypt=yes
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
6367 ac_check_lib_save_LIBS=$LIBS
6368 LIBS="-lcrypt $LIBS"
6369 cat >conftest.$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6377 /* Override any gcc2 internal prototype to avoid an error. */
6381 /* We use char because int might match the return type of a gcc2
6382 builtin and then its argument prototype would still apply. */
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
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
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_lib_crypt_crypt=yes
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_cv_lib_crypt_crypt=no
6411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6412 LIBS=$ac_check_lib_save_LIBS
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
6428 # Check whether --enable-gssapi or --disable-gssapi was given.
6429 if test "${enable_gssapi+set}" = set; then
6430 enableval="$enable_gssapi"
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"
6444 if test "$gssapi" != no; then
6457 # When should we use __sunos?
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; }; }
6474 cmu_saved_CPPFLAGS=$CPPFLAGS
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"
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"
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
6497 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
6498 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
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"
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 $ac_includes_default
6513 rm -f conftest.$ac_objext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515 (eval $ac_compile) 2>&5
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
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_header_compiler=yes
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_header_compiler=no
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
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"
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6551 grep -v '^ *+' conftest.er1 >conftest.err
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
6564 if test -z "$ac_cpp_err"; then
6565 ac_header_preproc=yes
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 ac_header_preproc=no
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
6576 # So? What about this header?
6577 case $ac_header_compiler:$ac_header_preproc in
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;}
6585 ## ------------------------------------ ##
6586 ## Report this to bug-autoconf@gnu.org. ##
6587 ## ------------------------------------ ##
6590 sed "s/^/$as_me: WARNING: /" >&2
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;}
6601 ## ------------------------------------ ##
6602 ## Report this to bug-autoconf@gnu.org. ##
6603 ## ------------------------------------ ##
6606 sed "s/^/$as_me: WARNING: /" >&2
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
6614 ac_cv_header_gssapi_h=$ac_header_preproc
6616 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
6617 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
6620 if test $ac_cv_header_gssapi_h = yes; then
6622 cat >>confdefs.h <<\_ACEOF
6623 #define HAVE_GSSAPI_H
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
6633 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
6634 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
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"
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>
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>&5
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
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_header_compiler=yes
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 ac_header_compiler=no
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
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"
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <gssapi/gssapi.h>
6684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6687 grep -v '^ *+' conftest.er1 >conftest.err
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
6700 if test -z "$ac_cpp_err"; then
6701 ac_header_preproc=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 ac_header_preproc=no
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
6712 # So? What about this header?
6713 case $ac_header_compiler:$ac_header_preproc in
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;}
6721 ## ------------------------------------ ##
6722 ## Report this to bug-autoconf@gnu.org. ##
6723 ## ------------------------------------ ##
6726 sed "s/^/$as_me: WARNING: /" >&2
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;}
6737 ## ------------------------------------ ##
6738 ## Report this to bug-autoconf@gnu.org. ##
6739 ## ------------------------------------ ##
6742 sed "s/^/$as_me: WARNING: /" >&2
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
6750 ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
6752 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
6753 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
6756 if test $ac_cv_header_gssapi_gssapi_h = yes; then
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
6768 CPPFLAGS=$cmu_saved_CPPFLAGS
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/)
6779 # The choice is reflected in GSSAPIBASE_LIBS
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
6787 ac_check_lib_save_LIBS=$LIBS
6788 LIBS="-lresolv $LIBS"
6789 cat >conftest.$ac_ext <<_ACEOF
6790 #line $LINENO "configure"
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6797 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
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
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
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 ac_cv_lib_resolv_res_search=yes
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 ac_cv_lib_resolv_res_search=no
6831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6832 LIBS=$ac_check_lib_save_LIBS
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
6841 LIBS="-lresolv $LIBS"
6845 if test -d ${gssapi}; then
6846 gssapi_dir="${gssapi}/lib"
6847 GSSAPIBASE_LIBS="-L$gssapi_dir"
6848 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
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"
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.
6860 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
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
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"
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6877 /* Override any gcc2 internal prototype to avoid an error. */
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
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
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
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_lib_gssapi_gss_unwrap=yes
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_lib_gssapi_gss_unwrap=no
6911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6912 LIBS=$ac_check_lib_save_LIBS
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
6922 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
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
6934 ac_check_lib_save_LIBS=$LIBS
6935 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
6936 cat >conftest.$ac_ext <<_ACEOF
6937 #line $LINENO "configure"
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6944 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
6954 krb5int_getspecific ();
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
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
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_lib_krb5support_krb5int_getspecific=yes
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 ac_cv_lib_krb5support_krb5int_getspecific=no
6978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6979 LIBS=$ac_check_lib_save_LIBS
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
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
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"
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7004 /* Override any gcc2 internal prototype to avoid an error. */
7008 /* We use char because int might match the return type of a gcc2
7009 builtin and then its argument prototype would still apply. */
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
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
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_lib_gssapi_krb5_gss_unwrap=yes
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 ac_cv_lib_gssapi_krb5_gss_unwrap=no
7038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7039 LIBS=$ac_check_lib_save_LIBS
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
7049 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
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
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"
7063 CPPFLAGS="$CPPFLAGS -D$platform"
7064 if test -d "${gssapi}/appsec-sdk/include"; then
7065 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
7070 # Check for CyberSafe with two libraries first, than fall back to a single
7071 # library (older CyberSafe)
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
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"
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7089 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
7099 csf_gss_acq_user ();
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
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
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then
7116 ac_cv_lib_gss_csf_gss_acq_user=yes
7118 echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7121 ac_cv_lib_gss_csf_gss_acq_user=no
7123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7124 LIBS=$ac_check_lib_save_LIBS
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"
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
7137 ac_check_lib_save_LIBS=$LIBS
7138 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7147 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
7157 csf_gss_acq_user ();
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
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
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_lib_gss_csf_gss_acq_user=yes
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 ac_cv_lib_gss_csf_gss_acq_user=no
7181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7182 LIBS=$ac_check_lib_save_LIBS
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"
7195 if test "$gss_failed" = "1"; then
7197 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
7198 CPPFLAGS=$cmu_saved_CPPFLAGS
7200 if test "$gss_impl" != "auto"; then
7206 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
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
7213 ac_check_lib_save_LIBS=$LIBS
7214 LIBS="-lgss -lgss $LIBS"
7215 cat >conftest.$ac_ext <<_ACEOF
7216 #line $LINENO "configure"
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7223 /* Override any gcc2 internal prototype to avoid an error. */
7227 /* We use char because int might match the return type of a gcc2
7228 builtin and then its argument prototype would still apply. */
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
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
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_lib_gss_gss_unwrap=yes
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_cv_lib_gss_gss_unwrap=no
7257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7258 LIBS=$ac_check_lib_save_LIBS
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
7268 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
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
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;}
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;}
7311 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
7312 # in gssapi\rfckrb5.h
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"
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
7328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7329 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
7331 cat >>confdefs.h <<\_ACEOF
7332 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
7336 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
7337 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
7342 elif test "$ac_cv_header_gssapi_h" = "yes"; then
7343 cat >conftest.$ac_ext <<_ACEOF
7344 #line $LINENO "configure"
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7356 cat >>confdefs.h <<\_ACEOF
7357 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
7363 elif test "$ac_cv_header_gssapi_gssapi_h"; then
7364 cat >conftest.$ac_ext <<_ACEOF
7365 #line $LINENO "configure"
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 #include <gssapi/gssapi.h>
7374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7375 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7377 cat >>confdefs.h <<\_ACEOF
7378 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
7386 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
7387 cat >conftest.$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
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
7399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7400 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
7402 cat >>confdefs.h <<\_ACEOF
7403 #define HAVE_GSS_C_NT_USER_NAME
7407 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
7408 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
7412 elif test "$ac_cv_header_gssapi_h" = "yes"; then
7413 cat >conftest.$ac_ext <<_ACEOF
7414 #line $LINENO "configure"
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7424 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_GSS_C_NT_USER_NAME
7433 elif test "$ac_cv_header_gssapi_gssapi_h"; then
7434 cat >conftest.$ac_ext <<_ACEOF
7435 #line $LINENO "configure"
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 #include <gssapi/gssapi.h>
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_GSS_C_NT_USER_NAME
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
7468 ac_check_lib_save_LIBS=$LIBS
7469 LIBS="-lresolv $LIBS"
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7478 /* Override any gcc2 internal prototype to avoid an error. */
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
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
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
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_lib_resolv_res_search=yes
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_lib_resolv_res_search=no
7512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7513 LIBS=$ac_check_lib_save_LIBS
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"
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"
7525 cmu_save_LIBS="$LIBS"
7526 LIBS="$LIBS $GSSAPIBASE_LIBS"
7528 for ac_func in gsskrb5_register_acceptor_identity
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
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
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. */
7548 # include <limits.h>
7550 # include <assert.h>
7552 /* Override any gcc2 internal prototype to avoid an error. */
7557 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
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)
7566 char (*f) () = $ac_func;
7575 return f != $ac_func;
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
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
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 eval "$as_ac_var=yes"
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 eval "$as_ac_var=no"
7599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
7611 LIBS="$cmu_save_LIBS"
7613 echo "$as_me:$LINENO: result: disabled" >&5
7614 echo "${ECHO_T}disabled" >&6
7620 if test "$gssapi" != no; then
7621 if test "$gss_impl" = "heimdal"; then
7623 cat >>confdefs.h <<\_ACEOF
7624 #define KRB5_HEIMDAL
7629 cat >>confdefs.h <<\_ACEOF
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
7640 cat >conftest.$ac_ext <<_ACEOF
7641 #line $LINENO "configure"
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. */
7652 # include <limits.h>
7654 # include <assert.h>
7656 /* Override any gcc2 internal prototype to avoid an error. */
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
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)
7670 char (*f) () = crypt;
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
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
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_func_crypt=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
7715 ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-lcrypt $LIBS"
7717 cat >conftest.$ac_ext <<_ACEOF
7718 #line $LINENO "configure"
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7725 /* Override any gcc2 internal prototype to avoid an error. */
7729 /* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
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
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
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_cv_lib_crypt_crypt=yes
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_lib_crypt_crypt=no
7759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
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
7775 # Check whether --enable-sia or --disable-sia was given.
7776 if test "${enable_sia+set}" = set; then
7777 enableval="$enable_sia"
7783 if test "$sia" != no; then
7784 if test -f /etc/sia/matrix.conf; then
7786 cat >>confdefs.h <<\_ACEOF
7790 LIB_SIA="-lsecurity -ldb -lm -laud"
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; }; }
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
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."
7812 cat >>confdefs.h <<\_ACEOF
7818 # Check whether --with-dbpath or --without-dbpath was given.
7819 if test "${with_dbpath+set}" = set; then
7820 withval="$with_dbpath"
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
7830 cat >>confdefs.h <<_ACEOF
7831 #define SASL_DB_PATH "$dbpath"
7835 cmu_save_LIBS="$LIBS"
7837 # Check whether --with-dblib or --without-dblib was given.
7838 if test "${with_dblib+set}" = set; then
7839 withval="$with_dblib"
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
7852 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
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
7860 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
7871 cmu_save_CPPFLAGS=$CPPFLAGS
7873 if test -d $with_bdb_inc; then
7874 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
7875 BDB_INCADD="-I$with_bdb_inc"
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
7886 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
7887 echo "${ECHO_T}$ac_cv_header_db_h" >&6
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"
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 $ac_includes_default
7902 rm -f conftest.$ac_objext
7903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7904 (eval $ac_compile) 2>&5
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
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_header_compiler=yes
7916 echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 ac_header_compiler=no
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
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"
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7940 grep -v '^ *+' conftest.er1 >conftest.err
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
7953 if test -z "$ac_cpp_err"; then
7954 ac_header_preproc=yes
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 ac_header_preproc=no
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
7965 # So? What about this header?
7966 case $ac_header_compiler:$ac_header_preproc in
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;}
7974 ## ------------------------------------ ##
7975 ## Report this to bug-autoconf@gnu.org. ##
7976 ## ------------------------------------ ##
7979 sed "s/^/$as_me: WARNING: /" >&2
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;}
7990 ## ------------------------------------ ##
7991 ## Report this to bug-autoconf@gnu.org. ##
7992 ## ------------------------------------ ##
7995 sed "s/^/$as_me: WARNING: /" >&2
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
8003 ac_cv_header_db_h=$ac_header_preproc
8005 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8006 echo "${ECHO_T}$ac_cv_header_db_h" >&6
8009 if test $ac_cv_header_db_h = yes; then
8011 BDB_SAVE_LDFLAGS=$LDFLAGS
8013 if test -d $with_bdb_lib; then
8015 # this is CMU ADD LIBPATH TO
8016 if test "$andrew_runpath_switch" = "none" ; then
8017 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
8019 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
8023 # this is CMU ADD LIBPATH TO
8024 if test "$andrew_runpath_switch" = "none" ; then
8025 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
8027 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
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
8037 LIBS="$saved_LIBS -l$dbname"
8038 cat >conftest.$ac_ext <<_ACEOF
8039 #line $LINENO "configure"
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8049 db_create(NULL, NULL, 0);
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
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
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8074 if test "$dblib" = "berkeley"; then break; fi
8076 if test "$dblib" = "no"; then
8077 LIBS="$saved_LIBS -ldb"
8078 cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8089 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
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
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
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8117 LDFLAGS=$BDB_SAVE_LDFLAGS
8125 CPPFLAGS=$cmu_save_CPPFLAGS
8127 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
8128 SASL_DB_INC=$BDB_INCADD
8129 SASL_DB_LIB="${BDB_LIBADD}"
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}"
8139 case "$with_gdbm" in
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
8147 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8148 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
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"
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8163 rm -f conftest.$ac_objext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165 (eval $ac_compile) 2>&5
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
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 ac_header_compiler=yes
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_header_compiler=no
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
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"
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8201 grep -v '^ *+' conftest.er1 >conftest.err
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
8214 if test -z "$ac_cpp_err"; then
8215 ac_header_preproc=yes
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8220 ac_header_preproc=no
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
8226 # So? What about this header?
8227 case $ac_header_compiler:$ac_header_preproc in
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;}
8235 ## ------------------------------------ ##
8236 ## Report this to bug-autoconf@gnu.org. ##
8237 ## ------------------------------------ ##
8240 sed "s/^/$as_me: WARNING: /" >&2
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;}
8251 ## ------------------------------------ ##
8252 ## Report this to bug-autoconf@gnu.org. ##
8253 ## ------------------------------------ ##
8256 sed "s/^/$as_me: WARNING: /" >&2
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
8264 ac_cv_header_gdbm_h=$ac_header_preproc
8266 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8267 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
8270 if test $ac_cv_header_gdbm_h = yes; then
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
8277 ac_check_lib_save_LIBS=$LIBS
8279 cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8287 /* Override any gcc2 internal prototype to avoid an error. */
8291 /* We use char because int might match the return type of a gcc2
8292 builtin and then its argument prototype would still apply. */
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
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
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_lib_gdbm_gdbm_open=yes
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 ac_cv_lib_gdbm_gdbm_open=no
8321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8322 LIBS=$ac_check_lib_save_LIBS
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"
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"
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
8355 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8356 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
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"
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 $ac_includes_default
8371 rm -f conftest.$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>&5
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
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_header_compiler=yes
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_header_compiler=no
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
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"
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
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
8422 if test -z "$ac_cpp_err"; then
8423 ac_header_preproc=yes
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_header_preproc=no
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
8434 # So? What about this header?
8435 case $ac_header_compiler:$ac_header_preproc in
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;}
8443 ## ------------------------------------ ##
8444 ## Report this to bug-autoconf@gnu.org. ##
8445 ## ------------------------------------ ##
8448 sed "s/^/$as_me: WARNING: /" >&2
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;}
8459 ## ------------------------------------ ##
8460 ## Report this to bug-autoconf@gnu.org. ##
8461 ## ------------------------------------ ##
8464 sed "s/^/$as_me: WARNING: /" >&2
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
8472 ac_cv_header_ndbm_h=$ac_header_preproc
8474 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8475 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
8478 if test $ac_cv_header_ndbm_h = yes; then
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
8485 ac_check_lib_save_LIBS=$LIBS
8487 cat >conftest.$ac_ext <<_ACEOF
8488 #line $LINENO "configure"
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8495 /* Override any gcc2 internal prototype to avoid an error. */
8499 /* We use char because int might match the return type of a gcc2
8500 builtin and then its argument prototype would still apply. */
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
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
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 ac_cv_lib_ndbm_dbm_open=yes
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 ac_cv_lib_ndbm_dbm_open=no
8529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8530 LIBS=$ac_check_lib_save_LIBS
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"
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
8543 cat >conftest.$ac_ext <<_ACEOF
8544 #line $LINENO "configure"
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. */
8555 # include <limits.h>
8557 # include <assert.h>
8559 /* Override any gcc2 internal prototype to avoid an error. */
8564 /* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
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)
8573 char (*f) () = dbm_open;
8582 return f != dbm_open;
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
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
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_cv_func_dbm_open=yes
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_cv_func_dbm_open=no
8606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
8628 cmu_save_CPPFLAGS=$CPPFLAGS
8630 if test -d $with_bdb_inc; then
8631 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
8632 BDB_INCADD="-I$with_bdb_inc"
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
8643 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8644 echo "${ECHO_T}$ac_cv_header_db_h" >&6
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"
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 $ac_includes_default
8659 rm -f conftest.$ac_objext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8661 (eval $ac_compile) 2>&5
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
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_header_compiler=yes
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8676 ac_header_compiler=no
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
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"
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8697 grep -v '^ *+' conftest.er1 >conftest.err
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
8710 if test -z "$ac_cpp_err"; then
8711 ac_header_preproc=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_header_preproc=no
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
8722 # So? What about this header?
8723 case $ac_header_compiler:$ac_header_preproc in
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;}
8731 ## ------------------------------------ ##
8732 ## Report this to bug-autoconf@gnu.org. ##
8733 ## ------------------------------------ ##
8736 sed "s/^/$as_me: WARNING: /" >&2
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;}
8747 ## ------------------------------------ ##
8748 ## Report this to bug-autoconf@gnu.org. ##
8749 ## ------------------------------------ ##
8752 sed "s/^/$as_me: WARNING: /" >&2
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
8760 ac_cv_header_db_h=$ac_header_preproc
8762 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8763 echo "${ECHO_T}$ac_cv_header_db_h" >&6
8766 if test $ac_cv_header_db_h = yes; then
8768 BDB_SAVE_LDFLAGS=$LDFLAGS
8770 if test -d $with_bdb_lib; then
8772 # this is CMU ADD LIBPATH TO
8773 if test "$andrew_runpath_switch" = "none" ; then
8774 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
8776 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
8780 # this is CMU ADD LIBPATH TO
8781 if test "$andrew_runpath_switch" = "none" ; then
8782 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
8784 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
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
8794 LIBS="$saved_LIBS -l$dbname"
8795 cat >conftest.$ac_ext <<_ACEOF
8796 #line $LINENO "configure"
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8806 db_create(NULL, NULL, 0);
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
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
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8831 if test "$dblib" = "berkeley"; then break; fi
8833 if test "$dblib" = "no"; then
8834 LIBS="$saved_LIBS -ldb"
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8846 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
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
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
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8874 LDFLAGS=$BDB_SAVE_LDFLAGS
8882 CPPFLAGS=$cmu_save_CPPFLAGS
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
8891 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8892 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
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"
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>&5
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
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 ac_header_compiler=yes
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 ac_header_compiler=no
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
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"
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8945 grep -v '^ *+' conftest.er1 >conftest.err
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
8958 if test -z "$ac_cpp_err"; then
8959 ac_header_preproc=yes
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8964 ac_header_preproc=no
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
8970 # So? What about this header?
8971 case $ac_header_compiler:$ac_header_preproc in
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;}
8979 ## ------------------------------------ ##
8980 ## Report this to bug-autoconf@gnu.org. ##
8981 ## ------------------------------------ ##
8984 sed "s/^/$as_me: WARNING: /" >&2
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;}
8995 ## ------------------------------------ ##
8996 ## Report this to bug-autoconf@gnu.org. ##
8997 ## ------------------------------------ ##
9000 sed "s/^/$as_me: WARNING: /" >&2
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
9008 ac_cv_header_ndbm_h=$ac_header_preproc
9010 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
9011 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
9014 if test $ac_cv_header_ndbm_h = yes; then
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
9021 ac_check_lib_save_LIBS=$LIBS
9023 cat >conftest.$ac_ext <<_ACEOF
9024 #line $LINENO "configure"
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9031 /* Override any gcc2 internal prototype to avoid an error. */
9035 /* We use char because int might match the return type of a gcc2
9036 builtin and then its argument prototype would still apply. */
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
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
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_lib_ndbm_dbm_open=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_cv_lib_ndbm_dbm_open=no
9065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
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"
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
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
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. */
9099 # include <limits.h>
9101 # include <assert.h>
9103 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
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)
9117 char (*f) () = dbm_open;
9126 return f != dbm_open;
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
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
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_cv_func_dbm_open=yes
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ac_cv_func_dbm_open=no
9150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
9169 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9170 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
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"
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187 (eval $ac_compile) 2>&5
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
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 ac_header_compiler=yes
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 ac_header_compiler=no
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
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"
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
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
9236 if test -z "$ac_cpp_err"; then
9237 ac_header_preproc=yes
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9242 ac_header_preproc=no
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
9248 # So? What about this header?
9249 case $ac_header_compiler:$ac_header_preproc in
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;}
9257 ## ------------------------------------ ##
9258 ## Report this to bug-autoconf@gnu.org. ##
9259 ## ------------------------------------ ##
9262 sed "s/^/$as_me: WARNING: /" >&2
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;}
9273 ## ------------------------------------ ##
9274 ## Report this to bug-autoconf@gnu.org. ##
9275 ## ------------------------------------ ##
9278 sed "s/^/$as_me: WARNING: /" >&2
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
9286 ac_cv_header_gdbm_h=$ac_header_preproc
9288 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9289 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
9292 if test $ac_cv_header_gdbm_h = yes; then
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
9299 ac_check_lib_save_LIBS=$LIBS
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9309 /* Override any gcc2 internal prototype to avoid an error. */
9313 /* We use char because int might match the return type of a gcc2
9314 builtin and then its argument prototype would still apply. */
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
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
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 ac_cv_lib_gdbm_gdbm_open=yes
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9341 ac_cv_lib_gdbm_gdbm_open=no
9343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
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
9350 SASL_DB_LIB="-lgdbm"
9362 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
9363 SASL_DB_INC=$BDB_INCADD
9364 SASL_DB_LIB="${BDB_LIBADD}"
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; }; }
9380 LIBS="$cmu_save_LIBS"
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
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"
9395 SASL_MECHS="$SASL_MECHS libsasldb.la"
9397 cat >>confdefs.h <<\_ACEOF
9403 SASL_MECHS="$SASL_MECHS libsasldb.la"
9405 cat >>confdefs.h <<\_ACEOF
9411 SASL_MECHS="$SASL_MECHS libsasldb.la"
9413 cat >>confdefs.h <<\_ACEOF
9414 #define SASL_BERKELEYDB
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"
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"
9435 cat >>confdefs.h <<\_ACEOF
9436 #define STATIC_SASLDB
9440 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
9441 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
9452 SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.al"
9455 # Check whether --enable-httpform or --disable-httpform was given.
9456 if test "${enable_httpform+set}" = set; then
9457 enableval="$enable_httpform"
9462 if test "$httpform" != no; then
9464 cat >>confdefs.h <<\_ACEOF
9465 #define HAVE_HTTPFORM
9471 # Check whether --with-pam or --without-pam was given.
9472 if test "${with_pam+set}" = set; then
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"
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
9489 ac_check_lib_save_LIBS=$LIBS
9490 LIBS="-lpam $SASL_DL_LIB $LIBS"
9491 cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9499 /* Override any gcc2 internal prototype to avoid an error. */
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
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
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
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 ac_cv_lib_pam_pam_start=yes
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 ac_cv_lib_pam_pam_start=no
9533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9534 LIBS=$ac_check_lib_save_LIBS
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
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
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
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"
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>
9562 rm -f conftest.$ac_objext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564 (eval $ac_compile) 2>&5
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
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9574 ac_header_compiler=yes
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9579 ac_header_compiler=no
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
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"
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 #include <security/pam_appl.h>
9597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9600 grep -v '^ *+' conftest.er1 >conftest.err
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
9613 if test -z "$ac_cpp_err"; then
9614 ac_header_preproc=yes
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_header_preproc=no
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
9625 # So? What about this header?
9626 case $ac_header_compiler:$ac_header_preproc in
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;}
9634 ## ------------------------------------ ##
9635 ## Report this to bug-autoconf@gnu.org. ##
9636 ## ------------------------------------ ##
9639 sed "s/^/$as_me: WARNING: /" >&2
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;}
9650 ## ------------------------------------ ##
9651 ## Report this to bug-autoconf@gnu.org. ##
9652 ## ------------------------------------ ##
9655 sed "s/^/$as_me: WARNING: /" >&2
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
9663 ac_cv_header_security_pam_appl_h=$ac_header_preproc
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
9669 if test $ac_cv_header_security_pam_appl_h = yes; then
9680 LIBS="$cmu_save_LIBS"
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
9691 MAIN_COMPAT_OBJ="saslauthd-${with_ipctype}.o"
9693 if test "$with_ipctype" = "doors"; then
9695 cat >>confdefs.h <<\_ACEOF
9700 cat >>confdefs.h <<\_ACEOF
9701 #define SASLAUTHD_THREADED
9704 LIBS="$LIBS -ldoor -lpthread"
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
9712 if test "$with_pam" != no; then
9714 cat >>confdefs.h <<\_ACEOF
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
9728 ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-lresolv $LIBS"
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9738 /* Override any gcc2 internal prototype to avoid an error. */
9742 /* We use char because int might match the return type of a gcc2
9743 builtin and then its argument prototype would still apply. */
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
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
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_lib_resolv_inet_aton=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_cv_lib_resolv_inet_aton=no
9772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
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
9782 LIBS="-lresolv $LIBS"
9787 echo "$as_me:$LINENO: checking to include LDAP support" >&5
9788 echo $ECHO_N "checking to include LDAP support... $ECHO_C" >&6
9790 # Check whether --with-ldap or --without-ldap was given.
9791 if test "${with_ldap+set}" = set; then
9792 withval="$with_ldap"
9797 echo "$as_me:$LINENO: result: $with_ldap" >&5
9798 echo "${ECHO_T}$with_ldap" >&6
9800 if test -d $with_ldap; then
9801 CPPFLAGS="$CPPFLAGS -I${with_ldap}/include"
9803 # this is CMU ADD LIBPATH
9804 if test "$andrew_runpath_switch" = "none" ; then
9805 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
9807 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
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
9819 ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-lldap -llber $LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 #line $LINENO "configure"
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9829 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_cv_lib_ldap_ldap_initialize=yes
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_cv_lib_ldap_ldap_initialize=no
9863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
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
9870 cat >>confdefs.h <<\_ACEOF
9874 LDAP_LIBS="-lldap -llber"
9875 if test "$with_openssl" != "no"; then
9876 LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF"
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
9890 cat >conftest.$ac_ext <<_ACEOF
9891 #line $LINENO "configure"
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9910 rm -f conftest.$ac_objext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912 (eval $ac_compile) 2>&5
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
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_header_stdc=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_cv_header_stdc=no
9929 rm -f conftest.$ac_objext conftest.$ac_ext
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"
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9944 $EGREP "memchr" >/dev/null 2>&1; then
9947 ac_cv_header_stdc=no
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"
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9966 $EGREP "free" >/dev/null 2>&1; then
9969 ac_cv_header_stdc=no
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
9980 cat >conftest.$ac_ext <<_ACEOF
9981 #line $LINENO "configure"
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9988 #if ((' ' & 0x0FF) == 0x020)
9989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
9999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10004 for (i = 0; i < 256; i++)
10005 if (XOR (islower (i), ISLOWER (i))
10006 || toupper (i) != TOUPPER (i))
10011 rm -f conftest$ac_exeext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013 (eval $ac_link) 2>&5
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
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
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
10028 ( exit $ac_status )
10029 ac_cv_header_stdc=no
10031 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
10039 cat >>confdefs.h <<\_ACEOF
10040 #define STDC_HEADERS 1
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
10050 cat >conftest.$ac_ext <<_ACEOF
10051 #line $LINENO "configure"
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)
10063 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10071 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>&5
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
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_header_sys_wait_h=yes
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10093 ac_cv_header_sys_wait_h=no
10095 rm -f conftest.$ac_objext conftest.$ac_ext
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
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_SYS_WAIT_H 1
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
10112 cat >conftest.$ac_ext <<_ACEOF
10113 #line $LINENO "configure"
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>
10126 if ((struct tm *) 0)
10132 rm -f conftest.$ac_objext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10134 (eval $ac_compile) 2>&5
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
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_header_time=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_header_time=no
10151 rm -f conftest.$ac_objext conftest.$ac_ext
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
10157 cat >>confdefs.h <<\_ACEOF
10158 #define TIME_WITH_SYS_TIME 1
10171 for ac_header in crypt.h fcntl.h krb5.h strings.h syslog.h unistd.h sys/time.h sys/uio.h
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
10180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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"
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>
10196 rm -f conftest.$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>&5
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
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_header_compiler=yes
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_header_compiler=no
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
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"
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 #include <$ac_header>
10231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10234 grep -v '^ *+' conftest.er1 >conftest.err
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
10247 if test -z "$ac_cpp_err"; then
10248 ac_header_preproc=yes
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 ac_header_preproc=no
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
10259 # So? What about this header?
10260 case $ac_header_compiler:$ac_header_preproc in
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;}
10268 ## ------------------------------------ ##
10269 ## Report this to bug-autoconf@gnu.org. ##
10270 ## ------------------------------------ ##
10273 sed "s/^/$as_me: WARNING: /" >&2
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;}
10284 ## ------------------------------------ ##
10285 ## Report this to bug-autoconf@gnu.org. ##
10286 ## ------------------------------------ ##
10289 sed "s/^/$as_me: WARNING: /" >&2
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
10297 eval "$as_ac_Header=$ac_header_preproc"
10299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
10318 cat >conftest.$ac_ext <<_ACEOF
10319 #line $LINENO "configure"
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10329 /* FIXME: Include the comments suggested by Paul. */
10330 #ifndef __cplusplus
10331 /* Ultrix mips cc rejects this. */
10332 typedef int charset[2];
10334 /* SunOS 4.1.1 cc rejects this. */
10335 char const *const *ccp;
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
10344 const char *g = "string";
10345 ccp = &g + (g ? g-g : 0);
10346 /* HPUX 7.0 cc rejects these. */
10349 ccp = (char const *const *) p;
10350 { /* SCO 3.2v4 cc rejects this. */
10352 char const *s = 0 ? (char *) 0 : (char const *) 0;
10356 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10357 int x[] = {25, 17};
10358 const int *foo = &x[0];
10361 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10362 typedef const int *iptr;
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;
10371 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10372 const int foo = 10;
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382 (eval $ac_compile) 2>&5
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
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10399 rm -f conftest.$ac_objext conftest.$ac_ext
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
10405 cat >>confdefs.h <<\_ACEOF
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
10416 cat >conftest.$ac_ext <<_ACEOF
10417 #line $LINENO "configure"
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 $ac_includes_default
10429 if (sizeof (pid_t))
10435 rm -f conftest.$ac_objext
10436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10437 (eval $ac_compile) 2>&5
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
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 ac_cv_type_pid_t=yes
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10452 ac_cv_type_pid_t=no
10454 rm -f conftest.$ac_objext conftest.$ac_ext
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
10462 cat >>confdefs.h <<_ACEOF
10469 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
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
10477 cat >conftest.$ac_ext <<_ACEOF
10478 #line $LINENO "configure"
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10488 printf("%s", __func__);
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
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
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10515 echo "$as_me:$LINENO: result: $have_func" >&5
10516 echo "${ECHO_T}$have_func" >&6
10517 if test "$have_func" = yes; then
10519 cat >>confdefs.h <<\_ACEOF
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
10529 cat >conftest.$ac_ext <<_ACEOF
10530 #line $LINENO "configure"
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10540 printf("%s", __PRETTY_FUNCTION__);
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
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
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 have_pretty_function=yes
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 have_pretty_function=no
10564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
10571 cat >>confdefs.h <<\_ACEOF
10572 #define HAVE_PRETTY_FUNCTION
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
10581 cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10592 printf("%s", __FUNCTION__);
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
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
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10619 echo "$as_me:$LINENO: result: $have_function" >&5
10620 echo "${ECHO_T}$have_function" >&6
10621 if test "$have_function" = yes; then
10623 cat >>confdefs.h <<\_ACEOF
10624 #define HAVE_FUNCTION
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
10636 cat >conftest.$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
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>
10649 extern "C" void (*signal (int, void (*)(int)))(int);
10651 void (*signal ()) ();
10662 rm -f conftest.$ac_objext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10664 (eval $ac_compile) 2>&5
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
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_type_signal=void
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ac_cv_type_signal=int
10681 rm -f conftest.$ac_objext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10684 echo "${ECHO_T}$ac_cv_type_signal" >&6
10686 cat >>confdefs.h <<_ACEOF
10687 #define RETSIGTYPE $ac_cv_type_signal
10695 for ac_func in gethostname mkdir socket strdup
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
10703 cat >conftest.$ac_ext <<_ACEOF
10704 #line $LINENO "configure"
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. */
10715 # include <limits.h>
10717 # include <assert.h>
10719 /* Override any gcc2 internal prototype to avoid an error. */
10724 /* We use char because int might match the return type of a gcc2
10725 builtin and then its argument prototype would still apply. */
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)
10733 char (*f) () = $ac_func;
10742 return f != $ac_func;
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
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
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 eval "$as_ac_var=yes"
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 eval "$as_ac_var=no"
10766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
10780 for ac_func in getspnam getuserpw
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
10788 cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
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. */
10800 # include <limits.h>
10802 # include <assert.h>
10804 /* Override any gcc2 internal prototype to avoid an error. */
10809 /* We use char because int might match the return type of a gcc2
10810 builtin and then its argument prototype would still apply. */
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)
10818 char (*f) () = $ac_func;
10827 return f != $ac_func;
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
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
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 eval "$as_ac_var=yes"
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 eval "$as_ac_var=no"
10851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
10865 for ac_func in strlcat strlcpy
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
10873 cat >conftest.$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
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. */
10885 # include <limits.h>
10887 # include <assert.h>
10889 /* Override any gcc2 internal prototype to avoid an error. */
10894 /* We use char because int might match the return type of a gcc2
10895 builtin and then its argument prototype would still apply. */
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)
10903 char (*f) () = $ac_func;
10912 return f != $ac_func;
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
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
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 eval "$as_ac_var=yes"
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 eval "$as_ac_var=no"
10936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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"
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10960 #include <sys/types.h>
10962 #include <shadow.h>
10969 struct passwd pwbuf;
10971 (void) getpwnam_r("bin", &pwbuf, pwdata, sizeof(pwdata), &pw);
10977 rm -f conftest.$ac_objext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>&5
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
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
10992 cat >>confdefs.h <<\_ACEOF
10993 #define GETXXNAM_R_5ARG 1
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 echo "$as_me:$LINENO: result: no" >&5
11001 echo "${ECHO_T}no" >&6
11004 rm -f conftest.$ac_objext conftest.$ac_ext
11008 sasl_cv_getaddrinfo=no
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
11015 cat >conftest.$ac_ext <<_ACEOF
11016 #line $LINENO "configure"
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. */
11027 # include <limits.h>
11029 # include <assert.h>
11031 /* Override any gcc2 internal prototype to avoid an error. */
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)
11045 char (*f) () = getaddrinfo;
11054 return f != getaddrinfo;
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
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
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 ac_cv_func_getaddrinfo=yes
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 ac_cv_func_getaddrinfo=no
11078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
11092 ac_check_lib_save_LIBS=$LIBS
11093 LIBS="-lsocket $LIBS"
11094 cat >conftest.$ac_ext <<_ACEOF
11095 #line $LINENO "configure"
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11102 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_cv_lib_socket_getaddrinfo=yes
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 ac_cv_lib_socket_getaddrinfo=no
11136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
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
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
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
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
11162 if test x$ipv6_libinet6 = x; then
11164 SAVELDFLAGS="$LDFLAGS"
11165 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
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
11172 ac_check_lib_save_LIBS=$LIBS
11173 LIBS="-linet6 $LIBS"
11174 cat >conftest.$ac_ext <<_ACEOF
11175 #line $LINENO "configure"
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11182 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 ac_cv_lib_inet6_getaddrinfo=yes
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 ac_cv_lib_inet6_getaddrinfo=no
11216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
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
11224 LIBS="$LIBS -linet6"
11227 if test $ipv6_libinet6 = no; then
11228 LDFLAGS="$SAVELDFLAGS"
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
11238 ipv6_cv_getaddrinfo=yes
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"
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
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
11261 cat >conftest.$ac_ext <<_ACEOF
11262 #line $LINENO "configure"
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. */
11273 # include <limits.h>
11275 # include <assert.h>
11277 /* Override any gcc2 internal prototype to avoid an error. */
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)
11291 char (*f) () = ${ipv6_cv_pfx}getaddrinfo;
11300 return f != ${ipv6_cv_pfx}getaddrinfo;
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
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
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 eval "$as_ac_var=yes"
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11322 eval "$as_ac_var=no"
11324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11332 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
11334 cat >>confdefs.h <<\_ACEOF
11335 #define HAVE_GETADDRINFO
11338 ipv6_cv_getaddrinfo=yes
11344 if test $ipv6_cv_getaddrinfo = yes; then
11346 cat >>confdefs.h <<\_ACEOF
11347 #define HAVE_GETADDRINFO
11351 sasl_cv_getaddrinfo=yes
11353 if test $sasl_cv_getaddrinfo = yes; then
11354 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11358 sasl_cv_getnameinfo=no
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
11365 cat >conftest.$ac_ext <<_ACEOF
11366 #line $LINENO "configure"
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. */
11377 # include <limits.h>
11379 # include <assert.h>
11381 /* Override any gcc2 internal prototype to avoid an error. */
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)
11395 char (*f) () = getnameinfo;
11404 return f != getnameinfo;
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
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
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 ac_cv_func_getnameinfo=yes
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_cv_func_getnameinfo=no
11428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
11442 ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-lsocket $LIBS"
11444 cat >conftest.$ac_ext <<_ACEOF
11445 #line $LINENO "configure"
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11452 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 ac_cv_lib_socket_getnameinfo=yes
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 ac_cv_lib_socket_getnameinfo=no
11486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
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
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
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
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
11512 if test x$ipv6_libinet6 = x; then
11514 SAVELDFLAGS="$LDFLAGS"
11515 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
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
11522 ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-linet6 $LIBS"
11524 cat >conftest.$ac_ext <<_ACEOF
11525 #line $LINENO "configure"
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11532 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 ac_cv_lib_inet6_getnameinfo=yes
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11564 ac_cv_lib_inet6_getnameinfo=no
11566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
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
11574 LIBS="$LIBS -linet6"
11577 if test $ipv6_libinet6 = no; then
11578 LDFLAGS="$SAVELDFLAGS"
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
11588 ipv6_cv_getnameinfo=yes
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"
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
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
11611 cat >conftest.$ac_ext <<_ACEOF
11612 #line $LINENO "configure"
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. */
11623 # include <limits.h>
11625 # include <assert.h>
11627 /* Override any gcc2 internal prototype to avoid an error. */
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)
11641 char (*f) () = ${ipv6_cv_pfx}getnameinfo;
11650 return f != ${ipv6_cv_pfx}getnameinfo;
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
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
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 eval "$as_ac_var=yes"
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11672 eval "$as_ac_var=no"
11674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11682 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_GETADDRINFO
11688 ipv6_cv_getnameinfo=yes
11694 if test $ipv6_cv_getnameinfo = yes; then
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_GETNAMEINFO
11701 sasl_cv_getnameinfo=yes
11703 if test $sasl_cv_getnameinfo = yes; then
11704 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
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
11713 cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
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>
11725 struct sockaddr_storage ss; int i = ss.ss_family;
11730 rm -f conftest.$ac_objext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732 (eval $ac_compile) 2>&5
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
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 ipv6_cv_ss_family=yes
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ipv6_cv_ss_family=no
11749 rm -f conftest.$ac_objext conftest.$ac_ext
11751 if test $ipv6_cv_ss_family = yes; then
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_SS_FAMILY
11760 echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
11761 echo "${ECHO_T}$ipv6_cv_ss_family" >&6
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
11768 cat >conftest.$ac_ext <<_ACEOF
11769 #line $LINENO "configure"
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>
11780 struct sockaddr sa; int i = sa.sa_len;
11785 rm -f conftest.$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>&5
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
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11804 rm -f conftest.$ac_objext conftest.$ac_ext
11806 if test $ipv6_cv_sa_len = yes; then
11808 cat >>confdefs.h <<\_ACEOF
11809 #define HAVE_SOCKADDR_SA_LEN
11815 echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
11816 echo "${ECHO_T}$ipv6_cv_sa_len" >&6
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
11823 cat >conftest.$ac_ext <<_ACEOF
11824 #line $LINENO "configure"
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>
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
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
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ipv6_cv_socklen_t=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ipv6_cv_socklen_t=no
11859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11861 if test $ipv6_cv_socklen_t = yes; then
11863 cat >>confdefs.h <<\_ACEOF
11864 #define HAVE_SOCKLEN_T
11870 echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
11871 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11874 #line $LINENO "configure"
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 #include <sys/socket.h>
11883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11884 $EGREP "sockaddr_storage" >/dev/null 2>&1; then
11886 cat >>confdefs.h <<\_ACEOF
11887 #define HAVE_STRUCT_SOCKADDR_STORAGE
11900 ac_config_headers="$ac_config_headers saslauthd.h"
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.
11911 # config.status only pays attention to the cache file if you give it
11912 # the --recheck option to rerun configure.
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.
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.
11927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11929 # `set' does not quote correctly, so add quotes (double-quote
11930 # substitution turns \\\\ into \\, and sed turns \\ into \).
11933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11936 # `set' quotes correctly as required by POSIX, so do not add quotes.
11938 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11947 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
11954 echo "not updating unwritable cache $cache_file"
11959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11960 # Let make expand exec_prefix.
11961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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}:*/:/;
11972 s/^\([^=]*=[ ]*\):*/\1/;
11978 DEFS=-DHAVE_CONFIG_H
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$//'`
11987 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11988 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11990 LIBOBJS=$ac_libobjs
11992 LTLIBOBJS=$ac_ltlibobjs
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; }; }
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; }; }
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; }; }
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
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.
12030 ac_cs_recheck=false
12032 SHELL=\${CONFIG_SHELL-$SHELL}
12035 cat >>$CONFIG_STATUS <<\_ACEOF
12036 ## --------------------- ##
12037 ## M4sh Initialization. ##
12038 ## --------------------- ##
12040 # Be Bourne compatible
12041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
12051 # Support unset when possible.
12052 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12059 # Work around bugs in pre-3.0 UWIN ksh.
12060 $as_unset ENV MAIL MAILPATH
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
12071 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12072 eval $as_var=C; export $as_var
12078 # Required to use basename.
12079 if expr a : '\(a\)' >/dev/null 2>&1; then
12085 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12086 as_basename=basename
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 ||
12099 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12100 /^X\/\(\/\/\)$/{ s//\1/; q; }
12101 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
12118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
12135 *[\\/]* ) as_myself=$0 ;;
12136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12140 test -z "$as_dir" && as_dir=.
12141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
12156 case $CONFIG_SHELL in
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12162 test -z "$as_dir" && as_dir=.
12163 for as_base in sh bash ksh sh5; do
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+"$@"}
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 |
12197 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
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; }; }
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).
12211 # Exit status is that of the last command.
12216 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12217 *c*,-n*) ECHO_N= ECHO_C='
12219 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12220 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12223 if expr a : '\(a\)' >/dev/null 2>&1; then
12229 rm -f conf$$ conf$$.exe 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
12240 elif ln conf$$.file conf$$ 2>/dev/null; then
12245 rm -f conf$$ conf$$.exe conf$$.file
12247 if mkdir -p . 2>/dev/null; then
12253 as_executable_p="test -f"
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"
12258 # Sed expression to map a string onto a valid variable name.
12259 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12263 # We need space, tab and new line, in precisely that order.
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.
12279 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12280 ## Running $as_me. ##
12285 This file was extended by $as_me, which was
12286 generated by GNU Autoconf 2.57. Invocation command line was
12288 CONFIG_FILES = $CONFIG_FILES
12289 CONFIG_HEADERS = $CONFIG_HEADERS
12290 CONFIG_LINKS = $CONFIG_LINKS
12291 CONFIG_COMMANDS = $CONFIG_COMMANDS
12295 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
12304 if test -n "$ac_config_headers"; then
12305 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12308 if test -n "$ac_config_links"; then
12309 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12312 if test -n "$ac_config_commands"; then
12313 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12316 cat >>$CONFIG_STATUS <<\_ACEOF
12319 \`$as_me' instantiates files from templates according to the
12320 current configuration.
12322 Usage: $0 [OPTIONS] [FILE]...
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
12334 Configuration files:
12337 Configuration headers:
12340 Configuration commands:
12343 Report bugs to <bug-autoconf@gnu.org>."
12346 cat >>$CONFIG_STATUS <<_ACEOF
12349 configured by $0, generated by GNU Autoconf 2.57,
12350 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
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."
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.
12368 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12369 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12377 *) # This is not an option, so the user has probably given explicit
12380 ac_need_defaults=false;;
12384 # Handling of the options.
12386 cat >>$CONFIG_STATUS <<\_ACEOF
12387 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12389 --version | --vers* | -V )
12390 echo "$ac_cs_version"; exit 0 ;;
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 )
12402 --file | --fil | --fi | --f )
12404 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12405 ac_need_defaults=false;;
12406 --header | --heade | --head | --hea )
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)
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; }; } ;;
12421 *) ac_config_targets="$ac_config_targets $1" ;;
12427 ac_configure_extra_args=
12429 if $ac_cs_silent; then
12431 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
12443 cat >>$CONFIG_STATUS <<_ACEOF
12445 # INIT-COMMANDS section.
12448 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12454 cat >>$CONFIG_STATUS <<\_ACEOF
12455 for ac_config_target in $ac_config_targets
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; }; };;
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
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.
12484 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12485 trap '{ (exit 1); exit 1; }' 1 2 13 15
12488 # Create a (secure) tmp directory for tmp files.
12491 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12492 test -n "$tmp" && test -d "$tmp"
12495 tmp=./confstat$$-$RANDOM
12496 (umask 077 && mkdir $tmp)
12499 echo "$me: cannot create a temporary directory in ." >&2
12500 { (exit 1); exit 1; }
12505 cat >>$CONFIG_STATUS <<_ACEOF
12508 # CONFIG_FILES section.
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
12574 s,@SET_MAKE@,$SET_MAKE,;t t
12575 s,@am__leading_dot@,$am__leading_dot,;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
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
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.
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
12631 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12633 if test ! -s $tmp/subs.frag; then
12634 ac_more_lines=false
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.
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"
12645 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12647 ac_sed_frag=`expr $ac_sed_frag + 1`
12649 ac_end=`expr $ac_end + $ac_max_sed_lines`
12652 if test -z "$ac_sed_cmds"; then
12655 fi # test -n "$CONFIG_FILES"
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".
12662 - | *:- | *:-:* ) # input from 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 ;;
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 ||
12679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12681 /^X\(\/\/\)$/{ s//\1/; q; }
12682 /^X\(\/\).*/{ s//\1/; q; }
12684 { if $as_mkdir_p; then
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 ||
12698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12700 /^X\(\/\/\)$/{ s//\1/; q; }
12701 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
12716 ac_dir_suffix= ac_top_builddir=
12720 .) # No --srcdir option. We are building in place.
12722 if test -z "$ac_top_builddir"; then
12725 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
12734 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
12743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12744 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
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;}
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
12758 configure_input="$ac_file. "
12760 configure_input=$configure_input"Generated from `echo $ac_file_in |
12761 sed 's,.*/,,'` by configure."
12763 # First look for the input files in the build tree, otherwise in the
12765 ac_file_inputs=`IFS=:
12766 for f in $ac_file_in; do
12768 -) echo $tmp/stdin ;;
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; }; }
12776 if test -f "$f"; then
12779 elif test -f "$srcdir/$f"; then
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; }; }
12789 done` || { (exit 1); exit 1; }
12791 cat >>$CONFIG_STATUS <<_ACEOF
12795 cat >>$CONFIG_STATUS <<\_ACEOF
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
12810 if test x"$ac_file" != x-; then
12811 mv $tmp/out $ac_file
12819 cat >>$CONFIG_STATUS <<\_ACEOF
12822 # CONFIG_HEADER section.
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.
12828 # ac_d sets the value in "#define NAME VALUE" lines.
12829 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12830 ac_dB='[ ].*$,\1#\2'
12833 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12834 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12835 ac_uB='$,\1#\2define\3'
12839 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12842 - | *:- | *:-:* ) # input from 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 ;;
12851 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12852 echo "$as_me: creating $ac_file" >&6;}
12854 # First look for the input files in the build tree, otherwise in the
12856 ac_file_inputs=`IFS=:
12857 for f in $ac_file_in; do
12859 -) echo $tmp/stdin ;;
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; }; }
12867 if test -f "$f"; then
12870 elif test -f "$srcdir/$f"; then
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; }; }
12880 done` || { (exit 1); exit 1; }
12881 # Remove the trailing spaces.
12882 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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.
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
12905 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12907 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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
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]*,/* & */,
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
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
12942 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12944 mv $tmp/out $tmp/in
12946 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12947 rm -f conftest.defines
12948 mv conftest.tail conftest.defines
12950 rm -f conftest.defines
12951 echo ' fi # grep' >>$CONFIG_STATUS
12952 echo >>$CONFIG_STATUS
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
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
12969 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12971 mv $tmp/out $tmp/in
12973 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12974 rm -f conftest.undefs
12975 mv conftest.tail conftest.undefs
12977 rm -f conftest.undefs
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
12986 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12988 cat $tmp/in >>$tmp/config.h
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;}
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 ||
13002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13004 /^X\(\/\/\)$/{ s//\1/; q; }
13005 /^X\(\/\).*/{ s//\1/; q; }
13007 { if $as_mkdir_p; then
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 ||
13021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13023 /^X\(\/\/\)$/{ s//\1/; q; }
13024 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
13033 mv $tmp/config.h $ac_file
13037 rm -f $tmp/config.h
13039 # Compute $ac_file's index in $config_headers.
13041 for _am_header in $config_headers :; do
13042 case $_am_header in
13043 $ac_file | $ac_file:* )
13046 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
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 ||
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
13063 cat >>$CONFIG_STATUS <<\_ACEOF
13066 # CONFIG_COMMANDS section.
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 ||
13078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13080 /^X\(\/\/\)$/{ s//\1/; q; }
13081 /^X\(\/\).*/{ s//\1/; q; }
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'`
13090 ac_dir_suffix= ac_top_builddir=
13094 .) # No --srcdir option. We are building in place.
13096 if test -z "$ac_top_builddir"; then
13099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
13108 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
13116 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13117 echo "$as_me: executing $ac_dest commands" >&6;}
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 ||
13136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13138 /^X\(\/\/\)$/{ s//\1/; q; }
13139 /^X\(\/\).*/{ s//\1/; q; }
13144 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13145 # Extract the definition of DEP_FILES from the Makefile without
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 = .*\\\\$/ {
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 ||
13175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13177 /^X\(\/\/\)$/{ s//\1/; q; }
13178 /^X\(\/\).*/{ s//\1/; q; }
13180 { if $as_mkdir_p; then
13181 mkdir -p $dirpart/$fdir
13183 as_dir=$dirpart/$fdir
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 ||
13194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13196 /^X\(\/\/\)$/{ s//\1/; q; }
13197 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
13205 # echo "creating $dirpart/$file"
13206 echo '# dummy' > "$dirpart/$file"
13214 cat >>$CONFIG_STATUS <<\_ACEOF
13216 { (exit 0); exit 0; }
13218 chmod +x $CONFIG_STATUS
13219 ac_clean_files=$ac_clean_files_save
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
13232 ac_config_status_args=
13233 test "$silent" = yes &&
13234 ac_config_status_args="$ac_config_status_args --quiet"
13236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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; }