2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="mechanisms.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
677 INSTALL_STRIP_PROGRAM
716 SASL_DB_BACKEND_STATIC
725 ac_precious_vars='build_alias
736 # Initialize some variables set by options.
738 ac_init_version=false
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
748 program_transform_name=s,x,x,
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir='${exec_prefix}/bin'
763 sbindir='${exec_prefix}/sbin'
764 libexecdir='${exec_prefix}/libexec'
765 datarootdir='${prefix}/share'
766 datadir='${datarootdir}'
767 sysconfdir='${prefix}/etc'
768 sharedstatedir='${prefix}/com'
769 localstatedir='${prefix}/var'
770 includedir='${prefix}/include'
771 oldincludedir='/usr/include'
772 docdir='${datarootdir}/doc/${PACKAGE}'
773 infodir='${datarootdir}/info'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 # Accept the important Cygnus configure options, so we can diagnose typos.
800 case $ac_dashdash$ac_option in
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 -build | --build | --buil | --bui | --bu)
810 ac_prev=build_alias ;;
811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812 build_alias=$ac_optarg ;;
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819 cache_file=$ac_optarg ;;
822 cache_file=config.cache ;;
824 -datadir | --datadir | --datadi | --datad)
826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
827 datadir=$ac_optarg ;;
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
836 -disable-* | --disable-*)
837 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_$ac_feature=no ;;
845 -docdir | --docdir | --docdi | --doc | --do)
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 -enable-* | --enable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=\$ac_optarg ;;
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
877 -help | --help | --hel | --he | -h)
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 htmldir=$ac_optarg ;;
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
907 -libdir | --libdir | --libdi | --libd)
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
919 -localedir | --localedir | --localedi | --localed | --locale)
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 # Obsolete; use --without-fp.
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 -psdir | --psdir | --psdi | --psd | --ps)
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 sbindir=$ac_optarg ;;
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 sharedstatedir=$ac_optarg ;;
1024 -site | --site | --sit)
1026 -site=* | --site=* | --sit=*)
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1053 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1059 eval with_$ac_package=\$ac_optarg ;;
1061 -without-* | --without-*)
1062 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=no ;;
1071 # Obsolete; use --with-x.
1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1075 | --x-incl | --x-inc | --x-in | --x-i)
1076 ac_prev=x_includes ;;
1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1079 x_includes=$ac_optarg ;;
1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1083 ac_prev=x_libraries ;;
1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1086 x_libraries=$ac_optarg ;;
1088 -*) { echo "$as_me: error: unrecognized option: $ac_option
1089 Try \`$0 --help' for more information." >&2
1090 { (exit 1); exit 1; }; }
1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1098 { (exit 1); exit 1; }; }
1099 eval $ac_envvar=\$ac_optarg
1100 export $ac_envvar ;;
1103 # FIXME: should be removed in autoconf 3.0.
1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 if test -n "$ac_prev"; then
1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1115 { echo "$as_me: error: missing argument to $ac_option" >&2
1116 { (exit 1); exit 1; }; }
1119 # Be sure to have absolute directory names.
1120 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1125 eval ac_val=\$$ac_var
1127 [\\/$]* | ?:[\\/]* ) continue;;
1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1131 { (exit 1); exit 1; }; }
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1139 target=$target_alias
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155 test "$silent" = yes && exec 6>/dev/null
1158 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di=`ls -di .` &&
1160 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 { echo "$as_me: error: Working directory cannot be determined" >&2
1162 { (exit 1); exit 1; }; }
1163 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 { echo "$as_me: error: pwd does not report name of working directory" >&2
1165 { (exit 1); exit 1; }; }
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir=`$as_dirname -- "$0" ||
1173 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$0" : 'X\(//\)[^/]' \| \
1175 X"$0" : 'X\(//\)$' \| \
1176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1200 ac_srcdir_defaulted=no
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1205 { (exit 1); exit 1; }; }
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1210 { (exit 1); exit 1; }; }
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1230 # Report the --help message.
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1236 \`configure' configures this package to adapt to many kinds of systems.
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1243 Defaults for the options are specified in brackets.
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1267 For better control, use the options below.
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
1294 --program-prefix=PREFIX prepend PREFIX to installed program names
1295 --program-suffix=SUFFIX append SUFFIX to installed program names
1296 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299 --build=BUILD configure for building on BUILD [guessed]
1300 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1304 if test -n "$ac_init_help"; then
1309 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1310 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1311 --disable-dependency-tracking speeds up one-time build
1312 --enable-dependency-tracking do not reject slow dependency extractors
1313 --enable-krb4 enable KERBEROS_V4 authentication [no]
1314 --enable-gssapi=<DIR> enable GSSAPI authentication [yes]
1315 --enable-sia enable SIA authentication no
1316 --enable-auth-sasldb enable experimental SASLdb authentication module no
1317 --enable-httpform enable HTTP form authentication [no]
1320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1322 --with-saslauthd=DIR enable use of the saslauth daemon using state dir DIR
1323 --with-lib-subdir=DIR Find libraries in DIR instead of lib
1324 --with-openssl=PATH use OpenSSL from PATH
1325 --with-des=DIR with DES (look in DIR) yes
1326 --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1327 choose specific GSSAPI implementation [[auto]]
1328 --with-dbpath=PATH set the DB path to use /etc/sasldb2
1329 --with-dblib=DBLIB set the DB library to use berkeley
1330 --with-bdb-libdir=DIR Berkeley DB lib files are in DIR
1331 --with-bdb-incdir=DIR Berkeley DB include files are in DIR
1332 --with-gdbm=PATH use gdbm from PATH
1333 --with-pam=DIR use PAM (rooted in DIR) yes
1334 --with-ipctype={unix,doors} use ipctype unix
1335 --with-ldap=DIR use LDAP (in DIR) no
1337 Some influential environment variables:
1338 CC C compiler command
1339 CFLAGS C compiler flags
1340 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1341 nonstandard directory <lib dir>
1342 LIBS libraries to pass to the linker, e.g. -l<library>
1343 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1344 you have headers in a nonstandard directory <include dir>
1347 Use these variables to override the choices made by `configure' or to help
1348 it to find libraries and programs with nonstandard names/locations.
1354 if test "$ac_init_help" = "recursive"; then
1355 # If there are subdirs, report their specific --help.
1356 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1357 test -d "$ac_dir" || continue
1361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1364 # A ".." for each directory in $ac_dir_suffix.
1365 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1366 case $ac_top_builddir_sub in
1367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1371 ac_abs_top_builddir=$ac_pwd
1372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1373 # for backward compatibility:
1374 ac_top_builddir=$ac_top_build_prefix
1377 .) # We are building in place.
1379 ac_top_srcdir=$ac_top_builddir_sub
1380 ac_abs_top_srcdir=$ac_pwd ;;
1381 [\\/]* | ?:[\\/]* ) # Absolute name.
1382 ac_srcdir=$srcdir$ac_dir_suffix;
1383 ac_top_srcdir=$srcdir
1384 ac_abs_top_srcdir=$srcdir ;;
1386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1387 ac_top_srcdir=$ac_top_build_prefix$srcdir
1388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1392 cd "$ac_dir" || { ac_status=$?; continue; }
1393 # Check for guested configure.
1394 if test -f "$ac_srcdir/configure.gnu"; then
1396 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1397 elif test -f "$ac_srcdir/configure"; then
1399 $SHELL "$ac_srcdir/configure" --help=recursive
1401 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1403 cd "$ac_pwd" || { ac_status=$?; break; }
1407 test -n "$ac_init_help" && exit $ac_status
1408 if $ac_init_version; then
1411 generated by GNU Autoconf 2.61
1413 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1414 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1415 This configure script is free software; the Free Software Foundation
1416 gives unlimited permission to copy, distribute and modify it.
1420 cat >config.log <<_ACEOF
1421 This file contains any messages produced by compilers while
1422 running configure, to aid debugging if configure makes a mistake.
1424 It was created by $as_me, which was
1425 generated by GNU Autoconf 2.61. Invocation command line was
1437 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1438 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1439 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1440 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1441 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1443 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1444 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1446 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1447 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1448 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1449 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1450 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1451 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1452 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir=.
1461 echo "PATH: $as_dir"
1477 # Keep a trace of the command line.
1478 # Strip out --no-create and --no-recursion so they do not pile up.
1479 # Strip out --silent because we don't want to record it for future runs.
1480 # Also quote any args containing shell meta-characters.
1481 # Make two passes to allow for proper duplicate-argument suppression.
1485 ac_must_keep_next=false
1491 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1493 | -silent | --silent | --silen | --sile | --sil)
1496 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1499 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1501 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1502 if test $ac_must_keep_next = true; then
1503 ac_must_keep_next=false # Got value, back to normal.
1506 *=* | --config-cache | -C | -disable-* | --disable-* \
1507 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1508 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1509 | -with-* | --with-* | -without-* | --without-* | --x)
1510 case "$ac_configure_args0 " in
1511 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1514 -* ) ac_must_keep_next=true ;;
1517 ac_configure_args="$ac_configure_args '$ac_arg'"
1522 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1523 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1525 # When interrupted or exit'd, cleanup temporary files, and complete
1526 # config.log. We remove comments because anyway the quotes in there
1527 # would cause problems or look ugly.
1528 # WARNING: Use '\'' to represent an apostrophe within the trap.
1529 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1530 trap 'exit_status=$?
1531 # Save into config.log some information that might help in debugging.
1536 ## ---------------- ##
1537 ## Cache variables. ##
1538 ## ---------------- ##
1541 # The following way of writing the cache mishandles newlines in values,
1543 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1544 eval ac_val=\$$ac_var
1548 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1549 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1552 _ | IFS | as_nl) ;; #(
1553 *) $as_unset $ac_var ;;
1558 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1559 *${as_nl}ac_space=\ *)
1561 "s/'\''/'\''\\\\'\'''\''/g;
1562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1573 ## ----------------- ##
1574 ## Output variables. ##
1575 ## ----------------- ##
1578 for ac_var in $ac_subst_vars
1580 eval ac_val=\$$ac_var
1582 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1584 echo "$ac_var='\''$ac_val'\''"
1588 if test -n "$ac_subst_files"; then
1590 ## ------------------- ##
1591 ## File substitutions. ##
1592 ## ------------------- ##
1595 for ac_var in $ac_subst_files
1597 eval ac_val=\$$ac_var
1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601 echo "$ac_var='\''$ac_val'\''"
1606 if test -s confdefs.h; then
1616 test "$ac_signal" != 0 &&
1617 echo "$as_me: caught signal $ac_signal"
1618 echo "$as_me: exit $exit_status"
1620 rm -f core *.core core.conftest.* &&
1621 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1624 for ac_signal in 1 2 13 15; do
1625 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1629 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1630 rm -f -r conftest* confdefs.h
1632 # Predefined preprocessor variables.
1634 cat >>confdefs.h <<_ACEOF
1635 #define PACKAGE_NAME "$PACKAGE_NAME"
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_STRING "$PACKAGE_STRING"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1659 # Let the site file select an alternate cache file if it wants to.
1660 # Prefer explicitly selected file to automatically selected ones.
1661 if test -n "$CONFIG_SITE"; then
1662 set x "$CONFIG_SITE"
1663 elif test "x$prefix" != xNONE; then
1664 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1666 set x "$ac_default_prefix/share/config.site" \
1667 "$ac_default_prefix/etc/config.site"
1672 if test -r "$ac_site_file"; then
1673 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1674 echo "$as_me: loading site script $ac_site_file" >&6;}
1675 sed 's/^/| /' "$ac_site_file" >&5
1680 if test -r "$cache_file"; then
1681 # Some versions of bash will fail to source /dev/null (special
1682 # files actually), so we avoid doing that.
1683 if test -f "$cache_file"; then
1684 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1685 echo "$as_me: loading cache $cache_file" >&6;}
1687 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1688 *) . "./$cache_file";;
1692 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1693 echo "$as_me: creating cache $cache_file" >&6;}
1697 # Check that the precious variables saved in the cache have kept the same
1699 ac_cache_corrupted=false
1700 for ac_var in $ac_precious_vars; do
1701 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1702 eval ac_new_set=\$ac_env_${ac_var}_set
1703 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1704 eval ac_new_val=\$ac_env_${ac_var}_value
1705 case $ac_old_set,$ac_new_set in
1707 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1708 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1709 ac_cache_corrupted=: ;;
1711 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1712 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1713 ac_cache_corrupted=: ;;
1716 if test "x$ac_old_val" != "x$ac_new_val"; then
1717 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1718 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1719 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1720 echo "$as_me: former value: $ac_old_val" >&2;}
1721 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1722 echo "$as_me: current value: $ac_new_val" >&2;}
1723 ac_cache_corrupted=:
1726 # Pass precious variables to config.status.
1727 if test "$ac_new_set" = set; then
1729 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1730 *) ac_arg=$ac_var=$ac_new_val ;;
1732 case " $ac_configure_args " in
1733 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1734 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1738 if $ac_cache_corrupted; then
1739 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1740 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1741 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1742 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1743 { (exit 1); exit 1; }; }
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772 for ac_dir in config "$srcdir"/config; do
1773 if test -f "$ac_dir/install-sh"; then
1775 ac_install_sh="$ac_aux_dir/install-sh -c"
1777 elif test -f "$ac_dir/install.sh"; then
1779 ac_install_sh="$ac_aux_dir/install.sh -c"
1781 elif test -f "$ac_dir/shtool"; then
1783 ac_install_sh="$ac_aux_dir/shtool install -c"
1787 if test -z "$ac_aux_dir"; then
1788 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1789 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1790 { (exit 1); exit 1; }; }
1793 # These three variables are undocumented and unsupported,
1794 # and are intended to be withdrawn in a future Autoconf release.
1795 # They can cause serious problems if a builder's source tree is in a directory
1796 # whose full name contains unusual characters.
1797 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1798 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1799 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1802 # Make sure we can run config.sub.
1803 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1804 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1805 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1806 { (exit 1); exit 1; }; }
1808 { echo "$as_me:$LINENO: checking build system type" >&5
1809 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1810 if test "${ac_cv_build+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 ac_build_alias=$build_alias
1814 test "x$ac_build_alias" = x &&
1815 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1816 test "x$ac_build_alias" = x &&
1817 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1818 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1819 { (exit 1); exit 1; }; }
1820 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1821 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1822 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1823 { (exit 1); exit 1; }; }
1826 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1827 echo "${ECHO_T}$ac_cv_build" >&6; }
1828 case $ac_cv_build in
1830 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1831 echo "$as_me: error: invalid value of canonical build" >&2;}
1832 { (exit 1); exit 1; }; };;
1835 ac_save_IFS=$IFS; IFS='-'
1841 # Remember, the first character of IFS is used to create $*,
1842 # except with old shells:
1845 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1848 { echo "$as_me:$LINENO: checking host system type" >&5
1849 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1850 if test "${ac_cv_host+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 if test "x$host_alias" = x; then
1854 ac_cv_host=$ac_cv_build
1856 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1857 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1858 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1859 { (exit 1); exit 1; }; }
1863 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1864 echo "${ECHO_T}$ac_cv_host" >&6; }
1867 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1868 echo "$as_me: error: invalid value of canonical host" >&2;}
1869 { (exit 1); exit 1; }; };;
1872 ac_save_IFS=$IFS; IFS='-'
1878 # Remember, the first character of IFS is used to create $*,
1879 # except with old shells:
1882 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1887 # Check whether --with-saslauthd was given.
1888 if test "${with_saslauthd+set}" = set; then
1889 withval=$with_saslauthd; with_saslauthd=$withval
1894 if test "$with_saslauthd" = yes; then
1895 with_saslauthd="/var/state/saslauthd"
1898 cat >>confdefs.h <<\_ACEOF
1899 #define HAVE_SASLAUTHD
1903 cat >>confdefs.h <<_ACEOF
1904 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
1907 if test "$with_saslauthd" != no; then
1916 am__api_version='1.10'
1918 # Find a good install program. We prefer a C program (faster),
1919 # so one script is as good as another. But avoid the broken or
1920 # incompatible versions:
1921 # SysV /etc/install, /usr/sbin/install
1922 # SunOS /usr/etc/install
1923 # IRIX /sbin/install
1925 # AmigaOS /C/install, which installs bootblocks on floppy discs
1926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1929 # OS/2's system install, which has a completely different semantic
1930 # ./install, which can be erroneously created by make from ./install.sh.
1931 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1933 if test -z "$INSTALL"; then
1934 if test "${ac_cv_path_install+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 # Account for people who put trailing slashes in PATH elements.
1944 ./ | .// | /cC/* | \
1945 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1946 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1949 # OSF1 and SCO ODT 3.0 have their own names for install.
1950 # Don't use installbsd from OSF since it installs stuff as root
1952 for ac_prog in ginstall scoinst install; do
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1955 if test $ac_prog = install &&
1956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1957 # AIX install. It has an incompatible calling convention.
1959 elif test $ac_prog = install &&
1960 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1961 # program-specific install script used by HP pwplus--don't use.
1964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1977 if test "${ac_cv_path_install+set}" = set; then
1978 INSTALL=$ac_cv_path_install
1980 # As a last resort, use the slow shell script. Don't cache a
1981 # value for INSTALL within a source directory, because that will
1982 # break other packages using the cache if that directory is
1983 # removed, or if the value is a relative name.
1984 INSTALL=$ac_install_sh
1987 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1988 echo "${ECHO_T}$INSTALL" >&6; }
1990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1991 # It thinks the first close brace ends the variable substitution.
1992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1998 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1999 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2002 echo timestamp > conftest.file
2003 # Do `set' in a subshell so we don't clobber the current shell's
2004 # arguments. Must try -L first in case configure is actually a
2005 # symlink; some systems play weird games with the mod time of symlinks
2006 # (eg FreeBSD returns the mod time of the symlink's containing
2009 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2010 if test "$*" = "X"; then
2012 set X `ls -t $srcdir/configure conftest.file`
2015 if test "$*" != "X $srcdir/configure conftest.file" \
2016 && test "$*" != "X conftest.file $srcdir/configure"; then
2018 # If neither matched, then we have a broken ls. This can happen
2019 # if, for instance, CONFIG_SHELL is bash and it inherits a
2020 # broken ls alias from the environment. This has actually
2021 # happened. Such a system could not be considered "sane".
2022 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2023 alias in your environment" >&5
2024 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2025 alias in your environment" >&2;}
2026 { (exit 1); exit 1; }; }
2029 test "$2" = conftest.file
2035 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2036 Check your system clock" >&5
2037 echo "$as_me: error: newly created file is older than distributed files!
2038 Check your system clock" >&2;}
2039 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: result: yes" >&5
2042 echo "${ECHO_T}yes" >&6; }
2043 test "$program_prefix" != NONE &&
2044 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2045 # Use a double $ so make ignores it.
2046 test "$program_suffix" != NONE &&
2047 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2048 # Double any \ or $. echo might interpret backslashes.
2049 # By default was `s,x,x', remove it if useless.
2050 cat <<\_ACEOF >conftest.sed
2051 s/[\\$]/&&/g;s/;s,x,x,$//
2053 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2056 # expand $ac_aux_dir to an absolute path
2057 am_aux_dir=`cd $ac_aux_dir && pwd`
2059 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2060 # Use eval to expand $SHELL
2061 if eval "$MISSING --run true"; then
2062 am_missing_run="$MISSING --run "
2065 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2066 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2069 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2070 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2071 if test -z "$MKDIR_P"; then
2072 if test "${ac_cv_path_mkdir+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2079 test -z "$as_dir" && as_dir=.
2080 for ac_prog in mkdir gmkdir; do
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2083 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2084 'mkdir (GNU coreutils) '* | \
2085 'mkdir (coreutils) '* | \
2086 'mkdir (fileutils) '4.1*)
2087 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2097 if test "${ac_cv_path_mkdir+set}" = set; then
2098 MKDIR_P="$ac_cv_path_mkdir -p"
2100 # As a last resort, use the slow shell script. Don't cache a
2101 # value for MKDIR_P within a source directory, because that will
2102 # break other packages using the cache if that directory is
2103 # removed, or if the value is a relative name.
2104 test -d ./--version && rmdir ./--version
2105 MKDIR_P="$ac_install_sh -d"
2108 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2109 echo "${ECHO_T}$MKDIR_P" >&6; }
2113 [\\/$]* | ?:[\\/]*) ;;
2114 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2117 for ac_prog in gawk mawk nawk awk
2119 # Extract the first word of "$ac_prog", so it can be a program name with args.
2120 set dummy $ac_prog; ac_word=$2
2121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2123 if test "${ac_cv_prog_AWK+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 if test -n "$AWK"; then
2127 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 test -z "$as_dir" && as_dir=.
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2136 ac_cv_prog_AWK="$ac_prog"
2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 if test -n "$AWK"; then
2148 { echo "$as_me:$LINENO: result: $AWK" >&5
2149 echo "${ECHO_T}$AWK" >&6; }
2151 { echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6; }
2156 test -n "$AWK" && break
2159 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2160 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2161 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2162 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 cat >conftest.make <<\_ACEOF
2168 @echo '@@@%%%=$(MAKE)=@@@%%%'
2170 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2171 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2173 eval ac_cv_prog_make_${ac_make}_set=yes;;
2175 eval ac_cv_prog_make_${ac_make}_set=no;;
2179 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2180 { echo "$as_me:$LINENO: result: yes" >&5
2181 echo "${ECHO_T}yes" >&6; }
2184 { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2186 SET_MAKE="MAKE=${MAKE-make}"
2189 rm -rf .tst 2>/dev/null
2190 mkdir .tst 2>/dev/null
2191 if test -d .tst; then
2196 rmdir .tst 2>/dev/null
2198 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2199 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2200 # is not polluted with repeated "-I."
2201 am__isrc=' -I$(srcdir)'
2202 # test to see if srcdir already configured
2203 if test -f $srcdir/config.status; then
2204 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2205 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2206 { (exit 1); exit 1; }; }
2210 # test whether we have cygpath
2211 if test -z "$CYGPATH_W"; then
2212 if (cygpath --version) >/dev/null 2>/dev/null; then
2213 CYGPATH_W='cygpath -w'
2220 # Define the identity of the package.
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE "$PACKAGE"
2230 cat >>confdefs.h <<_ACEOF
2231 #define VERSION "$VERSION"
2234 # Some tools Automake needs.
2236 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2239 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2242 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2245 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2248 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2250 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2252 # Installed binaries are usually stripped using `strip' when the user
2253 # run `make install-strip'. However `strip' might not be the right
2254 # tool to use in cross-compilation environments, therefore Automake
2255 # will honor the `STRIP' environment variable to overrule this program.
2256 if test "$cross_compiling" != no; then
2257 if test -n "$ac_tool_prefix"; then
2258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2259 set dummy ${ac_tool_prefix}strip; ac_word=$2
2260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2262 if test "${ac_cv_prog_STRIP+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 if test -n "$STRIP"; then
2266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 STRIP=$ac_cv_prog_STRIP
2286 if test -n "$STRIP"; then
2287 { echo "$as_me:$LINENO: result: $STRIP" >&5
2288 echo "${ECHO_T}$STRIP" >&6; }
2290 { echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6; }
2296 if test -z "$ac_cv_prog_STRIP"; then
2298 # Extract the first word of "strip", so it can be a program name with args.
2299 set dummy strip; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 if test -n "$ac_ct_STRIP"; then
2306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_ac_ct_STRIP="strip"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2326 if test -n "$ac_ct_STRIP"; then
2327 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2328 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2330 { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2334 if test "x$ac_ct_STRIP" = x; then
2337 case $cross_compiling:$ac_tool_warned in
2339 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2340 whose name does not start with the host triplet. If you think this
2341 configuration is useful to you, please write to autoconf@gnu.org." >&5
2342 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2343 whose name does not start with the host triplet. If you think this
2344 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2345 ac_tool_warned=yes ;;
2350 STRIP="$ac_cv_prog_STRIP"
2354 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2356 # We need awk for the "check" target. The system "awk" is bad on
2358 # Always define AMTAR for backward compatibility.
2360 AMTAR=${AMTAR-"${am_missing_run}tar"}
2362 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2370 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378 if test -n "$ac_tool_prefix"; then
2379 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2380 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC="$CC" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 if test -n "$CC"; then
2408 { echo "$as_me:$LINENO: result: $CC" >&5
2409 echo "${ECHO_T}$CC" >&6; }
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2417 if test -z "$ac_cv_prog_CC"; then
2419 # Extract the first word of "gcc", so it can be a program name with args.
2420 set dummy gcc; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 if test -n "$ac_ct_CC"; then
2427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436 ac_cv_prog_ac_ct_CC="gcc"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2447 if test -n "$ac_ct_CC"; then
2448 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2449 echo "${ECHO_T}$ac_ct_CC" >&6; }
2451 { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2455 if test "x$ac_ct_CC" = x; then
2458 case $cross_compiling:$ac_tool_warned in
2460 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2461 whose name does not start with the host triplet. If you think this
2462 configuration is useful to you, please write to autoconf@gnu.org." >&5
2463 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2464 whose name does not start with the host triplet. If you think this
2465 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2466 ac_tool_warned=yes ;;
2474 if test -z "$CC"; then
2475 if test -n "$ac_tool_prefix"; then
2476 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2477 set dummy ${ac_tool_prefix}cc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_CC="${ac_tool_prefix}cc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 if test -n "$CC"; then
2505 { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2515 if test -z "$CC"; then
2516 # Extract the first word of "cc", so it can be a program name with args.
2517 set dummy cc; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2535 ac_prog_rejected=yes
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 if test $ac_prog_rejected = yes; then
2547 # We found a bogon in the path, so make sure we never use it.
2548 set dummy $ac_cv_prog_CC
2550 if test $# != 0; then
2551 # We chose a different compiler from the bogus one.
2552 # However, it has the same basename, so the bogon will be chosen
2553 # first if we set CC to just the basename; use the full file name.
2555 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2571 if test -z "$CC"; then
2572 if test -n "$ac_tool_prefix"; then
2573 for ac_prog in cl.exe
2575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test -n "$CC"; then
2604 { echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6; }
2607 { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2612 test -n "$CC" && break
2615 if test -z "$CC"; then
2617 for ac_prog in cl.exe
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$ac_ct_CC"; then
2627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_ac_ct_CC="$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647 if test -n "$ac_ct_CC"; then
2648 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2649 echo "${ECHO_T}$ac_ct_CC" >&6; }
2651 { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2656 test -n "$ac_ct_CC" && break
2659 if test "x$ac_ct_CC" = x; then
2662 case $cross_compiling:$ac_tool_warned in
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet. If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2679 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2680 See \`config.log' for more details." >&5
2681 echo "$as_me: error: no acceptable C compiler found in \$PATH
2682 See \`config.log' for more details." >&2;}
2683 { (exit 1); exit 1; }; }
2685 # Provide some information about the compiler.
2686 echo "$as_me:$LINENO: checking for C compiler version" >&5
2687 ac_compiler=`set X $ac_compile; echo $2`
2688 { (ac_try="$ac_compiler --version >&5"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compiler --version >&5") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (ac_try="$ac_compiler -v >&5"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compiler -v >&5") 2>&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }
2708 { (ac_try="$ac_compiler -V >&5"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compiler -V >&5") 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }
2719 cat >conftest.$ac_ext <<_ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2734 ac_clean_files_save=$ac_clean_files
2735 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2736 # Try to create an executable without -o first, disregard a.out.
2737 # It will help us diagnose broken compilers, and finding out an intuition
2739 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2740 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2741 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2743 # List of possible output files, starting from the most likely.
2744 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2745 # only as a last resort. b.out is created by i960 compilers.
2746 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2748 # The IRIX 6 linker writes into existing files which may not be
2749 # executable, retaining their permissions. Remove them first so a
2750 # subsequent execution test works.
2752 for ac_file in $ac_files
2755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2756 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2761 if { (ac_try="$ac_link_default"
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_link_default") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; then
2771 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2772 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2773 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2774 # so that the user can short-circuit this test for compilers unknown to
2776 for ac_file in $ac_files ''
2778 test -f "$ac_file" || continue
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2783 # We found the default executable, but exeext='' is most
2787 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2789 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791 # We set ac_cv_exeext here because the later test for it is not
2792 # safe: cross compilers may not add the suffix if given an `-o'
2793 # argument, so we may need to know it at that point already.
2794 # Even if this section looks crufty: it has the advantage of
2801 test "$ac_cv_exeext" = no && ac_cv_exeext=
2807 { echo "$as_me:$LINENO: result: $ac_file" >&5
2808 echo "${ECHO_T}$ac_file" >&6; }
2809 if test -z "$ac_file"; then
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2814 See \`config.log' for more details." >&5
2815 echo "$as_me: error: C compiler cannot create executables
2816 See \`config.log' for more details." >&2;}
2817 { (exit 77); exit 77; }; }
2820 ac_exeext=$ac_cv_exeext
2822 # Check that the compiler produces executables we can run. If not, either
2823 # the compiler is broken, or we cross compile.
2824 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2825 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2826 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2827 # If not cross compiling, check that we can run a simple program.
2828 if test "$cross_compiling" != yes; then
2829 if { ac_try='./$ac_file'
2830 { (case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_try") 2>&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2841 if test "$cross_compiling" = maybe; then
2844 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2845 If you meant to cross compile, use \`--host'.
2846 See \`config.log' for more details." >&5
2847 echo "$as_me: error: cannot run C compiled programs.
2848 If you meant to cross compile, use \`--host'.
2849 See \`config.log' for more details." >&2;}
2850 { (exit 1); exit 1; }; }
2854 { echo "$as_me:$LINENO: result: yes" >&5
2855 echo "${ECHO_T}yes" >&6; }
2857 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2858 ac_clean_files=$ac_clean_files_save
2859 # Check that the compiler produces executables we can run. If not, either
2860 # the compiler is broken, or we cross compile.
2861 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2862 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2863 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2864 echo "${ECHO_T}$cross_compiling" >&6; }
2866 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2867 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2868 if { (ac_try="$ac_link"
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_link") 2>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
2878 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2879 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2880 # work properly (i.e., refer to `conftest.exe'), while it won't with
2882 for ac_file in conftest.exe conftest conftest.*; do
2883 test -f "$ac_file" || continue
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2886 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2892 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2899 rm -f conftest$ac_cv_exeext
2900 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2901 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2903 rm -f conftest.$ac_ext
2904 EXEEXT=$ac_cv_exeext
2906 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2907 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2908 if test "${ac_cv_objext+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2926 rm -f conftest.o conftest.obj
2927 if { (ac_try="$ac_compile"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
2937 for ac_file in conftest.o conftest.obj conftest.*; do
2938 test -f "$ac_file" || continue;
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2956 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2958 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2959 echo "${ECHO_T}$ac_cv_objext" >&6; }
2960 OBJEXT=$ac_cv_objext
2962 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2963 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2964 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } && {
2999 test -z "$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 } && test -s conftest.$ac_objext; then
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3014 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3015 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3016 GCC=`test $ac_compiler_gnu = yes && echo yes`
3017 ac_test_CFLAGS=${CFLAGS+set}
3018 ac_save_CFLAGS=$CFLAGS
3019 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3020 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_cc_g+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 ac_save_c_werror_flag=$ac_c_werror_flag
3025 ac_c_werror_flag=yes
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3052 grep -v '^ *+' conftest.er1 >conftest.err
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 ac_c_werror_flag=$ac_save_c_werror_flag
3105 cat >conftest.$ac_ext <<_ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3129 grep -v '^ *+' conftest.er1 >conftest.err
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_c_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.$ac_objext; then
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 ac_c_werror_flag=$ac_save_c_werror_flag
3154 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3155 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3156 if test "$ac_test_CFLAGS" = set; then
3157 CFLAGS=$ac_save_CFLAGS
3158 elif test $ac_cv_prog_cc_g = yes; then
3159 if test "$GCC" = yes; then
3165 if test "$GCC" = yes; then
3171 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3172 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3173 if test "${ac_cv_prog_cc_c89+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 ac_cv_prog_cc_c89=no
3178 cat >conftest.$ac_ext <<_ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3186 #include <sys/types.h>
3187 #include <sys/stat.h>
3188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3189 struct buf { int x; };
3190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3191 static char *e (p, i)
3197 static char *f (char * (*g) (char **, int), char **p, ...)
3202 s = g (p, va_arg (v,int));
3207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3208 function prototypes and stuff, but not '\xHH' hex character constants.
3209 These don't provoke an error unfortunately, instead are silently treated
3210 as 'x'. The following induces an error, until -std is added to get
3211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3212 array size at least. It's necessary to write '\x00'==0 to get something
3213 that's true only with -std. */
3214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3217 inside strings and character constants. */
3219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3221 int test (int i, double x);
3222 struct s1 {int (*f) (int a);};
3223 struct s2 {int (*f) (double a);};
3224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3238 CC="$ac_save_CC $ac_arg"
3239 rm -f conftest.$ac_objext
3240 if { (ac_try="$ac_compile"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_compile") 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } && {
3253 test -z "$ac_c_werror_flag" ||
3254 test ! -s conftest.err
3255 } && test -s conftest.$ac_objext; then
3256 ac_cv_prog_cc_c89=$ac_arg
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3264 rm -f core conftest.err conftest.$ac_objext
3265 test "x$ac_cv_prog_cc_c89" != "xno" && break
3267 rm -f conftest.$ac_ext
3272 case "x$ac_cv_prog_cc_c89" in
3274 { echo "$as_me:$LINENO: result: none needed" >&5
3275 echo "${ECHO_T}none needed" >&6; } ;;
3277 { echo "$as_me:$LINENO: result: unsupported" >&5
3278 echo "${ECHO_T}unsupported" >&6; } ;;
3280 CC="$CC $ac_cv_prog_cc_c89"
3281 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3282 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291 DEPDIR="${am__leading_dot}deps"
3293 ac_config_commands="$ac_config_commands depfiles"
3296 am_make=${MAKE-make}
3297 cat > confinc << 'END'
3302 # If we don't find an include directive, just comment out the code.
3303 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3304 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3308 # First try GNU make style include.
3309 echo "include confinc" > confmf
3310 # We grep out `Entering directory' and `Leaving directory'
3311 # messages which can occur if `w' ends up in MAKEFLAGS.
3312 # In particular we don't look at `^make:' because GNU make might
3313 # be invoked under some other name (usually "gmake"), in which
3314 # case it prints its new name instead of `make'.
3315 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3320 # Now try BSD make style include.
3321 if test "$am__include" = "#"; then
3322 echo '.include "confinc"' > confmf
3323 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3324 am__include=.include
3331 { echo "$as_me:$LINENO: result: $_am_result" >&5
3332 echo "${ECHO_T}$_am_result" >&6; }
3333 rm -f confinc confmf
3335 # Check whether --enable-dependency-tracking was given.
3336 if test "${enable_dependency_tracking+set}" = set; then
3337 enableval=$enable_dependency_tracking;
3340 if test "x$enable_dependency_tracking" != xno; then
3341 am_depcomp="$ac_aux_dir/depcomp"
3344 if test "x$enable_dependency_tracking" != xno; then
3354 depcc="$CC" am_compiler_list=
3356 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3357 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3358 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3362 # We make a subdir and do the tests there. Otherwise we can end up
3363 # making bogus files that we don't know about and never remove. For
3364 # instance it was reported that on HP-UX the gcc test will end up
3365 # making a dummy file named `D' -- because `-MD' means `put the output
3368 # Copy depcomp to subdir because otherwise we won't find it if we're
3369 # using a relative directory.
3370 cp "$am_depcomp" conftest.dir
3372 # We will build objects and dependencies in a subdirectory because
3373 # it helps to detect inapplicable dependency modes. For instance
3374 # both Tru64's cc and ICC support -MD to output dependencies as a
3375 # side effect of compilation, but ICC will put the dependencies in
3376 # the current directory while Tru64 will put them in the object
3380 am_cv_CC_dependencies_compiler_type=none
3381 if test "$am_compiler_list" = ""; then
3382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3384 for depmode in $am_compiler_list; do
3385 # Setup a source with many dependencies, because some compilers
3386 # like to wrap large dependency lists on column 80 (with \), and
3387 # we should not choose a depcomp mode which is confused by this.
3389 # We need to recreate these files for each test, as the compiler may
3390 # overwrite some of them when testing with obscure command lines.
3391 # This happens at least with the AIX C compiler.
3393 for i in 1 2 3 4 5 6; do
3394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3395 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3396 # Solaris 8's {/usr,}/bin/sh.
3397 touch sub/conftst$i.h
3399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3403 # after this tag, mechanisms are not by side-effect, so they'll
3404 # only be used when explicitly requested
3405 if test "x$enable_dependency_tracking" = xyes; then
3413 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3414 # mode. It turns out that the SunPro C++ compiler does not properly
3415 # handle `-M -o', and we need to detect this.
3416 if depmode=$depmode \
3417 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3419 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3420 >/dev/null 2>conftest.err &&
3421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3423 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3425 # icc doesn't choke on unknown options, it will just issue warnings
3426 # or remarks (even with -Werror). So we grep stderr for any message
3427 # that says an option was ignored or not supported.
3428 # When given -MP, icc 7.0 and 7.1 complain thusly:
3429 # icc: Command line warning: ignoring option '-M'; no argument required
3430 # The diagnosis changed in icc 8.0:
3431 # icc: Command line remark: option '-MP' not supported
3432 if (grep 'ignoring option' conftest.err ||
3433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3434 am_cv_CC_dependencies_compiler_type=$depmode
3443 am_cv_CC_dependencies_compiler_type=none
3447 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3448 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3449 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3452 test "x$enable_dependency_tracking" != xno \
3453 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3455 am__fastdepCC_FALSE='#'
3457 am__fastdepCC_TRUE='#'
3458 am__fastdepCC_FALSE=
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3468 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3469 # On Suns, sometimes $CPP names a directory.
3470 if test -n "$CPP" && test -d "$CPP"; then
3473 if test -z "$CPP"; then
3474 if test "${ac_cv_prog_CPP+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 # Double quotes because CPP needs to be expanded
3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3481 for ac_c_preproc_warn_flag in '' yes
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3496 # include <limits.h>
3498 # include <assert.h>
3502 if { (ac_try="$ac_cpp conftest.$ac_ext"
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null && {
3515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 # Broken: fails on valid input.
3527 rm -f conftest.err conftest.$ac_ext
3529 # OK, works on sane cases. Now check whether nonexistent headers
3530 # can be detected and how.
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3537 #include <ac_nonexistent.h>
3539 if { (ac_try="$ac_cpp conftest.$ac_ext"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } >/dev/null && {
3552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3553 test ! -s conftest.err
3555 # Broken: success on invalid input.
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 # Passes both tests.
3566 rm -f conftest.err conftest.$ac_ext
3569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3570 rm -f conftest.err conftest.$ac_ext
3571 if $ac_preproc_ok; then
3583 { echo "$as_me:$LINENO: result: $CPP" >&5
3584 echo "${ECHO_T}$CPP" >&6; }
3586 for ac_c_preproc_warn_flag in '' yes
3588 # Use a header file that comes with gcc, so configuring glibc
3589 # with a fresh cross-compiler works.
3590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3591 # <limits.h> exists even on freestanding compilers.
3592 # On the NeXT, cc -E runs the code through the compiler's parser,
3593 # not just through cpp. "Syntax error" is here to catch this case.
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3601 # include <limits.h>
3603 # include <assert.h>
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } >/dev/null && {
3620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 # Broken: fails on valid input.
3632 rm -f conftest.err conftest.$ac_ext
3634 # OK, works on sane cases. Now check whether nonexistent headers
3635 # can be detected and how.
3636 cat >conftest.$ac_ext <<_ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 #include <ac_nonexistent.h>
3644 if { (ac_try="$ac_cpp conftest.$ac_ext"
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3652 grep -v '^ *+' conftest.er1 >conftest.err
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } >/dev/null && {
3657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3658 test ! -s conftest.err
3660 # Broken: success on invalid input.
3663 echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3666 # Passes both tests.
3671 rm -f conftest.err conftest.$ac_ext
3674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3675 rm -f conftest.err conftest.$ac_ext
3676 if $ac_preproc_ok; then
3679 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3680 See \`config.log' for more details." >&5
3681 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3682 See \`config.log' for more details." >&2;}
3683 { (exit 1); exit 1; }; }
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 for ac_prog in gawk mawk nawk awk
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3698 if test "${ac_cv_prog_AWK+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 if test -n "$AWK"; then
3702 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_AWK="$ac_prog"
3712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 if test -n "$AWK"; then
3723 { echo "$as_me:$LINENO: result: $AWK" >&5
3724 echo "${ECHO_T}$AWK" >&6; }
3726 { echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6; }
3731 test -n "$AWK" && break
3734 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3735 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3736 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3737 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 cat >conftest.make <<\_ACEOF
3743 @echo '@@@%%%=$(MAKE)=@@@%%%'
3745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3748 eval ac_cv_prog_make_${ac_make}_set=yes;;
3750 eval ac_cv_prog_make_${ac_make}_set=no;;
3754 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3755 { echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6; }
3759 { echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6; }
3761 SET_MAKE="MAKE=${MAKE-make}"
3764 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3765 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3767 if test "$LN_S" = "ln -s"; then
3768 { echo "$as_me:$LINENO: result: yes" >&5
3769 echo "${ECHO_T}yes" >&6; }
3771 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3772 echo "${ECHO_T}no, using $LN_S" >&6; }
3775 # Find a good install program. We prefer a C program (faster),
3776 # so one script is as good as another. But avoid the broken or
3777 # incompatible versions:
3778 # SysV /etc/install, /usr/sbin/install
3779 # SunOS /usr/etc/install
3780 # IRIX /sbin/install
3782 # AmigaOS /C/install, which installs bootblocks on floppy discs
3783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786 # OS/2's system install, which has a completely different semantic
3787 # ./install, which can be erroneously created by make from ./install.sh.
3788 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3789 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3790 if test -z "$INSTALL"; then
3791 if test "${ac_cv_path_install+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir=.
3799 # Account for people who put trailing slashes in PATH elements.
3801 ./ | .// | /cC/* | \
3802 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3803 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3806 # OSF1 and SCO ODT 3.0 have their own names for install.
3807 # Don't use installbsd from OSF since it installs stuff as root
3809 for ac_prog in ginstall scoinst install; do
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3812 if test $ac_prog = install &&
3813 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3814 # AIX install. It has an incompatible calling convention.
3816 elif test $ac_prog = install &&
3817 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3818 # program-specific install script used by HP pwplus--don't use.
3821 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3834 if test "${ac_cv_path_install+set}" = set; then
3835 INSTALL=$ac_cv_path_install
3837 # As a last resort, use the slow shell script. Don't cache a
3838 # value for INSTALL within a source directory, because that will
3839 # break other packages using the cache if that directory is
3840 # removed, or if the value is a relative name.
3841 INSTALL=$ac_install_sh
3844 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3845 echo "${ECHO_T}$INSTALL" >&6; }
3847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3848 # It thinks the first close brace ends the variable substitution.
3849 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3858 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3859 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3860 if test "${ac_cv___attribute__+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3877 static void foo(void) __attribute__ ((noreturn));
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3906 ac_cv___attribute__=yes
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ac_cv___attribute__=no
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 if test "$ac_cv___attribute__" = "yes"; then
3919 cat >>confdefs.h <<\_ACEOF
3920 #define HAVE___ATTRIBUTE__ 1
3924 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3925 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3928 # CMU GUESS RUNPATH SWITCH
3929 { echo "$as_me:$LINENO: checking for runpath switch" >&5
3930 echo $ECHO_N "checking for runpath switch... $ECHO_C" >&6; }
3931 if test "${andrew_runpath_switch+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 SAVE_LDFLAGS="${LDFLAGS}"
3937 LDFLAGS="-R /usr/lib"
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3953 rm -f conftest.$ac_objext conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_c_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest$ac_exeext &&
3970 $as_test_x conftest$ac_exeext; then
3971 andrew_runpath_switch="-R"
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3977 LDFLAGS="-Wl,-rpath,/usr/lib"
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3993 rm -f conftest.$ac_objext conftest$ac_exeext
3994 if { (ac_try="$ac_link"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_link") 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && {
4007 test -z "$ac_c_werror_flag" ||
4008 test ! -s conftest.err
4009 } && test -s conftest$ac_exeext &&
4010 $as_test_x conftest$ac_exeext; then
4011 andrew_runpath_switch="-Wl,-rpath,"
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4016 andrew_runpath_switch="none"
4019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4020 conftest$ac_exeext conftest.$ac_ext
4024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4025 conftest$ac_exeext conftest.$ac_ext
4026 LDFLAGS="${SAVE_LDFLAGS}"
4029 { echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
4030 echo "${ECHO_T}$andrew_runpath_switch" >&6; }
4035 { echo "$as_me:$LINENO: checking for connect" >&5
4036 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4037 if test "${ac_cv_func_connect+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4048 #define connect innocuous_connect
4050 /* System header to define __stub macros and hopefully few prototypes,
4051 which can conflict with char connect (); below.
4052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053 <limits.h> exists even on freestanding compilers. */
4056 # include <limits.h>
4058 # include <assert.h>
4063 /* Override any GCC internal prototype to avoid an error.
4064 Use char because int might match the return type of a GCC
4065 builtin and then its argument prototype would still apply. */
4070 /* The GNU C library defines this for functions which it implements
4071 to always fail with ENOSYS. Some functions are actually named
4072 something starting with __ and the normal name is an alias. */
4073 #if defined __stub_connect || defined __stub___connect
4085 rm -f conftest.$ac_objext conftest$ac_exeext
4086 if { (ac_try="$ac_link"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_link") 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && {
4099 test -z "$ac_c_werror_flag" ||
4100 test ! -s conftest.err
4101 } && test -s conftest$ac_exeext &&
4102 $as_test_x conftest$ac_exeext; then
4103 ac_cv_func_connect=yes
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 ac_cv_func_connect=no
4111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4112 conftest$ac_exeext conftest.$ac_ext
4114 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4115 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4116 if test $ac_cv_func_connect = yes; then
4119 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4120 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4121 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 ac_check_lib_save_LIBS=$LIBS
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4133 /* Override any GCC internal prototype to avoid an error.
4134 Use char because int might match the return type of a GCC
4135 builtin and then its argument prototype would still apply. */
4139 char gethostbyname ();
4143 return gethostbyname ();
4148 rm -f conftest.$ac_objext conftest$ac_exeext
4149 if { (ac_try="$ac_link"
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_link") 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } && {
4162 test -z "$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4164 } && test -s conftest$ac_exeext &&
4165 $as_test_x conftest$ac_exeext; then
4166 ac_cv_lib_nsl_gethostbyname=yes
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_lib_nsl_gethostbyname=no
4174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4175 conftest$ac_exeext conftest.$ac_ext
4176 LIBS=$ac_check_lib_save_LIBS
4178 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4179 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4180 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4181 LIB_SOCKET="-lnsl $LIB_SOCKET"
4184 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4185 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4186 if test "${ac_cv_lib_socket_connect+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 ac_check_lib_save_LIBS=$LIBS
4190 LIBS="-lsocket $LIBS"
4191 cat >conftest.$ac_ext <<_ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4198 /* Override any GCC internal prototype to avoid an error.
4199 Use char because int might match the return type of a GCC
4200 builtin and then its argument prototype would still apply. */
4213 rm -f conftest.$ac_objext conftest$ac_exeext
4214 if { (ac_try="$ac_link"
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_link") 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && {
4227 test -z "$ac_c_werror_flag" ||
4228 test ! -s conftest.err
4229 } && test -s conftest$ac_exeext &&
4230 $as_test_x conftest$ac_exeext; then
4231 ac_cv_lib_socket_connect=yes
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 ac_cv_lib_socket_connect=no
4239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4240 conftest$ac_exeext conftest.$ac_ext
4241 LIBS=$ac_check_lib_save_LIBS
4243 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4244 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4245 if test $ac_cv_lib_socket_connect = yes; then
4246 LIB_SOCKET="-lsocket $LIB_SOCKET"
4252 LIBS="$LIB_SOCKET $save_LIBS"
4253 { echo "$as_me:$LINENO: checking for res_search" >&5
4254 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
4255 if test "${ac_cv_func_res_search+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
4265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4266 #define res_search innocuous_res_search
4268 /* System header to define __stub macros and hopefully few prototypes,
4269 which can conflict with char res_search (); below.
4270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271 <limits.h> exists even on freestanding compilers. */
4274 # include <limits.h>
4276 # include <assert.h>
4281 /* Override any GCC internal prototype to avoid an error.
4282 Use char because int might match the return type of a GCC
4283 builtin and then its argument prototype would still apply. */
4288 /* The GNU C library defines this for functions which it implements
4289 to always fail with ENOSYS. Some functions are actually named
4290 something starting with __ and the normal name is an alias. */
4291 #if defined __stub_res_search || defined __stub___res_search
4298 return res_search ();
4303 rm -f conftest.$ac_objext conftest$ac_exeext
4304 if { (ac_try="$ac_link"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_link") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && {
4317 test -z "$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4319 } && test -s conftest$ac_exeext &&
4320 $as_test_x conftest$ac_exeext; then
4321 ac_cv_func_res_search=yes
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 ac_cv_func_res_search=no
4329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4330 conftest$ac_exeext conftest.$ac_ext
4332 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4333 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
4334 if test $ac_cv_func_res_search = yes; then
4337 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4345 #include <sys/types.h>
4346 #include <netinet/in.h>
4347 #include <arpa/nameser.h>
4348 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
4349 #include <arpa/nameser_compat.h>
4356 const char host[12]="openafs.org";
4358 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
4365 rm -f conftest.$ac_objext conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_link") 2>conftest.er1
4374 grep -v '^ *+' conftest.er1 >conftest.err
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } && {
4379 test -z "$ac_c_werror_flag" ||
4380 test ! -s conftest.err
4381 } && test -s conftest$ac_exeext &&
4382 $as_test_x conftest$ac_exeext; then
4383 LIB_SOCKET="-lresolv $LIB_SOCKET"
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4392 conftest$ac_exeext conftest.$ac_ext
4396 LIBS="$LIB_SOCKET $save_LIBS"
4399 for ac_func in dn_expand dns_lookup
4401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4415 #define $ac_func innocuous_$ac_func
4417 /* System header to define __stub macros and hopefully few prototypes,
4418 which can conflict with char $ac_func (); below.
4419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420 <limits.h> exists even on freestanding compilers. */
4423 # include <limits.h>
4425 # include <assert.h>
4430 /* Override any GCC internal prototype to avoid an error.
4431 Use char because int might match the return type of a GCC
4432 builtin and then its argument prototype would still apply. */
4437 /* The GNU C library defines this for functions which it implements
4438 to always fail with ENOSYS. Some functions are actually named
4439 something starting with __ and the normal name is an alias. */
4440 #if defined __stub_$ac_func || defined __stub___$ac_func
4452 rm -f conftest.$ac_objext conftest$ac_exeext
4453 if { (ac_try="$ac_link"
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_link") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest$ac_exeext &&
4469 $as_test_x conftest$ac_exeext; then
4470 eval "$as_ac_var=yes"
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 eval "$as_ac_var=no"
4478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4479 conftest$ac_exeext conftest.$ac_ext
4481 ac_res=`eval echo '${'$as_ac_var'}'`
4482 { echo "$as_me:$LINENO: result: $ac_res" >&5
4483 echo "${ECHO_T}$ac_res" >&6; }
4484 if test `eval echo '${'$as_ac_var'}'` = yes; then
4485 cat >>confdefs.h <<_ACEOF
4486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4497 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4498 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4499 if test "${ac_cv_path_GREP+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 # Extract the first word of "grep ggrep" to use in msg output
4503 if test -z "$GREP"; then
4504 set dummy grep ggrep; ac_prog_name=$2
4505 if test "${ac_cv_path_GREP+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 ac_path_GREP_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in grep ggrep; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4518 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4519 # Check for GNU ac_path_GREP and select it if it is found.
4520 # Check for GNU $ac_path_GREP
4521 case `"$ac_path_GREP" --version 2>&1` in
4523 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4526 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 echo 'GREP' >> "conftest.nl"
4533 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 ac_count=`expr $ac_count + 1`
4536 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_GREP="$ac_path_GREP"
4539 ac_path_GREP_max=$ac_count
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548 $ac_path_GREP_found && break 3
4558 GREP="$ac_cv_path_GREP"
4559 if test -z "$GREP"; then
4560 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4561 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4562 { (exit 1); exit 1; }; }
4566 ac_cv_path_GREP=$GREP
4571 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4572 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4573 GREP="$ac_cv_path_GREP"
4576 { echo "$as_me:$LINENO: checking for egrep" >&5
4577 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4578 if test "${ac_cv_path_EGREP+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4582 then ac_cv_path_EGREP="$GREP -E"
4584 # Extract the first word of "egrep" to use in msg output
4585 if test -z "$EGREP"; then
4586 set dummy egrep; ac_prog_name=$2
4587 if test "${ac_cv_path_EGREP+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 ac_path_EGREP_found=false
4591 # Loop through the user's path and test for each of PROGNAME-LIST
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596 test -z "$as_dir" && as_dir=.
4597 for ac_prog in egrep; do
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4600 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4601 # Check for GNU ac_path_EGREP and select it if it is found.
4602 # Check for GNU $ac_path_EGREP
4603 case `"$ac_path_EGREP" --version 2>&1` in
4605 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4608 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4611 cat "conftest.in" "conftest.in" >"conftest.tmp"
4612 mv "conftest.tmp" "conftest.in"
4613 cp "conftest.in" "conftest.nl"
4614 echo 'EGREP' >> "conftest.nl"
4615 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4617 ac_count=`expr $ac_count + 1`
4618 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4619 # Best one so far, save it but keep looking for a better one
4620 ac_cv_path_EGREP="$ac_path_EGREP"
4621 ac_path_EGREP_max=$ac_count
4623 # 10*(2^10) chars as input seems more than enough
4624 test $ac_count -gt 10 && break
4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 $ac_path_EGREP_found && break 3
4640 EGREP="$ac_cv_path_EGREP"
4641 if test -z "$EGREP"; then
4642 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4643 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4644 { (exit 1); exit 1; }; }
4648 ac_cv_path_EGREP=$EGREP
4654 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4655 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4656 EGREP="$ac_cv_path_EGREP"
4659 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4660 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4661 if test "${ac_cv_header_stdc+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 cat >conftest.$ac_ext <<_ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4683 rm -f conftest.$ac_objext
4684 if { (ac_try="$ac_compile"
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_compile") 2>conftest.er1
4692 grep -v '^ *+' conftest.er1 >conftest.err
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } && {
4697 test -z "$ac_c_werror_flag" ||
4698 test ! -s conftest.err
4699 } && test -s conftest.$ac_objext; then
4700 ac_cv_header_stdc=yes
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 ac_cv_header_stdc=no
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 if test $ac_cv_header_stdc = yes; then
4711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4712 cat >conftest.$ac_ext <<_ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4722 $EGREP "memchr" >/dev/null 2>&1; then
4725 ac_cv_header_stdc=no
4731 if test $ac_cv_header_stdc = yes; then
4732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4733 cat >conftest.$ac_ext <<_ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743 $EGREP "free" >/dev/null 2>&1; then
4746 ac_cv_header_stdc=no
4752 if test $ac_cv_header_stdc = yes; then
4753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4754 if test "$cross_compiling" = yes; then
4757 cat >conftest.$ac_ext <<_ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4765 #if ((' ' & 0x0FF) == 0x020)
4766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4769 # define ISLOWER(c) \
4770 (('a' <= (c) && (c) <= 'i') \
4771 || ('j' <= (c) && (c) <= 'r') \
4772 || ('s' <= (c) && (c) <= 'z'))
4773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4781 for (i = 0; i < 256; i++)
4782 if (XOR (islower (i), ISLOWER (i))
4783 || toupper (i) != TOUPPER (i))
4788 rm -f conftest$ac_exeext
4789 if { (ac_try="$ac_link"
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795 (eval "$ac_link") 2>&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4799 { (case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_try") 2>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4810 echo "$as_me: program exited with status $ac_status" >&5
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4815 ac_cv_header_stdc=no
4817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4823 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4824 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4825 if test $ac_cv_header_stdc = yes; then
4827 cat >>confdefs.h <<\_ACEOF
4828 #define STDC_HEADERS 1
4833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4844 inttypes.h stdint.h unistd.h
4846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 cat >conftest.$ac_ext <<_ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 $ac_includes_default
4860 #include <$ac_header>
4862 rm -f conftest.$ac_objext
4863 if { (ac_try="$ac_compile"
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_compile") 2>conftest.er1
4871 grep -v '^ *+' conftest.er1 >conftest.err
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest.$ac_objext; then
4879 eval "$as_ac_Header=yes"
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 eval "$as_ac_Header=no"
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 ac_res=`eval echo '${'$as_ac_Header'}'`
4890 { echo "$as_me:$LINENO: result: $ac_res" >&5
4891 echo "${ECHO_T}$ac_res" >&6; }
4892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4893 cat >>confdefs.h <<_ACEOF
4894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4903 # Check whether --with-lib-subdir was given.
4904 if test "${with_lib_subdir+set}" = set; then
4905 withval=$with_lib_subdir;
4908 { echo "$as_me:$LINENO: checking for long" >&5
4909 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4910 if test "${ac_cv_type_long+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 cat >conftest.$ac_ext <<_ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 $ac_includes_default
4920 typedef long ac__type_new_;
4924 if ((ac__type_new_ *) 0)
4926 if (sizeof (ac__type_new_))
4932 rm -f conftest.$ac_objext
4933 if { (ac_try="$ac_compile"
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4960 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4962 # The cast to long int works around a bug in the HP C Compiler
4963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4965 # This bug is HP SR number 8606223364.
4966 { echo "$as_me:$LINENO: checking size of long" >&5
4967 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4968 if test "${ac_cv_sizeof_long+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if test "$cross_compiling" = yes; then
4972 # Depending upon the size, compute the lo and hi bounds.
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 $ac_includes_default
4980 typedef long ac__type_sizeof_;
4984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_compile") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5017 typedef long ac__type_sizeof_;
5021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_compile") 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && {
5042 test -z "$ac_c_werror_flag" ||
5043 test ! -s conftest.err
5044 } && test -s conftest.$ac_objext; then
5045 ac_hi=$ac_mid; break
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 ac_lo=`expr $ac_mid + 1`
5051 if test $ac_lo -le $ac_mid; then
5055 ac_mid=`expr 2 '*' $ac_mid + 1`
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 typedef long ac__type_sizeof_;
5075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5082 rm -f conftest.$ac_objext
5083 if { (ac_try="$ac_compile"
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_compile") 2>conftest.er1
5091 grep -v '^ *+' conftest.er1 >conftest.err
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && {
5096 test -z "$ac_c_werror_flag" ||
5097 test ! -s conftest.err
5098 } && test -s conftest.$ac_objext; then
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 $ac_includes_default
5108 typedef long ac__type_sizeof_;
5112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5119 rm -f conftest.$ac_objext
5120 if { (ac_try="$ac_compile"
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_lo=$ac_mid; break
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 ac_hi=`expr '(' $ac_mid ')' - 1`
5142 if test $ac_mid -le $ac_hi; then
5146 ac_mid=`expr 2 '*' $ac_mid`
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162 # Binary search between lo and hi bounds.
5163 while test "x$ac_lo" != "x$ac_hi"; do
5164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5165 cat >conftest.$ac_ext <<_ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5172 typedef long ac__type_sizeof_;
5176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_compile") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && {
5197 test -z "$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 } && test -s conftest.$ac_objext; then
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_lo=`expr '(' $ac_mid ')' + 1`
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 ?*) ac_cv_sizeof_long=$ac_lo;;
5212 '') if test "$ac_cv_type_long" = yes; then
5213 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5214 See \`config.log' for more details." >&5
5215 echo "$as_me: error: cannot compute sizeof (long)
5216 See \`config.log' for more details." >&2;}
5217 { (exit 77); exit 77; }; }
5223 cat >conftest.$ac_ext <<_ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 $ac_includes_default
5230 typedef long ac__type_sizeof_;
5231 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5232 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5239 FILE *f = fopen ("conftest.val", "w");
5242 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5244 long int i = longval ();
5245 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5247 fprintf (f, "%ld\n", i);
5251 unsigned long int i = ulongval ();
5252 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5254 fprintf (f, "%lu\n", i);
5256 return ferror (f) || fclose (f) != 0;
5262 rm -f conftest$ac_exeext
5263 if { (ac_try="$ac_link"
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_link") 2>&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_cv_sizeof_long=`cat conftest.val`
5284 echo "$as_me: program exited with status $ac_status" >&5
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5289 if test "$ac_cv_type_long" = yes; then
5290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5291 See \`config.log' for more details." >&5
5292 echo "$as_me: error: cannot compute sizeof (long)
5293 See \`config.log' for more details." >&2;}
5294 { (exit 77); exit 77; }; }
5299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5303 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5304 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5308 cat >>confdefs.h <<_ACEOF
5309 #define SIZEOF_LONG $ac_cv_sizeof_long
5313 { echo "$as_me:$LINENO: checking what directory libraries are found in" >&5
5314 echo $ECHO_N "checking what directory libraries are found in... $ECHO_C" >&6; }
5315 if test "${ac_cv_cmu_lib_subdir+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
5319 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
5320 if test "X$with_lib_subdir" = "X" ; then
5321 ac_cv_cmu_lib_subdir=lib
5322 if test $ac_cv_sizeof_long -eq 4 ; then
5323 test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
5325 if test $ac_cv_sizeof_long -eq 8 ; then
5326 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
5329 ac_cv_cmu_lib_subdir=$with_lib_subdir
5332 { echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5
5333 echo "${ECHO_T}$ac_cv_cmu_lib_subdir" >&6; }
5334 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
5340 # Check whether --with-openssl was given.
5341 if test "${with_openssl+set}" = set; then
5342 withval=$with_openssl; with_openssl=$withval
5348 save_CPPFLAGS=$CPPFLAGS
5349 save_LDFLAGS=$LDFLAGS
5351 if test -d $with_openssl; then
5352 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
5354 # this is CMU ADD LIBPATH
5355 if test "$andrew_runpath_switch" = "none" ; then
5356 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
5358 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
5363 case "$with_openssl" in
5368 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
5369 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
5370 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 ac_check_lib_save_LIBS=$LIBS
5374 LIBS="-lrsaref $LIBS"
5375 cat >conftest.$ac_ext <<_ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5382 /* Override any GCC internal prototype to avoid an error.
5383 Use char because int might match the return type of a GCC
5384 builtin and then its argument prototype would still apply. */
5388 char RSAPublicEncrypt ();
5392 return RSAPublicEncrypt ();
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (ac_try="$ac_link"
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_link") 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_c_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest$ac_exeext &&
5414 $as_test_x conftest$ac_exeext; then
5415 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 ac_cv_lib_rsaref_RSAPublicEncrypt=no
5423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5424 conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5427 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
5428 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
5429 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
5430 cmu_have_rsaref=yes;
5431 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lRSAglue" >&5
5432 echo $ECHO_N "checking for RSAPublicEncrypt in -lRSAglue... $ECHO_C" >&6; }
5433 if test "${ac_cv_lib_RSAglue_RSAPublicEncrypt+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 ac_check_lib_save_LIBS=$LIBS
5437 LIBS="-lRSAglue $LIBS"
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5445 /* Override any GCC internal prototype to avoid an error.
5446 Use char because int might match the return type of a GCC
5447 builtin and then its argument prototype would still apply. */
5451 char RSAPublicEncrypt ();
5455 return RSAPublicEncrypt ();
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (ac_try="$ac_link"
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_link") 2>conftest.er1
5469 grep -v '^ *+' conftest.er1 >conftest.err
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_c_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest$ac_exeext &&
5477 $as_test_x conftest$ac_exeext; then
5478 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
5486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5487 conftest$ac_exeext conftest.$ac_ext
5488 LIBS=$ac_check_lib_save_LIBS
5490 { echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
5491 echo "${ECHO_T}$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
5492 if test $ac_cv_lib_RSAglue_RSAPublicEncrypt = yes; then
5493 LIB_RSAREF="-lRSAglue -lrsaref"
5495 LIB_RSAREF="-lrsaref"
5503 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
5504 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
5505 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
5506 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
5510 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
5512 # Is the header compilable?
5513 { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
5514 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
5515 cat >conftest.$ac_ext <<_ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 $ac_includes_default
5522 #include <openssl/evp.h>
5524 rm -f conftest.$ac_objext
5525 if { (ac_try="$ac_compile"
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_compile") 2>conftest.er1
5533 grep -v '^ *+' conftest.er1 >conftest.err
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } && {
5538 test -z "$ac_c_werror_flag" ||
5539 test ! -s conftest.err
5540 } && test -s conftest.$ac_objext; then
5541 ac_header_compiler=yes
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5546 ac_header_compiler=no
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5551 echo "${ECHO_T}$ac_header_compiler" >&6; }
5553 # Is the header present?
5554 { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
5555 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <openssl/evp.h>
5564 if { (ac_try="$ac_cpp conftest.$ac_ext"
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5572 grep -v '^ *+' conftest.er1 >conftest.err
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } >/dev/null && {
5577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5578 test ! -s conftest.err
5580 ac_header_preproc=yes
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 ac_header_preproc=no
5588 rm -f conftest.err conftest.$ac_ext
5589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5590 echo "${ECHO_T}$ac_header_preproc" >&6; }
5592 # So? What about this header?
5593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5595 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
5596 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
5598 echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
5599 ac_header_preproc=yes
5602 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
5603 echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
5604 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
5605 echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
5606 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
5607 echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
5608 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5
5609 echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;}
5610 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
5611 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
5612 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
5613 echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
5617 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
5618 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
5619 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 ac_cv_header_openssl_evp_h=$ac_header_preproc
5624 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
5625 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
5628 if test $ac_cv_header_openssl_evp_h = yes; then
5630 { echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
5631 echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6; }
5632 if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_check_lib_save_LIBS=$LIBS
5636 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5644 /* Override any GCC internal prototype to avoid an error.
5645 Use char because int might match the return type of a GCC
5646 builtin and then its argument prototype would still apply. */
5650 char EVP_DigestInit ();
5654 return EVP_DigestInit ();
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (ac_try="$ac_link"
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_link") 2>conftest.er1
5668 grep -v '^ *+' conftest.er1 >conftest.err
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } && {
5673 test -z "$ac_c_werror_flag" ||
5674 test ! -s conftest.err
5675 } && test -s conftest$ac_exeext &&
5676 $as_test_x conftest$ac_exeext; then
5677 ac_cv_lib_crypto_EVP_DigestInit=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_cv_lib_crypto_EVP_DigestInit=no
5685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686 conftest$ac_exeext conftest.$ac_ext
5687 LIBS=$ac_check_lib_save_LIBS
5689 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
5690 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
5691 if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then
5705 if test "$with_openssl" != "no"; then
5707 cat >>confdefs.h <<\_ACEOF
5708 #define HAVE_OPENSSL
5712 CPPFLAGS=$save_CPPFLAGS
5713 LDFLAGS=$save_LDFLAGS
5716 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
5717 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
5718 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5719 echo "${ECHO_T}$with_openssl" >&6; }
5723 # Check whether --with-des was given.
5724 if test "${with_des+set}" = set; then
5725 withval=$with_des; with_des=$withval
5732 if test "$with_des" != no; then
5733 if test -d $with_des; then
5734 CPPFLAGS="$CPPFLAGS -I${with_des}/include"
5735 LDFLAGS="$LDFLAGS -L${with_des}/lib"
5738 if test "$with_openssl" != no; then
5739 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
5740 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
5741 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 ac_check_lib_save_LIBS=$LIBS
5745 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5753 /* Override any GCC internal prototype to avoid an error.
5754 Use char because int might match the return type of a GCC
5755 builtin and then its argument prototype would still apply. */
5759 char des_cbc_encrypt ();
5763 return des_cbc_encrypt ();
5768 rm -f conftest.$ac_objext conftest$ac_exeext
5769 if { (ac_try="$ac_link"
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_link") 2>conftest.er1
5777 grep -v '^ *+' conftest.er1 >conftest.err
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest$ac_exeext &&
5785 $as_test_x conftest$ac_exeext; then
5786 ac_cv_lib_crypto_des_cbc_encrypt=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_cv_lib_crypto_des_cbc_encrypt=no
5794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5795 conftest$ac_exeext conftest.$ac_ext
5796 LIBS=$ac_check_lib_save_LIBS
5798 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
5799 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
5800 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
5802 if test "${ac_cv_header_openssl_des_h+set}" = set; then
5803 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
5804 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
5805 if test "${ac_cv_header_openssl_des_h+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5809 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
5811 # Is the header compilable?
5812 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
5813 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
5814 cat >conftest.$ac_ext <<_ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 $ac_includes_default
5821 #include <openssl/des.h>
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } && {
5837 test -z "$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 } && test -s conftest.$ac_objext; then
5840 ac_header_compiler=yes
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 ac_header_compiler=no
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5850 echo "${ECHO_T}$ac_header_compiler" >&6; }
5852 # Is the header present?
5853 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
5854 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
5855 cat >conftest.$ac_ext <<_ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <openssl/des.h>
5863 if { (ac_try="$ac_cpp conftest.$ac_ext"
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5871 grep -v '^ *+' conftest.er1 >conftest.err
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } >/dev/null && {
5876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5877 test ! -s conftest.err
5879 ac_header_preproc=yes
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_header_preproc=no
5887 rm -f conftest.err conftest.$ac_ext
5888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5889 echo "${ECHO_T}$ac_header_preproc" >&6; }
5891 # So? What about this header?
5892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5894 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
5895 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
5897 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
5898 ac_header_preproc=yes
5901 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
5902 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
5903 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
5904 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
5905 { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
5906 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
5907 { echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5
5908 echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;}
5909 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
5910 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
5911 { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
5912 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
5916 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
5917 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
5918 if test "${ac_cv_header_openssl_des_h+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 ac_cv_header_openssl_des_h=$ac_header_preproc
5923 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5924 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
5927 if test $ac_cv_header_openssl_des_h = yes; then
5929 cat >>confdefs.h <<\_ACEOF
5930 #define WITH_SSL_DES
5945 if test "$with_des" = no; then
5946 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
5947 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
5948 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 ac_check_lib_save_LIBS=$LIBS
5952 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5960 /* Override any GCC internal prototype to avoid an error.
5961 Use char because int might match the return type of a GCC
5962 builtin and then its argument prototype would still apply. */
5966 char DES_cbc_encrypt ();
5970 return DES_cbc_encrypt ();
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (ac_try="$ac_link"
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_link") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest$ac_exeext &&
5992 $as_test_x conftest$ac_exeext; then
5993 ac_cv_lib_crypto_DES_cbc_encrypt=yes
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 ac_cv_lib_crypto_DES_cbc_encrypt=no
6001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6002 conftest$ac_exeext conftest.$ac_ext
6003 LIBS=$ac_check_lib_save_LIBS
6005 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
6006 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
6007 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
6009 if test "${ac_cv_header_openssl_des_h+set}" = set; then
6010 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
6011 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
6012 if test "${ac_cv_header_openssl_des_h+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
6016 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
6018 # Is the header compilable?
6019 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
6020 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
6021 cat >conftest.$ac_ext <<_ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 $ac_includes_default
6028 #include <openssl/des.h>
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6039 grep -v '^ *+' conftest.er1 >conftest.err
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_objext; then
6047 ac_header_compiler=yes
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 ac_header_compiler=no
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6057 echo "${ECHO_T}$ac_header_compiler" >&6; }
6059 # Is the header present?
6060 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
6061 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
6062 cat >conftest.$ac_ext <<_ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <openssl/des.h>
6070 if { (ac_try="$ac_cpp conftest.$ac_ext"
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6078 grep -v '^ *+' conftest.er1 >conftest.err
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } >/dev/null && {
6083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6084 test ! -s conftest.err
6086 ac_header_preproc=yes
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 ac_header_preproc=no
6094 rm -f conftest.err conftest.$ac_ext
6095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6096 echo "${ECHO_T}$ac_header_preproc" >&6; }
6098 # So? What about this header?
6099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6101 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
6102 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
6104 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
6105 ac_header_preproc=yes
6108 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
6109 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
6110 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
6111 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
6113 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
6114 { echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5
6115 echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;}
6116 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
6117 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
6119 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
6123 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
6124 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
6125 if test "${ac_cv_header_openssl_des_h+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 ac_cv_header_openssl_des_h=$ac_header_preproc
6130 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
6131 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
6134 if test $ac_cv_header_openssl_des_h = yes; then
6136 cat >>confdefs.h <<\_ACEOF
6137 #define WITH_SSL_DES
6154 if test "$with_des" = no; then
6155 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
6156 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
6157 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 ac_check_lib_save_LIBS=$LIBS
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6169 /* Override any GCC internal prototype to avoid an error.
6170 Use char because int might match the return type of a GCC
6171 builtin and then its argument prototype would still apply. */
6175 char des_cbc_encrypt ();
6179 return des_cbc_encrypt ();
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (ac_try="$ac_link"
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_link") 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && {
6198 test -z "$ac_c_werror_flag" ||
6199 test ! -s conftest.err
6200 } && test -s conftest$ac_exeext &&
6201 $as_test_x conftest$ac_exeext; then
6202 ac_cv_lib_des_des_cbc_encrypt=yes
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ac_cv_lib_des_des_cbc_encrypt=no
6210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6211 conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_check_lib_save_LIBS
6214 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
6215 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
6216 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
6225 if test "$with_des" = no; then
6226 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
6227 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
6228 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 ac_check_lib_save_LIBS=$LIBS
6232 LIBS="-ldes425 $LIBS"
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6240 /* Override any GCC internal prototype to avoid an error.
6241 Use char because int might match the return type of a GCC
6242 builtin and then its argument prototype would still apply. */
6246 char des_cbc_encrypt ();
6250 return des_cbc_encrypt ();
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (ac_try="$ac_link"
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_link") 2>conftest.er1
6264 grep -v '^ *+' conftest.er1 >conftest.err
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest$ac_exeext &&
6272 $as_test_x conftest$ac_exeext; then
6273 ac_cv_lib_des425_des_cbc_encrypt=yes
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_cv_lib_des425_des_cbc_encrypt=no
6281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6282 conftest$ac_exeext conftest.$ac_ext
6283 LIBS=$ac_check_lib_save_LIBS
6285 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
6286 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
6287 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
6296 if test "$with_des" = no; then
6297 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5
6298 echo $ECHO_N "checking for des_cbc_encrypt in -ldes524... $ECHO_C" >&6; }
6299 if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 ac_check_lib_save_LIBS=$LIBS
6303 LIBS="-ldes524 $LIBS"
6304 cat >conftest.$ac_ext <<_ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6311 /* Override any GCC internal prototype to avoid an error.
6312 Use char because int might match the return type of a GCC
6313 builtin and then its argument prototype would still apply. */
6317 char des_cbc_encrypt ();
6321 return des_cbc_encrypt ();
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (ac_try="$ac_link"
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_link") 2>conftest.er1
6335 grep -v '^ *+' conftest.er1 >conftest.err
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } && {
6340 test -z "$ac_c_werror_flag" ||
6341 test ! -s conftest.err
6342 } && test -s conftest$ac_exeext &&
6343 $as_test_x conftest$ac_exeext; then
6344 ac_cv_lib_des524_des_cbc_encrypt=yes
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_cv_lib_des524_des_cbc_encrypt=no
6352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6353 conftest$ac_exeext conftest.$ac_ext
6354 LIBS=$ac_check_lib_save_LIBS
6356 { echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
6357 echo "${ECHO_T}$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
6358 if test $ac_cv_lib_des524_des_cbc_encrypt = yes; then
6367 if test "$with_des" = no; then
6370 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
6371 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
6372 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 ac_check_lib_save_LIBS=$LIBS
6376 LIBS="-lrsaref $LIBS"
6377 cat >conftest.$ac_ext <<_ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6384 /* Override any GCC internal prototype to avoid an error.
6385 Use char because int might match the return type of a GCC
6386 builtin and then its argument prototype would still apply. */
6390 char RSAPublicEncrypt ();
6394 return RSAPublicEncrypt ();
6399 rm -f conftest.$ac_objext conftest$ac_exeext
6400 if { (ac_try="$ac_link"
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_link") 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && {
6413 test -z "$ac_c_werror_flag" ||
6414 test ! -s conftest.err
6415 } && test -s conftest$ac_exeext &&
6416 $as_test_x conftest$ac_exeext; then
6417 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 ac_cv_lib_rsaref_RSAPublicEncrypt=no
6425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6426 conftest$ac_exeext conftest.$ac_ext
6427 LIBS=$ac_check_lib_save_LIBS
6429 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
6430 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
6431 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
6432 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
6438 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
6439 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
6440 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 ac_check_lib_save_LIBS=$LIBS
6444 LIBS="-lcrypto $LIB_RSAREF $LIBS"
6445 cat >conftest.$ac_ext <<_ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6452 /* Override any GCC internal prototype to avoid an error.
6453 Use char because int might match the return type of a GCC
6454 builtin and then its argument prototype would still apply. */
6458 char des_cbc_encrypt ();
6462 return des_cbc_encrypt ();
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (ac_try="$ac_link"
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_link") 2>conftest.er1
6476 grep -v '^ *+' conftest.er1 >conftest.err
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && {
6481 test -z "$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6483 } && test -s conftest$ac_exeext &&
6484 $as_test_x conftest$ac_exeext; then
6485 ac_cv_lib_crypto_des_cbc_encrypt=yes
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 ac_cv_lib_crypto_des_cbc_encrypt=no
6493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6494 conftest$ac_exeext conftest.$ac_ext
6495 LIBS=$ac_check_lib_save_LIBS
6497 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
6498 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
6499 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
6501 if test "${ac_cv_header_openssl_des_h+set}" = set; then
6502 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
6503 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
6504 if test "${ac_cv_header_openssl_des_h+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
6508 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
6510 # Is the header compilable?
6511 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
6512 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 $ac_includes_default
6520 #include <openssl/des.h>
6522 rm -f conftest.$ac_objext
6523 if { (ac_try="$ac_compile"
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_compile") 2>conftest.er1
6531 grep -v '^ *+' conftest.er1 >conftest.err
6533 cat conftest.err >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } && {
6536 test -z "$ac_c_werror_flag" ||
6537 test ! -s conftest.err
6538 } && test -s conftest.$ac_objext; then
6539 ac_header_compiler=yes
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6544 ac_header_compiler=no
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6549 echo "${ECHO_T}$ac_header_compiler" >&6; }
6551 # Is the header present?
6552 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
6553 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <openssl/des.h>
6562 if { (ac_try="$ac_cpp conftest.$ac_ext"
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } >/dev/null && {
6575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6578 ac_header_preproc=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_header_preproc=no
6586 rm -f conftest.err conftest.$ac_ext
6587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6588 echo "${ECHO_T}$ac_header_preproc" >&6; }
6590 # So? What about this header?
6591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6593 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
6594 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6595 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
6596 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
6597 ac_header_preproc=yes
6600 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
6601 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
6603 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
6605 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5
6607 echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;}
6608 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
6609 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
6611 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
6615 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
6616 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
6617 if test "${ac_cv_header_openssl_des_h+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 ac_cv_header_openssl_des_h=$ac_header_preproc
6622 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
6623 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
6626 if test $ac_cv_header_openssl_des_h = yes; then
6628 cat >>confdefs.h <<\_ACEOF
6629 #define WITH_SSL_DES
6646 if test "$with_des" != no; then
6648 cat >>confdefs.h <<\_ACEOF
6660 # Check whether --enable-krb4 was given.
6661 if test "${enable_krb4+set}" = set; then
6662 enableval=$enable_krb4; krb4=$enableval
6668 if test "$krb4" != no; then
6670 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
6671 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
6672 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_check_lib_save_LIBS=$LIBS
6676 LIBS="-lresolv $LIBS"
6677 cat >conftest.$ac_ext <<_ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6684 /* Override any GCC internal prototype to avoid an error.
6685 Use char because int might match the return type of a GCC
6686 builtin and then its argument prototype would still apply. */
6694 return res_search ();
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (ac_try="$ac_link"
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706 (eval "$ac_link") 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest$ac_exeext &&
6716 $as_test_x conftest$ac_exeext; then
6717 ac_cv_lib_resolv_res_search=yes
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 ac_cv_lib_resolv_res_search=no
6725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6726 conftest$ac_exeext conftest.$ac_ext
6727 LIBS=$ac_check_lib_save_LIBS
6729 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
6730 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
6731 if test $ac_cv_lib_resolv_res_search = yes; then
6732 cat >>confdefs.h <<_ACEOF
6733 #define HAVE_LIBRESOLV 1
6736 LIBS="-lresolv $LIBS"
6741 if test -d ${krb4}; then
6742 { echo "$as_me:$LINENO: checking for Kerberos includes" >&5
6743 echo $ECHO_N "checking for Kerberos includes... $ECHO_C" >&6; }
6744 if test "${cyrus_krbinclude+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 for krbhloc in include/kerberosIV include/kerberos include
6750 if test -f ${krb4}/${krbhloc}/krb.h ; then
6751 cyrus_krbinclude=${krb4}/${krbhloc}
6757 { echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
6758 echo "${ECHO_T}$cyrus_krbinclude" >&6; }
6760 if test -n "${cyrus_krbinclude}"; then
6761 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
6763 LDFLAGS="$LDFLAGS -L$krb4/lib"
6766 if test "$with_des" != no; then
6767 if test "${ac_cv_header_krb_h+set}" = set; then
6768 { echo "$as_me:$LINENO: checking for krb.h" >&5
6769 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
6770 if test "${ac_cv_header_krb_h+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
6774 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
6776 # Is the header compilable?
6777 { echo "$as_me:$LINENO: checking krb.h usability" >&5
6778 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6788 rm -f conftest.$ac_objext
6789 if { (ac_try="$ac_compile"
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6795 (eval "$ac_compile") 2>conftest.er1
6797 grep -v '^ *+' conftest.er1 >conftest.err
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && {
6802 test -z "$ac_c_werror_flag" ||
6803 test ! -s conftest.err
6804 } && test -s conftest.$ac_objext; then
6805 ac_header_compiler=yes
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6810 ac_header_compiler=no
6813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6815 echo "${ECHO_T}$ac_header_compiler" >&6; }
6817 # Is the header present?
6818 { echo "$as_me:$LINENO: checking krb.h presence" >&5
6819 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6828 if { (ac_try="$ac_cpp conftest.$ac_ext"
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6836 grep -v '^ *+' conftest.er1 >conftest.err
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } >/dev/null && {
6841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6842 test ! -s conftest.err
6844 ac_header_preproc=yes
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 ac_header_preproc=no
6852 rm -f conftest.err conftest.$ac_ext
6853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6854 echo "${ECHO_T}$ac_header_preproc" >&6; }
6856 # So? What about this header?
6857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6859 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
6860 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6861 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
6862 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
6863 ac_header_preproc=yes
6866 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
6867 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
6868 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
6869 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
6870 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
6871 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
6872 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
6873 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
6874 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
6875 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
6876 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
6877 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
6881 { echo "$as_me:$LINENO: checking for krb.h" >&5
6882 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
6883 if test "${ac_cv_header_krb_h+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_cv_header_krb_h=$ac_header_preproc
6888 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
6889 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
6892 if test $ac_cv_header_krb_h = yes; then
6894 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
6895 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
6896 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 ac_check_lib_save_LIBS=$LIBS
6900 LIBS="-lcom_err $LIBS"
6901 cat >conftest.$ac_ext <<_ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6908 /* Override any GCC internal prototype to avoid an error.
6909 Use char because int might match the return type of a GCC
6910 builtin and then its argument prototype would still apply. */
6923 rm -f conftest.$ac_objext conftest$ac_exeext
6924 if { (ac_try="$ac_link"
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930 (eval "$ac_link") 2>conftest.er1
6932 grep -v '^ *+' conftest.er1 >conftest.err
6934 cat conftest.err >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); } && {
6937 test -z "$ac_c_werror_flag" ||
6938 test ! -s conftest.err
6939 } && test -s conftest$ac_exeext &&
6940 $as_test_x conftest$ac_exeext; then
6941 ac_cv_lib_com_err_com_err=yes
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 ac_cv_lib_com_err_com_err=no
6949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6950 conftest$ac_exeext conftest.$ac_ext
6951 LIBS=$ac_check_lib_save_LIBS
6953 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
6954 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
6955 if test $ac_cv_lib_com_err_com_err = yes; then
6957 { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
6958 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
6959 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 ac_check_lib_save_LIBS=$LIBS
6963 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6971 /* Override any GCC internal prototype to avoid an error.
6972 Use char because int might match the return type of a GCC
6973 builtin and then its argument prototype would still apply. */
6977 char krb_mk_priv ();
6981 return krb_mk_priv ();
6986 rm -f conftest.$ac_objext conftest$ac_exeext
6987 if { (ac_try="$ac_link"
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6993 (eval "$ac_link") 2>conftest.er1
6995 grep -v '^ *+' conftest.er1 >conftest.err
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest$ac_exeext &&
7003 $as_test_x conftest$ac_exeext; then
7004 ac_cv_lib_krb_krb_mk_priv=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_lib_krb_krb_mk_priv=no
7012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7013 conftest$ac_exeext conftest.$ac_ext
7014 LIBS=$ac_check_lib_save_LIBS
7016 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
7017 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
7018 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
7019 COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
7026 { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
7027 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
7028 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 ac_check_lib_save_LIBS=$LIBS
7032 LIBS="-lkrb $LIB_DES $LIBS"
7033 cat >conftest.$ac_ext <<_ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7040 /* Override any GCC internal prototype to avoid an error.
7041 Use char because int might match the return type of a GCC
7042 builtin and then its argument prototype would still apply. */
7046 char krb_mk_priv ();
7050 return krb_mk_priv ();
7055 rm -f conftest.$ac_objext conftest$ac_exeext
7056 if { (ac_try="$ac_link"
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062 (eval "$ac_link") 2>conftest.er1
7064 grep -v '^ *+' conftest.er1 >conftest.err
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && {
7069 test -z "$ac_c_werror_flag" ||
7070 test ! -s conftest.err
7071 } && test -s conftest$ac_exeext &&
7072 $as_test_x conftest$ac_exeext; then
7073 ac_cv_lib_krb_krb_mk_priv=yes
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_cv_lib_krb_krb_mk_priv=no
7081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7082 conftest$ac_exeext conftest.$ac_ext
7083 LIBS=$ac_check_lib_save_LIBS
7085 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
7086 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
7087 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
7088 COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
7101 if test "$krb4" != "no" -a "$krb4lib" = "no"; then
7102 { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5
7103 echo $ECHO_N "checking for krb_mk_priv in -lkrb4... $ECHO_C" >&6; }
7104 if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 ac_check_lib_save_LIBS=$LIBS
7108 LIBS="-lkrb4 $LIB_DES $LIBS"
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7116 /* Override any GCC internal prototype to avoid an error.
7117 Use char because int might match the return type of a GCC
7118 builtin and then its argument prototype would still apply. */
7122 char krb_mk_priv ();
7126 return krb_mk_priv ();
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (ac_try="$ac_link"
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_link") 2>conftest.er1
7140 grep -v '^ *+' conftest.er1 >conftest.err
7142 cat conftest.err >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && {
7145 test -z "$ac_c_werror_flag" ||
7146 test ! -s conftest.err
7147 } && test -s conftest$ac_exeext &&
7148 $as_test_x conftest$ac_exeext; then
7149 ac_cv_lib_krb4_krb_mk_priv=yes
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7154 ac_cv_lib_krb4_krb_mk_priv=no
7157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7158 conftest$ac_exeext conftest.$ac_ext
7159 LIBS=$ac_check_lib_save_LIBS
7161 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
7162 echo "${ECHO_T}$ac_cv_lib_krb4_krb_mk_priv" >&6; }
7163 if test $ac_cv_lib_krb4_krb_mk_priv = yes; then
7164 COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
7170 if test "$krb4" = no; then
7171 { echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5
7172 echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
7175 { echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5
7176 echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
7181 if test "$krb4" != no; then
7182 cmu_save_LIBS="$LIBS"
7183 LIBS="$LIBS $SASL_KRB_LIB"
7185 for ac_func in krb_get_err_text
7187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7201 #define $ac_func innocuous_$ac_func
7203 /* System header to define __stub macros and hopefully few prototypes,
7204 which can conflict with char $ac_func (); below.
7205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7206 <limits.h> exists even on freestanding compilers. */
7209 # include <limits.h>
7211 # include <assert.h>
7216 /* Override any GCC internal prototype to avoid an error.
7217 Use char because int might match the return type of a GCC
7218 builtin and then its argument prototype would still apply. */
7223 /* The GNU C library defines this for functions which it implements
7224 to always fail with ENOSYS. Some functions are actually named
7225 something starting with __ and the normal name is an alias. */
7226 #if defined __stub_$ac_func || defined __stub___$ac_func
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (ac_try="$ac_link"
7241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242 *) ac_try_echo=$ac_try;;
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245 (eval "$ac_link") 2>conftest.er1
7247 grep -v '^ *+' conftest.er1 >conftest.err
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && {
7252 test -z "$ac_c_werror_flag" ||
7253 test ! -s conftest.err
7254 } && test -s conftest$ac_exeext &&
7255 $as_test_x conftest$ac_exeext; then
7256 eval "$as_ac_var=yes"
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7261 eval "$as_ac_var=no"
7264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7265 conftest$ac_exeext conftest.$ac_ext
7267 ac_res=`eval echo '${'$as_ac_var'}'`
7268 { echo "$as_me:$LINENO: result: $ac_res" >&5
7269 echo "${ECHO_T}$ac_res" >&6; }
7270 if test `eval echo '${'$as_ac_var'}'` = yes; then
7271 cat >>confdefs.h <<_ACEOF
7272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7278 LIBS="$cmu_save_LIBS"
7281 { echo "$as_me:$LINENO: checking KERBEROS_V4" >&5
7282 echo $ECHO_N "checking KERBEROS_V4... $ECHO_C" >&6; }
7283 if test "$krb4" != no; then
7284 { echo "$as_me:$LINENO: result: enabled" >&5
7285 echo "${ECHO_T}enabled" >&6; }
7286 SASL_MECHS="$SASL_MECHS libkerberos4.la"
7287 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
7288 SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
7290 cat >>confdefs.h <<\_ACEOF
7291 #define STATIC_KERBEROS4
7295 cat >>confdefs.h <<\_ACEOF
7299 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
7301 { echo "$as_me:$LINENO: result: disabled" >&5
7302 echo "${ECHO_T}disabled" >&6; }
7306 { echo "$as_me:$LINENO: checking for crypt" >&5
7307 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
7308 if test "${ac_cv_func_crypt+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 cat >conftest.$ac_ext <<_ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
7318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7319 #define crypt innocuous_crypt
7321 /* System header to define __stub macros and hopefully few prototypes,
7322 which can conflict with char crypt (); below.
7323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7324 <limits.h> exists even on freestanding compilers. */
7327 # include <limits.h>
7329 # include <assert.h>
7334 /* Override any GCC internal prototype to avoid an error.
7335 Use char because int might match the return type of a GCC
7336 builtin and then its argument prototype would still apply. */
7341 /* The GNU C library defines this for functions which it implements
7342 to always fail with ENOSYS. Some functions are actually named
7343 something starting with __ and the normal name is an alias. */
7344 #if defined __stub_crypt || defined __stub___crypt
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (ac_try="$ac_link"
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_link") 2>conftest.er1
7365 grep -v '^ *+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest$ac_exeext &&
7373 $as_test_x conftest$ac_exeext; then
7374 ac_cv_func_crypt=yes
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7383 conftest$ac_exeext conftest.$ac_ext
7385 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7386 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
7387 if test $ac_cv_func_crypt = yes; then
7390 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7391 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
7392 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 ac_check_lib_save_LIBS=$LIBS
7396 LIBS="-lcrypt $LIBS"
7397 cat >conftest.$ac_ext <<_ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7404 /* Override any GCC internal prototype to avoid an error.
7405 Use char because int might match the return type of a GCC
7406 builtin and then its argument prototype would still apply. */
7419 rm -f conftest.$ac_objext conftest$ac_exeext
7420 if { (ac_try="$ac_link"
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_link") 2>conftest.er1
7428 grep -v '^ *+' conftest.er1 >conftest.err
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } && {
7433 test -z "$ac_c_werror_flag" ||
7434 test ! -s conftest.err
7435 } && test -s conftest$ac_exeext &&
7436 $as_test_x conftest$ac_exeext; then
7437 ac_cv_lib_crypt_crypt=yes
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 ac_cv_lib_crypt_crypt=no
7445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7446 conftest$ac_exeext conftest.$ac_ext
7447 LIBS=$ac_check_lib_save_LIBS
7449 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7450 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
7451 if test $ac_cv_lib_crypt_crypt = yes; then
7452 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
7463 # Check whether --enable-gssapi was given.
7464 if test "${enable_gssapi+set}" = set; then
7465 enableval=$enable_gssapi; gssapi=$enableval
7471 # Check whether --with-gss_impl was given.
7472 if test "${with_gss_impl+set}" = set; then
7473 withval=$with_gss_impl; gss_impl=$withval
7479 if test "$gssapi" != no; then
7492 # When should we use __sunos?
7500 { 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
7501 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;}
7502 if test "$gss_impl" = "cybersafe"; then
7503 { { echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5
7504 echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;}
7505 { (exit 1); exit 1; }; }
7510 cmu_saved_CPPFLAGS=$CPPFLAGS
7512 if test -d ${gssapi}; then
7513 CPPFLAGS="$CPPFLAGS -I$gssapi/include"
7514 # We want to keep -I in our CPPFLAGS, but only if we succeed
7515 cmu_saved_CPPFLAGS=$CPPFLAGS
7516 ### I am not sure how useful is this (and whether this is required at all
7517 ### especially when we have to provide two -L flags for new CyberSafe
7518 LDFLAGS="$LDFLAGS -L$gssapi/lib"
7520 if test -n "$platform"; then
7521 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
7522 CPPFLAGS="$CPPFLAGS -D$platform"
7523 if test -d "${gssapi}/appsec-sdk/include"; then
7524 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
7529 if test "${ac_cv_header_gssapi_h+set}" = set; then
7530 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
7531 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
7532 if test "${ac_cv_header_gssapi_h+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
7536 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
7538 # Is the header compilable?
7539 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
7540 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
7541 cat >conftest.$ac_ext <<_ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 $ac_includes_default
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7559 grep -v '^ *+' conftest.er1 >conftest.err
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_c_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 ac_header_compiler=yes
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 ac_header_compiler=no
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7577 echo "${ECHO_T}$ac_header_compiler" >&6; }
7579 # Is the header present?
7580 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
7581 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
7582 cat >conftest.$ac_ext <<_ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7590 if { (ac_try="$ac_cpp conftest.$ac_ext"
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7598 grep -v '^ *+' conftest.er1 >conftest.err
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } >/dev/null && {
7603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7604 test ! -s conftest.err
7606 ac_header_preproc=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 ac_header_preproc=no
7614 rm -f conftest.err conftest.$ac_ext
7615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7616 echo "${ECHO_T}$ac_header_preproc" >&6; }
7618 # So? What about this header?
7619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7621 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
7622 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7623 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
7624 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
7625 ac_header_preproc=yes
7628 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
7629 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
7630 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
7631 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
7632 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
7633 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
7635 echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
7636 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
7637 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
7639 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
7643 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
7644 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
7645 if test "${ac_cv_header_gssapi_h+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 ac_cv_header_gssapi_h=$ac_header_preproc
7650 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
7651 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
7654 if test $ac_cv_header_gssapi_h = yes; then
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_GSSAPI_H
7661 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
7662 { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
7663 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
7664 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
7668 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
7670 # Is the header compilable?
7671 { echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5
7672 echo $ECHO_N "checking gssapi/gssapi.h usability... $ECHO_C" >&6; }
7673 cat >conftest.$ac_ext <<_ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 #include <gssapi/gssapi.h>
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7699 ac_header_compiler=yes
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 ac_header_compiler=no
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7709 echo "${ECHO_T}$ac_header_compiler" >&6; }
7711 # Is the header present?
7712 { echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5
7713 echo $ECHO_N "checking gssapi/gssapi.h presence... $ECHO_C" >&6; }
7714 cat >conftest.$ac_ext <<_ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7720 #include <gssapi/gssapi.h>
7722 if { (ac_try="$ac_cpp conftest.$ac_ext"
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7730 grep -v '^ *+' conftest.er1 >conftest.err
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } >/dev/null && {
7735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7738 ac_header_preproc=yes
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 ac_header_preproc=no
7746 rm -f conftest.err conftest.$ac_ext
7747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7748 echo "${ECHO_T}$ac_header_preproc" >&6; }
7750 # So? What about this header?
7751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7753 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
7754 echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7755 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&5
7756 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&2;}
7757 ac_header_preproc=yes
7760 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5
7761 echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&5
7763 echo "$as_me: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&5
7765 echo "$as_me: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
7767 echo "$as_me: WARNING: gssapi/gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
7769 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
7770 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&5
7771 echo "$as_me: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&2;}
7775 { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
7776 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
7777 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
7782 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
7783 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
7786 if test $ac_cv_header_gssapi_gssapi_h = yes; then
7789 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5
7790 echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
7798 CPPFLAGS=$cmu_saved_CPPFLAGS
7802 if test "$gssapi" != no; then
7803 # We need to find out which gssapi implementation we are
7804 # using. Supported alternatives are: MIT Kerberos 5,
7805 # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
7806 # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
7807 # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
7809 # The choice is reflected in GSSAPIBASE_LIBS
7812 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
7813 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
7814 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 ac_check_lib_save_LIBS=$LIBS
7818 LIBS="-lresolv $LIBS"
7819 cat >conftest.$ac_ext <<_ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7826 /* Override any GCC internal prototype to avoid an error.
7827 Use char because int might match the return type of a GCC
7828 builtin and then its argument prototype would still apply. */
7836 return res_search ();
7841 rm -f conftest.$ac_objext conftest$ac_exeext
7842 if { (ac_try="$ac_link"
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_link") 2>conftest.er1
7850 grep -v '^ *+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest$ac_exeext &&
7858 $as_test_x conftest$ac_exeext; then
7859 ac_cv_lib_resolv_res_search=yes
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 ac_cv_lib_resolv_res_search=no
7867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7868 conftest$ac_exeext conftest.$ac_ext
7869 LIBS=$ac_check_lib_save_LIBS
7871 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
7872 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
7873 if test $ac_cv_lib_resolv_res_search = yes; then
7874 cat >>confdefs.h <<_ACEOF
7875 #define HAVE_LIBRESOLV 1
7878 LIBS="-lresolv $LIBS"
7882 if test -d ${gssapi}; then
7883 gssapi_dir="${gssapi}/lib"
7884 GSSAPIBASE_LIBS="-L$gssapi_dir"
7885 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
7887 # FIXME: This is only used for building cyrus, and then only as
7888 # a real hack. it needs to be fixed.
7889 gssapi_dir="/usr/local/lib"
7892 # Check a full link against the Heimdal libraries.
7893 # If this fails, check a full link against the MIT libraries.
7894 # If this fails, check a full link against the CyberSafe libraries.
7895 # If this fails, check a full link against the Solaris 8 and up libgss.
7897 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
7899 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
7900 echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6; }
7901 if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_check_lib_save_LIBS=$LIBS
7905 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7913 /* Override any GCC internal prototype to avoid an error.
7914 Use char because int might match the return type of a GCC
7915 builtin and then its argument prototype would still apply. */
7923 return gss_unwrap ();
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7937 grep -v '^ *+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest$ac_exeext &&
7945 $as_test_x conftest$ac_exeext; then
7946 ac_cv_lib_gssapi_gss_unwrap=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 ac_cv_lib_gssapi_gss_unwrap=no
7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955 conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7958 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
7959 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6; }
7960 if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
7966 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
7971 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
7972 # check for libkrb5support first
7973 { echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
7974 echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6; }
7975 if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 ac_check_lib_save_LIBS=$LIBS
7979 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7987 /* Override any GCC internal prototype to avoid an error.
7988 Use char because int might match the return type of a GCC
7989 builtin and then its argument prototype would still apply. */
7993 char krb5int_getspecific ();
7997 return krb5int_getspecific ();
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (ac_try="$ac_link"
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_link") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest$ac_exeext &&
8019 $as_test_x conftest$ac_exeext; then
8020 ac_cv_lib_krb5support_krb5int_getspecific=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_cv_lib_krb5support_krb5int_getspecific=no
8028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8029 conftest$ac_exeext conftest.$ac_ext
8030 LIBS=$ac_check_lib_save_LIBS
8032 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
8033 echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
8034 if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
8035 K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
8040 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
8041 echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6; }
8042 if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 ac_check_lib_save_LIBS=$LIBS
8046 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
8047 cat >conftest.$ac_ext <<_ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8054 /* Override any GCC internal prototype to avoid an error.
8055 Use char because int might match the return type of a GCC
8056 builtin and then its argument prototype would still apply. */
8064 return gss_unwrap ();
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_link") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest$ac_exeext &&
8086 $as_test_x conftest$ac_exeext; then
8087 ac_cv_lib_gssapi_krb5_gss_unwrap=yes
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 ac_cv_lib_gssapi_krb5_gss_unwrap=no
8095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8096 conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8099 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
8100 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
8101 if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
8107 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
8112 # For Cybersafe one has to set a platform define in order to make compilation work
8113 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
8115 cmu_saved_CPPFLAGS=$CPPFLAGS
8116 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
8117 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
8118 if test -d "${gssapi}/appsec-rt/lib"; then
8119 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
8121 CPPFLAGS="$CPPFLAGS -D$platform"
8122 if test -d "${gssapi}/appsec-sdk/include"; then
8123 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
8128 # Check for CyberSafe with two libraries first, than fall back to a single
8129 # library (older CyberSafe)
8131 unset ac_cv_lib_gss_csf_gss_acq_user
8132 { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
8133 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
8134 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 ac_check_lib_save_LIBS=$LIBS
8138 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8146 /* Override any GCC internal prototype to avoid an error.
8147 Use char because int might match the return type of a GCC
8148 builtin and then its argument prototype would still apply. */
8152 char csf_gss_acq_user ();
8156 return csf_gss_acq_user ();
8161 rm -f conftest.$ac_objext conftest$ac_exeext
8162 if { (ac_try="$ac_link"
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_link") 2>conftest.er1
8170 grep -v '^ *+' conftest.er1 >conftest.err
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && {
8175 test -z "$ac_c_werror_flag" ||
8176 test ! -s conftest.err
8177 } && test -s conftest$ac_exeext &&
8178 $as_test_x conftest$ac_exeext; then
8179 ac_cv_lib_gss_csf_gss_acq_user=yes
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_cv_lib_gss_csf_gss_acq_user=no
8187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8188 conftest$ac_exeext conftest.$ac_ext
8189 LIBS=$ac_check_lib_save_LIBS
8191 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
8192 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
8193 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
8194 gss_impl="cybersafe03"
8196 unset ac_cv_lib_gss_csf_gss_acq_user;
8197 { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
8198 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
8199 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 ac_check_lib_save_LIBS=$LIBS
8203 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
8204 cat >conftest.$ac_ext <<_ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8211 /* Override any GCC internal prototype to avoid an error.
8212 Use char because int might match the return type of a GCC
8213 builtin and then its argument prototype would still apply. */
8217 char csf_gss_acq_user ();
8221 return csf_gss_acq_user ();
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_link") 2>conftest.er1
8235 grep -v '^ *+' conftest.er1 >conftest.err
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && {
8240 test -z "$ac_c_werror_flag" ||
8241 test ! -s conftest.err
8242 } && test -s conftest$ac_exeext &&
8243 $as_test_x conftest$ac_exeext; then
8244 ac_cv_lib_gss_csf_gss_acq_user=yes
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8249 ac_cv_lib_gss_csf_gss_acq_user=no
8252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8253 conftest$ac_exeext conftest.$ac_ext
8254 LIBS=$ac_check_lib_save_LIBS
8256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
8257 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
8258 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
8259 gss_impl="cybersafe"
8267 if test "$gss_failed" = "1"; then
8269 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
8270 CPPFLAGS=$cmu_saved_CPPFLAGS
8272 if test "$gss_impl" != "auto"; then
8278 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
8280 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
8281 echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6; }
8282 if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 ac_check_lib_save_LIBS=$LIBS
8286 LIBS="-lgss -lgss $LIBS"
8287 cat >conftest.$ac_ext <<_ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8294 /* Override any GCC internal prototype to avoid an error.
8295 Use char because int might match the return type of a GCC
8296 builtin and then its argument prototype would still apply. */
8304 return gss_unwrap ();
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (ac_try="$ac_link"
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_link") 2>conftest.er1
8318 grep -v '^ *+' conftest.er1 >conftest.err
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } && {
8323 test -z "$ac_c_werror_flag" ||
8324 test ! -s conftest.err
8325 } && test -s conftest$ac_exeext &&
8326 $as_test_x conftest$ac_exeext; then
8327 ac_cv_lib_gss_gss_unwrap=yes
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8332 ac_cv_lib_gss_gss_unwrap=no
8335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8336 conftest$ac_exeext conftest.$ac_ext
8337 LIBS=$ac_check_lib_save_LIBS
8339 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
8340 echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6; }
8341 if test $ac_cv_lib_gss_gss_unwrap = yes; then
8347 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
8352 if test "$gss_impl" = "mit"; then
8353 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
8354 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
8355 elif test "$gss_impl" = "heimdal"; then
8356 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
8357 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
8358 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}"
8359 elif test "$gss_impl" = "cybersafe03"; then
8360 # Version of CyberSafe with two libraries
8361 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
8362 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
8363 # there is no static libgss for CyberSafe
8364 GSSAPIBASE_STATIC_LIBS=none
8365 elif test "$gss_impl" = "cybersafe"; then
8366 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
8367 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
8368 # there is no static libgss for CyberSafe
8369 GSSAPIBASE_STATIC_LIBS=none
8370 elif test "$gss_impl" = "seam"; then
8371 GSSAPIBASE_LIBS=-lgss
8372 # there is no static libgss on Solaris 8 and up
8373 GSSAPIBASE_STATIC_LIBS=none
8374 elif test "$gss_impl" = "failed"; then
8377 GSSAPIBASE_STATIC_LIBS=
8378 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
8379 echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
8383 GSSAPIBASE_STATIC_LIBS=
8384 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
8385 echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
8390 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
8391 # in gssapi\rfckrb5.h
8393 if test "$gssapi" != "no"; then
8394 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
8395 cat >conftest.$ac_ext <<_ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 #include <gssapi/gssapi.h>
8402 #ifdef GSS_C_NT_HOSTBASED_SERVICE
8403 hostbased_service_gss_nt_yes
8406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8407 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
8409 cat >>confdefs.h <<\_ACEOF
8410 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
8414 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
8415 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
8420 elif test "$ac_cv_header_gssapi_h" = "yes"; then
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8431 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
8433 cat >>confdefs.h <<\_ACEOF
8434 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
8440 elif test "$ac_cv_header_gssapi_gssapi_h"; then
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 #include <gssapi/gssapi.h>
8450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8451 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
8453 cat >>confdefs.h <<\_ACEOF
8454 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
8462 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 #include <gssapi/gssapi.h>
8470 #ifdef GSS_C_NT_USER_NAME
8471 user_name_yes_gss_nt
8474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8475 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
8477 cat >>confdefs.h <<\_ACEOF
8478 #define HAVE_GSS_C_NT_USER_NAME
8482 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
8483 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
8487 elif test "$ac_cv_header_gssapi_h" = "yes"; then
8488 cat >conftest.$ac_ext <<_ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8498 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
8500 cat >>confdefs.h <<\_ACEOF
8501 #define HAVE_GSS_C_NT_USER_NAME
8507 elif test "$ac_cv_header_gssapi_gssapi_h"; then
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 #include <gssapi/gssapi.h>
8517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8518 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_GSS_C_NT_USER_NAME
8531 { echo "$as_me:$LINENO: checking GSSAPI" >&5
8532 echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6; }
8533 if test "$gssapi" != no; then
8534 { echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
8535 echo "${ECHO_T}with implementation ${gss_impl}" >&6; }
8536 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
8537 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
8538 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 ac_check_lib_save_LIBS=$LIBS
8542 LIBS="-lresolv $LIBS"
8543 cat >conftest.$ac_ext <<_ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8550 /* Override any GCC internal prototype to avoid an error.
8551 Use char because int might match the return type of a GCC
8552 builtin and then its argument prototype would still apply. */
8560 return res_search ();
8565 rm -f conftest.$ac_objext conftest$ac_exeext
8566 if { (ac_try="$ac_link"
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_link") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest$ac_exeext &&
8582 $as_test_x conftest$ac_exeext; then
8583 ac_cv_lib_resolv_res_search=yes
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8588 ac_cv_lib_resolv_res_search=no
8591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592 conftest$ac_exeext conftest.$ac_ext
8593 LIBS=$ac_check_lib_save_LIBS
8595 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
8596 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
8597 if test $ac_cv_lib_resolv_res_search = yes; then
8598 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
8601 SASL_MECHS="$SASL_MECHS libgs2.la libgssapiv2.la"
8602 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o gssapi.o"
8603 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c ../plugins/gssapi.c"
8605 cmu_save_LIBS="$LIBS"
8606 LIBS="$LIBS $GSSAPIBASE_LIBS"
8608 for ac_func in gsskrb5_register_acceptor_identity
8610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 cat >conftest.$ac_ext <<_ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8624 #define $ac_func innocuous_$ac_func
8626 /* System header to define __stub macros and hopefully few prototypes,
8627 which can conflict with char $ac_func (); below.
8628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 <limits.h> exists even on freestanding compilers. */
8632 # include <limits.h>
8634 # include <assert.h>
8639 /* Override any GCC internal prototype to avoid an error.
8640 Use char because int might match the return type of a GCC
8641 builtin and then its argument prototype would still apply. */
8646 /* The GNU C library defines this for functions which it implements
8647 to always fail with ENOSYS. Some functions are actually named
8648 something starting with __ and the normal name is an alias. */
8649 #if defined __stub_$ac_func || defined __stub___$ac_func
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (ac_try="$ac_link"
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_link") 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest$ac_exeext &&
8678 $as_test_x conftest$ac_exeext; then
8679 eval "$as_ac_var=yes"
8681 echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 eval "$as_ac_var=no"
8687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8688 conftest$ac_exeext conftest.$ac_ext
8690 ac_res=`eval echo '${'$as_ac_var'}'`
8691 { echo "$as_me:$LINENO: result: $ac_res" >&5
8692 echo "${ECHO_T}$ac_res" >&6; }
8693 if test `eval echo '${'$as_ac_var'}'` = yes; then
8694 cat >>confdefs.h <<_ACEOF
8695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8701 LIBS="$cmu_save_LIBS"
8703 { echo "$as_me:$LINENO: result: disabled" >&5
8704 echo "${ECHO_T}disabled" >&6; }
8710 if test "$gssapi" != no; then
8711 if test "$gss_impl" = "heimdal"; then
8713 cat >>confdefs.h <<\_ACEOF
8714 #define KRB5_HEIMDAL
8719 cat >>confdefs.h <<\_ACEOF
8725 { echo "$as_me:$LINENO: checking for crypt" >&5
8726 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
8727 if test "${ac_cv_func_crypt+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 cat >conftest.$ac_ext <<_ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8738 #define crypt innocuous_crypt
8740 /* System header to define __stub macros and hopefully few prototypes,
8741 which can conflict with char crypt (); below.
8742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8743 <limits.h> exists even on freestanding compilers. */
8746 # include <limits.h>
8748 # include <assert.h>
8753 /* Override any GCC internal prototype to avoid an error.
8754 Use char because int might match the return type of a GCC
8755 builtin and then its argument prototype would still apply. */
8760 /* The GNU C library defines this for functions which it implements
8761 to always fail with ENOSYS. Some functions are actually named
8762 something starting with __ and the normal name is an alias. */
8763 #if defined __stub_crypt || defined __stub___crypt
8775 rm -f conftest.$ac_objext conftest$ac_exeext
8776 if { (ac_try="$ac_link"
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_link") 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest$ac_exeext &&
8792 $as_test_x conftest$ac_exeext; then
8793 ac_cv_func_crypt=yes
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8802 conftest$ac_exeext conftest.$ac_ext
8804 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8805 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
8806 if test $ac_cv_func_crypt = yes; then
8809 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8810 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
8811 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-lcrypt $LIBS"
8816 cat >conftest.$ac_ext <<_ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8823 /* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_link") 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && {
8852 test -z "$ac_c_werror_flag" ||
8853 test ! -s conftest.err
8854 } && test -s conftest$ac_exeext &&
8855 $as_test_x conftest$ac_exeext; then
8856 ac_cv_lib_crypt_crypt=yes
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_lib_crypt_crypt=no
8864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8865 conftest$ac_exeext conftest.$ac_ext
8866 LIBS=$ac_check_lib_save_LIBS
8868 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8869 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
8870 if test $ac_cv_lib_crypt_crypt = yes; then
8871 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
8881 # Check whether --enable-sia was given.
8882 if test "${enable_sia+set}" = set; then
8883 enableval=$enable_sia; sia=$enableval
8889 if test "$sia" != no; then
8890 if test -f /etc/sia/matrix.conf; then
8892 cat >>confdefs.h <<\_ACEOF
8896 LIB_SIA="-lsecurity -ldb -lm -laud"
8898 { { echo "$as_me:$LINENO: error: No support for SIA found" >&5
8899 echo "$as_me: error: No support for SIA found" >&2;}
8900 { (exit 1); exit 1; }; }
8905 # Check whether --enable-auth-sasldb was given.
8906 if test "${enable_auth_sasldb+set}" = set; then
8907 enableval=$enable_auth_sasldb; authsasldb=$enableval
8912 if test "$authsasldb" != no; then
8913 if test ! -d "../sasldb"; then
8914 echo "ERROR: Cannot build sasldb module outside of the full SASL source tree."
8918 cat >>confdefs.h <<\_ACEOF
8924 # Check whether --with-dbpath was given.
8925 if test "${with_dbpath+set}" = set; then
8926 withval=$with_dbpath; dbpath=$withval
8931 { echo "$as_me:$LINENO: checking DB path to use" >&5
8932 echo $ECHO_N "checking DB path to use... $ECHO_C" >&6; }
8933 { echo "$as_me:$LINENO: result: $dbpath" >&5
8934 echo "${ECHO_T}$dbpath" >&6; }
8936 cat >>confdefs.h <<_ACEOF
8937 #define SASL_DB_PATH "$dbpath"
8941 cmu_save_LIBS="$LIBS"
8943 # Check whether --with-dblib was given.
8944 if test "${with_dblib+set}" = set; then
8945 withval=$with_dblib; dblib=$withval
8953 # Check whether --with-bdb-libdir was given.
8954 if test "${with_bdb_libdir+set}" = set; then
8955 withval=$with_bdb_libdir; with_bdb_lib=$withval
8957 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
8961 # Check whether --with-bdb-incdir was given.
8962 if test "${with_bdb_incdir+set}" = set; then
8963 withval=$with_bdb_incdir; with_bdb_inc=$withval
8965 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
8977 cmu_save_CPPFLAGS=$CPPFLAGS
8979 if test -d $with_bdb_inc; then
8980 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
8981 BDB_INCADD="-I$with_bdb_inc"
8986 if test "${ac_cv_header_db_h+set}" = set; then
8987 { echo "$as_me:$LINENO: checking for db.h" >&5
8988 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
8989 if test "${ac_cv_header_db_h+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8993 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
8995 # Is the header compilable?
8996 { echo "$as_me:$LINENO: checking db.h usability" >&5
8997 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
8998 cat >conftest.$ac_ext <<_ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 $ac_includes_default
9007 rm -f conftest.$ac_objext
9008 if { (ac_try="$ac_compile"
9010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011 *) ac_try_echo=$ac_try;;
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014 (eval "$ac_compile") 2>conftest.er1
9016 grep -v '^ *+' conftest.er1 >conftest.err
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } && {
9021 test -z "$ac_c_werror_flag" ||
9022 test ! -s conftest.err
9023 } && test -s conftest.$ac_objext; then
9024 ac_header_compiler=yes
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9029 ac_header_compiler=no
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034 echo "${ECHO_T}$ac_header_compiler" >&6; }
9036 # Is the header present?
9037 { echo "$as_me:$LINENO: checking db.h presence" >&5
9038 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
9039 cat >conftest.$ac_ext <<_ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9047 if { (ac_try="$ac_cpp conftest.$ac_ext"
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9055 grep -v '^ *+' conftest.er1 >conftest.err
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } >/dev/null && {
9060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9063 ac_header_preproc=yes
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_header_preproc=no
9071 rm -f conftest.err conftest.$ac_ext
9072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9073 echo "${ECHO_T}$ac_header_preproc" >&6; }
9075 # So? What about this header?
9076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9078 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
9079 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
9081 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
9082 ac_header_preproc=yes
9085 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
9086 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
9088 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
9090 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5
9092 echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
9094 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
9096 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
9100 { echo "$as_me:$LINENO: checking for db.h" >&5
9101 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
9102 if test "${ac_cv_header_db_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 ac_cv_header_db_h=$ac_header_preproc
9107 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
9108 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
9111 if test $ac_cv_header_db_h = yes; then
9113 BDB_SAVE_LDFLAGS=$LDFLAGS
9115 if test -d $with_bdb_lib; then
9117 # this is CMU ADD LIBPATH TO
9118 if test "$andrew_runpath_switch" = "none" ; then
9119 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
9121 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
9125 # this is CMU ADD LIBPATH TO
9126 if test "$andrew_runpath_switch" = "none" ; then
9127 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
9129 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
9137 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
9139 LIBS="$saved_LIBS -l$dbname"
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9150 db_create(NULL, NULL, 0);
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (ac_try="$ac_link"
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_link") 2>conftest.er1
9164 grep -v '^ *+' conftest.er1 >conftest.err
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest$ac_exeext &&
9172 $as_test_x conftest$ac_exeext; then
9173 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9182 conftest$ac_exeext conftest.$ac_ext
9183 if test "$dblib" = "berkeley"; then break; fi
9185 if test "$dblib" = "no"; then
9186 LIBS="$saved_LIBS -ldb"
9187 cat >conftest.$ac_ext <<_ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9197 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (ac_try="$ac_link"
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_link") 2>conftest.er1
9211 grep -v '^ *+' conftest.er1 >conftest.err
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest$ac_exeext &&
9219 $as_test_x conftest$ac_exeext; then
9220 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9229 conftest$ac_exeext conftest.$ac_ext
9233 LDFLAGS=$BDB_SAVE_LDFLAGS
9241 CPPFLAGS=$cmu_save_CPPFLAGS
9243 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
9244 SASL_DB_INC=$BDB_INCADD
9245 SASL_DB_LIB="${BDB_LIBADD}"
9249 # Check whether --with-gdbm was given.
9250 if test "${with_gdbm+set}" = set; then
9251 withval=$with_gdbm; with_gdbm="${withval}"
9255 case "$with_gdbm" in
9257 if test "${ac_cv_header_gdbm_h+set}" = set; then
9258 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
9259 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
9260 if test "${ac_cv_header_gdbm_h+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9264 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
9266 # Is the header compilable?
9267 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
9268 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
9269 cat >conftest.$ac_ext <<_ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 $ac_includes_default
9278 rm -f conftest.$ac_objext
9279 if { (ac_try="$ac_compile"
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9295 ac_header_compiler=yes
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_header_compiler=no
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9305 echo "${ECHO_T}$ac_header_compiler" >&6; }
9307 # Is the header present?
9308 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
9309 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9318 if { (ac_try="$ac_cpp conftest.$ac_ext"
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9326 grep -v '^ *+' conftest.er1 >conftest.err
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } >/dev/null && {
9331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9332 test ! -s conftest.err
9334 ac_header_preproc=yes
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_header_preproc=no
9342 rm -f conftest.err conftest.$ac_ext
9343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9344 echo "${ECHO_T}$ac_header_preproc" >&6; }
9346 # So? What about this header?
9347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9349 { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9350 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9351 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
9352 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
9353 ac_header_preproc=yes
9356 { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
9357 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
9358 { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
9359 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
9360 { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
9361 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
9362 { echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
9363 echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
9364 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
9365 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
9366 { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
9367 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
9371 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
9372 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
9373 if test "${ac_cv_header_gdbm_h+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 ac_cv_header_gdbm_h=$ac_header_preproc
9378 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9379 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
9382 if test $ac_cv_header_gdbm_h = yes; then
9384 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
9385 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
9386 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 ac_check_lib_save_LIBS=$LIBS
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9398 /* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9408 return gdbm_open ();
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (ac_try="$ac_link"
9416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 *) ac_try_echo=$ac_try;;
9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 (eval "$ac_link") 2>conftest.er1
9422 grep -v '^ *+' conftest.er1 >conftest.err
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && {
9427 test -z "$ac_c_werror_flag" ||
9428 test ! -s conftest.err
9429 } && test -s conftest$ac_exeext &&
9430 $as_test_x conftest$ac_exeext; then
9431 ac_cv_lib_gdbm_gdbm_open=yes
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_cv_lib_gdbm_gdbm_open=no
9439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9440 conftest$ac_exeext conftest.$ac_ext
9441 LIBS=$ac_check_lib_save_LIBS
9443 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
9444 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
9445 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
9446 SASL_DB_LIB="-lgdbm"
9458 if test -d $with_gdbm; then
9459 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
9460 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
9461 SASL_DB_LIB="-lgdbm"
9468 if test "${ac_cv_header_ndbm_h+set}" = set; then
9469 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
9470 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
9471 if test "${ac_cv_header_ndbm_h+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
9475 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
9477 # Is the header compilable?
9478 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
9479 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
9480 cat >conftest.$ac_ext <<_ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 $ac_includes_default
9489 rm -f conftest.$ac_objext
9490 if { (ac_try="$ac_compile"
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_compile") 2>conftest.er1
9498 grep -v '^ *+' conftest.er1 >conftest.err
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && {
9503 test -z "$ac_c_werror_flag" ||
9504 test ! -s conftest.err
9505 } && test -s conftest.$ac_objext; then
9506 ac_header_compiler=yes
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_header_compiler=no
9514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9516 echo "${ECHO_T}$ac_header_compiler" >&6; }
9518 # Is the header present?
9519 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
9520 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9529 if { (ac_try="$ac_cpp conftest.$ac_ext"
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } >/dev/null && {
9542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9545 ac_header_preproc=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_header_preproc=no
9553 rm -f conftest.err conftest.$ac_ext
9554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9555 echo "${ECHO_T}$ac_header_preproc" >&6; }
9557 # So? What about this header?
9558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9560 { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9561 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
9563 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
9564 ac_header_preproc=yes
9567 { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
9568 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
9570 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
9572 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5
9574 echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
9576 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
9578 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
9582 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
9583 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
9584 if test "${ac_cv_header_ndbm_h+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 ac_cv_header_ndbm_h=$ac_header_preproc
9589 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
9590 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
9593 if test $ac_cv_header_ndbm_h = yes; then
9595 { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
9596 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
9597 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 ac_check_lib_save_LIBS=$LIBS
9602 cat >conftest.$ac_ext <<_ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9609 /* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest$ac_exeext &&
9641 $as_test_x conftest$ac_exeext; then
9642 ac_cv_lib_ndbm_dbm_open=yes
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9647 ac_cv_lib_ndbm_dbm_open=no
9650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651 conftest$ac_exeext conftest.$ac_ext
9652 LIBS=$ac_check_lib_save_LIBS
9654 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
9655 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
9656 if test $ac_cv_lib_ndbm_dbm_open = yes; then
9657 SASL_DB_LIB="-lndbm"
9660 { echo "$as_me:$LINENO: checking for dbm_open" >&5
9661 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
9662 if test "${ac_cv_func_dbm_open+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 cat >conftest.$ac_ext <<_ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
9672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9673 #define dbm_open innocuous_dbm_open
9675 /* System header to define __stub macros and hopefully few prototypes,
9676 which can conflict with char dbm_open (); below.
9677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9678 <limits.h> exists even on freestanding compilers. */
9681 # include <limits.h>
9683 # include <assert.h>
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9695 /* The GNU C library defines this for functions which it implements
9696 to always fail with ENOSYS. Some functions are actually named
9697 something starting with __ and the normal name is an alias. */
9698 #if defined __stub_dbm_open || defined __stub___dbm_open
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
9719 grep -v '^ *+' conftest.er1 >conftest.err
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest$ac_exeext &&
9727 $as_test_x conftest$ac_exeext; then
9728 ac_cv_func_dbm_open=yes
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_cv_func_dbm_open=no
9736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9737 conftest$ac_exeext conftest.$ac_ext
9739 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
9740 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
9741 if test $ac_cv_func_dbm_open = yes; then
9759 cmu_save_CPPFLAGS=$CPPFLAGS
9761 if test -d $with_bdb_inc; then
9762 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
9763 BDB_INCADD="-I$with_bdb_inc"
9768 if test "${ac_cv_header_db_h+set}" = set; then
9769 { echo "$as_me:$LINENO: checking for db.h" >&5
9770 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
9771 if test "${ac_cv_header_db_h+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
9775 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
9777 # Is the header compilable?
9778 { echo "$as_me:$LINENO: checking db.h usability" >&5
9779 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 $ac_includes_default
9789 rm -f conftest.$ac_objext
9790 if { (ac_try="$ac_compile"
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_compile") 2>conftest.er1
9798 grep -v '^ *+' conftest.er1 >conftest.err
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } && {
9803 test -z "$ac_c_werror_flag" ||
9804 test ! -s conftest.err
9805 } && test -s conftest.$ac_objext; then
9806 ac_header_compiler=yes
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9811 ac_header_compiler=no
9814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9816 echo "${ECHO_T}$ac_header_compiler" >&6; }
9818 # Is the header present?
9819 { echo "$as_me:$LINENO: checking db.h presence" >&5
9820 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9829 if { (ac_try="$ac_cpp conftest.$ac_ext"
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9837 grep -v '^ *+' conftest.er1 >conftest.err
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } >/dev/null && {
9842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9845 ac_header_preproc=yes
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_header_preproc=no
9853 rm -f conftest.err conftest.$ac_ext
9854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9855 echo "${ECHO_T}$ac_header_preproc" >&6; }
9857 # So? What about this header?
9858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9860 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
9861 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9862 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
9863 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
9864 ac_header_preproc=yes
9867 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
9868 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
9870 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
9872 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5
9874 echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
9876 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
9878 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
9882 { echo "$as_me:$LINENO: checking for db.h" >&5
9883 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
9884 if test "${ac_cv_header_db_h+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 ac_cv_header_db_h=$ac_header_preproc
9889 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
9890 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
9893 if test $ac_cv_header_db_h = yes; then
9895 BDB_SAVE_LDFLAGS=$LDFLAGS
9897 if test -d $with_bdb_lib; then
9899 # this is CMU ADD LIBPATH TO
9900 if test "$andrew_runpath_switch" = "none" ; then
9901 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
9903 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
9907 # this is CMU ADD LIBPATH TO
9908 if test "$andrew_runpath_switch" = "none" ; then
9909 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
9911 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
9919 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
9921 LIBS="$saved_LIBS -l$dbname"
9922 cat >conftest.$ac_ext <<_ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9932 db_create(NULL, NULL, 0);
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_link") 2>conftest.er1
9946 grep -v '^ *+' conftest.er1 >conftest.err
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest$ac_exeext &&
9954 $as_test_x conftest$ac_exeext; then
9955 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9964 conftest$ac_exeext conftest.$ac_ext
9965 if test "$dblib" = "berkeley"; then break; fi
9967 if test "$dblib" = "no"; then
9968 LIBS="$saved_LIBS -ldb"
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9979 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9993 grep -v '^ *+' conftest.er1 >conftest.err
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext &&
10001 $as_test_x conftest$ac_exeext; then
10002 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10011 conftest$ac_exeext conftest.$ac_ext
10015 LDFLAGS=$BDB_SAVE_LDFLAGS
10023 CPPFLAGS=$cmu_save_CPPFLAGS
10025 if test "$dblib" = no; then
10026 if test "${ac_cv_header_ndbm_h+set}" = set; then
10027 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
10028 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
10029 if test "${ac_cv_header_ndbm_h+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
10033 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
10035 # Is the header compilable?
10036 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
10037 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
10038 cat >conftest.$ac_ext <<_ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10044 $ac_includes_default
10047 rm -f conftest.$ac_objext
10048 if { (ac_try="$ac_compile"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_compile") 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest.$ac_objext; then
10064 ac_header_compiler=yes
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_header_compiler=no
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10074 echo "${ECHO_T}$ac_header_compiler" >&6; }
10076 # Is the header present?
10077 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
10078 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
10079 cat >conftest.$ac_ext <<_ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10087 if { (ac_try="$ac_cpp conftest.$ac_ext"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } >/dev/null && {
10100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10103 ac_header_preproc=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_header_preproc=no
10111 rm -f conftest.err conftest.$ac_ext
10112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10113 echo "${ECHO_T}$ac_header_preproc" >&6; }
10115 # So? What about this header?
10116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10118 { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10119 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10120 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
10121 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
10122 ac_header_preproc=yes
10125 { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
10126 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
10128 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
10129 { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
10130 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
10131 { echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5
10132 echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10133 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
10134 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
10135 { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
10136 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
10140 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
10141 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
10142 if test "${ac_cv_header_ndbm_h+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 ac_cv_header_ndbm_h=$ac_header_preproc
10147 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
10148 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
10151 if test $ac_cv_header_ndbm_h = yes; then
10153 { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
10154 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
10155 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-lndbm $LIBS"
10160 cat >conftest.$ac_ext <<_ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10167 /* Override any GCC internal prototype to avoid an error.
10168 Use char because int might match the return type of a GCC
10169 builtin and then its argument prototype would still apply. */
10177 return dbm_open ();
10182 rm -f conftest.$ac_objext conftest$ac_exeext
10183 if { (ac_try="$ac_link"
10184 case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_link") 2>conftest.er1
10191 grep -v '^ *+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && {
10196 test -z "$ac_c_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest$ac_exeext &&
10199 $as_test_x conftest$ac_exeext; then
10200 ac_cv_lib_ndbm_dbm_open=yes
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_cv_lib_ndbm_dbm_open=no
10208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10209 conftest$ac_exeext conftest.$ac_ext
10210 LIBS=$ac_check_lib_save_LIBS
10212 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
10213 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
10214 if test $ac_cv_lib_ndbm_dbm_open = yes; then
10215 dblib="ndbm"; SASL_DB_LIB="-lndbm"
10225 if test "$dblib" = "weird"; then
10226 { echo "$as_me:$LINENO: checking for dbm_open" >&5
10227 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
10228 if test "${ac_cv_func_dbm_open+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
10238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10239 #define dbm_open innocuous_dbm_open
10241 /* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char dbm_open (); below.
10243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10244 <limits.h> exists even on freestanding compilers. */
10247 # include <limits.h>
10249 # include <assert.h>
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10261 /* The GNU C library defines this for functions which it implements
10262 to always fail with ENOSYS. Some functions are actually named
10263 something starting with __ and the normal name is an alias. */
10264 #if defined __stub_dbm_open || defined __stub___dbm_open
10271 return dbm_open ();
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_link") 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && {
10290 test -z "$ac_c_werror_flag" ||
10291 test ! -s conftest.err
10292 } && test -s conftest$ac_exeext &&
10293 $as_test_x conftest$ac_exeext; then
10294 ac_cv_func_dbm_open=yes
10296 echo "$as_me: failed program was:" >&5
10297 sed 's/^/| /' conftest.$ac_ext >&5
10299 ac_cv_func_dbm_open=no
10302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10303 conftest$ac_exeext conftest.$ac_ext
10305 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
10306 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
10307 if test $ac_cv_func_dbm_open = yes; then
10315 if test "$dblib" = no; then
10316 if test "${ac_cv_header_gdbm_h+set}" = set; then
10317 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
10318 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
10319 if test "${ac_cv_header_gdbm_h+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
10323 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
10325 # Is the header compilable?
10326 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
10327 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 $ac_includes_default
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_compile") 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest.$ac_objext; then
10354 ac_header_compiler=yes
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_header_compiler=no
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10364 echo "${ECHO_T}$ac_header_compiler" >&6; }
10366 # Is the header present?
10367 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
10368 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10377 if { (ac_try="$ac_cpp conftest.$ac_ext"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } >/dev/null && {
10390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10391 test ! -s conftest.err
10393 ac_header_preproc=yes
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 ac_header_preproc=no
10401 rm -f conftest.err conftest.$ac_ext
10402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10403 echo "${ECHO_T}$ac_header_preproc" >&6; }
10405 # So? What about this header?
10406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10408 { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10409 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
10411 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
10412 ac_header_preproc=yes
10415 { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
10416 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
10418 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
10420 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
10422 echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
10424 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
10426 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
10430 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
10431 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
10432 if test "${ac_cv_header_gdbm_h+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 ac_cv_header_gdbm_h=$ac_header_preproc
10437 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
10438 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
10441 if test $ac_cv_header_gdbm_h = yes; then
10443 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
10444 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
10445 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-lgdbm $LIBS"
10450 cat >conftest.$ac_ext <<_ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10457 /* Override any GCC internal prototype to avoid an error.
10458 Use char because int might match the return type of a GCC
10459 builtin and then its argument prototype would still apply. */
10467 return gdbm_open ();
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (ac_try="$ac_link"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_link") 2>conftest.er1
10481 grep -v '^ *+' conftest.er1 >conftest.err
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && {
10486 test -z "$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 } && test -s conftest$ac_exeext &&
10489 $as_test_x conftest$ac_exeext; then
10490 ac_cv_lib_gdbm_gdbm_open=yes
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 ac_cv_lib_gdbm_gdbm_open=no
10498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10499 conftest$ac_exeext conftest.$ac_ext
10500 LIBS=$ac_check_lib_save_LIBS
10502 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
10503 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
10504 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
10506 SASL_DB_LIB="-lgdbm"
10518 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
10519 SASL_DB_INC=$BDB_INCADD
10520 SASL_DB_LIB="${BDB_LIBADD}"
10528 { echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5
10529 echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
10530 { { echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5
10531 echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;}
10532 { (exit 1); exit 1; }; }
10536 LIBS="$cmu_save_LIBS"
10538 { echo "$as_me:$LINENO: checking DB library to use" >&5
10539 echo $ECHO_N "checking DB library to use... $ECHO_C" >&6; }
10540 { echo "$as_me:$LINENO: result: $dblib" >&5
10541 echo "${ECHO_T}$dblib" >&6; }
10543 SASL_DB_BACKEND="db_${dblib}.lo"
10544 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
10545 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
10546 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
10547 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
10551 SASL_MECHS="$SASL_MECHS libsasldb.la"
10553 cat >>confdefs.h <<\_ACEOF
10559 SASL_MECHS="$SASL_MECHS libsasldb.la"
10561 cat >>confdefs.h <<\_ACEOF
10567 SASL_MECHS="$SASL_MECHS libsasldb.la"
10569 cat >>confdefs.h <<\_ACEOF
10570 #define SASL_BERKELEYDB
10575 { echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5
10576 echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
10577 SASL_DB_BACKEND="db_none.lo"
10578 SASL_DB_BACKEND_STATIC="db_none.o"
10579 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
10586 if test "$enable_static" = yes; then
10587 if test "$dblib" != "none"; then
10588 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
10589 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
10591 cat >>confdefs.h <<\_ACEOF
10592 #define STATIC_SASLDB
10596 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
10597 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
10608 SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.al"
10611 # Check whether --enable-httpform was given.
10612 if test "${enable_httpform+set}" = set; then
10613 enableval=$enable_httpform; httpform=$enableval
10618 if test "$httpform" != no; then
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_HTTPFORM
10627 # Check whether --with-pam was given.
10628 if test "${with_pam+set}" = set; then
10629 withval=$with_pam; with_pam=$withval
10634 if test "$with_pam" != no; then
10635 if test -d $with_pam; then
10636 CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
10637 LDFLAGS="$LDFLAGS -L${with_pam}/lib"
10639 cmu_save_LIBS="$LIBS"
10640 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
10641 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
10642 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 ac_check_lib_save_LIBS=$LIBS
10646 LIBS="-lpam $SASL_DL_LIB $LIBS"
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10664 return pam_start ();
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10678 grep -v '^ *+' conftest.er1 >conftest.err
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } && {
10683 test -z "$ac_c_werror_flag" ||
10684 test ! -s conftest.err
10685 } && test -s conftest$ac_exeext &&
10686 $as_test_x conftest$ac_exeext; then
10687 ac_cv_lib_pam_pam_start=yes
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 ac_cv_lib_pam_pam_start=no
10695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10699 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
10700 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
10701 if test $ac_cv_lib_pam_pam_start = yes; then
10703 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
10704 { echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
10705 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6; }
10706 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10709 { echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
10710 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6; }
10712 # Is the header compilable?
10713 { echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
10714 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6; }
10715 cat >conftest.$ac_ext <<_ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 $ac_includes_default
10722 #include <security/pam_appl.h>
10724 rm -f conftest.$ac_objext
10725 if { (ac_try="$ac_compile"
10726 case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_compile") 2>conftest.er1
10733 grep -v '^ *+' conftest.er1 >conftest.err
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } && {
10738 test -z "$ac_c_werror_flag" ||
10739 test ! -s conftest.err
10740 } && test -s conftest.$ac_objext; then
10741 ac_header_compiler=yes
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ac_header_compiler=no
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10751 echo "${ECHO_T}$ac_header_compiler" >&6; }
10753 # Is the header present?
10754 { echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
10755 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6; }
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 #include <security/pam_appl.h>
10764 if { (ac_try="$ac_cpp conftest.$ac_ext"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10772 grep -v '^ *+' conftest.er1 >conftest.err
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } >/dev/null && {
10777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10780 ac_header_preproc=yes
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 ac_header_preproc=no
10788 rm -f conftest.err conftest.$ac_ext
10789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10790 echo "${ECHO_T}$ac_header_preproc" >&6; }
10792 # So? What about this header?
10793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10795 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10796 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
10798 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
10799 ac_header_preproc=yes
10802 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
10803 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
10805 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
10807 echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&5
10809 echo "$as_me: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
10811 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
10813 echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
10817 { echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
10818 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6; }
10819 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 ac_cv_header_security_pam_appl_h=$ac_header_preproc
10824 { echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
10825 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6; }
10828 if test $ac_cv_header_security_pam_appl_h = yes; then
10839 LIBS="$cmu_save_LIBS"
10843 # Check whether --with-ipctype was given.
10844 if test "${with_ipctype+set}" = set; then
10845 withval=$with_ipctype; with_ipctype=$withval
10847 with_ipctype="unix"
10850 MAIN_COMPAT_OBJ="saslauthd-${with_ipctype}.o"
10852 if test "$with_ipctype" = "doors"; then
10854 cat >>confdefs.h <<\_ACEOF
10859 cat >>confdefs.h <<\_ACEOF
10860 #define SASLAUTHD_THREADED
10863 LIBS="$LIBS -ldoor -lpthread"
10866 { echo "$as_me:$LINENO: checking for PAM support" >&5
10867 echo $ECHO_N "checking for PAM support... $ECHO_C" >&6; }
10868 { echo "$as_me:$LINENO: result: $with_pam" >&5
10869 echo "${ECHO_T}$with_pam" >&6; }
10871 if test "$with_pam" != no; then
10873 cat >>confdefs.h <<\_ACEOF
10882 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
10883 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
10884 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 ac_check_lib_save_LIBS=$LIBS
10888 LIBS="-lresolv $LIBS"
10889 cat >conftest.$ac_ext <<_ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10906 return inet_aton ();
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (ac_try="$ac_link"
10913 case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_link") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest$ac_exeext &&
10928 $as_test_x conftest$ac_exeext; then
10929 ac_cv_lib_resolv_inet_aton=yes
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_cv_lib_resolv_inet_aton=no
10937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10941 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
10942 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
10943 if test $ac_cv_lib_resolv_inet_aton = yes; then
10944 cat >>confdefs.h <<_ACEOF
10945 #define HAVE_LIBRESOLV 1
10948 LIBS="-lresolv $LIBS"
10953 { echo "$as_me:$LINENO: checking to include LDAP support" >&5
10954 echo $ECHO_N "checking to include LDAP support... $ECHO_C" >&6; }
10956 # Check whether --with-ldap was given.
10957 if test "${with_ldap+set}" = set; then
10958 withval=$with_ldap; with_ldap=$withval
10963 { echo "$as_me:$LINENO: result: $with_ldap" >&5
10964 echo "${ECHO_T}$with_ldap" >&6; }
10966 if test -d $with_ldap; then
10967 CPPFLAGS="$CPPFLAGS -I${with_ldap}/include"
10969 # this is CMU ADD LIBPATH
10970 if test "$andrew_runpath_switch" = "none" ; then
10971 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
10973 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
10979 if test "$with_ldap" != no; then
10980 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
10981 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
10982 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-lldap -llber $LIBS"
10987 cat >conftest.$ac_ext <<_ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
11000 char ldap_initialize ();
11004 return ldap_initialize ();
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (ac_try="$ac_link"
11011 case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_link") 2>conftest.er1
11018 grep -v '^ *+' conftest.er1 >conftest.err
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest$ac_exeext &&
11026 $as_test_x conftest$ac_exeext; then
11027 ac_cv_lib_ldap_ldap_initialize=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_cv_lib_ldap_ldap_initialize=no
11035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11039 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
11040 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
11041 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
11043 cat >>confdefs.h <<\_ACEOF
11047 LDAP_LIBS="-lldap -llber"
11048 if test "$with_openssl" != "no"; then
11049 LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF"
11058 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
11060 if test "${ac_cv_header_stdc+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 #include <stdlib.h>
11070 #include <stdarg.h>
11071 #include <string.h>
11082 rm -f conftest.$ac_objext
11083 if { (ac_try="$ac_compile"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_compile") 2>conftest.er1
11091 grep -v '^ *+' conftest.er1 >conftest.err
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } && {
11096 test -z "$ac_c_werror_flag" ||
11097 test ! -s conftest.err
11098 } && test -s conftest.$ac_objext; then
11099 ac_cv_header_stdc=yes
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11104 ac_cv_header_stdc=no
11107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 if test $ac_cv_header_stdc = yes; then
11110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 #include <string.h>
11120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11121 $EGREP "memchr" >/dev/null 2>&1; then
11124 ac_cv_header_stdc=no
11130 if test $ac_cv_header_stdc = yes; then
11131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <stdlib.h>
11141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11142 $EGREP "free" >/dev/null 2>&1; then
11145 ac_cv_header_stdc=no
11151 if test $ac_cv_header_stdc = yes; then
11152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11153 if test "$cross_compiling" = yes; then
11156 cat >conftest.$ac_ext <<_ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11163 #include <stdlib.h>
11164 #if ((' ' & 0x0FF) == 0x020)
11165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11168 # define ISLOWER(c) \
11169 (('a' <= (c) && (c) <= 'i') \
11170 || ('j' <= (c) && (c) <= 'r') \
11171 || ('s' <= (c) && (c) <= 'z'))
11172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11180 for (i = 0; i < 256; i++)
11181 if (XOR (islower (i), ISLOWER (i))
11182 || toupper (i) != TOUPPER (i))
11187 rm -f conftest$ac_exeext
11188 if { (ac_try="$ac_link"
11189 case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_link") 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11198 { (case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_try") 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11209 echo "$as_me: program exited with status $ac_status" >&5
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 ( exit $ac_status )
11214 ac_cv_header_stdc=no
11216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11222 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11223 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11224 if test $ac_cv_header_stdc = yes; then
11226 cat >>confdefs.h <<\_ACEOF
11227 #define STDC_HEADERS 1
11232 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11233 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11234 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 #include <sys/types.h>
11244 #include <sys/wait.h>
11245 #ifndef WEXITSTATUS
11246 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11249 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11257 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11262 rm -f conftest.$ac_objext
11263 if { (ac_try="$ac_compile"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest.$ac_objext; then
11279 ac_cv_header_sys_wait_h=yes
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_cv_header_sys_wait_h=no
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11290 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11291 if test $ac_cv_header_sys_wait_h = yes; then
11293 cat >>confdefs.h <<\_ACEOF
11294 #define HAVE_SYS_WAIT_H 1
11299 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11300 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11301 if test "${ac_cv_header_time+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <sys/types.h>
11311 #include <sys/time.h>
11317 if ((struct tm *) 0)
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_compile") 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } && {
11337 test -z "$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11339 } && test -s conftest.$ac_objext; then
11340 ac_cv_header_time=yes
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_cv_header_time=no
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11351 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11352 if test $ac_cv_header_time = yes; then
11354 cat >>confdefs.h <<\_ACEOF
11355 #define TIME_WITH_SYS_TIME 1
11368 for ac_header in crypt.h fcntl.h krb5.h strings.h syslog.h unistd.h sys/time.h sys/uio.h
11370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 ac_res=`eval echo '${'$as_ac_Header'}'`
11378 { echo "$as_me:$LINENO: result: $ac_res" >&5
11379 echo "${ECHO_T}$ac_res" >&6; }
11381 # Is the header compilable?
11382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 #include <$ac_header>
11393 rm -f conftest.$ac_objext
11394 if { (ac_try="$ac_compile"
11395 case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_compile") 2>conftest.er1
11402 grep -v '^ *+' conftest.er1 >conftest.err
11404 cat conftest.err >&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } && {
11407 test -z "$ac_c_werror_flag" ||
11408 test ! -s conftest.err
11409 } && test -s conftest.$ac_objext; then
11410 ac_header_compiler=yes
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 ac_header_compiler=no
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420 echo "${ECHO_T}$ac_header_compiler" >&6; }
11422 # Is the header present?
11423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 #include <$ac_header>
11433 if { (ac_try="$ac_cpp conftest.$ac_ext"
11434 case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1 >conftest.err
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } >/dev/null && {
11446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11447 test ! -s conftest.err
11449 ac_header_preproc=yes
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 ac_header_preproc=no
11457 rm -f conftest.err conftest.$ac_ext
11458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11459 echo "${ECHO_T}$ac_header_preproc" >&6; }
11461 # So? What about this header?
11462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11468 ac_header_preproc=yes
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 eval "$as_ac_Header=\$ac_header_preproc"
11493 ac_res=`eval echo '${'$as_ac_Header'}'`
11494 { echo "$as_me:$LINENO: result: $ac_res" >&5
11495 echo "${ECHO_T}$ac_res" >&6; }
11498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11499 cat >>confdefs.h <<_ACEOF
11500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11509 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11510 if test "${ac_cv_c_const+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 cat >conftest.$ac_ext <<_ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11523 /* FIXME: Include the comments suggested by Paul. */
11524 #ifndef __cplusplus
11525 /* Ultrix mips cc rejects this. */
11526 typedef int charset[2];
11528 /* SunOS 4.1.1 cc rejects this. */
11529 char const *const *pcpcc;
11531 /* NEC SVR4.0.2 mips cc rejects this. */
11532 struct point {int x, y;};
11533 static struct point const zero = {0,0};
11534 /* AIX XL C 1.02.0.0 rejects this.
11535 It does not let you subtract one const X* pointer from another in
11536 an arm of an if-expression whose if-part is not a constant
11538 const char *g = "string";
11539 pcpcc = &g + (g ? g-g : 0);
11540 /* HPUX 7.0 cc rejects these. */
11542 ppc = (char**) pcpcc;
11543 pcpcc = (char const *const *) ppc;
11544 { /* SCO 3.2v4 cc rejects this. */
11546 char const *s = 0 ? (char *) 0 : (char const *) 0;
11551 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11552 int x[] = {25, 17};
11553 const int *foo = &x[0];
11556 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11557 typedef const int *iptr;
11561 { /* AIX XL C 1.02.0.0 rejects this saying
11562 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11563 struct s { int j; const int *ap[3]; };
11564 struct s *b; b->j = 5;
11566 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11567 const int foo = 10;
11568 if (!foo) return 0;
11570 return !cs[0] && !zero.x;
11577 rm -f conftest.$ac_objext
11578 if { (ac_try="$ac_compile"
11579 case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_compile") 2>conftest.er1
11586 grep -v '^ *+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } && {
11591 test -z "$ac_c_werror_flag" ||
11592 test ! -s conftest.err
11593 } && test -s conftest.$ac_objext; then
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11605 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11606 if test $ac_cv_c_const = no; then
11608 cat >>confdefs.h <<\_ACEOF
11614 { echo "$as_me:$LINENO: checking for pid_t" >&5
11615 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11616 if test "${ac_cv_type_pid_t+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 cat >conftest.$ac_ext <<_ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 $ac_includes_default
11626 typedef pid_t ac__type_new_;
11630 if ((ac__type_new_ *) 0)
11632 if (sizeof (ac__type_new_))
11638 rm -f conftest.$ac_objext
11639 if { (ac_try="$ac_compile"
11640 case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645 (eval "$ac_compile") 2>conftest.er1
11647 grep -v '^ *+' conftest.er1 >conftest.err
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } && {
11652 test -z "$ac_c_werror_flag" ||
11653 test ! -s conftest.err
11654 } && test -s conftest.$ac_objext; then
11655 ac_cv_type_pid_t=yes
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11660 ac_cv_type_pid_t=no
11663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11665 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11666 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11667 if test $ac_cv_type_pid_t = yes; then
11671 cat >>confdefs.h <<_ACEOF
11678 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
11681 { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
11682 echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
11683 if test "${have_func+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 cat >conftest.$ac_ext <<_ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11696 printf("%s", __func__);
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (ac_try="$ac_link"
11703 case "(($ac_try" in
11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11708 (eval "$ac_link") 2>conftest.er1
11710 grep -v '^ *+' conftest.er1 >conftest.err
11712 cat conftest.err >&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } && {
11715 test -z "$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11717 } && test -s conftest$ac_exeext &&
11718 $as_test_x conftest$ac_exeext; then
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11728 conftest$ac_exeext conftest.$ac_ext
11731 { echo "$as_me:$LINENO: result: $have_func" >&5
11732 echo "${ECHO_T}$have_func" >&6; }
11733 if test "$have_func" = yes; then
11735 cat >>confdefs.h <<\_ACEOF
11740 { echo "$as_me:$LINENO: checking whether $CC implements __PRETTY_FUNCTION__" >&5
11741 echo $ECHO_N "checking whether $CC implements __PRETTY_FUNCTION__... $ECHO_C" >&6; }
11742 if test "${have_pretty_function+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11755 printf("%s", __PRETTY_FUNCTION__);
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_link") 2>conftest.er1
11769 grep -v '^ *+' conftest.er1 >conftest.err
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } && {
11774 test -z "$ac_c_werror_flag" ||
11775 test ! -s conftest.err
11776 } && test -s conftest$ac_exeext &&
11777 $as_test_x conftest$ac_exeext; then
11778 have_pretty_function=yes
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 have_pretty_function=no
11786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11787 conftest$ac_exeext conftest.$ac_ext
11790 { echo "$as_me:$LINENO: result: $have_pretty_function" >&5
11791 echo "${ECHO_T}$have_pretty_function" >&6; }
11792 if test "$have_pretty_function" = yes; then
11794 cat >>confdefs.h <<\_ACEOF
11795 #define HAVE_PRETTY_FUNCTION
11799 { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
11800 echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
11801 if test "${have_function+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11814 printf("%s", __FUNCTION__);
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_link") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest$ac_exeext &&
11836 $as_test_x conftest$ac_exeext; then
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11846 conftest$ac_exeext conftest.$ac_ext
11849 { echo "$as_me:$LINENO: result: $have_function" >&5
11850 echo "${ECHO_T}$have_function" >&6; }
11851 if test "$have_function" = yes; then
11853 cat >>confdefs.h <<\_ACEOF
11854 #define HAVE_FUNCTION
11861 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11862 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11863 if test "${ac_cv_type_signal+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 #include <sys/types.h>
11873 #include <signal.h>
11878 return *(signal (0, 0)) (0) == 1;
11883 rm -f conftest.$ac_objext
11884 if { (ac_try="$ac_compile"
11885 case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_compile") 2>conftest.er1
11892 grep -v '^ *+' conftest.er1 >conftest.err
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } && {
11897 test -z "$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 } && test -s conftest.$ac_objext; then
11900 ac_cv_type_signal=int
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_cv_type_signal=void
11908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11911 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11913 cat >>confdefs.h <<_ACEOF
11914 #define RETSIGTYPE $ac_cv_type_signal
11922 for ac_func in gethostname mkdir socket strdup
11924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 cat >conftest.$ac_ext <<_ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11938 #define $ac_func innocuous_$ac_func
11940 /* System header to define __stub macros and hopefully few prototypes,
11941 which can conflict with char $ac_func (); below.
11942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11943 <limits.h> exists even on freestanding compilers. */
11946 # include <limits.h>
11948 # include <assert.h>
11953 /* Override any GCC internal prototype to avoid an error.
11954 Use char because int might match the return type of a GCC
11955 builtin and then its argument prototype would still apply. */
11960 /* The GNU C library defines this for functions which it implements
11961 to always fail with ENOSYS. Some functions are actually named
11962 something starting with __ and the normal name is an alias. */
11963 #if defined __stub_$ac_func || defined __stub___$ac_func
11970 return $ac_func ();
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (ac_try="$ac_link"
11977 case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_link") 2>conftest.er1
11984 grep -v '^ *+' conftest.er1 >conftest.err
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } && {
11989 test -z "$ac_c_werror_flag" ||
11990 test ! -s conftest.err
11991 } && test -s conftest$ac_exeext &&
11992 $as_test_x conftest$ac_exeext; then
11993 eval "$as_ac_var=yes"
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 eval "$as_ac_var=no"
12001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12002 conftest$ac_exeext conftest.$ac_ext
12004 ac_res=`eval echo '${'$as_ac_var'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12007 if test `eval echo '${'$as_ac_var'}'` = yes; then
12008 cat >>confdefs.h <<_ACEOF
12009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12017 for ac_func in getspnam getuserpw
12019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 cat >conftest.$ac_ext <<_ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12033 #define $ac_func innocuous_$ac_func
12035 /* System header to define __stub macros and hopefully few prototypes,
12036 which can conflict with char $ac_func (); below.
12037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12038 <limits.h> exists even on freestanding compilers. */
12041 # include <limits.h>
12043 # include <assert.h>
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12055 /* The GNU C library defines this for functions which it implements
12056 to always fail with ENOSYS. Some functions are actually named
12057 something starting with __ and the normal name is an alias. */
12058 #if defined __stub_$ac_func || defined __stub___$ac_func
12065 return $ac_func ();
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (ac_try="$ac_link"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_link") 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && {
12084 test -z "$ac_c_werror_flag" ||
12085 test ! -s conftest.err
12086 } && test -s conftest$ac_exeext &&
12087 $as_test_x conftest$ac_exeext; then
12088 eval "$as_ac_var=yes"
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 eval "$as_ac_var=no"
12096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12097 conftest$ac_exeext conftest.$ac_ext
12099 ac_res=`eval echo '${'$as_ac_var'}'`
12100 { echo "$as_me:$LINENO: result: $ac_res" >&5
12101 echo "${ECHO_T}$ac_res" >&6; }
12102 if test `eval echo '${'$as_ac_var'}'` = yes; then
12103 cat >>confdefs.h <<_ACEOF
12104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12112 for ac_func in strlcat strlcpy
12114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 cat >conftest.$ac_ext <<_ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12128 #define $ac_func innocuous_$ac_func
12130 /* System header to define __stub macros and hopefully few prototypes,
12131 which can conflict with char $ac_func (); below.
12132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12133 <limits.h> exists even on freestanding compilers. */
12136 # include <limits.h>
12138 # include <assert.h>
12143 /* Override any GCC internal prototype to avoid an error.
12144 Use char because int might match the return type of a GCC
12145 builtin and then its argument prototype would still apply. */
12150 /* The GNU C library defines this for functions which it implements
12151 to always fail with ENOSYS. Some functions are actually named
12152 something starting with __ and the normal name is an alias. */
12153 #if defined __stub_$ac_func || defined __stub___$ac_func
12160 return $ac_func ();
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (ac_try="$ac_link"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_link") 2>conftest.er1
12174 grep -v '^ *+' conftest.er1 >conftest.err
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest$ac_exeext &&
12182 $as_test_x conftest$ac_exeext; then
12183 eval "$as_ac_var=yes"
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 eval "$as_ac_var=no"
12191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12192 conftest$ac_exeext conftest.$ac_ext
12194 ac_res=`eval echo '${'$as_ac_var'}'`
12195 { echo "$as_me:$LINENO: result: $ac_res" >&5
12196 echo "${ECHO_T}$ac_res" >&6; }
12197 if test `eval echo '${'$as_ac_var'}'` = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12206 if test $ac_cv_func_getspnam = yes; then
12207 { echo "$as_me:$LINENO: checking if getpwnam_r/getspnam_r take 5 arguments" >&5
12208 echo $ECHO_N "checking if getpwnam_r/getspnam_r take 5 arguments... $ECHO_C" >&6; }
12209 cat >conftest.$ac_ext <<_ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12216 #include <sys/types.h>
12218 #include <shadow.h>
12225 struct passwd pwbuf;
12227 (void) getpwnam_r("bin", &pwbuf, pwdata, sizeof(pwdata), &pw);
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 { echo "$as_me:$LINENO: result: yes" >&5
12251 echo "${ECHO_T}yes" >&6; }
12253 cat >>confdefs.h <<\_ACEOF
12254 #define GETXXNAM_R_5ARG 1
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12261 { echo "$as_me:$LINENO: result: no" >&5
12262 echo "${ECHO_T}no" >&6; }
12266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12270 sasl_cv_getaddrinfo=no
12272 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
12273 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
12274 if test "${ac_cv_func_getaddrinfo+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 cat >conftest.$ac_ext <<_ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12283 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
12284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12285 #define getaddrinfo innocuous_getaddrinfo
12287 /* System header to define __stub macros and hopefully few prototypes,
12288 which can conflict with char getaddrinfo (); below.
12289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12290 <limits.h> exists even on freestanding compilers. */
12293 # include <limits.h>
12295 # include <assert.h>
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12306 char getaddrinfo ();
12307 /* The GNU C library defines this for functions which it implements
12308 to always fail with ENOSYS. Some functions are actually named
12309 something starting with __ and the normal name is an alias. */
12310 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
12317 return getaddrinfo ();
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (ac_try="$ac_link"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_link") 2>conftest.er1
12331 grep -v '^ *+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest$ac_exeext &&
12339 $as_test_x conftest$ac_exeext; then
12340 ac_cv_func_getaddrinfo=yes
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_cv_func_getaddrinfo=no
12348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12349 conftest$ac_exeext conftest.$ac_ext
12351 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
12352 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
12353 if test $ac_cv_func_getaddrinfo = yes; then
12354 ac_cv_lib_socket_getaddrinfo=no
12355 ac_cv_lib_inet6_getaddrinfo=no
12358 { echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
12359 echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6; }
12360 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 ac_check_lib_save_LIBS=$LIBS
12364 LIBS="-lsocket $LIBS"
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12372 /* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12378 char getaddrinfo ();
12382 return getaddrinfo ();
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (ac_try="$ac_link"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_link") 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest$ac_exeext &&
12404 $as_test_x conftest$ac_exeext; then
12405 ac_cv_lib_socket_getaddrinfo=yes
12407 echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 ac_cv_lib_socket_getaddrinfo=no
12413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12414 conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12417 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
12418 echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6; }
12419 if test $ac_cv_lib_socket_getaddrinfo = yes; then
12420 LIBS="$LIBS -lsocket"
12421 ac_cv_lib_inet6_getaddrinfo=no
12424 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
12425 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
12426 if test "${ipv6_cv_dir+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
12430 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
12435 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
12436 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
12437 if test $ipv6_cv_dir = no; then
12438 ac_cv_lib_inet6_getaddrinfo=no
12440 if test x$ipv6_libinet6 = x; then
12442 SAVELDFLAGS="$LDFLAGS"
12443 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
12445 { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
12446 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
12447 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 ac_check_lib_save_LIBS=$LIBS
12451 LIBS="-linet6 $LIBS"
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12459 /* Override any GCC internal prototype to avoid an error.
12460 Use char because int might match the return type of a GCC
12461 builtin and then its argument prototype would still apply. */
12465 char getaddrinfo ();
12469 return getaddrinfo ();
12474 rm -f conftest.$ac_objext conftest$ac_exeext
12475 if { (ac_try="$ac_link"
12476 case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481 (eval "$ac_link") 2>conftest.er1
12483 grep -v '^ *+' conftest.er1 >conftest.err
12485 cat conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } && {
12488 test -z "$ac_c_werror_flag" ||
12489 test ! -s conftest.err
12490 } && test -s conftest$ac_exeext &&
12491 $as_test_x conftest$ac_exeext; then
12492 ac_cv_lib_inet6_getaddrinfo=yes
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12497 ac_cv_lib_inet6_getaddrinfo=no
12500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12504 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
12505 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
12506 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
12507 if test $ipv6_libinet6 = no; then
12509 LIBS="$LIBS -linet6"
12512 if test $ipv6_libinet6 = no; then
12513 LDFLAGS="$SAVELDFLAGS"
12519 ipv6_cv_getaddrinfo=no
12520 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
12521 -o $ac_cv_lib_inet6_getaddrinfo = yes
12523 ipv6_cv_getaddrinfo=yes
12525 if test $ipv6_cv_getaddrinfo = no; then
12526 if test getaddrinfo = getaddrinfo; then
12527 for ipv6_cv_pfx in o n; do
12528 cat >conftest.$ac_ext <<_ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12538 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
12539 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
12540 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
12541 echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6; }
12542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 cat >conftest.$ac_ext <<_ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h. */
12551 /* Define ${ipv6_cv_pfx}getaddrinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getaddrinfo.
12552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12553 #define ${ipv6_cv_pfx}getaddrinfo innocuous_${ipv6_cv_pfx}getaddrinfo
12555 /* System header to define __stub macros and hopefully few prototypes,
12556 which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
12557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12558 <limits.h> exists even on freestanding compilers. */
12561 # include <limits.h>
12563 # include <assert.h>
12566 #undef ${ipv6_cv_pfx}getaddrinfo
12568 /* Override any GCC internal prototype to avoid an error.
12569 Use char because int might match the return type of a GCC
12570 builtin and then its argument prototype would still apply. */
12574 char ${ipv6_cv_pfx}getaddrinfo ();
12575 /* The GNU C library defines this for functions which it implements
12576 to always fail with ENOSYS. Some functions are actually named
12577 something starting with __ and the normal name is an alias. */
12578 #if defined __stub_${ipv6_cv_pfx}getaddrinfo || defined __stub___${ipv6_cv_pfx}getaddrinfo
12585 return ${ipv6_cv_pfx}getaddrinfo ();
12590 rm -f conftest.$ac_objext conftest$ac_exeext
12591 if { (ac_try="$ac_link"
12592 case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_link") 2>conftest.er1
12599 grep -v '^ *+' conftest.er1 >conftest.err
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } && {
12604 test -z "$ac_c_werror_flag" ||
12605 test ! -s conftest.err
12606 } && test -s conftest$ac_exeext &&
12607 $as_test_x conftest$ac_exeext; then
12608 eval "$as_ac_var=yes"
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 eval "$as_ac_var=no"
12616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12617 conftest$ac_exeext conftest.$ac_ext
12619 ac_res=`eval echo '${'$as_ac_var'}'`
12620 { echo "$as_me:$LINENO: result: $ac_res" >&5
12621 echo "${ECHO_T}$ac_res" >&6; }
12626 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
12628 cat >>confdefs.h <<\_ACEOF
12629 #define HAVE_GETADDRINFO
12632 ipv6_cv_getaddrinfo=yes
12638 if test $ipv6_cv_getaddrinfo = yes; then
12640 cat >>confdefs.h <<\_ACEOF
12641 #define HAVE_GETADDRINFO
12645 sasl_cv_getaddrinfo=yes
12647 if test $sasl_cv_getaddrinfo = yes; then
12648 case " $LIBOBJS " in
12649 *" getaddrinfo.$ac_objext "* ) ;;
12650 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12657 sasl_cv_getnameinfo=no
12659 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
12660 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
12661 if test "${ac_cv_func_getnameinfo+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 cat >conftest.$ac_ext <<_ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
12671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12672 #define getnameinfo innocuous_getnameinfo
12674 /* System header to define __stub macros and hopefully few prototypes,
12675 which can conflict with char getnameinfo (); below.
12676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12677 <limits.h> exists even on freestanding compilers. */
12680 # include <limits.h>
12682 # include <assert.h>
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12693 char getnameinfo ();
12694 /* The GNU C library defines this for functions which it implements
12695 to always fail with ENOSYS. Some functions are actually named
12696 something starting with __ and the normal name is an alias. */
12697 #if defined __stub_getnameinfo || defined __stub___getnameinfo
12704 return getnameinfo ();
12709 rm -f conftest.$ac_objext conftest$ac_exeext
12710 if { (ac_try="$ac_link"
12711 case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_link") 2>conftest.er1
12718 grep -v '^ *+' conftest.er1 >conftest.err
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest$ac_exeext &&
12726 $as_test_x conftest$ac_exeext; then
12727 ac_cv_func_getnameinfo=yes
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 ac_cv_func_getnameinfo=no
12735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12736 conftest$ac_exeext conftest.$ac_ext
12738 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
12739 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
12740 if test $ac_cv_func_getnameinfo = yes; then
12741 ac_cv_lib_socket_getnameinfo=no
12742 ac_cv_lib_inet6_getnameinfo=no
12745 { echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
12746 echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lsocket $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12765 char getnameinfo ();
12769 return getnameinfo ();
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest$ac_exeext &&
12791 $as_test_x conftest$ac_exeext; then
12792 ac_cv_lib_socket_getnameinfo=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 ac_cv_lib_socket_getnameinfo=no
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
12805 echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6; }
12806 if test $ac_cv_lib_socket_getnameinfo = yes; then
12807 LIBS="$LIBS -lsocket"
12808 ac_cv_lib_inet6_getnameinfo=no
12811 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
12812 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
12813 if test "${ipv6_cv_dir+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
12817 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
12822 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
12823 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
12824 if test $ipv6_cv_dir = no; then
12825 ac_cv_lib_inet6_getnameinfo=no
12827 if test x$ipv6_libinet6 = x; then
12829 SAVELDFLAGS="$LDFLAGS"
12830 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
12832 { echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
12833 echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6; }
12834 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 ac_check_lib_save_LIBS=$LIBS
12838 LIBS="-linet6 $LIBS"
12839 cat >conftest.$ac_ext <<_ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12852 char getnameinfo ();
12856 return getnameinfo ();
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (ac_try="$ac_link"
12863 case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_link") 2>conftest.er1
12870 grep -v '^ *+' conftest.er1 >conftest.err
12872 cat conftest.err >&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } && {
12875 test -z "$ac_c_werror_flag" ||
12876 test ! -s conftest.err
12877 } && test -s conftest$ac_exeext &&
12878 $as_test_x conftest$ac_exeext; then
12879 ac_cv_lib_inet6_getnameinfo=yes
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12884 ac_cv_lib_inet6_getnameinfo=no
12887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12888 conftest$ac_exeext conftest.$ac_ext
12889 LIBS=$ac_check_lib_save_LIBS
12891 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
12892 echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6; }
12893 if test $ac_cv_lib_inet6_getnameinfo = yes; then
12894 if test $ipv6_libinet6 = no; then
12896 LIBS="$LIBS -linet6"
12899 if test $ipv6_libinet6 = no; then
12900 LDFLAGS="$SAVELDFLAGS"
12906 ipv6_cv_getnameinfo=no
12907 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
12908 -o $ac_cv_lib_inet6_getnameinfo = yes
12910 ipv6_cv_getnameinfo=yes
12912 if test $ipv6_cv_getnameinfo = no; then
12913 if test getnameinfo = getaddrinfo; then
12914 for ipv6_cv_pfx in o n; do
12915 cat >conftest.$ac_ext <<_ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12925 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
12926 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
12927 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
12928 echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6; }
12929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 cat >conftest.$ac_ext <<_ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12938 /* Define ${ipv6_cv_pfx}getnameinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getnameinfo.
12939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12940 #define ${ipv6_cv_pfx}getnameinfo innocuous_${ipv6_cv_pfx}getnameinfo
12942 /* System header to define __stub macros and hopefully few prototypes,
12943 which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
12944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12945 <limits.h> exists even on freestanding compilers. */
12948 # include <limits.h>
12950 # include <assert.h>
12953 #undef ${ipv6_cv_pfx}getnameinfo
12955 /* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
12961 char ${ipv6_cv_pfx}getnameinfo ();
12962 /* The GNU C library defines this for functions which it implements
12963 to always fail with ENOSYS. Some functions are actually named
12964 something starting with __ and the normal name is an alias. */
12965 #if defined __stub_${ipv6_cv_pfx}getnameinfo || defined __stub___${ipv6_cv_pfx}getnameinfo
12972 return ${ipv6_cv_pfx}getnameinfo ();
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (ac_try="$ac_link"
12979 case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_link") 2>conftest.er1
12986 grep -v '^ *+' conftest.er1 >conftest.err
12988 cat conftest.err >&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } && {
12991 test -z "$ac_c_werror_flag" ||
12992 test ! -s conftest.err
12993 } && test -s conftest$ac_exeext &&
12994 $as_test_x conftest$ac_exeext; then
12995 eval "$as_ac_var=yes"
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13000 eval "$as_ac_var=no"
13003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13004 conftest$ac_exeext conftest.$ac_ext
13006 ac_res=`eval echo '${'$as_ac_var'}'`
13007 { echo "$as_me:$LINENO: result: $ac_res" >&5
13008 echo "${ECHO_T}$ac_res" >&6; }
13013 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
13015 cat >>confdefs.h <<\_ACEOF
13016 #define HAVE_GETADDRINFO
13019 ipv6_cv_getnameinfo=yes
13025 if test $ipv6_cv_getnameinfo = yes; then
13027 cat >>confdefs.h <<\_ACEOF
13028 #define HAVE_GETNAMEINFO
13032 sasl_cv_getnameinfo=yes
13034 if test $sasl_cv_getnameinfo = yes; then
13035 case " $LIBOBJS " in
13036 *" getnameinfo.$ac_objext "* ) ;;
13037 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
13044 { echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
13045 echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6; }
13046 if test "${ipv6_cv_ss_family+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 cat >conftest.$ac_ext <<_ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13055 #include <sys/types.h>
13056 #include <sys/socket.h>
13060 struct sockaddr_storage ss; int i = ss.ss_family;
13065 rm -f conftest.$ac_objext
13066 if { (ac_try="$ac_compile"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compile") 2>conftest.er1
13074 grep -v '^ *+' conftest.er1 >conftest.err
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest.$ac_objext; then
13082 ipv6_cv_ss_family=yes
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13087 ipv6_cv_ss_family=no
13090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13092 if test $ipv6_cv_ss_family = yes; then
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_SS_FAMILY
13101 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
13102 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
13104 { echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
13105 echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6; }
13106 if test "${ipv6_cv_sa_len+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 #include <sys/types.h>
13116 #include <sys/socket.h>
13120 struct sockaddr sa; int i = sa.sa_len;
13125 rm -f conftest.$ac_objext
13126 if { (ac_try="$ac_compile"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_compile") 2>conftest.er1
13134 grep -v '^ *+' conftest.er1 >conftest.err
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } && {
13139 test -z "$ac_c_werror_flag" ||
13140 test ! -s conftest.err
13141 } && test -s conftest.$ac_objext; then
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152 if test $ipv6_cv_sa_len = yes; then
13154 cat >>confdefs.h <<\_ACEOF
13155 #define HAVE_SOCKADDR_SA_LEN
13161 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
13162 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
13164 { echo "$as_me:$LINENO: checking for socklen_t" >&5
13165 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
13166 if test "${ipv6_cv_socklen_t+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 cat >conftest.$ac_ext <<_ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13175 #include <sys/types.h>
13176 #include <sys/socket.h>
13185 rm -f conftest.$ac_objext conftest$ac_exeext
13186 if { (ac_try="$ac_link"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_link") 2>conftest.er1
13194 grep -v '^ *+' conftest.er1 >conftest.err
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } && {
13199 test -z "$ac_c_werror_flag" ||
13200 test ! -s conftest.err
13201 } && test -s conftest$ac_exeext &&
13202 $as_test_x conftest$ac_exeext; then
13203 ipv6_cv_socklen_t=yes
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 ipv6_cv_socklen_t=no
13211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13212 conftest$ac_exeext conftest.$ac_ext
13214 if test $ipv6_cv_socklen_t = yes; then
13216 cat >>confdefs.h <<\_ACEOF
13217 #define HAVE_SOCKLEN_T
13223 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
13224 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 #include <sys/socket.h>
13235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13236 $EGREP "sockaddr_storage" >/dev/null 2>&1; then
13238 cat >>confdefs.h <<\_ACEOF
13239 #define HAVE_STRUCT_SOCKADDR_STORAGE
13252 ac_config_headers="$ac_config_headers saslauthd.h"
13255 ac_config_files="$ac_config_files Makefile"
13257 cat >confcache <<\_ACEOF
13258 # This file is a shell script that caches the results of configure
13259 # tests run on this system so they can be shared between configure
13260 # scripts and configure runs, see configure's option --config-cache.
13261 # It is not useful on other systems. If it contains results you don't
13262 # want to keep, you may remove or edit it.
13264 # config.status only pays attention to the cache file if you give it
13265 # the --recheck option to rerun configure.
13267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13269 # following values.
13273 # The following way of writing the cache mishandles newlines in values,
13274 # but we know of no workaround that is simple, portable, and efficient.
13275 # So, we kill variables containing newlines.
13276 # Ultrix sh set writes to stderr and can't be redirected directly,
13277 # and sets the high bit in the cache file unless we assign to the vars.
13279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13280 eval ac_val=\$$ac_var
13284 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13285 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13288 _ | IFS | as_nl) ;; #(
13289 *) $as_unset $ac_var ;;
13295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13296 *${as_nl}ac_space=\ *)
13297 # `set' does not quote correctly, so add quotes (double-quote
13298 # substitution turns \\\\ into \\, and sed turns \\ into \).
13301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13304 # `set' quotes correctly as required by POSIX, so do not add quotes.
13305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13319 if test -w "$cache_file"; then
13320 test "x$cache_file" != "x/dev/null" &&
13321 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13322 echo "$as_me: updating cache $cache_file" >&6;}
13323 cat confcache >$cache_file
13325 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13332 # Let make expand exec_prefix.
13333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13335 DEFS=-DHAVE_CONFIG_H
13339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13340 # 1. Remove the extension, and $U if already installed.
13341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13342 ac_i=`echo "$ac_i" | sed "$ac_script"`
13343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13344 # will be set to the directory where LIBOBJS objects are built.
13345 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13346 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13348 LIBOBJS=$ac_libobjs
13350 LTLIBOBJS=$ac_ltlibobjs
13353 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
13354 { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
13355 Usually this means the macro was only invoked conditionally." >&5
13356 echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
13357 Usually this means the macro was only invoked conditionally." >&2;}
13358 { (exit 1); exit 1; }; }
13360 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13361 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13362 Usually this means the macro was only invoked conditionally." >&5
13363 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13364 Usually this means the macro was only invoked conditionally." >&2;}
13365 { (exit 1); exit 1; }; }
13367 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13368 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13369 Usually this means the macro was only invoked conditionally." >&5
13370 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13371 Usually this means the macro was only invoked conditionally." >&2;}
13372 { (exit 1); exit 1; }; }
13375 : ${CONFIG_STATUS=./config.status}
13376 ac_clean_files_save=$ac_clean_files
13377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13378 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13379 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13380 cat >$CONFIG_STATUS <<_ACEOF
13382 # Generated by $as_me.
13383 # Run this file to recreate the current configuration.
13384 # Compiler output produced by configure, useful for debugging
13385 # configure, is in config.log if it exists.
13388 ac_cs_recheck=false
13390 SHELL=\${CONFIG_SHELL-$SHELL}
13393 cat >>$CONFIG_STATUS <<\_ACEOF
13394 ## --------------------- ##
13395 ## M4sh Initialization. ##
13396 ## --------------------- ##
13398 # Be more Bourne compatible
13399 DUALCASE=1; export DUALCASE # for MKS sh
13400 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13403 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13404 # is contrary to our usage. Disable this feature.
13405 alias -g '${1+"$@"}'='"$@"'
13406 setopt NO_GLOB_SUBST
13408 case `(set -o) 2>/dev/null` in
13409 *posix*) set -o posix ;;
13418 # Avoid depending upon Character Ranges.
13419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13422 as_cr_digits='0123456789'
13423 as_cr_alnum=$as_cr_Letters$as_cr_digits
13425 # The user is always right.
13426 if test "${PATH_SEPARATOR+set}" != set; then
13427 echo "#! /bin/sh" >conf$$.sh
13428 echo "exit 0" >>conf$$.sh
13430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13438 # Support unset when possible.
13439 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13447 # We need space, tab and new line, in precisely that order. Quoting is
13448 # there to prevent editors from complaining about space-tab.
13449 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13450 # splitting by setting IFS to empty value.)
13455 # Find who we are. Look in the path if we contain no directory separator.
13457 *[\\/]* ) as_myself=$0 ;;
13458 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13462 test -z "$as_dir" && as_dir=.
13463 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13469 # We did not find ourselves, most probably we were run as `sh COMMAND'
13470 # in which case we are not to be found in the path.
13471 if test "x$as_myself" = x; then
13474 if test ! -f "$as_myself"; then
13475 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13476 { (exit 1); exit 1; }
13479 # Work around bugs in pre-3.0 UWIN ksh.
13480 for as_var in ENV MAIL MAILPATH
13481 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13489 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13490 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13491 LC_TELEPHONE LC_TIME
13493 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13494 eval $as_var=C; export $as_var
13496 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13500 # Required to use basename.
13501 if expr a : '\(a\)' >/dev/null 2>&1 &&
13502 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13508 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13509 as_basename=basename
13515 # Name of the executable.
13516 as_me=`$as_basename -- "$0" ||
13517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13518 X"$0" : 'X\(//\)$' \| \
13519 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13521 sed '/^.*\/\([^/][^/]*\)\/*$/{
13540 as_lineno_1=$LINENO
13541 as_lineno_2=$LINENO
13542 test "x$as_lineno_1" != "x$as_lineno_2" &&
13543 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13545 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13546 # uniformly replaced by the line number. The first 'sed' inserts a
13547 # line-number line after each line using $LINENO; the second 'sed'
13548 # does the real work. The second script uses 'N' to pair each
13549 # line-number line with the line containing $LINENO, and appends
13550 # trailing '-' during substitution so that $LINENO is not a special
13551 # case at line end.
13552 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13553 # scripts with optimization help from Paolo Bonzini. Blame Lee
13554 # E. McMahon (1931-1989) for sed's syntax. :-)
13566 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13569 ' >$as_me.lineno &&
13570 chmod +x "$as_me.lineno" ||
13571 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13572 { (exit 1); exit 1; }; }
13574 # Don't try to exec as it changes $[0], causing all sort of problems
13575 # (the dirname of $[0] is not the place where we might find the
13576 # original and so on. Autoconf is especially sensitive to this).
13577 . "./$as_me.lineno"
13578 # Exit status is that of the last command.
13583 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13589 ECHO_C= ECHO_N= ECHO_T=
13590 case `echo -n x` in
13592 case `echo 'x\c'` in
13593 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13600 if expr a : '\(a\)' >/dev/null 2>&1 &&
13601 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13607 rm -f conf$$ conf$$.exe conf$$.file
13608 if test -d conf$$.dir; then
13609 rm -f conf$$.dir/conf$$.file
13615 if ln -s conf$$.file conf$$ 2>/dev/null; then
13617 # ... but there are two gotchas:
13618 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13619 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13620 # In both cases, we have to default to `cp -p'.
13621 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13623 elif ln conf$$.file conf$$ 2>/dev/null; then
13628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13629 rmdir conf$$.dir 2>/dev/null
13631 if mkdir -p . 2>/dev/null; then
13634 test -d ./-p && rmdir ./-p
13638 if test -x / >/dev/null 2>&1; then
13639 as_test_x='test -x'
13641 if ls -dL / >/dev/null 2>&1; then
13648 if test -d "$1"; then
13654 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13655 ???[sx]*):;;*)false;;esac;fi
13659 as_executable_p=$as_test_x
13661 # Sed expression to map a string onto a valid CPP name.
13662 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13664 # Sed expression to map a string onto a valid variable name.
13665 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13670 # Save the log message, to keep $[0] and so on meaningful, and to
13671 # report actual input values of CONFIG_FILES etc. instead of their
13672 # values after options handling.
13674 This file was extended by $as_me, which was
13675 generated by GNU Autoconf 2.61. Invocation command line was
13677 CONFIG_FILES = $CONFIG_FILES
13678 CONFIG_HEADERS = $CONFIG_HEADERS
13679 CONFIG_LINKS = $CONFIG_LINKS
13680 CONFIG_COMMANDS = $CONFIG_COMMANDS
13683 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13688 cat >>$CONFIG_STATUS <<_ACEOF
13689 # Files that config.status was made for.
13690 config_files="$ac_config_files"
13691 config_headers="$ac_config_headers"
13692 config_commands="$ac_config_commands"
13696 cat >>$CONFIG_STATUS <<\_ACEOF
13698 \`$as_me' instantiates files from templates according to the
13699 current configuration.
13701 Usage: $0 [OPTIONS] [FILE]...
13703 -h, --help print this help, then exit
13704 -V, --version print version number and configuration settings, then exit
13705 -q, --quiet do not print progress messages
13706 -d, --debug don't remove temporary files
13707 --recheck update $as_me by reconfiguring in the same conditions
13708 --file=FILE[:TEMPLATE]
13709 instantiate the configuration file FILE
13710 --header=FILE[:TEMPLATE]
13711 instantiate the configuration header FILE
13713 Configuration files:
13716 Configuration headers:
13719 Configuration commands:
13722 Report bugs to <bug-autoconf@gnu.org>."
13725 cat >>$CONFIG_STATUS <<_ACEOF
13728 configured by $0, generated by GNU Autoconf 2.61,
13729 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13731 Copyright (C) 2006 Free Software Foundation, Inc.
13732 This config.status script is free software; the Free Software Foundation
13733 gives unlimited permission to copy, distribute and modify it."
13741 cat >>$CONFIG_STATUS <<\_ACEOF
13742 # If no file are specified by the user, then we need to provide default
13743 # value. By we need to know if files were specified by the user.
13749 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13750 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13761 # Handling of the options.
13762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13764 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13765 echo "$ac_cs_version"; exit ;;
13766 --debug | --debu | --deb | --de | --d | -d )
13768 --file | --fil | --fi | --f )
13770 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13771 ac_need_defaults=false;;
13772 --header | --heade | --head | --hea )
13774 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13775 ac_need_defaults=false;;
13777 # Conflict between --help and --header
13778 { echo "$as_me: error: ambiguous option: $1
13779 Try \`$0 --help' for more information." >&2
13780 { (exit 1); exit 1; }; };;
13781 --help | --hel | -h )
13782 echo "$ac_cs_usage"; exit ;;
13783 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13784 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13787 # This is an error.
13788 -*) { echo "$as_me: error: unrecognized option: $1
13789 Try \`$0 --help' for more information." >&2
13790 { (exit 1); exit 1; }; } ;;
13792 *) ac_config_targets="$ac_config_targets $1"
13793 ac_need_defaults=false ;;
13799 ac_configure_extra_args=
13801 if $ac_cs_silent; then
13803 ac_configure_extra_args="$ac_configure_extra_args --silent"
13807 cat >>$CONFIG_STATUS <<_ACEOF
13808 if \$ac_cs_recheck; then
13809 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13810 CONFIG_SHELL=$SHELL
13811 export CONFIG_SHELL
13812 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13816 cat >>$CONFIG_STATUS <<\_ACEOF
13820 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13821 ## Running $as_me. ##
13827 cat >>$CONFIG_STATUS <<_ACEOF
13831 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13835 cat >>$CONFIG_STATUS <<\_ACEOF
13837 # Handling of arguments.
13838 for ac_config_target in $ac_config_targets
13840 case $ac_config_target in
13841 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13842 "saslauthd.h") CONFIG_HEADERS="$CONFIG_HEADERS saslauthd.h" ;;
13843 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13845 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13846 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13847 { (exit 1); exit 1; }; };;
13852 # If the user did not use the arguments to specify the items to instantiate,
13853 # then the envvar interface is used. Set only those that are not.
13854 # We use the long form for the default assignment because of an extremely
13855 # bizarre bug on SunOS 4.1.3.
13856 if $ac_need_defaults; then
13857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13858 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13859 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13862 # Have a temporary directory for convenience. Make it in the build tree
13863 # simply because there is no reason against having it here, and in addition,
13864 # creating and moving files from /tmp can sometimes cause problems.
13865 # Hook for its removal unless debugging.
13866 # Note that there is a small window in which the directory will not be cleaned:
13867 # after its creation but before its name has been assigned to `$tmp'.
13871 trap 'exit_status=$?
13872 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13874 trap '{ (exit 1); exit 1; }' 1 2 13 15
13876 # Create a (secure) tmp directory for tmp files.
13879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13880 test -n "$tmp" && test -d "$tmp"
13883 tmp=./conf$$-$RANDOM
13884 (umask 077 && mkdir "$tmp")
13887 echo "$me: cannot create a temporary directory in ." >&2
13888 { (exit 1); exit 1; }
13892 # Set up the sed scripts for CONFIG_FILES section.
13895 # No need to generate the scripts if there are no CONFIG_FILES.
13896 # This happens for instance when ./config.status config.h
13897 if test -n "$CONFIG_FILES"; then
13904 for ac_last_try in false false false false false :; do
13905 cat >conf$$subs.sed <<_ACEOF
13906 SHELL!$SHELL$ac_delim
13907 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13908 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13909 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13910 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13911 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13912 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13913 exec_prefix!$exec_prefix$ac_delim
13914 prefix!$prefix$ac_delim
13915 program_transform_name!$program_transform_name$ac_delim
13916 bindir!$bindir$ac_delim
13917 sbindir!$sbindir$ac_delim
13918 libexecdir!$libexecdir$ac_delim
13919 datarootdir!$datarootdir$ac_delim
13920 datadir!$datadir$ac_delim
13921 sysconfdir!$sysconfdir$ac_delim
13922 sharedstatedir!$sharedstatedir$ac_delim
13923 localstatedir!$localstatedir$ac_delim
13924 includedir!$includedir$ac_delim
13925 oldincludedir!$oldincludedir$ac_delim
13926 docdir!$docdir$ac_delim
13927 infodir!$infodir$ac_delim
13928 htmldir!$htmldir$ac_delim
13929 dvidir!$dvidir$ac_delim
13930 pdfdir!$pdfdir$ac_delim
13931 psdir!$psdir$ac_delim
13932 libdir!$libdir$ac_delim
13933 localedir!$localedir$ac_delim
13934 mandir!$mandir$ac_delim
13935 DEFS!$DEFS$ac_delim
13936 ECHO_C!$ECHO_C$ac_delim
13937 ECHO_N!$ECHO_N$ac_delim
13938 ECHO_T!$ECHO_T$ac_delim
13939 LIBS!$LIBS$ac_delim
13940 build_alias!$build_alias$ac_delim
13941 host_alias!$host_alias$ac_delim
13942 target_alias!$target_alias$ac_delim
13943 build!$build$ac_delim
13944 build_cpu!$build_cpu$ac_delim
13945 build_vendor!$build_vendor$ac_delim
13946 build_os!$build_os$ac_delim
13947 host!$host$ac_delim
13948 host_cpu!$host_cpu$ac_delim
13949 host_vendor!$host_vendor$ac_delim
13950 host_os!$host_os$ac_delim
13951 SASLAUTHD_TRUE!$SASLAUTHD_TRUE$ac_delim
13952 SASLAUTHD_FALSE!$SASLAUTHD_FALSE$ac_delim
13953 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13954 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13955 INSTALL_DATA!$INSTALL_DATA$ac_delim
13956 am__isrc!$am__isrc$ac_delim
13957 CYGPATH_W!$CYGPATH_W$ac_delim
13958 PACKAGE!$PACKAGE$ac_delim
13959 VERSION!$VERSION$ac_delim
13960 ACLOCAL!$ACLOCAL$ac_delim
13961 AUTOCONF!$AUTOCONF$ac_delim
13962 AUTOMAKE!$AUTOMAKE$ac_delim
13963 AUTOHEADER!$AUTOHEADER$ac_delim
13964 MAKEINFO!$MAKEINFO$ac_delim
13965 install_sh!$install_sh$ac_delim
13966 STRIP!$STRIP$ac_delim
13967 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13968 mkdir_p!$mkdir_p$ac_delim
13970 SET_MAKE!$SET_MAKE$ac_delim
13971 am__leading_dot!$am__leading_dot$ac_delim
13972 AMTAR!$AMTAR$ac_delim
13973 am__tar!$am__tar$ac_delim
13974 am__untar!$am__untar$ac_delim
13976 CFLAGS!$CFLAGS$ac_delim
13977 LDFLAGS!$LDFLAGS$ac_delim
13978 CPPFLAGS!$CPPFLAGS$ac_delim
13979 ac_ct_CC!$ac_ct_CC$ac_delim
13980 EXEEXT!$EXEEXT$ac_delim
13981 OBJEXT!$OBJEXT$ac_delim
13982 DEPDIR!$DEPDIR$ac_delim
13983 am__include!$am__include$ac_delim
13984 am__quote!$am__quote$ac_delim
13985 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13986 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13987 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13988 CCDEPMODE!$CCDEPMODE$ac_delim
13989 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13990 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13992 LN_S!$LN_S$ac_delim
13993 LIB_SOCKET!$LIB_SOCKET$ac_delim
13994 GREP!$GREP$ac_delim
13995 EGREP!$EGREP$ac_delim
13996 CMU_LIB_SUBDIR!$CMU_LIB_SUBDIR$ac_delim
13997 LIB_DES!$LIB_DES$ac_delim
13998 SASL_KRB_LIB!$SASL_KRB_LIB$ac_delim
13999 LIB_CRYPT!$LIB_CRYPT$ac_delim
14000 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
14001 GSSAPIBASE_LIBS!$GSSAPIBASE_LIBS$ac_delim
14002 LIB_SIA!$LIB_SIA$ac_delim
14005 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14007 elif $ac_last_try; then
14008 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14009 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14010 { (exit 1); exit 1; }; }
14012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14016 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14017 if test -n "$ac_eof"; then
14018 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14019 ac_eof=`expr $ac_eof + 1`
14022 cat >>$CONFIG_STATUS <<_ACEOF
14023 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14027 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14028 s/^/s,@/; s/!/@,|#_!!_#|/
14031 s/'"$ac_delim"'$/,g/; t
14033 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14034 ' >>$CONFIG_STATUS <conf$$subs.sed
14035 rm -f conf$$subs.sed
14036 cat >>$CONFIG_STATUS <<_ACEOF
14042 for ac_last_try in false false false false false :; do
14043 cat >conf$$subs.sed <<_ACEOF
14044 SASL_DB_UTILS!$SASL_DB_UTILS$ac_delim
14045 SASL_DB_MANS!$SASL_DB_MANS$ac_delim
14046 SASL_DB_BACKEND!$SASL_DB_BACKEND$ac_delim
14047 SASL_DB_BACKEND_STATIC!$SASL_DB_BACKEND_STATIC$ac_delim
14048 SASL_DB_INC!$SASL_DB_INC$ac_delim
14049 SASL_DB_LIB!$SASL_DB_LIB$ac_delim
14050 MAIN_COMPAT_OBJ!$MAIN_COMPAT_OBJ$ac_delim
14051 LIB_PAM!$LIB_PAM$ac_delim
14052 LDAP_LIBS!$LDAP_LIBS$ac_delim
14053 LTLIBOBJS!$LTLIBOBJS$ac_delim
14054 LIBOBJS!$LIBOBJS$ac_delim
14057 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
14059 elif $ac_last_try; then
14060 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14061 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14062 { (exit 1); exit 1; }; }
14064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14068 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14069 if test -n "$ac_eof"; then
14070 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14071 ac_eof=`expr $ac_eof + 1`
14074 cat >>$CONFIG_STATUS <<_ACEOF
14075 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14079 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14080 s/^/s,@/; s/!/@,|#_!!_#|/
14083 s/'"$ac_delim"'$/,g/; t
14085 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14086 ' >>$CONFIG_STATUS <conf$$subs.sed
14087 rm -f conf$$subs.sed
14088 cat >>$CONFIG_STATUS <<_ACEOF
14095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14097 # trailing colons and then remove the whole line if VPATH becomes empty
14098 # (actually we leave an empty line to preserve line numbers).
14099 if test "x$srcdir" = x.; then
14100 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14101 s/:*\$(srcdir):*/:/
14102 s/:*\${srcdir}:*/:/
14104 s/^\([^=]*=[ ]*\):*/\1/
14110 cat >>$CONFIG_STATUS <<\_ACEOF
14111 fi # test -n "$CONFIG_FILES"
14114 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14117 :[FHLC]) ac_mode=$ac_tag; continue;;
14119 case $ac_mode$ac_tag in
14121 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14122 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14123 { (exit 1); exit 1; }; };;
14124 :[FH]-) ac_tag=-:-;;
14125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14142 -) ac_f="$tmp/stdin";;
14143 *) # Look for the file first in the build tree, then in the source tree
14144 # (if the path is not absolute). The absolute path cannot be DOS-style,
14145 # because $ac_f cannot contain `:'.
14149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14151 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14152 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14153 { (exit 1); exit 1; }; };;
14155 ac_file_inputs="$ac_file_inputs $ac_f"
14158 # Let's still pretend it is `configure' which instantiates (i.e., don't
14159 # use $as_me), people would be surprised to read:
14160 # /* config.h. Generated by config.status. */
14161 configure_input="Generated from "`IFS=:
14162 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14163 if test x"$ac_file" != x-; then
14164 configure_input="$ac_file. $configure_input"
14165 { echo "$as_me:$LINENO: creating $ac_file" >&5
14166 echo "$as_me: creating $ac_file" >&6;}
14170 *:-:* | *:-) cat >"$tmp/stdin";;
14175 ac_dir=`$as_dirname -- "$ac_file" ||
14176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14177 X"$ac_file" : 'X\(//\)[^/]' \| \
14178 X"$ac_file" : 'X\(//\)$' \| \
14179 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14185 /^X\(\/\/\)[^/].*/{
14200 -*) as_dir=./$as_dir;;
14202 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14206 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14207 *) as_qdir=$as_dir;;
14209 as_dirs="'$as_qdir' $as_dirs"
14210 as_dir=`$as_dirname -- "$as_dir" ||
14211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14212 X"$as_dir" : 'X\(//\)[^/]' \| \
14213 X"$as_dir" : 'X\(//\)$' \| \
14214 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14220 /^X\(\/\/\)[^/].*/{
14233 test -d "$as_dir" && break
14235 test -z "$as_dirs" || eval "mkdir $as_dirs"
14236 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14237 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14238 { (exit 1); exit 1; }; }; }
14242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14245 # A ".." for each directory in $ac_dir_suffix.
14246 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14247 case $ac_top_builddir_sub in
14248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14252 ac_abs_top_builddir=$ac_pwd
14253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14254 # for backward compatibility:
14255 ac_top_builddir=$ac_top_build_prefix
14258 .) # We are building in place.
14260 ac_top_srcdir=$ac_top_builddir_sub
14261 ac_abs_top_srcdir=$ac_pwd ;;
14262 [\\/]* | ?:[\\/]* ) # Absolute name.
14263 ac_srcdir=$srcdir$ac_dir_suffix;
14264 ac_top_srcdir=$srcdir
14265 ac_abs_top_srcdir=$srcdir ;;
14266 *) # Relative name.
14267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14268 ac_top_srcdir=$ac_top_build_prefix$srcdir
14269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14282 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14284 ac_MKDIR_P=$MKDIR_P
14286 [\\/$]* | ?:[\\/]* ) ;;
14287 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14291 cat >>$CONFIG_STATUS <<\_ACEOF
14292 # If the template does not know about datarootdir, expand it.
14293 # FIXME: This hack should be removed a few years after 2.60.
14294 ac_datarootdir_hack=; ac_datarootdir_seen=
14296 case `sed -n '/datarootdir/ {
14305 ' $ac_file_inputs` in
14306 *datarootdir*) ac_datarootdir_seen=yes;;
14307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14308 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14309 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14311 cat >>$CONFIG_STATUS <<_ACEOF
14312 ac_datarootdir_hack='
14313 s&@datadir@&$datadir&g
14314 s&@docdir@&$docdir&g
14315 s&@infodir@&$infodir&g
14316 s&@localedir@&$localedir&g
14317 s&@mandir@&$mandir&g
14318 s&\\\${datarootdir}&$datarootdir&g' ;;
14322 # Neutralize VPATH when `$srcdir' = `.'.
14323 # Shell code in configure.ac might set extrasub.
14324 # FIXME: do we really want to maintain this feature?
14325 cat >>$CONFIG_STATUS <<_ACEOF
14329 cat >>$CONFIG_STATUS <<\_ACEOF
14331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14332 s&@configure_input@&$configure_input&;t t
14333 s&@top_builddir@&$ac_top_builddir_sub&;t t
14334 s&@srcdir@&$ac_srcdir&;t t
14335 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14336 s&@top_srcdir@&$ac_top_srcdir&;t t
14337 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14338 s&@builddir@&$ac_builddir&;t t
14339 s&@abs_builddir@&$ac_abs_builddir&;t t
14340 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14341 s&@INSTALL@&$ac_INSTALL&;t t
14342 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14343 $ac_datarootdir_hack
14344 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14346 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14347 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14348 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14349 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14350 which seems to be undefined. Please make sure it is defined." >&5
14351 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14352 which seems to be undefined. Please make sure it is defined." >&2;}
14356 -) cat "$tmp/out"; rm -f "$tmp/out";;
14357 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14366 # Transform confdefs.h into a sed script `conftest.defines', that
14367 # substitutes the proper values into config.h.in to produce config.h.
14368 rm -f conftest.defines conftest.tail
14369 # First, append a space to every undef/define line, to ease matching.
14370 echo 's/$/ /' >conftest.defines
14371 # Then, protect against being on the right side of a sed subst, or in
14372 # an unquoted here document, in config.status. If some macros were
14373 # called several times there might be several #defines for the same
14374 # symbol, which is useless. But do not sort them, since the last
14375 # AC_DEFINE must be honored.
14376 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14377 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14378 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14379 # PARAMS is the parameter list in the macro definition--in most cases, it's
14380 # just an empty string.
14381 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14382 ac_dB='\\)[ (].*,\\1define\\2'
14390 s/^[ ]*#[ ]*define[ ][ ]*//
14395 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14396 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14397 ' >>conftest.defines
14399 # Remove the space that was appended to ease matching.
14400 # Then replace #undef with comments. This is necessary, for
14401 # example, in the case of _POSIX_SOURCE, which is predefined and required
14402 # on some systems where configure will not decide to define it.
14403 # (The regexp can be short, since the line contains either #define or #undef.)
14405 s,^[ #]*u.*,/* & */,' >>conftest.defines
14407 # Break up conftest.defines:
14408 ac_max_sed_lines=50
14410 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14411 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14412 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14414 ac_in='$ac_file_inputs'
14415 ac_out='"$tmp/out1"'
14416 ac_nxt='"$tmp/out2"'
14420 # Write a here document:
14421 cat >>$CONFIG_STATUS <<_ACEOF
14422 # First, check the format of the line:
14423 cat >"\$tmp/defines.sed" <<\\CEOF
14424 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14425 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14429 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14431 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14432 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14433 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14434 grep . conftest.tail >/dev/null || break
14435 rm -f conftest.defines
14436 mv conftest.tail conftest.defines
14438 rm -f conftest.defines conftest.tail
14440 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14441 cat >>$CONFIG_STATUS <<\_ACEOF
14442 if test x"$ac_file" != x-; then
14443 echo "/* $configure_input */" >"$tmp/config.h"
14444 cat "$ac_result" >>"$tmp/config.h"
14445 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14446 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14447 echo "$as_me: $ac_file is unchanged" >&6;}
14450 mv "$tmp/config.h" $ac_file
14453 echo "/* $configure_input */"
14457 # Compute $ac_file's index in $config_headers.
14459 for _am_header in $config_headers :; do
14460 case $_am_header in
14461 $ac_file | $ac_file:* )
14464 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14467 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14468 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14469 X$ac_file : 'X\(//\)[^/]' \| \
14470 X$ac_file : 'X\(//\)$' \| \
14471 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14477 /^X\(\/\/\)[^/].*/{
14489 s/.*/./; q'`/stamp-h$_am_stamp_count
14492 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14493 echo "$as_me: executing $ac_file commands" >&6;}
14498 case $ac_file$ac_mode in
14499 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14500 # Strip MF so we end up with the name of the file.
14501 mf=`echo "$mf" | sed -e 's/:.*$//'`
14502 # Check whether this is an Automake generated Makefile or not.
14503 # We used to match only the files named `Makefile.in', but
14504 # some people rename them; so instead we look at the file content.
14505 # Grep'ing the first line is not enough: some people post-process
14506 # each Makefile.in and add a new line on top of each file to say so.
14507 # Grep'ing the whole file is not good either: AIX grep has a line
14508 # limit of 2048, but all sed's we know have understand at least 4000.
14509 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
14510 dirpart=`$as_dirname -- "$mf" ||
14511 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14512 X"$mf" : 'X\(//\)[^/]' \| \
14513 X"$mf" : 'X\(//\)$' \| \
14514 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14520 /^X\(\/\/\)[^/].*/{
14536 # Extract the definition of DEPDIR, am__include, and am__quote
14537 # from the Makefile without running `make'.
14538 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14539 test -z "$DEPDIR" && continue
14540 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14541 test -z "am__include" && continue
14542 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14543 # When using ansi2knr, U may be empty or an underscore; expand it
14544 U=`sed -n 's/^U = //p' < "$mf"`
14545 # Find all dependency output files, they are included files with
14546 # $(DEPDIR) in their names. We invoke sed twice because it is the
14547 # simplest approach to changing $(DEPDIR) to its actual value in the
14549 for file in `sed -n "
14550 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14551 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14552 # Make sure the directory exists.
14553 test -f "$dirpart/$file" && continue
14554 fdir=`$as_dirname -- "$file" ||
14555 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14556 X"$file" : 'X\(//\)[^/]' \| \
14557 X"$file" : 'X\(//\)$' \| \
14558 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14564 /^X\(\/\/\)[^/].*/{
14577 { as_dir=$dirpart/$fdir
14579 -*) as_dir=./$as_dir;;
14581 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14585 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14586 *) as_qdir=$as_dir;;
14588 as_dirs="'$as_qdir' $as_dirs"
14589 as_dir=`$as_dirname -- "$as_dir" ||
14590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14591 X"$as_dir" : 'X\(//\)[^/]' \| \
14592 X"$as_dir" : 'X\(//\)$' \| \
14593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14599 /^X\(\/\/\)[^/].*/{
14612 test -d "$as_dir" && break
14614 test -z "$as_dirs" || eval "mkdir $as_dirs"
14615 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14616 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14617 { (exit 1); exit 1; }; }; }
14618 # echo "creating $dirpart/$file"
14619 echo '# dummy' > "$dirpart/$file"
14628 { (exit 0); exit 0; }
14630 chmod +x $CONFIG_STATUS
14631 ac_clean_files=$ac_clean_files_save
14634 # configure is writing to config.log, and then calls config.status.
14635 # config.status does its own redirection, appending to config.log.
14636 # Unfortunately, on DOS this fails, as config.log is still kept open
14637 # by configure, so config.status won't be able to write to it; its
14638 # output is simply discarded. So we exec the FD to /dev/null,
14639 # effectively closing config.log, so it can be properly (re)opened and
14640 # appended to by config.status. When coming back to configure, we
14641 # need to make the FD available again.
14642 if test "$no_create" != yes; then
14644 ac_config_status_args=
14645 test "$silent" = yes &&
14646 ac_config_status_args="$ac_config_status_args --quiet"
14648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14651 # would make configure fail if this is the last instruction.
14652 $ac_cs_success || { (exit 1); exit 1; }