autoreconf
[cyrus-sasl.git] / saslauthd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
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
39
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
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
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
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
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
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
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 ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
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
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
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'"
546
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'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="mechanisms.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 SASLAUTHD_TRUE
662 SASLAUTHD_FALSE
663 INSTALL_PROGRAM
664 INSTALL_SCRIPT
665 INSTALL_DATA
666 am__isrc
667 CYGPATH_W
668 PACKAGE
669 VERSION
670 ACLOCAL
671 AUTOCONF
672 AUTOMAKE
673 AUTOHEADER
674 MAKEINFO
675 install_sh
676 STRIP
677 INSTALL_STRIP_PROGRAM
678 mkdir_p
679 AWK
680 SET_MAKE
681 am__leading_dot
682 AMTAR
683 am__tar
684 am__untar
685 CC
686 CFLAGS
687 LDFLAGS
688 CPPFLAGS
689 ac_ct_CC
690 EXEEXT
691 OBJEXT
692 DEPDIR
693 am__include
694 am__quote
695 AMDEP_TRUE
696 AMDEP_FALSE
697 AMDEPBACKSLASH
698 CCDEPMODE
699 am__fastdepCC_TRUE
700 am__fastdepCC_FALSE
701 CPP
702 LN_S
703 LIB_SOCKET
704 GREP
705 EGREP
706 CMU_LIB_SUBDIR
707 LIB_DES
708 SASL_KRB_LIB
709 LIB_CRYPT
710 GSSAPI_LIBS
711 GSSAPIBASE_LIBS
712 LIB_SIA
713 SASL_DB_UTILS
714 SASL_DB_MANS
715 SASL_DB_BACKEND
716 SASL_DB_BACKEND_STATIC
717 SASL_DB_INC
718 SASL_DB_LIB
719 MAIN_COMPAT_OBJ
720 LIB_PAM
721 LDAP_LIBS
722 LTLIBOBJS
723 LIBOBJS'
724 ac_subst_files=''
725       ac_precious_vars='build_alias
726 host_alias
727 target_alias
728 CC
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
733 CPP'
734
735
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
741 cache_file=/dev/null
742 exec_prefix=NONE
743 no_create=
744 no_recursion=
745 prefix=NONE
746 program_prefix=NONE
747 program_suffix=NONE
748 program_transform_name=s,x,x,
749 silent=
750 site=
751 srcdir=
752 verbose=
753 x_includes=NONE
754 x_libraries=NONE
755
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'
774 htmldir='${docdir}'
775 dvidir='${docdir}'
776 pdfdir='${docdir}'
777 psdir='${docdir}'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
781
782 ac_prev=
783 ac_dashdash=
784 for ac_option
785 do
786   # If the previous option needs an argument, assign it.
787   if test -n "$ac_prev"; then
788     eval $ac_prev=\$ac_option
789     ac_prev=
790     continue
791   fi
792
793   case $ac_option in
794   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795   *)    ac_optarg=yes ;;
796   esac
797
798   # Accept the important Cygnus configure options, so we can diagnose typos.
799
800   case $ac_dashdash$ac_option in
801   --)
802     ac_dashdash=yes ;;
803
804   -bindir | --bindir | --bindi | --bind | --bin | --bi)
805     ac_prev=bindir ;;
806   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807     bindir=$ac_optarg ;;
808
809   -build | --build | --buil | --bui | --bu)
810     ac_prev=build_alias ;;
811   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812     build_alias=$ac_optarg ;;
813
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 ;;
820
821   --config-cache | -C)
822     cache_file=config.cache ;;
823
824   -datadir | --datadir | --datadi | --datad)
825     ac_prev=datadir ;;
826   -datadir=* | --datadir=* | --datadi=* | --datad=*)
827     datadir=$ac_optarg ;;
828
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 ;;
835
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 ;;
844
845   -docdir | --docdir | --docdi | --doc | --do)
846     ac_prev=docdir ;;
847   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848     docdir=$ac_optarg ;;
849
850   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851     ac_prev=dvidir ;;
852   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853     dvidir=$ac_optarg ;;
854
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 ;;
863
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 ;;
872
873   -gas | --gas | --ga | --g)
874     # Obsolete; use --with-gas.
875     with_gas=yes ;;
876
877   -help | --help | --hel | --he | -h)
878     ac_init_help=long ;;
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 ;;
883
884   -host | --host | --hos | --ho)
885     ac_prev=host_alias ;;
886   -host=* | --host=* | --hos=* | --ho=*)
887     host_alias=$ac_optarg ;;
888
889   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890     ac_prev=htmldir ;;
891   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892   | --ht=*)
893     htmldir=$ac_optarg ;;
894
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 ;;
901
902   -infodir | --infodir | --infodi | --infod | --info | --inf)
903     ac_prev=infodir ;;
904   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905     infodir=$ac_optarg ;;
906
907   -libdir | --libdir | --libdi | --libd)
908     ac_prev=libdir ;;
909   -libdir=* | --libdir=* | --libdi=* | --libd=*)
910     libdir=$ac_optarg ;;
911
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 ;;
918
919   -localedir | --localedir | --localedi | --localed | --locale)
920     ac_prev=localedir ;;
921   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922     localedir=$ac_optarg ;;
923
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 ;;
930
931   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932     ac_prev=mandir ;;
933   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934     mandir=$ac_optarg ;;
935
936   -nfp | --nfp | --nf)
937     # Obsolete; use --without-fp.
938     with_fp=no ;;
939
940   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941   | --no-cr | --no-c | -n)
942     no_create=yes ;;
943
944   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946     no_recursion=yes ;;
947
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 ;;
956
957   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958     ac_prev=prefix ;;
959   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960     prefix=$ac_optarg ;;
961
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 ;;
968
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 ;;
975
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 ;;
992
993   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994     ac_prev=pdfdir ;;
995   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996     pdfdir=$ac_optarg ;;
997
998   -psdir | --psdir | --psdi | --psd | --ps)
999     ac_prev=psdir ;;
1000   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001     psdir=$ac_optarg ;;
1002
1003   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004   | -silent | --silent | --silen | --sile | --sil)
1005     silent=yes ;;
1006
1007   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008     ac_prev=sbindir ;;
1009   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010   | --sbi=* | --sb=*)
1011     sbindir=$ac_optarg ;;
1012
1013   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015   | --sharedst | --shareds | --shared | --share | --shar \
1016   | --sha | --sh)
1017     ac_prev=sharedstatedir ;;
1018   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021   | --sha=* | --sh=*)
1022     sharedstatedir=$ac_optarg ;;
1023
1024   -site | --site | --sit)
1025     ac_prev=site ;;
1026   -site=* | --site=* | --sit=*)
1027     site=$ac_optarg ;;
1028
1029   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030     ac_prev=srcdir ;;
1031   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032     srcdir=$ac_optarg ;;
1033
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 ;;
1040
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 ;;
1045
1046   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047     verbose=yes ;;
1048
1049   -version | --version | --versio | --versi | --vers | -V)
1050     ac_init_version=: ;;
1051
1052   -with-* | --with-*)
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 ;;
1060
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 ;;
1069
1070   --x)
1071     # Obsolete; use --with-x.
1072     with_x=yes ;;
1073
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 ;;
1080
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 ;;
1087
1088   -*) { echo "$as_me: error: unrecognized option: $ac_option
1089 Try \`$0 --help' for more information." >&2
1090    { (exit 1); exit 1; }; }
1091     ;;
1092
1093   *=*)
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 ;;
1101
1102   *)
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}
1108     ;;
1109
1110   esac
1111 done
1112
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; }; }
1117 fi
1118
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
1124 do
1125   eval ac_val=\$$ac_var
1126   case $ac_val in
1127     [\\/$]* | ?:[\\/]* )  continue;;
1128     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1129   esac
1130   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1131    { (exit 1); exit 1; }; }
1132 done
1133
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.
1137 build=$build_alias
1138 host=$host_alias
1139 target=$target_alias
1140
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
1148     cross_compiling=yes
1149   fi
1150 fi
1151
1152 ac_tool_prefix=
1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1154
1155 test "$silent" = yes && exec 6>/dev/null
1156
1157
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; }; }
1166
1167
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 ||
1177 echo X"$0" |
1178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179             s//\1/
1180             q
1181           }
1182           /^X\(\/\/\)[^/].*/{
1183             s//\1/
1184             q
1185           }
1186           /^X\(\/\/\)$/{
1187             s//\1/
1188             q
1189           }
1190           /^X\(\/\).*/{
1191             s//\1/
1192             q
1193           }
1194           s/.*/./; q'`
1195   srcdir=$ac_confdir
1196   if test ! -r "$srcdir/$ac_unique_file"; then
1197     srcdir=..
1198   fi
1199 else
1200   ac_srcdir_defaulted=no
1201 fi
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; }; }
1206 fi
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 ac_abs_confdir=`(
1209         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1210    { (exit 1); exit 1; }; }
1211         pwd)`
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214   srcdir=.
1215 fi
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.
1219 case $srcdir in
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 esac
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}
1227 done
1228
1229 #
1230 # Report the --help message.
1231 #
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.
1235   cat <<_ACEOF
1236 \`configure' configures this package to adapt to many kinds of systems.
1237
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1239
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.
1242
1243 Defaults for the options are specified in brackets.
1244
1245 Configuration:
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 \`..']
1255
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
1260                           [PREFIX]
1261
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'.
1266
1267 For better control, use the options below.
1268
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]
1289 _ACEOF
1290
1291   cat <<\_ACEOF
1292
1293 Program names:
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
1297
1298 System types:
1299   --build=BUILD     configure for building on BUILD [guessed]
1300   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1301 _ACEOF
1302 fi
1303
1304 if test -n "$ac_init_help"; then
1305
1306   cat <<\_ACEOF
1307
1308 Optional Features:
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]
1318
1319 Optional Packages:
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
1336
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>
1345   CPP         C preprocessor
1346
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.
1349
1350 _ACEOF
1351 ac_status=$?
1352 fi
1353
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
1358     ac_builddir=.
1359
1360 case "$ac_dir" in
1361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *)
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/ ;;
1369   esac ;;
1370 esac
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
1375
1376 case $srcdir in
1377   .)  # We are building in place.
1378     ac_srcdir=.
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 ;;
1385   *) # Relative name.
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 ;;
1389 esac
1390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1391
1392     cd "$ac_dir" || { ac_status=$?; continue; }
1393     # Check for guested configure.
1394     if test -f "$ac_srcdir/configure.gnu"; then
1395       echo &&
1396       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1397     elif test -f "$ac_srcdir/configure"; then
1398       echo &&
1399       $SHELL "$ac_srcdir/configure" --help=recursive
1400     else
1401       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1402     fi || ac_status=$?
1403     cd "$ac_pwd" || { ac_status=$?; break; }
1404   done
1405 fi
1406
1407 test -n "$ac_init_help" && exit $ac_status
1408 if $ac_init_version; then
1409   cat <<\_ACEOF
1410 configure
1411 generated by GNU Autoconf 2.61
1412
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.
1417 _ACEOF
1418   exit
1419 fi
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.
1423
1424 It was created by $as_me, which was
1425 generated by GNU Autoconf 2.61.  Invocation command line was
1426
1427   $ $0 $@
1428
1429 _ACEOF
1430 exec 5>>config.log
1431 {
1432 cat <<_ASUNAME
1433 ## --------- ##
1434 ## Platform. ##
1435 ## --------- ##
1436
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`
1442
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`
1445
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`
1453
1454 _ASUNAME
1455
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457 for as_dir in $PATH
1458 do
1459   IFS=$as_save_IFS
1460   test -z "$as_dir" && as_dir=.
1461   echo "PATH: $as_dir"
1462 done
1463 IFS=$as_save_IFS
1464
1465 } >&5
1466
1467 cat >&5 <<_ACEOF
1468
1469
1470 ## ----------- ##
1471 ## Core tests. ##
1472 ## ----------- ##
1473
1474 _ACEOF
1475
1476
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.
1482 ac_configure_args=
1483 ac_configure_args0=
1484 ac_configure_args1=
1485 ac_must_keep_next=false
1486 for ac_pass in 1 2
1487 do
1488   for ac_arg
1489   do
1490     case $ac_arg in
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)
1494       continue ;;
1495     *\'*)
1496       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1497     esac
1498     case $ac_pass in
1499     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1500     2)
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.
1504       else
1505         case $ac_arg in
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 ;;
1512             esac
1513             ;;
1514           -* ) ac_must_keep_next=true ;;
1515         esac
1516       fi
1517       ac_configure_args="$ac_configure_args '$ac_arg'"
1518       ;;
1519     esac
1520   done
1521 done
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; }
1524
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.
1532   {
1533     echo
1534
1535     cat <<\_ASBOX
1536 ## ---------------- ##
1537 ## Cache variables. ##
1538 ## ---------------- ##
1539 _ASBOX
1540     echo
1541     # The following way of writing the cache mishandles newlines in values,
1542 (
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
1545     case $ac_val in #(
1546     *${as_nl}*)
1547       case $ac_var in #(
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;} ;;
1550       esac
1551       case $ac_var in #(
1552       _ | IFS | as_nl) ;; #(
1553       *) $as_unset $ac_var ;;
1554       esac ;;
1555     esac
1556   done
1557   (set) 2>&1 |
1558     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1559     *${as_nl}ac_space=\ *)
1560       sed -n \
1561         "s/'\''/'\''\\\\'\'''\''/g;
1562           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1563       ;; #(
1564     *)
1565       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1566       ;;
1567     esac |
1568     sort
1569 )
1570     echo
1571
1572     cat <<\_ASBOX
1573 ## ----------------- ##
1574 ## Output variables. ##
1575 ## ----------------- ##
1576 _ASBOX
1577     echo
1578     for ac_var in $ac_subst_vars
1579     do
1580       eval ac_val=\$$ac_var
1581       case $ac_val in
1582       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1583       esac
1584       echo "$ac_var='\''$ac_val'\''"
1585     done | sort
1586     echo
1587
1588     if test -n "$ac_subst_files"; then
1589       cat <<\_ASBOX
1590 ## ------------------- ##
1591 ## File substitutions. ##
1592 ## ------------------- ##
1593 _ASBOX
1594       echo
1595       for ac_var in $ac_subst_files
1596       do
1597         eval ac_val=\$$ac_var
1598         case $ac_val in
1599         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600         esac
1601         echo "$ac_var='\''$ac_val'\''"
1602       done | sort
1603       echo
1604     fi
1605
1606     if test -s confdefs.h; then
1607       cat <<\_ASBOX
1608 ## ----------- ##
1609 ## confdefs.h. ##
1610 ## ----------- ##
1611 _ASBOX
1612       echo
1613       cat confdefs.h
1614       echo
1615     fi
1616     test "$ac_signal" != 0 &&
1617       echo "$as_me: caught signal $ac_signal"
1618     echo "$as_me: exit $exit_status"
1619   } >&5
1620   rm -f core *.core core.conftest.* &&
1621     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1622     exit $exit_status
1623 ' 0
1624 for ac_signal in 1 2 13 15; do
1625   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1626 done
1627 ac_signal=0
1628
1629 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1630 rm -f -r conftest* confdefs.h
1631
1632 # Predefined preprocessor variables.
1633
1634 cat >>confdefs.h <<_ACEOF
1635 #define PACKAGE_NAME "$PACKAGE_NAME"
1636 _ACEOF
1637
1638
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1641 _ACEOF
1642
1643
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1646 _ACEOF
1647
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_STRING "$PACKAGE_STRING"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1656 _ACEOF
1657
1658
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"
1665 else
1666   set x "$ac_default_prefix/share/config.site" \
1667         "$ac_default_prefix/etc/config.site"
1668 fi
1669 shift
1670 for ac_site_file
1671 do
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
1676     . "$ac_site_file"
1677   fi
1678 done
1679
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;}
1686     case $cache_file in
1687       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1688       *)                      . "./$cache_file";;
1689     esac
1690   fi
1691 else
1692   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1693 echo "$as_me: creating cache $cache_file" >&6;}
1694   >$cache_file
1695 fi
1696
1697 # Check that the precious variables saved in the cache have kept the same
1698 # value.
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
1706     set,)
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=: ;;
1710     ,set)
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=: ;;
1714     ,);;
1715     *)
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=:
1724       fi;;
1725   esac
1726   # Pass precious variables to config.status.
1727   if test "$ac_new_set" = set; then
1728     case $ac_new_val in
1729     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1730     *) ac_arg=$ac_var=$ac_new_val ;;
1731     esac
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'" ;;
1735     esac
1736   fi
1737 done
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; }; }
1744 fi
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762 ac_ext=c
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
1767
1768
1769
1770
1771 ac_aux_dir=
1772 for ac_dir in config "$srcdir"/config; do
1773   if test -f "$ac_dir/install-sh"; then
1774     ac_aux_dir=$ac_dir
1775     ac_install_sh="$ac_aux_dir/install-sh -c"
1776     break
1777   elif test -f "$ac_dir/install.sh"; then
1778     ac_aux_dir=$ac_dir
1779     ac_install_sh="$ac_aux_dir/install.sh -c"
1780     break
1781   elif test -f "$ac_dir/shtool"; then
1782     ac_aux_dir=$ac_dir
1783     ac_install_sh="$ac_aux_dir/shtool install -c"
1784     break
1785   fi
1786 done
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; }; }
1791 fi
1792
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.
1800
1801
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; }; }
1807
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
1812 else
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; }; }
1824
1825 fi
1826 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1827 echo "${ECHO_T}$ac_cv_build" >&6; }
1828 case $ac_cv_build in
1829 *-*-*) ;;
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; }; };;
1833 esac
1834 build=$ac_cv_build
1835 ac_save_IFS=$IFS; IFS='-'
1836 set x $ac_cv_build
1837 shift
1838 build_cpu=$1
1839 build_vendor=$2
1840 shift; shift
1841 # Remember, the first character of IFS is used to create $*,
1842 # except with old shells:
1843 build_os=$*
1844 IFS=$ac_save_IFS
1845 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1846
1847
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
1852 else
1853   if test "x$host_alias" = x; then
1854   ac_cv_host=$ac_cv_build
1855 else
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; }; }
1860 fi
1861
1862 fi
1863 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1864 echo "${ECHO_T}$ac_cv_host" >&6; }
1865 case $ac_cv_host in
1866 *-*-*) ;;
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; }; };;
1870 esac
1871 host=$ac_cv_host
1872 ac_save_IFS=$IFS; IFS='-'
1873 set x $ac_cv_host
1874 shift
1875 host_cpu=$1
1876 host_vendor=$2
1877 shift; shift
1878 # Remember, the first character of IFS is used to create $*,
1879 # except with old shells:
1880 host_os=$*
1881 IFS=$ac_save_IFS
1882 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1883
1884
1885
1886
1887 # Check whether --with-saslauthd was given.
1888 if test "${with_saslauthd+set}" = set; then
1889   withval=$with_saslauthd; with_saslauthd=$withval
1890 else
1891   with_saslauthd=yes
1892 fi
1893
1894   if test "$with_saslauthd" = yes; then
1895     with_saslauthd="/var/state/saslauthd"
1896   fi
1897
1898 cat >>confdefs.h <<\_ACEOF
1899 #define HAVE_SASLAUTHD
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
1905 _ACEOF
1906
1907  if test "$with_saslauthd" != no; then
1908   SASLAUTHD_TRUE=
1909   SASLAUTHD_FALSE='#'
1910 else
1911   SASLAUTHD_TRUE='#'
1912   SASLAUTHD_FALSE=
1913 fi
1914
1915
1916 am__api_version='1.10'
1917
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
1924 # AIX /bin/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
1936 else
1937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940   IFS=$as_save_IFS
1941   test -z "$as_dir" && as_dir=.
1942   # Account for people who put trailing slashes in PATH elements.
1943 case $as_dir/ in
1944   ./ | .// | /cC/* | \
1945   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1946   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1947   /usr/ucb/* ) ;;
1948   *)
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
1951     # by default.
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.
1958             :
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.
1962             :
1963           else
1964             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1965             break 3
1966           fi
1967         fi
1968       done
1969     done
1970     ;;
1971 esac
1972 done
1973 IFS=$as_save_IFS
1974
1975
1976 fi
1977   if test "${ac_cv_path_install+set}" = set; then
1978     INSTALL=$ac_cv_path_install
1979   else
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
1985   fi
1986 fi
1987 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1988 echo "${ECHO_T}$INSTALL" >&6; }
1989
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}'
1993
1994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1995
1996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1997
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; }
2000 # Just in case
2001 sleep 1
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
2007 # directory).
2008 if (
2009    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2010    if test "$*" = "X"; then
2011       # -L didn't work.
2012       set X `ls -t $srcdir/configure conftest.file`
2013    fi
2014    rm -f conftest.file
2015    if test "$*" != "X $srcdir/configure conftest.file" \
2016       && test "$*" != "X conftest.file $srcdir/configure"; then
2017
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; }; }
2027    fi
2028
2029    test "$2" = conftest.file
2030    )
2031 then
2032    # Ok.
2033    :
2034 else
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; }; }
2040 fi
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,$//
2052 _ACEOF
2053 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2054 rm -f conftest.sed
2055
2056 # expand $ac_aux_dir to an absolute path
2057 am_aux_dir=`cd $ac_aux_dir && pwd`
2058
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 "
2063 else
2064   am_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;}
2067 fi
2068
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
2074 else
2075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2077 do
2078   IFS=$as_save_IFS
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
2088                break 3;;
2089            esac
2090          done
2091        done
2092 done
2093 IFS=$as_save_IFS
2094
2095 fi
2096
2097   if test "${ac_cv_path_mkdir+set}" = set; then
2098     MKDIR_P="$ac_cv_path_mkdir -p"
2099   else
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"
2106   fi
2107 fi
2108 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2109 echo "${ECHO_T}$MKDIR_P" >&6; }
2110
2111 mkdir_p="$MKDIR_P"
2112 case $mkdir_p in
2113   [\\/$]* | ?:[\\/]*) ;;
2114   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2115 esac
2116
2117 for ac_prog in gawk mawk nawk awk
2118 do
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
2125 else
2126   if test -n "$AWK"; then
2127   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2128 else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132   IFS=$as_save_IFS
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
2138     break 2
2139   fi
2140 done
2141 done
2142 IFS=$as_save_IFS
2143
2144 fi
2145 fi
2146 AWK=$ac_cv_prog_AWK
2147 if test -n "$AWK"; then
2148   { echo "$as_me:$LINENO: result: $AWK" >&5
2149 echo "${ECHO_T}$AWK" >&6; }
2150 else
2151   { echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6; }
2153 fi
2154
2155
2156   test -n "$AWK" && break
2157 done
2158
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
2164 else
2165   cat >conftest.make <<\_ACEOF
2166 SHELL = /bin/sh
2167 all:
2168         @echo '@@@%%%=$(MAKE)=@@@%%%'
2169 _ACEOF
2170 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2171 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2172   *@@@%%%=?*=@@@%%%*)
2173     eval ac_cv_prog_make_${ac_make}_set=yes;;
2174   *)
2175     eval ac_cv_prog_make_${ac_make}_set=no;;
2176 esac
2177 rm -f conftest.make
2178 fi
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; }
2182   SET_MAKE=
2183 else
2184   { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2186   SET_MAKE="MAKE=${MAKE-make}"
2187 fi
2188
2189 rm -rf .tst 2>/dev/null
2190 mkdir .tst 2>/dev/null
2191 if test -d .tst; then
2192   am__leading_dot=.
2193 else
2194   am__leading_dot=_
2195 fi
2196 rmdir .tst 2>/dev/null
2197
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; }; }
2207   fi
2208 fi
2209
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'
2214   else
2215     CYGPATH_W=echo
2216   fi
2217 fi
2218
2219
2220 # Define the identity of the package.
2221  PACKAGE=saslauthd
2222  VERSION=2.1.23
2223
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE "$PACKAGE"
2227 _ACEOF
2228
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define VERSION "$VERSION"
2232 _ACEOF
2233
2234 # Some tools Automake needs.
2235
2236 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2237
2238
2239 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2240
2241
2242 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2243
2244
2245 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2246
2247
2248 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2249
2250 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2251
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
2264 else
2265   if test -n "$STRIP"; then
2266   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271   IFS=$as_save_IFS
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
2277     break 2
2278   fi
2279 done
2280 done
2281 IFS=$as_save_IFS
2282
2283 fi
2284 fi
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; }
2289 else
2290   { echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6; }
2292 fi
2293
2294
2295 fi
2296 if test -z "$ac_cv_prog_STRIP"; then
2297   ac_ct_STRIP=$STRIP
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
2304 else
2305   if test -n "$ac_ct_STRIP"; then
2306   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
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
2317     break 2
2318   fi
2319 done
2320 done
2321 IFS=$as_save_IFS
2322
2323 fi
2324 fi
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; }
2329 else
2330   { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2332 fi
2333
2334   if test "x$ac_ct_STRIP" = x; then
2335     STRIP=":"
2336   else
2337     case $cross_compiling:$ac_tool_warned in
2338 yes:)
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 ;;
2346 esac
2347     STRIP=$ac_ct_STRIP
2348   fi
2349 else
2350   STRIP="$ac_cv_prog_STRIP"
2351 fi
2352
2353 fi
2354 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2355
2356 # We need awk for the "check" target.  The system "awk" is bad on
2357 # some platforms.
2358 # Always define AMTAR for backward compatibility.
2359
2360 AMTAR=${AMTAR-"${am_missing_run}tar"}
2361
2362 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2363
2364
2365
2366
2367
2368
2369
2370         ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2371
2372
2373 ac_ext=c
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
2385 else
2386   if test -n "$CC"; then
2387   ac_cv_prog_CC="$CC" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
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
2398     break 2
2399   fi
2400 done
2401 done
2402 IFS=$as_save_IFS
2403
2404 fi
2405 fi
2406 CC=$ac_cv_prog_CC
2407 if test -n "$CC"; then
2408   { echo "$as_me:$LINENO: result: $CC" >&5
2409 echo "${ECHO_T}$CC" >&6; }
2410 else
2411   { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2413 fi
2414
2415
2416 fi
2417 if test -z "$ac_cv_prog_CC"; then
2418   ac_ct_CC=$CC
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
2425 else
2426   if test -n "$ac_ct_CC"; then
2427   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432   IFS=$as_save_IFS
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
2438     break 2
2439   fi
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445 fi
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; }
2450 else
2451   { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2453 fi
2454
2455   if test "x$ac_ct_CC" = x; then
2456     CC=""
2457   else
2458     case $cross_compiling:$ac_tool_warned in
2459 yes:)
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 ;;
2467 esac
2468     CC=$ac_ct_CC
2469   fi
2470 else
2471   CC="$ac_cv_prog_CC"
2472 fi
2473
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
2482 else
2483   if test -n "$CC"; then
2484   ac_cv_prog_CC="$CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
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
2495     break 2
2496   fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then
2505   { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2507 else
2508   { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512
2513   fi
2514 fi
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
2522 else
2523   if test -n "$CC"; then
2524   ac_cv_prog_CC="$CC" # Let the user override the test.
2525 else
2526   ac_prog_rejected=no
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
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
2536        continue
2537      fi
2538     ac_cv_prog_CC="cc"
2539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540     break 2
2541   fi
2542 done
2543 done
2544 IFS=$as_save_IFS
2545
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
2549   shift
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.
2554     shift
2555     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2556   fi
2557 fi
2558 fi
2559 fi
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562   { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565   { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569
2570 fi
2571 if test -z "$CC"; then
2572   if test -n "$ac_tool_prefix"; then
2573   for ac_prog in cl.exe
2574   do
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
2581 else
2582   if test -n "$CC"; then
2583   ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
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
2594     break 2
2595   fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 CC=$ac_cv_prog_CC
2603 if test -n "$CC"; then
2604   { echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6; }
2606 else
2607   { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2609 fi
2610
2611
2612     test -n "$CC" && break
2613   done
2614 fi
2615 if test -z "$CC"; then
2616   ac_ct_CC=$CC
2617   for ac_prog in cl.exe
2618 do
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
2625 else
2626   if test -n "$ac_ct_CC"; then
2627   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
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
2638     break 2
2639   fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
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; }
2650 else
2651   { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2653 fi
2654
2655
2656   test -n "$ac_ct_CC" && break
2657 done
2658
2659   if test "x$ac_ct_CC" = x; then
2660     CC=""
2661   else
2662     case $cross_compiling:$ac_tool_warned in
2663 yes:)
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 ;;
2671 esac
2672     CC=$ac_ct_CC
2673   fi
2674 fi
2675
2676 fi
2677
2678
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; }; }
2684
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"
2689 case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694   (eval "$ac_compiler --version >&5") 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }
2698 { (ac_try="$ac_compiler -v >&5"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_compiler -v >&5") 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }
2708 { (ac_try="$ac_compiler -V >&5"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_compiler -V >&5") 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }
2718
2719 cat >conftest.$ac_ext <<_ACEOF
2720 /* confdefs.h.  */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h.  */
2725
2726 int
2727 main ()
2728 {
2729
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
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
2738 # of exeext.
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[^ ]*//'`
2742 #
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'
2747 #
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.
2751 ac_rmfiles=
2752 for ac_file in $ac_files
2753 do
2754   case $ac_file in
2755     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2756     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2757   esac
2758 done
2759 rm -f $ac_rmfiles
2760
2761 if { (ac_try="$ac_link_default"
2762 case "(($ac_try" in
2763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764   *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767   (eval "$ac_link_default") 2>&5
2768   ac_status=$?
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
2775 # Autoconf.
2776 for ac_file in $ac_files ''
2777 do
2778   test -f "$ac_file" || continue
2779   case $ac_file in
2780     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2781         ;;
2782     [ab].out )
2783         # We found the default executable, but exeext='' is most
2784         # certainly right.
2785         break;;
2786     *.* )
2787         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2788         then :; else
2789            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2790         fi
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
2795         # actually working.
2796         break;;
2797     * )
2798         break;;
2799   esac
2800 done
2801 test "$ac_cv_exeext" = no && ac_cv_exeext=
2802
2803 else
2804   ac_file=''
2805 fi
2806
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
2812
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; }; }
2818 fi
2819
2820 ac_exeext=$ac_cv_exeext
2821
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;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835   (eval "$ac_try") 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; }; then
2839     cross_compiling=no
2840   else
2841     if test "$cross_compiling" = maybe; then
2842         cross_compiling=yes
2843     else
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; }; }
2851     fi
2852   fi
2853 fi
2854 { echo "$as_me:$LINENO: result: yes" >&5
2855 echo "${ECHO_T}yes" >&6; }
2856
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; }
2865
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"
2869 case "(($ac_try" in
2870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871   *) ac_try_echo=$ac_try;;
2872 esac
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874   (eval "$ac_link") 2>&5
2875   ac_status=$?
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
2881 # `rm'.
2882 for ac_file in conftest.exe conftest conftest.*; do
2883   test -f "$ac_file" || continue
2884   case $ac_file in
2885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2886     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2887           break;;
2888     * ) break;;
2889   esac
2890 done
2891 else
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; }; }
2897 fi
2898
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; }
2902
2903 rm -f conftest.$ac_ext
2904 EXEEXT=$ac_cv_exeext
2905 ac_exeext=$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
2910 else
2911   cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917
2918 int
2919 main ()
2920 {
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.o conftest.obj
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compile") 2>&5
2934   ac_status=$?
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;
2939   case $ac_file in
2940     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2941     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2942        break;;
2943   esac
2944 done
2945 else
2946   echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
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; }; }
2954 fi
2955
2956 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2957 fi
2958 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2959 echo "${ECHO_T}$ac_cv_objext" >&6; }
2960 OBJEXT=$ac_cv_objext
2961 ac_objext=$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
2966 else
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973
2974 int
2975 main ()
2976 {
2977 #ifndef __GNUC__
2978        choke me
2979 #endif
2980
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
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
3002   ac_compiler_gnu=yes
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007         ac_compiler_gnu=no
3008 fi
3009
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3012
3013 fi
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
3023 else
3024   ac_save_c_werror_flag=$ac_c_werror_flag
3025    ac_c_werror_flag=yes
3026    ac_cv_prog_cc_g=no
3027    CFLAGS="-g"
3028    cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034
3035 int
3036 main ()
3037 {
3038
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_compile") 2>conftest.er1
3051   ac_status=$?
3052   grep -v '^ *+' conftest.er1 >conftest.err
3053   rm -f conftest.er1
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
3060   ac_cv_prog_cc_g=yes
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065         CFLAGS=""
3066       cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072
3073 int
3074 main ()
3075 {
3076
3077   ;
3078   return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_compile") 2>conftest.er1
3089   ac_status=$?
3090   grep -v '^ *+' conftest.er1 >conftest.err
3091   rm -f conftest.er1
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
3098   :
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103         ac_c_werror_flag=$ac_save_c_werror_flag
3104          CFLAGS="-g"
3105          cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h.  */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h.  */
3111
3112 int
3113 main ()
3114 {
3115
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3122 case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_compile") 2>conftest.er1
3128   ac_status=$?
3129   grep -v '^ *+' conftest.er1 >conftest.err
3130   rm -f conftest.er1
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
3137   ac_cv_prog_cc_g=yes
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142
3143 fi
3144
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 fi
3147
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 fi
3150
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152    ac_c_werror_flag=$ac_save_c_werror_flag
3153 fi
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
3160     CFLAGS="-g -O2"
3161   else
3162     CFLAGS="-g"
3163   fi
3164 else
3165   if test "$GCC" = yes; then
3166     CFLAGS="-O2"
3167   else
3168     CFLAGS=
3169   fi
3170 fi
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
3175 else
3176   ac_cv_prog_cc_c89=no
3177 ac_save_CC=$CC
3178 cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h.  */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h.  */
3184 #include <stdarg.h>
3185 #include <stdio.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)
3192      char **p;
3193      int i;
3194 {
3195   return p[i];
3196 }
3197 static char *f (char * (*g) (char **, int), char **p, ...)
3198 {
3199   char *s;
3200   va_list v;
3201   va_start (v,p);
3202   s = g (p, va_arg (v,int));
3203   va_end (v);
3204   return s;
3205 }
3206
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];
3215
3216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3217    inside strings and character constants.  */
3218 #define FOO(x) 'x'
3219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3220
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);
3225 int argc;
3226 char **argv;
3227 int
3228 main ()
3229 {
3230 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3236         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3237 do
3238   CC="$ac_save_CC $ac_arg"
3239   rm -f conftest.$ac_objext
3240 if { (ac_try="$ac_compile"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246   (eval "$ac_compile") 2>conftest.er1
3247   ac_status=$?
3248   grep -v '^ *+' conftest.er1 >conftest.err
3249   rm -f conftest.er1
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
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261
3262 fi
3263
3264 rm -f core conftest.err conftest.$ac_objext
3265   test "x$ac_cv_prog_cc_c89" != "xno" && break
3266 done
3267 rm -f conftest.$ac_ext
3268 CC=$ac_save_CC
3269
3270 fi
3271 # AC_CACHE_VAL
3272 case "x$ac_cv_prog_cc_c89" in
3273   x)
3274     { echo "$as_me:$LINENO: result: none needed" >&5
3275 echo "${ECHO_T}none needed" >&6; } ;;
3276   xno)
3277     { echo "$as_me:$LINENO: result: unsupported" >&5
3278 echo "${ECHO_T}unsupported" >&6; } ;;
3279   *)
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; } ;;
3283 esac
3284
3285
3286 ac_ext=c
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"
3292
3293 ac_config_commands="$ac_config_commands depfiles"
3294
3295
3296 am_make=${MAKE-make}
3297 cat > confinc << 'END'
3298 am__doit:
3299         @echo done
3300 .PHONY: am__doit
3301 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; }
3305 am__include="#"
3306 am__quote=
3307 _am_result=none
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
3316    am__include=include
3317    am__quote=
3318    _am_result=GNU
3319 fi
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
3325       am__quote="\""
3326       _am_result=BSD
3327    fi
3328 fi
3329
3330
3331 { echo "$as_me:$LINENO: result: $_am_result" >&5
3332 echo "${ECHO_T}$_am_result" >&6; }
3333 rm -f confinc confmf
3334
3335 # Check whether --enable-dependency-tracking was given.
3336 if test "${enable_dependency_tracking+set}" = set; then
3337   enableval=$enable_dependency_tracking;
3338 fi
3339
3340 if test "x$enable_dependency_tracking" != xno; then
3341   am_depcomp="$ac_aux_dir/depcomp"
3342   AMDEPBACKSLASH='\'
3343 fi
3344  if test "x$enable_dependency_tracking" != xno; then
3345   AMDEP_TRUE=
3346   AMDEP_FALSE='#'
3347 else
3348   AMDEP_TRUE='#'
3349   AMDEP_FALSE=
3350 fi
3351
3352
3353
3354 depcc="$CC"   am_compiler_list=
3355
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
3360 else
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
3366   # in D'.
3367   mkdir conftest.dir
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
3371   cd 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
3377   # directory.
3378   mkdir sub
3379
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`
3383   fi
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.
3388     #
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.
3392     : > sub/conftest.c
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
3398     done
3399     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3400
3401     case $depmode in
3402     nosideeffect)
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
3406         continue
3407       else
3408         break
3409       fi
3410       ;;
3411     none) break ;;
3412     esac
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
3435         break
3436       fi
3437     fi
3438   done
3439
3440   cd ..
3441   rm -rf conftest.dir
3442 else
3443   am_cv_CC_dependencies_compiler_type=none
3444 fi
3445
3446 fi
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
3450
3451  if
3452   test "x$enable_dependency_tracking" != xno \
3453   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3454   am__fastdepCC_TRUE=
3455   am__fastdepCC_FALSE='#'
3456 else
3457   am__fastdepCC_TRUE='#'
3458   am__fastdepCC_FALSE=
3459 fi
3460
3461
3462 ac_ext=c
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
3471   CPP=
3472 fi
3473 if test -z "$CPP"; then
3474   if test "${ac_cv_prog_CPP+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477       # Double quotes because CPP needs to be expanded
3478     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3479     do
3480       ac_preproc_ok=false
3481 for ac_c_preproc_warn_flag in '' yes
3482 do
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
3490 /* confdefs.h.  */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h.  */
3495 #ifdef __STDC__
3496 # include <limits.h>
3497 #else
3498 # include <assert.h>
3499 #endif
3500                      Syntax error
3501 _ACEOF
3502 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
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
3517        }; then
3518   :
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523   # Broken: fails on valid input.
3524 continue
3525 fi
3526
3527 rm -f conftest.err conftest.$ac_ext
3528
3529   # OK, works on sane cases.  Now check whether nonexistent headers
3530   # can be detected and how.
3531   cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537 #include <ac_nonexistent.h>
3538 _ACEOF
3539 if { (ac_try="$ac_cpp conftest.$ac_ext"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
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
3554        }; then
3555   # Broken: success on invalid input.
3556 continue
3557 else
3558   echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561   # Passes both tests.
3562 ac_preproc_ok=:
3563 break
3564 fi
3565
3566 rm -f conftest.err conftest.$ac_ext
3567
3568 done
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
3572   break
3573 fi
3574
3575     done
3576     ac_cv_prog_CPP=$CPP
3577
3578 fi
3579   CPP=$ac_cv_prog_CPP
3580 else
3581   ac_cv_prog_CPP=$CPP
3582 fi
3583 { echo "$as_me:$LINENO: result: $CPP" >&5
3584 echo "${ECHO_T}$CPP" >&6; }
3585 ac_preproc_ok=false
3586 for ac_c_preproc_warn_flag in '' yes
3587 do
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
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #ifdef __STDC__
3601 # include <limits.h>
3602 #else
3603 # include <assert.h>
3604 #endif
3605                      Syntax error
3606 _ACEOF
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
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
3622        }; then
3623   :
3624 else
3625   echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628   # Broken: fails on valid input.
3629 continue
3630 fi
3631
3632 rm -f conftest.err conftest.$ac_ext
3633
3634   # OK, works on sane cases.  Now check whether nonexistent headers
3635   # can be detected and how.
3636   cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h.  */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h.  */
3642 #include <ac_nonexistent.h>
3643 _ACEOF
3644 if { (ac_try="$ac_cpp conftest.$ac_ext"
3645 case "(($ac_try" in
3646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647   *) ac_try_echo=$ac_try;;
3648 esac
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3651   ac_status=$?
3652   grep -v '^ *+' conftest.er1 >conftest.err
3653   rm -f conftest.er1
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
3659        }; then
3660   # Broken: success on invalid input.
3661 continue
3662 else
3663   echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666   # Passes both tests.
3667 ac_preproc_ok=:
3668 break
3669 fi
3670
3671 rm -f conftest.err conftest.$ac_ext
3672
3673 done
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
3677   :
3678 else
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; }; }
3684 fi
3685
3686 ac_ext=c
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
3691
3692 for ac_prog in gawk mawk nawk awk
3693 do
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
3700 else
3701   if test -n "$AWK"; then
3702   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
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
3713     break 2
3714   fi
3715 done
3716 done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 AWK=$ac_cv_prog_AWK
3722 if test -n "$AWK"; then
3723   { echo "$as_me:$LINENO: result: $AWK" >&5
3724 echo "${ECHO_T}$AWK" >&6; }
3725 else
3726   { echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6; }
3728 fi
3729
3730
3731   test -n "$AWK" && break
3732 done
3733
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
3739 else
3740   cat >conftest.make <<\_ACEOF
3741 SHELL = /bin/sh
3742 all:
3743         @echo '@@@%%%=$(MAKE)=@@@%%%'
3744 _ACEOF
3745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3747   *@@@%%%=?*=@@@%%%*)
3748     eval ac_cv_prog_make_${ac_make}_set=yes;;
3749   *)
3750     eval ac_cv_prog_make_${ac_make}_set=no;;
3751 esac
3752 rm -f conftest.make
3753 fi
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; }
3757   SET_MAKE=
3758 else
3759   { echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6; }
3761   SET_MAKE="MAKE=${MAKE-make}"
3762 fi
3763
3764 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3765 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3766 LN_S=$as_ln_s
3767 if test "$LN_S" = "ln -s"; then
3768   { echo "$as_me:$LINENO: result: yes" >&5
3769 echo "${ECHO_T}yes" >&6; }
3770 else
3771   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3772 echo "${ECHO_T}no, using $LN_S" >&6; }
3773 fi
3774
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
3781 # AIX /bin/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
3793 else
3794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797   IFS=$as_save_IFS
3798   test -z "$as_dir" && as_dir=.
3799   # Account for people who put trailing slashes in PATH elements.
3800 case $as_dir/ in
3801   ./ | .// | /cC/* | \
3802   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3803   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3804   /usr/ucb/* ) ;;
3805   *)
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
3808     # by default.
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.
3815             :
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.
3819             :
3820           else
3821             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3822             break 3
3823           fi
3824         fi
3825       done
3826     done
3827     ;;
3828 esac
3829 done
3830 IFS=$as_save_IFS
3831
3832
3833 fi
3834   if test "${ac_cv_path_install+set}" = set; then
3835     INSTALL=$ac_cv_path_install
3836   else
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
3842   fi
3843 fi
3844 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3845 echo "${ECHO_T}$INSTALL" >&6; }
3846
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}'
3850
3851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3852
3853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3854
3855
3856
3857
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
3862 else
3863
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h.  */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h.  */
3870
3871 #include <stdlib.h>
3872
3873 int
3874 main ()
3875 {
3876
3877 static void foo(void) __attribute__ ((noreturn));
3878
3879 static void
3880 foo(void)
3881 {
3882   exit(1);
3883 }
3884
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_compile") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
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
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911         ac_cv___attribute__=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 fi
3916
3917 if test "$ac_cv___attribute__" = "yes"; then
3918
3919 cat >>confdefs.h <<\_ACEOF
3920 #define HAVE___ATTRIBUTE__ 1
3921 _ACEOF
3922
3923 fi
3924 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3925 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3926
3927
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
3933 else
3934
3935     # first, try -R
3936     SAVE_LDFLAGS="${LDFLAGS}"
3937     LDFLAGS="-R /usr/lib"
3938     cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944
3945 int
3946 main ()
3947 {
3948
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960   (eval "$ac_link") 2>conftest.er1
3961   ac_status=$?
3962   grep -v '^ *+' conftest.er1 >conftest.err
3963   rm -f conftest.er1
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"
3972 else
3973   echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3975
3976
3977         LDFLAGS="-Wl,-rpath,/usr/lib"
3978     cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h.  */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h.  */
3984
3985 int
3986 main ()
3987 {
3988
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.$ac_objext conftest$ac_exeext
3994 if { (ac_try="$ac_link"
3995 case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000   (eval "$ac_link") 2>conftest.er1
4001   ac_status=$?
4002   grep -v '^ *+' conftest.er1 >conftest.err
4003   rm -f conftest.er1
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,"
4012 else
4013   echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016         andrew_runpath_switch="none"
4017 fi
4018
4019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4020       conftest$ac_exeext conftest.$ac_ext
4021
4022 fi
4023
4024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4025       conftest$ac_exeext conftest.$ac_ext
4026   LDFLAGS="${SAVE_LDFLAGS}"
4027
4028 fi
4029 { echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
4030 echo "${ECHO_T}$andrew_runpath_switch" >&6; }
4031
4032
4033         save_LIBS="$LIBS"
4034         LIB_SOCKET=""
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
4039 else
4040   cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h.  */
4042 _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
4049
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.  */
4054
4055 #ifdef __STDC__
4056 # include <limits.h>
4057 #else
4058 # include <assert.h>
4059 #endif
4060
4061 #undef connect
4062
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.  */
4066 #ifdef __cplusplus
4067 extern "C"
4068 #endif
4069 char connect ();
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
4074 choke me
4075 #endif
4076
4077 int
4078 main ()
4079 {
4080 return connect ();
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.$ac_objext conftest$ac_exeext
4086 if { (ac_try="$ac_link"
4087 case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092   (eval "$ac_link") 2>conftest.er1
4093   ac_status=$?
4094   grep -v '^ *+' conftest.er1 >conftest.err
4095   rm -f conftest.er1
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
4104 else
4105   echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108         ac_cv_func_connect=no
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4112       conftest$ac_exeext conftest.$ac_ext
4113 fi
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
4117   :
4118 else
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
4123 else
4124   ac_check_lib_save_LIBS=$LIBS
4125 LIBS="-lnsl  $LIBS"
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132
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.  */
4136 #ifdef __cplusplus
4137 extern "C"
4138 #endif
4139 char gethostbyname ();
4140 int
4141 main ()
4142 {
4143 return gethostbyname ();
4144   ;
4145   return 0;
4146 }
4147 _ACEOF
4148 rm -f conftest.$ac_objext conftest$ac_exeext
4149 if { (ac_try="$ac_link"
4150 case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_link") 2>conftest.er1
4156   ac_status=$?
4157   grep -v '^ *+' conftest.er1 >conftest.err
4158   rm -f conftest.er1
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
4167 else
4168   echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171         ac_cv_lib_nsl_gethostbyname=no
4172 fi
4173
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
4177 fi
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"
4182 fi
4183
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
4188 else
4189   ac_check_lib_save_LIBS=$LIBS
4190 LIBS="-lsocket  $LIBS"
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197
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.  */
4201 #ifdef __cplusplus
4202 extern "C"
4203 #endif
4204 char connect ();
4205 int
4206 main ()
4207 {
4208 return connect ();
4209   ;
4210   return 0;
4211 }
4212 _ACEOF
4213 rm -f conftest.$ac_objext conftest$ac_exeext
4214 if { (ac_try="$ac_link"
4215 case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220   (eval "$ac_link") 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
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
4232 else
4233   echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236         ac_cv_lib_socket_connect=no
4237 fi
4238
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
4242 fi
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"
4247 fi
4248
4249
4250 fi
4251
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
4257 else
4258   cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _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
4267
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.  */
4272
4273 #ifdef __STDC__
4274 # include <limits.h>
4275 #else
4276 # include <assert.h>
4277 #endif
4278
4279 #undef res_search
4280
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.  */
4284 #ifdef __cplusplus
4285 extern "C"
4286 #endif
4287 char res_search ();
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
4292 choke me
4293 #endif
4294
4295 int
4296 main ()
4297 {
4298 return res_search ();
4299   ;
4300   return 0;
4301 }
4302 _ACEOF
4303 rm -f conftest.$ac_objext conftest$ac_exeext
4304 if { (ac_try="$ac_link"
4305 case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_link") 2>conftest.er1
4311   ac_status=$?
4312   grep -v '^ *+' conftest.er1 >conftest.err
4313   rm -f conftest.er1
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
4322 else
4323   echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4325
4326         ac_cv_func_res_search=no
4327 fi
4328
4329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4330       conftest$ac_exeext conftest.$ac_ext
4331 fi
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
4335   :
4336 else
4337   LIBS="-lresolv $LIB_SOCKET $save_LIBS"
4338                 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344
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>
4350 #endif
4351 #include <resolv.h>
4352 int
4353 main ()
4354 {
4355
4356 const char host[12]="openafs.org";
4357 u_char ans[1024];
4358 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
4359 return 0;
4360
4361   ;
4362   return 0;
4363 }
4364 _ACEOF
4365 rm -f conftest.$ac_objext conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4367 case "(($ac_try" in
4368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369   *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372   (eval "$ac_link") 2>conftest.er1
4373   ac_status=$?
4374   grep -v '^ *+' conftest.er1 >conftest.err
4375   rm -f conftest.er1
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"
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388
4389 fi
4390
4391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4392       conftest$ac_exeext conftest.$ac_ext
4393
4394 fi
4395
4396         LIBS="$LIB_SOCKET $save_LIBS"
4397
4398
4399 for ac_func in dn_expand dns_lookup
4400 do
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
4406 else
4407   cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h.  */
4409 _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
4416
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.  */
4421
4422 #ifdef __STDC__
4423 # include <limits.h>
4424 #else
4425 # include <assert.h>
4426 #endif
4427
4428 #undef $ac_func
4429
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.  */
4433 #ifdef __cplusplus
4434 extern "C"
4435 #endif
4436 char $ac_func ();
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
4441 choke me
4442 #endif
4443
4444 int
4445 main ()
4446 {
4447 return $ac_func ();
4448   ;
4449   return 0;
4450 }
4451 _ACEOF
4452 rm -f conftest.$ac_objext conftest$ac_exeext
4453 if { (ac_try="$ac_link"
4454 case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459   (eval "$ac_link") 2>conftest.er1
4460   ac_status=$?
4461   grep -v '^ *+' conftest.er1 >conftest.err
4462   rm -f conftest.er1
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"
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475         eval "$as_ac_var=no"
4476 fi
4477
4478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4479       conftest$ac_exeext conftest.$ac_ext
4480 fi
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
4487 _ACEOF
4488
4489 fi
4490 done
4491
4492         LIBS="$save_LIBS"
4493
4494
4495
4496
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
4501 else
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
4507 else
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
4512 do
4513   IFS=$as_save_IFS
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
4522 *GNU*)
4523   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4524 *)
4525   ac_count=0
4526   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4527   while :
4528   do
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
4540     fi
4541     # 10*(2^10) chars as input seems more than enough
4542     test $ac_count -gt 10 && break
4543   done
4544   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545 esac
4546
4547
4548     $ac_path_GREP_found && break 3
4549   done
4550 done
4551
4552 done
4553 IFS=$as_save_IFS
4554
4555
4556 fi
4557
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; }; }
4563 fi
4564
4565 else
4566   ac_cv_path_GREP=$GREP
4567 fi
4568
4569
4570 fi
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"
4574
4575
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
4580 else
4581   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4582    then ac_cv_path_EGREP="$GREP -E"
4583    else
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
4589 else
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
4594 do
4595   IFS=$as_save_IFS
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
4604 *GNU*)
4605   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4606 *)
4607   ac_count=0
4608   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4609   while :
4610   do
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
4622     fi
4623     # 10*(2^10) chars as input seems more than enough
4624     test $ac_count -gt 10 && break
4625   done
4626   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627 esac
4628
4629
4630     $ac_path_EGREP_found && break 3
4631   done
4632 done
4633
4634 done
4635 IFS=$as_save_IFS
4636
4637
4638 fi
4639
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; }; }
4645 fi
4646
4647 else
4648   ac_cv_path_EGREP=$EGREP
4649 fi
4650
4651
4652    fi
4653 fi
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"
4657
4658
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
4663 else
4664   cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h.  */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h.  */
4670 #include <stdlib.h>
4671 #include <stdarg.h>
4672 #include <string.h>
4673 #include <float.h>
4674
4675 int
4676 main ()
4677 {
4678
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683 rm -f conftest.$ac_objext
4684 if { (ac_try="$ac_compile"
4685 case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690   (eval "$ac_compile") 2>conftest.er1
4691   ac_status=$?
4692   grep -v '^ *+' conftest.er1 >conftest.err
4693   rm -f conftest.er1
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
4701 else
4702   echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705         ac_cv_header_stdc=no
4706 fi
4707
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709
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
4713 /* confdefs.h.  */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h.  */
4718 #include <string.h>
4719
4720 _ACEOF
4721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4722   $EGREP "memchr" >/dev/null 2>&1; then
4723   :
4724 else
4725   ac_cv_header_stdc=no
4726 fi
4727 rm -f -r conftest*
4728
4729 fi
4730
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
4734 /* confdefs.h.  */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h.  */
4739 #include <stdlib.h>
4740
4741 _ACEOF
4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743   $EGREP "free" >/dev/null 2>&1; then
4744   :
4745 else
4746   ac_cv_header_stdc=no
4747 fi
4748 rm -f -r conftest*
4749
4750 fi
4751
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
4755   :
4756 else
4757   cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h.  */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h.  */
4763 #include <ctype.h>
4764 #include <stdlib.h>
4765 #if ((' ' & 0x0FF) == 0x020)
4766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4768 #else
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))
4774 #endif
4775
4776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4777 int
4778 main ()
4779 {
4780   int i;
4781   for (i = 0; i < 256; i++)
4782     if (XOR (islower (i), ISLOWER (i))
4783         || toupper (i) != TOUPPER (i))
4784       return 2;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest$ac_exeext
4789 if { (ac_try="$ac_link"
4790 case "(($ac_try" in
4791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792   *) ac_try_echo=$ac_try;;
4793 esac
4794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795   (eval "$ac_link") 2>&5
4796   ac_status=$?
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;;
4802 esac
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804   (eval "$ac_try") 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; }; then
4808   :
4809 else
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
4813
4814 ( exit $ac_status )
4815 ac_cv_header_stdc=no
4816 fi
4817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4818 fi
4819
4820
4821 fi
4822 fi
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
4826
4827 cat >>confdefs.h <<\_ACEOF
4828 #define STDC_HEADERS 1
4829 _ACEOF
4830
4831 fi
4832
4833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4834
4835
4836
4837
4838
4839
4840
4841
4842
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
4845 do
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
4851 else
4852   cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 $ac_includes_default
4859
4860 #include <$ac_header>
4861 _ACEOF
4862 rm -f conftest.$ac_objext
4863 if { (ac_try="$ac_compile"
4864 case "(($ac_try" in
4865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866   *) ac_try_echo=$ac_try;;
4867 esac
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869   (eval "$ac_compile") 2>conftest.er1
4870   ac_status=$?
4871   grep -v '^ *+' conftest.er1 >conftest.err
4872   rm -f conftest.er1
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"
4880 else
4881   echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884         eval "$as_ac_Header=no"
4885 fi
4886
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 fi
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
4895 _ACEOF
4896
4897 fi
4898
4899 done
4900
4901
4902
4903 # Check whether --with-lib-subdir was given.
4904 if test "${with_lib_subdir+set}" = set; then
4905   withval=$with_lib_subdir;
4906 fi
4907
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
4912 else
4913   cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h.  */
4915 _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_;
4921 int
4922 main ()
4923 {
4924 if ((ac__type_new_ *) 0)
4925   return 0;
4926 if (sizeof (ac__type_new_))
4927   return 0;
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (ac_try="$ac_compile"
4934 case "(($ac_try" in
4935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936   *) ac_try_echo=$ac_try;;
4937 esac
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939   (eval "$ac_compile") 2>conftest.er1
4940   ac_status=$?
4941   grep -v '^ *+' conftest.er1 >conftest.err
4942   rm -f conftest.er1
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
4949   ac_cv_type_long=yes
4950 else
4951   echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954         ac_cv_type_long=no
4955 fi
4956
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4960 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4961
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
4970 else
4971   if test "$cross_compiling" = yes; then
4972   # Depending upon the size, compute the lo and hi bounds.
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _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_;
4981 int
4982 main ()
4983 {
4984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4985 test_array [0] = 0
4986
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4993 case "(($ac_try" in
4994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995   *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998   (eval "$ac_compile") 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
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
5008   ac_lo=0 ac_mid=0
5009   while :; do
5010     cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h.  */
5012 _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_;
5018 int
5019 main ()
5020 {
5021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5022 test_array [0] = 0
5023
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5030 case "(($ac_try" in
5031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032   *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035   (eval "$ac_compile") 2>conftest.er1
5036   ac_status=$?
5037   grep -v '^ *+' conftest.er1 >conftest.err
5038   rm -f conftest.er1
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
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050         ac_lo=`expr $ac_mid + 1`
5051                         if test $ac_lo -le $ac_mid; then
5052                           ac_lo= ac_hi=
5053                           break
5054                         fi
5055                         ac_mid=`expr 2 '*' $ac_mid + 1`
5056 fi
5057
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059   done
5060 else
5061   echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064         cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h.  */
5066 _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_;
5072 int
5073 main ()
5074 {
5075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5076 test_array [0] = 0
5077
5078   ;
5079   return 0;
5080 }
5081 _ACEOF
5082 rm -f conftest.$ac_objext
5083 if { (ac_try="$ac_compile"
5084 case "(($ac_try" in
5085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086   *) ac_try_echo=$ac_try;;
5087 esac
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089   (eval "$ac_compile") 2>conftest.er1
5090   ac_status=$?
5091   grep -v '^ *+' conftest.er1 >conftest.err
5092   rm -f conftest.er1
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
5099   ac_hi=-1 ac_mid=-1
5100   while :; do
5101     cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _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_;
5109 int
5110 main ()
5111 {
5112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5113 test_array [0] = 0
5114
5115   ;
5116   return 0;
5117 }
5118 _ACEOF
5119 rm -f conftest.$ac_objext
5120 if { (ac_try="$ac_compile"
5121 case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126   (eval "$ac_compile") 2>conftest.er1
5127   ac_status=$?
5128   grep -v '^ *+' conftest.er1 >conftest.err
5129   rm -f conftest.er1
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
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141         ac_hi=`expr '(' $ac_mid ')' - 1`
5142                         if test $ac_mid -le $ac_hi; then
5143                           ac_lo= ac_hi=
5144                           break
5145                         fi
5146                         ac_mid=`expr 2 '*' $ac_mid`
5147 fi
5148
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150   done
5151 else
5152   echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155         ac_lo= ac_hi=
5156 fi
5157
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 fi
5160
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
5166 /* confdefs.h.  */
5167 _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_;
5173 int
5174 main ()
5175 {
5176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5177 test_array [0] = 0
5178
5179   ;
5180   return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5185 case "(($ac_try" in
5186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187   *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190   (eval "$ac_compile") 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
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
5200   ac_hi=$ac_mid
5201 else
5202   echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205         ac_lo=`expr '(' $ac_mid ')' + 1`
5206 fi
5207
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 done
5210 case $ac_lo in
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; }; }
5218    else
5219      ac_cv_sizeof_long=0
5220    fi ;;
5221 esac
5222 else
5223   cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h.  */
5225 _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_)); }
5233 #include <stdio.h>
5234 #include <stdlib.h>
5235 int
5236 main ()
5237 {
5238
5239   FILE *f = fopen ("conftest.val", "w");
5240   if (! f)
5241     return 1;
5242   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5243     {
5244       long int i = longval ();
5245       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5246         return 1;
5247       fprintf (f, "%ld\n", i);
5248     }
5249   else
5250     {
5251       unsigned long int i = ulongval ();
5252       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5253         return 1;
5254       fprintf (f, "%lu\n", i);
5255     }
5256   return ferror (f) || fclose (f) != 0;
5257
5258   ;
5259   return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest$ac_exeext
5263 if { (ac_try="$ac_link"
5264 case "(($ac_try" in
5265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266   *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269   (eval "$ac_link") 2>&5
5270   ac_status=$?
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;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278   (eval "$ac_try") 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   ac_cv_sizeof_long=`cat conftest.val`
5283 else
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
5287
5288 ( exit $ac_status )
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; }; }
5295    else
5296      ac_cv_sizeof_long=0
5297    fi
5298 fi
5299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5300 fi
5301 rm -f conftest.val
5302 fi
5303 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5304 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5305
5306
5307
5308 cat >>confdefs.h <<_ACEOF
5309 #define SIZEOF_LONG $ac_cv_sizeof_long
5310 _ACEOF
5311
5312
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
5317 else
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
5324   fi
5325   if test $ac_cv_sizeof_long -eq 8 ; then
5326     test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
5327   fi
5328 else
5329   ac_cv_cmu_lib_subdir=$with_lib_subdir
5330 fi
5331 fi
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
5335
5336
5337
5338
5339
5340 # Check whether --with-openssl was given.
5341 if test "${with_openssl+set}" = set; then
5342   withval=$with_openssl; with_openssl=$withval
5343 else
5344   with_openssl="yes"
5345 fi
5346
5347
5348         save_CPPFLAGS=$CPPFLAGS
5349         save_LDFLAGS=$LDFLAGS
5350
5351         if test -d $with_openssl; then
5352           CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
5353
5354   # this is CMU ADD LIBPATH
5355   if test "$andrew_runpath_switch" = "none" ; then
5356         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
5357   else
5358         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
5359   fi
5360
5361         fi
5362
5363 case "$with_openssl" in
5364         no)
5365           with_openssl="no";;
5366         *)
5367                                   LIB_RSAREF=""
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
5372 else
5373   ac_check_lib_save_LIBS=$LIBS
5374 LIBS="-lrsaref  $LIBS"
5375 cat >conftest.$ac_ext <<_ACEOF
5376 /* confdefs.h.  */
5377 _ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h.  */
5381
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.  */
5385 #ifdef __cplusplus
5386 extern "C"
5387 #endif
5388 char RSAPublicEncrypt ();
5389 int
5390 main ()
5391 {
5392 return RSAPublicEncrypt ();
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (ac_try="$ac_link"
5399 case "(($ac_try" in
5400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401   *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404   (eval "$ac_link") 2>conftest.er1
5405   ac_status=$?
5406   grep -v '^ *+' conftest.er1 >conftest.err
5407   rm -f conftest.er1
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
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420         ac_cv_lib_rsaref_RSAPublicEncrypt=no
5421 fi
5422
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
5426 fi
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
5435 else
5436   ac_check_lib_save_LIBS=$LIBS
5437 LIBS="-lRSAglue  $LIBS"
5438 cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444
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.  */
5448 #ifdef __cplusplus
5449 extern "C"
5450 #endif
5451 char RSAPublicEncrypt ();
5452 int
5453 main ()
5454 {
5455 return RSAPublicEncrypt ();
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (ac_try="$ac_link"
5462 case "(($ac_try" in
5463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464   *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467   (eval "$ac_link") 2>conftest.er1
5468   ac_status=$?
5469   grep -v '^ *+' conftest.er1 >conftest.err
5470   rm -f conftest.er1
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
5479 else
5480   echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483         ac_cv_lib_RSAglue_RSAPublicEncrypt=no
5484 fi
5485
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
5489 fi
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"
5494 else
5495   LIB_RSAREF="-lrsaref"
5496 fi
5497
5498 else
5499   cmu_have_rsaref=no
5500 fi
5501
5502
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
5508 fi
5509 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
5510 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
5511 else
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
5516 /* confdefs.h.  */
5517 _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>
5523 _ACEOF
5524 rm -f conftest.$ac_objext
5525 if { (ac_try="$ac_compile"
5526 case "(($ac_try" in
5527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528   *) ac_try_echo=$ac_try;;
5529 esac
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531   (eval "$ac_compile") 2>conftest.er1
5532   ac_status=$?
5533   grep -v '^ *+' conftest.er1 >conftest.err
5534   rm -f conftest.er1
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
5542 else
5543   echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5545
5546         ac_header_compiler=no
5547 fi
5548
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; }
5552
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
5557 /* confdefs.h.  */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h.  */
5562 #include <openssl/evp.h>
5563 _ACEOF
5564 if { (ac_try="$ac_cpp conftest.$ac_ext"
5565 case "(($ac_try" in
5566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567   *) ac_try_echo=$ac_try;;
5568 esac
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5571   ac_status=$?
5572   grep -v '^ *+' conftest.er1 >conftest.err
5573   rm -f conftest.er1
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
5579        }; then
5580   ac_header_preproc=yes
5581 else
5582   echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585   ac_header_preproc=no
5586 fi
5587
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; }
5591
5592 # So?  What about this header?
5593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5594   yes:no: )
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
5600     ;;
5601   no: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;}
5614
5615     ;;
5616 esac
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
5621 else
5622   ac_cv_header_openssl_evp_h=$ac_header_preproc
5623 fi
5624 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
5625 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
5626
5627 fi
5628 if test $ac_cv_header_openssl_evp_h = yes; then
5629
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
5634 else
5635   ac_check_lib_save_LIBS=$LIBS
5636 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643
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.  */
5647 #ifdef __cplusplus
5648 extern "C"
5649 #endif
5650 char EVP_DigestInit ();
5651 int
5652 main ()
5653 {
5654 return EVP_DigestInit ();
5655   ;
5656   return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (ac_try="$ac_link"
5661 case "(($ac_try" in
5662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663   *) ac_try_echo=$ac_try;;
5664 esac
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666   (eval "$ac_link") 2>conftest.er1
5667   ac_status=$?
5668   grep -v '^ *+' conftest.er1 >conftest.err
5669   rm -f conftest.er1
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
5678 else
5679   echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682         ac_cv_lib_crypto_EVP_DigestInit=no
5683 fi
5684
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
5688 fi
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
5692   with_openssl="yes"
5693 else
5694   with_openssl="no"
5695 fi
5696
5697 else
5698   with_openssl=no
5699 fi
5700
5701
5702                 ;;
5703 esac
5704
5705         if test "$with_openssl" != "no"; then
5706
5707 cat >>confdefs.h <<\_ACEOF
5708 #define HAVE_OPENSSL
5709 _ACEOF
5710
5711         else
5712                 CPPFLAGS=$save_CPPFLAGS
5713                 LDFLAGS=$save_LDFLAGS
5714         fi
5715
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; }
5720
5721
5722
5723 # Check whether --with-des was given.
5724 if test "${with_des+set}" = set; then
5725   withval=$with_des; with_des=$withval
5726 else
5727   with_des=yes
5728 fi
5729
5730
5731 LIB_DES=""
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"
5736   fi
5737
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
5743 else
5744   ac_check_lib_save_LIBS=$LIBS
5745 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752
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.  */
5756 #ifdef __cplusplus
5757 extern "C"
5758 #endif
5759 char des_cbc_encrypt ();
5760 int
5761 main ()
5762 {
5763 return des_cbc_encrypt ();
5764   ;
5765   return 0;
5766 }
5767 _ACEOF
5768 rm -f conftest.$ac_objext conftest$ac_exeext
5769 if { (ac_try="$ac_link"
5770 case "(($ac_try" in
5771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772   *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775   (eval "$ac_link") 2>conftest.er1
5776   ac_status=$?
5777   grep -v '^ *+' conftest.er1 >conftest.err
5778   rm -f conftest.er1
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
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791         ac_cv_lib_crypto_des_cbc_encrypt=no
5792 fi
5793
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
5797 fi
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
5801
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
5807 fi
5808 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5809 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
5810 else
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
5815 /* confdefs.h.  */
5816 _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>
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5825 case "(($ac_try" in
5826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827   *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830   (eval "$ac_compile") 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
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
5841 else
5842   echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845         ac_header_compiler=no
5846 fi
5847
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; }
5851
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
5856 /* confdefs.h.  */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h.  */
5861 #include <openssl/des.h>
5862 _ACEOF
5863 if { (ac_try="$ac_cpp conftest.$ac_ext"
5864 case "(($ac_try" in
5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866   *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5870   ac_status=$?
5871   grep -v '^ *+' conftest.er1 >conftest.err
5872   rm -f conftest.er1
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
5878        }; then
5879   ac_header_preproc=yes
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884   ac_header_preproc=no
5885 fi
5886
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; }
5890
5891 # So?  What about this header?
5892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5893   yes:no: )
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
5899     ;;
5900   no: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;}
5913
5914     ;;
5915 esac
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
5920 else
5921   ac_cv_header_openssl_des_h=$ac_header_preproc
5922 fi
5923 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5924 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
5925
5926 fi
5927 if test $ac_cv_header_openssl_des_h = yes; then
5928
5929 cat >>confdefs.h <<\_ACEOF
5930 #define WITH_SSL_DES
5931 _ACEOF
5932
5933                                        LIB_DES="-lcrypto";
5934                                        with_des=yes
5935 else
5936   with_des=no
5937 fi
5938
5939
5940 else
5941   with_des=no
5942 fi
5943
5944
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
5950 else
5951   ac_check_lib_save_LIBS=$LIBS
5952 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959
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.  */
5963 #ifdef __cplusplus
5964 extern "C"
5965 #endif
5966 char DES_cbc_encrypt ();
5967 int
5968 main ()
5969 {
5970 return DES_cbc_encrypt ();
5971   ;
5972   return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (ac_try="$ac_link"
5977 case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_link") 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
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
5994 else
5995   echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998         ac_cv_lib_crypto_DES_cbc_encrypt=no
5999 fi
6000
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
6004 fi
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
6008
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
6014 fi
6015 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
6016 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
6017 else
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
6022 /* confdefs.h.  */
6023 _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>
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6032 case "(($ac_try" in
6033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034   *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037   (eval "$ac_compile") 2>conftest.er1
6038   ac_status=$?
6039   grep -v '^ *+' conftest.er1 >conftest.err
6040   rm -f conftest.er1
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
6048 else
6049   echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6051
6052         ac_header_compiler=no
6053 fi
6054
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; }
6058
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
6063 /* confdefs.h.  */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h.  */
6068 #include <openssl/des.h>
6069 _ACEOF
6070 if { (ac_try="$ac_cpp conftest.$ac_ext"
6071 case "(($ac_try" in
6072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073   *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077   ac_status=$?
6078   grep -v '^ *+' conftest.er1 >conftest.err
6079   rm -f conftest.er1
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
6085        }; then
6086   ac_header_preproc=yes
6087 else
6088   echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6090
6091   ac_header_preproc=no
6092 fi
6093
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; }
6097
6098 # So?  What about this header?
6099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6100   yes:no: )
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
6106     ;;
6107   no: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;}
6120
6121     ;;
6122 esac
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
6127 else
6128   ac_cv_header_openssl_des_h=$ac_header_preproc
6129 fi
6130 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
6131 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
6132
6133 fi
6134 if test $ac_cv_header_openssl_des_h = yes; then
6135
6136 cat >>confdefs.h <<\_ACEOF
6137 #define WITH_SSL_DES
6138 _ACEOF
6139
6140                                        LIB_DES="-lcrypto";
6141                                        with_des=yes
6142 else
6143   with_des=no
6144 fi
6145
6146
6147 else
6148   with_des=no
6149 fi
6150
6151     fi
6152   fi
6153
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
6159 else
6160   ac_check_lib_save_LIBS=$LIBS
6161 LIBS="-ldes  $LIBS"
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168
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.  */
6172 #ifdef __cplusplus
6173 extern "C"
6174 #endif
6175 char des_cbc_encrypt ();
6176 int
6177 main ()
6178 {
6179 return des_cbc_encrypt ();
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (ac_try="$ac_link"
6186 case "(($ac_try" in
6187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188   *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191   (eval "$ac_link") 2>conftest.er1
6192   ac_status=$?
6193   grep -v '^ *+' conftest.er1 >conftest.err
6194   rm -f conftest.er1
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
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207         ac_cv_lib_des_des_cbc_encrypt=no
6208 fi
6209
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
6213 fi
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
6217   LIB_DES="-ldes";
6218                                         with_des=yes
6219 else
6220   with_des=no
6221 fi
6222
6223   fi
6224
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
6230 else
6231   ac_check_lib_save_LIBS=$LIBS
6232 LIBS="-ldes425  $LIBS"
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h.  */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h.  */
6239
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.  */
6243 #ifdef __cplusplus
6244 extern "C"
6245 #endif
6246 char des_cbc_encrypt ();
6247 int
6248 main ()
6249 {
6250 return des_cbc_encrypt ();
6251   ;
6252   return 0;
6253 }
6254 _ACEOF
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (ac_try="$ac_link"
6257 case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262   (eval "$ac_link") 2>conftest.er1
6263   ac_status=$?
6264   grep -v '^ *+' conftest.er1 >conftest.err
6265   rm -f conftest.er1
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
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278         ac_cv_lib_des425_des_cbc_encrypt=no
6279 fi
6280
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
6284 fi
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
6288   LIB_DES="-ldes425";
6289                                        with_des=yes
6290 else
6291   with_des=no
6292 fi
6293
6294   fi
6295
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
6301 else
6302   ac_check_lib_save_LIBS=$LIBS
6303 LIBS="-ldes524  $LIBS"
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h.  */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h.  */
6310
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.  */
6314 #ifdef __cplusplus
6315 extern "C"
6316 #endif
6317 char des_cbc_encrypt ();
6318 int
6319 main ()
6320 {
6321 return des_cbc_encrypt ();
6322   ;
6323   return 0;
6324 }
6325 _ACEOF
6326 rm -f conftest.$ac_objext conftest$ac_exeext
6327 if { (ac_try="$ac_link"
6328 case "(($ac_try" in
6329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330   *) ac_try_echo=$ac_try;;
6331 esac
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333   (eval "$ac_link") 2>conftest.er1
6334   ac_status=$?
6335   grep -v '^ *+' conftest.er1 >conftest.err
6336   rm -f conftest.er1
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
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349         ac_cv_lib_des524_des_cbc_encrypt=no
6350 fi
6351
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
6355 fi
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
6359   LIB_DES="-ldes524";
6360                                        with_des=yes
6361 else
6362   with_des=no
6363 fi
6364
6365   fi
6366
6367   if test "$with_des" = no; then
6368
6369             LIB_RSAREF=""
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
6374 else
6375   ac_check_lib_save_LIBS=$LIBS
6376 LIBS="-lrsaref  $LIBS"
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h.  */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h.  */
6383
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.  */
6387 #ifdef __cplusplus
6388 extern "C"
6389 #endif
6390 char RSAPublicEncrypt ();
6391 int
6392 main ()
6393 {
6394 return RSAPublicEncrypt ();
6395   ;
6396   return 0;
6397 }
6398 _ACEOF
6399 rm -f conftest.$ac_objext conftest$ac_exeext
6400 if { (ac_try="$ac_link"
6401 case "(($ac_try" in
6402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403   *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406   (eval "$ac_link") 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
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
6418 else
6419   echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422         ac_cv_lib_rsaref_RSAPublicEncrypt=no
6423 fi
6424
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
6428 fi
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
6433 else
6434   cmu_have_rsaref=no
6435 fi
6436
6437
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
6442 else
6443   ac_check_lib_save_LIBS=$LIBS
6444 LIBS="-lcrypto $LIB_RSAREF $LIBS"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h.  */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h.  */
6451
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.  */
6455 #ifdef __cplusplus
6456 extern "C"
6457 #endif
6458 char des_cbc_encrypt ();
6459 int
6460 main ()
6461 {
6462 return des_cbc_encrypt ();
6463   ;
6464   return 0;
6465 }
6466 _ACEOF
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (ac_try="$ac_link"
6469 case "(($ac_try" in
6470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471   *) ac_try_echo=$ac_try;;
6472 esac
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474   (eval "$ac_link") 2>conftest.er1
6475   ac_status=$?
6476   grep -v '^ *+' conftest.er1 >conftest.err
6477   rm -f conftest.er1
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
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490         ac_cv_lib_crypto_des_cbc_encrypt=no
6491 fi
6492
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
6496 fi
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
6500
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
6506 fi
6507 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
6508 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
6509 else
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
6514 /* confdefs.h.  */
6515 _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>
6521 _ACEOF
6522 rm -f conftest.$ac_objext
6523 if { (ac_try="$ac_compile"
6524 case "(($ac_try" in
6525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526   *) ac_try_echo=$ac_try;;
6527 esac
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529   (eval "$ac_compile") 2>conftest.er1
6530   ac_status=$?
6531   grep -v '^ *+' conftest.er1 >conftest.err
6532   rm -f conftest.er1
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
6540 else
6541   echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544         ac_header_compiler=no
6545 fi
6546
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; }
6550
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
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560 #include <openssl/des.h>
6561 _ACEOF
6562 if { (ac_try="$ac_cpp conftest.$ac_ext"
6563 case "(($ac_try" in
6564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565   *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
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
6577        }; then
6578   ac_header_preproc=yes
6579 else
6580   echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583   ac_header_preproc=no
6584 fi
6585
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; }
6589
6590 # So?  What about this header?
6591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6592   yes:no: )
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
6598     ;;
6599   no: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;}
6612
6613     ;;
6614 esac
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
6619 else
6620   ac_cv_header_openssl_des_h=$ac_header_preproc
6621 fi
6622 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
6623 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
6624
6625 fi
6626 if test $ac_cv_header_openssl_des_h = yes; then
6627
6628 cat >>confdefs.h <<\_ACEOF
6629 #define WITH_SSL_DES
6630 _ACEOF
6631
6632                                         LIB_DES="-lcrypto";
6633                                         with_des=yes
6634 else
6635   with_des=no
6636 fi
6637
6638
6639 else
6640   with_des=no
6641 fi
6642
6643   fi
6644 fi
6645
6646 if test "$with_des" != no; then
6647
6648 cat >>confdefs.h <<\_ACEOF
6649 #define WITH_DES
6650 _ACEOF
6651
6652 fi
6653
6654
6655
6656
6657
6658
6659
6660   # Check whether --enable-krb4 was given.
6661 if test "${enable_krb4+set}" = set; then
6662   enableval=$enable_krb4; krb4=$enableval
6663 else
6664   krb4=no
6665 fi
6666
6667
6668   if test "$krb4" != no; then
6669
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
6674 else
6675   ac_check_lib_save_LIBS=$LIBS
6676 LIBS="-lresolv  $LIBS"
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h.  */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h.  */
6683
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.  */
6687 #ifdef __cplusplus
6688 extern "C"
6689 #endif
6690 char res_search ();
6691 int
6692 main ()
6693 {
6694 return res_search ();
6695   ;
6696   return 0;
6697 }
6698 _ACEOF
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (ac_try="$ac_link"
6701 case "(($ac_try" in
6702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703   *) ac_try_echo=$ac_try;;
6704 esac
6705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706   (eval "$ac_link") 2>conftest.er1
6707   ac_status=$?
6708   grep -v '^ *+' conftest.er1 >conftest.err
6709   rm -f conftest.er1
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
6718 else
6719   echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722         ac_cv_lib_resolv_res_search=no
6723 fi
6724
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
6728 fi
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
6734 _ACEOF
6735
6736   LIBS="-lresolv $LIBS"
6737
6738 fi
6739
6740
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
6746 else
6747
6748          for krbhloc in include/kerberosIV include/kerberos include
6749          do
6750            if test -f ${krb4}/${krbhloc}/krb.h ; then
6751              cyrus_krbinclude=${krb4}/${krbhloc}
6752              break
6753            fi
6754          done
6755
6756 fi
6757 { echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
6758 echo "${ECHO_T}$cyrus_krbinclude" >&6; }
6759
6760        if test -n "${cyrus_krbinclude}"; then
6761          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
6762        fi
6763        LDFLAGS="$LDFLAGS -L$krb4/lib"
6764     fi
6765
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
6772 fi
6773 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
6774 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
6775 else
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
6780 /* confdefs.h.  */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h.  */
6785 $ac_includes_default
6786 #include <krb.h>
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (ac_try="$ac_compile"
6790 case "(($ac_try" in
6791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792   *) ac_try_echo=$ac_try;;
6793 esac
6794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6795   (eval "$ac_compile") 2>conftest.er1
6796   ac_status=$?
6797   grep -v '^ *+' conftest.er1 >conftest.err
6798   rm -f conftest.er1
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
6806 else
6807   echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6809
6810         ac_header_compiler=no
6811 fi
6812
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; }
6816
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
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826 #include <krb.h>
6827 _ACEOF
6828 if { (ac_try="$ac_cpp conftest.$ac_ext"
6829 case "(($ac_try" in
6830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831   *) ac_try_echo=$ac_try;;
6832 esac
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6835   ac_status=$?
6836   grep -v '^ *+' conftest.er1 >conftest.err
6837   rm -f conftest.er1
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
6843        }; then
6844   ac_header_preproc=yes
6845 else
6846   echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6848
6849   ac_header_preproc=no
6850 fi
6851
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; }
6855
6856 # So?  What about this header?
6857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6858   yes:no: )
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
6864     ;;
6865   no: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;}
6878
6879     ;;
6880 esac
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
6885 else
6886   ac_cv_header_krb_h=$ac_header_preproc
6887 fi
6888 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
6889 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
6890
6891 fi
6892 if test $ac_cv_header_krb_h = yes; then
6893
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
6898 else
6899   ac_check_lib_save_LIBS=$LIBS
6900 LIBS="-lcom_err  $LIBS"
6901 cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907
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.  */
6911 #ifdef __cplusplus
6912 extern "C"
6913 #endif
6914 char com_err ();
6915 int
6916 main ()
6917 {
6918 return com_err ();
6919   ;
6920   return 0;
6921 }
6922 _ACEOF
6923 rm -f conftest.$ac_objext conftest$ac_exeext
6924 if { (ac_try="$ac_link"
6925 case "(($ac_try" in
6926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927   *) ac_try_echo=$ac_try;;
6928 esac
6929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930   (eval "$ac_link") 2>conftest.er1
6931   ac_status=$?
6932   grep -v '^ *+' conftest.er1 >conftest.err
6933   rm -f conftest.er1
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
6942 else
6943   echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946         ac_cv_lib_com_err_com_err=no
6947 fi
6948
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
6952 fi
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
6956
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
6961 else
6962   ac_check_lib_save_LIBS=$LIBS
6963 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
6964 cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h.  */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h.  */
6970
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.  */
6974 #ifdef __cplusplus
6975 extern "C"
6976 #endif
6977 char krb_mk_priv ();
6978 int
6979 main ()
6980 {
6981 return krb_mk_priv ();
6982   ;
6983   return 0;
6984 }
6985 _ACEOF
6986 rm -f conftest.$ac_objext conftest$ac_exeext
6987 if { (ac_try="$ac_link"
6988 case "(($ac_try" in
6989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990   *) ac_try_echo=$ac_try;;
6991 esac
6992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6993   (eval "$ac_link") 2>conftest.er1
6994   ac_status=$?
6995   grep -v '^ *+' conftest.er1 >conftest.err
6996   rm -f conftest.er1
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
7005 else
7006   echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009         ac_cv_lib_krb_krb_mk_priv=no
7010 fi
7011
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
7015 fi
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"
7020 else
7021   krb4lib=no
7022 fi
7023
7024 else
7025
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
7030 else
7031   ac_check_lib_save_LIBS=$LIBS
7032 LIBS="-lkrb $LIB_DES $LIBS"
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h.  */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h.  */
7039
7040 /* Override any GCC internal prototype to avoid an error.
7041    Use char because int might match the return type of a GCC
7042    builtin and then its argument prototype would still apply.  */
7043 #ifdef __cplusplus
7044 extern "C"
7045 #endif
7046 char krb_mk_priv ();
7047 int
7048 main ()
7049 {
7050 return krb_mk_priv ();
7051   ;
7052   return 0;
7053 }
7054 _ACEOF
7055 rm -f conftest.$ac_objext conftest$ac_exeext
7056 if { (ac_try="$ac_link"
7057 case "(($ac_try" in
7058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059   *) ac_try_echo=$ac_try;;
7060 esac
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062   (eval "$ac_link") 2>conftest.er1
7063   ac_status=$?
7064   grep -v '^ *+' conftest.er1 >conftest.err
7065   rm -f conftest.er1
7066   cat conftest.err >&5
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } && {
7069          test -z "$ac_c_werror_flag" ||
7070          test ! -s conftest.err
7071        } && test -s conftest$ac_exeext &&
7072        $as_test_x conftest$ac_exeext; then
7073   ac_cv_lib_krb_krb_mk_priv=yes
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078         ac_cv_lib_krb_krb_mk_priv=no
7079 fi
7080
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
7084 fi
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"
7089 else
7090   krb4lib=no
7091 fi
7092
7093 fi
7094
7095 else
7096   krb4="no"
7097 fi
7098
7099
7100
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
7106 else
7107   ac_check_lib_save_LIBS=$LIBS
7108 LIBS="-lkrb4 $LIB_DES $LIBS"
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115
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.  */
7119 #ifdef __cplusplus
7120 extern "C"
7121 #endif
7122 char krb_mk_priv ();
7123 int
7124 main ()
7125 {
7126 return krb_mk_priv ();
7127   ;
7128   return 0;
7129 }
7130 _ACEOF
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (ac_try="$ac_link"
7133 case "(($ac_try" in
7134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135   *) ac_try_echo=$ac_try;;
7136 esac
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138   (eval "$ac_link") 2>conftest.er1
7139   ac_status=$?
7140   grep -v '^ *+' conftest.er1 >conftest.err
7141   rm -f conftest.er1
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
7150 else
7151   echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7153
7154         ac_cv_lib_krb4_krb_mk_priv=no
7155 fi
7156
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
7160 fi
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
7165 else
7166   krb4=no
7167 fi
7168
7169       fi
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;}
7173       fi
7174     else
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;}
7177       krb4=no
7178     fi
7179   fi
7180
7181   if test "$krb4" != no; then
7182     cmu_save_LIBS="$LIBS"
7183     LIBS="$LIBS $SASL_KRB_LIB"
7184
7185 for ac_func in krb_get_err_text
7186 do
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
7192 else
7193   cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _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
7202
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.  */
7207
7208 #ifdef __STDC__
7209 # include <limits.h>
7210 #else
7211 # include <assert.h>
7212 #endif
7213
7214 #undef $ac_func
7215
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.  */
7219 #ifdef __cplusplus
7220 extern "C"
7221 #endif
7222 char $ac_func ();
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
7227 choke me
7228 #endif
7229
7230 int
7231 main ()
7232 {
7233 return $ac_func ();
7234   ;
7235   return 0;
7236 }
7237 _ACEOF
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (ac_try="$ac_link"
7240 case "(($ac_try" in
7241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242   *) ac_try_echo=$ac_try;;
7243 esac
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245   (eval "$ac_link") 2>conftest.er1
7246   ac_status=$?
7247   grep -v '^ *+' conftest.er1 >conftest.err
7248   rm -f conftest.er1
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"
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261         eval "$as_ac_var=no"
7262 fi
7263
7264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7265       conftest$ac_exeext conftest.$ac_ext
7266 fi
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
7273 _ACEOF
7274
7275 fi
7276 done
7277
7278     LIBS="$cmu_save_LIBS"
7279   fi
7280
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"
7289
7290 cat >>confdefs.h <<\_ACEOF
7291 #define STATIC_KERBEROS4
7292 _ACEOF
7293
7294
7295 cat >>confdefs.h <<\_ACEOF
7296 #define HAVE_KRB
7297 _ACEOF
7298
7299     SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
7300   else
7301     { echo "$as_me:$LINENO: result: disabled" >&5
7302 echo "${ECHO_T}disabled" >&6; }
7303   fi
7304
7305
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
7310 else
7311   cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h.  */
7313 _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
7320
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.  */
7325
7326 #ifdef __STDC__
7327 # include <limits.h>
7328 #else
7329 # include <assert.h>
7330 #endif
7331
7332 #undef crypt
7333
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.  */
7337 #ifdef __cplusplus
7338 extern "C"
7339 #endif
7340 char crypt ();
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
7345 choke me
7346 #endif
7347
7348 int
7349 main ()
7350 {
7351 return crypt ();
7352   ;
7353   return 0;
7354 }
7355 _ACEOF
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (ac_try="$ac_link"
7358 case "(($ac_try" in
7359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360   *) ac_try_echo=$ac_try;;
7361 esac
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363   (eval "$ac_link") 2>conftest.er1
7364   ac_status=$?
7365   grep -v '^ *+' conftest.er1 >conftest.err
7366   rm -f conftest.er1
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
7375 else
7376   echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7378
7379         ac_cv_func_crypt=no
7380 fi
7381
7382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7383       conftest$ac_exeext conftest.$ac_ext
7384 fi
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
7388   cmu_have_crypt=yes
7389 else
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
7394 else
7395   ac_check_lib_save_LIBS=$LIBS
7396 LIBS="-lcrypt  $LIBS"
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h.  */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h.  */
7403
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.  */
7407 #ifdef __cplusplus
7408 extern "C"
7409 #endif
7410 char crypt ();
7411 int
7412 main ()
7413 {
7414 return crypt ();
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext conftest$ac_exeext
7420 if { (ac_try="$ac_link"
7421 case "(($ac_try" in
7422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423   *) ac_try_echo=$ac_try;;
7424 esac
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426   (eval "$ac_link") 2>conftest.er1
7427   ac_status=$?
7428   grep -v '^ *+' conftest.er1 >conftest.err
7429   rm -f conftest.er1
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
7438 else
7439   echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442         ac_cv_lib_crypt_crypt=no
7443 fi
7444
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
7448 fi
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
7453 else
7454   cmu_have_crypt=no
7455 fi
7456
7457 fi
7458
7459
7460
7461
7462
7463 # Check whether --enable-gssapi was given.
7464 if test "${enable_gssapi+set}" = set; then
7465   enableval=$enable_gssapi; gssapi=$enableval
7466 else
7467   gssapi=yes
7468 fi
7469
7470
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
7474 else
7475   gss_impl=auto
7476 fi
7477
7478
7479 if test "$gssapi" != no; then
7480   platform=
7481   case "${host}" in
7482     *-*-linux*)
7483       platform=__linux
7484       ;;
7485     *-*-hpux*)
7486       platform=__hpux
7487       ;;
7488     *-*-irix*)
7489       platform=__irix
7490       ;;
7491     *-*-solaris2*)
7492 # When should we use __sunos?
7493       platform=__solaris
7494       ;;
7495     *-*-aix*)
7496 ###_AIX
7497       platform=__aix
7498       ;;
7499     *)
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; }; }
7506       fi
7507       ;;
7508   esac
7509
7510   cmu_saved_CPPFLAGS=$CPPFLAGS
7511
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"
7519
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"
7525         fi
7526       fi
7527     fi
7528   fi
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
7534 fi
7535 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
7536 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
7537 else
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
7542 /* confdefs.h.  */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h.  */
7547 $ac_includes_default
7548 #include <gssapi.h>
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7552 case "(($ac_try" in
7553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554   *) ac_try_echo=$ac_try;;
7555 esac
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557   (eval "$ac_compile") 2>conftest.er1
7558   ac_status=$?
7559   grep -v '^ *+' conftest.er1 >conftest.err
7560   rm -f conftest.er1
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
7568 else
7569   echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572         ac_header_compiler=no
7573 fi
7574
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; }
7578
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
7583 /* confdefs.h.  */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h.  */
7588 #include <gssapi.h>
7589 _ACEOF
7590 if { (ac_try="$ac_cpp conftest.$ac_ext"
7591 case "(($ac_try" in
7592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593   *) ac_try_echo=$ac_try;;
7594 esac
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7597   ac_status=$?
7598   grep -v '^ *+' conftest.er1 >conftest.err
7599   rm -f conftest.er1
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
7605        }; then
7606   ac_header_preproc=yes
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611   ac_header_preproc=no
7612 fi
7613
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; }
7617
7618 # So?  What about this header?
7619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7620   yes:no: )
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
7626     ;;
7627   no: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;}
7640
7641     ;;
7642 esac
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
7647 else
7648   ac_cv_header_gssapi_h=$ac_header_preproc
7649 fi
7650 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
7651 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
7652
7653 fi
7654 if test $ac_cv_header_gssapi_h = yes; then
7655
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_GSSAPI_H
7658 _ACEOF
7659
7660 else
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
7666 fi
7667 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
7668 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
7669 else
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
7674 /* confdefs.h.  */
7675 _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>
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7684 case "(($ac_try" in
7685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686   *) ac_try_echo=$ac_try;;
7687 esac
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689   (eval "$ac_compile") 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
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
7700 else
7701   echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704         ac_header_compiler=no
7705 fi
7706
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; }
7710
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
7715 /* confdefs.h.  */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h.  */
7720 #include <gssapi/gssapi.h>
7721 _ACEOF
7722 if { (ac_try="$ac_cpp conftest.$ac_ext"
7723 case "(($ac_try" in
7724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725   *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7729   ac_status=$?
7730   grep -v '^ *+' conftest.er1 >conftest.err
7731   rm -f conftest.er1
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
7737        }; then
7738   ac_header_preproc=yes
7739 else
7740   echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743   ac_header_preproc=no
7744 fi
7745
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; }
7749
7750 # So?  What about this header?
7751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7752   yes:no: )
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
7758     ;;
7759   no: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;}
7772
7773     ;;
7774 esac
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
7779 else
7780   ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
7781 fi
7782 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
7783 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
7784
7785 fi
7786 if test $ac_cv_header_gssapi_gssapi_h = yes; then
7787   :
7788 else
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
7791 fi
7792
7793
7794 fi
7795
7796
7797
7798   CPPFLAGS=$cmu_saved_CPPFLAGS
7799
7800 fi
7801
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/)
7808   #
7809   # The choice is reflected in GSSAPIBASE_LIBS
7810
7811
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
7816 else
7817   ac_check_lib_save_LIBS=$LIBS
7818 LIBS="-lresolv  $LIBS"
7819 cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h.  */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h.  */
7825
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.  */
7829 #ifdef __cplusplus
7830 extern "C"
7831 #endif
7832 char res_search ();
7833 int
7834 main ()
7835 {
7836 return res_search ();
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext conftest$ac_exeext
7842 if { (ac_try="$ac_link"
7843 case "(($ac_try" in
7844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845   *) ac_try_echo=$ac_try;;
7846 esac
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848   (eval "$ac_link") 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
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
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864         ac_cv_lib_resolv_res_search=no
7865 fi
7866
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
7870 fi
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
7876 _ACEOF
7877
7878   LIBS="-lresolv $LIBS"
7879
7880 fi
7881
7882   if test -d ${gssapi}; then
7883      gssapi_dir="${gssapi}/lib"
7884      GSSAPIBASE_LIBS="-L$gssapi_dir"
7885      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
7886   else
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"
7890   fi
7891
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.
7896
7897   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
7898     gss_failed=0
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
7903 else
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
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912
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.  */
7916 #ifdef __cplusplus
7917 extern "C"
7918 #endif
7919 char gss_unwrap ();
7920 int
7921 main ()
7922 {
7923 return gss_unwrap ();
7924   ;
7925   return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7930 case "(($ac_try" in
7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932   *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935   (eval "$ac_link") 2>conftest.er1
7936   ac_status=$?
7937   grep -v '^ *+' conftest.er1 >conftest.err
7938   rm -f conftest.er1
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
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951         ac_cv_lib_gssapi_gss_unwrap=no
7952 fi
7953
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
7957 fi
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
7961   gss_impl="heimdal"
7962 else
7963   gss_failed=1
7964 fi
7965
7966     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
7967       gss_impl="failed"
7968     fi
7969   fi
7970
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
7977 else
7978   ac_check_lib_save_LIBS=$LIBS
7979 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986
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.  */
7990 #ifdef __cplusplus
7991 extern "C"
7992 #endif
7993 char krb5int_getspecific ();
7994 int
7995 main ()
7996 {
7997 return krb5int_getspecific ();
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (ac_try="$ac_link"
8004 case "(($ac_try" in
8005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006   *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009   (eval "$ac_link") 2>conftest.er1
8010   ac_status=$?
8011   grep -v '^ *+' conftest.er1 >conftest.err
8012   rm -f conftest.er1
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
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025         ac_cv_lib_krb5support_krb5int_getspecific=no
8026 fi
8027
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
8031 fi
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
8036 fi
8037
8038
8039     gss_failed=0
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
8044 else
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
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053
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.  */
8057 #ifdef __cplusplus
8058 extern "C"
8059 #endif
8060 char gss_unwrap ();
8061 int
8062 main ()
8063 {
8064 return gss_unwrap ();
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_link") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
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
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092         ac_cv_lib_gssapi_krb5_gss_unwrap=no
8093 fi
8094
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
8098 fi
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
8102   gss_impl="mit"
8103 else
8104   gss_failed=1
8105 fi
8106
8107     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
8108       gss_impl="failed"
8109     fi
8110   fi
8111
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
8114
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"
8120     fi
8121     CPPFLAGS="$CPPFLAGS -D$platform"
8122     if test -d "${gssapi}/appsec-sdk/include"; then
8123       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
8124     fi
8125
8126     gss_failed=0
8127
8128 # Check for CyberSafe with two libraries first, than fall back to a single
8129 # library (older CyberSafe)
8130
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
8136 else
8137   ac_check_lib_save_LIBS=$LIBS
8138 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
8139 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145
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.  */
8149 #ifdef __cplusplus
8150 extern "C"
8151 #endif
8152 char csf_gss_acq_user ();
8153 int
8154 main ()
8155 {
8156 return csf_gss_acq_user ();
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest.$ac_objext conftest$ac_exeext
8162 if { (ac_try="$ac_link"
8163 case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_link") 2>conftest.er1
8169   ac_status=$?
8170   grep -v '^ *+' conftest.er1 >conftest.err
8171   rm -f conftest.er1
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
8180 else
8181   echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8183
8184         ac_cv_lib_gss_csf_gss_acq_user=no
8185 fi
8186
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
8190 fi
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"
8195 else
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
8201 else
8202   ac_check_lib_save_LIBS=$LIBS
8203 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210
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.  */
8214 #ifdef __cplusplus
8215 extern "C"
8216 #endif
8217 char csf_gss_acq_user ();
8218 int
8219 main ()
8220 {
8221 return csf_gss_acq_user ();
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8228 case "(($ac_try" in
8229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230   *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233   (eval "$ac_link") 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
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
8245 else
8246   echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249         ac_cv_lib_gss_csf_gss_acq_user=no
8250 fi
8251
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
8255 fi
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"
8260 else
8261   gss_failed=1
8262 fi
8263
8264 fi
8265
8266
8267     if test "$gss_failed" = "1"; then
8268 # Restore variables
8269       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
8270       CPPFLAGS=$cmu_saved_CPPFLAGS
8271
8272       if test "$gss_impl" != "auto"; then
8273         gss_impl="failed"
8274       fi
8275     fi
8276   fi
8277
8278   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
8279     gss_failed=0
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
8284 else
8285   ac_check_lib_save_LIBS=$LIBS
8286 LIBS="-lgss -lgss $LIBS"
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293
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.  */
8297 #ifdef __cplusplus
8298 extern "C"
8299 #endif
8300 char gss_unwrap ();
8301 int
8302 main ()
8303 {
8304 return gss_unwrap ();
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (ac_try="$ac_link"
8311 case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_link") 2>conftest.er1
8317   ac_status=$?
8318   grep -v '^ *+' conftest.er1 >conftest.err
8319   rm -f conftest.er1
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
8328 else
8329   echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332         ac_cv_lib_gss_gss_unwrap=no
8333 fi
8334
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
8338 fi
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
8342   gss_impl="seam"
8343 else
8344   gss_failed=1
8345 fi
8346
8347     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
8348       gss_impl="failed"
8349     fi
8350   fi
8351
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
8375     gssapi="no"
8376     GSSAPIBASE_LIBS=
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;}
8380   else
8381     gssapi="no"
8382     GSSAPIBASE_LIBS=
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;}
8386   fi
8387 fi
8388
8389 #
8390 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
8391 # in gssapi\rfckrb5.h
8392 #
8393 if test "$gssapi" != "no"; then
8394   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
8395     cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h.  */
8397 _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
8404                   #endif
8405 _ACEOF
8406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8407   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
8408
8409 cat >>confdefs.h <<\_ACEOF
8410 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
8411 _ACEOF
8412
8413 else
8414   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
8415 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
8416 fi
8417 rm -f -r conftest*
8418
8419
8420   elif test "$ac_cv_header_gssapi_h" = "yes"; then
8421     cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427 #include <gssapi.h>
8428
8429 _ACEOF
8430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8431   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
8432
8433 cat >>confdefs.h <<\_ACEOF
8434 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
8435 _ACEOF
8436
8437 fi
8438 rm -f -r conftest*
8439
8440   elif test "$ac_cv_header_gssapi_gssapi_h"; then
8441     cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447 #include <gssapi/gssapi.h>
8448
8449 _ACEOF
8450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8451   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
8452
8453 cat >>confdefs.h <<\_ACEOF
8454 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
8455 _ACEOF
8456
8457 fi
8458 rm -f -r conftest*
8459
8460   fi
8461
8462   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
8463     cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _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
8472                   #endif
8473 _ACEOF
8474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8475   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
8476
8477 cat >>confdefs.h <<\_ACEOF
8478 #define HAVE_GSS_C_NT_USER_NAME
8479 _ACEOF
8480
8481 else
8482   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
8483 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
8484 fi
8485 rm -f -r conftest*
8486
8487   elif test "$ac_cv_header_gssapi_h" = "yes"; then
8488     cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h.  */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h.  */
8494 #include <gssapi.h>
8495
8496 _ACEOF
8497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8498   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
8499
8500 cat >>confdefs.h <<\_ACEOF
8501 #define HAVE_GSS_C_NT_USER_NAME
8502 _ACEOF
8503
8504 fi
8505 rm -f -r conftest*
8506
8507   elif test "$ac_cv_header_gssapi_gssapi_h"; then
8508     cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514 #include <gssapi/gssapi.h>
8515
8516 _ACEOF
8517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8518   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_GSS_C_NT_USER_NAME
8522 _ACEOF
8523
8524 fi
8525 rm -f -r conftest*
8526
8527   fi
8528 fi
8529
8530 GSSAPI_LIBS=""
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
8540 else
8541   ac_check_lib_save_LIBS=$LIBS
8542 LIBS="-lresolv  $LIBS"
8543 cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h.  */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h.  */
8549
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.  */
8553 #ifdef __cplusplus
8554 extern "C"
8555 #endif
8556 char res_search ();
8557 int
8558 main ()
8559 {
8560 return res_search ();
8561   ;
8562   return 0;
8563 }
8564 _ACEOF
8565 rm -f conftest.$ac_objext conftest$ac_exeext
8566 if { (ac_try="$ac_link"
8567 case "(($ac_try" in
8568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569   *) ac_try_echo=$ac_try;;
8570 esac
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572   (eval "$ac_link") 2>conftest.er1
8573   ac_status=$?
8574   grep -v '^ *+' conftest.er1 >conftest.err
8575   rm -f conftest.er1
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
8584 else
8585   echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588         ac_cv_lib_resolv_res_search=no
8589 fi
8590
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
8594 fi
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"
8599 fi
8600
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"
8604
8605   cmu_save_LIBS="$LIBS"
8606   LIBS="$LIBS $GSSAPIBASE_LIBS"
8607
8608 for ac_func in gsskrb5_register_acceptor_identity
8609 do
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
8615 else
8616   cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h.  */
8618 _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
8625
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.  */
8630
8631 #ifdef __STDC__
8632 # include <limits.h>
8633 #else
8634 # include <assert.h>
8635 #endif
8636
8637 #undef $ac_func
8638
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.  */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 char $ac_func ();
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
8650 choke me
8651 #endif
8652
8653 int
8654 main ()
8655 {
8656 return $ac_func ();
8657   ;
8658   return 0;
8659 }
8660 _ACEOF
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (ac_try="$ac_link"
8663 case "(($ac_try" in
8664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665   *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668   (eval "$ac_link") 2>conftest.er1
8669   ac_status=$?
8670   grep -v '^ *+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
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"
8680 else
8681   echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8683
8684         eval "$as_ac_var=no"
8685 fi
8686
8687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8688       conftest$ac_exeext conftest.$ac_ext
8689 fi
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
8696 _ACEOF
8697
8698 fi
8699 done
8700
8701   LIBS="$cmu_save_LIBS"
8702 else
8703   { echo "$as_me:$LINENO: result: disabled" >&5
8704 echo "${ECHO_T}disabled" >&6; }
8705 fi
8706
8707
8708
8709
8710 if test "$gssapi" != no; then
8711         if test "$gss_impl" = "heimdal"; then
8712
8713 cat >>confdefs.h <<\_ACEOF
8714 #define KRB5_HEIMDAL
8715 _ACEOF
8716
8717         fi
8718
8719 cat >>confdefs.h <<\_ACEOF
8720 #define HAVE_GSSAPI
8721 _ACEOF
8722
8723 fi
8724
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
8729 else
8730   cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h.  */
8732 _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
8739
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.  */
8744
8745 #ifdef __STDC__
8746 # include <limits.h>
8747 #else
8748 # include <assert.h>
8749 #endif
8750
8751 #undef crypt
8752
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.  */
8756 #ifdef __cplusplus
8757 extern "C"
8758 #endif
8759 char crypt ();
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
8764 choke me
8765 #endif
8766
8767 int
8768 main ()
8769 {
8770 return crypt ();
8771   ;
8772   return 0;
8773 }
8774 _ACEOF
8775 rm -f conftest.$ac_objext conftest$ac_exeext
8776 if { (ac_try="$ac_link"
8777 case "(($ac_try" in
8778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779   *) ac_try_echo=$ac_try;;
8780 esac
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782   (eval "$ac_link") 2>conftest.er1
8783   ac_status=$?
8784   grep -v '^ *+' conftest.er1 >conftest.err
8785   rm -f conftest.er1
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
8794 else
8795   echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8797
8798         ac_cv_func_crypt=no
8799 fi
8800
8801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8802       conftest$ac_exeext conftest.$ac_ext
8803 fi
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
8807   cmu_have_crypt=yes
8808 else
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
8813 else
8814   ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-lcrypt  $LIBS"
8816 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h.  */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h.  */
8822
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.  */
8826 #ifdef __cplusplus
8827 extern "C"
8828 #endif
8829 char crypt ();
8830 int
8831 main ()
8832 {
8833 return crypt ();
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8840 case "(($ac_try" in
8841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842   *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845   (eval "$ac_link") 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
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
8857 else
8858   echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861         ac_cv_lib_crypt_crypt=no
8862 fi
8863
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
8867 fi
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
8872 else
8873   cmu_have_crypt=no
8874 fi
8875
8876 fi
8877
8878
8879
8880
8881 # Check whether --enable-sia was given.
8882 if test "${enable_sia+set}" = set; then
8883   enableval=$enable_sia; sia=$enableval
8884 else
8885   sia=no
8886 fi
8887
8888 LIB_SIA=""
8889 if test "$sia" != no; then
8890   if test -f /etc/sia/matrix.conf; then
8891
8892 cat >>confdefs.h <<\_ACEOF
8893 #define HAVE_SIA
8894 _ACEOF
8895
8896     LIB_SIA="-lsecurity -ldb -lm -laud"
8897   else
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; }; }
8901   fi
8902 fi
8903
8904
8905 # Check whether --enable-auth-sasldb was given.
8906 if test "${enable_auth_sasldb+set}" = set; then
8907   enableval=$enable_auth_sasldb; authsasldb=$enableval
8908 else
8909   authsasldb=no
8910 fi
8911
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."
8915      exit 0;
8916   fi
8917
8918 cat >>confdefs.h <<\_ACEOF
8919 #define AUTH_SASLDB
8920 _ACEOF
8921
8922
8923
8924 # Check whether --with-dbpath was given.
8925 if test "${with_dbpath+set}" = set; then
8926   withval=$with_dbpath; dbpath=$withval
8927 else
8928   dbpath=/etc/sasldb2
8929 fi
8930
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; }
8935
8936 cat >>confdefs.h <<_ACEOF
8937 #define SASL_DB_PATH "$dbpath"
8938 _ACEOF
8939
8940
8941 cmu_save_LIBS="$LIBS"
8942
8943 # Check whether --with-dblib was given.
8944 if test "${with_dblib+set}" = set; then
8945   withval=$with_dblib; dblib=$withval
8946 else
8947   dblib=auto_detect
8948 fi
8949
8950
8951
8952
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
8956 else
8957    test "${with_bdb_lib+set}" = set || with_bdb_lib=none
8958 fi
8959
8960
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
8964 else
8965    test "${with_bdb_inc+set}" = set || with_bdb_inc=none
8966 fi
8967
8968
8969
8970 SASL_DB_LIB=""
8971
8972 case "$dblib" in
8973   berkeley)
8974
8975
8976
8977         cmu_save_CPPFLAGS=$CPPFLAGS
8978
8979         if test -d $with_bdb_inc; then
8980             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
8981             BDB_INCADD="-I$with_bdb_inc"
8982         else
8983             BDB_INCADD=""
8984         fi
8985
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
8991 fi
8992 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8993 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
8994 else
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
8999 /* confdefs.h.  */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h.  */
9004 $ac_includes_default
9005 #include <db.h>
9006 _ACEOF
9007 rm -f conftest.$ac_objext
9008 if { (ac_try="$ac_compile"
9009 case "(($ac_try" in
9010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011   *) ac_try_echo=$ac_try;;
9012 esac
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014   (eval "$ac_compile") 2>conftest.er1
9015   ac_status=$?
9016   grep -v '^ *+' conftest.er1 >conftest.err
9017   rm -f conftest.er1
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
9025 else
9026   echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9028
9029         ac_header_compiler=no
9030 fi
9031
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; }
9035
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
9040 /* confdefs.h.  */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h.  */
9045 #include <db.h>
9046 _ACEOF
9047 if { (ac_try="$ac_cpp conftest.$ac_ext"
9048 case "(($ac_try" in
9049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050   *) ac_try_echo=$ac_try;;
9051 esac
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9054   ac_status=$?
9055   grep -v '^ *+' conftest.er1 >conftest.err
9056   rm -f conftest.er1
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
9062        }; then
9063   ac_header_preproc=yes
9064 else
9065   echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068   ac_header_preproc=no
9069 fi
9070
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; }
9074
9075 # So?  What about this header?
9076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9077   yes:no: )
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
9083     ;;
9084   no: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;}
9097
9098     ;;
9099 esac
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
9104 else
9105   ac_cv_header_db_h=$ac_header_preproc
9106 fi
9107 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
9108 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
9109
9110 fi
9111 if test $ac_cv_header_db_h = yes; then
9112
9113         BDB_SAVE_LDFLAGS=$LDFLAGS
9114
9115         if test -d $with_bdb_lib; then
9116
9117   # this is CMU ADD LIBPATH TO
9118   if test "$andrew_runpath_switch" = "none" ; then
9119         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
9120   else
9121         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
9122   fi
9123
9124
9125   # this is CMU ADD LIBPATH TO
9126   if test "$andrew_runpath_switch" = "none" ; then
9127         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
9128   else
9129         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
9130   fi
9131
9132         else
9133             BDB_LIBADD=""
9134         fi
9135
9136         saved_LIBS=$LIBS
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
9138           do
9139             LIBS="$saved_LIBS -l$dbname"
9140             cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h.  */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h.  */
9146 #include <db.h>
9147 int
9148 main ()
9149 {
9150 db_create(NULL, NULL, 0);
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (ac_try="$ac_link"
9157 case "(($ac_try" in
9158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159   *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162   (eval "$ac_link") 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
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
9174 else
9175   echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178         dblib="no"
9179 fi
9180
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
9184           done
9185         if test "$dblib" = "no"; then
9186             LIBS="$saved_LIBS -ldb"
9187             cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h.  */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h.  */
9193 #include <db.h>
9194 int
9195 main ()
9196 {
9197 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
9198   ;
9199   return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (ac_try="$ac_link"
9204 case "(($ac_try" in
9205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206   *) ac_try_echo=$ac_try;;
9207 esac
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209   (eval "$ac_link") 2>conftest.er1
9210   ac_status=$?
9211   grep -v '^ *+' conftest.er1 >conftest.err
9212   rm -f conftest.er1
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
9221 else
9222   echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9224
9225         dblib="no"
9226 fi
9227
9228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9229       conftest$ac_exeext conftest.$ac_ext
9230         fi
9231         LIBS=$saved_LIBS
9232
9233         LDFLAGS=$BDB_SAVE_LDFLAGS
9234
9235 else
9236   dblib="no"
9237 fi
9238
9239
9240
9241         CPPFLAGS=$cmu_save_CPPFLAGS
9242
9243         CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
9244         SASL_DB_INC=$BDB_INCADD
9245         SASL_DB_LIB="${BDB_LIBADD}"
9246         ;;
9247   gdbm)
9248
9249 # Check whether --with-gdbm was given.
9250 if test "${with_gdbm+set}" = set; then
9251   withval=$with_gdbm; with_gdbm="${withval}"
9252 fi
9253
9254
9255         case "$with_gdbm" in
9256            ""|yes)
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
9262 fi
9263 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9264 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
9265 else
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
9270 /* confdefs.h.  */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h.  */
9275 $ac_includes_default
9276 #include <gdbm.h>
9277 _ACEOF
9278 rm -f conftest.$ac_objext
9279 if { (ac_try="$ac_compile"
9280 case "(($ac_try" in
9281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282   *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285   (eval "$ac_compile") 2>conftest.er1
9286   ac_status=$?
9287   grep -v '^ *+' conftest.er1 >conftest.err
9288   rm -f conftest.er1
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
9296 else
9297   echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300         ac_header_compiler=no
9301 fi
9302
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; }
9306
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
9311 /* confdefs.h.  */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h.  */
9316 #include <gdbm.h>
9317 _ACEOF
9318 if { (ac_try="$ac_cpp conftest.$ac_ext"
9319 case "(($ac_try" in
9320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321   *) ac_try_echo=$ac_try;;
9322 esac
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9325   ac_status=$?
9326   grep -v '^ *+' conftest.er1 >conftest.err
9327   rm -f conftest.er1
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
9333        }; then
9334   ac_header_preproc=yes
9335 else
9336   echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339   ac_header_preproc=no
9340 fi
9341
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; }
9345
9346 # So?  What about this header?
9347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9348   yes:no: )
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
9354     ;;
9355   no: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;}
9368
9369     ;;
9370 esac
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
9375 else
9376   ac_cv_header_gdbm_h=$ac_header_preproc
9377 fi
9378 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9379 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
9380
9381 fi
9382 if test $ac_cv_header_gdbm_h = yes; then
9383
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
9388 else
9389   ac_check_lib_save_LIBS=$LIBS
9390 LIBS="-lgdbm  $LIBS"
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h.  */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h.  */
9397
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.  */
9401 #ifdef __cplusplus
9402 extern "C"
9403 #endif
9404 char gdbm_open ();
9405 int
9406 main ()
9407 {
9408 return gdbm_open ();
9409   ;
9410   return 0;
9411 }
9412 _ACEOF
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (ac_try="$ac_link"
9415 case "(($ac_try" in
9416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417   *) ac_try_echo=$ac_try;;
9418 esac
9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420   (eval "$ac_link") 2>conftest.er1
9421   ac_status=$?
9422   grep -v '^ *+' conftest.er1 >conftest.err
9423   rm -f conftest.er1
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
9432 else
9433   echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436         ac_cv_lib_gdbm_gdbm_open=no
9437 fi
9438
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
9442 fi
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"
9447 else
9448   dblib="no"
9449 fi
9450
9451 else
9452   dblib="no"
9453 fi
9454
9455
9456                ;;
9457            *)
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"
9462                else
9463                  with_gdbm="no"
9464                fi
9465        esac
9466         ;;
9467   ndbm)
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
9473 fi
9474 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
9475 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
9476 else
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
9481 /* confdefs.h.  */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h.  */
9486 $ac_includes_default
9487 #include <ndbm.h>
9488 _ACEOF
9489 rm -f conftest.$ac_objext
9490 if { (ac_try="$ac_compile"
9491 case "(($ac_try" in
9492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493   *) ac_try_echo=$ac_try;;
9494 esac
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496   (eval "$ac_compile") 2>conftest.er1
9497   ac_status=$?
9498   grep -v '^ *+' conftest.er1 >conftest.err
9499   rm -f conftest.er1
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
9507 else
9508   echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9510
9511         ac_header_compiler=no
9512 fi
9513
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; }
9517
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
9522 /* confdefs.h.  */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h.  */
9527 #include <ndbm.h>
9528 _ACEOF
9529 if { (ac_try="$ac_cpp conftest.$ac_ext"
9530 case "(($ac_try" in
9531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532   *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9536   ac_status=$?
9537   grep -v '^ *+' conftest.er1 >conftest.err
9538   rm -f conftest.er1
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
9544        }; then
9545   ac_header_preproc=yes
9546 else
9547   echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550   ac_header_preproc=no
9551 fi
9552
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; }
9556
9557 # So?  What about this header?
9558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9559   yes:no: )
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
9565     ;;
9566   no: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;}
9579
9580     ;;
9581 esac
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
9586 else
9587   ac_cv_header_ndbm_h=$ac_header_preproc
9588 fi
9589 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
9590 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
9591
9592 fi
9593 if test $ac_cv_header_ndbm_h = yes; then
9594
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
9599 else
9600   ac_check_lib_save_LIBS=$LIBS
9601 LIBS="-lndbm  $LIBS"
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h.  */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h.  */
9608
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.  */
9612 #ifdef __cplusplus
9613 extern "C"
9614 #endif
9615 char dbm_open ();
9616 int
9617 main ()
9618 {
9619 return dbm_open ();
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9626 case "(($ac_try" in
9627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628   *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631   (eval "$ac_link") 2>conftest.er1
9632   ac_status=$?
9633   grep -v '^ *+' conftest.er1 >conftest.err
9634   rm -f conftest.er1
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
9643 else
9644   echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647         ac_cv_lib_ndbm_dbm_open=no
9648 fi
9649
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
9653 fi
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"
9658 else
9659
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
9664 else
9665   cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _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
9674
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.  */
9679
9680 #ifdef __STDC__
9681 # include <limits.h>
9682 #else
9683 # include <assert.h>
9684 #endif
9685
9686 #undef dbm_open
9687
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.  */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char dbm_open ();
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
9699 choke me
9700 #endif
9701
9702 int
9703 main ()
9704 {
9705 return dbm_open ();
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9712 case "(($ac_try" in
9713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714   *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717   (eval "$ac_link") 2>conftest.er1
9718   ac_status=$?
9719   grep -v '^ *+' conftest.er1 >conftest.err
9720   rm -f conftest.er1
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
9729 else
9730   echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733         ac_cv_func_dbm_open=no
9734 fi
9735
9736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9737       conftest$ac_exeext conftest.$ac_ext
9738 fi
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
9742   :
9743 else
9744   dblib="no"
9745 fi
9746
9747 fi
9748
9749 else
9750   dblib="no"
9751 fi
9752
9753
9754         ;;
9755   auto_detect)
9756
9757
9758
9759         cmu_save_CPPFLAGS=$CPPFLAGS
9760
9761         if test -d $with_bdb_inc; then
9762             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
9763             BDB_INCADD="-I$with_bdb_inc"
9764         else
9765             BDB_INCADD=""
9766         fi
9767
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
9773 fi
9774 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
9775 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
9776 else
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
9781 /* confdefs.h.  */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h.  */
9786 $ac_includes_default
9787 #include <db.h>
9788 _ACEOF
9789 rm -f conftest.$ac_objext
9790 if { (ac_try="$ac_compile"
9791 case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796   (eval "$ac_compile") 2>conftest.er1
9797   ac_status=$?
9798   grep -v '^ *+' conftest.er1 >conftest.err
9799   rm -f conftest.er1
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
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811         ac_header_compiler=no
9812 fi
9813
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; }
9817
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
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827 #include <db.h>
9828 _ACEOF
9829 if { (ac_try="$ac_cpp conftest.$ac_ext"
9830 case "(($ac_try" in
9831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832   *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9836   ac_status=$?
9837   grep -v '^ *+' conftest.er1 >conftest.err
9838   rm -f conftest.er1
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
9844        }; then
9845   ac_header_preproc=yes
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850   ac_header_preproc=no
9851 fi
9852
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; }
9856
9857 # So?  What about this header?
9858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9859   yes:no: )
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
9865     ;;
9866   no: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;}
9879
9880     ;;
9881 esac
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
9886 else
9887   ac_cv_header_db_h=$ac_header_preproc
9888 fi
9889 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
9890 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
9891
9892 fi
9893 if test $ac_cv_header_db_h = yes; then
9894
9895         BDB_SAVE_LDFLAGS=$LDFLAGS
9896
9897         if test -d $with_bdb_lib; then
9898
9899   # this is CMU ADD LIBPATH TO
9900   if test "$andrew_runpath_switch" = "none" ; then
9901         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
9902   else
9903         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
9904   fi
9905
9906
9907   # this is CMU ADD LIBPATH TO
9908   if test "$andrew_runpath_switch" = "none" ; then
9909         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
9910   else
9911         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
9912   fi
9913
9914         else
9915             BDB_LIBADD=""
9916         fi
9917
9918         saved_LIBS=$LIBS
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
9920           do
9921             LIBS="$saved_LIBS -l$dbname"
9922             cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928 #include <db.h>
9929 int
9930 main ()
9931 {
9932 db_create(NULL, NULL, 0);
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9939 case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_link") 2>conftest.er1
9945   ac_status=$?
9946   grep -v '^ *+' conftest.er1 >conftest.err
9947   rm -f conftest.er1
9948   cat conftest.err >&5
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } && {
9951          test -z "$ac_c_werror_flag" ||
9952          test ! -s conftest.err
9953        } && test -s conftest$ac_exeext &&
9954        $as_test_x conftest$ac_exeext; then
9955   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
9956 else
9957   echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960         dblib="no"
9961 fi
9962
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
9966           done
9967         if test "$dblib" = "no"; then
9968             LIBS="$saved_LIBS -ldb"
9969             cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h.  */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h.  */
9975 #include <db.h>
9976 int
9977 main ()
9978 {
9979 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
9980   ;
9981   return 0;
9982 }
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9986 case "(($ac_try" in
9987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988   *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991   (eval "$ac_link") 2>conftest.er1
9992   ac_status=$?
9993   grep -v '^ *+' conftest.er1 >conftest.err
9994   rm -f conftest.er1
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
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007         dblib="no"
10008 fi
10009
10010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10011       conftest$ac_exeext conftest.$ac_ext
10012         fi
10013         LIBS=$saved_LIBS
10014
10015         LDFLAGS=$BDB_SAVE_LDFLAGS
10016
10017 else
10018   dblib="no"
10019 fi
10020
10021
10022
10023         CPPFLAGS=$cmu_save_CPPFLAGS
10024
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
10031 fi
10032 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
10033 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
10034 else
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
10039 /* confdefs.h.  */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h.  */
10044 $ac_includes_default
10045 #include <ndbm.h>
10046 _ACEOF
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;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_compile") 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
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
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069         ac_header_compiler=no
10070 fi
10071
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; }
10075
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
10080 /* confdefs.h.  */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h.  */
10085 #include <ndbm.h>
10086 _ACEOF
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;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10094   ac_status=$?
10095   grep -v '^ *+' conftest.er1 >conftest.err
10096   rm -f conftest.er1
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
10102        }; then
10103   ac_header_preproc=yes
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108   ac_header_preproc=no
10109 fi
10110
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; }
10114
10115 # So?  What about this header?
10116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10117   yes:no: )
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
10123     ;;
10124   no: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;}
10137
10138     ;;
10139 esac
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
10144 else
10145   ac_cv_header_ndbm_h=$ac_header_preproc
10146 fi
10147 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
10148 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
10149
10150 fi
10151 if test $ac_cv_header_ndbm_h = yes; then
10152
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
10157 else
10158   ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-lndbm  $LIBS"
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h.  */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h.  */
10166
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.  */
10170 #ifdef __cplusplus
10171 extern "C"
10172 #endif
10173 char dbm_open ();
10174 int
10175 main ()
10176 {
10177 return dbm_open ();
10178   ;
10179   return 0;
10180 }
10181 _ACEOF
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;;
10187 esac
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189   (eval "$ac_link") 2>conftest.er1
10190   ac_status=$?
10191   grep -v '^ *+' conftest.er1 >conftest.err
10192   rm -f conftest.er1
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
10201 else
10202   echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10204
10205         ac_cv_lib_ndbm_dbm_open=no
10206 fi
10207
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
10211 fi
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"
10216 else
10217   dblib="weird"
10218 fi
10219
10220 else
10221   dblib="no"
10222 fi
10223
10224
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
10230 else
10231   cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h.  */
10233 _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
10240
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.  */
10245
10246 #ifdef __STDC__
10247 # include <limits.h>
10248 #else
10249 # include <assert.h>
10250 #endif
10251
10252 #undef dbm_open
10253
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.  */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char dbm_open ();
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
10265 choke me
10266 #endif
10267
10268 int
10269 main ()
10270 {
10271 return dbm_open ();
10272   ;
10273   return 0;
10274 }
10275 _ACEOF
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;;
10281 esac
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283   (eval "$ac_link") 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
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
10295 else
10296   echo "$as_me: failed program was:" >&5
10297 sed 's/^/| /' conftest.$ac_ext >&5
10298
10299         ac_cv_func_dbm_open=no
10300 fi
10301
10302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10303       conftest$ac_exeext conftest.$ac_ext
10304 fi
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
10308   dblib="ndbm"
10309 else
10310   dblib="no"
10311 fi
10312
10313           fi
10314
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
10321 fi
10322 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
10323 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
10324 else
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
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334 $ac_includes_default
10335 #include <gdbm.h>
10336 _ACEOF
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;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344   (eval "$ac_compile") 2>conftest.er1
10345   ac_status=$?
10346   grep -v '^ *+' conftest.er1 >conftest.err
10347   rm -f conftest.er1
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
10355 else
10356   echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359         ac_header_compiler=no
10360 fi
10361
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; }
10365
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
10370 /* confdefs.h.  */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h.  */
10375 #include <gdbm.h>
10376 _ACEOF
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;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10384   ac_status=$?
10385   grep -v '^ *+' conftest.er1 >conftest.err
10386   rm -f conftest.er1
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
10392        }; then
10393   ac_header_preproc=yes
10394 else
10395   echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398   ac_header_preproc=no
10399 fi
10400
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; }
10404
10405 # So?  What about this header?
10406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10407   yes:no: )
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
10413     ;;
10414   no: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;}
10427
10428     ;;
10429 esac
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
10434 else
10435   ac_cv_header_gdbm_h=$ac_header_preproc
10436 fi
10437 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
10438 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
10439
10440 fi
10441 if test $ac_cv_header_gdbm_h = yes; then
10442
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
10447 else
10448   ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-lgdbm  $LIBS"
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h.  */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h.  */
10456
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.  */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char gdbm_open ();
10464 int
10465 main ()
10466 {
10467 return gdbm_open ();
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
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;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479   (eval "$ac_link") 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
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
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495         ac_cv_lib_gdbm_gdbm_open=no
10496 fi
10497
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
10501 fi
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
10505   dblib="gdbm";
10506                                              SASL_DB_LIB="-lgdbm"
10507 else
10508   dblib="no"
10509 fi
10510
10511 else
10512   dblib="no"
10513 fi
10514
10515
10516           fi
10517         else
10518                   CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
10519           SASL_DB_INC=$BDB_INCADD
10520           SASL_DB_LIB="${BDB_LIBADD}"
10521         fi
10522         ;;
10523   none)
10524         ;;
10525   no)
10526         ;;
10527   *)
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; }; }
10533         dblib=no
10534         ;;
10535 esac
10536 LIBS="$cmu_save_LIBS"
10537
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; }
10542
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"
10548
10549 case "$dblib" in
10550   gdbm)
10551     SASL_MECHS="$SASL_MECHS libsasldb.la"
10552
10553 cat >>confdefs.h <<\_ACEOF
10554 #define SASL_GDBM
10555 _ACEOF
10556
10557     ;;
10558   ndbm)
10559     SASL_MECHS="$SASL_MECHS libsasldb.la"
10560
10561 cat >>confdefs.h <<\_ACEOF
10562 #define SASL_NDBM
10563 _ACEOF
10564
10565     ;;
10566   berkeley)
10567     SASL_MECHS="$SASL_MECHS libsasldb.la"
10568
10569 cat >>confdefs.h <<\_ACEOF
10570 #define SASL_BERKELEYDB
10571 _ACEOF
10572
10573     ;;
10574   *)
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"
10580     SASL_DB_UTILS=""
10581     SASL_DB_MANS=""
10582     SASL_DB_LIB=""
10583     ;;
10584 esac
10585
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"
10590
10591 cat >>confdefs.h <<\_ACEOF
10592 #define STATIC_SASLDB
10593 _ACEOF
10594
10595     else
10596       SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
10597       SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
10598     fi
10599 fi
10600
10601
10602
10603
10604
10605
10606
10607
10608   SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.al"
10609 fi
10610
10611 # Check whether --enable-httpform was given.
10612 if test "${enable_httpform+set}" = set; then
10613   enableval=$enable_httpform; httpform=$enableval
10614 else
10615   httpform=no
10616 fi
10617
10618 if test "$httpform" != no; then
10619
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_HTTPFORM
10622 _ACEOF
10623
10624 fi
10625
10626
10627 # Check whether --with-pam was given.
10628 if test "${with_pam+set}" = set; then
10629   withval=$with_pam; with_pam=$withval
10630 else
10631   with_pam=yes
10632 fi
10633
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"
10638   fi
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
10644 else
10645   ac_check_lib_save_LIBS=$LIBS
10646 LIBS="-lpam $SASL_DL_LIB $LIBS"
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653
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.  */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 char pam_start ();
10661 int
10662 main ()
10663 {
10664 return pam_start ();
10665   ;
10666   return 0;
10667 }
10668 _ACEOF
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;;
10674 esac
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676   (eval "$ac_link") 2>conftest.er1
10677   ac_status=$?
10678   grep -v '^ *+' conftest.er1 >conftest.err
10679   rm -f conftest.er1
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
10688 else
10689   echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10691
10692         ac_cv_lib_pam_pam_start=no
10693 fi
10694
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
10698 fi
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
10702
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
10708 fi
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; }
10711 else
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
10716 /* confdefs.h.  */
10717 _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>
10723 _ACEOF
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;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731   (eval "$ac_compile") 2>conftest.er1
10732   ac_status=$?
10733   grep -v '^ *+' conftest.er1 >conftest.err
10734   rm -f conftest.er1
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
10742 else
10743   echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746         ac_header_compiler=no
10747 fi
10748
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; }
10752
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
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762 #include <security/pam_appl.h>
10763 _ACEOF
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;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10771   ac_status=$?
10772   grep -v '^ *+' conftest.er1 >conftest.err
10773   rm -f conftest.er1
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
10779        }; then
10780   ac_header_preproc=yes
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785   ac_header_preproc=no
10786 fi
10787
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; }
10791
10792 # So?  What about this header?
10793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794   yes:no: )
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
10800     ;;
10801   no: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;}
10814
10815     ;;
10816 esac
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
10821 else
10822   ac_cv_header_security_pam_appl_h=$ac_header_preproc
10823 fi
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; }
10826
10827 fi
10828 if test $ac_cv_header_security_pam_appl_h = yes; then
10829   :
10830 else
10831   with_pam=no
10832 fi
10833
10834
10835 else
10836   with_pam=no
10837 fi
10838
10839   LIBS="$cmu_save_LIBS"
10840 fi
10841
10842
10843 # Check whether --with-ipctype was given.
10844 if test "${with_ipctype+set}" = set; then
10845   withval=$with_ipctype; with_ipctype=$withval
10846 else
10847   with_ipctype="unix"
10848 fi
10849
10850 MAIN_COMPAT_OBJ="saslauthd-${with_ipctype}.o"
10851
10852 if test "$with_ipctype" = "doors"; then
10853
10854 cat >>confdefs.h <<\_ACEOF
10855 #define USE_DOORS
10856 _ACEOF
10857
10858
10859 cat >>confdefs.h <<\_ACEOF
10860 #define SASLAUTHD_THREADED
10861 _ACEOF
10862
10863   LIBS="$LIBS -ldoor -lpthread"
10864 fi
10865
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; }
10870 LIB_PAM=""
10871 if test "$with_pam" != no; then
10872
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_PAM
10875 _ACEOF
10876
10877   LIB_PAM="-lpam"
10878 fi
10879
10880
10881
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
10886 else
10887   ac_check_lib_save_LIBS=$LIBS
10888 LIBS="-lresolv  $LIBS"
10889 cat >conftest.$ac_ext <<_ACEOF
10890 /* confdefs.h.  */
10891 _ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h.  */
10895
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.  */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 char inet_aton ();
10903 int
10904 main ()
10905 {
10906 return inet_aton ();
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
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;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918   (eval "$ac_link") 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
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
10930 else
10931   echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10933
10934         ac_cv_lib_resolv_inet_aton=no
10935 fi
10936
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
10940 fi
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
10946 _ACEOF
10947
10948   LIBS="-lresolv $LIBS"
10949
10950 fi
10951
10952
10953 { echo "$as_me:$LINENO: checking to include LDAP support" >&5
10954 echo $ECHO_N "checking to include LDAP support... $ECHO_C" >&6; }
10955
10956 # Check whether --with-ldap was given.
10957 if test "${with_ldap+set}" = set; then
10958   withval=$with_ldap; with_ldap=$withval
10959 else
10960   with_ldap=no
10961 fi
10962
10963 { echo "$as_me:$LINENO: result: $with_ldap" >&5
10964 echo "${ECHO_T}$with_ldap" >&6; }
10965
10966 if test -d $with_ldap; then
10967     CPPFLAGS="$CPPFLAGS -I${with_ldap}/include"
10968
10969   # this is CMU ADD LIBPATH
10970   if test "$andrew_runpath_switch" = "none" ; then
10971         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
10972   else
10973         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
10974   fi
10975
10976 fi
10977
10978 LDAP_LIBS=""
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
10984 else
10985   ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-lldap -llber $LIBS"
10987 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993
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.  */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char ldap_initialize ();
11001 int
11002 main ()
11003 {
11004 return ldap_initialize ();
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
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;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016   (eval "$ac_link") 2>conftest.er1
11017   ac_status=$?
11018   grep -v '^ *+' conftest.er1 >conftest.err
11019   rm -f conftest.er1
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
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032         ac_cv_lib_ldap_ldap_initialize=no
11033 fi
11034
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
11038 fi
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
11042
11043 cat >>confdefs.h <<\_ACEOF
11044 #define HAVE_LDAP
11045 _ACEOF
11046
11047                                         LDAP_LIBS="-lldap -llber"
11048                                         if test "$with_openssl" != "no"; then
11049                                             LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF"
11050                                         fi
11051 fi
11052
11053
11054 fi
11055
11056
11057
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
11062 else
11063   cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h.  */
11065 _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>
11072 #include <float.h>
11073
11074 int
11075 main ()
11076 {
11077
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
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;;
11087 esac
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089   (eval "$ac_compile") 2>conftest.er1
11090   ac_status=$?
11091   grep -v '^ *+' conftest.er1 >conftest.err
11092   rm -f conftest.er1
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
11100 else
11101   echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104         ac_cv_header_stdc=no
11105 fi
11106
11107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11108
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
11112 /* confdefs.h.  */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h.  */
11117 #include <string.h>
11118
11119 _ACEOF
11120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11121   $EGREP "memchr" >/dev/null 2>&1; then
11122   :
11123 else
11124   ac_cv_header_stdc=no
11125 fi
11126 rm -f -r conftest*
11127
11128 fi
11129
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
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <stdlib.h>
11139
11140 _ACEOF
11141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11142   $EGREP "free" >/dev/null 2>&1; then
11143   :
11144 else
11145   ac_cv_header_stdc=no
11146 fi
11147 rm -f -r conftest*
11148
11149 fi
11150
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
11154   :
11155 else
11156   cat >conftest.$ac_ext <<_ACEOF
11157 /* confdefs.h.  */
11158 _ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h.  */
11162 #include <ctype.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))
11167 #else
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))
11173 #endif
11174
11175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11176 int
11177 main ()
11178 {
11179   int i;
11180   for (i = 0; i < 256; i++)
11181     if (XOR (islower (i), ISLOWER (i))
11182         || toupper (i) != TOUPPER (i))
11183       return 2;
11184   return 0;
11185 }
11186 _ACEOF
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;;
11192 esac
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194   (eval "$ac_link") 2>&5
11195   ac_status=$?
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;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_try") 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; }; then
11207   :
11208 else
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
11212
11213 ( exit $ac_status )
11214 ac_cv_header_stdc=no
11215 fi
11216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11217 fi
11218
11219
11220 fi
11221 fi
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
11225
11226 cat >>confdefs.h <<\_ACEOF
11227 #define STDC_HEADERS 1
11228 _ACEOF
11229
11230 fi
11231
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
11236 else
11237   cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _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)
11247 #endif
11248 #ifndef WIFEXITED
11249 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11250 #endif
11251
11252 int
11253 main ()
11254 {
11255   int s;
11256   wait (&s);
11257   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
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;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269   (eval "$ac_compile") 2>conftest.er1
11270   ac_status=$?
11271   grep -v '^ *+' conftest.er1 >conftest.err
11272   rm -f conftest.er1
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
11280 else
11281   echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284         ac_cv_header_sys_wait_h=no
11285 fi
11286
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 fi
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
11292
11293 cat >>confdefs.h <<\_ACEOF
11294 #define HAVE_SYS_WAIT_H 1
11295 _ACEOF
11296
11297 fi
11298
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
11303 else
11304   cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h.  */
11306 _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>
11312 #include <time.h>
11313
11314 int
11315 main ()
11316 {
11317 if ((struct tm *) 0)
11318 return 0;
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
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;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_compile") 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
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
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345         ac_cv_header_time=no
11346 fi
11347
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349 fi
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
11353
11354 cat >>confdefs.h <<\_ACEOF
11355 #define TIME_WITH_SYS_TIME 1
11356 _ACEOF
11357
11358 fi
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368 for ac_header in crypt.h fcntl.h krb5.h strings.h syslog.h unistd.h sys/time.h sys/uio.h
11369 do
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
11376 fi
11377 ac_res=`eval echo '${'$as_ac_Header'}'`
11378                { echo "$as_me:$LINENO: result: $ac_res" >&5
11379 echo "${ECHO_T}$ac_res" >&6; }
11380 else
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
11385 /* confdefs.h.  */
11386 _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>
11392 _ACEOF
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;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400   (eval "$ac_compile") 2>conftest.er1
11401   ac_status=$?
11402   grep -v '^ *+' conftest.er1 >conftest.err
11403   rm -f conftest.er1
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
11411 else
11412   echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415         ac_header_compiler=no
11416 fi
11417
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; }
11421
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
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431 #include <$ac_header>
11432 _ACEOF
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;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } >/dev/null && {
11446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11447          test ! -s conftest.err
11448        }; then
11449   ac_header_preproc=yes
11450 else
11451   echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454   ac_header_preproc=no
11455 fi
11456
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; }
11460
11461 # So?  What about this header?
11462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463   yes:no: )
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
11469     ;;
11470   no: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;}
11483
11484     ;;
11485 esac
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
11490 else
11491   eval "$as_ac_Header=\$ac_header_preproc"
11492 fi
11493 ac_res=`eval echo '${'$as_ac_Header'}'`
11494                { echo "$as_me:$LINENO: result: $ac_res" >&5
11495 echo "${ECHO_T}$ac_res" >&6; }
11496
11497 fi
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
11501 _ACEOF
11502
11503 fi
11504
11505 done
11506
11507
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
11512 else
11513   cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h.  */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h.  */
11519
11520 int
11521 main ()
11522 {
11523 /* FIXME: Include the comments suggested by Paul. */
11524 #ifndef __cplusplus
11525   /* Ultrix mips cc rejects this.  */
11526   typedef int charset[2];
11527   const charset cs;
11528   /* SunOS 4.1.1 cc rejects this.  */
11529   char const *const *pcpcc;
11530   char **ppc;
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
11537      expression */
11538   const char *g = "string";
11539   pcpcc = &g + (g ? g-g : 0);
11540   /* HPUX 7.0 cc rejects these. */
11541   ++pcpcc;
11542   ppc = (char**) pcpcc;
11543   pcpcc = (char const *const *) ppc;
11544   { /* SCO 3.2v4 cc rejects this.  */
11545     char *t;
11546     char const *s = 0 ? (char *) 0 : (char const *) 0;
11547
11548     *t++ = 0;
11549     if (s) return 0;
11550   }
11551   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11552     int x[] = {25, 17};
11553     const int *foo = &x[0];
11554     ++foo;
11555   }
11556   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11557     typedef const int *iptr;
11558     iptr p = 0;
11559     ++p;
11560   }
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;
11565   }
11566   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11567     const int foo = 10;
11568     if (!foo) return 0;
11569   }
11570   return !cs[0] && !zero.x;
11571 #endif
11572
11573   ;
11574   return 0;
11575 }
11576 _ACEOF
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;;
11582 esac
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584   (eval "$ac_compile") 2>conftest.er1
11585   ac_status=$?
11586   grep -v '^ *+' conftest.er1 >conftest.err
11587   rm -f conftest.er1
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
11594   ac_cv_c_const=yes
11595 else
11596   echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599         ac_cv_c_const=no
11600 fi
11601
11602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11603 fi
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
11607
11608 cat >>confdefs.h <<\_ACEOF
11609 #define const
11610 _ACEOF
11611
11612 fi
11613
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
11618 else
11619   cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h.  */
11621 _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_;
11627 int
11628 main ()
11629 {
11630 if ((ac__type_new_ *) 0)
11631   return 0;
11632 if (sizeof (ac__type_new_))
11633   return 0;
11634   ;
11635   return 0;
11636 }
11637 _ACEOF
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;;
11643 esac
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645   (eval "$ac_compile") 2>conftest.er1
11646   ac_status=$?
11647   grep -v '^ *+' conftest.er1 >conftest.err
11648   rm -f conftest.er1
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
11656 else
11657   echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11659
11660         ac_cv_type_pid_t=no
11661 fi
11662
11663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11664 fi
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
11668   :
11669 else
11670
11671 cat >>confdefs.h <<_ACEOF
11672 #define pid_t int
11673 _ACEOF
11674
11675 fi
11676
11677
11678 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
11679
11680
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
11685 else
11686   cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 #include <stdio.h>
11693 int
11694 main ()
11695 {
11696 printf("%s", __func__);
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
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;;
11706 esac
11707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11708   (eval "$ac_link") 2>conftest.er1
11709   ac_status=$?
11710   grep -v '^ *+' conftest.er1 >conftest.err
11711   rm -f conftest.er1
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
11719   have_func=yes
11720 else
11721   echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724         have_func=no
11725 fi
11726
11727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11728       conftest$ac_exeext conftest.$ac_ext
11729 fi
11730
11731 { echo "$as_me:$LINENO: result: $have_func" >&5
11732 echo "${ECHO_T}$have_func" >&6; }
11733 if test "$have_func" = yes; then
11734
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_FUNC
11737 _ACEOF
11738
11739 else
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
11744 else
11745   cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h.  */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h.  */
11751 #include <stdio.h>
11752 int
11753 main ()
11754 {
11755 printf("%s", __PRETTY_FUNCTION__);
11756   ;
11757   return 0;
11758 }
11759 _ACEOF
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;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_link") 2>conftest.er1
11768   ac_status=$?
11769   grep -v '^ *+' conftest.er1 >conftest.err
11770   rm -f conftest.er1
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
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783         have_pretty_function=no
11784 fi
11785
11786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11787       conftest$ac_exeext conftest.$ac_ext
11788 fi
11789
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
11793
11794 cat >>confdefs.h <<\_ACEOF
11795 #define HAVE_PRETTY_FUNCTION
11796 _ACEOF
11797
11798        else
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
11803 else
11804   cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 #include <stdio.h>
11811 int
11812 main ()
11813 {
11814 printf("%s", __FUNCTION__);
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
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;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_link") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
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
11837   have_function=yes
11838 else
11839   echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842         have_function=no
11843 fi
11844
11845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11846       conftest$ac_exeext conftest.$ac_ext
11847 fi
11848
11849                { echo "$as_me:$LINENO: result: $have_function" >&5
11850 echo "${ECHO_T}$have_function" >&6; }
11851                if test "$have_function" = yes; then
11852
11853 cat >>confdefs.h <<\_ACEOF
11854 #define HAVE_FUNCTION
11855 _ACEOF
11856
11857                fi
11858        fi
11859 fi
11860
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
11865 else
11866   cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _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>
11874
11875 int
11876 main ()
11877 {
11878 return *(signal (0, 0)) (0) == 1;
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
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;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890   (eval "$ac_compile") 2>conftest.er1
11891   ac_status=$?
11892   grep -v '^ *+' conftest.er1 >conftest.err
11893   rm -f conftest.er1
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
11901 else
11902   echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905         ac_cv_type_signal=void
11906 fi
11907
11908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11909 fi
11910 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11911 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11912
11913 cat >>confdefs.h <<_ACEOF
11914 #define RETSIGTYPE $ac_cv_type_signal
11915 _ACEOF
11916
11917
11918
11919
11920
11921
11922 for ac_func in gethostname mkdir socket strdup
11923 do
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
11929 else
11930   cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h.  */
11932 _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
11939
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.  */
11944
11945 #ifdef __STDC__
11946 # include <limits.h>
11947 #else
11948 # include <assert.h>
11949 #endif
11950
11951 #undef $ac_func
11952
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.  */
11956 #ifdef __cplusplus
11957 extern "C"
11958 #endif
11959 char $ac_func ();
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
11964 choke me
11965 #endif
11966
11967 int
11968 main ()
11969 {
11970 return $ac_func ();
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
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;;
11980 esac
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982   (eval "$ac_link") 2>conftest.er1
11983   ac_status=$?
11984   grep -v '^ *+' conftest.er1 >conftest.err
11985   rm -f conftest.er1
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"
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998         eval "$as_ac_var=no"
11999 fi
12000
12001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12002       conftest$ac_exeext conftest.$ac_ext
12003 fi
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
12010 _ACEOF
12011
12012 fi
12013 done
12014
12015
12016
12017 for ac_func in getspnam getuserpw
12018 do
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
12024 else
12025   cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h.  */
12027 _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
12034
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.  */
12039
12040 #ifdef __STDC__
12041 # include <limits.h>
12042 #else
12043 # include <assert.h>
12044 #endif
12045
12046 #undef $ac_func
12047
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.  */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char $ac_func ();
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
12059 choke me
12060 #endif
12061
12062 int
12063 main ()
12064 {
12065 return $ac_func ();
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
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;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077   (eval "$ac_link") 2>conftest.er1
12078   ac_status=$?
12079   grep -v '^ *+' conftest.er1 >conftest.err
12080   rm -f conftest.er1
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"
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093         eval "$as_ac_var=no"
12094 fi
12095
12096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12097       conftest$ac_exeext conftest.$ac_ext
12098 fi
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
12105 _ACEOF
12106  break
12107 fi
12108 done
12109
12110
12111
12112 for ac_func in strlcat strlcpy
12113 do
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
12119 else
12120   cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h.  */
12122 _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
12129
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.  */
12134
12135 #ifdef __STDC__
12136 # include <limits.h>
12137 #else
12138 # include <assert.h>
12139 #endif
12140
12141 #undef $ac_func
12142
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.  */
12146 #ifdef __cplusplus
12147 extern "C"
12148 #endif
12149 char $ac_func ();
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
12154 choke me
12155 #endif
12156
12157 int
12158 main ()
12159 {
12160 return $ac_func ();
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
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;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172   (eval "$ac_link") 2>conftest.er1
12173   ac_status=$?
12174   grep -v '^ *+' conftest.er1 >conftest.err
12175   rm -f conftest.er1
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"
12184 else
12185   echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188         eval "$as_ac_var=no"
12189 fi
12190
12191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12192       conftest$ac_exeext conftest.$ac_ext
12193 fi
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
12200 _ACEOF
12201
12202 fi
12203 done
12204
12205
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
12210 /* confdefs.h.  */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h.  */
12215
12216 #include <sys/types.h>
12217 #include <pwd.h>
12218 #include <shadow.h>
12219
12220 int
12221 main ()
12222 {
12223
12224 struct passwd *pw;
12225 struct passwd pwbuf;
12226 char pwdata[512];
12227 (void) getpwnam_r("bin", &pwbuf, pwdata, sizeof(pwdata), &pw);
12228
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
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;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_compile") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
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; }
12252
12253 cat >>confdefs.h <<\_ACEOF
12254 #define GETXXNAM_R_5ARG 1
12255 _ACEOF
12256
12257 else
12258   echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12260
12261         { echo "$as_me:$LINENO: result: no" >&5
12262 echo "${ECHO_T}no" >&6; }
12263
12264 fi
12265
12266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12267 fi
12268
12269 GETADDRINFOOBJS=""
12270 sasl_cv_getaddrinfo=no
12271
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
12276 else
12277   cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h.  */
12279 _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
12286
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.  */
12291
12292 #ifdef __STDC__
12293 # include <limits.h>
12294 #else
12295 # include <assert.h>
12296 #endif
12297
12298 #undef getaddrinfo
12299
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.  */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
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
12311 choke me
12312 #endif
12313
12314 int
12315 main ()
12316 {
12317 return getaddrinfo ();
12318   ;
12319   return 0;
12320 }
12321 _ACEOF
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;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329   (eval "$ac_link") 2>conftest.er1
12330   ac_status=$?
12331   grep -v '^ *+' conftest.er1 >conftest.err
12332   rm -f conftest.er1
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
12341 else
12342   echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345         ac_cv_func_getaddrinfo=no
12346 fi
12347
12348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12349       conftest$ac_exeext conftest.$ac_ext
12350 fi
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
12356
12357 else
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
12362 else
12363   ac_check_lib_save_LIBS=$LIBS
12364 LIBS="-lsocket  $LIBS"
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371
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.  */
12375 #ifdef __cplusplus
12376 extern "C"
12377 #endif
12378 char getaddrinfo ();
12379 int
12380 main ()
12381 {
12382 return getaddrinfo ();
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
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;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394   (eval "$ac_link") 2>conftest.er1
12395   ac_status=$?
12396   grep -v '^ *+' conftest.er1 >conftest.err
12397   rm -f conftest.er1
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
12406 else
12407   echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410         ac_cv_lib_socket_getaddrinfo=no
12411 fi
12412
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
12416 fi
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
12422
12423 else
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
12428 else
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
12431           break
12432         fi
12433       done
12434 fi
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
12439     else
12440       if test x$ipv6_libinet6 = x; then
12441         ipv6_libinet6=no
12442         SAVELDFLAGS="$LDFLAGS"
12443         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
12444       fi
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
12449 else
12450   ac_check_lib_save_LIBS=$LIBS
12451 LIBS="-linet6  $LIBS"
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h.  */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h.  */
12458
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.  */
12462 #ifdef __cplusplus
12463 extern "C"
12464 #endif
12465 char getaddrinfo ();
12466 int
12467 main ()
12468 {
12469 return getaddrinfo ();
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
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;;
12479 esac
12480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12481   (eval "$ac_link") 2>conftest.er1
12482   ac_status=$?
12483   grep -v '^ *+' conftest.er1 >conftest.err
12484   rm -f conftest.er1
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
12493 else
12494   echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12496
12497         ac_cv_lib_inet6_getaddrinfo=no
12498 fi
12499
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
12503 fi
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
12508           ipv6_libinet6=yes
12509           LIBS="$LIBS -linet6"
12510         fi
12511 fi
12512       if test $ipv6_libinet6 = no; then
12513         LDFLAGS="$SAVELDFLAGS"
12514       fi
12515     fi
12516 fi
12517
12518 fi
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
12522 then
12523   ipv6_cv_getaddrinfo=yes
12524 fi
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
12529 /* confdefs.h.  */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h.  */
12534 #include <netdb.h>
12535
12536 _ACEOF
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
12544 else
12545   cat >conftest.$ac_ext <<_ACEOF
12546 /* confdefs.h.  */
12547 _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
12554
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.  */
12559
12560 #ifdef __STDC__
12561 # include <limits.h>
12562 #else
12563 # include <assert.h>
12564 #endif
12565
12566 #undef ${ipv6_cv_pfx}getaddrinfo
12567
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.  */
12571 #ifdef __cplusplus
12572 extern "C"
12573 #endif
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
12579 choke me
12580 #endif
12581
12582 int
12583 main ()
12584 {
12585 return ${ipv6_cv_pfx}getaddrinfo ();
12586   ;
12587   return 0;
12588 }
12589 _ACEOF
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;;
12595 esac
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597   (eval "$ac_link") 2>conftest.er1
12598   ac_status=$?
12599   grep -v '^ *+' conftest.er1 >conftest.err
12600   rm -f conftest.er1
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"
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613         eval "$as_ac_var=no"
12614 fi
12615
12616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12617       conftest$ac_exeext conftest.$ac_ext
12618 fi
12619 ac_res=`eval echo '${'$as_ac_var'}'`
12620                { echo "$as_me:$LINENO: result: $ac_res" >&5
12621 echo "${ECHO_T}$ac_res" >&6; }
12622
12623 fi
12624 rm -f -r conftest*
12625
12626       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
12627
12628 cat >>confdefs.h <<\_ACEOF
12629 #define HAVE_GETADDRINFO
12630 _ACEOF
12631
12632         ipv6_cv_getaddrinfo=yes
12633         break
12634       fi
12635     done
12636   fi
12637 fi
12638 if test $ipv6_cv_getaddrinfo = yes; then
12639
12640 cat >>confdefs.h <<\_ACEOF
12641 #define HAVE_GETADDRINFO
12642 _ACEOF
12643
12644 else
12645   sasl_cv_getaddrinfo=yes
12646 fi
12647 if test $sasl_cv_getaddrinfo = yes; then
12648         case " $LIBOBJS " in
12649   *" getaddrinfo.$ac_objext "* ) ;;
12650   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12651  ;;
12652 esac
12653
12654 fi
12655
12656 GETNAMEINFOOBJS=""
12657 sasl_cv_getnameinfo=no
12658
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
12663 else
12664   cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h.  */
12666 _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
12673
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.  */
12678
12679 #ifdef __STDC__
12680 # include <limits.h>
12681 #else
12682 # include <assert.h>
12683 #endif
12684
12685 #undef getnameinfo
12686
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.  */
12690 #ifdef __cplusplus
12691 extern "C"
12692 #endif
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
12698 choke me
12699 #endif
12700
12701 int
12702 main ()
12703 {
12704 return getnameinfo ();
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
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;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_link") 2>conftest.er1
12717   ac_status=$?
12718   grep -v '^ *+' conftest.er1 >conftest.err
12719   rm -f conftest.er1
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
12728 else
12729   echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732         ac_cv_func_getnameinfo=no
12733 fi
12734
12735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12736       conftest$ac_exeext conftest.$ac_ext
12737 fi
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
12743
12744 else
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
12749 else
12750   ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lsocket  $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758
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.  */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char getnameinfo ();
12766 int
12767 main ()
12768 {
12769 return getnameinfo ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
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;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781   (eval "$ac_link") 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
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
12793 else
12794   echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797         ac_cv_lib_socket_getnameinfo=no
12798 fi
12799
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
12803 fi
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
12809
12810 else
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
12815 else
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
12818           break
12819         fi
12820       done
12821 fi
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
12826     else
12827       if test x$ipv6_libinet6 = x; then
12828         ipv6_libinet6=no
12829         SAVELDFLAGS="$LDFLAGS"
12830         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
12831       fi
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
12836 else
12837   ac_check_lib_save_LIBS=$LIBS
12838 LIBS="-linet6  $LIBS"
12839 cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h.  */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h.  */
12845
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.  */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 char getnameinfo ();
12853 int
12854 main ()
12855 {
12856 return getnameinfo ();
12857   ;
12858   return 0;
12859 }
12860 _ACEOF
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;;
12866 esac
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868   (eval "$ac_link") 2>conftest.er1
12869   ac_status=$?
12870   grep -v '^ *+' conftest.er1 >conftest.err
12871   rm -f conftest.er1
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
12880 else
12881   echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12883
12884         ac_cv_lib_inet6_getnameinfo=no
12885 fi
12886
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
12890 fi
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
12895           ipv6_libinet6=yes
12896           LIBS="$LIBS -linet6"
12897         fi
12898 fi
12899       if test $ipv6_libinet6 = no; then
12900         LDFLAGS="$SAVELDFLAGS"
12901       fi
12902     fi
12903 fi
12904
12905 fi
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
12909 then
12910   ipv6_cv_getnameinfo=yes
12911 fi
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
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921 #include <netdb.h>
12922
12923 _ACEOF
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
12931 else
12932   cat >conftest.$ac_ext <<_ACEOF
12933 /* confdefs.h.  */
12934 _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
12941
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.  */
12946
12947 #ifdef __STDC__
12948 # include <limits.h>
12949 #else
12950 # include <assert.h>
12951 #endif
12952
12953 #undef ${ipv6_cv_pfx}getnameinfo
12954
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.  */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
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
12966 choke me
12967 #endif
12968
12969 int
12970 main ()
12971 {
12972 return ${ipv6_cv_pfx}getnameinfo ();
12973   ;
12974   return 0;
12975 }
12976 _ACEOF
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;;
12982 esac
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984   (eval "$ac_link") 2>conftest.er1
12985   ac_status=$?
12986   grep -v '^ *+' conftest.er1 >conftest.err
12987   rm -f conftest.er1
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"
12996 else
12997   echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
12999
13000         eval "$as_ac_var=no"
13001 fi
13002
13003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13004       conftest$ac_exeext conftest.$ac_ext
13005 fi
13006 ac_res=`eval echo '${'$as_ac_var'}'`
13007                { echo "$as_me:$LINENO: result: $ac_res" >&5
13008 echo "${ECHO_T}$ac_res" >&6; }
13009
13010 fi
13011 rm -f -r conftest*
13012
13013       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
13014
13015 cat >>confdefs.h <<\_ACEOF
13016 #define HAVE_GETADDRINFO
13017 _ACEOF
13018
13019         ipv6_cv_getnameinfo=yes
13020         break
13021       fi
13022     done
13023   fi
13024 fi
13025 if test $ipv6_cv_getnameinfo = yes; then
13026
13027 cat >>confdefs.h <<\_ACEOF
13028 #define HAVE_GETNAMEINFO
13029 _ACEOF
13030
13031 else
13032   sasl_cv_getnameinfo=yes
13033 fi
13034 if test $sasl_cv_getnameinfo = yes; then
13035         case " $LIBOBJS " in
13036   *" getnameinfo.$ac_objext "* ) ;;
13037   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
13038  ;;
13039 esac
13040
13041 fi
13042
13043
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
13048 else
13049   cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h.  */
13051 _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>
13057 int
13058 main ()
13059 {
13060 struct sockaddr_storage ss; int i = ss.ss_family;
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
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;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072   (eval "$ac_compile") 2>conftest.er1
13073   ac_status=$?
13074   grep -v '^ *+' conftest.er1 >conftest.err
13075   rm -f conftest.er1
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
13083 else
13084   echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087         ipv6_cv_ss_family=no
13088 fi
13089
13090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 fi
13092 if test $ipv6_cv_ss_family = yes; then
13093
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_SS_FAMILY
13096 _ACEOF
13097
13098 else
13099   :
13100 fi
13101 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
13102 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
13103
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
13108 else
13109   cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _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>
13117 int
13118 main ()
13119 {
13120 struct sockaddr sa; int i = sa.sa_len;
13121   ;
13122   return 0;
13123 }
13124 _ACEOF
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;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132   (eval "$ac_compile") 2>conftest.er1
13133   ac_status=$?
13134   grep -v '^ *+' conftest.er1 >conftest.err
13135   rm -f conftest.er1
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
13142   ipv6_cv_sa_len=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147         ipv6_cv_sa_len=no
13148 fi
13149
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 fi
13152 if test $ipv6_cv_sa_len = yes; then
13153
13154 cat >>confdefs.h <<\_ACEOF
13155 #define HAVE_SOCKADDR_SA_LEN
13156 _ACEOF
13157
13158 else
13159   :
13160 fi
13161 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
13162 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
13163
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
13168 else
13169   cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h.  */
13171 _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>
13177 int
13178 main ()
13179 {
13180 socklen_t len = 0;
13181   ;
13182   return 0;
13183 }
13184 _ACEOF
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;;
13190 esac
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192   (eval "$ac_link") 2>conftest.er1
13193   ac_status=$?
13194   grep -v '^ *+' conftest.er1 >conftest.err
13195   rm -f conftest.er1
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
13204 else
13205   echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208         ipv6_cv_socklen_t=no
13209 fi
13210
13211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13212       conftest$ac_exeext conftest.$ac_ext
13213 fi
13214 if test $ipv6_cv_socklen_t = yes; then
13215
13216 cat >>confdefs.h <<\_ACEOF
13217 #define HAVE_SOCKLEN_T
13218 _ACEOF
13219
13220 else
13221   :
13222 fi
13223 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
13224 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
13225
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h.  */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h.  */
13232 #include <sys/socket.h>
13233
13234 _ACEOF
13235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13236   $EGREP "sockaddr_storage" >/dev/null 2>&1; then
13237
13238 cat >>confdefs.h <<\_ACEOF
13239 #define HAVE_STRUCT_SOCKADDR_STORAGE
13240 _ACEOF
13241
13242 fi
13243 rm -f -r conftest*
13244
13245
13246
13247
13248
13249
13250
13251
13252 ac_config_headers="$ac_config_headers saslauthd.h"
13253
13254
13255 ac_config_files="$ac_config_files Makefile"
13256
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.
13263 #
13264 # config.status only pays attention to the cache file if you give it
13265 # the --recheck option to rerun configure.
13266 #
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.
13270
13271 _ACEOF
13272
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.
13278 (
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
13281     case $ac_val in #(
13282     *${as_nl}*)
13283       case $ac_var in #(
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;} ;;
13286       esac
13287       case $ac_var in #(
13288       _ | IFS | as_nl) ;; #(
13289       *) $as_unset $ac_var ;;
13290       esac ;;
13291     esac
13292   done
13293
13294   (set) 2>&1 |
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 \).
13299       sed -n \
13300         "s/'/'\\\\''/g;
13301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13302       ;; #(
13303     *)
13304       # `set' quotes correctly as required by POSIX, so do not add quotes.
13305       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13306       ;;
13307     esac |
13308     sort
13309 ) |
13310   sed '
13311      /^ac_cv_env_/b end
13312      t clear
13313      :clear
13314      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13315      t end
13316      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13317      :end' >>confcache
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
13324   else
13325     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13327   fi
13328 fi
13329 rm -f confcache
13330
13331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13332 # Let make expand exec_prefix.
13333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13334
13335 DEFS=-DHAVE_CONFIG_H
13336
13337 ac_libobjs=
13338 ac_ltlibobjs=
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'
13347 done
13348 LIBOBJS=$ac_libobjs
13349
13350 LTLIBOBJS=$ac_ltlibobjs
13351
13352
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; }; }
13359 fi
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; }; }
13366 fi
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; }; }
13373 fi
13374
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
13381 #! $SHELL
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.
13386
13387 debug=false
13388 ac_cs_recheck=false
13389 ac_cs_silent=false
13390 SHELL=\${CONFIG_SHELL-$SHELL}
13391 _ACEOF
13392
13393 cat >>$CONFIG_STATUS <<\_ACEOF
13394 ## --------------------- ##
13395 ## M4sh Initialization.  ##
13396 ## --------------------- ##
13397
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
13401   emulate sh
13402   NULLCMD=:
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
13407 else
13408   case `(set -o) 2>/dev/null` in
13409   *posix*) set -o posix ;;
13410 esac
13411
13412 fi
13413
13414
13415
13416
13417 # PATH needs CR
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
13424
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
13429   chmod +x conf$$.sh
13430   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13431     PATH_SEPARATOR=';'
13432   else
13433     PATH_SEPARATOR=:
13434   fi
13435   rm -f conf$$.sh
13436 fi
13437
13438 # Support unset when possible.
13439 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13440   as_unset=unset
13441 else
13442   as_unset=false
13443 fi
13444
13445
13446 # IFS
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.)
13451 as_nl='
13452 '
13453 IFS=" ""        $as_nl"
13454
13455 # Find who we are.  Look in the path if we contain no directory separator.
13456 case $0 in
13457   *[\\/]* ) as_myself=$0 ;;
13458   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13460 do
13461   IFS=$as_save_IFS
13462   test -z "$as_dir" && as_dir=.
13463   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13464 done
13465 IFS=$as_save_IFS
13466
13467      ;;
13468 esac
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
13472   as_myself=$0
13473 fi
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; }
13477 fi
13478
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
13482 done
13483 PS1='$ '
13484 PS2='> '
13485 PS4='+ '
13486
13487 # NLS nuisances.
13488 for as_var in \
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
13492 do
13493   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13494     eval $as_var=C; export $as_var
13495   else
13496     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13497   fi
13498 done
13499
13500 # Required to use basename.
13501 if expr a : '\(a\)' >/dev/null 2>&1 &&
13502    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13503   as_expr=expr
13504 else
13505   as_expr=false
13506 fi
13507
13508 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13509   as_basename=basename
13510 else
13511   as_basename=false
13512 fi
13513
13514
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 ||
13520 echo X/"$0" |
13521     sed '/^.*\/\([^/][^/]*\)\/*$/{
13522             s//\1/
13523             q
13524           }
13525           /^X\/\(\/\/\)$/{
13526             s//\1/
13527             q
13528           }
13529           /^X\/\(\/\).*/{
13530             s//\1/
13531             q
13532           }
13533           s/.*/./; q'`
13534
13535 # CDPATH.
13536 $as_unset CDPATH
13537
13538
13539
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" || {
13544
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.  :-)
13555   sed -n '
13556     p
13557     /[$]LINENO/=
13558   ' <$as_myself |
13559     sed '
13560       s/[$]LINENO.*/&-/
13561       t lineno
13562       b
13563       :lineno
13564       N
13565       :loop
13566       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13567       t loop
13568       s/-\n.*//
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; }; }
13573
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.
13579   exit
13580 }
13581
13582
13583 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13584   as_dirname=dirname
13585 else
13586   as_dirname=false
13587 fi
13588
13589 ECHO_C= ECHO_N= ECHO_T=
13590 case `echo -n x` in
13591 -n*)
13592   case `echo 'x\c'` in
13593   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13594   *)   ECHO_C='\c';;
13595   esac;;
13596 *)
13597   ECHO_N='-n';;
13598 esac
13599
13600 if expr a : '\(a\)' >/dev/null 2>&1 &&
13601    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13602   as_expr=expr
13603 else
13604   as_expr=false
13605 fi
13606
13607 rm -f conf$$ conf$$.exe conf$$.file
13608 if test -d conf$$.dir; then
13609   rm -f conf$$.dir/conf$$.file
13610 else
13611   rm -f conf$$.dir
13612   mkdir conf$$.dir
13613 fi
13614 echo >conf$$.file
13615 if ln -s conf$$.file conf$$ 2>/dev/null; then
13616   as_ln_s='ln -s'
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 ||
13622     as_ln_s='cp -p'
13623 elif ln conf$$.file conf$$ 2>/dev/null; then
13624   as_ln_s=ln
13625 else
13626   as_ln_s='cp -p'
13627 fi
13628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13629 rmdir conf$$.dir 2>/dev/null
13630
13631 if mkdir -p . 2>/dev/null; then
13632   as_mkdir_p=:
13633 else
13634   test -d ./-p && rmdir ./-p
13635   as_mkdir_p=false
13636 fi
13637
13638 if test -x / >/dev/null 2>&1; then
13639   as_test_x='test -x'
13640 else
13641   if ls -dL / >/dev/null 2>&1; then
13642     as_ls_L_option=L
13643   else
13644     as_ls_L_option=
13645   fi
13646   as_test_x='
13647     eval sh -c '\''
13648       if test -d "$1"; then
13649         test -d "$1/.";
13650       else
13651         case $1 in
13652         -*)set "./$1";;
13653         esac;
13654         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13655         ???[sx]*):;;*)false;;esac;fi
13656     '\'' sh
13657   '
13658 fi
13659 as_executable_p=$as_test_x
13660
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'"
13663
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'"
13666
13667
13668 exec 6>&1
13669
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.
13673 ac_log="
13674 This file was extended by $as_me, which was
13675 generated by GNU Autoconf 2.61.  Invocation command line was
13676
13677   CONFIG_FILES    = $CONFIG_FILES
13678   CONFIG_HEADERS  = $CONFIG_HEADERS
13679   CONFIG_LINKS    = $CONFIG_LINKS
13680   CONFIG_COMMANDS = $CONFIG_COMMANDS
13681   $ $0 $@
13682
13683 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13684 "
13685
13686 _ACEOF
13687
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"
13693
13694 _ACEOF
13695
13696 cat >>$CONFIG_STATUS <<\_ACEOF
13697 ac_cs_usage="\
13698 \`$as_me' instantiates files from templates according to the
13699 current configuration.
13700
13701 Usage: $0 [OPTIONS] [FILE]...
13702
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
13712
13713 Configuration files:
13714 $config_files
13715
13716 Configuration headers:
13717 $config_headers
13718
13719 Configuration commands:
13720 $config_commands
13721
13722 Report bugs to <bug-autoconf@gnu.org>."
13723
13724 _ACEOF
13725 cat >>$CONFIG_STATUS <<_ACEOF
13726 ac_cs_version="\\
13727 config.status
13728 configured by $0, generated by GNU Autoconf 2.61,
13729   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13730
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."
13734
13735 ac_pwd='$ac_pwd'
13736 srcdir='$srcdir'
13737 INSTALL='$INSTALL'
13738 MKDIR_P='$MKDIR_P'
13739 _ACEOF
13740
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.
13744 ac_need_defaults=:
13745 while test $# != 0
13746 do
13747   case $1 in
13748   --*=*)
13749     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13750     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13751     ac_shift=:
13752     ;;
13753   *)
13754     ac_option=$1
13755     ac_optarg=$2
13756     ac_shift=shift
13757     ;;
13758   esac
13759
13760   case $ac_option in
13761   # Handling of the options.
13762   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13763     ac_cs_recheck=: ;;
13764   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13765     echo "$ac_cs_version"; exit ;;
13766   --debug | --debu | --deb | --de | --d | -d )
13767     debug=: ;;
13768   --file | --fil | --fi | --f )
13769     $ac_shift
13770     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13771     ac_need_defaults=false;;
13772   --header | --heade | --head | --hea )
13773     $ac_shift
13774     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13775     ac_need_defaults=false;;
13776   --he | --h)
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)
13785     ac_cs_silent=: ;;
13786
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; }; } ;;
13791
13792   *) ac_config_targets="$ac_config_targets $1"
13793      ac_need_defaults=false ;;
13794
13795   esac
13796   shift
13797 done
13798
13799 ac_configure_extra_args=
13800
13801 if $ac_cs_silent; then
13802   exec 6>/dev/null
13803   ac_configure_extra_args="$ac_configure_extra_args --silent"
13804 fi
13805
13806 _ACEOF
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
13813 fi
13814
13815 _ACEOF
13816 cat >>$CONFIG_STATUS <<\_ACEOF
13817 exec 5>>config.log
13818 {
13819   echo
13820   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13821 ## Running $as_me. ##
13822 _ASBOX
13823   echo "$ac_log"
13824 } >&5
13825
13826 _ACEOF
13827 cat >>$CONFIG_STATUS <<_ACEOF
13828 #
13829 # INIT-COMMANDS
13830 #
13831 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13832
13833 _ACEOF
13834
13835 cat >>$CONFIG_STATUS <<\_ACEOF
13836
13837 # Handling of arguments.
13838 for ac_config_target in $ac_config_targets
13839 do
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" ;;
13844
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; }; };;
13848   esac
13849 done
13850
13851
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
13860 fi
13861
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'.
13868 $debug ||
13869 {
13870   tmp=
13871   trap 'exit_status=$?
13872   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13873 ' 0
13874   trap '{ (exit 1); exit 1; }' 1 2 13 15
13875 }
13876 # Create a (secure) tmp directory for tmp files.
13877
13878 {
13879   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13880   test -n "$tmp" && test -d "$tmp"
13881 }  ||
13882 {
13883   tmp=./conf$$-$RANDOM
13884   (umask 077 && mkdir "$tmp")
13885 } ||
13886 {
13887    echo "$me: cannot create a temporary directory in ." >&2
13888    { (exit 1); exit 1; }
13889 }
13890
13891 #
13892 # Set up the sed scripts for CONFIG_FILES section.
13893 #
13894
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
13898
13899 _ACEOF
13900
13901
13902
13903 ac_delim='%!_!# '
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
13969 AWK!$AWK$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
13975 CC!$CC$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
13991 CPP!$CPP$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
14003 _ACEOF
14004
14005   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14006     break
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; }; }
14011   else
14012     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14013   fi
14014 done
14015
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`
14020 fi
14021
14022 cat >>$CONFIG_STATUS <<_ACEOF
14023 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14025 _ACEOF
14026 sed '
14027 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14028 s/^/s,@/; s/!/@,|#_!!_#|/
14029 :n
14030 t n
14031 s/'"$ac_delim"'$/,g/; t
14032 s/$/\\/; p
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
14037 CEOF$ac_eof
14038 _ACEOF
14039
14040
14041 ac_delim='%!_!# '
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
14055 _ACEOF
14056
14057   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
14058     break
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; }; }
14063   else
14064     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14065   fi
14066 done
14067
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`
14072 fi
14073
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
14077 _ACEOF
14078 sed '
14079 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14080 s/^/s,@/; s/!/@,|#_!!_#|/
14081 :n
14082 t n
14083 s/'"$ac_delim"'$/,g/; t
14084 s/$/\\/; p
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
14089 :end
14090 s/|#_!!_#|//g
14091 CEOF$ac_eof
14092 _ACEOF
14093
14094
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}:*/:/
14103 s/:*@srcdir@:*/:/
14104 s/^\([^=]*=[     ]*\):*/\1/
14105 s/:*$//
14106 s/^[^=]*=[       ]*$//
14107 }'
14108 fi
14109
14110 cat >>$CONFIG_STATUS <<\_ACEOF
14111 fi # test -n "$CONFIG_FILES"
14112
14113
14114 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
14115 do
14116   case $ac_tag in
14117   :[FHLC]) ac_mode=$ac_tag; continue;;
14118   esac
14119   case $ac_mode$ac_tag in
14120   :[FHL]*:*);;
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;;
14126   esac
14127   ac_save_IFS=$IFS
14128   IFS=:
14129   set x $ac_tag
14130   IFS=$ac_save_IFS
14131   shift
14132   ac_file=$1
14133   shift
14134
14135   case $ac_mode in
14136   :L) ac_source=$1;;
14137   :[FH])
14138     ac_file_inputs=
14139     for ac_f
14140     do
14141       case $ac_f 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 `:'.
14146          test -f "$ac_f" ||
14147            case $ac_f in
14148            [\\/$]*) false;;
14149            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14150            esac ||
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; }; };;
14154       esac
14155       ac_file_inputs="$ac_file_inputs $ac_f"
14156     done
14157
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;}
14167     fi
14168
14169     case $ac_tag in
14170     *:-:* | *:-) cat >"$tmp/stdin";;
14171     esac
14172     ;;
14173   esac
14174
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 ||
14180 echo X"$ac_file" |
14181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14182             s//\1/
14183             q
14184           }
14185           /^X\(\/\/\)[^/].*/{
14186             s//\1/
14187             q
14188           }
14189           /^X\(\/\/\)$/{
14190             s//\1/
14191             q
14192           }
14193           /^X\(\/\).*/{
14194             s//\1/
14195             q
14196           }
14197           s/.*/./; q'`
14198   { as_dir="$ac_dir"
14199   case $as_dir in #(
14200   -*) as_dir=./$as_dir;;
14201   esac
14202   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14203     as_dirs=
14204     while :; do
14205       case $as_dir in #(
14206       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14207       *) as_qdir=$as_dir;;
14208       esac
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 ||
14215 echo X"$as_dir" |
14216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14217             s//\1/
14218             q
14219           }
14220           /^X\(\/\/\)[^/].*/{
14221             s//\1/
14222             q
14223           }
14224           /^X\(\/\/\)$/{
14225             s//\1/
14226             q
14227           }
14228           /^X\(\/\).*/{
14229             s//\1/
14230             q
14231           }
14232           s/.*/./; q'`
14233       test -d "$as_dir" && break
14234     done
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; }; }; }
14239   ac_builddir=.
14240
14241 case "$ac_dir" in
14242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14243 *)
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/ ;;
14250   esac ;;
14251 esac
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
14256
14257 case $srcdir in
14258   .)  # We are building in place.
14259     ac_srcdir=.
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 ;;
14270 esac
14271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14272
14273
14274   case $ac_mode in
14275   :F)
14276   #
14277   # CONFIG_FILE
14278   #
14279
14280   case $INSTALL in
14281   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14282   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14283   esac
14284   ac_MKDIR_P=$MKDIR_P
14285   case $MKDIR_P in
14286   [\\/$]* | ?:[\\/]* ) ;;
14287   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14288   esac
14289 _ACEOF
14290
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=
14295
14296 case `sed -n '/datarootdir/ {
14297   p
14298   q
14299 }
14300 /@datadir@/p
14301 /@docdir@/p
14302 /@infodir@/p
14303 /@localedir@/p
14304 /@mandir@/p
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;}
14310 _ACEOF
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' ;;
14319 esac
14320 _ACEOF
14321
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
14326   sed "$ac_vpsub
14327 $extrasub
14328 _ACEOF
14329 cat >>$CONFIG_STATUS <<\_ACEOF
14330 :t
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
14345
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;}
14353
14354   rm -f "$tmp/stdin"
14355   case $ac_file in
14356   -) cat "$tmp/out"; rm -f "$tmp/out";;
14357   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14358   esac
14359  ;;
14360   :H)
14361   #
14362   # CONFIG_HEADER
14363   #
14364 _ACEOF
14365
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'
14383 ac_dC=' '
14384 ac_dD=' ,'
14385
14386 uniq confdefs.h |
14387   sed -n '
14388         t rset
14389         :rset
14390         s/^[     ]*#[    ]*define[       ][      ]*//
14391         t ok
14392         d
14393         :ok
14394         s/[\\&,]/\\&/g
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
14398
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.)
14404 echo 's/ $//
14405 s,^[     #]*u.*,/* & */,' >>conftest.defines
14406
14407 # Break up conftest.defines:
14408 ac_max_sed_lines=50
14409
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"
14413 # et cetera.
14414 ac_in='$ac_file_inputs'
14415 ac_out='"$tmp/out1"'
14416 ac_nxt='"$tmp/out2"'
14417
14418 while :
14419 do
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
14426 b
14427 :def
14428 _ACEOF
14429   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14430   echo 'CEOF
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
14437 done
14438 rm -f conftest.defines conftest.tail
14439
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;}
14448     else
14449       rm -f $ac_file
14450       mv "$tmp/config.h" $ac_file
14451     fi
14452   else
14453     echo "/* $configure_input  */"
14454     cat "$ac_result"
14455   fi
14456   rm -f "$tmp/out12"
14457 # Compute $ac_file's index in $config_headers.
14458 _am_stamp_count=1
14459 for _am_header in $config_headers :; do
14460   case $_am_header in
14461     $ac_file | $ac_file:* )
14462       break ;;
14463     * )
14464       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14465   esac
14466 done
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 ||
14472 echo X$ac_file |
14473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14474             s//\1/
14475             q
14476           }
14477           /^X\(\/\/\)[^/].*/{
14478             s//\1/
14479             q
14480           }
14481           /^X\(\/\/\)$/{
14482             s//\1/
14483             q
14484           }
14485           /^X\(\/\).*/{
14486             s//\1/
14487             q
14488           }
14489           s/.*/./; q'`/stamp-h$_am_stamp_count
14490  ;;
14491
14492   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14493 echo "$as_me: executing $ac_file commands" >&6;}
14494  ;;
14495   esac
14496
14497
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 ||
14515 echo X"$mf" |
14516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14517             s//\1/
14518             q
14519           }
14520           /^X\(\/\/\)[^/].*/{
14521             s//\1/
14522             q
14523           }
14524           /^X\(\/\/\)$/{
14525             s//\1/
14526             q
14527           }
14528           /^X\(\/\).*/{
14529             s//\1/
14530             q
14531           }
14532           s/.*/./; q'`
14533   else
14534     continue
14535   fi
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
14548   # expansion.
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 ||
14559 echo X"$file" |
14560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14561             s//\1/
14562             q
14563           }
14564           /^X\(\/\/\)[^/].*/{
14565             s//\1/
14566             q
14567           }
14568           /^X\(\/\/\)$/{
14569             s//\1/
14570             q
14571           }
14572           /^X\(\/\).*/{
14573             s//\1/
14574             q
14575           }
14576           s/.*/./; q'`
14577     { as_dir=$dirpart/$fdir
14578   case $as_dir in #(
14579   -*) as_dir=./$as_dir;;
14580   esac
14581   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14582     as_dirs=
14583     while :; do
14584       case $as_dir in #(
14585       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14586       *) as_qdir=$as_dir;;
14587       esac
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 ||
14594 echo X"$as_dir" |
14595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14596             s//\1/
14597             q
14598           }
14599           /^X\(\/\/\)[^/].*/{
14600             s//\1/
14601             q
14602           }
14603           /^X\(\/\/\)$/{
14604             s//\1/
14605             q
14606           }
14607           /^X\(\/\).*/{
14608             s//\1/
14609             q
14610           }
14611           s/.*/./; q'`
14612       test -d "$as_dir" && break
14613     done
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"
14620   done
14621 done
14622  ;;
14623
14624   esac
14625 done # for ac_tag
14626
14627
14628 { (exit 0); exit 0; }
14629 _ACEOF
14630 chmod +x $CONFIG_STATUS
14631 ac_clean_files=$ac_clean_files_save
14632
14633
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
14643   ac_cs_success=:
14644   ac_config_status_args=
14645   test "$silent" = yes &&
14646     ac_config_status_args="$ac_config_status_args --quiet"
14647   exec 5>/dev/null
14648   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14649   exec 5>>config.log
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; }
14653 fi
14654