check for gssapi_ext.h
[cyrus-sasl.git] / 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
218 (
219   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
220     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
221     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
222     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
223     PATH=/empty FPATH=/empty; export PATH FPATH
224     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
225       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" )) || { (exit 1); exit 1; }
226 ") 2> /dev/null; then
227   :
228 else
229   as_candidate_shells=
230     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
231 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
232 do
233   IFS=$as_save_IFS
234   test -z "$as_dir" && as_dir=.
235   case $as_dir in
236          /*)
237            for as_base in sh bash ksh sh5; do
238              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239            done;;
240        esac
241 done
242 IFS=$as_save_IFS
243
244
245       for as_shell in $as_candidate_shells $SHELL; do
246          # Try only shells that exist, to save several forks.
247          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
248                 { ("$as_shell") 2> /dev/null <<\_ASEOF
249 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
250   emulate sh
251   NULLCMD=:
252   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
253   # is contrary to our usage.  Disable this feature.
254   alias -g '${1+"$@"}'='"$@"'
255   setopt NO_GLOB_SUBST
256 else
257   case `(set -o) 2>/dev/null` in
258   *posix*) set -o posix ;;
259 esac
260
261 fi
262
263
264 :
265 _ASEOF
266 }; then
267   CONFIG_SHELL=$as_shell
268                as_have_required=yes
269                if { "$as_shell" 2> /dev/null <<\_ASEOF
270 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
271   emulate sh
272   NULLCMD=:
273   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
274   # is contrary to our usage.  Disable this feature.
275   alias -g '${1+"$@"}'='"$@"'
276   setopt NO_GLOB_SUBST
277 else
278   case `(set -o) 2>/dev/null` in
279   *posix*) set -o posix ;;
280 esac
281
282 fi
283
284
285 :
286 (as_func_return () {
287   (exit $1)
288 }
289 as_func_success () {
290   as_func_return 0
291 }
292 as_func_failure () {
293   as_func_return 1
294 }
295 as_func_ret_success () {
296   return 0
297 }
298 as_func_ret_failure () {
299   return 1
300 }
301
302 exitcode=0
303 if as_func_success; then
304   :
305 else
306   exitcode=1
307   echo as_func_success failed.
308 fi
309
310 if as_func_failure; then
311   exitcode=1
312   echo as_func_failure succeeded.
313 fi
314
315 if as_func_ret_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_ret_success failed.
320 fi
321
322 if as_func_ret_failure; then
323   exitcode=1
324   echo as_func_ret_failure succeeded.
325 fi
326
327 if ( set x; as_func_ret_success y && test x = "$1" ); then
328   :
329 else
330   exitcode=1
331   echo positional parameters were not saved.
332 fi
333
334 test $exitcode = 0) || { (exit 1); exit 1; }
335
336 (
337   as_lineno_1=$LINENO
338   as_lineno_2=$LINENO
339   test "x$as_lineno_1" != "x$as_lineno_2" &&
340   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
341
342 (
343   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
344     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
345     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
346     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
347     PATH=/empty FPATH=/empty; export PATH FPATH
348     test "X`printf %s $ECHO`" = "X$ECHO" \
349       || test "X`print -r -- $ECHO`" = "X$ECHO" )) || { (exit 1); exit 1; }
350
351 _ASEOF
352 }; then
353   break
354 fi
355
356 fi
357
358       done
359
360       if test "x$CONFIG_SHELL" != x; then
361   for as_var in BASH_ENV ENV
362         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
363         done
364         export CONFIG_SHELL
365         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
366 fi
367
368
369     if test $as_have_required = no; then
370   echo This script requires a shell more modern than all the
371       echo shells that I found on your system.  Please install a
372       echo modern shell, or manually run the script under such a
373       echo shell if you do have one.
374       { (exit 1); exit 1; }
375 fi
376
377
378 fi
379
380 fi
381
382
383
384 (eval "as_func_return () {
385   (exit \$1)
386 }
387 as_func_success () {
388   as_func_return 0
389 }
390 as_func_failure () {
391   as_func_return 1
392 }
393 as_func_ret_success () {
394   return 0
395 }
396 as_func_ret_failure () {
397   return 1
398 }
399
400 exitcode=0
401 if as_func_success; then
402   :
403 else
404   exitcode=1
405   echo as_func_success failed.
406 fi
407
408 if as_func_failure; then
409   exitcode=1
410   echo as_func_failure succeeded.
411 fi
412
413 if as_func_ret_success; then
414   :
415 else
416   exitcode=1
417   echo as_func_ret_success failed.
418 fi
419
420 if as_func_ret_failure; then
421   exitcode=1
422   echo as_func_ret_failure succeeded.
423 fi
424
425 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
426   :
427 else
428   exitcode=1
429   echo positional parameters were not saved.
430 fi
431
432 test \$exitcode = 0") || {
433   echo No shell found that supports shell functions.
434   echo Please tell autoconf@gnu.org about your system,
435   echo including any error possibly output before this
436   echo message
437 }
438
439
440
441   as_lineno_1=$LINENO
442   as_lineno_2=$LINENO
443   test "x$as_lineno_1" != "x$as_lineno_2" &&
444   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
445
446   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
447   # uniformly replaced by the line number.  The first 'sed' inserts a
448   # line-number line after each line using $LINENO; the second 'sed'
449   # does the real work.  The second script uses 'N' to pair each
450   # line-number line with the line containing $LINENO, and appends
451   # trailing '-' during substitution so that $LINENO is not a special
452   # case at line end.
453   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
454   # scripts with optimization help from Paolo Bonzini.  Blame Lee
455   # E. McMahon (1931-1989) for sed's syntax.  :-)
456   sed -n '
457     p
458     /[$]LINENO/=
459   ' <$as_myself |
460     sed '
461       s/[$]LINENO.*/&-/
462       t lineno
463       b
464       :lineno
465       N
466       :loop
467       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
468       t loop
469       s/-\n.*//
470     ' >$as_me.lineno &&
471   chmod +x "$as_me.lineno" ||
472     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
473    { (exit 1); exit 1; }; }
474
475   # Don't try to exec as it changes $[0], causing all sort of problems
476   # (the dirname of $[0] is not the place where we might find the
477   # original and so on.  Autoconf is especially sensitive to this).
478   . "./$as_me.lineno"
479   # Exit status is that of the last command.
480   exit
481 }
482
483
484 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
485   as_dirname=dirname
486 else
487   as_dirname=false
488 fi
489
490 ECHO_C= ECHO_N= ECHO_T=
491 case `echo -n x` in
492 -n*)
493   case `echo 'x\c'` in
494   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
495   *)   ECHO_C='\c';;
496   esac;;
497 *)
498   ECHO_N='-n';;
499 esac
500
501 if expr a : '\(a\)' >/dev/null 2>&1 &&
502    test "X`expr 00001 : '.*\(...\)'`" = X001; then
503   as_expr=expr
504 else
505   as_expr=false
506 fi
507
508 rm -f conf$$ conf$$.exe conf$$.file
509 if test -d conf$$.dir; then
510   rm -f conf$$.dir/conf$$.file
511 else
512   rm -f conf$$.dir
513   mkdir conf$$.dir
514 fi
515 echo >conf$$.file
516 if ln -s conf$$.file conf$$ 2>/dev/null; then
517   as_ln_s='ln -s'
518   # ... but there are two gotchas:
519   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
520   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
521   # In both cases, we have to default to `cp -p'.
522   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
523     as_ln_s='cp -p'
524 elif ln conf$$.file conf$$ 2>/dev/null; then
525   as_ln_s=ln
526 else
527   as_ln_s='cp -p'
528 fi
529 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
530 rmdir conf$$.dir 2>/dev/null
531
532 if mkdir -p . 2>/dev/null; then
533   as_mkdir_p=:
534 else
535   test -d ./-p && rmdir ./-p
536   as_mkdir_p=false
537 fi
538
539 if test -x / >/dev/null 2>&1; then
540   as_test_x='test -x'
541 else
542   if ls -dL / >/dev/null 2>&1; then
543     as_ls_L_option=L
544   else
545     as_ls_L_option=
546   fi
547   as_test_x='
548     eval sh -c '\''
549       if test -d "$1"; then
550         test -d "$1/.";
551       else
552         case $1 in
553         -*)set "./$1";;
554         esac;
555         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
556         ???[sx]*):;;*)false;;esac;fi
557     '\'' sh
558   '
559 fi
560 as_executable_p=$as_test_x
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 exec 7<&0 </dev/null 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590 SHELL=${CONFIG_SHELL-/bin/sh}
591
592 # Identity of this package.
593 PACKAGE_NAME=
594 PACKAGE_TARNAME=
595 PACKAGE_VERSION=
596 PACKAGE_STRING=
597 PACKAGE_BUGREPORT=
598
599 ac_unique_file="lib/saslint.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='SHELL
637 PATH_SEPARATOR
638 PACKAGE_NAME
639 PACKAGE_TARNAME
640 PACKAGE_VERSION
641 PACKAGE_STRING
642 PACKAGE_BUGREPORT
643 exec_prefix
644 prefix
645 program_transform_name
646 bindir
647 sbindir
648 libexecdir
649 datarootdir
650 datadir
651 sysconfdir
652 sharedstatedir
653 localstatedir
654 includedir
655 oldincludedir
656 docdir
657 infodir
658 htmldir
659 dvidir
660 pdfdir
661 psdir
662 libdir
663 localedir
664 mandir
665 DEFS
666 ECHO_C
667 ECHO_N
668 ECHO_T
669 LIBS
670 build_alias
671 host_alias
672 target_alias
673 build
674 build_cpu
675 build_vendor
676 build_os
677 host
678 host_cpu
679 host_vendor
680 host_os
681 target
682 target_cpu
683 target_vendor
684 target_os
685 INSTALL_PROGRAM
686 INSTALL_SCRIPT
687 INSTALL_DATA
688 am__isrc
689 CYGPATH_W
690 PACKAGE
691 VERSION
692 ACLOCAL
693 AUTOCONF
694 AUTOMAKE
695 AUTOHEADER
696 MAKEINFO
697 install_sh
698 STRIP
699 INSTALL_STRIP_PROGRAM
700 mkdir_p
701 AWK
702 SET_MAKE
703 am__leading_dot
704 AMTAR
705 am__tar
706 am__untar
707 CC
708 CFLAGS
709 LDFLAGS
710 CPPFLAGS
711 ac_ct_CC
712 EXEEXT
713 OBJEXT
714 DEPDIR
715 am__include
716 am__quote
717 AMDEP_TRUE
718 AMDEP_FALSE
719 AMDEPBACKSLASH
720 CCDEPMODE
721 am__fastdepCC_TRUE
722 am__fastdepCC_FALSE
723 CPP
724 LN_S
725 LIBTOOL
726 SED
727 GREP
728 EGREP
729 FGREP
730 LD
731 DUMPBIN
732 ac_ct_DUMPBIN
733 NM
734 OBJDUMP
735 AR
736 RANLIB
737 DSYMUTIL
738 NMEDIT
739 LIPO
740 OTOOL
741 OTOOL64
742 PURECOV
743 PURIFY
744 JAVAC
745 JAVAH
746 JAVADOC
747 JAVA_TRUE
748 JAVA_FALSE
749 JAVA_INCLUDES
750 JAVAROOT
751 SAMPLE_TRUE
752 SAMPLE_FALSE
753 LIB_SOCKET
754 SASL_DB_UTILS
755 SASL_DB_MANS
756 SASL_DB_BACKEND
757 SASL_DB_BACKEND_STATIC
758 SASL_DB_INC
759 SASL_DB_LIB
760 NO_SASL_DB_MANS_TRUE
761 NO_SASL_DB_MANS_FALSE
762 SASL_DL_LIB
763 SASLAUTHD_TRUE
764 SASLAUTHD_FALSE
765 PWCHECKMETH
766 PWCHECK_TRUE
767 PWCHECK_FALSE
768 IPCTYPE
769 LIB_DOOR
770 CMU_LIB_SUBDIR
771 LIB_DES
772 OTP_LIBS
773 SRP_LIBS
774 SASL_KRB_LIB
775 LIB_CRYPT
776 GSSAPI_LIBS
777 GSSAPIBASE_LIBS
778 PLAIN_LIBS
779 NTLM_LIBS
780 PASSDSS_LIBS
781 LIB_MYSQL
782 LIB_PGSQL
783 LIB_SQLITE
784 LIB_LDAP
785 SASL_MECHS
786 SASL_STATIC_SRCS
787 SASL_STATIC_OBJS
788 SASL_STATIC_LIBS
789 plugindir
790 configdir
791 MACOSX_TRUE
792 MACOSX_FALSE
793 DMALLOC_LIBS
794 SFIO_INC_FLAGS
795 SFIO_LIB_FLAGS
796 SMTPTEST_PROGRAM
797 SASL_UTIL_LIBS_EXTRA
798 SASL_UTIL_HEADERS_EXTRA
799 LIBOBJS
800 GETSUBOPT
801 SNPRINTFOBJS
802 LTSNPRINTFOBJS
803 GETADDRINFOOBJS
804 LTGETADDRINFOOBJS
805 GETNAMEINFOOBJS
806 LTGETNAMEINFOOBJS
807 LTLIBOBJS
808 DIRS
809 subdirs'
810 ac_subst_files=''
811       ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CPP'
820 ac_subdirs_all='saslauthd'
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
929     eval enable_$ac_feature=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
945       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946    { (exit 1); exit 1; }; }
947     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
948     eval enable_$ac_feature=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1145     eval with_$ac_package=\$ac_optarg ;;
1146
1147   -without-* | --without-*)
1148     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1154     eval with_$ac_package=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176    { (exit 1); exit 1; }; }
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184    { (exit 1); exit 1; }; }
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   { echo "$as_me: error: missing argument to $ac_option" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 # Be sure to have absolute directory names.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217    { (exit 1); exit 1; }; }
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232     If a cross compiler is detected then cross compile mode will be used." >&2
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   { echo "$as_me: error: Working directory cannot be determined" >&2
1248    { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   { echo "$as_me: error: pwd does not report name of working directory" >&2
1251    { (exit 1); exit 1; }; }
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$0" : 'X\(//\)[^/]' \| \
1261          X"$0" : 'X\(//\)$' \| \
1262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296    { (exit 1); exit 1; }; }
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures this package to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR           user executables [EPREFIX/bin]
1357   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR       program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR           object code libraries [EPREFIX/lib]
1363   --includedir=DIR       C header files [PREFIX/include]
1364   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR          info documentation [DATAROOTDIR/info]
1368   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR           man documentation [DATAROOTDIR/man]
1370   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1371   --htmldir=DIR          html documentation [DOCDIR]
1372   --dvidir=DIR           dvi documentation [DOCDIR]
1373   --pdfdir=DIR           pdf documentation [DOCDIR]
1374   --psdir=DIR            ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 Program names:
1380   --program-prefix=PREFIX            prepend PREFIX to installed program names
1381   --program-suffix=SUFFIX            append SUFFIX to installed program names
1382   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1383
1384 System types:
1385   --build=BUILD     configure for building on BUILD [guessed]
1386   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387   --target=TARGET   configure for building compilers for TARGET [HOST]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-cmulocal       enable local mods for CMU [[no]]
1399   --enable-sample         compile sample code [[yes]]
1400   --disable-dependency-tracking  speeds up one-time build
1401   --enable-dependency-tracking   do not reject slow dependency extractors
1402   --enable-static[=PKGS]  build static libraries [default=no]
1403   --enable-shared[=PKGS]  build shared libraries [default=yes]
1404   --enable-fast-install[=PKGS]
1405                           optimize for fast installation [default=yes]
1406   --disable-libtool-lock  avoid locking (might break parallel builds)
1407   --enable-staticdlopen   try dynamic plugins when we are a static libsasl [no]
1408   --enable-java           compile Java support [no]
1409   --enable-keep-db-open   keep handle to Berkeley DB open for improved performance [no]
1410   --enable-alwaystrue     enable the alwaystrue password verifier (discouraged)
1411   --enable-checkapop      enable use of sasl_checkapop [yes]
1412   --enable-cram           enable CRAM-MD5 authentication [yes]
1413   --enable-digest         enable DIGEST-MD5 authentication [yes]
1414   --enable-otp            enable OTP authentication [yes]
1415   --enable-srp            enable SRP authentication [no]
1416   --enable-srp-setpass    enable setting SRP secrets with saslpasswd [no]
1417   --enable-krb4           enable KERBEROS_V4 authentication [no]
1418   --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
1419   --enable-gss_mutexes     use mutexes around calls to the GSS library
1420   --enable-plain          enable PLAIN authentication yes
1421   --enable-anon           enable ANONYMOUS authentication [yes]
1422   --enable-login          enable unsupported LOGIN authentication [no]
1423   --enable-ntlm           enable unsupported NTLM authentication [no]
1424   --enable-passdss        enable PASSDSS authentication (experimental) [no]
1425   --enable-sql            enable SQL auxprop [no]
1426   --enable-ldapdb         enable LDAPDB plugin no
1427   --disable-macos-framework       disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no]
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432
1433   --with-pic              try to use only PIC/non-PIC objects [default=use
1434                           both]
1435   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1436   --with-purecov          link with purecov
1437   --with-purify           link with purify
1438   --with-javabase=PATH    set path to find jni.h in /usr/java/include
1439   --with-dbpath=PATH      set the DB path to use /etc/sasldb2
1440   --with-dblib=DBLIB      set the DB library to use berkeley
1441   --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
1442   --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
1443   --with-gdbm=PATH        use gdbm from PATH
1444   --with-devrandom=PATH   set the path to /dev/random [/dev/random]
1445   --with-pam=DIR          use PAM (rooted in DIR) [yes]
1446   --with-saslauthd=DIR    enable use of the saslauth daemon using state dir DIR
1447   --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes]
1448   --with-pwcheck=DIR     enable deprecated pwcheck daemon using statedir DIR
1449   --with-ipctype={unix,doors}    use ipctype [unix]
1450   --with-lib-subdir=DIR   Find libraries in DIR instead of lib
1451   --with-openssl=PATH     use OpenSSL from PATH
1452   --with-des=DIR          with DES (look in DIR) yes
1453   --with-opie=PATH        use OPIE (One Time Passwords in Everything) from PATH
1454   --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1455                           choose specific GSSAPI implementation [[auto]]
1456   --with-ldap=DIR         use LDAP (in DIR) for saslauthd no
1457   --with-mysql=PATH       use MySQL from PATH
1458   --with-pgsql=PATH       use PostgreSQL from PATH
1459   --with-sqlite=PATH       use SQLite from PATH
1460   --with-plugindir=DIR    set the directory where plugins will
1461                           be found [/usr/lib/sasl2]
1462    --with-configdir=DIR    set the directory where config files will
1463                           be found /usr/lib/sasl2
1464   --with-rc4              use internal rc4 routines [yes]
1465   --with-dmalloc=DIR      with DMALLOC support (for test applications) [no]
1466   --with-sfio=DIR         with SFIO support (for smtptest/libsfsasl) [no]
1467
1468 Some influential environment variables:
1469   CC          C compiler command
1470   CFLAGS      C compiler flags
1471   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472               nonstandard directory <lib dir>
1473   LIBS        libraries to pass to the linker, e.g. -l<library>
1474   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475               you have headers in a nonstandard directory <include dir>
1476   CPP         C preprocessor
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486   # If there are subdirs, report their specific --help.
1487   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488     test -d "$ac_dir" || continue
1489     ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1495   # A ".." for each directory in $ac_dir_suffix.
1496   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1497   case $ac_top_builddir_sub in
1498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500   esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508   .)  # We are building in place.
1509     ac_srcdir=.
1510     ac_top_srcdir=$ac_top_builddir_sub
1511     ac_abs_top_srcdir=$ac_pwd ;;
1512   [\\/]* | ?:[\\/]* )  # Absolute name.
1513     ac_srcdir=$srcdir$ac_dir_suffix;
1514     ac_top_srcdir=$srcdir
1515     ac_abs_top_srcdir=$srcdir ;;
1516   *) # Relative name.
1517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518     ac_top_srcdir=$ac_top_build_prefix$srcdir
1519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523     cd "$ac_dir" || { ac_status=$?; continue; }
1524     # Check for guested configure.
1525     if test -f "$ac_srcdir/configure.gnu"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528     elif test -f "$ac_srcdir/configure"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure" --help=recursive
1531     else
1532       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533     fi || ac_status=$?
1534     cd "$ac_pwd" || { ac_status=$?; break; }
1535   done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540   cat <<\_ACEOF
1541 configure
1542 generated by GNU Autoconf 2.61
1543
1544 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1545 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549   exit
1550 fi
1551 cat >config.log <<_ACEOF
1552 This file contains any messages produced by compilers while
1553 running configure, to aid debugging if configure makes a mistake.
1554
1555 It was created by $as_me, which was
1556 generated by GNU Autoconf 2.61.  Invocation command line was
1557
1558   $ $0 $@
1559
1560 _ACEOF
1561 exec 5>>config.log
1562 {
1563 cat <<_ASUNAME
1564 ## --------- ##
1565 ## Platform. ##
1566 ## --------- ##
1567
1568 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1569 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1570 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1571 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1572 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1573
1574 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1575 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1576
1577 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1578 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1579 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1580 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1581 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1582 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1583 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1584
1585 _ASUNAME
1586
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590   IFS=$as_save_IFS
1591   test -z "$as_dir" && as_dir=.
1592   echo "PATH: $as_dir"
1593 done
1594 IFS=$as_save_IFS
1595
1596 } >&5
1597
1598 cat >&5 <<_ACEOF
1599
1600
1601 ## ----------- ##
1602 ## Core tests. ##
1603 ## ----------- ##
1604
1605 _ACEOF
1606
1607
1608 # Keep a trace of the command line.
1609 # Strip out --no-create and --no-recursion so they do not pile up.
1610 # Strip out --silent because we don't want to record it for future runs.
1611 # Also quote any args containing shell meta-characters.
1612 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_configure_args=
1614 ac_configure_args0=
1615 ac_configure_args1=
1616 ac_must_keep_next=false
1617 for ac_pass in 1 2
1618 do
1619   for ac_arg
1620   do
1621     case $ac_arg in
1622     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1623     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1624     | -silent | --silent | --silen | --sile | --sil)
1625       continue ;;
1626     *\'*)
1627       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1628     esac
1629     case $ac_pass in
1630     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1631     2)
1632       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1633       if test $ac_must_keep_next = true; then
1634         ac_must_keep_next=false # Got value, back to normal.
1635       else
1636         case $ac_arg in
1637           *=* | --config-cache | -C | -disable-* | --disable-* \
1638           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1639           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1640           | -with-* | --with-* | -without-* | --without-* | --x)
1641             case "$ac_configure_args0 " in
1642               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1643             esac
1644             ;;
1645           -* ) ac_must_keep_next=true ;;
1646         esac
1647       fi
1648       ac_configure_args="$ac_configure_args '$ac_arg'"
1649       ;;
1650     esac
1651   done
1652 done
1653 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1654 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1655
1656 # When interrupted or exit'd, cleanup temporary files, and complete
1657 # config.log.  We remove comments because anyway the quotes in there
1658 # would cause problems or look ugly.
1659 # WARNING: Use '\'' to represent an apostrophe within the trap.
1660 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1661 trap 'exit_status=$?
1662   # Save into config.log some information that might help in debugging.
1663   {
1664     echo
1665
1666     cat <<\_ASBOX
1667 ## ---------------- ##
1668 ## Cache variables. ##
1669 ## ---------------- ##
1670 _ASBOX
1671     echo
1672     # The following way of writing the cache mishandles newlines in values,
1673 (
1674   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1675     eval ac_val=\$$ac_var
1676     case $ac_val in #(
1677     *${as_nl}*)
1678       case $ac_var in #(
1679       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1680 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1681       esac
1682       case $ac_var in #(
1683       _ | IFS | as_nl) ;; #(
1684       *) $as_unset $ac_var ;;
1685       esac ;;
1686     esac
1687   done
1688   (set) 2>&1 |
1689     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1690     *${as_nl}ac_space=\ *)
1691       sed -n \
1692         "s/'\''/'\''\\\\'\'''\''/g;
1693           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694       ;; #(
1695     *)
1696       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1697       ;;
1698     esac |
1699     sort
1700 )
1701     echo
1702
1703     cat <<\_ASBOX
1704 ## ----------------- ##
1705 ## Output variables. ##
1706 ## ----------------- ##
1707 _ASBOX
1708     echo
1709     for ac_var in $ac_subst_vars
1710     do
1711       eval ac_val=\$$ac_var
1712       case $ac_val in
1713       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1714       esac
1715       echo "$ac_var='\''$ac_val'\''"
1716     done | sort
1717     echo
1718
1719     if test -n "$ac_subst_files"; then
1720       cat <<\_ASBOX
1721 ## ------------------- ##
1722 ## File substitutions. ##
1723 ## ------------------- ##
1724 _ASBOX
1725       echo
1726       for ac_var in $ac_subst_files
1727       do
1728         eval ac_val=\$$ac_var
1729         case $ac_val in
1730         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731         esac
1732         echo "$ac_var='\''$ac_val'\''"
1733       done | sort
1734       echo
1735     fi
1736
1737     if test -s confdefs.h; then
1738       cat <<\_ASBOX
1739 ## ----------- ##
1740 ## confdefs.h. ##
1741 ## ----------- ##
1742 _ASBOX
1743       echo
1744       cat confdefs.h
1745       echo
1746     fi
1747     test "$ac_signal" != 0 &&
1748       echo "$as_me: caught signal $ac_signal"
1749     echo "$as_me: exit $exit_status"
1750   } >&5
1751   rm -f core *.core core.conftest.* &&
1752     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753     exit $exit_status
1754 ' 0
1755 for ac_signal in 1 2 13 15; do
1756   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 done
1758 ac_signal=0
1759
1760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1761 rm -f -r conftest* confdefs.h
1762
1763 # Predefined preprocessor variables.
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 _ACEOF
1788
1789
1790 # Let the site file select an alternate cache file if it wants to.
1791 # Prefer explicitly selected file to automatically selected ones.
1792 if test -n "$CONFIG_SITE"; then
1793   set x "$CONFIG_SITE"
1794 elif test "x$prefix" != xNONE; then
1795   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1796 else
1797   set x "$ac_default_prefix/share/config.site" \
1798         "$ac_default_prefix/etc/config.site"
1799 fi
1800 shift
1801 for ac_site_file
1802 do
1803   if test -r "$ac_site_file"; then
1804     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1805 echo "$as_me: loading site script $ac_site_file" >&6;}
1806     sed 's/^/| /' "$ac_site_file" >&5
1807     . "$ac_site_file"
1808   fi
1809 done
1810
1811 if test -r "$cache_file"; then
1812   # Some versions of bash will fail to source /dev/null (special
1813   # files actually), so we avoid doing that.
1814   if test -f "$cache_file"; then
1815     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1816 echo "$as_me: loading cache $cache_file" >&6;}
1817     case $cache_file in
1818       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1819       *)                      . "./$cache_file";;
1820     esac
1821   fi
1822 else
1823   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824 echo "$as_me: creating cache $cache_file" >&6;}
1825   >$cache_file
1826 fi
1827
1828 # Check that the precious variables saved in the cache have kept the same
1829 # value.
1830 ac_cache_corrupted=false
1831 for ac_var in $ac_precious_vars; do
1832   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1833   eval ac_new_set=\$ac_env_${ac_var}_set
1834   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1835   eval ac_new_val=\$ac_env_${ac_var}_value
1836   case $ac_old_set,$ac_new_set in
1837     set,)
1838       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1840       ac_cache_corrupted=: ;;
1841     ,set)
1842       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1843 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1844       ac_cache_corrupted=: ;;
1845     ,);;
1846     *)
1847       if test "x$ac_old_val" != "x$ac_new_val"; then
1848         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1849 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1850         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1851 echo "$as_me:   former value:  $ac_old_val" >&2;}
1852         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1853 echo "$as_me:   current value: $ac_new_val" >&2;}
1854         ac_cache_corrupted=:
1855       fi;;
1856   esac
1857   # Pass precious variables to config.status.
1858   if test "$ac_new_set" = set; then
1859     case $ac_new_val in
1860     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1861     *) ac_arg=$ac_var=$ac_new_val ;;
1862     esac
1863     case " $ac_configure_args " in
1864       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1865       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866     esac
1867   fi
1868 done
1869 if $ac_cache_corrupted; then
1870   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1871 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1872   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1873 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1874    { (exit 1); exit 1; }; }
1875 fi
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893 ac_ext=c
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
1901
1902
1903 if test $cache_file = "/dev/null"; then
1904 cache_file="./config.cache"
1905 if test -r "$cache_file"; then
1906   # Some versions of bash will fail to source /dev/null (special
1907   # files actually), so we avoid doing that.
1908   if test -f "$cache_file"; then
1909     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910 echo "$as_me: loading cache $cache_file" >&6;}
1911     case $cache_file in
1912       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913       *)                      . "./$cache_file";;
1914     esac
1915   fi
1916 else
1917   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918 echo "$as_me: creating cache $cache_file" >&6;}
1919   >$cache_file
1920 fi
1921
1922 fi
1923
1924 ac_aux_dir=
1925 for ac_dir in config "$srcdir"/config; do
1926   if test -f "$ac_dir/install-sh"; then
1927     ac_aux_dir=$ac_dir
1928     ac_install_sh="$ac_aux_dir/install-sh -c"
1929     break
1930   elif test -f "$ac_dir/install.sh"; then
1931     ac_aux_dir=$ac_dir
1932     ac_install_sh="$ac_aux_dir/install.sh -c"
1933     break
1934   elif test -f "$ac_dir/shtool"; then
1935     ac_aux_dir=$ac_dir
1936     ac_install_sh="$ac_aux_dir/shtool install -c"
1937     break
1938   fi
1939 done
1940 if test -z "$ac_aux_dir"; then
1941   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1942 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1943    { (exit 1); exit 1; }; }
1944 fi
1945
1946 # These three variables are undocumented and unsupported,
1947 # and are intended to be withdrawn in a future Autoconf release.
1948 # They can cause serious problems if a builder's source tree is in a directory
1949 # whose full name contains unusual characters.
1950 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1951 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1952 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1953
1954
1955 # Make sure we can run config.sub.
1956 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1957   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1958 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1959    { (exit 1); exit 1; }; }
1960
1961 { echo "$as_me:$LINENO: checking build system type" >&5
1962 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1963 if test "${ac_cv_build+set}" = set; then
1964   echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966   ac_build_alias=$build_alias
1967 test "x$ac_build_alias" = x &&
1968   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1969 test "x$ac_build_alias" = x &&
1970   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1971 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1972    { (exit 1); exit 1; }; }
1973 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1974   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1975 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1976    { (exit 1); exit 1; }; }
1977
1978 fi
1979 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1980 echo "${ECHO_T}$ac_cv_build" >&6; }
1981 case $ac_cv_build in
1982 *-*-*) ;;
1983 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1984 echo "$as_me: error: invalid value of canonical build" >&2;}
1985    { (exit 1); exit 1; }; };;
1986 esac
1987 build=$ac_cv_build
1988 ac_save_IFS=$IFS; IFS='-'
1989 set x $ac_cv_build
1990 shift
1991 build_cpu=$1
1992 build_vendor=$2
1993 shift; shift
1994 # Remember, the first character of IFS is used to create $*,
1995 # except with old shells:
1996 build_os=$*
1997 IFS=$ac_save_IFS
1998 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1999
2000
2001 { echo "$as_me:$LINENO: checking host system type" >&5
2002 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2003 if test "${ac_cv_host+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test "x$host_alias" = x; then
2007   ac_cv_host=$ac_cv_build
2008 else
2009   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2010     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2011 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2012    { (exit 1); exit 1; }; }
2013 fi
2014
2015 fi
2016 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2017 echo "${ECHO_T}$ac_cv_host" >&6; }
2018 case $ac_cv_host in
2019 *-*-*) ;;
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2021 echo "$as_me: error: invalid value of canonical host" >&2;}
2022    { (exit 1); exit 1; }; };;
2023 esac
2024 host=$ac_cv_host
2025 ac_save_IFS=$IFS; IFS='-'
2026 set x $ac_cv_host
2027 shift
2028 host_cpu=$1
2029 host_vendor=$2
2030 shift; shift
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2033 host_os=$*
2034 IFS=$ac_save_IFS
2035 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2036
2037
2038 { echo "$as_me:$LINENO: checking target system type" >&5
2039 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_target+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   if test "x$target_alias" = x; then
2044   ac_cv_target=$ac_cv_host
2045 else
2046   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2047     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2049    { (exit 1); exit 1; }; }
2050 fi
2051
2052 fi
2053 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2054 echo "${ECHO_T}$ac_cv_target" >&6; }
2055 case $ac_cv_target in
2056 *-*-*) ;;
2057 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2058 echo "$as_me: error: invalid value of canonical target" >&2;}
2059    { (exit 1); exit 1; }; };;
2060 esac
2061 target=$ac_cv_target
2062 ac_save_IFS=$IFS; IFS='-'
2063 set x $ac_cv_target
2064 shift
2065 target_cpu=$1
2066 target_vendor=$2
2067 shift; shift
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2070 target_os=$*
2071 IFS=$ac_save_IFS
2072 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2073
2074
2075 # The aliases save the names the user supplied, while $host etc.
2076 # will get canonicalized.
2077 test -n "$target_alias" &&
2078   test "$program_prefix$program_suffix$program_transform_name" = \
2079     NONENONEs,x,x, &&
2080   program_prefix=${target_alias}-
2081
2082 am__api_version='1.10'
2083
2084 # Find a good install program.  We prefer a C program (faster),
2085 # so one script is as good as another.  But avoid the broken or
2086 # incompatible versions:
2087 # SysV /etc/install, /usr/sbin/install
2088 # SunOS /usr/etc/install
2089 # IRIX /sbin/install
2090 # AIX /bin/install
2091 # AmigaOS /C/install, which installs bootblocks on floppy discs
2092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2095 # OS/2's system install, which has a completely different semantic
2096 # ./install, which can be erroneously created by make from ./install.sh.
2097 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2098 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2099 if test -z "$INSTALL"; then
2100 if test "${ac_cv_path_install+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   # Account for people who put trailing slashes in PATH elements.
2109 case $as_dir/ in
2110   ./ | .// | /cC/* | \
2111   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2112   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2113   /usr/ucb/* ) ;;
2114   *)
2115     # OSF1 and SCO ODT 3.0 have their own names for install.
2116     # Don't use installbsd from OSF since it installs stuff as root
2117     # by default.
2118     for ac_prog in ginstall scoinst install; do
2119       for ac_exec_ext in '' $ac_executable_extensions; do
2120         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2121           if test $ac_prog = install &&
2122             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123             # AIX install.  It has an incompatible calling convention.
2124             :
2125           elif test $ac_prog = install &&
2126             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127             # program-specific install script used by HP pwplus--don't use.
2128             :
2129           else
2130             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2131             break 3
2132           fi
2133         fi
2134       done
2135     done
2136     ;;
2137 esac
2138 done
2139 IFS=$as_save_IFS
2140
2141
2142 fi
2143   if test "${ac_cv_path_install+set}" = set; then
2144     INSTALL=$ac_cv_path_install
2145   else
2146     # As a last resort, use the slow shell script.  Don't cache a
2147     # value for INSTALL within a source directory, because that will
2148     # break other packages using the cache if that directory is
2149     # removed, or if the value is a relative name.
2150     INSTALL=$ac_install_sh
2151   fi
2152 fi
2153 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2154 echo "${ECHO_T}$INSTALL" >&6; }
2155
2156 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2157 # It thinks the first close brace ends the variable substitution.
2158 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2159
2160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2161
2162 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2163
2164 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2165 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2166 # Just in case
2167 sleep 1
2168 echo timestamp > conftest.file
2169 # Do `set' in a subshell so we don't clobber the current shell's
2170 # arguments.  Must try -L first in case configure is actually a
2171 # symlink; some systems play weird games with the mod time of symlinks
2172 # (eg FreeBSD returns the mod time of the symlink's containing
2173 # directory).
2174 if (
2175    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2176    if test "$*" = "X"; then
2177       # -L didn't work.
2178       set X `ls -t $srcdir/configure conftest.file`
2179    fi
2180    rm -f conftest.file
2181    if test "$*" != "X $srcdir/configure conftest.file" \
2182       && test "$*" != "X conftest.file $srcdir/configure"; then
2183
2184       # If neither matched, then we have a broken ls.  This can happen
2185       # if, for instance, CONFIG_SHELL is bash and it inherits a
2186       # broken ls alias from the environment.  This has actually
2187       # happened.  Such a system could not be considered "sane".
2188       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2189 alias in your environment" >&5
2190 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2191 alias in your environment" >&2;}
2192    { (exit 1); exit 1; }; }
2193    fi
2194
2195    test "$2" = conftest.file
2196    )
2197 then
2198    # Ok.
2199    :
2200 else
2201    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2202 Check your system clock" >&5
2203 echo "$as_me: error: newly created file is older than distributed files!
2204 Check your system clock" >&2;}
2205    { (exit 1); exit 1; }; }
2206 fi
2207 { echo "$as_me:$LINENO: result: yes" >&5
2208 echo "${ECHO_T}yes" >&6; }
2209 test "$program_prefix" != NONE &&
2210   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2211 # Use a double $ so make ignores it.
2212 test "$program_suffix" != NONE &&
2213   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2214 # Double any \ or $.  echo might interpret backslashes.
2215 # By default was `s,x,x', remove it if useless.
2216 cat <<\_ACEOF >conftest.sed
2217 s/[\\$]/&&/g;s/;s,x,x,$//
2218 _ACEOF
2219 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2220 rm -f conftest.sed
2221
2222 # expand $ac_aux_dir to an absolute path
2223 am_aux_dir=`cd $ac_aux_dir && pwd`
2224
2225 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2226 # Use eval to expand $SHELL
2227 if eval "$MISSING --run true"; then
2228   am_missing_run="$MISSING --run "
2229 else
2230   am_missing_run=
2231   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2232 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2233 fi
2234
2235 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2236 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2237 if test -z "$MKDIR_P"; then
2238   if test "${ac_cv_path_mkdir+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_prog in mkdir gmkdir; do
2247          for ac_exec_ext in '' $ac_executable_extensions; do
2248            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2249            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2250              'mkdir (GNU coreutils) '* | \
2251              'mkdir (coreutils) '* | \
2252              'mkdir (fileutils) '4.1*)
2253                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2254                break 3;;
2255            esac
2256          done
2257        done
2258 done
2259 IFS=$as_save_IFS
2260
2261 fi
2262
2263   if test "${ac_cv_path_mkdir+set}" = set; then
2264     MKDIR_P="$ac_cv_path_mkdir -p"
2265   else
2266     # As a last resort, use the slow shell script.  Don't cache a
2267     # value for MKDIR_P within a source directory, because that will
2268     # break other packages using the cache if that directory is
2269     # removed, or if the value is a relative name.
2270     test -d ./--version && rmdir ./--version
2271     MKDIR_P="$ac_install_sh -d"
2272   fi
2273 fi
2274 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2275 echo "${ECHO_T}$MKDIR_P" >&6; }
2276
2277 mkdir_p="$MKDIR_P"
2278 case $mkdir_p in
2279   [\\/$]* | ?:[\\/]*) ;;
2280   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2281 esac
2282
2283 for ac_prog in gawk mawk nawk awk
2284 do
2285   # Extract the first word of "$ac_prog", so it can be a program name with args.
2286 set dummy $ac_prog; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_AWK+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$AWK"; then
2293   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_exec_ext in '' $ac_executable_extensions; do
2301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302     ac_cv_prog_AWK="$ac_prog"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308 IFS=$as_save_IFS
2309
2310 fi
2311 fi
2312 AWK=$ac_cv_prog_AWK
2313 if test -n "$AWK"; then
2314   { echo "$as_me:$LINENO: result: $AWK" >&5
2315 echo "${ECHO_T}$AWK" >&6; }
2316 else
2317   { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2319 fi
2320
2321
2322   test -n "$AWK" && break
2323 done
2324
2325 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2326 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2327 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2328 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   cat >conftest.make <<\_ACEOF
2332 SHELL = /bin/sh
2333 all:
2334         @echo '@@@%%%=$(MAKE)=@@@%%%'
2335 _ACEOF
2336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2337 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2338   *@@@%%%=?*=@@@%%%*)
2339     eval ac_cv_prog_make_${ac_make}_set=yes;;
2340   *)
2341     eval ac_cv_prog_make_${ac_make}_set=no;;
2342 esac
2343 rm -f conftest.make
2344 fi
2345 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2346   { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2348   SET_MAKE=
2349 else
2350   { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352   SET_MAKE="MAKE=${MAKE-make}"
2353 fi
2354
2355 rm -rf .tst 2>/dev/null
2356 mkdir .tst 2>/dev/null
2357 if test -d .tst; then
2358   am__leading_dot=.
2359 else
2360   am__leading_dot=_
2361 fi
2362 rmdir .tst 2>/dev/null
2363
2364 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2365   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2366   # is not polluted with repeated "-I."
2367   am__isrc=' -I$(srcdir)'
2368   # test to see if srcdir already configured
2369   if test -f $srcdir/config.status; then
2370     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2371 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2372    { (exit 1); exit 1; }; }
2373   fi
2374 fi
2375
2376 # test whether we have cygpath
2377 if test -z "$CYGPATH_W"; then
2378   if (cygpath --version) >/dev/null 2>/dev/null; then
2379     CYGPATH_W='cygpath -w'
2380   else
2381     CYGPATH_W=echo
2382   fi
2383 fi
2384
2385
2386 # Define the identity of the package.
2387  PACKAGE=cyrus-sasl
2388  VERSION=2.1.23
2389
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE "$PACKAGE"
2393 _ACEOF
2394
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define VERSION "$VERSION"
2398 _ACEOF
2399
2400 # Some tools Automake needs.
2401
2402 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2403
2404
2405 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2406
2407
2408 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2409
2410
2411 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2412
2413
2414 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2415
2416 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2417
2418 # Installed binaries are usually stripped using `strip' when the user
2419 # run `make install-strip'.  However `strip' might not be the right
2420 # tool to use in cross-compilation environments, therefore Automake
2421 # will honor the `STRIP' environment variable to overrule this program.
2422 if test "$cross_compiling" != no; then
2423   if test -n "$ac_tool_prefix"; then
2424   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425 set dummy ${ac_tool_prefix}strip; ac_word=$2
2426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_STRIP+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   if test -n "$STRIP"; then
2432   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437   IFS=$as_save_IFS
2438   test -z "$as_dir" && as_dir=.
2439   for ac_exec_ext in '' $ac_executable_extensions; do
2440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444   fi
2445 done
2446 done
2447 IFS=$as_save_IFS
2448
2449 fi
2450 fi
2451 STRIP=$ac_cv_prog_STRIP
2452 if test -n "$STRIP"; then
2453   { echo "$as_me:$LINENO: result: $STRIP" >&5
2454 echo "${ECHO_T}$STRIP" >&6; }
2455 else
2456   { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2458 fi
2459
2460
2461 fi
2462 if test -z "$ac_cv_prog_STRIP"; then
2463   ac_ct_STRIP=$STRIP
2464   # Extract the first word of "strip", so it can be a program name with args.
2465 set dummy strip; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test -n "$ac_ct_STRIP"; then
2472   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479   for ac_exec_ext in '' $ac_executable_extensions; do
2480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481     ac_cv_prog_ac_ct_STRIP="strip"
2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492 if test -n "$ac_ct_STRIP"; then
2493   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2494 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2495 else
2496   { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2498 fi
2499
2500   if test "x$ac_ct_STRIP" = x; then
2501     STRIP=":"
2502   else
2503     case $cross_compiling:$ac_tool_warned in
2504 yes:)
2505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2506 whose name does not start with the host triplet.  If you think this
2507 configuration is useful to you, please write to autoconf@gnu.org." >&5
2508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2509 whose name does not start with the host triplet.  If you think this
2510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2511 ac_tool_warned=yes ;;
2512 esac
2513     STRIP=$ac_ct_STRIP
2514   fi
2515 else
2516   STRIP="$ac_cv_prog_STRIP"
2517 fi
2518
2519 fi
2520 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2521
2522 # We need awk for the "check" target.  The system "awk" is bad on
2523 # some platforms.
2524 # Always define AMTAR for backward compatibility.
2525
2526 AMTAR=${AMTAR-"${am_missing_run}tar"}
2527
2528 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2529
2530
2531
2532
2533
2534
2535
2536         ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2537
2538
2539 # and include our config dir scripts
2540 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
2541
2542 DIRS=""
2543
2544 # Check whether --enable-cmulocal was given.
2545 if test "${enable_cmulocal+set}" = set; then
2546   enableval=$enable_cmulocal;
2547 else
2548   enable_cmulocal=no
2549 fi
2550
2551
2552 # Check whether --enable-sample was given.
2553 if test "${enable_sample+set}" = set; then
2554   enableval=$enable_sample; enable_sample=yes
2555 fi
2556
2557
2558 ac_ext=c
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 if test -n "$ac_tool_prefix"; then
2564   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   if test -n "$CC"; then
2572   ac_cv_prog_CC="$CC" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579   for ac_exec_ext in '' $ac_executable_extensions; do
2580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583     break 2
2584   fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 CC=$ac_cv_prog_CC
2592 if test -n "$CC"; then
2593   { echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6; }
2595 else
2596   { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2598 fi
2599
2600
2601 fi
2602 if test -z "$ac_cv_prog_CC"; then
2603   ac_ct_CC=$CC
2604   # Extract the first word of "gcc", so it can be a program name with args.
2605 set dummy gcc; ac_word=$2
2606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611   if test -n "$ac_ct_CC"; then
2612   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617   IFS=$as_save_IFS
2618   test -z "$as_dir" && as_dir=.
2619   for ac_exec_ext in '' $ac_executable_extensions; do
2620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621     ac_cv_prog_ac_ct_CC="gcc"
2622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623     break 2
2624   fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632 if test -n "$ac_ct_CC"; then
2633   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634 echo "${ECHO_T}$ac_ct_CC" >&6; }
2635 else
2636   { echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6; }
2638 fi
2639
2640   if test "x$ac_ct_CC" = x; then
2641     CC=""
2642   else
2643     case $cross_compiling:$ac_tool_warned in
2644 yes:)
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet.  If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet.  If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2652 esac
2653     CC=$ac_ct_CC
2654   fi
2655 else
2656   CC="$ac_cv_prog_CC"
2657 fi
2658
2659 if test -z "$CC"; then
2660           if test -n "$ac_tool_prefix"; then
2661     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}cc; ac_word=$2
2663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   if test -n "$CC"; then
2669   ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676   for ac_exec_ext in '' $ac_executable_extensions; do
2677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678     ac_cv_prog_CC="${ac_tool_prefix}cc"
2679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680     break 2
2681   fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 CC=$ac_cv_prog_CC
2689 if test -n "$CC"; then
2690   { echo "$as_me:$LINENO: result: $CC" >&5
2691 echo "${ECHO_T}$CC" >&6; }
2692 else
2693   { echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6; }
2695 fi
2696
2697
2698   fi
2699 fi
2700 if test -z "$CC"; then
2701   # Extract the first word of "cc", so it can be a program name with args.
2702 set dummy cc; ac_word=$2
2703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2705 if test "${ac_cv_prog_CC+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   if test -n "$CC"; then
2709   ac_cv_prog_CC="$CC" # Let the user override the test.
2710 else
2711   ac_prog_rejected=no
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715   IFS=$as_save_IFS
2716   test -z "$as_dir" && as_dir=.
2717   for ac_exec_ext in '' $ac_executable_extensions; do
2718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2720        ac_prog_rejected=yes
2721        continue
2722      fi
2723     ac_cv_prog_CC="cc"
2724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725     break 2
2726   fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 if test $ac_prog_rejected = yes; then
2732   # We found a bogon in the path, so make sure we never use it.
2733   set dummy $ac_cv_prog_CC
2734   shift
2735   if test $# != 0; then
2736     # We chose a different compiler from the bogus one.
2737     # However, it has the same basename, so the bogon will be chosen
2738     # first if we set CC to just the basename; use the full file name.
2739     shift
2740     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2741   fi
2742 fi
2743 fi
2744 fi
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747   { echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6; }
2749 else
2750   { echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6; }
2752 fi
2753
2754
2755 fi
2756 if test -z "$CC"; then
2757   if test -n "$ac_tool_prefix"; then
2758   for ac_prog in cl.exe
2759   do
2760     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_CC+set}" = set; then
2765   echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767   if test -n "$CC"; then
2768   ac_cv_prog_CC="$CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775   for ac_exec_ext in '' $ac_executable_extensions; do
2776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 CC=$ac_cv_prog_CC
2788 if test -n "$CC"; then
2789   { echo "$as_me:$LINENO: result: $CC" >&5
2790 echo "${ECHO_T}$CC" >&6; }
2791 else
2792   { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2794 fi
2795
2796
2797     test -n "$CC" && break
2798   done
2799 fi
2800 if test -z "$CC"; then
2801   ac_ct_CC=$CC
2802   for ac_prog in cl.exe
2803 do
2804   # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2809   echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811   if test -n "$ac_ct_CC"; then
2812   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819   for ac_exec_ext in '' $ac_executable_extensions; do
2820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821     ac_cv_prog_ac_ct_CC="$ac_prog"
2822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823     break 2
2824   fi
2825 done
2826 done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2834 echo "${ECHO_T}$ac_ct_CC" >&6; }
2835 else
2836   { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2838 fi
2839
2840
2841   test -n "$ac_ct_CC" && break
2842 done
2843
2844   if test "x$ac_ct_CC" = x; then
2845     CC=""
2846   else
2847     case $cross_compiling:$ac_tool_warned in
2848 yes:)
2849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2850 whose name does not start with the host triplet.  If you think this
2851 configuration is useful to you, please write to autoconf@gnu.org." >&5
2852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet.  If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2855 ac_tool_warned=yes ;;
2856 esac
2857     CC=$ac_ct_CC
2858   fi
2859 fi
2860
2861 fi
2862
2863
2864 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: no acceptable C compiler found in \$PATH
2867 See \`config.log' for more details." >&2;}
2868    { (exit 1); exit 1; }; }
2869
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2874 case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879   (eval "$ac_compiler --version >&5") 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889   (eval "$ac_compiler -v >&5") 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2894 case "(($ac_try" in
2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896   *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899   (eval "$ac_compiler -V >&5") 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911 int
2912 main ()
2913 {
2914
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 ac_clean_files_save=$ac_clean_files
2920 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2921 # Try to create an executable without -o first, disregard a.out.
2922 # It will help us diagnose broken compilers, and finding out an intuition
2923 # of exeext.
2924 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2925 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2926 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2927 #
2928 # List of possible output files, starting from the most likely.
2929 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2930 # only as a last resort.  b.out is created by i960 compilers.
2931 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2932 #
2933 # The IRIX 6 linker writes into existing files which may not be
2934 # executable, retaining their permissions.  Remove them first so a
2935 # subsequent execution test works.
2936 ac_rmfiles=
2937 for ac_file in $ac_files
2938 do
2939   case $ac_file in
2940     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2941     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2942   esac
2943 done
2944 rm -f $ac_rmfiles
2945
2946 if { (ac_try="$ac_link_default"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_link_default") 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; then
2956   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2957 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2958 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2959 # so that the user can short-circuit this test for compilers unknown to
2960 # Autoconf.
2961 for ac_file in $ac_files ''
2962 do
2963   test -f "$ac_file" || continue
2964   case $ac_file in
2965     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2966         ;;
2967     [ab].out )
2968         # We found the default executable, but exeext='' is most
2969         # certainly right.
2970         break;;
2971     *.* )
2972         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2973         then :; else
2974            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2975         fi
2976         # We set ac_cv_exeext here because the later test for it is not
2977         # safe: cross compilers may not add the suffix if given an `-o'
2978         # argument, so we may need to know it at that point already.
2979         # Even if this section looks crufty: it has the advantage of
2980         # actually working.
2981         break;;
2982     * )
2983         break;;
2984   esac
2985 done
2986 test "$ac_cv_exeext" = no && ac_cv_exeext=
2987
2988 else
2989   ac_file=''
2990 fi
2991
2992 { echo "$as_me:$LINENO: result: $ac_file" >&5
2993 echo "${ECHO_T}$ac_file" >&6; }
2994 if test -z "$ac_file"; then
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: C compiler cannot create executables
3001 See \`config.log' for more details." >&2;}
3002    { (exit 77); exit 77; }; }
3003 fi
3004
3005 ac_exeext=$ac_cv_exeext
3006
3007 # Check that the compiler produces executables we can run.  If not, either
3008 # the compiler is broken, or we cross compile.
3009 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3010 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3011 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3012 # If not cross compiling, check that we can run a simple program.
3013 if test "$cross_compiling" != yes; then
3014   if { ac_try='./$ac_file'
3015   { (case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020   (eval "$ac_try") 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); }; }; then
3024     cross_compiling=no
3025   else
3026     if test "$cross_compiling" = maybe; then
3027         cross_compiling=yes
3028     else
3029         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3030 If you meant to cross compile, use \`--host'.
3031 See \`config.log' for more details." >&5
3032 echo "$as_me: error: cannot run C compiled programs.
3033 If you meant to cross compile, use \`--host'.
3034 See \`config.log' for more details." >&2;}
3035    { (exit 1); exit 1; }; }
3036     fi
3037   fi
3038 fi
3039 { echo "$as_me:$LINENO: result: yes" >&5
3040 echo "${ECHO_T}yes" >&6; }
3041
3042 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3043 ac_clean_files=$ac_clean_files_save
3044 # Check that the compiler produces executables we can run.  If not, either
3045 # the compiler is broken, or we cross compile.
3046 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3047 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3048 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3049 echo "${ECHO_T}$cross_compiling" >&6; }
3050
3051 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3052 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3053 if { (ac_try="$ac_link"
3054 case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_link") 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; then
3063   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3064 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3065 # work properly (i.e., refer to `conftest.exe'), while it won't with
3066 # `rm'.
3067 for ac_file in conftest.exe conftest conftest.*; do
3068   test -f "$ac_file" || continue
3069   case $ac_file in
3070     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3071     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072           break;;
3073     * ) break;;
3074   esac
3075 done
3076 else
3077   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&5
3079 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&2;}
3081    { (exit 1); exit 1; }; }
3082 fi
3083
3084 rm -f conftest$ac_cv_exeext
3085 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3086 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3087
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3090 ac_exeext=$EXEEXT
3091 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3092 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3093 if test "${ac_cv_objext+set}" = set; then
3094   echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096   cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h.  */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h.  */
3102
3103 int
3104 main ()
3105 {
3106
3107   ;
3108   return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.o conftest.obj
3112 if { (ac_try="$ac_compile"
3113 case "(($ac_try" in
3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115   *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118   (eval "$ac_compile") 2>&5
3119   ac_status=$?
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); }; then
3122   for ac_file in conftest.o conftest.obj conftest.*; do
3123   test -f "$ac_file" || continue;
3124   case $ac_file in
3125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3126     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3127        break;;
3128   esac
3129 done
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&2;}
3138    { (exit 1); exit 1; }; }
3139 fi
3140
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3142 fi
3143 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3144 echo "${ECHO_T}$ac_cv_objext" >&6; }
3145 OBJEXT=$ac_cv_objext
3146 ac_objext=$OBJEXT
3147 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3148 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3149 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162 #ifndef __GNUC__
3163        choke me
3164 #endif
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_compile") 2>conftest.er1
3178   ac_status=$?
3179   grep -v '^ *+' conftest.er1 >conftest.err
3180   rm -f conftest.er1
3181   cat conftest.err >&5
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); } && {
3184          test -z "$ac_c_werror_flag" ||
3185          test ! -s conftest.err
3186        } && test -s conftest.$ac_objext; then
3187   ac_compiler_gnu=yes
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192         ac_compiler_gnu=no
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197
3198 fi
3199 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3201 GCC=`test $ac_compiler_gnu = yes && echo yes`
3202 ac_test_CFLAGS=${CFLAGS+set}
3203 ac_save_CFLAGS=$CFLAGS
3204 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3205 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3206 if test "${ac_cv_prog_cc_g+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   ac_save_c_werror_flag=$ac_c_werror_flag
3210    ac_c_werror_flag=yes
3211    ac_cv_prog_cc_g=no
3212    CFLAGS="-g"
3213    cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 int
3221 main ()
3222 {
3223
3224   ;
3225   return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_compile") 2>conftest.er1
3236   ac_status=$?
3237   grep -v '^ *+' conftest.er1 >conftest.err
3238   rm -f conftest.er1
3239   cat conftest.err >&5
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); } && {
3242          test -z "$ac_c_werror_flag" ||
3243          test ! -s conftest.err
3244        } && test -s conftest.$ac_objext; then
3245   ac_cv_prog_cc_g=yes
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250         CFLAGS=""
3251       cat >conftest.$ac_ext <<_ACEOF
3252 /* confdefs.h.  */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h.  */
3257
3258 int
3259 main ()
3260 {
3261
3262   ;
3263   return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.$ac_objext
3267 if { (ac_try="$ac_compile"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273   (eval "$ac_compile") 2>conftest.er1
3274   ac_status=$?
3275   grep -v '^ *+' conftest.er1 >conftest.err
3276   rm -f conftest.er1
3277   cat conftest.err >&5
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } && {
3280          test -z "$ac_c_werror_flag" ||
3281          test ! -s conftest.err
3282        } && test -s conftest.$ac_objext; then
3283   :
3284 else
3285   echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288         ac_c_werror_flag=$ac_save_c_werror_flag
3289          CFLAGS="-g"
3290          cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h.  */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h.  */
3296
3297 int
3298 main ()
3299 {
3300
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312   (eval "$ac_compile") 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } && {
3319          test -z "$ac_c_werror_flag" ||
3320          test ! -s conftest.err
3321        } && test -s conftest.$ac_objext; then
3322   ac_cv_prog_cc_g=yes
3323 else
3324   echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327
3328 fi
3329
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 fi
3332
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 fi
3335
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337    ac_c_werror_flag=$ac_save_c_werror_flag
3338 fi
3339 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342   CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344   if test "$GCC" = yes; then
3345     CFLAGS="-g -O2"
3346   else
3347     CFLAGS="-g"
3348   fi
3349 else
3350   if test "$GCC" = yes; then
3351     CFLAGS="-O2"
3352   else
3353     CFLAGS=
3354   fi
3355 fi
3356 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3357 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3358 if test "${ac_cv_prog_cc_c89+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   ac_cv_prog_cc_c89=no
3362 ac_save_CC=$CC
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 #include <stdarg.h>
3370 #include <stdio.h>
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3377      char **p;
3378      int i;
3379 {
3380   return p[i];
3381 }
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3383 {
3384   char *s;
3385   va_list v;
3386   va_start (v,p);
3387   s = g (p, va_arg (v,int));
3388   va_end (v);
3389   return s;
3390 }
3391
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3393    function prototypes and stuff, but not '\xHH' hex character constants.
3394    These don't provoke an error unfortunately, instead are silently treated
3395    as 'x'.  The following induces an error, until -std is added to get
3396    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3397    array size at least.  It's necessary to write '\x00'==0 to get something
3398    that's true only with -std.  */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402    inside strings and character constants.  */
3403 #define FOO(x) 'x'
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410 int argc;
3411 char **argv;
3412 int
3413 main ()
3414 {
3415 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3416   ;
3417   return 0;
3418 }
3419 _ACEOF
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 do
3423   CC="$ac_save_CC $ac_arg"
3424   rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_compile") 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } && {
3438          test -z "$ac_c_werror_flag" ||
3439          test ! -s conftest.err
3440        } && test -s conftest.$ac_objext; then
3441   ac_cv_prog_cc_c89=$ac_arg
3442 else
3443   echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446
3447 fi
3448
3449 rm -f core conftest.err conftest.$ac_objext
3450   test "x$ac_cv_prog_cc_c89" != "xno" && break
3451 done
3452 rm -f conftest.$ac_ext
3453 CC=$ac_save_CC
3454
3455 fi
3456 # AC_CACHE_VAL
3457 case "x$ac_cv_prog_cc_c89" in
3458   x)
3459     { echo "$as_me:$LINENO: result: none needed" >&5
3460 echo "${ECHO_T}none needed" >&6; } ;;
3461   xno)
3462     { echo "$as_me:$LINENO: result: unsupported" >&5
3463 echo "${ECHO_T}unsupported" >&6; } ;;
3464   *)
3465     CC="$CC $ac_cv_prog_cc_c89"
3466     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3467 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3468 esac
3469
3470
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 DEPDIR="${am__leading_dot}deps"
3477
3478 ac_config_commands="$ac_config_commands depfiles"
3479
3480
3481 am_make=${MAKE-make}
3482 cat > confinc << 'END'
3483 am__doit:
3484         @echo done
3485 .PHONY: am__doit
3486 END
3487 # If we don't find an include directive, just comment out the code.
3488 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3489 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3490 am__include="#"
3491 am__quote=
3492 _am_result=none
3493 # First try GNU make style include.
3494 echo "include confinc" > confmf
3495 # We grep out `Entering directory' and `Leaving directory'
3496 # messages which can occur if `w' ends up in MAKEFLAGS.
3497 # In particular we don't look at `^make:' because GNU make might
3498 # be invoked under some other name (usually "gmake"), in which
3499 # case it prints its new name instead of `make'.
3500 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3501    am__include=include
3502    am__quote=
3503    _am_result=GNU
3504 fi
3505 # Now try BSD make style include.
3506 if test "$am__include" = "#"; then
3507    echo '.include "confinc"' > confmf
3508    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3509       am__include=.include
3510       am__quote="\""
3511       _am_result=BSD
3512    fi
3513 fi
3514
3515
3516 { echo "$as_me:$LINENO: result: $_am_result" >&5
3517 echo "${ECHO_T}$_am_result" >&6; }
3518 rm -f confinc confmf
3519
3520 # Check whether --enable-dependency-tracking was given.
3521 if test "${enable_dependency_tracking+set}" = set; then
3522   enableval=$enable_dependency_tracking;
3523 fi
3524
3525 if test "x$enable_dependency_tracking" != xno; then
3526   am_depcomp="$ac_aux_dir/depcomp"
3527   AMDEPBACKSLASH='\'
3528 fi
3529  if test "x$enable_dependency_tracking" != xno; then
3530   AMDEP_TRUE=
3531   AMDEP_FALSE='#'
3532 else
3533   AMDEP_TRUE='#'
3534   AMDEP_FALSE=
3535 fi
3536
3537
3538
3539 depcc="$CC"   am_compiler_list=
3540
3541 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3543 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547   # We make a subdir and do the tests there.  Otherwise we can end up
3548   # making bogus files that we don't know about and never remove.  For
3549   # instance it was reported that on HP-UX the gcc test will end up
3550   # making a dummy file named `D' -- because `-MD' means `put the output
3551   # in D'.
3552   mkdir conftest.dir
3553   # Copy depcomp to subdir because otherwise we won't find it if we're
3554   # using a relative directory.
3555   cp "$am_depcomp" conftest.dir
3556   cd conftest.dir
3557   # We will build objects and dependencies in a subdirectory because
3558   # it helps to detect inapplicable dependency modes.  For instance
3559   # both Tru64's cc and ICC support -MD to output dependencies as a
3560   # side effect of compilation, but ICC will put the dependencies in
3561   # the current directory while Tru64 will put them in the object
3562   # directory.
3563   mkdir sub
3564
3565   am_cv_CC_dependencies_compiler_type=none
3566   if test "$am_compiler_list" = ""; then
3567      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3568   fi
3569   for depmode in $am_compiler_list; do
3570     # Setup a source with many dependencies, because some compilers
3571     # like to wrap large dependency lists on column 80 (with \), and
3572     # we should not choose a depcomp mode which is confused by this.
3573     #
3574     # We need to recreate these files for each test, as the compiler may
3575     # overwrite some of them when testing with obscure command lines.
3576     # This happens at least with the AIX C compiler.
3577     : > sub/conftest.c
3578     for i in 1 2 3 4 5 6; do
3579       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581       # Solaris 8's {/usr,}/bin/sh.
3582       touch sub/conftst$i.h
3583     done
3584     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3585
3586     case $depmode in
3587     nosideeffect)
3588       # after this tag, mechanisms are not by side-effect, so they'll
3589       # only be used when explicitly requested
3590       if test "x$enable_dependency_tracking" = xyes; then
3591         continue
3592       else
3593         break
3594       fi
3595       ;;
3596     none) break ;;
3597     esac
3598     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599     # mode.  It turns out that the SunPro C++ compiler does not properly
3600     # handle `-M -o', and we need to detect this.
3601     if depmode=$depmode \
3602        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605          >/dev/null 2>conftest.err &&
3606        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3607        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3608        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3609        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3610       # icc doesn't choke on unknown options, it will just issue warnings
3611       # or remarks (even with -Werror).  So we grep stderr for any message
3612       # that says an option was ignored or not supported.
3613       # When given -MP, icc 7.0 and 7.1 complain thusly:
3614       #   icc: Command line warning: ignoring option '-M'; no argument required
3615       # The diagnosis changed in icc 8.0:
3616       #   icc: Command line remark: option '-MP' not supported
3617       if (grep 'ignoring option' conftest.err ||
3618           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3619         am_cv_CC_dependencies_compiler_type=$depmode
3620         break
3621       fi
3622     fi
3623   done
3624
3625   cd ..
3626   rm -rf conftest.dir
3627 else
3628   am_cv_CC_dependencies_compiler_type=none
3629 fi
3630
3631 fi
3632 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3633 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3634 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3635
3636  if
3637   test "x$enable_dependency_tracking" != xno \
3638   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3639   am__fastdepCC_TRUE=
3640   am__fastdepCC_FALSE='#'
3641 else
3642   am__fastdepCC_TRUE='#'
3643   am__fastdepCC_FALSE=
3644 fi
3645
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3653 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3656   CPP=
3657 fi
3658 if test -z "$CPP"; then
3659   if test "${ac_cv_prog_CPP+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662       # Double quotes because CPP needs to be expanded
3663     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3664     do
3665       ac_preproc_ok=false
3666 for ac_c_preproc_warn_flag in '' yes
3667 do
3668   # Use a header file that comes with gcc, so configuring glibc
3669   # with a fresh cross-compiler works.
3670   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671   # <limits.h> exists even on freestanding compilers.
3672   # On the NeXT, cc -E runs the code through the compiler's parser,
3673   # not just through cpp. "Syntax error" is here to catch this case.
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680 #ifdef __STDC__
3681 # include <limits.h>
3682 #else
3683 # include <assert.h>
3684 #endif
3685                      Syntax error
3686 _ACEOF
3687 if { (ac_try="$ac_cpp conftest.$ac_ext"
3688 case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3694   ac_status=$?
3695   grep -v '^ *+' conftest.er1 >conftest.err
3696   rm -f conftest.er1
3697   cat conftest.err >&5
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); } >/dev/null && {
3700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3701          test ! -s conftest.err
3702        }; then
3703   :
3704 else
3705   echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708   # Broken: fails on valid input.
3709 continue
3710 fi
3711
3712 rm -f conftest.err conftest.$ac_ext
3713
3714   # OK, works on sane cases.  Now check whether nonexistent headers
3715   # can be detected and how.
3716   cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731   ac_status=$?
3732   grep -v '^ *+' conftest.er1 >conftest.err
3733   rm -f conftest.er1
3734   cat conftest.err >&5
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); } >/dev/null && {
3737          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3738          test ! -s conftest.err
3739        }; then
3740   # Broken: success on invalid input.
3741 continue
3742 else
3743   echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746   # Passes both tests.
3747 ac_preproc_ok=:
3748 break
3749 fi
3750
3751 rm -f conftest.err conftest.$ac_ext
3752
3753 done
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3757   break
3758 fi
3759
3760     done
3761     ac_cv_prog_CPP=$CPP
3762
3763 fi
3764   CPP=$ac_cv_prog_CPP
3765 else
3766   ac_cv_prog_CPP=$CPP
3767 fi
3768 { echo "$as_me:$LINENO: result: $CPP" >&5
3769 echo "${ECHO_T}$CPP" >&6; }
3770 ac_preproc_ok=false
3771 for ac_c_preproc_warn_flag in '' yes
3772 do
3773   # Use a header file that comes with gcc, so configuring glibc
3774   # with a fresh cross-compiler works.
3775   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776   # <limits.h> exists even on freestanding compilers.
3777   # On the NeXT, cc -E runs the code through the compiler's parser,
3778   # not just through cpp. "Syntax error" is here to catch this case.
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 #ifdef __STDC__
3786 # include <limits.h>
3787 #else
3788 # include <assert.h>
3789 #endif
3790                      Syntax error
3791 _ACEOF
3792 if { (ac_try="$ac_cpp conftest.$ac_ext"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3799   ac_status=$?
3800   grep -v '^ *+' conftest.er1 >conftest.err
3801   rm -f conftest.er1
3802   cat conftest.err >&5
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); } >/dev/null && {
3805          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3806          test ! -s conftest.err
3807        }; then
3808   :
3809 else
3810   echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813   # Broken: fails on valid input.
3814 continue
3815 fi
3816
3817 rm -f conftest.err conftest.$ac_ext
3818
3819   # OK, works on sane cases.  Now check whether nonexistent headers
3820   # can be detected and how.
3821   cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h.  */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h.  */
3827 #include <ac_nonexistent.h>
3828 _ACEOF
3829 if { (ac_try="$ac_cpp conftest.$ac_ext"
3830 case "(($ac_try" in
3831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832   *) ac_try_echo=$ac_try;;
3833 esac
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3836   ac_status=$?
3837   grep -v '^ *+' conftest.er1 >conftest.err
3838   rm -f conftest.er1
3839   cat conftest.err >&5
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); } >/dev/null && {
3842          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3843          test ! -s conftest.err
3844        }; then
3845   # Broken: success on invalid input.
3846 continue
3847 else
3848   echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851   # Passes both tests.
3852 ac_preproc_ok=:
3853 break
3854 fi
3855
3856 rm -f conftest.err conftest.$ac_ext
3857
3858 done
3859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3860 rm -f conftest.err conftest.$ac_ext
3861 if $ac_preproc_ok; then
3862   :
3863 else
3864   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3865 See \`config.log' for more details." >&5
3866 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3867 See \`config.log' for more details." >&2;}
3868    { (exit 1); exit 1; }; }
3869 fi
3870
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876
3877 for ac_prog in gawk mawk nawk awk
3878 do
3879   # Extract the first word of "$ac_prog", so it can be a program name with args.
3880 set dummy $ac_prog; ac_word=$2
3881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3883 if test "${ac_cv_prog_AWK+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   if test -n "$AWK"; then
3887   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894   for ac_exec_ext in '' $ac_executable_extensions; do
3895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3896     ac_cv_prog_AWK="$ac_prog"
3897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898     break 2
3899   fi
3900 done
3901 done
3902 IFS=$as_save_IFS
3903
3904 fi
3905 fi
3906 AWK=$ac_cv_prog_AWK
3907 if test -n "$AWK"; then
3908   { echo "$as_me:$LINENO: result: $AWK" >&5
3909 echo "${ECHO_T}$AWK" >&6; }
3910 else
3911   { echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6; }
3913 fi
3914
3915
3916   test -n "$AWK" && break
3917 done
3918
3919 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3920 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3921 LN_S=$as_ln_s
3922 if test "$LN_S" = "ln -s"; then
3923   { echo "$as_me:$LINENO: result: yes" >&5
3924 echo "${ECHO_T}yes" >&6; }
3925 else
3926   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3927 echo "${ECHO_T}no, using $LN_S" >&6; }
3928 fi
3929
3930 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3931 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3932 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3933 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   cat >conftest.make <<\_ACEOF
3937 SHELL = /bin/sh
3938 all:
3939         @echo '@@@%%%=$(MAKE)=@@@%%%'
3940 _ACEOF
3941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3943   *@@@%%%=?*=@@@%%%*)
3944     eval ac_cv_prog_make_${ac_make}_set=yes;;
3945   *)
3946     eval ac_cv_prog_make_${ac_make}_set=no;;
3947 esac
3948 rm -f conftest.make
3949 fi
3950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3951   { echo "$as_me:$LINENO: result: yes" >&5
3952 echo "${ECHO_T}yes" >&6; }
3953   SET_MAKE=
3954 else
3955   { echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6; }
3957   SET_MAKE="MAKE=${MAKE-make}"
3958 fi
3959
3960 # Find a good install program.  We prefer a C program (faster),
3961 # so one script is as good as another.  But avoid the broken or
3962 # incompatible versions:
3963 # SysV /etc/install, /usr/sbin/install
3964 # SunOS /usr/etc/install
3965 # IRIX /sbin/install
3966 # AIX /bin/install
3967 # AmigaOS /C/install, which installs bootblocks on floppy discs
3968 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3971 # OS/2's system install, which has a completely different semantic
3972 # ./install, which can be erroneously created by make from ./install.sh.
3973 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3974 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3975 if test -z "$INSTALL"; then
3976 if test "${ac_cv_path_install+set}" = set; then
3977   echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   # Account for people who put trailing slashes in PATH elements.
3985 case $as_dir/ in
3986   ./ | .// | /cC/* | \
3987   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3988   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3989   /usr/ucb/* ) ;;
3990   *)
3991     # OSF1 and SCO ODT 3.0 have their own names for install.
3992     # Don't use installbsd from OSF since it installs stuff as root
3993     # by default.
3994     for ac_prog in ginstall scoinst install; do
3995       for ac_exec_ext in '' $ac_executable_extensions; do
3996         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3997           if test $ac_prog = install &&
3998             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3999             # AIX install.  It has an incompatible calling convention.
4000             :
4001           elif test $ac_prog = install &&
4002             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4003             # program-specific install script used by HP pwplus--don't use.
4004             :
4005           else
4006             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4007             break 3
4008           fi
4009         fi
4010       done
4011     done
4012     ;;
4013 esac
4014 done
4015 IFS=$as_save_IFS
4016
4017
4018 fi
4019   if test "${ac_cv_path_install+set}" = set; then
4020     INSTALL=$ac_cv_path_install
4021   else
4022     # As a last resort, use the slow shell script.  Don't cache a
4023     # value for INSTALL within a source directory, because that will
4024     # break other packages using the cache if that directory is
4025     # removed, or if the value is a relative name.
4026     INSTALL=$ac_install_sh
4027   fi
4028 fi
4029 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4030 echo "${ECHO_T}$INSTALL" >&6; }
4031
4032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4033 # It thinks the first close brace ends the variable substitution.
4034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4035
4036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4037
4038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4039
4040
4041
4042 { echo "$as_me:$LINENO: checking for __attribute__" >&5
4043 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
4044 if test "${ac_cv___attribute__+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054
4055 #include <stdlib.h>
4056
4057 int
4058 main ()
4059 {
4060
4061 static void foo(void) __attribute__ ((noreturn));
4062
4063 static void
4064 foo(void)
4065 {
4066   exit(1);
4067 }
4068
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4075 case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080   (eval "$ac_compile") 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } && {
4087          test -z "$ac_c_werror_flag" ||
4088          test ! -s conftest.err
4089        } && test -s conftest.$ac_objext; then
4090   ac_cv___attribute__=yes
4091 else
4092   echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095         ac_cv___attribute__=no
4096 fi
4097
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100
4101 if test "$ac_cv___attribute__" = "yes"; then
4102
4103 cat >>confdefs.h <<\_ACEOF
4104 #define HAVE___ATTRIBUTE__ 1
4105 _ACEOF
4106
4107 fi
4108 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4109 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
4110
4111
4112
4113    # CMU GUESS RUNPATH SWITCH
4114   { echo "$as_me:$LINENO: checking for runpath switch" >&5
4115 echo $ECHO_N "checking for runpath switch... $ECHO_C" >&6; }
4116 if test "${andrew_runpath_switch+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119
4120     # first, try -R
4121     SAVE_LDFLAGS="${LDFLAGS}"
4122     LDFLAGS="-R /usr/lib"
4123     cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext conftest$ac_exeext
4139 if { (ac_try="$ac_link"
4140 case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145   (eval "$ac_link") 2>conftest.er1
4146   ac_status=$?
4147   grep -v '^ *+' conftest.er1 >conftest.err
4148   rm -f conftest.er1
4149   cat conftest.err >&5
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } && {
4152          test -z "$ac_c_werror_flag" ||
4153          test ! -s conftest.err
4154        } && test -s conftest$ac_exeext &&
4155        $as_test_x conftest$ac_exeext; then
4156   andrew_runpath_switch="-R"
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161
4162         LDFLAGS="-Wl,-rpath,/usr/lib"
4163     cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169
4170 int
4171 main ()
4172 {
4173
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (ac_try="$ac_link"
4180 case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_link") 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } && {
4192          test -z "$ac_c_werror_flag" ||
4193          test ! -s conftest.err
4194        } && test -s conftest$ac_exeext &&
4195        $as_test_x conftest$ac_exeext; then
4196   andrew_runpath_switch="-Wl,-rpath,"
4197 else
4198   echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201         andrew_runpath_switch="none"
4202 fi
4203
4204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4205       conftest$ac_exeext conftest.$ac_ext
4206
4207 fi
4208
4209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4210       conftest$ac_exeext conftest.$ac_ext
4211   LDFLAGS="${SAVE_LDFLAGS}"
4212
4213 fi
4214 { echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
4215 echo "${ECHO_T}$andrew_runpath_switch" >&6; }
4216
4217
4218 # Check whether --with-staticsasl was given.
4219 if test "${with_staticsasl+set}" = set; then
4220   withval=$with_staticsasl;
4221 fi
4222
4223 if test "$with_staticsasl" = yes; then
4224         enable_shared=yes
4225         enable_static=yes
4226 fi
4227
4228 save_target=$target
4229 if test -z "$target"; then
4230         target="NONE"
4231 fi
4232
4233 # new libtool
4234 # Check whether --enable-static was given.
4235 if test "${enable_static+set}" = set; then
4236   enableval=$enable_static; p=${PACKAGE-default}
4237     case $enableval in
4238     yes) enable_static=yes ;;
4239     no) enable_static=no ;;
4240     *)
4241      enable_static=no
4242       # Look at the argument we got.  We use all the common list separators.
4243       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4244       for pkg in $enableval; do
4245         IFS="$lt_save_ifs"
4246         if test "X$pkg" = "X$p"; then
4247           enable_static=yes
4248         fi
4249       done
4250       IFS="$lt_save_ifs"
4251       ;;
4252     esac
4253 else
4254   enable_static=no
4255 fi
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265 case `pwd` in
4266   *\ * | *\     *)
4267     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4268 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4269 esac
4270
4271
4272
4273 macro_version='2.2.10'
4274 macro_revision='1.3175'
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288 ltmain="$ac_aux_dir/ltmain.sh"
4289
4290 # Backslashify metacharacters that are still active within
4291 # double-quoted strings.
4292 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4293
4294 # Same as above, but do not quote variable references.
4295 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4296
4297 # Sed substitution to delay expansion of an escaped shell variable in a
4298 # double_quote_subst'ed string.
4299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4300
4301 # Sed substitution to delay expansion of an escaped single quote.
4302 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4303
4304 # Sed substitution to avoid accidental globbing in evaled expressions
4305 no_glob_subst='s/\*/\\\*/g'
4306
4307 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4310
4311 { echo "$as_me:$LINENO: checking how to print strings" >&5
4312 echo $ECHO_N "checking how to print strings... $ECHO_C" >&6; }
4313 # Test print first, because it will be a builtin if present.
4314 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4315    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4316   ECHO='print -r --'
4317 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4318   ECHO='printf %s\n'
4319 else
4320   # Use this function as a fallback that always works.
4321   func_fallback_echo ()
4322   {
4323     eval 'cat <<_LTECHO_EOF
4324 $1
4325 _LTECHO_EOF'
4326   }
4327   ECHO='func_fallback_echo'
4328 fi
4329
4330 # func_echo_all arg...
4331 # Invoke $ECHO with all args, space-separated.
4332 func_echo_all ()
4333 {
4334     $ECHO ""
4335 }
4336
4337 case "$ECHO" in
4338   printf*) { echo "$as_me:$LINENO: result: printf" >&5
4339 echo "${ECHO_T}printf" >&6; } ;;
4340   print*) { echo "$as_me:$LINENO: result: print -r" >&5
4341 echo "${ECHO_T}print -r" >&6; } ;;
4342   *) { echo "$as_me:$LINENO: result: cat" >&5
4343 echo "${ECHO_T}cat" >&6; } ;;
4344 esac
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4360 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4361 if test "${ac_cv_path_SED+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4365      for ac_i in 1 2 3 4 5 6 7; do
4366        ac_script="$ac_script$as_nl$ac_script"
4367      done
4368      echo "$ac_script" | sed 99q >conftest.sed
4369      $as_unset ac_script || ac_script=
4370      # Extract the first word of "sed gsed" to use in msg output
4371 if test -z "$SED"; then
4372 set dummy sed gsed; ac_prog_name=$2
4373 if test "${ac_cv_path_SED+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   ac_path_SED_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383   for ac_prog in sed gsed; do
4384   for ac_exec_ext in '' $ac_executable_extensions; do
4385     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4386     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4387     # Check for GNU ac_path_SED and select it if it is found.
4388   # Check for GNU $ac_path_SED
4389 case `"$ac_path_SED" --version 2>&1` in
4390 *GNU*)
4391   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4392 *)
4393   ac_count=0
4394   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4395   while :
4396   do
4397     cat "conftest.in" "conftest.in" >"conftest.tmp"
4398     mv "conftest.tmp" "conftest.in"
4399     cp "conftest.in" "conftest.nl"
4400     echo '' >> "conftest.nl"
4401     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403     ac_count=`expr $ac_count + 1`
4404     if test $ac_count -gt ${ac_path_SED_max-0}; then
4405       # Best one so far, save it but keep looking for a better one
4406       ac_cv_path_SED="$ac_path_SED"
4407       ac_path_SED_max=$ac_count
4408     fi
4409     # 10*(2^10) chars as input seems more than enough
4410     test $ac_count -gt 10 && break
4411   done
4412   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4414
4415
4416     $ac_path_SED_found && break 3
4417   done
4418 done
4419
4420 done
4421 IFS=$as_save_IFS
4422
4423
4424 fi
4425
4426 SED="$ac_cv_path_SED"
4427 if test -z "$SED"; then
4428   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4429 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4430    { (exit 1); exit 1; }; }
4431 fi
4432
4433 else
4434   ac_cv_path_SED=$SED
4435 fi
4436
4437 fi
4438 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4439 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4440  SED="$ac_cv_path_SED"
4441   rm -f conftest.sed
4442
4443 test -z "$SED" && SED=sed
4444 Xsed="$SED -e 1s/^X//"
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4457 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4458 if test "${ac_cv_path_GREP+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   # Extract the first word of "grep ggrep" to use in msg output
4462 if test -z "$GREP"; then
4463 set dummy grep ggrep; ac_prog_name=$2
4464 if test "${ac_cv_path_GREP+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   ac_path_GREP_found=false
4468 # Loop through the user's path and test for each of PROGNAME-LIST
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4471 do
4472   IFS=$as_save_IFS
4473   test -z "$as_dir" && as_dir=.
4474   for ac_prog in grep ggrep; do
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4477     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4478     # Check for GNU ac_path_GREP and select it if it is found.
4479   # Check for GNU $ac_path_GREP
4480 case `"$ac_path_GREP" --version 2>&1` in
4481 *GNU*)
4482   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4483 *)
4484   ac_count=0
4485   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4486   while :
4487   do
4488     cat "conftest.in" "conftest.in" >"conftest.tmp"
4489     mv "conftest.tmp" "conftest.in"
4490     cp "conftest.in" "conftest.nl"
4491     echo 'GREP' >> "conftest.nl"
4492     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4493     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4494     ac_count=`expr $ac_count + 1`
4495     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4496       # Best one so far, save it but keep looking for a better one
4497       ac_cv_path_GREP="$ac_path_GREP"
4498       ac_path_GREP_max=$ac_count
4499     fi
4500     # 10*(2^10) chars as input seems more than enough
4501     test $ac_count -gt 10 && break
4502   done
4503   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4504 esac
4505
4506
4507     $ac_path_GREP_found && break 3
4508   done
4509 done
4510
4511 done
4512 IFS=$as_save_IFS
4513
4514
4515 fi
4516
4517 GREP="$ac_cv_path_GREP"
4518 if test -z "$GREP"; then
4519   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4520 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4521    { (exit 1); exit 1; }; }
4522 fi
4523
4524 else
4525   ac_cv_path_GREP=$GREP
4526 fi
4527
4528
4529 fi
4530 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4531 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4532  GREP="$ac_cv_path_GREP"
4533
4534
4535 { echo "$as_me:$LINENO: checking for egrep" >&5
4536 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4537 if test "${ac_cv_path_EGREP+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4541    then ac_cv_path_EGREP="$GREP -E"
4542    else
4543      # Extract the first word of "egrep" to use in msg output
4544 if test -z "$EGREP"; then
4545 set dummy egrep; ac_prog_name=$2
4546 if test "${ac_cv_path_EGREP+set}" = set; then
4547   echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549   ac_path_EGREP_found=false
4550 # Loop through the user's path and test for each of PROGNAME-LIST
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556   for ac_prog in egrep; do
4557   for ac_exec_ext in '' $ac_executable_extensions; do
4558     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4559     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4560     # Check for GNU ac_path_EGREP and select it if it is found.
4561   # Check for GNU $ac_path_EGREP
4562 case `"$ac_path_EGREP" --version 2>&1` in
4563 *GNU*)
4564   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4565 *)
4566   ac_count=0
4567   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4568   while :
4569   do
4570     cat "conftest.in" "conftest.in" >"conftest.tmp"
4571     mv "conftest.tmp" "conftest.in"
4572     cp "conftest.in" "conftest.nl"
4573     echo 'EGREP' >> "conftest.nl"
4574     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576     ac_count=`expr $ac_count + 1`
4577     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4578       # Best one so far, save it but keep looking for a better one
4579       ac_cv_path_EGREP="$ac_path_EGREP"
4580       ac_path_EGREP_max=$ac_count
4581     fi
4582     # 10*(2^10) chars as input seems more than enough
4583     test $ac_count -gt 10 && break
4584   done
4585   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586 esac
4587
4588
4589     $ac_path_EGREP_found && break 3
4590   done
4591 done
4592
4593 done
4594 IFS=$as_save_IFS
4595
4596
4597 fi
4598
4599 EGREP="$ac_cv_path_EGREP"
4600 if test -z "$EGREP"; then
4601   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4602 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4603    { (exit 1); exit 1; }; }
4604 fi
4605
4606 else
4607   ac_cv_path_EGREP=$EGREP
4608 fi
4609
4610
4611    fi
4612 fi
4613 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4614 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4615  EGREP="$ac_cv_path_EGREP"
4616
4617
4618 { echo "$as_me:$LINENO: checking for fgrep" >&5
4619 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4620 if test "${ac_cv_path_FGREP+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4624    then ac_cv_path_FGREP="$GREP -F"
4625    else
4626      # Extract the first word of "fgrep" to use in msg output
4627 if test -z "$FGREP"; then
4628 set dummy fgrep; ac_prog_name=$2
4629 if test "${ac_cv_path_FGREP+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   ac_path_FGREP_found=false
4633 # Loop through the user's path and test for each of PROGNAME-LIST
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4636 do
4637   IFS=$as_save_IFS
4638   test -z "$as_dir" && as_dir=.
4639   for ac_prog in fgrep; do
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4642     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4643     # Check for GNU ac_path_FGREP and select it if it is found.
4644   # Check for GNU $ac_path_FGREP
4645 case `"$ac_path_FGREP" --version 2>&1` in
4646 *GNU*)
4647   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4648 *)
4649   ac_count=0
4650   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4651   while :
4652   do
4653     cat "conftest.in" "conftest.in" >"conftest.tmp"
4654     mv "conftest.tmp" "conftest.in"
4655     cp "conftest.in" "conftest.nl"
4656     echo 'FGREP' >> "conftest.nl"
4657     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4658     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4659     ac_count=`expr $ac_count + 1`
4660     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4661       # Best one so far, save it but keep looking for a better one
4662       ac_cv_path_FGREP="$ac_path_FGREP"
4663       ac_path_FGREP_max=$ac_count
4664     fi
4665     # 10*(2^10) chars as input seems more than enough
4666     test $ac_count -gt 10 && break
4667   done
4668   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669 esac
4670
4671
4672     $ac_path_FGREP_found && break 3
4673   done
4674 done
4675
4676 done
4677 IFS=$as_save_IFS
4678
4679
4680 fi
4681
4682 FGREP="$ac_cv_path_FGREP"
4683 if test -z "$FGREP"; then
4684   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4686    { (exit 1); exit 1; }; }
4687 fi
4688
4689 else
4690   ac_cv_path_FGREP=$FGREP
4691 fi
4692
4693
4694    fi
4695 fi
4696 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4697 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4698  FGREP="$ac_cv_path_FGREP"
4699
4700
4701 test -z "$GREP" && GREP=grep
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721 # Check whether --with-gnu-ld was given.
4722 if test "${with_gnu_ld+set}" = set; then
4723   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4724 else
4725   with_gnu_ld=no
4726 fi
4727
4728 ac_prog=ld
4729 if test "$GCC" = yes; then
4730   # Check if gcc -print-prog-name=ld gives a path.
4731   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4732 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4733   case $host in
4734   *-*-mingw*)
4735     # gcc leaves a trailing carriage return which upsets mingw
4736     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4737   *)
4738     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4739   esac
4740   case $ac_prog in
4741     # Accept absolute paths.
4742     [\\/]* | ?:[\\/]*)
4743       re_direlt='/[^/][^/]*/\.\./'
4744       # Canonicalize the pathname of ld
4745       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4746       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4747         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4748       done
4749       test -z "$LD" && LD="$ac_prog"
4750       ;;
4751   "")
4752     # If it fails, then pretend we aren't using GCC.
4753     ac_prog=ld
4754     ;;
4755   *)
4756     # If it is relative, then search for the first ld in PATH.
4757     with_gnu_ld=unknown
4758     ;;
4759   esac
4760 elif test "$with_gnu_ld" = yes; then
4761   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4762 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4763 else
4764   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4765 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4766 fi
4767 if test "${lt_cv_path_LD+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   if test -z "$LD"; then
4771   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4772   for ac_dir in $PATH; do
4773     IFS="$lt_save_ifs"
4774     test -z "$ac_dir" && ac_dir=.
4775     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4776       lt_cv_path_LD="$ac_dir/$ac_prog"
4777       # Check to see if the program is GNU ld.  I'd rather use --version,
4778       # but apparently some variants of GNU ld only accept -v.
4779       # Break only if it was the GNU/non-GNU ld that we prefer.
4780       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4781       *GNU* | *'with BFD'*)
4782         test "$with_gnu_ld" != no && break
4783         ;;
4784       *)
4785         test "$with_gnu_ld" != yes && break
4786         ;;
4787       esac
4788     fi
4789   done
4790   IFS="$lt_save_ifs"
4791 else
4792   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4793 fi
4794 fi
4795
4796 LD="$lt_cv_path_LD"
4797 if test -n "$LD"; then
4798   { echo "$as_me:$LINENO: result: $LD" >&5
4799 echo "${ECHO_T}$LD" >&6; }
4800 else
4801   { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
4803 fi
4804 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4805 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4806    { (exit 1); exit 1; }; }
4807 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4808 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4809 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4813 case `$LD -v 2>&1 </dev/null` in
4814 *GNU* | *'with BFD'*)
4815   lt_cv_prog_gnu_ld=yes
4816   ;;
4817 *)
4818   lt_cv_prog_gnu_ld=no
4819   ;;
4820 esac
4821 fi
4822 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4823 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4824 with_gnu_ld=$lt_cv_prog_gnu_ld
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4835 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4836 if test "${lt_cv_path_NM+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839   if test -n "$NM"; then
4840   # Let the user override the test.
4841   lt_cv_path_NM="$NM"
4842 else
4843   lt_nm_to_check="${ac_tool_prefix}nm"
4844   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4845     lt_nm_to_check="$lt_nm_to_check nm"
4846   fi
4847   for lt_tmp_nm in $lt_nm_to_check; do
4848     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4849     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4850       IFS="$lt_save_ifs"
4851       test -z "$ac_dir" && ac_dir=.
4852       tmp_nm="$ac_dir/$lt_tmp_nm"
4853       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4854         # Check to see if the nm accepts a BSD-compat flag.
4855         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4856         #   nm: unknown option "B" ignored
4857         # Tru64's nm complains that /dev/null is an invalid object file
4858         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4859         */dev/null* | *'Invalid file or object type'*)
4860           lt_cv_path_NM="$tmp_nm -B"
4861           break
4862           ;;
4863         *)
4864           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4865           */dev/null*)
4866             lt_cv_path_NM="$tmp_nm -p"
4867             break
4868             ;;
4869           *)
4870             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4871             continue # so that we can try to find one that supports BSD flags
4872             ;;
4873           esac
4874           ;;
4875         esac
4876       fi
4877     done
4878     IFS="$lt_save_ifs"
4879   done
4880   : ${lt_cv_path_NM=no}
4881 fi
4882 fi
4883 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4884 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4885 if test "$lt_cv_path_NM" != "no"; then
4886   NM="$lt_cv_path_NM"
4887 else
4888   # Didn't find any BSD compatible name lister, look for dumpbin.
4889   if test -n "$DUMPBIN"; then :
4890     # Let the user override the test.
4891   else
4892     if test -n "$ac_tool_prefix"; then
4893   for ac_prog in dumpbin "link -dump"
4894   do
4895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if test -n "$DUMPBIN"; then
4903   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 DUMPBIN=$ac_cv_prog_DUMPBIN
4923 if test -n "$DUMPBIN"; then
4924   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4925 echo "${ECHO_T}$DUMPBIN" >&6; }
4926 else
4927   { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4929 fi
4930
4931
4932     test -n "$DUMPBIN" && break
4933   done
4934 fi
4935 if test -z "$DUMPBIN"; then
4936   ac_ct_DUMPBIN=$DUMPBIN
4937   for ac_prog in dumpbin "link -dump"
4938 do
4939   # Extract the first word of "$ac_prog", so it can be a program name with args.
4940 set dummy $ac_prog; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   if test -n "$ac_ct_DUMPBIN"; then
4947   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961 done
4962 IFS=$as_save_IFS
4963
4964 fi
4965 fi
4966 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4967 if test -n "$ac_ct_DUMPBIN"; then
4968   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4969 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4970 else
4971   { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4973 fi
4974
4975
4976   test -n "$ac_ct_DUMPBIN" && break
4977 done
4978
4979   if test "x$ac_ct_DUMPBIN" = x; then
4980     DUMPBIN=":"
4981   else
4982     case $cross_compiling:$ac_tool_warned in
4983 yes:)
4984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4985 whose name does not start with the host triplet.  If you think this
4986 configuration is useful to you, please write to autoconf@gnu.org." >&5
4987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4988 whose name does not start with the host triplet.  If you think this
4989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4990 ac_tool_warned=yes ;;
4991 esac
4992     DUMPBIN=$ac_ct_DUMPBIN
4993   fi
4994 fi
4995
4996     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4997     *COFF*)
4998       DUMPBIN="$DUMPBIN -symbols"
4999       ;;
5000     *)
5001       DUMPBIN=:
5002       ;;
5003     esac
5004   fi
5005
5006   if test "$DUMPBIN" != ":"; then
5007     NM="$DUMPBIN"
5008   fi
5009 fi
5010 test -z "$NM" && NM=nm
5011
5012
5013
5014
5015
5016
5017 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5018 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5019 if test "${lt_cv_nm_interface+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   lt_cv_nm_interface="BSD nm"
5023   echo "int some_variable = 0;" > conftest.$ac_ext
5024   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5025   (eval "$ac_compile" 2>conftest.err)
5026   cat conftest.err >&5
5027   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5028   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5029   cat conftest.err >&5
5030   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5031   cat conftest.out >&5
5032   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5033     lt_cv_nm_interface="MS dumpbin"
5034   fi
5035   rm -f conftest*
5036 fi
5037 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5038 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5039
5040 # find the maximum length of command line arguments
5041 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5042 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5043 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046     i=0
5047   teststring="ABCD"
5048
5049   case $build_os in
5050   msdosdjgpp*)
5051     # On DJGPP, this test can blow up pretty badly due to problems in libc
5052     # (any single argument exceeding 2000 bytes causes a buffer overrun
5053     # during glob expansion).  Even if it were fixed, the result of this
5054     # check would be larger than it should be.
5055     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5056     ;;
5057
5058   gnu*)
5059     # Under GNU Hurd, this test is not required because there is
5060     # no limit to the length of command line arguments.
5061     # Libtool will interpret -1 as no limit whatsoever
5062     lt_cv_sys_max_cmd_len=-1;
5063     ;;
5064
5065   cygwin* | mingw* | cegcc*)
5066     # On Win9x/ME, this test blows up -- it succeeds, but takes
5067     # about 5 minutes as the teststring grows exponentially.
5068     # Worse, since 9x/ME are not pre-emptively multitasking,
5069     # you end up with a "frozen" computer, even though with patience
5070     # the test eventually succeeds (with a max line length of 256k).
5071     # Instead, let's just punt: use the minimum linelength reported by
5072     # all of the supported platforms: 8192 (on NT/2K/XP).
5073     lt_cv_sys_max_cmd_len=8192;
5074     ;;
5075
5076   mint*)
5077     # On MiNT this can take a long time and run out of memory.
5078     lt_cv_sys_max_cmd_len=8192;
5079     ;;
5080
5081   amigaos*)
5082     # On AmigaOS with pdksh, this test takes hours, literally.
5083     # So we just punt and use a minimum line length of 8192.
5084     lt_cv_sys_max_cmd_len=8192;
5085     ;;
5086
5087   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5088     # This has been around since 386BSD, at least.  Likely further.
5089     if test -x /sbin/sysctl; then
5090       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5091     elif test -x /usr/sbin/sysctl; then
5092       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5093     else
5094       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5095     fi
5096     # And add a safety zone
5097     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5099     ;;
5100
5101   interix*)
5102     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5103     lt_cv_sys_max_cmd_len=196608
5104     ;;
5105
5106   osf*)
5107     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5108     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5109     # nice to cause kernel panics so lets avoid the loop below.
5110     # First set a reasonable default.
5111     lt_cv_sys_max_cmd_len=16384
5112     #
5113     if test -x /sbin/sysconfig; then
5114       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5115         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5116       esac
5117     fi
5118     ;;
5119   sco3.2v5*)
5120     lt_cv_sys_max_cmd_len=102400
5121     ;;
5122   sysv5* | sco5v6* | sysv4.2uw2*)
5123     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5124     if test -n "$kargmax"; then
5125       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5126     else
5127       lt_cv_sys_max_cmd_len=32768
5128     fi
5129     ;;
5130   *)
5131     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5132     if test -n "$lt_cv_sys_max_cmd_len"; then
5133       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5134       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5135     else
5136       # Make teststring a little bigger before we do anything with it.
5137       # a 1K string should be a reasonable start.
5138       for i in 1 2 3 4 5 6 7 8 ; do
5139         teststring=$teststring$teststring
5140       done
5141       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5142       # If test is not a shell built-in, we'll probably end up computing a
5143       # maximum length that is only half of the actual maximum length, but
5144       # we can't tell.
5145       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5146                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5147               test $i != 17 # 1/2 MB should be enough
5148       do
5149         i=`expr $i + 1`
5150         teststring=$teststring$teststring
5151       done
5152       # Only check the string length outside the loop.
5153       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5154       teststring=
5155       # Add a significant safety factor because C++ compilers can tack on
5156       # massive amounts of additional arguments before passing them to the
5157       # linker.  It appears as though 1/2 is a usable value.
5158       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5159     fi
5160     ;;
5161   esac
5162
5163 fi
5164
5165 if test -n $lt_cv_sys_max_cmd_len ; then
5166   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5167 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5168 else
5169   { echo "$as_me:$LINENO: result: none" >&5
5170 echo "${ECHO_T}none" >&6; }
5171 fi
5172 max_cmd_len=$lt_cv_sys_max_cmd_len
5173
5174
5175
5176
5177
5178
5179 : ${CP="cp -f"}
5180 : ${MV="mv -f"}
5181 : ${RM="rm -f"}
5182
5183 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5184 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5185 # Try some XSI features
5186 xsi_shell=no
5187 ( _lt_dummy="a/b/c"
5188   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5189       = c,a/b,, \
5190     && eval 'test $(( 1 + 1 )) -eq 2 \
5191     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5192   && xsi_shell=yes
5193 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5194 echo "${ECHO_T}$xsi_shell" >&6; }
5195
5196
5197 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5198 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5199 lt_shell_append=no
5200 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5201     >/dev/null 2>&1 \
5202   && lt_shell_append=yes
5203 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5204 echo "${ECHO_T}$lt_shell_append" >&6; }
5205
5206
5207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5208   lt_unset=unset
5209 else
5210   lt_unset=false
5211 fi
5212
5213
5214
5215
5216
5217 # test EBCDIC or ASCII
5218 case `echo X|tr X '\101'` in
5219  A) # ASCII based system
5220     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5221   lt_SP2NL='tr \040 \012'
5222   lt_NL2SP='tr \015\012 \040\040'
5223   ;;
5224  *) # EBCDIC based system
5225   lt_SP2NL='tr \100 \n'
5226   lt_NL2SP='tr \r\n \100\100'
5227   ;;
5228 esac
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5239 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5240 if test "${lt_cv_ld_reload_flag+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   lt_cv_ld_reload_flag='-r'
5244 fi
5245 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5246 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5247 reload_flag=$lt_cv_ld_reload_flag
5248 case $reload_flag in
5249 "" | " "*) ;;
5250 *) reload_flag=" $reload_flag" ;;
5251 esac
5252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5253 case $host_os in
5254   darwin*)
5255     if test "$GCC" = yes; then
5256       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5257     else
5258       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5259     fi
5260     ;;
5261 esac
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 if test -n "$ac_tool_prefix"; then
5272   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   if test -n "$OBJDUMP"; then
5280   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285   IFS=$as_save_IFS
5286   test -z "$as_dir" && as_dir=.
5287   for ac_exec_ext in '' $ac_executable_extensions; do
5288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291     break 2
5292   fi
5293 done
5294 done
5295 IFS=$as_save_IFS
5296
5297 fi
5298 fi
5299 OBJDUMP=$ac_cv_prog_OBJDUMP
5300 if test -n "$OBJDUMP"; then
5301   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5302 echo "${ECHO_T}$OBJDUMP" >&6; }
5303 else
5304   { echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6; }
5306 fi
5307
5308
5309 fi
5310 if test -z "$ac_cv_prog_OBJDUMP"; then
5311   ac_ct_OBJDUMP=$OBJDUMP
5312   # Extract the first word of "objdump", so it can be a program name with args.
5313 set dummy objdump; ac_word=$2
5314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5316 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   if test -n "$ac_ct_OBJDUMP"; then
5320   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325   IFS=$as_save_IFS
5326   test -z "$as_dir" && as_dir=.
5327   for ac_exec_ext in '' $ac_executable_extensions; do
5328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 fi
5338 fi
5339 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5340 if test -n "$ac_ct_OBJDUMP"; then
5341   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5342 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5343 else
5344   { echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6; }
5346 fi
5347
5348   if test "x$ac_ct_OBJDUMP" = x; then
5349     OBJDUMP="false"
5350   else
5351     case $cross_compiling:$ac_tool_warned in
5352 yes:)
5353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5354 whose name does not start with the host triplet.  If you think this
5355 configuration is useful to you, please write to autoconf@gnu.org." >&5
5356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5357 whose name does not start with the host triplet.  If you think this
5358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5359 ac_tool_warned=yes ;;
5360 esac
5361     OBJDUMP=$ac_ct_OBJDUMP
5362   fi
5363 else
5364   OBJDUMP="$ac_cv_prog_OBJDUMP"
5365 fi
5366
5367 test -z "$OBJDUMP" && OBJDUMP=objdump
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5378 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5379 if test "${lt_cv_deplibs_check_method+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382   lt_cv_file_magic_cmd='$MAGIC_CMD'
5383 lt_cv_file_magic_test_file=
5384 lt_cv_deplibs_check_method='unknown'
5385 # Need to set the preceding variable on all platforms that support
5386 # interlibrary dependencies.
5387 # 'none' -- dependencies not supported.
5388 # `unknown' -- same as none, but documents that we really don't know.
5389 # 'pass_all' -- all dependencies passed with no checks.
5390 # 'test_compile' -- check by making test program.
5391 # 'file_magic [[regex]]' -- check by looking for files in library path
5392 # which responds to the $file_magic_cmd with a given extended regex.
5393 # If you have `file' or equivalent on your system and you're not sure
5394 # whether `pass_all' will *always* work, you probably want this one.
5395
5396 case $host_os in
5397 aix[4-9]*)
5398   lt_cv_deplibs_check_method=pass_all
5399   ;;
5400
5401 beos*)
5402   lt_cv_deplibs_check_method=pass_all
5403   ;;
5404
5405 bsdi[45]*)
5406   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5407   lt_cv_file_magic_cmd='/usr/bin/file -L'
5408   lt_cv_file_magic_test_file=/shlib/libc.so
5409   ;;
5410
5411 cygwin*)
5412   # func_win32_libid is a shell function defined in ltmain.sh
5413   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5414   lt_cv_file_magic_cmd='func_win32_libid'
5415   ;;
5416
5417 mingw* | pw32*)
5418   # Base MSYS/MinGW do not provide the 'file' command needed by
5419   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5420   # unless we find 'file', for example because we are cross-compiling.
5421   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5422   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5423     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5424     lt_cv_file_magic_cmd='func_win32_libid'
5425   else
5426     # Keep this pattern in sync with the one in func_win32_libid.
5427     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5428     lt_cv_file_magic_cmd='$OBJDUMP -f'
5429   fi
5430   ;;
5431
5432 cegcc*)
5433   # use the weaker test based on 'objdump'. See mingw*.
5434   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5435   lt_cv_file_magic_cmd='$OBJDUMP -f'
5436   ;;
5437
5438 darwin* | rhapsody*)
5439   lt_cv_deplibs_check_method=pass_all
5440   ;;
5441
5442 freebsd* | dragonfly*)
5443   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5444     case $host_cpu in
5445     i*86 )
5446       # Not sure whether the presence of OpenBSD here was a mistake.
5447       # Let's accept both of them until this is cleared up.
5448       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5449       lt_cv_file_magic_cmd=/usr/bin/file
5450       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5451       ;;
5452     esac
5453   else
5454     lt_cv_deplibs_check_method=pass_all
5455   fi
5456   ;;
5457
5458 gnu*)
5459   lt_cv_deplibs_check_method=pass_all
5460   ;;
5461
5462 haiku*)
5463   lt_cv_deplibs_check_method=pass_all
5464   ;;
5465
5466 hpux10.20* | hpux11*)
5467   lt_cv_file_magic_cmd=/usr/bin/file
5468   case $host_cpu in
5469   ia64*)
5470     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5471     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5472     ;;
5473   hppa*64*)
5474     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5475     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5476     ;;
5477   *)
5478     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5479     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5480     ;;
5481   esac
5482   ;;
5483
5484 interix[3-9]*)
5485   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5486   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5487   ;;
5488
5489 irix5* | irix6* | nonstopux*)
5490   case $LD in
5491   *-32|*"-32 ") libmagic=32-bit;;
5492   *-n32|*"-n32 ") libmagic=N32;;
5493   *-64|*"-64 ") libmagic=64-bit;;
5494   *) libmagic=never-match;;
5495   esac
5496   lt_cv_deplibs_check_method=pass_all
5497   ;;
5498
5499 # This must be Linux ELF.
5500 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5501   lt_cv_deplibs_check_method=pass_all
5502   ;;
5503
5504 netbsd*)
5505   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5506     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5507   else
5508     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5509   fi
5510   ;;
5511
5512 newos6*)
5513   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5514   lt_cv_file_magic_cmd=/usr/bin/file
5515   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5516   ;;
5517
5518 *nto* | *qnx*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 openbsd*)
5523   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5524     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5525   else
5526     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5527   fi
5528   ;;
5529
5530 osf3* | osf4* | osf5*)
5531   lt_cv_deplibs_check_method=pass_all
5532   ;;
5533
5534 rdos*)
5535   lt_cv_deplibs_check_method=pass_all
5536   ;;
5537
5538 solaris*)
5539   lt_cv_deplibs_check_method=pass_all
5540   ;;
5541
5542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5543   lt_cv_deplibs_check_method=pass_all
5544   ;;
5545
5546 sysv4 | sysv4.3*)
5547   case $host_vendor in
5548   motorola)
5549     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5550     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5551     ;;
5552   ncr)
5553     lt_cv_deplibs_check_method=pass_all
5554     ;;
5555   sequent)
5556     lt_cv_file_magic_cmd='/bin/file'
5557     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5558     ;;
5559   sni)
5560     lt_cv_file_magic_cmd='/bin/file'
5561     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5562     lt_cv_file_magic_test_file=/lib/libc.so
5563     ;;
5564   siemens)
5565     lt_cv_deplibs_check_method=pass_all
5566     ;;
5567   pc)
5568     lt_cv_deplibs_check_method=pass_all
5569     ;;
5570   esac
5571   ;;
5572
5573 tpf*)
5574   lt_cv_deplibs_check_method=pass_all
5575   ;;
5576 esac
5577
5578 fi
5579 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5580 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5581 file_magic_cmd=$lt_cv_file_magic_cmd
5582 deplibs_check_method=$lt_cv_deplibs_check_method
5583 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 if test -n "$ac_tool_prefix"; then
5597   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5598 set dummy ${ac_tool_prefix}ar; ac_word=$2
5599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5601 if test "${ac_cv_prog_AR+set}" = set; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604   if test -n "$AR"; then
5605   ac_cv_prog_AR="$AR" # Let the user override the test.
5606 else
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5609 do
5610   IFS=$as_save_IFS
5611   test -z "$as_dir" && as_dir=.
5612   for ac_exec_ext in '' $ac_executable_extensions; do
5613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614     ac_cv_prog_AR="${ac_tool_prefix}ar"
5615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616     break 2
5617   fi
5618 done
5619 done
5620 IFS=$as_save_IFS
5621
5622 fi
5623 fi
5624 AR=$ac_cv_prog_AR
5625 if test -n "$AR"; then
5626   { echo "$as_me:$LINENO: result: $AR" >&5
5627 echo "${ECHO_T}$AR" >&6; }
5628 else
5629   { echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6; }
5631 fi
5632
5633
5634 fi
5635 if test -z "$ac_cv_prog_AR"; then
5636   ac_ct_AR=$AR
5637   # Extract the first word of "ar", so it can be a program name with args.
5638 set dummy ar; ac_word=$2
5639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5641 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   if test -n "$ac_ct_AR"; then
5645   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650   IFS=$as_save_IFS
5651   test -z "$as_dir" && as_dir=.
5652   for ac_exec_ext in '' $ac_executable_extensions; do
5653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654     ac_cv_prog_ac_ct_AR="ar"
5655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656     break 2
5657   fi
5658 done
5659 done
5660 IFS=$as_save_IFS
5661
5662 fi
5663 fi
5664 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5665 if test -n "$ac_ct_AR"; then
5666   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5667 echo "${ECHO_T}$ac_ct_AR" >&6; }
5668 else
5669   { echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6; }
5671 fi
5672
5673   if test "x$ac_ct_AR" = x; then
5674     AR="false"
5675   else
5676     case $cross_compiling:$ac_tool_warned in
5677 yes:)
5678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5679 whose name does not start with the host triplet.  If you think this
5680 configuration is useful to you, please write to autoconf@gnu.org." >&5
5681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5682 whose name does not start with the host triplet.  If you think this
5683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5684 ac_tool_warned=yes ;;
5685 esac
5686     AR=$ac_ct_AR
5687   fi
5688 else
5689   AR="$ac_cv_prog_AR"
5690 fi
5691
5692 test -z "$AR" && AR=ar
5693 test -z "$AR_FLAGS" && AR_FLAGS=cru
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705 if test -n "$ac_tool_prefix"; then
5706   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}strip; ac_word=$2
5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_STRIP+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   if test -n "$STRIP"; then
5714   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   for ac_exec_ext in '' $ac_executable_extensions; do
5722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 STRIP=$ac_cv_prog_STRIP
5734 if test -n "$STRIP"; then
5735   { echo "$as_me:$LINENO: result: $STRIP" >&5
5736 echo "${ECHO_T}$STRIP" >&6; }
5737 else
5738   { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5740 fi
5741
5742
5743 fi
5744 if test -z "$ac_cv_prog_STRIP"; then
5745   ac_ct_STRIP=$STRIP
5746   # Extract the first word of "strip", so it can be a program name with args.
5747 set dummy strip; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   if test -n "$ac_ct_STRIP"; then
5754   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761   for ac_exec_ext in '' $ac_executable_extensions; do
5762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763     ac_cv_prog_ac_ct_STRIP="strip"
5764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765     break 2
5766   fi
5767 done
5768 done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
5773 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5774 if test -n "$ac_ct_STRIP"; then
5775   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5776 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5777 else
5778   { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5780 fi
5781
5782   if test "x$ac_ct_STRIP" = x; then
5783     STRIP=":"
5784   else
5785     case $cross_compiling:$ac_tool_warned in
5786 yes:)
5787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5788 whose name does not start with the host triplet.  If you think this
5789 configuration is useful to you, please write to autoconf@gnu.org." >&5
5790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5791 whose name does not start with the host triplet.  If you think this
5792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5793 ac_tool_warned=yes ;;
5794 esac
5795     STRIP=$ac_ct_STRIP
5796   fi
5797 else
5798   STRIP="$ac_cv_prog_STRIP"
5799 fi
5800
5801 test -z "$STRIP" && STRIP=:
5802
5803
5804
5805
5806
5807
5808 if test -n "$ac_tool_prefix"; then
5809   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5813 if test "${ac_cv_prog_RANLIB+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   if test -n "$RANLIB"; then
5817   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824   for ac_exec_ext in '' $ac_executable_extensions; do
5825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831 done
5832 IFS=$as_save_IFS
5833
5834 fi
5835 fi
5836 RANLIB=$ac_cv_prog_RANLIB
5837 if test -n "$RANLIB"; then
5838   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5839 echo "${ECHO_T}$RANLIB" >&6; }
5840 else
5841   { echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6; }
5843 fi
5844
5845
5846 fi
5847 if test -z "$ac_cv_prog_RANLIB"; then
5848   ac_ct_RANLIB=$RANLIB
5849   # Extract the first word of "ranlib", so it can be a program name with args.
5850 set dummy ranlib; ac_word=$2
5851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   if test -n "$ac_ct_RANLIB"; then
5857   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866     ac_cv_prog_ac_ct_RANLIB="ranlib"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5877 if test -n "$ac_ct_RANLIB"; then
5878   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5879 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5880 else
5881   { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5883 fi
5884
5885   if test "x$ac_ct_RANLIB" = x; then
5886     RANLIB=":"
5887   else
5888     case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5891 whose name does not start with the host triplet.  If you think this
5892 configuration is useful to you, please write to autoconf@gnu.org." >&5
5893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5894 whose name does not start with the host triplet.  If you think this
5895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5896 ac_tool_warned=yes ;;
5897 esac
5898     RANLIB=$ac_ct_RANLIB
5899   fi
5900 else
5901   RANLIB="$ac_cv_prog_RANLIB"
5902 fi
5903
5904 test -z "$RANLIB" && RANLIB=:
5905
5906
5907
5908
5909
5910
5911 # Determine commands to create old-style static archives.
5912 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5913 old_postinstall_cmds='chmod 644 $oldlib'
5914 old_postuninstall_cmds=
5915
5916 if test -n "$RANLIB"; then
5917   case $host_os in
5918   openbsd*)
5919     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5920     ;;
5921   *)
5922     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5923     ;;
5924   esac
5925   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5926 fi
5927
5928 case $host_os in
5929   darwin*)
5930     lock_old_archive_extraction=yes ;;
5931   *)
5932     lock_old_archive_extraction=no ;;
5933 esac
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973 # If no C compiler was specified, use CC.
5974 LTCC=${LTCC-"$CC"}
5975
5976 # If no C compiler flags were specified, use CFLAGS.
5977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5978
5979 # Allow CC to be a program name with arguments.
5980 compiler=$CC
5981
5982
5983 # Check for command to grab the raw symbol name followed by C symbol from nm.
5984 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5985 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5986 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989
5990 # These are sane defaults that work on at least a few old systems.
5991 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5992
5993 # Character class describing NM global symbol codes.
5994 symcode='[BCDEGRST]'
5995
5996 # Regexp to match symbols that can be accessed directly from C.
5997 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5998
5999 # Define system-specific variables.
6000 case $host_os in
6001 aix*)
6002   symcode='[BCDT]'
6003   ;;
6004 cygwin* | mingw* | pw32* | cegcc*)
6005   symcode='[ABCDGISTW]'
6006   ;;
6007 hpux*)
6008   if test "$host_cpu" = ia64; then
6009     symcode='[ABCDEGRST]'
6010   fi
6011   ;;
6012 irix* | nonstopux*)
6013   symcode='[BCDEGRST]'
6014   ;;
6015 osf*)
6016   symcode='[BCDEGQRST]'
6017   ;;
6018 solaris*)
6019   symcode='[BDRT]'
6020   ;;
6021 sco3.2v5*)
6022   symcode='[DT]'
6023   ;;
6024 sysv4.2uw2*)
6025   symcode='[DT]'
6026   ;;
6027 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6028   symcode='[ABDT]'
6029   ;;
6030 sysv4)
6031   symcode='[DFNSTU]'
6032   ;;
6033 esac
6034
6035 # If we're using GNU nm, then use its standard symbol codes.
6036 case `$NM -V 2>&1` in
6037 *GNU* | *'with BFD'*)
6038   symcode='[ABCDGIRSTW]' ;;
6039 esac
6040
6041 # Transform an extracted symbol line into a proper C declaration.
6042 # Some systems (esp. on ia64) link data and code symbols differently,
6043 # so use this general approach.
6044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6045
6046 # Transform an extracted symbol line into symbol name and symbol address
6047 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6048 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6049
6050 # Handle CRLF in mingw tool chain
6051 opt_cr=
6052 case $build_os in
6053 mingw*)
6054   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6055   ;;
6056 esac
6057
6058 # Try without a prefix underscore, then with it.
6059 for ac_symprfx in "" "_"; do
6060
6061   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6062   symxfrm="\\1 $ac_symprfx\\2 \\2"
6063
6064   # Write the raw and C identifiers.
6065   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066     # Fake it for dumpbin and say T for any non-static function
6067     # and D for any global variable.
6068     # Also find C++ and __fastcall symbols from MSVC++,
6069     # which start with @ or ?.
6070     lt_cv_sys_global_symbol_pipe="$AWK '"\
6071 "     {last_section=section; section=\$ 3};"\
6072 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6073 "     \$ 0!~/External *\|/{next};"\
6074 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6075 "     {if(hide[section]) next};"\
6076 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6077 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6078 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6079 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6080 "     ' prfx=^$ac_symprfx"
6081   else
6082     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6083   fi
6084
6085   # Check to see that the pipe works correctly.
6086   pipe_works=no
6087
6088   rm -f conftest*
6089   cat > conftest.$ac_ext <<_LT_EOF
6090 #ifdef __cplusplus
6091 extern "C" {
6092 #endif
6093 char nm_test_var;
6094 void nm_test_func(void);
6095 void nm_test_func(void){}
6096 #ifdef __cplusplus
6097 }
6098 #endif
6099 int main(){nm_test_var='a';nm_test_func();return(0);}
6100 _LT_EOF
6101
6102   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103   (eval $ac_compile) 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); }; then
6107     # Now try to grab the symbols.
6108     nlist=conftest.nm
6109     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
6110   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } && test -s "$nlist"; then
6114       # Try sorting and uniquifying the output.
6115       if sort "$nlist" | uniq > "$nlist"T; then
6116         mv -f "$nlist"T "$nlist"
6117       else
6118         rm -f "$nlist"T
6119       fi
6120
6121       # Make sure that we snagged all the symbols we need.
6122       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6123         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6124           cat <<_LT_EOF > conftest.$ac_ext
6125 #ifdef __cplusplus
6126 extern "C" {
6127 #endif
6128
6129 _LT_EOF
6130           # Now generate the symbol file.
6131           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6132
6133           cat <<_LT_EOF >> conftest.$ac_ext
6134
6135 /* The mapping between symbol names and symbols.  */
6136 const struct {
6137   const char *name;
6138   void       *address;
6139 }
6140 lt__PROGRAM__LTX_preloaded_symbols[] =
6141 {
6142   { "@PROGRAM@", (void *) 0 },
6143 _LT_EOF
6144           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6145           cat <<\_LT_EOF >> conftest.$ac_ext
6146   {0, (void *) 0}
6147 };
6148
6149 /* This works around a problem in FreeBSD linker */
6150 #ifdef FREEBSD_WORKAROUND
6151 static const void *lt_preloaded_setup() {
6152   return lt__PROGRAM__LTX_preloaded_symbols;
6153 }
6154 #endif
6155
6156 #ifdef __cplusplus
6157 }
6158 #endif
6159 _LT_EOF
6160           # Now try linking the two files.
6161           mv conftest.$ac_objext conftstm.$ac_objext
6162           lt_save_LIBS="$LIBS"
6163           lt_save_CFLAGS="$CFLAGS"
6164           LIBS="conftstm.$ac_objext"
6165           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6166           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167   (eval $ac_link) 2>&5
6168   ac_status=$?
6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6171             pipe_works=yes
6172           fi
6173           LIBS="$lt_save_LIBS"
6174           CFLAGS="$lt_save_CFLAGS"
6175         else
6176           echo "cannot find nm_test_func in $nlist" >&5
6177         fi
6178       else
6179         echo "cannot find nm_test_var in $nlist" >&5
6180       fi
6181     else
6182       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6183     fi
6184   else
6185     echo "$progname: failed program was:" >&5
6186     cat conftest.$ac_ext >&5
6187   fi
6188   rm -rf conftest* conftst*
6189
6190   # Do not use the global_symbol_pipe unless it works.
6191   if test "$pipe_works" = yes; then
6192     break
6193   else
6194     lt_cv_sys_global_symbol_pipe=
6195   fi
6196 done
6197
6198 fi
6199
6200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6201   lt_cv_sys_global_symbol_to_cdecl=
6202 fi
6203 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6204   { echo "$as_me:$LINENO: result: failed" >&5
6205 echo "${ECHO_T}failed" >&6; }
6206 else
6207   { echo "$as_me:$LINENO: result: ok" >&5
6208 echo "${ECHO_T}ok" >&6; }
6209 fi
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232 # Check whether --enable-libtool-lock was given.
6233 if test "${enable_libtool_lock+set}" = set; then
6234   enableval=$enable_libtool_lock;
6235 fi
6236
6237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6238
6239 # Some flags need to be propagated to the compiler or linker for good
6240 # libtool support.
6241 case $host in
6242 ia64-*-hpux*)
6243   # Find out which ABI we are using.
6244   echo 'int i;' > conftest.$ac_ext
6245   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246   (eval $ac_compile) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); }; then
6250     case `/usr/bin/file conftest.$ac_objext` in
6251       *ELF-32*)
6252         HPUX_IA64_MODE="32"
6253         ;;
6254       *ELF-64*)
6255         HPUX_IA64_MODE="64"
6256         ;;
6257     esac
6258   fi
6259   rm -rf conftest*
6260   ;;
6261 *-*-irix6*)
6262   # Find out which ABI we are using.
6263   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6264   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265   (eval $ac_compile) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); }; then
6269     if test "$lt_cv_prog_gnu_ld" = yes; then
6270       case `/usr/bin/file conftest.$ac_objext` in
6271         *32-bit*)
6272           LD="${LD-ld} -melf32bsmip"
6273           ;;
6274         *N32*)
6275           LD="${LD-ld} -melf32bmipn32"
6276           ;;
6277         *64-bit*)
6278           LD="${LD-ld} -melf64bmip"
6279         ;;
6280       esac
6281     else
6282       case `/usr/bin/file conftest.$ac_objext` in
6283         *32-bit*)
6284           LD="${LD-ld} -32"
6285           ;;
6286         *N32*)
6287           LD="${LD-ld} -n32"
6288           ;;
6289         *64-bit*)
6290           LD="${LD-ld} -64"
6291           ;;
6292       esac
6293     fi
6294   fi
6295   rm -rf conftest*
6296   ;;
6297
6298 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6299 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6300   # Find out which ABI we are using.
6301   echo 'int i;' > conftest.$ac_ext
6302   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303   (eval $ac_compile) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; then
6307     case `/usr/bin/file conftest.o` in
6308       *32-bit*)
6309         case $host in
6310           x86_64-*kfreebsd*-gnu)
6311             LD="${LD-ld} -m elf_i386_fbsd"
6312             ;;
6313           x86_64-*linux*)
6314             LD="${LD-ld} -m elf_i386"
6315             ;;
6316           ppc64-*linux*|powerpc64-*linux*)
6317             LD="${LD-ld} -m elf32ppclinux"
6318             ;;
6319           s390x-*linux*)
6320             LD="${LD-ld} -m elf_s390"
6321             ;;
6322           sparc64-*linux*)
6323             LD="${LD-ld} -m elf32_sparc"
6324             ;;
6325         esac
6326         ;;
6327       *64-bit*)
6328         case $host in
6329           x86_64-*kfreebsd*-gnu)
6330             LD="${LD-ld} -m elf_x86_64_fbsd"
6331             ;;
6332           x86_64-*linux*)
6333             LD="${LD-ld} -m elf_x86_64"
6334             ;;
6335           ppc*-*linux*|powerpc*-*linux*)
6336             LD="${LD-ld} -m elf64ppc"
6337             ;;
6338           s390*-*linux*|s390*-*tpf*)
6339             LD="${LD-ld} -m elf64_s390"
6340             ;;
6341           sparc*-*linux*)
6342             LD="${LD-ld} -m elf64_sparc"
6343             ;;
6344         esac
6345         ;;
6346     esac
6347   fi
6348   rm -rf conftest*
6349   ;;
6350
6351 *-*-sco3.2v5*)
6352   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6353   SAVE_CFLAGS="$CFLAGS"
6354   CFLAGS="$CFLAGS -belf"
6355   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6356 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6357 if test "${lt_cv_cc_needs_belf+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   ac_ext=c
6361 ac_cpp='$CPP $CPPFLAGS'
6362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6365
6366      cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h.  */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h.  */
6372
6373 int
6374 main ()
6375 {
6376
6377   ;
6378   return 0;
6379 }
6380 _ACEOF
6381 rm -f conftest.$ac_objext conftest$ac_exeext
6382 if { (ac_try="$ac_link"
6383 case "(($ac_try" in
6384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385   *) ac_try_echo=$ac_try;;
6386 esac
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388   (eval "$ac_link") 2>conftest.er1
6389   ac_status=$?
6390   grep -v '^ *+' conftest.er1 >conftest.err
6391   rm -f conftest.er1
6392   cat conftest.err >&5
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); } && {
6395          test -z "$ac_c_werror_flag" ||
6396          test ! -s conftest.err
6397        } && test -s conftest$ac_exeext &&
6398        $as_test_x conftest$ac_exeext; then
6399   lt_cv_cc_needs_belf=yes
6400 else
6401   echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404         lt_cv_cc_needs_belf=no
6405 fi
6406
6407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6408       conftest$ac_exeext conftest.$ac_ext
6409      ac_ext=c
6410 ac_cpp='$CPP $CPPFLAGS'
6411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6414
6415 fi
6416 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6417 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6418   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6419     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6420     CFLAGS="$SAVE_CFLAGS"
6421   fi
6422   ;;
6423 sparc*-*solaris*)
6424   # Find out which ABI we are using.
6425   echo 'int i;' > conftest.$ac_ext
6426   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427   (eval $ac_compile) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; then
6431     case `/usr/bin/file conftest.o` in
6432     *64-bit*)
6433       case $lt_cv_prog_gnu_ld in
6434       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6435       *)
6436         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6437           LD="${LD-ld} -64"
6438         fi
6439         ;;
6440       esac
6441       ;;
6442     esac
6443   fi
6444   rm -rf conftest*
6445   ;;
6446 esac
6447
6448 need_locks="$enable_libtool_lock"
6449
6450
6451   case $host_os in
6452     rhapsody* | darwin*)
6453     if test -n "$ac_tool_prefix"; then
6454   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   if test -n "$DSYMUTIL"; then
6462   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469   for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6482 if test -n "$DSYMUTIL"; then
6483   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6484 echo "${ECHO_T}$DSYMUTIL" >&6; }
6485 else
6486   { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_DSYMUTIL"; then
6493   ac_ct_DSYMUTIL=$DSYMUTIL
6494   # Extract the first word of "dsymutil", so it can be a program name with args.
6495 set dummy dsymutil; ac_word=$2
6496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6499   echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501   if test -n "$ac_ct_DSYMUTIL"; then
6502   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509   for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6522 if test -n "$ac_ct_DSYMUTIL"; then
6523   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6524 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6525 else
6526   { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6528 fi
6529
6530   if test "x$ac_ct_DSYMUTIL" = x; then
6531     DSYMUTIL=":"
6532   else
6533     case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6536 whose name does not start with the host triplet.  If you think this
6537 configuration is useful to you, please write to autoconf@gnu.org." >&5
6538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6539 whose name does not start with the host triplet.  If you think this
6540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6541 ac_tool_warned=yes ;;
6542 esac
6543     DSYMUTIL=$ac_ct_DSYMUTIL
6544   fi
6545 else
6546   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6547 fi
6548
6549     if test -n "$ac_tool_prefix"; then
6550   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6555   echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557   if test -n "$NMEDIT"; then
6558   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565   for ac_exec_ext in '' $ac_executable_extensions; do
6566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 NMEDIT=$ac_cv_prog_NMEDIT
6578 if test -n "$NMEDIT"; then
6579   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6580 echo "${ECHO_T}$NMEDIT" >&6; }
6581 else
6582   { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6584 fi
6585
6586
6587 fi
6588 if test -z "$ac_cv_prog_NMEDIT"; then
6589   ac_ct_NMEDIT=$NMEDIT
6590   # Extract the first word of "nmedit", so it can be a program name with args.
6591 set dummy nmedit; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6595   echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597   if test -n "$ac_ct_NMEDIT"; then
6598   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605   for ac_exec_ext in '' $ac_executable_extensions; do
6606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612 done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6618 if test -n "$ac_ct_NMEDIT"; then
6619   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6620 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6621 else
6622   { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6624 fi
6625
6626   if test "x$ac_ct_NMEDIT" = x; then
6627     NMEDIT=":"
6628   else
6629     case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet.  If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&5
6634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet.  If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639     NMEDIT=$ac_ct_NMEDIT
6640   fi
6641 else
6642   NMEDIT="$ac_cv_prog_NMEDIT"
6643 fi
6644
6645     if test -n "$ac_tool_prefix"; then
6646   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6647 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_prog_LIPO+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   if test -n "$LIPO"; then
6654   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659   IFS=$as_save_IFS
6660   test -z "$as_dir" && as_dir=.
6661   for ac_exec_ext in '' $ac_executable_extensions; do
6662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665     break 2
6666   fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6670
6671 fi
6672 fi
6673 LIPO=$ac_cv_prog_LIPO
6674 if test -n "$LIPO"; then
6675   { echo "$as_me:$LINENO: result: $LIPO" >&5
6676 echo "${ECHO_T}$LIPO" >&6; }
6677 else
6678   { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6680 fi
6681
6682
6683 fi
6684 if test -z "$ac_cv_prog_LIPO"; then
6685   ac_ct_LIPO=$LIPO
6686   # Extract the first word of "lipo", so it can be a program name with args.
6687 set dummy lipo; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   if test -n "$ac_ct_LIPO"; then
6694   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699   IFS=$as_save_IFS
6700   test -z "$as_dir" && as_dir=.
6701   for ac_exec_ext in '' $ac_executable_extensions; do
6702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703     ac_cv_prog_ac_ct_LIPO="lipo"
6704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705     break 2
6706   fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6714 if test -n "$ac_ct_LIPO"; then
6715   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6716 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6717 else
6718   { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6720 fi
6721
6722   if test "x$ac_ct_LIPO" = x; then
6723     LIPO=":"
6724   else
6725     case $cross_compiling:$ac_tool_warned in
6726 yes:)
6727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6728 whose name does not start with the host triplet.  If you think this
6729 configuration is useful to you, please write to autoconf@gnu.org." >&5
6730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6731 whose name does not start with the host triplet.  If you think this
6732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6733 ac_tool_warned=yes ;;
6734 esac
6735     LIPO=$ac_ct_LIPO
6736   fi
6737 else
6738   LIPO="$ac_cv_prog_LIPO"
6739 fi
6740
6741     if test -n "$ac_tool_prefix"; then
6742   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}otool; ac_word=$2
6744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746 if test "${ac_cv_prog_OTOOL+set}" = set; then
6747   echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749   if test -n "$OTOOL"; then
6750   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 OTOOL=$ac_cv_prog_OTOOL
6770 if test -n "$OTOOL"; then
6771   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6772 echo "${ECHO_T}$OTOOL" >&6; }
6773 else
6774   { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6776 fi
6777
6778
6779 fi
6780 if test -z "$ac_cv_prog_OTOOL"; then
6781   ac_ct_OTOOL=$OTOOL
6782   # Extract the first word of "otool", so it can be a program name with args.
6783 set dummy otool; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   if test -n "$ac_ct_OTOOL"; then
6790   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795   IFS=$as_save_IFS
6796   test -z "$as_dir" && as_dir=.
6797   for ac_exec_ext in '' $ac_executable_extensions; do
6798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799     ac_cv_prog_ac_ct_OTOOL="otool"
6800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801     break 2
6802   fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6810 if test -n "$ac_ct_OTOOL"; then
6811   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6812 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6813 else
6814   { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818   if test "x$ac_ct_OTOOL" = x; then
6819     OTOOL=":"
6820   else
6821     case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6824 whose name does not start with the host triplet.  If you think this
6825 configuration is useful to you, please write to autoconf@gnu.org." >&5
6826 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6827 whose name does not start with the host triplet.  If you think this
6828 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6829 ac_tool_warned=yes ;;
6830 esac
6831     OTOOL=$ac_ct_OTOOL
6832   fi
6833 else
6834   OTOOL="$ac_cv_prog_OTOOL"
6835 fi
6836
6837     if test -n "$ac_tool_prefix"; then
6838   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6842 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6843   echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845   if test -n "$OTOOL64"; then
6846   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853   for ac_exec_ext in '' $ac_executable_extensions; do
6854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 OTOOL64=$ac_cv_prog_OTOOL64
6866 if test -n "$OTOOL64"; then
6867   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6868 echo "${ECHO_T}$OTOOL64" >&6; }
6869 else
6870   { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6872 fi
6873
6874
6875 fi
6876 if test -z "$ac_cv_prog_OTOOL64"; then
6877   ac_ct_OTOOL64=$OTOOL64
6878   # Extract the first word of "otool64", so it can be a program name with args.
6879 set dummy otool64; ac_word=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6883   echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885   if test -n "$ac_ct_OTOOL64"; then
6886   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893   for ac_exec_ext in '' $ac_executable_extensions; do
6894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895     ac_cv_prog_ac_ct_OTOOL64="otool64"
6896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903 fi
6904 fi
6905 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6906 if test -n "$ac_ct_OTOOL64"; then
6907   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6908 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6909 else
6910   { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6912 fi
6913
6914   if test "x$ac_ct_OTOOL64" = x; then
6915     OTOOL64=":"
6916   else
6917     case $cross_compiling:$ac_tool_warned in
6918 yes:)
6919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6920 whose name does not start with the host triplet.  If you think this
6921 configuration is useful to you, please write to autoconf@gnu.org." >&5
6922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6923 whose name does not start with the host triplet.  If you think this
6924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6925 ac_tool_warned=yes ;;
6926 esac
6927     OTOOL64=$ac_ct_OTOOL64
6928   fi
6929 else
6930   OTOOL64="$ac_cv_prog_OTOOL64"
6931 fi
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6960 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6961 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6962   echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964   lt_cv_apple_cc_single_mod=no
6965       if test -z "${LT_MULTI_MODULE}"; then
6966         # By default we will add the -single_module flag. You can override
6967         # by either setting the environment variable LT_MULTI_MODULE
6968         # non-empty at configure time, or by adding -multi_module to the
6969         # link flags.
6970         rm -rf libconftest.dylib*
6971         echo "int foo(void){return 1;}" > conftest.c
6972         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6973 -dynamiclib -Wl,-single_module conftest.c" >&5
6974         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6975           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6976         _lt_result=$?
6977         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6978           lt_cv_apple_cc_single_mod=yes
6979         else
6980           cat conftest.err >&5
6981         fi
6982         rm -rf libconftest.dylib*
6983         rm -f conftest.*
6984       fi
6985 fi
6986 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6987 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6988     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6989 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6990 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   lt_cv_ld_exported_symbols_list=no
6994       save_LDFLAGS=$LDFLAGS
6995       echo "_main" > conftest.sym
6996       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6997       cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003
7004 int
7005 main ()
7006 {
7007
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (ac_try="$ac_link"
7014 case "(($ac_try" in
7015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016   *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019   (eval "$ac_link") 2>conftest.er1
7020   ac_status=$?
7021   grep -v '^ *+' conftest.er1 >conftest.err
7022   rm -f conftest.er1
7023   cat conftest.err >&5
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); } && {
7026          test -z "$ac_c_werror_flag" ||
7027          test ! -s conftest.err
7028        } && test -s conftest$ac_exeext &&
7029        $as_test_x conftest$ac_exeext; then
7030   lt_cv_ld_exported_symbols_list=yes
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035         lt_cv_ld_exported_symbols_list=no
7036 fi
7037
7038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7039       conftest$ac_exeext conftest.$ac_ext
7040         LDFLAGS="$save_LDFLAGS"
7041
7042 fi
7043 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7044 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7045     { echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
7046 echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6; }
7047 if test "${lt_cv_ld_force_load+set}" = set; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   lt_cv_ld_force_load=no
7051       cat > conftest.c << _LT_EOF
7052 int forced_loaded() { return 2;}
7053 _LT_EOF
7054       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7055       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7056       echo "$AR cru libconftest.a conftest.o" >&5
7057       $AR cru libconftest.a conftest.o 2>&5
7058       echo "$RANLIB libconftest.a" >&5
7059       $RANLIB libconftest.a 2>&5
7060       cat > conftest.c << _LT_EOF
7061 int main() { return 0;}
7062 _LT_EOF
7063       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7064       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7065       _lt_result=$?
7066       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7067         lt_cv_ld_force_load=yes
7068       else
7069         cat conftest.err >&5
7070       fi
7071         rm -f conftest.err libconftest.a conftest conftest.c
7072         rm -rf conftest.dSYM
7073
7074 fi
7075 { echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7076 echo "${ECHO_T}$lt_cv_ld_force_load" >&6; }
7077     case $host_os in
7078     rhapsody* | darwin1.[012])
7079       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7080     darwin1.*)
7081       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7082     darwin*) # darwin 5.x on
7083       # if running on 10.5 or later, the deployment target defaults
7084       # to the OS version, if on x86, and 10.4, the deployment
7085       # target defaults to 10.4. Don't you love it?
7086       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7087         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7088           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7089         10.[012]*)
7090           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7091         10.*)
7092           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7093       esac
7094     ;;
7095   esac
7096     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7097       _lt_dar_single_mod='$single_module'
7098     fi
7099     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7100       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7101     else
7102       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7103     fi
7104     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7105       _lt_dsymutil='~$DSYMUTIL $lib || :'
7106     else
7107       _lt_dsymutil=
7108     fi
7109     ;;
7110   esac
7111
7112
7113 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7114 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7115 if test "${ac_cv_header_stdc+set}" = set; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118   cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 #include <stdlib.h>
7125 #include <stdarg.h>
7126 #include <string.h>
7127 #include <float.h>
7128
7129 int
7130 main ()
7131 {
7132
7133   ;
7134   return 0;
7135 }
7136 _ACEOF
7137 rm -f conftest.$ac_objext
7138 if { (ac_try="$ac_compile"
7139 case "(($ac_try" in
7140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141   *) ac_try_echo=$ac_try;;
7142 esac
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144   (eval "$ac_compile") 2>conftest.er1
7145   ac_status=$?
7146   grep -v '^ *+' conftest.er1 >conftest.err
7147   rm -f conftest.er1
7148   cat conftest.err >&5
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } && {
7151          test -z "$ac_c_werror_flag" ||
7152          test ! -s conftest.err
7153        } && test -s conftest.$ac_objext; then
7154   ac_cv_header_stdc=yes
7155 else
7156   echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159         ac_cv_header_stdc=no
7160 fi
7161
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163
7164 if test $ac_cv_header_stdc = yes; then
7165   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7166   cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h.  */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h.  */
7172 #include <string.h>
7173
7174 _ACEOF
7175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7176   $EGREP "memchr" >/dev/null 2>&1; then
7177   :
7178 else
7179   ac_cv_header_stdc=no
7180 fi
7181 rm -f -r conftest*
7182
7183 fi
7184
7185 if test $ac_cv_header_stdc = yes; then
7186   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7187   cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h.  */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h.  */
7193 #include <stdlib.h>
7194
7195 _ACEOF
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197   $EGREP "free" >/dev/null 2>&1; then
7198   :
7199 else
7200   ac_cv_header_stdc=no
7201 fi
7202 rm -f -r conftest*
7203
7204 fi
7205
7206 if test $ac_cv_header_stdc = yes; then
7207   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7208   if test "$cross_compiling" = yes; then
7209   :
7210 else
7211   cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h.  */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h.  */
7217 #include <ctype.h>
7218 #include <stdlib.h>
7219 #if ((' ' & 0x0FF) == 0x020)
7220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7222 #else
7223 # define ISLOWER(c) \
7224                    (('a' <= (c) && (c) <= 'i') \
7225                      || ('j' <= (c) && (c) <= 'r') \
7226                      || ('s' <= (c) && (c) <= 'z'))
7227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7228 #endif
7229
7230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7231 int
7232 main ()
7233 {
7234   int i;
7235   for (i = 0; i < 256; i++)
7236     if (XOR (islower (i), ISLOWER (i))
7237         || toupper (i) != TOUPPER (i))
7238       return 2;
7239   return 0;
7240 }
7241 _ACEOF
7242 rm -f conftest$ac_exeext
7243 if { (ac_try="$ac_link"
7244 case "(($ac_try" in
7245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246   *) ac_try_echo=$ac_try;;
7247 esac
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249   (eval "$ac_link") 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7253   { (case "(($ac_try" in
7254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255   *) ac_try_echo=$ac_try;;
7256 esac
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258   (eval "$ac_try") 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; }; then
7262   :
7263 else
7264   echo "$as_me: program exited with status $ac_status" >&5
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268 ( exit $ac_status )
7269 ac_cv_header_stdc=no
7270 fi
7271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7272 fi
7273
7274
7275 fi
7276 fi
7277 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7278 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7279 if test $ac_cv_header_stdc = yes; then
7280
7281 cat >>confdefs.h <<\_ACEOF
7282 #define STDC_HEADERS 1
7283 _ACEOF
7284
7285 fi
7286
7287 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7298                   inttypes.h stdint.h unistd.h
7299 do
7300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   cat >conftest.$ac_ext <<_ACEOF
7307 /* confdefs.h.  */
7308 _ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h.  */
7312 $ac_includes_default
7313
7314 #include <$ac_header>
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7318 case "(($ac_try" in
7319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320   *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323   (eval "$ac_compile") 2>conftest.er1
7324   ac_status=$?
7325   grep -v '^ *+' conftest.er1 >conftest.err
7326   rm -f conftest.er1
7327   cat conftest.err >&5
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); } && {
7330          test -z "$ac_c_werror_flag" ||
7331          test ! -s conftest.err
7332        } && test -s conftest.$ac_objext; then
7333   eval "$as_ac_Header=yes"
7334 else
7335   echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338         eval "$as_ac_Header=no"
7339 fi
7340
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 fi
7343 ac_res=`eval echo '${'$as_ac_Header'}'`
7344                { echo "$as_me:$LINENO: result: $ac_res" >&5
7345 echo "${ECHO_T}$ac_res" >&6; }
7346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7347   cat >>confdefs.h <<_ACEOF
7348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349 _ACEOF
7350
7351 fi
7352
7353 done
7354
7355
7356
7357 for ac_header in dlfcn.h
7358 do
7359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h.  */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h.  */
7371 $ac_includes_default
7372
7373 #include <$ac_header>
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (ac_try="$ac_compile"
7377 case "(($ac_try" in
7378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379   *) ac_try_echo=$ac_try;;
7380 esac
7381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382   (eval "$ac_compile") 2>conftest.er1
7383   ac_status=$?
7384   grep -v '^ *+' conftest.er1 >conftest.err
7385   rm -f conftest.er1
7386   cat conftest.err >&5
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); } && {
7389          test -z "$ac_c_werror_flag" ||
7390          test ! -s conftest.err
7391        } && test -s conftest.$ac_objext; then
7392   eval "$as_ac_Header=yes"
7393 else
7394   echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397         eval "$as_ac_Header=no"
7398 fi
7399
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 fi
7402 ac_res=`eval echo '${'$as_ac_Header'}'`
7403                { echo "$as_me:$LINENO: result: $ac_res" >&5
7404 echo "${ECHO_T}$ac_res" >&6; }
7405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7406   cat >>confdefs.h <<_ACEOF
7407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7408 _ACEOF
7409
7410 fi
7411
7412 done
7413
7414
7415
7416
7417
7418 # Set options
7419
7420
7421
7422         enable_dlopen=no
7423
7424
7425   enable_win32_dll=no
7426
7427
7428             # Check whether --enable-shared was given.
7429 if test "${enable_shared+set}" = set; then
7430   enableval=$enable_shared; p=${PACKAGE-default}
7431     case $enableval in
7432     yes) enable_shared=yes ;;
7433     no) enable_shared=no ;;
7434     *)
7435       enable_shared=no
7436       # Look at the argument we got.  We use all the common list separators.
7437       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7438       for pkg in $enableval; do
7439         IFS="$lt_save_ifs"
7440         if test "X$pkg" = "X$p"; then
7441           enable_shared=yes
7442         fi
7443       done
7444       IFS="$lt_save_ifs"
7445       ;;
7446     esac
7447 else
7448   enable_shared=yes
7449 fi
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461 # Check whether --with-pic was given.
7462 if test "${with_pic+set}" = set; then
7463   withval=$with_pic; pic_mode="$withval"
7464 else
7465   pic_mode=default
7466 fi
7467
7468
7469 test -z "$pic_mode" && pic_mode=default
7470
7471
7472
7473
7474
7475
7476
7477   # Check whether --enable-fast-install was given.
7478 if test "${enable_fast_install+set}" = set; then
7479   enableval=$enable_fast_install; p=${PACKAGE-default}
7480     case $enableval in
7481     yes) enable_fast_install=yes ;;
7482     no) enable_fast_install=no ;;
7483     *)
7484       enable_fast_install=no
7485       # Look at the argument we got.  We use all the common list separators.
7486       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7487       for pkg in $enableval; do
7488         IFS="$lt_save_ifs"
7489         if test "X$pkg" = "X$p"; then
7490           enable_fast_install=yes
7491         fi
7492       done
7493       IFS="$lt_save_ifs"
7494       ;;
7495     esac
7496 else
7497   enable_fast_install=yes
7498 fi
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510 # This can be used to rebuild libtool when needed
7511 LIBTOOL_DEPS="$ltmain"
7512
7513 # Always use our own libtool.
7514 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541 test -z "$LN_S" && LN_S="ln -s"
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 if test -n "${ZSH_VERSION+set}" ; then
7557    setopt NO_GLOB_SUBST
7558 fi
7559
7560 { echo "$as_me:$LINENO: checking for objdir" >&5
7561 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7562 if test "${lt_cv_objdir+set}" = set; then
7563   echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565   rm -f .libs 2>/dev/null
7566 mkdir .libs 2>/dev/null
7567 if test -d .libs; then
7568   lt_cv_objdir=.libs
7569 else
7570   # MS-DOS does not allow filenames that begin with a dot.
7571   lt_cv_objdir=_libs
7572 fi
7573 rmdir .libs 2>/dev/null
7574 fi
7575 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7576 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7577 objdir=$lt_cv_objdir
7578
7579
7580
7581
7582
7583 cat >>confdefs.h <<_ACEOF
7584 #define LT_OBJDIR "$lt_cv_objdir/"
7585 _ACEOF
7586
7587
7588
7589
7590 case $host_os in
7591 aix3*)
7592   # AIX sometimes has problems with the GCC collect2 program.  For some
7593   # reason, if we set the COLLECT_NAMES environment variable, the problems
7594   # vanish in a puff of smoke.
7595   if test "X${COLLECT_NAMES+set}" != Xset; then
7596     COLLECT_NAMES=
7597     export COLLECT_NAMES
7598   fi
7599   ;;
7600 esac
7601
7602 # Global variables:
7603 ofile=libtool
7604 can_build_shared=yes
7605
7606 # All known linkers require a `.a' archive for static linking (except MSVC,
7607 # which needs '.lib').
7608 libext=a
7609
7610 with_gnu_ld="$lt_cv_prog_gnu_ld"
7611
7612 old_CC="$CC"
7613 old_CFLAGS="$CFLAGS"
7614
7615 # Set sane defaults for various variables
7616 test -z "$CC" && CC=cc
7617 test -z "$LTCC" && LTCC=$CC
7618 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7619 test -z "$LD" && LD=ld
7620 test -z "$ac_objext" && ac_objext=o
7621
7622 for cc_temp in $compiler""; do
7623   case $cc_temp in
7624     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7625     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7626     \-*) ;;
7627     *) break;;
7628   esac
7629 done
7630 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7631
7632
7633 # Only perform the check for file, if the check method requires it
7634 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7635 case $deplibs_check_method in
7636 file_magic*)
7637   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7638     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7639 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7640 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   case $MAGIC_CMD in
7644 [\\/*] |  ?:[\\/]*)
7645   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7646   ;;
7647 *)
7648   lt_save_MAGIC_CMD="$MAGIC_CMD"
7649   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7650   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7651   for ac_dir in $ac_dummy; do
7652     IFS="$lt_save_ifs"
7653     test -z "$ac_dir" && ac_dir=.
7654     if test -f $ac_dir/${ac_tool_prefix}file; then
7655       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7656       if test -n "$file_magic_test_file"; then
7657         case $deplibs_check_method in
7658         "file_magic "*)
7659           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7660           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7661           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7662             $EGREP "$file_magic_regex" > /dev/null; then
7663             :
7664           else
7665             cat <<_LT_EOF 1>&2
7666
7667 *** Warning: the command libtool uses to detect shared libraries,
7668 *** $file_magic_cmd, produces output that libtool cannot recognize.
7669 *** The result is that libtool may fail to recognize shared libraries
7670 *** as such.  This will affect the creation of libtool libraries that
7671 *** depend on shared libraries, but programs linked with such libtool
7672 *** libraries will work regardless of this problem.  Nevertheless, you
7673 *** may want to report the problem to your system manager and/or to
7674 *** bug-libtool@gnu.org
7675
7676 _LT_EOF
7677           fi ;;
7678         esac
7679       fi
7680       break
7681     fi
7682   done
7683   IFS="$lt_save_ifs"
7684   MAGIC_CMD="$lt_save_MAGIC_CMD"
7685   ;;
7686 esac
7687 fi
7688
7689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7690 if test -n "$MAGIC_CMD"; then
7691   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7692 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7693 else
7694   { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7696 fi
7697
7698
7699
7700
7701
7702 if test -z "$lt_cv_path_MAGIC_CMD"; then
7703   if test -n "$ac_tool_prefix"; then
7704     { echo "$as_me:$LINENO: checking for file" >&5
7705 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   case $MAGIC_CMD in
7710 [\\/*] |  ?:[\\/]*)
7711   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7712   ;;
7713 *)
7714   lt_save_MAGIC_CMD="$MAGIC_CMD"
7715   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7716   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7717   for ac_dir in $ac_dummy; do
7718     IFS="$lt_save_ifs"
7719     test -z "$ac_dir" && ac_dir=.
7720     if test -f $ac_dir/file; then
7721       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7722       if test -n "$file_magic_test_file"; then
7723         case $deplibs_check_method in
7724         "file_magic "*)
7725           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7726           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7727           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7728             $EGREP "$file_magic_regex" > /dev/null; then
7729             :
7730           else
7731             cat <<_LT_EOF 1>&2
7732
7733 *** Warning: the command libtool uses to detect shared libraries,
7734 *** $file_magic_cmd, produces output that libtool cannot recognize.
7735 *** The result is that libtool may fail to recognize shared libraries
7736 *** as such.  This will affect the creation of libtool libraries that
7737 *** depend on shared libraries, but programs linked with such libtool
7738 *** libraries will work regardless of this problem.  Nevertheless, you
7739 *** may want to report the problem to your system manager and/or to
7740 *** bug-libtool@gnu.org
7741
7742 _LT_EOF
7743           fi ;;
7744         esac
7745       fi
7746       break
7747     fi
7748   done
7749   IFS="$lt_save_ifs"
7750   MAGIC_CMD="$lt_save_MAGIC_CMD"
7751   ;;
7752 esac
7753 fi
7754
7755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7756 if test -n "$MAGIC_CMD"; then
7757   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7758 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7759 else
7760   { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7762 fi
7763
7764
7765   else
7766     MAGIC_CMD=:
7767   fi
7768 fi
7769
7770   fi
7771   ;;
7772 esac
7773
7774 # Use C for the default configuration in the libtool script
7775
7776 lt_save_CC="$CC"
7777 ac_ext=c
7778 ac_cpp='$CPP $CPPFLAGS'
7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782
7783
7784 # Source file extension for C test sources.
7785 ac_ext=c
7786
7787 # Object file extension for compiled C test sources.
7788 objext=o
7789 objext=$objext
7790
7791 # Code to be used in simple compile tests
7792 lt_simple_compile_test_code="int some_variable = 0;"
7793
7794 # Code to be used in simple link tests
7795 lt_simple_link_test_code='int main(){return(0);}'
7796
7797
7798
7799
7800
7801
7802
7803 # If no C compiler was specified, use CC.
7804 LTCC=${LTCC-"$CC"}
7805
7806 # If no C compiler flags were specified, use CFLAGS.
7807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7808
7809 # Allow CC to be a program name with arguments.
7810 compiler=$CC
7811
7812 # Save the default compiler, since it gets overwritten when the other
7813 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7814 compiler_DEFAULT=$CC
7815
7816 # save warnings/boilerplate of simple test code
7817 ac_outfile=conftest.$ac_objext
7818 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7819 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7820 _lt_compiler_boilerplate=`cat conftest.err`
7821 $RM conftest*
7822
7823 ac_outfile=conftest.$ac_objext
7824 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7825 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7826 _lt_linker_boilerplate=`cat conftest.err`
7827 $RM -r conftest*
7828
7829
7830 ## CAVEAT EMPTOR:
7831 ## There is no encapsulation within the following macros, do not change
7832 ## the running order or otherwise move them around unless you know exactly
7833 ## what you are doing...
7834 if test -n "$compiler"; then
7835
7836 lt_prog_compiler_no_builtin_flag=
7837
7838 if test "$GCC" = yes; then
7839   case $cc_basename in
7840   nvcc*)
7841     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7842   *)
7843     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7844   esac
7845
7846   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7847 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7848 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851   lt_cv_prog_compiler_rtti_exceptions=no
7852    ac_outfile=conftest.$ac_objext
7853    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854    lt_compiler_flag="-fno-rtti -fno-exceptions"
7855    # Insert the option either (1) after the last *FLAGS variable, or
7856    # (2) before a word containing "conftest.", or (3) at the end.
7857    # Note that $ac_compile itself does not contain backslashes and begins
7858    # with a dollar sign (not a hyphen), so the echo should work correctly.
7859    # The option is referenced via a variable to avoid confusing sed.
7860    lt_compile=`echo "$ac_compile" | $SED \
7861    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863    -e 's:$: $lt_compiler_flag:'`
7864    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7865    (eval "$lt_compile" 2>conftest.err)
7866    ac_status=$?
7867    cat conftest.err >&5
7868    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869    if (exit $ac_status) && test -s "$ac_outfile"; then
7870      # The compiler can only warn and ignore the option if not recognized
7871      # So say no if there are warnings other than the usual output.
7872      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7873      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875        lt_cv_prog_compiler_rtti_exceptions=yes
7876      fi
7877    fi
7878    $RM conftest*
7879
7880 fi
7881 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7882 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7883
7884 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7885     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7886 else
7887     :
7888 fi
7889
7890 fi
7891
7892
7893
7894
7895
7896
7897   lt_prog_compiler_wl=
7898 lt_prog_compiler_pic=
7899 lt_prog_compiler_static=
7900
7901 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7902 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7903
7904   if test "$GCC" = yes; then
7905     lt_prog_compiler_wl='-Wl,'
7906     lt_prog_compiler_static='-static'
7907
7908     case $host_os in
7909       aix*)
7910       # All AIX code is PIC.
7911       if test "$host_cpu" = ia64; then
7912         # AIX 5 now supports IA64 processor
7913         lt_prog_compiler_static='-Bstatic'
7914       fi
7915       ;;
7916
7917     amigaos*)
7918       case $host_cpu in
7919       powerpc)
7920             # see comment about AmigaOS4 .so support
7921             lt_prog_compiler_pic='-fPIC'
7922         ;;
7923       m68k)
7924             # FIXME: we need at least 68020 code to build shared libraries, but
7925             # adding the `-m68020' flag to GCC prevents building anything better,
7926             # like `-m68040'.
7927             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7928         ;;
7929       esac
7930       ;;
7931
7932     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7933       # PIC is the default for these OSes.
7934       ;;
7935
7936     mingw* | cygwin* | pw32* | os2* | cegcc*)
7937       # This hack is so that the source file can tell whether it is being
7938       # built for inclusion in a dll (and should export symbols for example).
7939       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7940       # (--disable-auto-import) libraries
7941       lt_prog_compiler_pic='-DDLL_EXPORT'
7942       ;;
7943
7944     darwin* | rhapsody*)
7945       # PIC is the default on this platform
7946       # Common symbols not allowed in MH_DYLIB files
7947       lt_prog_compiler_pic='-fno-common'
7948       ;;
7949
7950     haiku*)
7951       # PIC is the default for Haiku.
7952       # The "-static" flag exists, but is broken.
7953       lt_prog_compiler_static=
7954       ;;
7955
7956     hpux*)
7957       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7958       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7959       # sets the default TLS model and affects inlining.
7960       case $host_cpu in
7961       hppa*64*)
7962         # +Z the default
7963         ;;
7964       *)
7965         lt_prog_compiler_pic='-fPIC'
7966         ;;
7967       esac
7968       ;;
7969
7970     interix[3-9]*)
7971       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7972       # Instead, we relocate shared libraries at runtime.
7973       ;;
7974
7975     msdosdjgpp*)
7976       # Just because we use GCC doesn't mean we suddenly get shared libraries
7977       # on systems that don't support them.
7978       lt_prog_compiler_can_build_shared=no
7979       enable_shared=no
7980       ;;
7981
7982     *nto* | *qnx*)
7983       # QNX uses GNU C++, but need to define -shared option too, otherwise
7984       # it will coredump.
7985       lt_prog_compiler_pic='-fPIC -shared'
7986       ;;
7987
7988     sysv4*MP*)
7989       if test -d /usr/nec; then
7990         lt_prog_compiler_pic=-Kconform_pic
7991       fi
7992       ;;
7993
7994     *)
7995       lt_prog_compiler_pic='-fPIC'
7996       ;;
7997     esac
7998
7999     case $cc_basename in
8000     nvcc*) # Cuda Compiler Driver 2.2
8001       lt_prog_compiler_wl='-Xlinker '
8002       lt_prog_compiler_pic='-Xcompiler -fPIC'
8003       ;;
8004     esac
8005   else
8006     # PORTME Check for flag to pass linker flags through the system compiler.
8007     case $host_os in
8008     aix*)
8009       lt_prog_compiler_wl='-Wl,'
8010       if test "$host_cpu" = ia64; then
8011         # AIX 5 now supports IA64 processor
8012         lt_prog_compiler_static='-Bstatic'
8013       else
8014         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8015       fi
8016       ;;
8017
8018     mingw* | cygwin* | pw32* | os2* | cegcc*)
8019       # This hack is so that the source file can tell whether it is being
8020       # built for inclusion in a dll (and should export symbols for example).
8021       lt_prog_compiler_pic='-DDLL_EXPORT'
8022       ;;
8023
8024     hpux9* | hpux10* | hpux11*)
8025       lt_prog_compiler_wl='-Wl,'
8026       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8027       # not for PA HP-UX.
8028       case $host_cpu in
8029       hppa*64*|ia64*)
8030         # +Z the default
8031         ;;
8032       *)
8033         lt_prog_compiler_pic='+Z'
8034         ;;
8035       esac
8036       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8037       lt_prog_compiler_static='${wl}-a ${wl}archive'
8038       ;;
8039
8040     irix5* | irix6* | nonstopux*)
8041       lt_prog_compiler_wl='-Wl,'
8042       # PIC (with -KPIC) is the default.
8043       lt_prog_compiler_static='-non_shared'
8044       ;;
8045
8046     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8047       case $cc_basename in
8048       # old Intel for x86_64 which still supported -KPIC.
8049       ecc*)
8050         lt_prog_compiler_wl='-Wl,'
8051         lt_prog_compiler_pic='-KPIC'
8052         lt_prog_compiler_static='-static'
8053         ;;
8054       # icc used to be incompatible with GCC.
8055       # ICC 10 doesn't accept -KPIC any more.
8056       icc* | ifort*)
8057         lt_prog_compiler_wl='-Wl,'
8058         lt_prog_compiler_pic='-fPIC'
8059         lt_prog_compiler_static='-static'
8060         ;;
8061       # Lahey Fortran 8.1.
8062       lf95*)
8063         lt_prog_compiler_wl='-Wl,'
8064         lt_prog_compiler_pic='--shared'
8065         lt_prog_compiler_static='--static'
8066         ;;
8067       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8068         # Portland Group compilers (*not* the Pentium gcc compiler,
8069         # which looks to be a dead project)
8070         lt_prog_compiler_wl='-Wl,'
8071         lt_prog_compiler_pic='-fpic'
8072         lt_prog_compiler_static='-Bstatic'
8073         ;;
8074       ccc*)
8075         lt_prog_compiler_wl='-Wl,'
8076         # All Alpha code is PIC.
8077         lt_prog_compiler_static='-non_shared'
8078         ;;
8079       xl* | bgxl* | bgf* | mpixl*)
8080         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8081         lt_prog_compiler_wl='-Wl,'
8082         lt_prog_compiler_pic='-qpic'
8083         lt_prog_compiler_static='-qstaticlink'
8084         ;;
8085       *)
8086         case `$CC -V 2>&1 | sed 5q` in
8087         *Sun\ F* | *Sun*Fortran*)
8088           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8089           lt_prog_compiler_pic='-KPIC'
8090           lt_prog_compiler_static='-Bstatic'
8091           lt_prog_compiler_wl=''
8092           ;;
8093         *Sun\ C*)
8094           # Sun C 5.9
8095           lt_prog_compiler_pic='-KPIC'
8096           lt_prog_compiler_static='-Bstatic'
8097           lt_prog_compiler_wl='-Wl,'
8098           ;;
8099         esac
8100         ;;
8101       esac
8102       ;;
8103
8104     newsos6)
8105       lt_prog_compiler_pic='-KPIC'
8106       lt_prog_compiler_static='-Bstatic'
8107       ;;
8108
8109     *nto* | *qnx*)
8110       # QNX uses GNU C++, but need to define -shared option too, otherwise
8111       # it will coredump.
8112       lt_prog_compiler_pic='-fPIC -shared'
8113       ;;
8114
8115     osf3* | osf4* | osf5*)
8116       lt_prog_compiler_wl='-Wl,'
8117       # All OSF/1 code is PIC.
8118       lt_prog_compiler_static='-non_shared'
8119       ;;
8120
8121     rdos*)
8122       lt_prog_compiler_static='-non_shared'
8123       ;;
8124
8125     solaris*)
8126       lt_prog_compiler_pic='-KPIC'
8127       lt_prog_compiler_static='-Bstatic'
8128       case $cc_basename in
8129       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8130         lt_prog_compiler_wl='-Qoption ld ';;
8131       *)
8132         lt_prog_compiler_wl='-Wl,';;
8133       esac
8134       ;;
8135
8136     sunos4*)
8137       lt_prog_compiler_wl='-Qoption ld '
8138       lt_prog_compiler_pic='-PIC'
8139       lt_prog_compiler_static='-Bstatic'
8140       ;;
8141
8142     sysv4 | sysv4.2uw2* | sysv4.3*)
8143       lt_prog_compiler_wl='-Wl,'
8144       lt_prog_compiler_pic='-KPIC'
8145       lt_prog_compiler_static='-Bstatic'
8146       ;;
8147
8148     sysv4*MP*)
8149       if test -d /usr/nec ;then
8150         lt_prog_compiler_pic='-Kconform_pic'
8151         lt_prog_compiler_static='-Bstatic'
8152       fi
8153       ;;
8154
8155     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8156       lt_prog_compiler_wl='-Wl,'
8157       lt_prog_compiler_pic='-KPIC'
8158       lt_prog_compiler_static='-Bstatic'
8159       ;;
8160
8161     unicos*)
8162       lt_prog_compiler_wl='-Wl,'
8163       lt_prog_compiler_can_build_shared=no
8164       ;;
8165
8166     uts4*)
8167       lt_prog_compiler_pic='-pic'
8168       lt_prog_compiler_static='-Bstatic'
8169       ;;
8170
8171     *)
8172       lt_prog_compiler_can_build_shared=no
8173       ;;
8174     esac
8175   fi
8176
8177 case $host_os in
8178   # For platforms which do not support PIC, -DPIC is meaningless:
8179   *djgpp*)
8180     lt_prog_compiler_pic=
8181     ;;
8182   *)
8183     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8184     ;;
8185 esac
8186 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8187 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8188
8189
8190
8191
8192
8193
8194 #
8195 # Check to make sure the PIC flag actually works.
8196 #
8197 if test -n "$lt_prog_compiler_pic"; then
8198   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8200 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8201   echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203   lt_cv_prog_compiler_pic_works=no
8204    ac_outfile=conftest.$ac_objext
8205    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8207    # Insert the option either (1) after the last *FLAGS variable, or
8208    # (2) before a word containing "conftest.", or (3) at the end.
8209    # Note that $ac_compile itself does not contain backslashes and begins
8210    # with a dollar sign (not a hyphen), so the echo should work correctly.
8211    # The option is referenced via a variable to avoid confusing sed.
8212    lt_compile=`echo "$ac_compile" | $SED \
8213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215    -e 's:$: $lt_compiler_flag:'`
8216    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217    (eval "$lt_compile" 2>conftest.err)
8218    ac_status=$?
8219    cat conftest.err >&5
8220    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221    if (exit $ac_status) && test -s "$ac_outfile"; then
8222      # The compiler can only warn and ignore the option if not recognized
8223      # So say no if there are warnings other than the usual output.
8224      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227        lt_cv_prog_compiler_pic_works=yes
8228      fi
8229    fi
8230    $RM conftest*
8231
8232 fi
8233 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8234 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8235
8236 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8237     case $lt_prog_compiler_pic in
8238      "" | " "*) ;;
8239      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8240      esac
8241 else
8242     lt_prog_compiler_pic=
8243      lt_prog_compiler_can_build_shared=no
8244 fi
8245
8246 fi
8247
8248
8249
8250
8251
8252
8253 #
8254 # Check to make sure the static flag actually works.
8255 #
8256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8257 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8258 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8259 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   lt_cv_prog_compiler_static_works=no
8263    save_LDFLAGS="$LDFLAGS"
8264    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8265    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8266    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8267      # The linker can only warn and ignore the option if not recognized
8268      # So say no if there are warnings
8269      if test -s conftest.err; then
8270        # Append any errors to the config.log.
8271        cat conftest.err 1>&5
8272        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8273        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274        if diff conftest.exp conftest.er2 >/dev/null; then
8275          lt_cv_prog_compiler_static_works=yes
8276        fi
8277      else
8278        lt_cv_prog_compiler_static_works=yes
8279      fi
8280    fi
8281    $RM -r conftest*
8282    LDFLAGS="$save_LDFLAGS"
8283
8284 fi
8285 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8286 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8287
8288 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8289     :
8290 else
8291     lt_prog_compiler_static=
8292 fi
8293
8294
8295
8296
8297
8298
8299
8300   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8301 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8302 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   lt_cv_prog_compiler_c_o=no
8306    $RM -r conftest 2>/dev/null
8307    mkdir conftest
8308    cd conftest
8309    mkdir out
8310    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8311
8312    lt_compiler_flag="-o out/conftest2.$ac_objext"
8313    # Insert the option either (1) after the last *FLAGS variable, or
8314    # (2) before a word containing "conftest.", or (3) at the end.
8315    # Note that $ac_compile itself does not contain backslashes and begins
8316    # with a dollar sign (not a hyphen), so the echo should work correctly.
8317    lt_compile=`echo "$ac_compile" | $SED \
8318    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320    -e 's:$: $lt_compiler_flag:'`
8321    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8322    (eval "$lt_compile" 2>out/conftest.err)
8323    ac_status=$?
8324    cat out/conftest.err >&5
8325    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8327    then
8328      # The compiler can only warn and ignore the option if not recognized
8329      # So say no if there are warnings
8330      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8331      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8332      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8333        lt_cv_prog_compiler_c_o=yes
8334      fi
8335    fi
8336    chmod u+w . 2>&5
8337    $RM conftest*
8338    # SGI C++ compiler will create directory out/ii_files/ for
8339    # template instantiation
8340    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8341    $RM out/* && rmdir out
8342    cd ..
8343    $RM -r conftest
8344    $RM conftest*
8345
8346 fi
8347 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8348 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8349
8350
8351
8352
8353
8354
8355   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8356 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   lt_cv_prog_compiler_c_o=no
8361    $RM -r conftest 2>/dev/null
8362    mkdir conftest
8363    cd conftest
8364    mkdir out
8365    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8366
8367    lt_compiler_flag="-o out/conftest2.$ac_objext"
8368    # Insert the option either (1) after the last *FLAGS variable, or
8369    # (2) before a word containing "conftest.", or (3) at the end.
8370    # Note that $ac_compile itself does not contain backslashes and begins
8371    # with a dollar sign (not a hyphen), so the echo should work correctly.
8372    lt_compile=`echo "$ac_compile" | $SED \
8373    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375    -e 's:$: $lt_compiler_flag:'`
8376    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8377    (eval "$lt_compile" 2>out/conftest.err)
8378    ac_status=$?
8379    cat out/conftest.err >&5
8380    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8382    then
8383      # The compiler can only warn and ignore the option if not recognized
8384      # So say no if there are warnings
8385      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8386      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8387      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8388        lt_cv_prog_compiler_c_o=yes
8389      fi
8390    fi
8391    chmod u+w . 2>&5
8392    $RM conftest*
8393    # SGI C++ compiler will create directory out/ii_files/ for
8394    # template instantiation
8395    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8396    $RM out/* && rmdir out
8397    cd ..
8398    $RM -r conftest
8399    $RM conftest*
8400
8401 fi
8402 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8403 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8404
8405
8406
8407
8408 hard_links="nottested"
8409 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8410   # do not overwrite the value of need_locks provided by the user
8411   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8412 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8413   hard_links=yes
8414   $RM conftest*
8415   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8416   touch conftest.a
8417   ln conftest.a conftest.b 2>&5 || hard_links=no
8418   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8419   { echo "$as_me:$LINENO: result: $hard_links" >&5
8420 echo "${ECHO_T}$hard_links" >&6; }
8421   if test "$hard_links" = no; then
8422     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8423 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8424     need_locks=warn
8425   fi
8426 else
8427   need_locks=no
8428 fi
8429
8430
8431
8432
8433
8434
8435   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8436 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8437
8438   runpath_var=
8439   allow_undefined_flag=
8440   always_export_symbols=no
8441   archive_cmds=
8442   archive_expsym_cmds=
8443   compiler_needs_object=no
8444   enable_shared_with_static_runtimes=no
8445   export_dynamic_flag_spec=
8446   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8447   hardcode_automatic=no
8448   hardcode_direct=no
8449   hardcode_direct_absolute=no
8450   hardcode_libdir_flag_spec=
8451   hardcode_libdir_flag_spec_ld=
8452   hardcode_libdir_separator=
8453   hardcode_minus_L=no
8454   hardcode_shlibpath_var=unsupported
8455   inherit_rpath=no
8456   link_all_deplibs=unknown
8457   module_cmds=
8458   module_expsym_cmds=
8459   old_archive_from_new_cmds=
8460   old_archive_from_expsyms_cmds=
8461   thread_safe_flag_spec=
8462   whole_archive_flag_spec=
8463   # include_expsyms should be a list of space-separated symbols to be *always*
8464   # included in the symbol list
8465   include_expsyms=
8466   # exclude_expsyms can be an extended regexp of symbols to exclude
8467   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8468   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8469   # as well as any symbol that contains `d'.
8470   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8471   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8472   # platforms (ab)use it in PIC code, but their linkers get confused if
8473   # the symbol is explicitly referenced.  Since portable code cannot
8474   # rely on this symbol name, it's probably fine to never include it in
8475   # preloaded symbol tables.
8476   # Exclude shared library initialization/finalization symbols.
8477   extract_expsyms_cmds=
8478
8479   case $host_os in
8480   cygwin* | mingw* | pw32* | cegcc*)
8481     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8482     # When not using gcc, we currently assume that we are using
8483     # Microsoft Visual C++.
8484     if test "$GCC" != yes; then
8485       with_gnu_ld=no
8486     fi
8487     ;;
8488   interix*)
8489     # we just hope/assume this is gcc and not c89 (= MSVC++)
8490     with_gnu_ld=yes
8491     ;;
8492   openbsd*)
8493     with_gnu_ld=no
8494     ;;
8495   esac
8496
8497   ld_shlibs=yes
8498
8499   # On some targets, GNU ld is compatible enough with the native linker
8500   # that we're better off using the native interface for both.
8501   lt_use_gnu_ld_interface=no
8502   if test "$with_gnu_ld" = yes; then
8503     case $host_os in
8504       aix*)
8505         # The AIX port of GNU ld has always aspired to compatibility
8506         # with the native linker.  However, as the warning in the GNU ld
8507         # block says, versions before 2.19.5* couldn't really create working
8508         # shared libraries, regardless of the interface used.
8509         case `$LD -v 2>&1` in
8510           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8511           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8512           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8513           *)
8514             lt_use_gnu_ld_interface=yes
8515             ;;
8516         esac
8517         ;;
8518       *)
8519         lt_use_gnu_ld_interface=yes
8520         ;;
8521     esac
8522   fi
8523
8524   if test "$lt_use_gnu_ld_interface" = yes; then
8525     # If archive_cmds runs LD, not CC, wlarc should be empty
8526     wlarc='${wl}'
8527
8528     # Set some defaults for GNU ld with shared library support. These
8529     # are reset later if shared libraries are not supported. Putting them
8530     # here allows them to be overridden if necessary.
8531     runpath_var=LD_RUN_PATH
8532     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533     export_dynamic_flag_spec='${wl}--export-dynamic'
8534     # ancient GNU ld didn't support --whole-archive et. al.
8535     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8536       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8537     else
8538       whole_archive_flag_spec=
8539     fi
8540     supports_anon_versioning=no
8541     case `$LD -v 2>&1` in
8542       *GNU\ gold*) supports_anon_versioning=yes ;;
8543       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8544       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8545       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8546       *\ 2.11.*) ;; # other 2.11 versions
8547       *) supports_anon_versioning=yes ;;
8548     esac
8549
8550     # See if GNU ld supports shared libraries.
8551     case $host_os in
8552     aix[3-9]*)
8553       # On AIX/PPC, the GNU linker is very broken
8554       if test "$host_cpu" != ia64; then
8555         ld_shlibs=no
8556         cat <<_LT_EOF 1>&2
8557
8558 *** Warning: the GNU linker, at least up to release 2.19, is reported
8559 *** to be unable to reliably create shared libraries on AIX.
8560 *** Therefore, libtool is disabling shared libraries support.  If you
8561 *** really care for shared libraries, you may want to install binutils
8562 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8563 *** You will then need to restart the configuration process.
8564
8565 _LT_EOF
8566       fi
8567       ;;
8568
8569     amigaos*)
8570       case $host_cpu in
8571       powerpc)
8572             # see comment about AmigaOS4 .so support
8573             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574             archive_expsym_cmds=''
8575         ;;
8576       m68k)
8577             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8578             hardcode_libdir_flag_spec='-L$libdir'
8579             hardcode_minus_L=yes
8580         ;;
8581       esac
8582       ;;
8583
8584     beos*)
8585       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8586         allow_undefined_flag=unsupported
8587         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8588         # support --undefined.  This deserves some investigation.  FIXME
8589         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590       else
8591         ld_shlibs=no
8592       fi
8593       ;;
8594
8595     cygwin* | mingw* | pw32* | cegcc*)
8596       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8597       # as there is no search path for DLLs.
8598       hardcode_libdir_flag_spec='-L$libdir'
8599       export_dynamic_flag_spec='${wl}--export-all-symbols'
8600       allow_undefined_flag=unsupported
8601       always_export_symbols=no
8602       enable_shared_with_static_runtimes=yes
8603       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8604
8605       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8606         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8607         # If the export-symbols file already is a .def file (1st line
8608         # is EXPORTS), use it as is; otherwise, prepend...
8609         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8610           cp $export_symbols $output_objdir/$soname.def;
8611         else
8612           echo EXPORTS > $output_objdir/$soname.def;
8613           cat $export_symbols >> $output_objdir/$soname.def;
8614         fi~
8615         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8616       else
8617         ld_shlibs=no
8618       fi
8619       ;;
8620
8621     haiku*)
8622       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623       link_all_deplibs=yes
8624       ;;
8625
8626     interix[3-9]*)
8627       hardcode_direct=no
8628       hardcode_shlibpath_var=no
8629       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8630       export_dynamic_flag_spec='${wl}-E'
8631       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8632       # Instead, shared libraries are loaded at an image base (0x10000000 by
8633       # default) and relocated if they conflict, which is a slow very memory
8634       # consuming and fragmenting process.  To avoid this, we pick a random,
8635       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8636       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8637       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8638       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8639       ;;
8640
8641     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8642       tmp_diet=no
8643       if test "$host_os" = linux-dietlibc; then
8644         case $cc_basename in
8645           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8646         esac
8647       fi
8648       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8649          && test "$tmp_diet" = no
8650       then
8651         tmp_addflag=
8652         tmp_sharedflag='-shared'
8653         case $cc_basename,$host_cpu in
8654         pgcc*)                          # Portland Group C compiler
8655           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8656           tmp_addflag=' $pic_flag'
8657           ;;
8658         pgf77* | pgf90* | pgf95* | pgfortran*)
8659                                         # Portland Group f77 and f90 compilers
8660           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8661           tmp_addflag=' $pic_flag -Mnomain' ;;
8662         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8663           tmp_addflag=' -i_dynamic' ;;
8664         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8665           tmp_addflag=' -i_dynamic -nofor_main' ;;
8666         ifc* | ifort*)                  # Intel Fortran compiler
8667           tmp_addflag=' -nofor_main' ;;
8668         lf95*)                          # Lahey Fortran 8.1
8669           whole_archive_flag_spec=
8670           tmp_sharedflag='--shared' ;;
8671         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8672           tmp_sharedflag='-qmkshrobj'
8673           tmp_addflag= ;;
8674         nvcc*)  # Cuda Compiler Driver 2.2
8675           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8676           compiler_needs_object=yes
8677           ;;
8678         esac
8679         case `$CC -V 2>&1 | sed 5q` in
8680         *Sun\ C*)                       # Sun C 5.9
8681           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8682           compiler_needs_object=yes
8683           tmp_sharedflag='-G' ;;
8684         *Sun\ F*)                       # Sun Fortran 8.3
8685           tmp_sharedflag='-G' ;;
8686         esac
8687         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8688
8689         if test "x$supports_anon_versioning" = xyes; then
8690           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8691             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8692             echo "local: *; };" >> $output_objdir/$libname.ver~
8693             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8694         fi
8695
8696         case $cc_basename in
8697         xlf* | bgf* | bgxlf* | mpixlf*)
8698           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8699           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8700           hardcode_libdir_flag_spec=
8701           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8702           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8703           if test "x$supports_anon_versioning" = xyes; then
8704             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8705               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8706               echo "local: *; };" >> $output_objdir/$libname.ver~
8707               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8708           fi
8709           ;;
8710         esac
8711       else
8712         ld_shlibs=no
8713       fi
8714       ;;
8715
8716     netbsd*)
8717       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8718         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8719         wlarc=
8720       else
8721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723       fi
8724       ;;
8725
8726     solaris*)
8727       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8728         ld_shlibs=no
8729         cat <<_LT_EOF 1>&2
8730
8731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8732 *** create shared libraries on Solaris systems.  Therefore, libtool
8733 *** is disabling shared libraries support.  We urge you to upgrade GNU
8734 *** binutils to release 2.9.1 or newer.  Another option is to modify
8735 *** your PATH or compiler configuration so that the native linker is
8736 *** used, and then restart.
8737
8738 _LT_EOF
8739       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742       else
8743         ld_shlibs=no
8744       fi
8745       ;;
8746
8747     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8748       case `$LD -v 2>&1` in
8749         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8750         ld_shlibs=no
8751         cat <<_LT_EOF 1>&2
8752
8753 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8754 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8755 *** is disabling shared libraries support.  We urge you to upgrade GNU
8756 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8757 *** your PATH or compiler configuration so that the native linker is
8758 *** used, and then restart.
8759
8760 _LT_EOF
8761         ;;
8762         *)
8763           # For security reasons, it is highly recommended that you always
8764           # use absolute paths for naming shared libraries, and exclude the
8765           # DT_RUNPATH tag from executables and libraries.  But doing so
8766           # requires that you compile everything twice, which is a pain.
8767           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8771           else
8772             ld_shlibs=no
8773           fi
8774         ;;
8775       esac
8776       ;;
8777
8778     sunos4*)
8779       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8780       wlarc=
8781       hardcode_direct=yes
8782       hardcode_shlibpath_var=no
8783       ;;
8784
8785     *)
8786       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8787         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789       else
8790         ld_shlibs=no
8791       fi
8792       ;;
8793     esac
8794
8795     if test "$ld_shlibs" = no; then
8796       runpath_var=
8797       hardcode_libdir_flag_spec=
8798       export_dynamic_flag_spec=
8799       whole_archive_flag_spec=
8800     fi
8801   else
8802     # PORTME fill in a description of your system's linker (not GNU ld)
8803     case $host_os in
8804     aix3*)
8805       allow_undefined_flag=unsupported
8806       always_export_symbols=yes
8807       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8808       # Note: this linker hardcodes the directories in LIBPATH if there
8809       # are no directories specified by -L.
8810       hardcode_minus_L=yes
8811       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8812         # Neither direct hardcoding nor static linking is supported with a
8813         # broken collect2.
8814         hardcode_direct=unsupported
8815       fi
8816       ;;
8817
8818     aix[4-9]*)
8819       if test "$host_cpu" = ia64; then
8820         # On IA64, the linker does run time linking by default, so we don't
8821         # have to do anything special.
8822         aix_use_runtimelinking=no
8823         exp_sym_flag='-Bexport'
8824         no_entry_flag=""
8825       else
8826         # If we're using GNU nm, then we don't want the "-C" option.
8827         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8828         # Also, AIX nm treats weak defined symbols like other global
8829         # defined symbols, whereas GNU nm marks them as "W".
8830         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8831           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8832         else
8833           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8834         fi
8835         aix_use_runtimelinking=no
8836
8837         # Test if we are trying to use run time linking or normal
8838         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8839         # need to do runtime linking.
8840         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8841           for ld_flag in $LDFLAGS; do
8842           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8843             aix_use_runtimelinking=yes
8844             break
8845           fi
8846           done
8847           ;;
8848         esac
8849
8850         exp_sym_flag='-bexport'
8851         no_entry_flag='-bnoentry'
8852       fi
8853
8854       # When large executables or shared objects are built, AIX ld can
8855       # have problems creating the table of contents.  If linking a library
8856       # or program results in "error TOC overflow" add -mminimal-toc to
8857       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8858       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8859
8860       archive_cmds=''
8861       hardcode_direct=yes
8862       hardcode_direct_absolute=yes
8863       hardcode_libdir_separator=':'
8864       link_all_deplibs=yes
8865       file_list_spec='${wl}-f,'
8866
8867       if test "$GCC" = yes; then
8868         case $host_os in aix4.[012]|aix4.[012].*)
8869         # We only want to do this on AIX 4.2 and lower, the check
8870         # below for broken collect2 doesn't work under 4.3+
8871           collect2name=`${CC} -print-prog-name=collect2`
8872           if test -f "$collect2name" &&
8873            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8874           then
8875           # We have reworked collect2
8876           :
8877           else
8878           # We have old collect2
8879           hardcode_direct=unsupported
8880           # It fails to find uninstalled libraries when the uninstalled
8881           # path is not listed in the libpath.  Setting hardcode_minus_L
8882           # to unsupported forces relinking
8883           hardcode_minus_L=yes
8884           hardcode_libdir_flag_spec='-L$libdir'
8885           hardcode_libdir_separator=
8886           fi
8887           ;;
8888         esac
8889         shared_flag='-shared'
8890         if test "$aix_use_runtimelinking" = yes; then
8891           shared_flag="$shared_flag "'${wl}-G'
8892         fi
8893       else
8894         # not using gcc
8895         if test "$host_cpu" = ia64; then
8896         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8897         # chokes on -Wl,-G. The following line is correct:
8898           shared_flag='-G'
8899         else
8900           if test "$aix_use_runtimelinking" = yes; then
8901             shared_flag='${wl}-G'
8902           else
8903             shared_flag='${wl}-bM:SRE'
8904           fi
8905         fi
8906       fi
8907
8908       export_dynamic_flag_spec='${wl}-bexpall'
8909       # It seems that -bexpall does not export symbols beginning with
8910       # underscore (_), so it is better to generate a list of symbols to export.
8911       always_export_symbols=yes
8912       if test "$aix_use_runtimelinking" = yes; then
8913         # Warning - without using the other runtime loading flags (-brtl),
8914         # -berok will link without error, but may produce a broken library.
8915         allow_undefined_flag='-berok'
8916         # Determine the default libpath from the value encoded in an
8917         # empty executable.
8918         cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h.  */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h.  */
8924
8925 int
8926 main ()
8927 {
8928
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (ac_try="$ac_link"
8935 case "(($ac_try" in
8936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937   *) ac_try_echo=$ac_try;;
8938 esac
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940   (eval "$ac_link") 2>conftest.er1
8941   ac_status=$?
8942   grep -v '^ *+' conftest.er1 >conftest.err
8943   rm -f conftest.er1
8944   cat conftest.err >&5
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); } && {
8947          test -z "$ac_c_werror_flag" ||
8948          test ! -s conftest.err
8949        } && test -s conftest$ac_exeext &&
8950        $as_test_x conftest$ac_exeext; then
8951
8952 lt_aix_libpath_sed='
8953     /Import File Strings/,/^$/ {
8954         /^0/ {
8955             s/^0  *\(.*\)$/\1/
8956             p
8957         }
8958     }'
8959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8960 # Check for a 64-bit object if we didn't find anything.
8961 if test -z "$aix_libpath"; then
8962   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963 fi
8964 else
8965   echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8967
8968
8969 fi
8970
8971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8972       conftest$ac_exeext conftest.$ac_ext
8973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8974
8975         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8976         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8977       else
8978         if test "$host_cpu" = ia64; then
8979           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8980           allow_undefined_flag="-z nodefs"
8981           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8982         else
8983          # Determine the default libpath from the value encoded in an
8984          # empty executable.
8985          cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h.  */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h.  */
8991
8992 int
8993 main ()
8994 {
8995
8996   ;
8997   return 0;
8998 }
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9002 case "(($ac_try" in
9003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004   *) ac_try_echo=$ac_try;;
9005 esac
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007   (eval "$ac_link") 2>conftest.er1
9008   ac_status=$?
9009   grep -v '^ *+' conftest.er1 >conftest.err
9010   rm -f conftest.er1
9011   cat conftest.err >&5
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); } && {
9014          test -z "$ac_c_werror_flag" ||
9015          test ! -s conftest.err
9016        } && test -s conftest$ac_exeext &&
9017        $as_test_x conftest$ac_exeext; then
9018
9019 lt_aix_libpath_sed='
9020     /Import File Strings/,/^$/ {
9021         /^0/ {
9022             s/^0  *\(.*\)$/\1/
9023             p
9024         }
9025     }'
9026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9027 # Check for a 64-bit object if we didn't find anything.
9028 if test -z "$aix_libpath"; then
9029   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9030 fi
9031 else
9032   echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9034
9035
9036 fi
9037
9038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9039       conftest$ac_exeext conftest.$ac_ext
9040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9041
9042          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9043           # Warning - without using the other run time loading flags,
9044           # -berok will link without error, but may produce a broken library.
9045           no_undefined_flag=' ${wl}-bernotok'
9046           allow_undefined_flag=' ${wl}-berok'
9047           if test "$with_gnu_ld" = yes; then
9048             # We only use this code for GNU lds that support --whole-archive.
9049             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9050           else
9051             # Exported symbols can be pulled into shared objects from archives
9052             whole_archive_flag_spec='$convenience'
9053           fi
9054           archive_cmds_need_lc=yes
9055           # This is similar to how AIX traditionally builds its shared libraries.
9056           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9057         fi
9058       fi
9059       ;;
9060
9061     amigaos*)
9062       case $host_cpu in
9063       powerpc)
9064             # see comment about AmigaOS4 .so support
9065             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066             archive_expsym_cmds=''
9067         ;;
9068       m68k)
9069             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9070             hardcode_libdir_flag_spec='-L$libdir'
9071             hardcode_minus_L=yes
9072         ;;
9073       esac
9074       ;;
9075
9076     bsdi[45]*)
9077       export_dynamic_flag_spec=-rdynamic
9078       ;;
9079
9080     cygwin* | mingw* | pw32* | cegcc*)
9081       # When not using gcc, we currently assume that we are using
9082       # Microsoft Visual C++.
9083       # hardcode_libdir_flag_spec is actually meaningless, as there is
9084       # no search path for DLLs.
9085       hardcode_libdir_flag_spec=' '
9086       allow_undefined_flag=unsupported
9087       # Tell ltmain to make .lib files, not .a files.
9088       libext=lib
9089       # Tell ltmain to make .dll files, not .so files.
9090       shrext_cmds=".dll"
9091       # FIXME: Setting linknames here is a bad hack.
9092       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9093       # The linker will automatically build a .lib file if we build a DLL.
9094       old_archive_from_new_cmds='true'
9095       # FIXME: Should let the user specify the lib program.
9096       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9097       fix_srcfile_path='`cygpath -w "$srcfile"`'
9098       enable_shared_with_static_runtimes=yes
9099       ;;
9100
9101     darwin* | rhapsody*)
9102
9103
9104   archive_cmds_need_lc=no
9105   hardcode_direct=no
9106   hardcode_automatic=yes
9107   hardcode_shlibpath_var=unsupported
9108   if test "$lt_cv_ld_force_load" = "yes"; then
9109     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9110   else
9111     whole_archive_flag_spec=''
9112   fi
9113   link_all_deplibs=yes
9114   allow_undefined_flag="$_lt_dar_allow_undefined"
9115   case $cc_basename in
9116      ifort*) _lt_dar_can_shared=yes ;;
9117      *) _lt_dar_can_shared=$GCC ;;
9118   esac
9119   if test "$_lt_dar_can_shared" = "yes"; then
9120     output_verbose_link_cmd=func_echo_all
9121     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9122     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9123     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9124     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9125
9126   else
9127   ld_shlibs=no
9128   fi
9129
9130       ;;
9131
9132     dgux*)
9133       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134       hardcode_libdir_flag_spec='-L$libdir'
9135       hardcode_shlibpath_var=no
9136       ;;
9137
9138     freebsd1*)
9139       ld_shlibs=no
9140       ;;
9141
9142     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9143     # support.  Future versions do this automatically, but an explicit c++rt0.o
9144     # does not break anything, and helps significantly (at the cost of a little
9145     # extra space).
9146     freebsd2.2*)
9147       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9148       hardcode_libdir_flag_spec='-R$libdir'
9149       hardcode_direct=yes
9150       hardcode_shlibpath_var=no
9151       ;;
9152
9153     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9154     freebsd2*)
9155       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9156       hardcode_direct=yes
9157       hardcode_minus_L=yes
9158       hardcode_shlibpath_var=no
9159       ;;
9160
9161     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9162     freebsd* | dragonfly*)
9163       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9164       hardcode_libdir_flag_spec='-R$libdir'
9165       hardcode_direct=yes
9166       hardcode_shlibpath_var=no
9167       ;;
9168
9169     hpux9*)
9170       if test "$GCC" = yes; then
9171         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9172       else
9173         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9174       fi
9175       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9176       hardcode_libdir_separator=:
9177       hardcode_direct=yes
9178
9179       # hardcode_minus_L: Not really in the search PATH,
9180       # but as the default location of the library.
9181       hardcode_minus_L=yes
9182       export_dynamic_flag_spec='${wl}-E'
9183       ;;
9184
9185     hpux10*)
9186       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9187         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9188       else
9189         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9190       fi
9191       if test "$with_gnu_ld" = no; then
9192         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9193         hardcode_libdir_flag_spec_ld='+b $libdir'
9194         hardcode_libdir_separator=:
9195         hardcode_direct=yes
9196         hardcode_direct_absolute=yes
9197         export_dynamic_flag_spec='${wl}-E'
9198         # hardcode_minus_L: Not really in the search PATH,
9199         # but as the default location of the library.
9200         hardcode_minus_L=yes
9201       fi
9202       ;;
9203
9204     hpux11*)
9205       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9206         case $host_cpu in
9207         hppa*64*)
9208           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209           ;;
9210         ia64*)
9211           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9212           ;;
9213         *)
9214           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215           ;;
9216         esac
9217       else
9218         case $host_cpu in
9219         hppa*64*)
9220           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9221           ;;
9222         ia64*)
9223           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9224           ;;
9225         *)
9226
9227           # Older versions of the 11.00 compiler do not understand -b yet
9228           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9229           { echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9230 echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6; }
9231 if test "${lt_cv_prog_compiler__b+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   lt_cv_prog_compiler__b=no
9235    save_LDFLAGS="$LDFLAGS"
9236    LDFLAGS="$LDFLAGS -b"
9237    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9238    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9239      # The linker can only warn and ignore the option if not recognized
9240      # So say no if there are warnings
9241      if test -s conftest.err; then
9242        # Append any errors to the config.log.
9243        cat conftest.err 1>&5
9244        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9245        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9246        if diff conftest.exp conftest.er2 >/dev/null; then
9247          lt_cv_prog_compiler__b=yes
9248        fi
9249      else
9250        lt_cv_prog_compiler__b=yes
9251      fi
9252    fi
9253    $RM -r conftest*
9254    LDFLAGS="$save_LDFLAGS"
9255
9256 fi
9257 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9258 echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; }
9259
9260 if test x"$lt_cv_prog_compiler__b" = xyes; then
9261     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9262 else
9263     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9264 fi
9265
9266           ;;
9267         esac
9268       fi
9269       if test "$with_gnu_ld" = no; then
9270         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271         hardcode_libdir_separator=:
9272
9273         case $host_cpu in
9274         hppa*64*|ia64*)
9275           hardcode_direct=no
9276           hardcode_shlibpath_var=no
9277           ;;
9278         *)
9279           hardcode_direct=yes
9280           hardcode_direct_absolute=yes
9281           export_dynamic_flag_spec='${wl}-E'
9282
9283           # hardcode_minus_L: Not really in the search PATH,
9284           # but as the default location of the library.
9285           hardcode_minus_L=yes
9286           ;;
9287         esac
9288       fi
9289       ;;
9290
9291     irix5* | irix6* | nonstopux*)
9292       if test "$GCC" = yes; then
9293         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9294         # Try to use the -exported_symbol ld option, if it does not
9295         # work, assume that -exports_file does not work either and
9296         # implicitly export all symbols.
9297         save_LDFLAGS="$LDFLAGS"
9298         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9299         cat >conftest.$ac_ext <<_ACEOF
9300 int foo(void) {}
9301 _ACEOF
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9304 case "(($ac_try" in
9305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306   *) ac_try_echo=$ac_try;;
9307 esac
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309   (eval "$ac_link") 2>conftest.er1
9310   ac_status=$?
9311   grep -v '^ *+' conftest.er1 >conftest.err
9312   rm -f conftest.er1
9313   cat conftest.err >&5
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); } && {
9316          test -z "$ac_c_werror_flag" ||
9317          test ! -s conftest.err
9318        } && test -s conftest$ac_exeext &&
9319        $as_test_x conftest$ac_exeext; then
9320   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9321
9322 else
9323   echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326
9327 fi
9328
9329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330       conftest$ac_exeext conftest.$ac_ext
9331         LDFLAGS="$save_LDFLAGS"
9332       else
9333         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9334         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9335       fi
9336       archive_cmds_need_lc='no'
9337       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338       hardcode_libdir_separator=:
9339       inherit_rpath=yes
9340       link_all_deplibs=yes
9341       ;;
9342
9343     netbsd*)
9344       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9345         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9346       else
9347         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9348       fi
9349       hardcode_libdir_flag_spec='-R$libdir'
9350       hardcode_direct=yes
9351       hardcode_shlibpath_var=no
9352       ;;
9353
9354     newsos6)
9355       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9356       hardcode_direct=yes
9357       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358       hardcode_libdir_separator=:
9359       hardcode_shlibpath_var=no
9360       ;;
9361
9362     *nto* | *qnx*)
9363       ;;
9364
9365     openbsd*)
9366       if test -f /usr/libexec/ld.so; then
9367         hardcode_direct=yes
9368         hardcode_shlibpath_var=no
9369         hardcode_direct_absolute=yes
9370         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9371           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9372           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9373           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9374           export_dynamic_flag_spec='${wl}-E'
9375         else
9376           case $host_os in
9377            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9378              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9379              hardcode_libdir_flag_spec='-R$libdir'
9380              ;;
9381            *)
9382              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9383              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9384              ;;
9385           esac
9386         fi
9387       else
9388         ld_shlibs=no
9389       fi
9390       ;;
9391
9392     os2*)
9393       hardcode_libdir_flag_spec='-L$libdir'
9394       hardcode_minus_L=yes
9395       allow_undefined_flag=unsupported
9396       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9397       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9398       ;;
9399
9400     osf3*)
9401       if test "$GCC" = yes; then
9402         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9403         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9404       else
9405         allow_undefined_flag=' -expect_unresolved \*'
9406         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9407       fi
9408       archive_cmds_need_lc='no'
9409       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410       hardcode_libdir_separator=:
9411       ;;
9412
9413     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9414       if test "$GCC" = yes; then
9415         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9416         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9417         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9418       else
9419         allow_undefined_flag=' -expect_unresolved \*'
9420         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9421         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9422         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9423
9424         # Both c and cxx compiler support -rpath directly
9425         hardcode_libdir_flag_spec='-rpath $libdir'
9426       fi
9427       archive_cmds_need_lc='no'
9428       hardcode_libdir_separator=:
9429       ;;
9430
9431     solaris*)
9432       no_undefined_flag=' -z defs'
9433       if test "$GCC" = yes; then
9434         wlarc='${wl}'
9435         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9436         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9437           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9438       else
9439         case `$CC -V 2>&1` in
9440         *"Compilers 5.0"*)
9441           wlarc=''
9442           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9444           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9445           ;;
9446         *)
9447           wlarc='${wl}'
9448           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9449           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9450           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9451           ;;
9452         esac
9453       fi
9454       hardcode_libdir_flag_spec='-R$libdir'
9455       hardcode_shlibpath_var=no
9456       case $host_os in
9457       solaris2.[0-5] | solaris2.[0-5].*) ;;
9458       *)
9459         # The compiler driver will combine and reorder linker options,
9460         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9461         # but is careful enough not to reorder.
9462         # Supported since Solaris 2.6 (maybe 2.5.1?)
9463         if test "$GCC" = yes; then
9464           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9465         else
9466           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9467         fi
9468         ;;
9469       esac
9470       link_all_deplibs=yes
9471       ;;
9472
9473     sunos4*)
9474       if test "x$host_vendor" = xsequent; then
9475         # Use $CC to link under sequent, because it throws in some extra .o
9476         # files that make .init and .fini sections work.
9477         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9478       else
9479         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9480       fi
9481       hardcode_libdir_flag_spec='-L$libdir'
9482       hardcode_direct=yes
9483       hardcode_minus_L=yes
9484       hardcode_shlibpath_var=no
9485       ;;
9486
9487     sysv4)
9488       case $host_vendor in
9489         sni)
9490           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491           hardcode_direct=yes # is this really true???
9492         ;;
9493         siemens)
9494           ## LD is ld it makes a PLAMLIB
9495           ## CC just makes a GrossModule.
9496           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9497           reload_cmds='$CC -r -o $output$reload_objs'
9498           hardcode_direct=no
9499         ;;
9500         motorola)
9501           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9503         ;;
9504       esac
9505       runpath_var='LD_RUN_PATH'
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     sysv4.3*)
9510       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511       hardcode_shlibpath_var=no
9512       export_dynamic_flag_spec='-Bexport'
9513       ;;
9514
9515     sysv4*MP*)
9516       if test -d /usr/nec; then
9517         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518         hardcode_shlibpath_var=no
9519         runpath_var=LD_RUN_PATH
9520         hardcode_runpath_var=yes
9521         ld_shlibs=yes
9522       fi
9523       ;;
9524
9525     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9526       no_undefined_flag='${wl}-z,text'
9527       archive_cmds_need_lc=no
9528       hardcode_shlibpath_var=no
9529       runpath_var='LD_RUN_PATH'
9530
9531       if test "$GCC" = yes; then
9532         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534       else
9535         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537       fi
9538       ;;
9539
9540     sysv5* | sco3.2v5* | sco5v6*)
9541       # Note: We can NOT use -z defs as we might desire, because we do not
9542       # link with -lc, and that would cause any symbols used from libc to
9543       # always be unresolved, which means just about no library would
9544       # ever link correctly.  If we're not using GNU ld we use -z text
9545       # though, which does catch some bad symbols but isn't as heavy-handed
9546       # as -z defs.
9547       no_undefined_flag='${wl}-z,text'
9548       allow_undefined_flag='${wl}-z,nodefs'
9549       archive_cmds_need_lc=no
9550       hardcode_shlibpath_var=no
9551       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9552       hardcode_libdir_separator=':'
9553       link_all_deplibs=yes
9554       export_dynamic_flag_spec='${wl}-Bexport'
9555       runpath_var='LD_RUN_PATH'
9556
9557       if test "$GCC" = yes; then
9558         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9560       else
9561         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563       fi
9564       ;;
9565
9566     uts4*)
9567       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9568       hardcode_libdir_flag_spec='-L$libdir'
9569       hardcode_shlibpath_var=no
9570       ;;
9571
9572     *)
9573       ld_shlibs=no
9574       ;;
9575     esac
9576
9577     if test x$host_vendor = xsni; then
9578       case $host in
9579       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9580         export_dynamic_flag_spec='${wl}-Blargedynsym'
9581         ;;
9582       esac
9583     fi
9584   fi
9585
9586 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9587 echo "${ECHO_T}$ld_shlibs" >&6; }
9588 test "$ld_shlibs" = no && can_build_shared=no
9589
9590 with_gnu_ld=$with_gnu_ld
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606 #
9607 # Do we need to explicitly link libc?
9608 #
9609 case "x$archive_cmds_need_lc" in
9610 x|xyes)
9611   # Assume -lc should be added
9612   archive_cmds_need_lc=yes
9613
9614   if test "$enable_shared" = yes && test "$GCC" = yes; then
9615     case $archive_cmds in
9616     *'~'*)
9617       # FIXME: we may have to deal with multi-command sequences.
9618       ;;
9619     '$CC '*)
9620       # Test whether the compiler implicitly links with -lc since on some
9621       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9622       # to ld, don't add -lc before -lgcc.
9623       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9624 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9625 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9626   echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628   $RM conftest*
9629         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9630
9631         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632   (eval $ac_compile) 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } 2>conftest.err; then
9636           soname=conftest
9637           lib=conftest
9638           libobjs=conftest.$ac_objext
9639           deplibs=
9640           wl=$lt_prog_compiler_wl
9641           pic_flag=$lt_prog_compiler_pic
9642           compiler_flags=-v
9643           linker_flags=-v
9644           verstring=
9645           output_objdir=.
9646           libname=conftest
9647           lt_save_allow_undefined_flag=$allow_undefined_flag
9648           allow_undefined_flag=
9649           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9650   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); }
9654           then
9655             lt_cv_archive_cmds_need_lc=no
9656           else
9657             lt_cv_archive_cmds_need_lc=yes
9658           fi
9659           allow_undefined_flag=$lt_save_allow_undefined_flag
9660         else
9661           cat conftest.err 1>&5
9662         fi
9663         $RM conftest*
9664
9665 fi
9666 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9667 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
9668       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9669       ;;
9670     esac
9671   fi
9672   ;;
9673 esac
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9832 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9833
9834 if test "$GCC" = yes; then
9835   case $host_os in
9836     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9837     *) lt_awk_arg="/^libraries:/" ;;
9838   esac
9839   case $host_os in
9840     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9841     *) lt_sed_strip_eq="s,=/,/,g" ;;
9842   esac
9843   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9844   case $lt_search_path_spec in
9845   *\;*)
9846     # if the path contains ";" then we assume it to be the separator
9847     # otherwise default to the standard path separator (i.e. ":") - it is
9848     # assumed that no part of a normal pathname contains ";" but that should
9849     # okay in the real world where ";" in dirpaths is itself problematic.
9850     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9851     ;;
9852   *)
9853     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9854     ;;
9855   esac
9856   # Ok, now we have the path, separated by spaces, we can step through it
9857   # and add multilib dir if necessary.
9858   lt_tmp_lt_search_path_spec=
9859   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9860   for lt_sys_path in $lt_search_path_spec; do
9861     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9862       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9863     else
9864       test -d "$lt_sys_path" && \
9865         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9866     fi
9867   done
9868   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9869 BEGIN {RS=" "; FS="/|\n";} {
9870   lt_foo="";
9871   lt_count=0;
9872   for (lt_i = NF; lt_i > 0; lt_i--) {
9873     if ($lt_i != "" && $lt_i != ".") {
9874       if ($lt_i == "..") {
9875         lt_count++;
9876       } else {
9877         if (lt_count == 0) {
9878           lt_foo="/" $lt_i lt_foo;
9879         } else {
9880           lt_count--;
9881         }
9882       }
9883     }
9884   }
9885   if (lt_foo != "") { lt_freq[lt_foo]++; }
9886   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9887 }'`
9888   # AWK program above erroneously prepends '/' to C:/dos/paths
9889   # for these hosts.
9890   case $host_os in
9891     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9892       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9893   esac
9894   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9895 else
9896   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9897 fi
9898 library_names_spec=
9899 libname_spec='lib$name'
9900 soname_spec=
9901 shrext_cmds=".so"
9902 postinstall_cmds=
9903 postuninstall_cmds=
9904 finish_cmds=
9905 finish_eval=
9906 shlibpath_var=
9907 shlibpath_overrides_runpath=unknown
9908 version_type=none
9909 dynamic_linker="$host_os ld.so"
9910 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9911 need_lib_prefix=unknown
9912 hardcode_into_libs=no
9913
9914 # when you set need_version to no, make sure it does not cause -set_version
9915 # flags to be left without arguments
9916 need_version=unknown
9917
9918 case $host_os in
9919 aix3*)
9920   version_type=linux
9921   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9922   shlibpath_var=LIBPATH
9923
9924   # AIX 3 has no versioning support, so we append a major version to the name.
9925   soname_spec='${libname}${release}${shared_ext}$major'
9926   ;;
9927
9928 aix[4-9]*)
9929   version_type=linux
9930   need_lib_prefix=no
9931   need_version=no
9932   hardcode_into_libs=yes
9933   if test "$host_cpu" = ia64; then
9934     # AIX 5 supports IA64
9935     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9936     shlibpath_var=LD_LIBRARY_PATH
9937   else
9938     # With GCC up to 2.95.x, collect2 would create an import file
9939     # for dependence libraries.  The import file would start with
9940     # the line `#! .'.  This would cause the generated library to
9941     # depend on `.', always an invalid library.  This was fixed in
9942     # development snapshots of GCC prior to 3.0.
9943     case $host_os in
9944       aix4 | aix4.[01] | aix4.[01].*)
9945       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9946            echo ' yes '
9947            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9948         :
9949       else
9950         can_build_shared=no
9951       fi
9952       ;;
9953     esac
9954     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9955     # soname into executable. Probably we can add versioning support to
9956     # collect2, so additional links can be useful in future.
9957     if test "$aix_use_runtimelinking" = yes; then
9958       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9959       # instead of lib<name>.a to let people know that these are not
9960       # typical AIX shared libraries.
9961       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962     else
9963       # We preserve .a as extension for shared libraries through AIX4.2
9964       # and later when we are not doing run time linking.
9965       library_names_spec='${libname}${release}.a $libname.a'
9966       soname_spec='${libname}${release}${shared_ext}$major'
9967     fi
9968     shlibpath_var=LIBPATH
9969   fi
9970   ;;
9971
9972 amigaos*)
9973   case $host_cpu in
9974   powerpc)
9975     # Since July 2007 AmigaOS4 officially supports .so libraries.
9976     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978     ;;
9979   m68k)
9980     library_names_spec='$libname.ixlibrary $libname.a'
9981     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9982     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9983     ;;
9984   esac
9985   ;;
9986
9987 beos*)
9988   library_names_spec='${libname}${shared_ext}'
9989   dynamic_linker="$host_os ld.so"
9990   shlibpath_var=LIBRARY_PATH
9991   ;;
9992
9993 bsdi[45]*)
9994   version_type=linux
9995   need_version=no
9996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997   soname_spec='${libname}${release}${shared_ext}$major'
9998   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9999   shlibpath_var=LD_LIBRARY_PATH
10000   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10001   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10002   # the default ld.so.conf also contains /usr/contrib/lib and
10003   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10004   # libtool to hard-code these into programs
10005   ;;
10006
10007 cygwin* | mingw* | pw32* | cegcc*)
10008   version_type=windows
10009   shrext_cmds=".dll"
10010   need_version=no
10011   need_lib_prefix=no
10012
10013   case $GCC,$host_os in
10014   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10015     library_names_spec='$libname.dll.a'
10016     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10017     postinstall_cmds='base_file=`basename \${file}`~
10018       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10019       dldir=$destdir/`dirname \$dlpath`~
10020       test -d \$dldir || mkdir -p \$dldir~
10021       $install_prog $dir/$dlname \$dldir/$dlname~
10022       chmod a+x \$dldir/$dlname~
10023       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10024         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10025       fi'
10026     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10027       dlpath=$dir/\$dldll~
10028        $RM \$dlpath'
10029     shlibpath_overrides_runpath=yes
10030
10031     case $host_os in
10032     cygwin*)
10033       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10034       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10035
10036       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10037       ;;
10038     mingw* | cegcc*)
10039       # MinGW DLLs use traditional 'lib' prefix
10040       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10041       ;;
10042     pw32*)
10043       # pw32 DLLs use 'pw' prefix rather than 'lib'
10044       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10045       ;;
10046     esac
10047     ;;
10048
10049   *)
10050     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10051     ;;
10052   esac
10053   dynamic_linker='Win32 ld.exe'
10054   # FIXME: first we should search . and the directory the executable is in
10055   shlibpath_var=PATH
10056   ;;
10057
10058 darwin* | rhapsody*)
10059   dynamic_linker="$host_os dyld"
10060   version_type=darwin
10061   need_lib_prefix=no
10062   need_version=no
10063   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10064   soname_spec='${libname}${release}${major}$shared_ext'
10065   shlibpath_overrides_runpath=yes
10066   shlibpath_var=DYLD_LIBRARY_PATH
10067   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10068
10069   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10070   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10071   ;;
10072
10073 dgux*)
10074   version_type=linux
10075   need_lib_prefix=no
10076   need_version=no
10077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10078   soname_spec='${libname}${release}${shared_ext}$major'
10079   shlibpath_var=LD_LIBRARY_PATH
10080   ;;
10081
10082 freebsd1*)
10083   dynamic_linker=no
10084   ;;
10085
10086 freebsd* | dragonfly*)
10087   # DragonFly does not have aout.  When/if they implement a new
10088   # versioning mechanism, adjust this.
10089   if test -x /usr/bin/objformat; then
10090     objformat=`/usr/bin/objformat`
10091   else
10092     case $host_os in
10093     freebsd[123]*) objformat=aout ;;
10094     *) objformat=elf ;;
10095     esac
10096   fi
10097   version_type=freebsd-$objformat
10098   case $version_type in
10099     freebsd-elf*)
10100       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10101       need_version=no
10102       need_lib_prefix=no
10103       ;;
10104     freebsd-*)
10105       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10106       need_version=yes
10107       ;;
10108   esac
10109   shlibpath_var=LD_LIBRARY_PATH
10110   case $host_os in
10111   freebsd2*)
10112     shlibpath_overrides_runpath=yes
10113     ;;
10114   freebsd3.[01]* | freebsdelf3.[01]*)
10115     shlibpath_overrides_runpath=yes
10116     hardcode_into_libs=yes
10117     ;;
10118   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10119   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10120     shlibpath_overrides_runpath=no
10121     hardcode_into_libs=yes
10122     ;;
10123   *) # from 4.6 on, and DragonFly
10124     shlibpath_overrides_runpath=yes
10125     hardcode_into_libs=yes
10126     ;;
10127   esac
10128   ;;
10129
10130 gnu*)
10131   version_type=linux
10132   need_lib_prefix=no
10133   need_version=no
10134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10135   soname_spec='${libname}${release}${shared_ext}$major'
10136   shlibpath_var=LD_LIBRARY_PATH
10137   hardcode_into_libs=yes
10138   ;;
10139
10140 haiku*)
10141   version_type=linux
10142   need_lib_prefix=no
10143   need_version=no
10144   dynamic_linker="$host_os runtime_loader"
10145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10146   soname_spec='${libname}${release}${shared_ext}$major'
10147   shlibpath_var=LIBRARY_PATH
10148   shlibpath_overrides_runpath=yes
10149   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10150   hardcode_into_libs=yes
10151   ;;
10152
10153 hpux9* | hpux10* | hpux11*)
10154   # Give a soname corresponding to the major version so that dld.sl refuses to
10155   # link against other versions.
10156   version_type=sunos
10157   need_lib_prefix=no
10158   need_version=no
10159   case $host_cpu in
10160   ia64*)
10161     shrext_cmds='.so'
10162     hardcode_into_libs=yes
10163     dynamic_linker="$host_os dld.so"
10164     shlibpath_var=LD_LIBRARY_PATH
10165     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167     soname_spec='${libname}${release}${shared_ext}$major'
10168     if test "X$HPUX_IA64_MODE" = X32; then
10169       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10170     else
10171       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10172     fi
10173     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10174     ;;
10175   hppa*64*)
10176     shrext_cmds='.sl'
10177     hardcode_into_libs=yes
10178     dynamic_linker="$host_os dld.sl"
10179     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10180     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182     soname_spec='${libname}${release}${shared_ext}$major'
10183     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10184     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10185     ;;
10186   *)
10187     shrext_cmds='.sl'
10188     dynamic_linker="$host_os dld.sl"
10189     shlibpath_var=SHLIB_PATH
10190     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192     soname_spec='${libname}${release}${shared_ext}$major'
10193     ;;
10194   esac
10195   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10196   postinstall_cmds='chmod 555 $lib'
10197   # or fails outright, so override atomically:
10198   install_override_mode=555
10199   ;;
10200
10201 interix[3-9]*)
10202   version_type=linux
10203   need_lib_prefix=no
10204   need_version=no
10205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10206   soname_spec='${libname}${release}${shared_ext}$major'
10207   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10208   shlibpath_var=LD_LIBRARY_PATH
10209   shlibpath_overrides_runpath=no
10210   hardcode_into_libs=yes
10211   ;;
10212
10213 irix5* | irix6* | nonstopux*)
10214   case $host_os in
10215     nonstopux*) version_type=nonstopux ;;
10216     *)
10217         if test "$lt_cv_prog_gnu_ld" = yes; then
10218                 version_type=linux
10219         else
10220                 version_type=irix
10221         fi ;;
10222   esac
10223   need_lib_prefix=no
10224   need_version=no
10225   soname_spec='${libname}${release}${shared_ext}$major'
10226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10227   case $host_os in
10228   irix5* | nonstopux*)
10229     libsuff= shlibsuff=
10230     ;;
10231   *)
10232     case $LD in # libtool.m4 will add one of these switches to LD
10233     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10234       libsuff= shlibsuff= libmagic=32-bit;;
10235     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10236       libsuff=32 shlibsuff=N32 libmagic=N32;;
10237     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10238       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10239     *) libsuff= shlibsuff= libmagic=never-match;;
10240     esac
10241     ;;
10242   esac
10243   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10244   shlibpath_overrides_runpath=no
10245   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10246   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10247   hardcode_into_libs=yes
10248   ;;
10249
10250 # No shared lib support for Linux oldld, aout, or coff.
10251 linux*oldld* | linux*aout* | linux*coff*)
10252   dynamic_linker=no
10253   ;;
10254
10255 # This must be Linux ELF.
10256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10257   version_type=linux
10258   need_lib_prefix=no
10259   need_version=no
10260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261   soname_spec='${libname}${release}${shared_ext}$major'
10262   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10263   shlibpath_var=LD_LIBRARY_PATH
10264   shlibpath_overrides_runpath=no
10265
10266   # Some binutils ld are patched to set DT_RUNPATH
10267   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   lt_cv_shlibpath_overrides_runpath=no
10271     save_LDFLAGS=$LDFLAGS
10272     save_libdir=$libdir
10273     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10274          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10275     cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h.  */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h.  */
10281
10282 int
10283 main ()
10284 {
10285
10286   ;
10287   return 0;
10288 }
10289 _ACEOF
10290 rm -f conftest.$ac_objext conftest$ac_exeext
10291 if { (ac_try="$ac_link"
10292 case "(($ac_try" in
10293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294   *) ac_try_echo=$ac_try;;
10295 esac
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297   (eval "$ac_link") 2>conftest.er1
10298   ac_status=$?
10299   grep -v '^ *+' conftest.er1 >conftest.err
10300   rm -f conftest.er1
10301   cat conftest.err >&5
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } && {
10304          test -z "$ac_c_werror_flag" ||
10305          test ! -s conftest.err
10306        } && test -s conftest$ac_exeext &&
10307        $as_test_x conftest$ac_exeext; then
10308   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10309   lt_cv_shlibpath_overrides_runpath=yes
10310 fi
10311
10312 else
10313   echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316
10317 fi
10318
10319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10320       conftest$ac_exeext conftest.$ac_ext
10321     LDFLAGS=$save_LDFLAGS
10322     libdir=$save_libdir
10323
10324 fi
10325
10326   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10327
10328   # This implies no fast_install, which is unacceptable.
10329   # Some rework will be needed to allow for fast_install
10330   # before this can be enabled.
10331   hardcode_into_libs=yes
10332
10333   # Append ld.so.conf contents to the search path
10334   if test -f /etc/ld.so.conf; then
10335     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10336     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10337   fi
10338
10339   # We used to test for /lib/ld.so.1 and disable shared libraries on
10340   # powerpc, because MkLinux only supported shared libraries with the
10341   # GNU dynamic linker.  Since this was broken with cross compilers,
10342   # most powerpc-linux boxes support dynamic linking these days and
10343   # people can always --disable-shared, the test was removed, and we
10344   # assume the GNU/Linux dynamic linker is in use.
10345   dynamic_linker='GNU/Linux ld.so'
10346   ;;
10347
10348 netbsd*)
10349   version_type=sunos
10350   need_lib_prefix=no
10351   need_version=no
10352   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10354     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10355     dynamic_linker='NetBSD (a.out) ld.so'
10356   else
10357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10358     soname_spec='${libname}${release}${shared_ext}$major'
10359     dynamic_linker='NetBSD ld.elf_so'
10360   fi
10361   shlibpath_var=LD_LIBRARY_PATH
10362   shlibpath_overrides_runpath=yes
10363   hardcode_into_libs=yes
10364   ;;
10365
10366 newsos6)
10367   version_type=linux
10368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369   shlibpath_var=LD_LIBRARY_PATH
10370   shlibpath_overrides_runpath=yes
10371   ;;
10372
10373 *nto* | *qnx*)
10374   version_type=qnx
10375   need_lib_prefix=no
10376   need_version=no
10377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378   soname_spec='${libname}${release}${shared_ext}$major'
10379   shlibpath_var=LD_LIBRARY_PATH
10380   shlibpath_overrides_runpath=no
10381   hardcode_into_libs=yes
10382   dynamic_linker='ldqnx.so'
10383   ;;
10384
10385 openbsd*)
10386   version_type=sunos
10387   sys_lib_dlsearch_path_spec="/usr/lib"
10388   need_lib_prefix=no
10389   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10390   case $host_os in
10391     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10392     *)                          need_version=no  ;;
10393   esac
10394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10395   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10396   shlibpath_var=LD_LIBRARY_PATH
10397   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10398     case $host_os in
10399       openbsd2.[89] | openbsd2.[89].*)
10400         shlibpath_overrides_runpath=no
10401         ;;
10402       *)
10403         shlibpath_overrides_runpath=yes
10404         ;;
10405       esac
10406   else
10407     shlibpath_overrides_runpath=yes
10408   fi
10409   ;;
10410
10411 os2*)
10412   libname_spec='$name'
10413   shrext_cmds=".dll"
10414   need_lib_prefix=no
10415   library_names_spec='$libname${shared_ext} $libname.a'
10416   dynamic_linker='OS/2 ld.exe'
10417   shlibpath_var=LIBPATH
10418   ;;
10419
10420 osf3* | osf4* | osf5*)
10421   version_type=osf
10422   need_lib_prefix=no
10423   need_version=no
10424   soname_spec='${libname}${release}${shared_ext}$major'
10425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426   shlibpath_var=LD_LIBRARY_PATH
10427   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10428   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10429   ;;
10430
10431 rdos*)
10432   dynamic_linker=no
10433   ;;
10434
10435 solaris*)
10436   version_type=linux
10437   need_lib_prefix=no
10438   need_version=no
10439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440   soname_spec='${libname}${release}${shared_ext}$major'
10441   shlibpath_var=LD_LIBRARY_PATH
10442   shlibpath_overrides_runpath=yes
10443   hardcode_into_libs=yes
10444   # ldd complains unless libraries are executable
10445   postinstall_cmds='chmod +x $lib'
10446   ;;
10447
10448 sunos4*)
10449   version_type=sunos
10450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10451   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10452   shlibpath_var=LD_LIBRARY_PATH
10453   shlibpath_overrides_runpath=yes
10454   if test "$with_gnu_ld" = yes; then
10455     need_lib_prefix=no
10456   fi
10457   need_version=yes
10458   ;;
10459
10460 sysv4 | sysv4.3*)
10461   version_type=linux
10462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463   soname_spec='${libname}${release}${shared_ext}$major'
10464   shlibpath_var=LD_LIBRARY_PATH
10465   case $host_vendor in
10466     sni)
10467       shlibpath_overrides_runpath=no
10468       need_lib_prefix=no
10469       runpath_var=LD_RUN_PATH
10470       ;;
10471     siemens)
10472       need_lib_prefix=no
10473       ;;
10474     motorola)
10475       need_lib_prefix=no
10476       need_version=no
10477       shlibpath_overrides_runpath=no
10478       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10479       ;;
10480   esac
10481   ;;
10482
10483 sysv4*MP*)
10484   if test -d /usr/nec ;then
10485     version_type=linux
10486     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10487     soname_spec='$libname${shared_ext}.$major'
10488     shlibpath_var=LD_LIBRARY_PATH
10489   fi
10490   ;;
10491
10492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10493   version_type=freebsd-elf
10494   need_lib_prefix=no
10495   need_version=no
10496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10497   soname_spec='${libname}${release}${shared_ext}$major'
10498   shlibpath_var=LD_LIBRARY_PATH
10499   shlibpath_overrides_runpath=yes
10500   hardcode_into_libs=yes
10501   if test "$with_gnu_ld" = yes; then
10502     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10503   else
10504     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10505     case $host_os in
10506       sco3.2v5*)
10507         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10508         ;;
10509     esac
10510   fi
10511   sys_lib_dlsearch_path_spec='/usr/lib'
10512   ;;
10513
10514 tpf*)
10515   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10516   version_type=linux
10517   need_lib_prefix=no
10518   need_version=no
10519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520   shlibpath_var=LD_LIBRARY_PATH
10521   shlibpath_overrides_runpath=no
10522   hardcode_into_libs=yes
10523   ;;
10524
10525 uts4*)
10526   version_type=linux
10527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528   soname_spec='${libname}${release}${shared_ext}$major'
10529   shlibpath_var=LD_LIBRARY_PATH
10530   ;;
10531
10532 *)
10533   dynamic_linker=no
10534   ;;
10535 esac
10536 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10537 echo "${ECHO_T}$dynamic_linker" >&6; }
10538 test "$dynamic_linker" = no && can_build_shared=no
10539
10540 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10541 if test "$GCC" = yes; then
10542   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10543 fi
10544
10545 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10546   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10547 fi
10548 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10549   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10550 fi
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10645 hardcode_action=
10646 if test -n "$hardcode_libdir_flag_spec" ||
10647    test -n "$runpath_var" ||
10648    test "X$hardcode_automatic" = "Xyes" ; then
10649
10650   # We can hardcode non-existent directories.
10651   if test "$hardcode_direct" != no &&
10652      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10653      # have to relink, otherwise we might link with an installed library
10654      # when we should be linking with a yet-to-be-installed one
10655      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10656      test "$hardcode_minus_L" != no; then
10657     # Linking always hardcodes the temporary library directory.
10658     hardcode_action=relink
10659   else
10660     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10661     hardcode_action=immediate
10662   fi
10663 else
10664   # We cannot hardcode anything, or else we can only hardcode existing
10665   # directories.
10666   hardcode_action=unsupported
10667 fi
10668 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10669 echo "${ECHO_T}$hardcode_action" >&6; }
10670
10671 if test "$hardcode_action" = relink ||
10672    test "$inherit_rpath" = yes; then
10673   # Fast installation is not supported
10674   enable_fast_install=no
10675 elif test "$shlibpath_overrides_runpath" = yes ||
10676      test "$enable_shared" = no; then
10677   # Fast installation is not necessary
10678   enable_fast_install=needless
10679 fi
10680
10681
10682
10683
10684
10685
10686   if test "x$enable_dlopen" != xyes; then
10687   enable_dlopen=unknown
10688   enable_dlopen_self=unknown
10689   enable_dlopen_self_static=unknown
10690 else
10691   lt_cv_dlopen=no
10692   lt_cv_dlopen_libs=
10693
10694   case $host_os in
10695   beos*)
10696     lt_cv_dlopen="load_add_on"
10697     lt_cv_dlopen_libs=
10698     lt_cv_dlopen_self=yes
10699     ;;
10700
10701   mingw* | pw32* | cegcc*)
10702     lt_cv_dlopen="LoadLibrary"
10703     lt_cv_dlopen_libs=
10704     ;;
10705
10706   cygwin*)
10707     lt_cv_dlopen="dlopen"
10708     lt_cv_dlopen_libs=
10709     ;;
10710
10711   darwin*)
10712   # if libdl is installed we need to link against it
10713     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10716   echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718   ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-ldl  $LIBS"
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h.  */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h.  */
10726
10727 /* Override any GCC internal prototype to avoid an error.
10728    Use char because int might match the return type of a GCC
10729    builtin and then its argument prototype would still apply.  */
10730 #ifdef __cplusplus
10731 extern "C"
10732 #endif
10733 char dlopen ();
10734 int
10735 main ()
10736 {
10737 return dlopen ();
10738   ;
10739   return 0;
10740 }
10741 _ACEOF
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (ac_try="$ac_link"
10744 case "(($ac_try" in
10745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746   *) ac_try_echo=$ac_try;;
10747 esac
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749   (eval "$ac_link") 2>conftest.er1
10750   ac_status=$?
10751   grep -v '^ *+' conftest.er1 >conftest.err
10752   rm -f conftest.er1
10753   cat conftest.err >&5
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } && {
10756          test -z "$ac_c_werror_flag" ||
10757          test ! -s conftest.err
10758        } && test -s conftest$ac_exeext &&
10759        $as_test_x conftest$ac_exeext; then
10760   ac_cv_lib_dl_dlopen=yes
10761 else
10762   echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10764
10765         ac_cv_lib_dl_dlopen=no
10766 fi
10767
10768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10769       conftest$ac_exeext conftest.$ac_ext
10770 LIBS=$ac_check_lib_save_LIBS
10771 fi
10772 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10773 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10774 if test $ac_cv_lib_dl_dlopen = yes; then
10775   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10776 else
10777
10778     lt_cv_dlopen="dyld"
10779     lt_cv_dlopen_libs=
10780     lt_cv_dlopen_self=yes
10781
10782 fi
10783
10784     ;;
10785
10786   *)
10787     { echo "$as_me:$LINENO: checking for shl_load" >&5
10788 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10789 if test "${ac_cv_func_shl_load+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10800 #define shl_load innocuous_shl_load
10801
10802 /* System header to define __stub macros and hopefully few prototypes,
10803     which can conflict with char shl_load (); below.
10804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805     <limits.h> exists even on freestanding compilers.  */
10806
10807 #ifdef __STDC__
10808 # include <limits.h>
10809 #else
10810 # include <assert.h>
10811 #endif
10812
10813 #undef shl_load
10814
10815 /* Override any GCC internal prototype to avoid an error.
10816    Use char because int might match the return type of a GCC
10817    builtin and then its argument prototype would still apply.  */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 char shl_load ();
10822 /* The GNU C library defines this for functions which it implements
10823     to always fail with ENOSYS.  Some functions are actually named
10824     something starting with __ and the normal name is an alias.  */
10825 #if defined __stub_shl_load || defined __stub___shl_load
10826 choke me
10827 #endif
10828
10829 int
10830 main ()
10831 {
10832 return shl_load ();
10833   ;
10834   return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_link") 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } && {
10851          test -z "$ac_c_werror_flag" ||
10852          test ! -s conftest.err
10853        } && test -s conftest$ac_exeext &&
10854        $as_test_x conftest$ac_exeext; then
10855   ac_cv_func_shl_load=yes
10856 else
10857   echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10859
10860         ac_cv_func_shl_load=no
10861 fi
10862
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864       conftest$ac_exeext conftest.$ac_ext
10865 fi
10866 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10867 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10868 if test $ac_cv_func_shl_load = yes; then
10869   lt_cv_dlopen="shl_load"
10870 else
10871   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10872 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10873 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10874   echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876   ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-ldld  $LIBS"
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884
10885 /* Override any GCC internal prototype to avoid an error.
10886    Use char because int might match the return type of a GCC
10887    builtin and then its argument prototype would still apply.  */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char shl_load ();
10892 int
10893 main ()
10894 {
10895 return shl_load ();
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (ac_try="$ac_link"
10902 case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907   (eval "$ac_link") 2>conftest.er1
10908   ac_status=$?
10909   grep -v '^ *+' conftest.er1 >conftest.err
10910   rm -f conftest.er1
10911   cat conftest.err >&5
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); } && {
10914          test -z "$ac_c_werror_flag" ||
10915          test ! -s conftest.err
10916        } && test -s conftest$ac_exeext &&
10917        $as_test_x conftest$ac_exeext; then
10918   ac_cv_lib_dld_shl_load=yes
10919 else
10920   echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923         ac_cv_lib_dld_shl_load=no
10924 fi
10925
10926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10927       conftest$ac_exeext conftest.$ac_ext
10928 LIBS=$ac_check_lib_save_LIBS
10929 fi
10930 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10931 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10932 if test $ac_cv_lib_dld_shl_load = yes; then
10933   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10934 else
10935   { echo "$as_me:$LINENO: checking for dlopen" >&5
10936 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10937 if test "${ac_cv_func_dlopen+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h.  */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h.  */
10946 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10948 #define dlopen innocuous_dlopen
10949
10950 /* System header to define __stub macros and hopefully few prototypes,
10951     which can conflict with char dlopen (); below.
10952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10953     <limits.h> exists even on freestanding compilers.  */
10954
10955 #ifdef __STDC__
10956 # include <limits.h>
10957 #else
10958 # include <assert.h>
10959 #endif
10960
10961 #undef dlopen
10962
10963 /* Override any GCC internal prototype to avoid an error.
10964    Use char because int might match the return type of a GCC
10965    builtin and then its argument prototype would still apply.  */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char dlopen ();
10970 /* The GNU C library defines this for functions which it implements
10971     to always fail with ENOSYS.  Some functions are actually named
10972     something starting with __ and the normal name is an alias.  */
10973 #if defined __stub_dlopen || defined __stub___dlopen
10974 choke me
10975 #endif
10976
10977 int
10978 main ()
10979 {
10980 return dlopen ();
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (ac_try="$ac_link"
10987 case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_link") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } && {
10999          test -z "$ac_c_werror_flag" ||
11000          test ! -s conftest.err
11001        } && test -s conftest$ac_exeext &&
11002        $as_test_x conftest$ac_exeext; then
11003   ac_cv_func_dlopen=yes
11004 else
11005   echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008         ac_cv_func_dlopen=no
11009 fi
11010
11011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11012       conftest$ac_exeext conftest.$ac_ext
11013 fi
11014 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11015 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11016 if test $ac_cv_func_dlopen = yes; then
11017   lt_cv_dlopen="dlopen"
11018 else
11019   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11020 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11022   echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024   ac_check_lib_save_LIBS=$LIBS
11025 LIBS="-ldl  $LIBS"
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032
11033 /* Override any GCC internal prototype to avoid an error.
11034    Use char because int might match the return type of a GCC
11035    builtin and then its argument prototype would still apply.  */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char dlopen ();
11040 int
11041 main ()
11042 {
11043 return dlopen ();
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (ac_try="$ac_link"
11050 case "(($ac_try" in
11051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052   *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055   (eval "$ac_link") 2>conftest.er1
11056   ac_status=$?
11057   grep -v '^ *+' conftest.er1 >conftest.err
11058   rm -f conftest.er1
11059   cat conftest.err >&5
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); } && {
11062          test -z "$ac_c_werror_flag" ||
11063          test ! -s conftest.err
11064        } && test -s conftest$ac_exeext &&
11065        $as_test_x conftest$ac_exeext; then
11066   ac_cv_lib_dl_dlopen=yes
11067 else
11068   echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11070
11071         ac_cv_lib_dl_dlopen=no
11072 fi
11073
11074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075       conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11077 fi
11078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11079 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11080 if test $ac_cv_lib_dl_dlopen = yes; then
11081   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11082 else
11083   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11084 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11085 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088   ac_check_lib_save_LIBS=$LIBS
11089 LIBS="-lsvld  $LIBS"
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h.  */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h.  */
11096
11097 /* Override any GCC internal prototype to avoid an error.
11098    Use char because int might match the return type of a GCC
11099    builtin and then its argument prototype would still apply.  */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char dlopen ();
11104 int
11105 main ()
11106 {
11107 return dlopen ();
11108   ;
11109   return 0;
11110 }
11111 _ACEOF
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (ac_try="$ac_link"
11114 case "(($ac_try" in
11115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116   *) ac_try_echo=$ac_try;;
11117 esac
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119   (eval "$ac_link") 2>conftest.er1
11120   ac_status=$?
11121   grep -v '^ *+' conftest.er1 >conftest.err
11122   rm -f conftest.er1
11123   cat conftest.err >&5
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); } && {
11126          test -z "$ac_c_werror_flag" ||
11127          test ! -s conftest.err
11128        } && test -s conftest$ac_exeext &&
11129        $as_test_x conftest$ac_exeext; then
11130   ac_cv_lib_svld_dlopen=yes
11131 else
11132   echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11134
11135         ac_cv_lib_svld_dlopen=no
11136 fi
11137
11138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11139       conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11141 fi
11142 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11143 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11144 if test $ac_cv_lib_svld_dlopen = yes; then
11145   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11146 else
11147   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11148 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11149 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   ac_check_lib_save_LIBS=$LIBS
11153 LIBS="-ldld  $LIBS"
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h.  */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h.  */
11160
11161 /* Override any GCC internal prototype to avoid an error.
11162    Use char because int might match the return type of a GCC
11163    builtin and then its argument prototype would still apply.  */
11164 #ifdef __cplusplus
11165 extern "C"
11166 #endif
11167 char dld_link ();
11168 int
11169 main ()
11170 {
11171 return dld_link ();
11172   ;
11173   return 0;
11174 }
11175 _ACEOF
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (ac_try="$ac_link"
11178 case "(($ac_try" in
11179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180   *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183   (eval "$ac_link") 2>conftest.er1
11184   ac_status=$?
11185   grep -v '^ *+' conftest.er1 >conftest.err
11186   rm -f conftest.er1
11187   cat conftest.err >&5
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); } && {
11190          test -z "$ac_c_werror_flag" ||
11191          test ! -s conftest.err
11192        } && test -s conftest$ac_exeext &&
11193        $as_test_x conftest$ac_exeext; then
11194   ac_cv_lib_dld_dld_link=yes
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199         ac_cv_lib_dld_dld_link=no
11200 fi
11201
11202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11203       conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_lib_save_LIBS
11205 fi
11206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11208 if test $ac_cv_lib_dld_dld_link = yes; then
11209   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11210 fi
11211
11212
11213 fi
11214
11215
11216 fi
11217
11218
11219 fi
11220
11221
11222 fi
11223
11224
11225 fi
11226
11227     ;;
11228   esac
11229
11230   if test "x$lt_cv_dlopen" != xno; then
11231     enable_dlopen=yes
11232   else
11233     enable_dlopen=no
11234   fi
11235
11236   case $lt_cv_dlopen in
11237   dlopen)
11238     save_CPPFLAGS="$CPPFLAGS"
11239     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11240
11241     save_LDFLAGS="$LDFLAGS"
11242     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11243
11244     save_LIBS="$LIBS"
11245     LIBS="$lt_cv_dlopen_libs $LIBS"
11246
11247     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11248 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11249 if test "${lt_cv_dlopen_self+set}" = set; then
11250   echo $ECHO_N "(cached) $ECHO_C" >&6
11251 else
11252           if test "$cross_compiling" = yes; then :
11253   lt_cv_dlopen_self=cross
11254 else
11255   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11256   lt_status=$lt_dlunknown
11257   cat > conftest.$ac_ext <<_LT_EOF
11258 #line $LINENO "configure"
11259 #include "confdefs.h"
11260
11261 #if HAVE_DLFCN_H
11262 #include <dlfcn.h>
11263 #endif
11264
11265 #include <stdio.h>
11266
11267 #ifdef RTLD_GLOBAL
11268 #  define LT_DLGLOBAL           RTLD_GLOBAL
11269 #else
11270 #  ifdef DL_GLOBAL
11271 #    define LT_DLGLOBAL         DL_GLOBAL
11272 #  else
11273 #    define LT_DLGLOBAL         0
11274 #  endif
11275 #endif
11276
11277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11278    find out it does not work in some platform. */
11279 #ifndef LT_DLLAZY_OR_NOW
11280 #  ifdef RTLD_LAZY
11281 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11282 #  else
11283 #    ifdef DL_LAZY
11284 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11285 #    else
11286 #      ifdef RTLD_NOW
11287 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11288 #      else
11289 #        ifdef DL_NOW
11290 #          define LT_DLLAZY_OR_NOW      DL_NOW
11291 #        else
11292 #          define LT_DLLAZY_OR_NOW      0
11293 #        endif
11294 #      endif
11295 #    endif
11296 #  endif
11297 #endif
11298
11299 /* When -fvisbility=hidden is used, assume the code has been annotated
11300    correspondingly for the symbols needed.  */
11301 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11302 void fnord () __attribute__((visibility("default")));
11303 #endif
11304
11305 void fnord () { int i=42; }
11306 int main ()
11307 {
11308   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11309   int status = $lt_dlunknown;
11310
11311   if (self)
11312     {
11313       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11314       else
11315         {
11316           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11317           else puts (dlerror ());
11318         }
11319       /* dlclose (self); */
11320     }
11321   else
11322     puts (dlerror ());
11323
11324   return status;
11325 }
11326 _LT_EOF
11327   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328   (eval $ac_link) 2>&5
11329   ac_status=$?
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11332     (./conftest; exit; ) >&5 2>/dev/null
11333     lt_status=$?
11334     case x$lt_status in
11335       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11336       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11337       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11338     esac
11339   else :
11340     # compilation failed
11341     lt_cv_dlopen_self=no
11342   fi
11343 fi
11344 rm -fr conftest*
11345
11346
11347 fi
11348 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11349 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11350
11351     if test "x$lt_cv_dlopen_self" = xyes; then
11352       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11353       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11354 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11355 if test "${lt_cv_dlopen_self_static+set}" = set; then
11356   echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358           if test "$cross_compiling" = yes; then :
11359   lt_cv_dlopen_self_static=cross
11360 else
11361   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11362   lt_status=$lt_dlunknown
11363   cat > conftest.$ac_ext <<_LT_EOF
11364 #line $LINENO "configure"
11365 #include "confdefs.h"
11366
11367 #if HAVE_DLFCN_H
11368 #include <dlfcn.h>
11369 #endif
11370
11371 #include <stdio.h>
11372
11373 #ifdef RTLD_GLOBAL
11374 #  define LT_DLGLOBAL           RTLD_GLOBAL
11375 #else
11376 #  ifdef DL_GLOBAL
11377 #    define LT_DLGLOBAL         DL_GLOBAL
11378 #  else
11379 #    define LT_DLGLOBAL         0
11380 #  endif
11381 #endif
11382
11383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11384    find out it does not work in some platform. */
11385 #ifndef LT_DLLAZY_OR_NOW
11386 #  ifdef RTLD_LAZY
11387 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11388 #  else
11389 #    ifdef DL_LAZY
11390 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11391 #    else
11392 #      ifdef RTLD_NOW
11393 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11394 #      else
11395 #        ifdef DL_NOW
11396 #          define LT_DLLAZY_OR_NOW      DL_NOW
11397 #        else
11398 #          define LT_DLLAZY_OR_NOW      0
11399 #        endif
11400 #      endif
11401 #    endif
11402 #  endif
11403 #endif
11404
11405 /* When -fvisbility=hidden is used, assume the code has been annotated
11406    correspondingly for the symbols needed.  */
11407 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11408 void fnord () __attribute__((visibility("default")));
11409 #endif
11410
11411 void fnord () { int i=42; }
11412 int main ()
11413 {
11414   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11415   int status = $lt_dlunknown;
11416
11417   if (self)
11418     {
11419       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11420       else
11421         {
11422           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11423           else puts (dlerror ());
11424         }
11425       /* dlclose (self); */
11426     }
11427   else
11428     puts (dlerror ());
11429
11430   return status;
11431 }
11432 _LT_EOF
11433   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434   (eval $ac_link) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11438     (./conftest; exit; ) >&5 2>/dev/null
11439     lt_status=$?
11440     case x$lt_status in
11441       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11442       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11443       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11444     esac
11445   else :
11446     # compilation failed
11447     lt_cv_dlopen_self_static=no
11448   fi
11449 fi
11450 rm -fr conftest*
11451
11452
11453 fi
11454 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11455 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11456     fi
11457
11458     CPPFLAGS="$save_CPPFLAGS"
11459     LDFLAGS="$save_LDFLAGS"
11460     LIBS="$save_LIBS"
11461     ;;
11462   esac
11463
11464   case $lt_cv_dlopen_self in
11465   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11466   *) enable_dlopen_self=unknown ;;
11467   esac
11468
11469   case $lt_cv_dlopen_self_static in
11470   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11471   *) enable_dlopen_self_static=unknown ;;
11472   esac
11473 fi
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491 striplib=
11492 old_striplib=
11493 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11494 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11495 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11496   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11497   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11498   { echo "$as_me:$LINENO: result: yes" >&5
11499 echo "${ECHO_T}yes" >&6; }
11500 else
11501 # FIXME - insert some real tests, host_os isn't really good enough
11502   case $host_os in
11503   darwin*)
11504     if test -n "$STRIP" ; then
11505       striplib="$STRIP -x"
11506       old_striplib="$STRIP -S"
11507       { echo "$as_me:$LINENO: result: yes" >&5
11508 echo "${ECHO_T}yes" >&6; }
11509     else
11510       { echo "$as_me:$LINENO: result: no" >&5
11511 echo "${ECHO_T}no" >&6; }
11512     fi
11513     ;;
11514   *)
11515     { echo "$as_me:$LINENO: result: no" >&5
11516 echo "${ECHO_T}no" >&6; }
11517     ;;
11518   esac
11519 fi
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532   # Report which library types will actually be built
11533   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11534 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11535   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11536 echo "${ECHO_T}$can_build_shared" >&6; }
11537
11538   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11539 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11540   test "$can_build_shared" = "no" && enable_shared=no
11541
11542   # On AIX, shared libraries and static libraries use the same namespace, and
11543   # are all built from PIC.
11544   case $host_os in
11545   aix3*)
11546     test "$enable_shared" = yes && enable_static=no
11547     if test -n "$RANLIB"; then
11548       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11549       postinstall_cmds='$RANLIB $lib'
11550     fi
11551     ;;
11552
11553   aix[4-9]*)
11554     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11555       test "$enable_shared" = yes && enable_static=no
11556     fi
11557     ;;
11558   esac
11559   { echo "$as_me:$LINENO: result: $enable_shared" >&5
11560 echo "${ECHO_T}$enable_shared" >&6; }
11561
11562   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11563 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11564   # Make sure either enable_shared or enable_static is yes.
11565   test "$enable_shared" = yes || enable_static=yes
11566   { echo "$as_me:$LINENO: result: $enable_static" >&5
11567 echo "${ECHO_T}$enable_static" >&6; }
11568
11569
11570
11571
11572 fi
11573 ac_ext=c
11574 ac_cpp='$CPP $CPPFLAGS'
11575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11578
11579 CC="$lt_save_CC"
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593         ac_config_commands="$ac_config_commands libtool"
11594
11595
11596
11597
11598 # Only expand once:
11599
11600
11601
11602 target=$save_target
11603
11604 if test "$enable_static" = yes; then
11605         SASL_STATIC_LIBS=libsasl2.a
11606 else
11607         SASL_STATIC_LIBS=
11608 fi
11609
11610 # Check whether --enable-staticdlopen was given.
11611 if test "${enable_staticdlopen+set}" = set; then
11612   enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
11613 else
11614   enable_staticdlopen=no
11615 fi
11616
11617
11618 if test "$enable_staticdlopen" = yes; then
11619
11620 cat >>confdefs.h <<\_ACEOF
11621 #define TRY_DLOPEN_WHEN_STATIC
11622 _ACEOF
11623
11624 fi
11625
11626 if test "$ac_cv_c_compiler_gnu" = yes; then
11627   CFLAGS="-Wall -W ${CFLAGS}"
11628 fi
11629
11630
11631 # Check whether --with-purecov was given.
11632 if test "${with_purecov+set}" = set; then
11633   withval=$with_purecov;
11634 fi
11635
11636 if test "$with_purecov" = yes; then
11637   for ac_prog in purecov
11638 do
11639   # Extract the first word of "$ac_prog", so it can be a program name with args.
11640 set dummy $ac_prog; ac_word=$2
11641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11643 if test "${ac_cv_prog_PURECOV+set}" = set; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646   if test -n "$PURECOV"; then
11647   ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
11648 else
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11651 do
11652   IFS=$as_save_IFS
11653   test -z "$as_dir" && as_dir=.
11654   for ac_exec_ext in '' $ac_executable_extensions; do
11655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11656     ac_cv_prog_PURECOV="$ac_prog"
11657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11658     break 2
11659   fi
11660 done
11661 done
11662 IFS=$as_save_IFS
11663
11664 fi
11665 fi
11666 PURECOV=$ac_cv_prog_PURECOV
11667 if test -n "$PURECOV"; then
11668   { echo "$as_me:$LINENO: result: $PURECOV" >&5
11669 echo "${ECHO_T}$PURECOV" >&6; }
11670 else
11671   { echo "$as_me:$LINENO: result: no" >&5
11672 echo "${ECHO_T}no" >&6; }
11673 fi
11674
11675
11676   test -n "$PURECOV" && break
11677 done
11678
11679 fi
11680
11681 # Check whether --with-purify was given.
11682 if test "${with_purify+set}" = set; then
11683   withval=$with_purify;
11684 fi
11685
11686 if test "$with_purify" = yes; then
11687   for ac_prog in purify
11688 do
11689   # Extract the first word of "$ac_prog", so it can be a program name with args.
11690 set dummy $ac_prog; ac_word=$2
11691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11693 if test "${ac_cv_prog_PURIFY+set}" = set; then
11694   echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696   if test -n "$PURIFY"; then
11697   ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
11698 else
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11701 do
11702   IFS=$as_save_IFS
11703   test -z "$as_dir" && as_dir=.
11704   for ac_exec_ext in '' $ac_executable_extensions; do
11705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11706     ac_cv_prog_PURIFY="$ac_prog"
11707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11708     break 2
11709   fi
11710 done
11711 done
11712 IFS=$as_save_IFS
11713
11714 fi
11715 fi
11716 PURIFY=$ac_cv_prog_PURIFY
11717 if test -n "$PURIFY"; then
11718   { echo "$as_me:$LINENO: result: $PURIFY" >&5
11719 echo "${ECHO_T}$PURIFY" >&6; }
11720 else
11721   { echo "$as_me:$LINENO: result: no" >&5
11722 echo "${ECHO_T}no" >&6; }
11723 fi
11724
11725
11726   test -n "$PURIFY" && break
11727 done
11728
11729 fi
11730
11731 # Check whether --enable-java was given.
11732 if test "${enable_java+set}" = set; then
11733   enableval=$enable_java; enable_java=$enableval
11734 else
11735   enable_java=no
11736 fi
11737
11738 if test "$enable_java" = yes; then
11739   # Extract the first word of "javac", so it can be a program name with args.
11740 set dummy javac; ac_word=$2
11741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11743 if test "${ac_cv_path_JAVAC+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   case $JAVAC in
11747   [\\/]* | ?:[\\/]*)
11748   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
11749   ;;
11750   *)
11751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11753 do
11754   IFS=$as_save_IFS
11755   test -z "$as_dir" && as_dir=.
11756   for ac_exec_ext in '' $ac_executable_extensions; do
11757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
11759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11760     break 2
11761   fi
11762 done
11763 done
11764 IFS=$as_save_IFS
11765
11766   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
11767   ;;
11768 esac
11769 fi
11770 JAVAC=$ac_cv_path_JAVAC
11771 if test -n "$JAVAC"; then
11772   { echo "$as_me:$LINENO: result: $JAVAC" >&5
11773 echo "${ECHO_T}$JAVAC" >&6; }
11774 else
11775   { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11777 fi
11778
11779
11780   for ac_prog in javah kaffeh
11781 do
11782   # Extract the first word of "$ac_prog", so it can be a program name with args.
11783 set dummy $ac_prog; ac_word=$2
11784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11786 if test "${ac_cv_path_JAVAH+set}" = set; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789   case $JAVAH in
11790   [\\/]* | ?:[\\/]*)
11791   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
11792   ;;
11793   *)
11794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11796 do
11797   IFS=$as_save_IFS
11798   test -z "$as_dir" && as_dir=.
11799   for ac_exec_ext in '' $ac_executable_extensions; do
11800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11803     break 2
11804   fi
11805 done
11806 done
11807 IFS=$as_save_IFS
11808
11809   ;;
11810 esac
11811 fi
11812 JAVAH=$ac_cv_path_JAVAH
11813 if test -n "$JAVAH"; then
11814   { echo "$as_me:$LINENO: result: $JAVAH" >&5
11815 echo "${ECHO_T}$JAVAH" >&6; }
11816 else
11817   { echo "$as_me:$LINENO: result: no" >&5
11818 echo "${ECHO_T}no" >&6; }
11819 fi
11820
11821
11822   test -n "$JAVAH" && break
11823 done
11824 test -n "$JAVAH" || JAVAH="no"
11825
11826   for ac_prog in javadoc
11827 do
11828   # Extract the first word of "$ac_prog", so it can be a program name with args.
11829 set dummy $ac_prog; ac_word=$2
11830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11832 if test "${ac_cv_prog_JAVADOC+set}" = set; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   if test -n "$JAVADOC"; then
11836   ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
11837 else
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11840 do
11841   IFS=$as_save_IFS
11842   test -z "$as_dir" && as_dir=.
11843   for ac_exec_ext in '' $ac_executable_extensions; do
11844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11845     ac_cv_prog_JAVADOC="$ac_prog"
11846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11847     break 2
11848   fi
11849 done
11850 done
11851 IFS=$as_save_IFS
11852
11853 fi
11854 fi
11855 JAVADOC=$ac_cv_prog_JAVADOC
11856 if test -n "$JAVADOC"; then
11857   { echo "$as_me:$LINENO: result: $JAVADOC" >&5
11858 echo "${ECHO_T}$JAVADOC" >&6; }
11859 else
11860   { echo "$as_me:$LINENO: result: no" >&5
11861 echo "${ECHO_T}no" >&6; }
11862 fi
11863
11864
11865   test -n "$JAVADOC" && break
11866 done
11867 test -n "$JAVADOC" || JAVADOC=":"
11868
11869   if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
11870     { echo "$as_me:$LINENO: WARNING: Disabling Java support" >&5
11871 echo "$as_me: WARNING: Disabling Java support" >&2;}
11872     enable_java=no
11873   fi
11874 else
11875 # Make distcheck work
11876   JAVAC="true"
11877   JAVAH="true"
11878   JAVADOC="true"
11879 fi
11880  if test "$enable_java" = yes; then
11881   JAVA_TRUE=
11882   JAVA_FALSE='#'
11883 else
11884   JAVA_TRUE='#'
11885   JAVA_FALSE=
11886 fi
11887
11888
11889 if test "$enable_java" = yes; then
11890   { echo "$as_me:$LINENO: checking JNI cpp flags" >&5
11891 echo $ECHO_N "checking JNI cpp flags... $ECHO_C" >&6; }
11892   if test "${sasl_cv_java_includes+set}" = set; then
11893   echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895
11896   if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
11897     sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
11898   else
11899     java_base=`echo $JAVAC | sed 's,/bin.*,'','`
11900
11901
11902 # Check whether --with-javabase was given.
11903 if test "${with_javabase+set}" = set; then
11904   withval=$with_javabase; java_base=$withval
11905 fi
11906
11907
11908
11909     sasl_cv_java_includes=''
11910     for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
11911       sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
11912     done
11913   fi
11914
11915   sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
11916 fi
11917
11918
11919   JAVA_INCLUDES=$sasl_cv_java_includes
11920
11921   { echo "$as_me:$LINENO: result: ok" >&5
11922 echo "${ECHO_T}ok" >&6; }
11923
11924   JAVAROOT=".."
11925
11926   JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
11927   JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
11928 fi
11929
11930  if test "$enable_sample" = yes; then
11931   SAMPLE_TRUE=
11932   SAMPLE_FALSE='#'
11933 else
11934   SAMPLE_TRUE='#'
11935   SAMPLE_FALSE=
11936 fi
11937
11938
11939
11940         save_LIBS="$LIBS"
11941         LIB_SOCKET=""
11942         { echo "$as_me:$LINENO: checking for connect" >&5
11943 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
11944 if test "${ac_cv_func_connect+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11955 #define connect innocuous_connect
11956
11957 /* System header to define __stub macros and hopefully few prototypes,
11958     which can conflict with char connect (); below.
11959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960     <limits.h> exists even on freestanding compilers.  */
11961
11962 #ifdef __STDC__
11963 # include <limits.h>
11964 #else
11965 # include <assert.h>
11966 #endif
11967
11968 #undef connect
11969
11970 /* Override any GCC internal prototype to avoid an error.
11971    Use char because int might match the return type of a GCC
11972    builtin and then its argument prototype would still apply.  */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char connect ();
11977 /* The GNU C library defines this for functions which it implements
11978     to always fail with ENOSYS.  Some functions are actually named
11979     something starting with __ and the normal name is an alias.  */
11980 #if defined __stub_connect || defined __stub___connect
11981 choke me
11982 #endif
11983
11984 int
11985 main ()
11986 {
11987 return connect ();
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
11994 case "(($ac_try" in
11995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996   *) ac_try_echo=$ac_try;;
11997 esac
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999   (eval "$ac_link") 2>conftest.er1
12000   ac_status=$?
12001   grep -v '^ *+' conftest.er1 >conftest.err
12002   rm -f conftest.er1
12003   cat conftest.err >&5
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } && {
12006          test -z "$ac_c_werror_flag" ||
12007          test ! -s conftest.err
12008        } && test -s conftest$ac_exeext &&
12009        $as_test_x conftest$ac_exeext; then
12010   ac_cv_func_connect=yes
12011 else
12012   echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015         ac_cv_func_connect=no
12016 fi
12017
12018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12019       conftest$ac_exeext conftest.$ac_ext
12020 fi
12021 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12022 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
12023 if test $ac_cv_func_connect = yes; then
12024   :
12025 else
12026   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12027 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
12028 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12029   echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031   ac_check_lib_save_LIBS=$LIBS
12032 LIBS="-lnsl  $LIBS"
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h.  */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h.  */
12039
12040 /* Override any GCC internal prototype to avoid an error.
12041    Use char because int might match the return type of a GCC
12042    builtin and then its argument prototype would still apply.  */
12043 #ifdef __cplusplus
12044 extern "C"
12045 #endif
12046 char gethostbyname ();
12047 int
12048 main ()
12049 {
12050 return gethostbyname ();
12051   ;
12052   return 0;
12053 }
12054 _ACEOF
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (ac_try="$ac_link"
12057 case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062   (eval "$ac_link") 2>conftest.er1
12063   ac_status=$?
12064   grep -v '^ *+' conftest.er1 >conftest.err
12065   rm -f conftest.er1
12066   cat conftest.err >&5
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } && {
12069          test -z "$ac_c_werror_flag" ||
12070          test ! -s conftest.err
12071        } && test -s conftest$ac_exeext &&
12072        $as_test_x conftest$ac_exeext; then
12073   ac_cv_lib_nsl_gethostbyname=yes
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078         ac_cv_lib_nsl_gethostbyname=no
12079 fi
12080
12081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12082       conftest$ac_exeext conftest.$ac_ext
12083 LIBS=$ac_check_lib_save_LIBS
12084 fi
12085 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12086 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
12087 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12088   LIB_SOCKET="-lnsl $LIB_SOCKET"
12089 fi
12090
12091                 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12092 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_socket_connect+set}" = set; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096   ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-lsocket  $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106    Use char because int might match the return type of a GCC
12107    builtin and then its argument prototype would still apply.  */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char connect ();
12112 int
12113 main ()
12114 {
12115 return connect ();
12116   ;
12117   return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124   *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127   (eval "$ac_link") 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } && {
12134          test -z "$ac_c_werror_flag" ||
12135          test ! -s conftest.err
12136        } && test -s conftest$ac_exeext &&
12137        $as_test_x conftest$ac_exeext; then
12138   ac_cv_lib_socket_connect=yes
12139 else
12140   echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143         ac_cv_lib_socket_connect=no
12144 fi
12145
12146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12147       conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12149 fi
12150 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12151 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
12152 if test $ac_cv_lib_socket_connect = yes; then
12153   LIB_SOCKET="-lsocket $LIB_SOCKET"
12154 fi
12155
12156
12157 fi
12158
12159         LIBS="$LIB_SOCKET $save_LIBS"
12160         { echo "$as_me:$LINENO: checking for res_search" >&5
12161 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
12162 if test "${ac_cv_func_res_search+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
12172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12173 #define res_search innocuous_res_search
12174
12175 /* System header to define __stub macros and hopefully few prototypes,
12176     which can conflict with char res_search (); below.
12177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178     <limits.h> exists even on freestanding compilers.  */
12179
12180 #ifdef __STDC__
12181 # include <limits.h>
12182 #else
12183 # include <assert.h>
12184 #endif
12185
12186 #undef res_search
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189    Use char because int might match the return type of a GCC
12190    builtin and then its argument prototype would still apply.  */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char res_search ();
12195 /* The GNU C library defines this for functions which it implements
12196     to always fail with ENOSYS.  Some functions are actually named
12197     something starting with __ and the normal name is an alias.  */
12198 #if defined __stub_res_search || defined __stub___res_search
12199 choke me
12200 #endif
12201
12202 int
12203 main ()
12204 {
12205 return res_search ();
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_link") 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } && {
12224          test -z "$ac_c_werror_flag" ||
12225          test ! -s conftest.err
12226        } && test -s conftest$ac_exeext &&
12227        $as_test_x conftest$ac_exeext; then
12228   ac_cv_func_res_search=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233         ac_cv_func_res_search=no
12234 fi
12235
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237       conftest$ac_exeext conftest.$ac_ext
12238 fi
12239 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
12240 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
12241 if test $ac_cv_func_res_search = yes; then
12242   :
12243 else
12244   LIBS="-lresolv $LIB_SOCKET $save_LIBS"
12245                 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h.  */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h.  */
12251
12252 #include <sys/types.h>
12253 #include <netinet/in.h>
12254 #include <arpa/nameser.h>
12255 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
12256 #include <arpa/nameser_compat.h>
12257 #endif
12258 #include <resolv.h>
12259 int
12260 main ()
12261 {
12262
12263 const char host[12]="openafs.org";
12264 u_char ans[1024];
12265 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
12266 return 0;
12267
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276   *) ac_try_echo=$ac_try;;
12277 esac
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279   (eval "$ac_link") 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } && {
12286          test -z "$ac_c_werror_flag" ||
12287          test ! -s conftest.err
12288        } && test -s conftest$ac_exeext &&
12289        $as_test_x conftest$ac_exeext; then
12290   LIB_SOCKET="-lresolv $LIB_SOCKET"
12291 else
12292   echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295
12296 fi
12297
12298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12299       conftest$ac_exeext conftest.$ac_ext
12300
12301 fi
12302
12303         LIBS="$LIB_SOCKET $save_LIBS"
12304
12305
12306 for ac_func in dn_expand dns_lookup
12307 do
12308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12322 #define $ac_func innocuous_$ac_func
12323
12324 /* System header to define __stub macros and hopefully few prototypes,
12325     which can conflict with char $ac_func (); below.
12326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12327     <limits.h> exists even on freestanding compilers.  */
12328
12329 #ifdef __STDC__
12330 # include <limits.h>
12331 #else
12332 # include <assert.h>
12333 #endif
12334
12335 #undef $ac_func
12336
12337 /* Override any GCC internal prototype to avoid an error.
12338    Use char because int might match the return type of a GCC
12339    builtin and then its argument prototype would still apply.  */
12340 #ifdef __cplusplus
12341 extern "C"
12342 #endif
12343 char $ac_func ();
12344 /* The GNU C library defines this for functions which it implements
12345     to always fail with ENOSYS.  Some functions are actually named
12346     something starting with __ and the normal name is an alias.  */
12347 #if defined __stub_$ac_func || defined __stub___$ac_func
12348 choke me
12349 #endif
12350
12351 int
12352 main ()
12353 {
12354 return $ac_func ();
12355   ;
12356   return 0;
12357 }
12358 _ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366   (eval "$ac_link") 2>conftest.er1
12367   ac_status=$?
12368   grep -v '^ *+' conftest.er1 >conftest.err
12369   rm -f conftest.er1
12370   cat conftest.err >&5
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } && {
12373          test -z "$ac_c_werror_flag" ||
12374          test ! -s conftest.err
12375        } && test -s conftest$ac_exeext &&
12376        $as_test_x conftest$ac_exeext; then
12377   eval "$as_ac_var=yes"
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382         eval "$as_ac_var=no"
12383 fi
12384
12385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12386       conftest$ac_exeext conftest.$ac_ext
12387 fi
12388 ac_res=`eval echo '${'$as_ac_var'}'`
12389                { echo "$as_me:$LINENO: result: $ac_res" >&5
12390 echo "${ECHO_T}$ac_res" >&6; }
12391 if test `eval echo '${'$as_ac_var'}'` = yes; then
12392   cat >>confdefs.h <<_ACEOF
12393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12394 _ACEOF
12395
12396 fi
12397 done
12398
12399         LIBS="$save_LIBS"
12400
12401
12402
12403
12404
12405 # Check whether --with-dbpath was given.
12406 if test "${with_dbpath+set}" = set; then
12407   withval=$with_dbpath; dbpath=$withval
12408 else
12409   dbpath=/etc/sasldb2
12410 fi
12411
12412 { echo "$as_me:$LINENO: checking DB path to use" >&5
12413 echo $ECHO_N "checking DB path to use... $ECHO_C" >&6; }
12414 { echo "$as_me:$LINENO: result: $dbpath" >&5
12415 echo "${ECHO_T}$dbpath" >&6; }
12416
12417 cat >>confdefs.h <<_ACEOF
12418 #define SASL_DB_PATH "$dbpath"
12419 _ACEOF
12420
12421
12422 cmu_save_LIBS="$LIBS"
12423
12424 # Check whether --with-dblib was given.
12425 if test "${with_dblib+set}" = set; then
12426   withval=$with_dblib; dblib=$withval
12427 else
12428   dblib=auto_detect
12429 fi
12430
12431
12432
12433
12434 # Check whether --with-bdb-libdir was given.
12435 if test "${with_bdb_libdir+set}" = set; then
12436   withval=$with_bdb_libdir; with_bdb_lib=$withval
12437 else
12438    test "${with_bdb_lib+set}" = set || with_bdb_lib=none
12439 fi
12440
12441
12442 # Check whether --with-bdb-incdir was given.
12443 if test "${with_bdb_incdir+set}" = set; then
12444   withval=$with_bdb_incdir; with_bdb_inc=$withval
12445 else
12446    test "${with_bdb_inc+set}" = set || with_bdb_inc=none
12447 fi
12448
12449
12450
12451 SASL_DB_LIB=""
12452
12453 case "$dblib" in
12454   berkeley)
12455
12456
12457
12458         cmu_save_CPPFLAGS=$CPPFLAGS
12459
12460         if test -d $with_bdb_inc; then
12461             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
12462             BDB_INCADD="-I$with_bdb_inc"
12463         else
12464             BDB_INCADD=""
12465         fi
12466
12467                         if test "${ac_cv_header_db_h+set}" = set; then
12468   { echo "$as_me:$LINENO: checking for db.h" >&5
12469 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
12470 if test "${ac_cv_header_db_h+set}" = set; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 fi
12473 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12474 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
12475 else
12476   # Is the header compilable?
12477 { echo "$as_me:$LINENO: checking db.h usability" >&5
12478 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485 $ac_includes_default
12486 #include <db.h>
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (ac_try="$ac_compile"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_compile") 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } && {
12502          test -z "$ac_c_werror_flag" ||
12503          test ! -s conftest.err
12504        } && test -s conftest.$ac_objext; then
12505   ac_header_compiler=yes
12506 else
12507   echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12509
12510         ac_header_compiler=no
12511 fi
12512
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12515 echo "${ECHO_T}$ac_header_compiler" >&6; }
12516
12517 # Is the header present?
12518 { echo "$as_me:$LINENO: checking db.h presence" >&5
12519 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526 #include <db.h>
12527 _ACEOF
12528 if { (ac_try="$ac_cpp conftest.$ac_ext"
12529 case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12535   ac_status=$?
12536   grep -v '^ *+' conftest.er1 >conftest.err
12537   rm -f conftest.er1
12538   cat conftest.err >&5
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } >/dev/null && {
12541          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12542          test ! -s conftest.err
12543        }; then
12544   ac_header_preproc=yes
12545 else
12546   echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12548
12549   ac_header_preproc=no
12550 fi
12551
12552 rm -f conftest.err conftest.$ac_ext
12553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12554 echo "${ECHO_T}$ac_header_preproc" >&6; }
12555
12556 # So?  What about this header?
12557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12558   yes:no: )
12559     { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
12560 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12561     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
12562 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
12563     ac_header_preproc=yes
12564     ;;
12565   no:yes:* )
12566     { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
12567 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
12568     { echo "$as_me:$LINENO: WARNING: db.h:     check for missing prerequisite headers?" >&5
12569 echo "$as_me: WARNING: db.h:     check for missing prerequisite headers?" >&2;}
12570     { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
12571 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
12572     { echo "$as_me:$LINENO: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&5
12573 echo "$as_me: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12574     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
12575 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
12576     { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
12577 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
12578
12579     ;;
12580 esac
12581 { echo "$as_me:$LINENO: checking for db.h" >&5
12582 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
12583 if test "${ac_cv_header_db_h+set}" = set; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   ac_cv_header_db_h=$ac_header_preproc
12587 fi
12588 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12589 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
12590
12591 fi
12592 if test $ac_cv_header_db_h = yes; then
12593
12594         BDB_SAVE_LDFLAGS=$LDFLAGS
12595
12596         if test -d $with_bdb_lib; then
12597
12598   # this is CMU ADD LIBPATH TO
12599   if test "$andrew_runpath_switch" = "none" ; then
12600         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
12601   else
12602         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
12603   fi
12604
12605
12606   # this is CMU ADD LIBPATH TO
12607   if test "$andrew_runpath_switch" = "none" ; then
12608         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
12609   else
12610         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
12611   fi
12612
12613         else
12614             BDB_LIBADD=""
12615         fi
12616
12617         saved_LIBS=$LIBS
12618         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
12619           do
12620             LIBS="$saved_LIBS -l$dbname"
12621             cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627 #include <db.h>
12628 int
12629 main ()
12630 {
12631 db_create(NULL, NULL, 0);
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext conftest$ac_exeext
12637 if { (ac_try="$ac_link"
12638 case "(($ac_try" in
12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640   *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643   (eval "$ac_link") 2>conftest.er1
12644   ac_status=$?
12645   grep -v '^ *+' conftest.er1 >conftest.err
12646   rm -f conftest.er1
12647   cat conftest.err >&5
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } && {
12650          test -z "$ac_c_werror_flag" ||
12651          test ! -s conftest.err
12652        } && test -s conftest$ac_exeext &&
12653        $as_test_x conftest$ac_exeext; then
12654   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659         dblib="no"
12660 fi
12661
12662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12663       conftest$ac_exeext conftest.$ac_ext
12664             if test "$dblib" = "berkeley"; then break; fi
12665           done
12666         if test "$dblib" = "no"; then
12667             LIBS="$saved_LIBS -ldb"
12668             cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h.  */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h.  */
12674 #include <db.h>
12675 int
12676 main ()
12677 {
12678 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
12679   ;
12680   return 0;
12681 }
12682 _ACEOF
12683 rm -f conftest.$ac_objext conftest$ac_exeext
12684 if { (ac_try="$ac_link"
12685 case "(($ac_try" in
12686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687   *) ac_try_echo=$ac_try;;
12688 esac
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690   (eval "$ac_link") 2>conftest.er1
12691   ac_status=$?
12692   grep -v '^ *+' conftest.er1 >conftest.err
12693   rm -f conftest.er1
12694   cat conftest.err >&5
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } && {
12697          test -z "$ac_c_werror_flag" ||
12698          test ! -s conftest.err
12699        } && test -s conftest$ac_exeext &&
12700        $as_test_x conftest$ac_exeext; then
12701   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706         dblib="no"
12707 fi
12708
12709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12710       conftest$ac_exeext conftest.$ac_ext
12711         fi
12712         LIBS=$saved_LIBS
12713
12714         LDFLAGS=$BDB_SAVE_LDFLAGS
12715
12716 else
12717   dblib="no"
12718 fi
12719
12720
12721
12722         CPPFLAGS=$cmu_save_CPPFLAGS
12723
12724         CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
12725         SASL_DB_INC=$BDB_INCADD
12726         SASL_DB_LIB="${BDB_LIBADD}"
12727         ;;
12728   gdbm)
12729
12730 # Check whether --with-gdbm was given.
12731 if test "${with_gdbm+set}" = set; then
12732   withval=$with_gdbm; with_gdbm="${withval}"
12733 fi
12734
12735
12736         case "$with_gdbm" in
12737            ""|yes)
12738                if test "${ac_cv_header_gdbm_h+set}" = set; then
12739   { echo "$as_me:$LINENO: checking for gdbm.h" >&5
12740 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
12741 if test "${ac_cv_header_gdbm_h+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 fi
12744 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
12746 else
12747   # Is the header compilable?
12748 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
12749 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756 $ac_includes_default
12757 #include <gdbm.h>
12758 _ACEOF
12759 rm -f conftest.$ac_objext
12760 if { (ac_try="$ac_compile"
12761 case "(($ac_try" in
12762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763   *) ac_try_echo=$ac_try;;
12764 esac
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766   (eval "$ac_compile") 2>conftest.er1
12767   ac_status=$?
12768   grep -v '^ *+' conftest.er1 >conftest.err
12769   rm -f conftest.er1
12770   cat conftest.err >&5
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); } && {
12773          test -z "$ac_c_werror_flag" ||
12774          test ! -s conftest.err
12775        } && test -s conftest.$ac_objext; then
12776   ac_header_compiler=yes
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781         ac_header_compiler=no
12782 fi
12783
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6; }
12787
12788 # Is the header present?
12789 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
12790 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
12791 cat >conftest.$ac_ext <<_ACEOF
12792 /* confdefs.h.  */
12793 _ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h.  */
12797 #include <gdbm.h>
12798 _ACEOF
12799 if { (ac_try="$ac_cpp conftest.$ac_ext"
12800 case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } >/dev/null && {
12812          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12813          test ! -s conftest.err
12814        }; then
12815   ac_header_preproc=yes
12816 else
12817   echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12819
12820   ac_header_preproc=no
12821 fi
12822
12823 rm -f conftest.err conftest.$ac_ext
12824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12825 echo "${ECHO_T}$ac_header_preproc" >&6; }
12826
12827 # So?  What about this header?
12828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12829   yes:no: )
12830     { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12831 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12832     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
12833 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
12834     ac_header_preproc=yes
12835     ;;
12836   no:yes:* )
12837     { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
12838 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
12839     { echo "$as_me:$LINENO: WARNING: gdbm.h:     check for missing prerequisite headers?" >&5
12840 echo "$as_me: WARNING: gdbm.h:     check for missing prerequisite headers?" >&2;}
12841     { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
12842 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
12843     { echo "$as_me:$LINENO: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&5
12844 echo "$as_me: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12845     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
12846 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
12847     { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
12848 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
12849
12850     ;;
12851 esac
12852 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
12853 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
12854 if test "${ac_cv_header_gdbm_h+set}" = set; then
12855   echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857   ac_cv_header_gdbm_h=$ac_header_preproc
12858 fi
12859 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12860 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
12861
12862 fi
12863 if test $ac_cv_header_gdbm_h = yes; then
12864
12865                         { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
12866 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
12867 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
12868   echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870   ac_check_lib_save_LIBS=$LIBS
12871 LIBS="-lgdbm  $LIBS"
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878
12879 /* Override any GCC internal prototype to avoid an error.
12880    Use char because int might match the return type of a GCC
12881    builtin and then its argument prototype would still apply.  */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char gdbm_open ();
12886 int
12887 main ()
12888 {
12889 return gdbm_open ();
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (ac_try="$ac_link"
12896 case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901   (eval "$ac_link") 2>conftest.er1
12902   ac_status=$?
12903   grep -v '^ *+' conftest.er1 >conftest.err
12904   rm -f conftest.er1
12905   cat conftest.err >&5
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } && {
12908          test -z "$ac_c_werror_flag" ||
12909          test ! -s conftest.err
12910        } && test -s conftest$ac_exeext &&
12911        $as_test_x conftest$ac_exeext; then
12912   ac_cv_lib_gdbm_gdbm_open=yes
12913 else
12914   echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12916
12917         ac_cv_lib_gdbm_gdbm_open=no
12918 fi
12919
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921       conftest$ac_exeext conftest.$ac_ext
12922 LIBS=$ac_check_lib_save_LIBS
12923 fi
12924 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
12925 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
12926 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
12927   SASL_DB_LIB="-lgdbm"
12928 else
12929   dblib="no"
12930 fi
12931
12932 else
12933   dblib="no"
12934 fi
12935
12936
12937                ;;
12938            *)
12939                if test -d $with_gdbm; then
12940                  CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
12941                  LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
12942                  SASL_DB_LIB="-lgdbm"
12943                else
12944                  with_gdbm="no"
12945                fi
12946        esac
12947         ;;
12948   ndbm)
12949                         if test "${ac_cv_header_ndbm_h+set}" = set; then
12950   { echo "$as_me:$LINENO: checking for ndbm.h" >&5
12951 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
12952 if test "${ac_cv_header_ndbm_h+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 fi
12955 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
12956 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
12957 else
12958   # Is the header compilable?
12959 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
12960 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
12961 cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h.  */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h.  */
12967 $ac_includes_default
12968 #include <ndbm.h>
12969 _ACEOF
12970 rm -f conftest.$ac_objext
12971 if { (ac_try="$ac_compile"
12972 case "(($ac_try" in
12973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974   *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977   (eval "$ac_compile") 2>conftest.er1
12978   ac_status=$?
12979   grep -v '^ *+' conftest.er1 >conftest.err
12980   rm -f conftest.er1
12981   cat conftest.err >&5
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); } && {
12984          test -z "$ac_c_werror_flag" ||
12985          test ! -s conftest.err
12986        } && test -s conftest.$ac_objext; then
12987   ac_header_compiler=yes
12988 else
12989   echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12991
12992         ac_header_compiler=no
12993 fi
12994
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12997 echo "${ECHO_T}$ac_header_compiler" >&6; }
12998
12999 # Is the header present?
13000 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
13001 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
13002 cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h.  */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h.  */
13008 #include <ndbm.h>
13009 _ACEOF
13010 if { (ac_try="$ac_cpp conftest.$ac_ext"
13011 case "(($ac_try" in
13012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013   *) ac_try_echo=$ac_try;;
13014 esac
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13017   ac_status=$?
13018   grep -v '^ *+' conftest.er1 >conftest.err
13019   rm -f conftest.er1
13020   cat conftest.err >&5
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); } >/dev/null && {
13023          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13024          test ! -s conftest.err
13025        }; then
13026   ac_header_preproc=yes
13027 else
13028   echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031   ac_header_preproc=no
13032 fi
13033
13034 rm -f conftest.err conftest.$ac_ext
13035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13036 echo "${ECHO_T}$ac_header_preproc" >&6; }
13037
13038 # So?  What about this header?
13039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13040   yes:no: )
13041     { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13042 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13043     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
13044 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
13045     ac_header_preproc=yes
13046     ;;
13047   no:yes:* )
13048     { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
13049 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
13050     { echo "$as_me:$LINENO: WARNING: ndbm.h:     check for missing prerequisite headers?" >&5
13051 echo "$as_me: WARNING: ndbm.h:     check for missing prerequisite headers?" >&2;}
13052     { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
13053 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
13054     { echo "$as_me:$LINENO: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&5
13055 echo "$as_me: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13056     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
13057 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
13058     { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
13059 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
13060
13061     ;;
13062 esac
13063 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
13064 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
13065 if test "${ac_cv_header_ndbm_h+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   ac_cv_header_ndbm_h=$ac_header_preproc
13069 fi
13070 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13071 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13072
13073 fi
13074 if test $ac_cv_header_ndbm_h = yes; then
13075
13076                         { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
13077 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
13078 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
13079   echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081   ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-lndbm  $LIBS"
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h.  */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h.  */
13089
13090 /* Override any GCC internal prototype to avoid an error.
13091    Use char because int might match the return type of a GCC
13092    builtin and then its argument prototype would still apply.  */
13093 #ifdef __cplusplus
13094 extern "C"
13095 #endif
13096 char dbm_open ();
13097 int
13098 main ()
13099 {
13100 return dbm_open ();
13101   ;
13102   return 0;
13103 }
13104 _ACEOF
13105 rm -f conftest.$ac_objext conftest$ac_exeext
13106 if { (ac_try="$ac_link"
13107 case "(($ac_try" in
13108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109   *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112   (eval "$ac_link") 2>conftest.er1
13113   ac_status=$?
13114   grep -v '^ *+' conftest.er1 >conftest.err
13115   rm -f conftest.er1
13116   cat conftest.err >&5
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } && {
13119          test -z "$ac_c_werror_flag" ||
13120          test ! -s conftest.err
13121        } && test -s conftest$ac_exeext &&
13122        $as_test_x conftest$ac_exeext; then
13123   ac_cv_lib_ndbm_dbm_open=yes
13124 else
13125   echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128         ac_cv_lib_ndbm_dbm_open=no
13129 fi
13130
13131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13132       conftest$ac_exeext conftest.$ac_ext
13133 LIBS=$ac_check_lib_save_LIBS
13134 fi
13135 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
13136 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
13137 if test $ac_cv_lib_ndbm_dbm_open = yes; then
13138   SASL_DB_LIB="-lndbm"
13139 else
13140
13141                                 { echo "$as_me:$LINENO: checking for dbm_open" >&5
13142 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
13143 if test "${ac_cv_func_dbm_open+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h.  */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h.  */
13152 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
13153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13154 #define dbm_open innocuous_dbm_open
13155
13156 /* System header to define __stub macros and hopefully few prototypes,
13157     which can conflict with char dbm_open (); below.
13158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13159     <limits.h> exists even on freestanding compilers.  */
13160
13161 #ifdef __STDC__
13162 # include <limits.h>
13163 #else
13164 # include <assert.h>
13165 #endif
13166
13167 #undef dbm_open
13168
13169 /* Override any GCC internal prototype to avoid an error.
13170    Use char because int might match the return type of a GCC
13171    builtin and then its argument prototype would still apply.  */
13172 #ifdef __cplusplus
13173 extern "C"
13174 #endif
13175 char dbm_open ();
13176 /* The GNU C library defines this for functions which it implements
13177     to always fail with ENOSYS.  Some functions are actually named
13178     something starting with __ and the normal name is an alias.  */
13179 #if defined __stub_dbm_open || defined __stub___dbm_open
13180 choke me
13181 #endif
13182
13183 int
13184 main ()
13185 {
13186 return dbm_open ();
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 rm -f conftest.$ac_objext conftest$ac_exeext
13192 if { (ac_try="$ac_link"
13193 case "(($ac_try" in
13194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195   *) ac_try_echo=$ac_try;;
13196 esac
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198   (eval "$ac_link") 2>conftest.er1
13199   ac_status=$?
13200   grep -v '^ *+' conftest.er1 >conftest.err
13201   rm -f conftest.er1
13202   cat conftest.err >&5
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); } && {
13205          test -z "$ac_c_werror_flag" ||
13206          test ! -s conftest.err
13207        } && test -s conftest$ac_exeext &&
13208        $as_test_x conftest$ac_exeext; then
13209   ac_cv_func_dbm_open=yes
13210 else
13211   echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214         ac_cv_func_dbm_open=no
13215 fi
13216
13217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13218       conftest$ac_exeext conftest.$ac_ext
13219 fi
13220 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
13221 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
13222 if test $ac_cv_func_dbm_open = yes; then
13223   :
13224 else
13225   dblib="no"
13226 fi
13227
13228 fi
13229
13230 else
13231   dblib="no"
13232 fi
13233
13234
13235         ;;
13236   auto_detect)
13237
13238
13239
13240         cmu_save_CPPFLAGS=$CPPFLAGS
13241
13242         if test -d $with_bdb_inc; then
13243             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
13244             BDB_INCADD="-I$with_bdb_inc"
13245         else
13246             BDB_INCADD=""
13247         fi
13248
13249                         if test "${ac_cv_header_db_h+set}" = set; then
13250   { echo "$as_me:$LINENO: checking for db.h" >&5
13251 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13252 if test "${ac_cv_header_db_h+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 fi
13255 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13256 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
13257 else
13258   # Is the header compilable?
13259 { echo "$as_me:$LINENO: checking db.h usability" >&5
13260 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
13261 cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h.  */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h.  */
13267 $ac_includes_default
13268 #include <db.h>
13269 _ACEOF
13270 rm -f conftest.$ac_objext
13271 if { (ac_try="$ac_compile"
13272 case "(($ac_try" in
13273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274   *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277   (eval "$ac_compile") 2>conftest.er1
13278   ac_status=$?
13279   grep -v '^ *+' conftest.er1 >conftest.err
13280   rm -f conftest.er1
13281   cat conftest.err >&5
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); } && {
13284          test -z "$ac_c_werror_flag" ||
13285          test ! -s conftest.err
13286        } && test -s conftest.$ac_objext; then
13287   ac_header_compiler=yes
13288 else
13289   echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292         ac_header_compiler=no
13293 fi
13294
13295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13297 echo "${ECHO_T}$ac_header_compiler" >&6; }
13298
13299 # Is the header present?
13300 { echo "$as_me:$LINENO: checking db.h presence" >&5
13301 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
13302 cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h.  */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h.  */
13308 #include <db.h>
13309 _ACEOF
13310 if { (ac_try="$ac_cpp conftest.$ac_ext"
13311 case "(($ac_try" in
13312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313   *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13317   ac_status=$?
13318   grep -v '^ *+' conftest.er1 >conftest.err
13319   rm -f conftest.er1
13320   cat conftest.err >&5
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); } >/dev/null && {
13323          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13324          test ! -s conftest.err
13325        }; then
13326   ac_header_preproc=yes
13327 else
13328   echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13330
13331   ac_header_preproc=no
13332 fi
13333
13334 rm -f conftest.err conftest.$ac_ext
13335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13336 echo "${ECHO_T}$ac_header_preproc" >&6; }
13337
13338 # So?  What about this header?
13339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13340   yes:no: )
13341     { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
13342 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13343     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
13344 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
13345     ac_header_preproc=yes
13346     ;;
13347   no:yes:* )
13348     { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
13349 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
13350     { echo "$as_me:$LINENO: WARNING: db.h:     check for missing prerequisite headers?" >&5
13351 echo "$as_me: WARNING: db.h:     check for missing prerequisite headers?" >&2;}
13352     { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
13353 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
13354     { echo "$as_me:$LINENO: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&5
13355 echo "$as_me: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13356     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
13357 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
13358     { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
13359 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
13360
13361     ;;
13362 esac
13363 { echo "$as_me:$LINENO: checking for db.h" >&5
13364 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13365 if test "${ac_cv_header_db_h+set}" = set; then
13366   echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368   ac_cv_header_db_h=$ac_header_preproc
13369 fi
13370 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13371 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
13372
13373 fi
13374 if test $ac_cv_header_db_h = yes; then
13375
13376         BDB_SAVE_LDFLAGS=$LDFLAGS
13377
13378         if test -d $with_bdb_lib; then
13379
13380   # this is CMU ADD LIBPATH TO
13381   if test "$andrew_runpath_switch" = "none" ; then
13382         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
13383   else
13384         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
13385   fi
13386
13387
13388   # this is CMU ADD LIBPATH TO
13389   if test "$andrew_runpath_switch" = "none" ; then
13390         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
13391   else
13392         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
13393   fi
13394
13395         else
13396             BDB_LIBADD=""
13397         fi
13398
13399         saved_LIBS=$LIBS
13400         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
13401           do
13402             LIBS="$saved_LIBS -l$dbname"
13403             cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h.  */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h.  */
13409 #include <db.h>
13410 int
13411 main ()
13412 {
13413 db_create(NULL, NULL, 0);
13414   ;
13415   return 0;
13416 }
13417 _ACEOF
13418 rm -f conftest.$ac_objext conftest$ac_exeext
13419 if { (ac_try="$ac_link"
13420 case "(($ac_try" in
13421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422   *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425   (eval "$ac_link") 2>conftest.er1
13426   ac_status=$?
13427   grep -v '^ *+' conftest.er1 >conftest.err
13428   rm -f conftest.er1
13429   cat conftest.err >&5
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } && {
13432          test -z "$ac_c_werror_flag" ||
13433          test ! -s conftest.err
13434        } && test -s conftest$ac_exeext &&
13435        $as_test_x conftest$ac_exeext; then
13436   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441         dblib="no"
13442 fi
13443
13444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13445       conftest$ac_exeext conftest.$ac_ext
13446             if test "$dblib" = "berkeley"; then break; fi
13447           done
13448         if test "$dblib" = "no"; then
13449             LIBS="$saved_LIBS -ldb"
13450             cat >conftest.$ac_ext <<_ACEOF
13451 /* confdefs.h.  */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h.  */
13456 #include <db.h>
13457 int
13458 main ()
13459 {
13460 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
13461   ;
13462   return 0;
13463 }
13464 _ACEOF
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (ac_try="$ac_link"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_link") 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } && {
13479          test -z "$ac_c_werror_flag" ||
13480          test ! -s conftest.err
13481        } && test -s conftest$ac_exeext &&
13482        $as_test_x conftest$ac_exeext; then
13483   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
13484 else
13485   echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488         dblib="no"
13489 fi
13490
13491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13492       conftest$ac_exeext conftest.$ac_ext
13493         fi
13494         LIBS=$saved_LIBS
13495
13496         LDFLAGS=$BDB_SAVE_LDFLAGS
13497
13498 else
13499   dblib="no"
13500 fi
13501
13502
13503
13504         CPPFLAGS=$cmu_save_CPPFLAGS
13505
13506         if test "$dblib" = no; then
13507                   if test "${ac_cv_header_ndbm_h+set}" = set; then
13508   { echo "$as_me:$LINENO: checking for ndbm.h" >&5
13509 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
13510 if test "${ac_cv_header_ndbm_h+set}" = set; then
13511   echo $ECHO_N "(cached) $ECHO_C" >&6
13512 fi
13513 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13514 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13515 else
13516   # Is the header compilable?
13517 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
13518 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
13519 cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h.  */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h.  */
13525 $ac_includes_default
13526 #include <ndbm.h>
13527 _ACEOF
13528 rm -f conftest.$ac_objext
13529 if { (ac_try="$ac_compile"
13530 case "(($ac_try" in
13531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532   *) ac_try_echo=$ac_try;;
13533 esac
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535   (eval "$ac_compile") 2>conftest.er1
13536   ac_status=$?
13537   grep -v '^ *+' conftest.er1 >conftest.err
13538   rm -f conftest.er1
13539   cat conftest.err >&5
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); } && {
13542          test -z "$ac_c_werror_flag" ||
13543          test ! -s conftest.err
13544        } && test -s conftest.$ac_objext; then
13545   ac_header_compiler=yes
13546 else
13547   echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550         ac_header_compiler=no
13551 fi
13552
13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13555 echo "${ECHO_T}$ac_header_compiler" >&6; }
13556
13557 # Is the header present?
13558 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
13559 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h.  */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h.  */
13566 #include <ndbm.h>
13567 _ACEOF
13568 if { (ac_try="$ac_cpp conftest.$ac_ext"
13569 case "(($ac_try" in
13570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571   *) ac_try_echo=$ac_try;;
13572 esac
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13575   ac_status=$?
13576   grep -v '^ *+' conftest.er1 >conftest.err
13577   rm -f conftest.er1
13578   cat conftest.err >&5
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } >/dev/null && {
13581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13582          test ! -s conftest.err
13583        }; then
13584   ac_header_preproc=yes
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589   ac_header_preproc=no
13590 fi
13591
13592 rm -f conftest.err conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13594 echo "${ECHO_T}$ac_header_preproc" >&6; }
13595
13596 # So?  What about this header?
13597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13598   yes:no: )
13599     { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13600 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13601     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
13602 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
13603     ac_header_preproc=yes
13604     ;;
13605   no:yes:* )
13606     { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
13607 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
13608     { echo "$as_me:$LINENO: WARNING: ndbm.h:     check for missing prerequisite headers?" >&5
13609 echo "$as_me: WARNING: ndbm.h:     check for missing prerequisite headers?" >&2;}
13610     { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
13611 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
13612     { echo "$as_me:$LINENO: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&5
13613 echo "$as_me: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13614     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
13615 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
13616     { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
13617 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
13618
13619     ;;
13620 esac
13621 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
13622 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
13623 if test "${ac_cv_header_ndbm_h+set}" = set; then
13624   echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626   ac_cv_header_ndbm_h=$ac_header_preproc
13627 fi
13628 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13629 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13630
13631 fi
13632 if test $ac_cv_header_ndbm_h = yes; then
13633
13634                 { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
13635 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
13636 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
13637   echo $ECHO_N "(cached) $ECHO_C" >&6
13638 else
13639   ac_check_lib_save_LIBS=$LIBS
13640 LIBS="-lndbm  $LIBS"
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h.  */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h.  */
13647
13648 /* Override any GCC internal prototype to avoid an error.
13649    Use char because int might match the return type of a GCC
13650    builtin and then its argument prototype would still apply.  */
13651 #ifdef __cplusplus
13652 extern "C"
13653 #endif
13654 char dbm_open ();
13655 int
13656 main ()
13657 {
13658 return dbm_open ();
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (ac_try="$ac_link"
13665 case "(($ac_try" in
13666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667   *) ac_try_echo=$ac_try;;
13668 esac
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670   (eval "$ac_link") 2>conftest.er1
13671   ac_status=$?
13672   grep -v '^ *+' conftest.er1 >conftest.err
13673   rm -f conftest.er1
13674   cat conftest.err >&5
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); } && {
13677          test -z "$ac_c_werror_flag" ||
13678          test ! -s conftest.err
13679        } && test -s conftest$ac_exeext &&
13680        $as_test_x conftest$ac_exeext; then
13681   ac_cv_lib_ndbm_dbm_open=yes
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686         ac_cv_lib_ndbm_dbm_open=no
13687 fi
13688
13689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13690       conftest$ac_exeext conftest.$ac_ext
13691 LIBS=$ac_check_lib_save_LIBS
13692 fi
13693 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
13694 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
13695 if test $ac_cv_lib_ndbm_dbm_open = yes; then
13696   dblib="ndbm"; SASL_DB_LIB="-lndbm"
13697 else
13698   dblib="weird"
13699 fi
13700
13701 else
13702   dblib="no"
13703 fi
13704
13705
13706           if test "$dblib" = "weird"; then
13707                         { echo "$as_me:$LINENO: checking for dbm_open" >&5
13708 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
13709 if test "${ac_cv_func_dbm_open+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
13719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13720 #define dbm_open innocuous_dbm_open
13721
13722 /* System header to define __stub macros and hopefully few prototypes,
13723     which can conflict with char dbm_open (); below.
13724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13725     <limits.h> exists even on freestanding compilers.  */
13726
13727 #ifdef __STDC__
13728 # include <limits.h>
13729 #else
13730 # include <assert.h>
13731 #endif
13732
13733 #undef dbm_open
13734
13735 /* Override any GCC internal prototype to avoid an error.
13736    Use char because int might match the return type of a GCC
13737    builtin and then its argument prototype would still apply.  */
13738 #ifdef __cplusplus
13739 extern "C"
13740 #endif
13741 char dbm_open ();
13742 /* The GNU C library defines this for functions which it implements
13743     to always fail with ENOSYS.  Some functions are actually named
13744     something starting with __ and the normal name is an alias.  */
13745 #if defined __stub_dbm_open || defined __stub___dbm_open
13746 choke me
13747 #endif
13748
13749 int
13750 main ()
13751 {
13752 return dbm_open ();
13753   ;
13754   return 0;
13755 }
13756 _ACEOF
13757 rm -f conftest.$ac_objext conftest$ac_exeext
13758 if { (ac_try="$ac_link"
13759 case "(($ac_try" in
13760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761   *) ac_try_echo=$ac_try;;
13762 esac
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764   (eval "$ac_link") 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } && {
13771          test -z "$ac_c_werror_flag" ||
13772          test ! -s conftest.err
13773        } && test -s conftest$ac_exeext &&
13774        $as_test_x conftest$ac_exeext; then
13775   ac_cv_func_dbm_open=yes
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780         ac_cv_func_dbm_open=no
13781 fi
13782
13783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13784       conftest$ac_exeext conftest.$ac_ext
13785 fi
13786 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
13787 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
13788 if test $ac_cv_func_dbm_open = yes; then
13789   dblib="ndbm"
13790 else
13791   dblib="no"
13792 fi
13793
13794           fi
13795
13796           if test "$dblib" = no; then
13797                     if test "${ac_cv_header_gdbm_h+set}" = set; then
13798   { echo "$as_me:$LINENO: checking for gdbm.h" >&5
13799 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
13800 if test "${ac_cv_header_gdbm_h+set}" = set; then
13801   echo $ECHO_N "(cached) $ECHO_C" >&6
13802 fi
13803 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13804 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
13805 else
13806   # Is the header compilable?
13807 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
13808 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815 $ac_includes_default
13816 #include <gdbm.h>
13817 _ACEOF
13818 rm -f conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822   *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825   (eval "$ac_compile") 2>conftest.er1
13826   ac_status=$?
13827   grep -v '^ *+' conftest.er1 >conftest.err
13828   rm -f conftest.er1
13829   cat conftest.err >&5
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } && {
13832          test -z "$ac_c_werror_flag" ||
13833          test ! -s conftest.err
13834        } && test -s conftest.$ac_objext; then
13835   ac_header_compiler=yes
13836 else
13837   echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840         ac_header_compiler=no
13841 fi
13842
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13845 echo "${ECHO_T}$ac_header_compiler" >&6; }
13846
13847 # Is the header present?
13848 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
13849 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
13850 cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856 #include <gdbm.h>
13857 _ACEOF
13858 if { (ac_try="$ac_cpp conftest.$ac_ext"
13859 case "(($ac_try" in
13860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861   *) ac_try_echo=$ac_try;;
13862 esac
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13865   ac_status=$?
13866   grep -v '^ *+' conftest.er1 >conftest.err
13867   rm -f conftest.er1
13868   cat conftest.err >&5
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); } >/dev/null && {
13871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13872          test ! -s conftest.err
13873        }; then
13874   ac_header_preproc=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879   ac_header_preproc=no
13880 fi
13881
13882 rm -f conftest.err conftest.$ac_ext
13883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 echo "${ECHO_T}$ac_header_preproc" >&6; }
13885
13886 # So?  What about this header?
13887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13888   yes:no: )
13889     { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13890 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
13892 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
13893     ac_header_preproc=yes
13894     ;;
13895   no:yes:* )
13896     { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
13897 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
13898     { echo "$as_me:$LINENO: WARNING: gdbm.h:     check for missing prerequisite headers?" >&5
13899 echo "$as_me: WARNING: gdbm.h:     check for missing prerequisite headers?" >&2;}
13900     { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
13901 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
13902     { echo "$as_me:$LINENO: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&5
13903 echo "$as_me: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13904     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
13905 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
13906     { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
13907 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
13908
13909     ;;
13910 esac
13911 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
13912 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
13913 if test "${ac_cv_header_gdbm_h+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   ac_cv_header_gdbm_h=$ac_header_preproc
13917 fi
13918 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13919 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
13920
13921 fi
13922 if test $ac_cv_header_gdbm_h = yes; then
13923
13924                 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
13925 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
13926 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   ac_check_lib_save_LIBS=$LIBS
13930 LIBS="-lgdbm  $LIBS"
13931 cat >conftest.$ac_ext <<_ACEOF
13932 /* confdefs.h.  */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h.  */
13937
13938 /* Override any GCC internal prototype to avoid an error.
13939    Use char because int might match the return type of a GCC
13940    builtin and then its argument prototype would still apply.  */
13941 #ifdef __cplusplus
13942 extern "C"
13943 #endif
13944 char gdbm_open ();
13945 int
13946 main ()
13947 {
13948 return gdbm_open ();
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (ac_try="$ac_link"
13955 case "(($ac_try" in
13956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957   *) ac_try_echo=$ac_try;;
13958 esac
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960   (eval "$ac_link") 2>conftest.er1
13961   ac_status=$?
13962   grep -v '^ *+' conftest.er1 >conftest.err
13963   rm -f conftest.er1
13964   cat conftest.err >&5
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); } && {
13967          test -z "$ac_c_werror_flag" ||
13968          test ! -s conftest.err
13969        } && test -s conftest$ac_exeext &&
13970        $as_test_x conftest$ac_exeext; then
13971   ac_cv_lib_gdbm_gdbm_open=yes
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976         ac_cv_lib_gdbm_gdbm_open=no
13977 fi
13978
13979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13980       conftest$ac_exeext conftest.$ac_ext
13981 LIBS=$ac_check_lib_save_LIBS
13982 fi
13983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
13984 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
13985 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
13986   dblib="gdbm";
13987                                              SASL_DB_LIB="-lgdbm"
13988 else
13989   dblib="no"
13990 fi
13991
13992 else
13993   dblib="no"
13994 fi
13995
13996
13997           fi
13998         else
13999                   CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
14000           SASL_DB_INC=$BDB_INCADD
14001           SASL_DB_LIB="${BDB_LIBADD}"
14002         fi
14003         ;;
14004   none)
14005         ;;
14006   no)
14007         ;;
14008   *)
14009         { echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5
14010 echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
14011         { { echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5
14012 echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;}
14013    { (exit 1); exit 1; }; }
14014         dblib=no
14015         ;;
14016 esac
14017 LIBS="$cmu_save_LIBS"
14018
14019 { echo "$as_me:$LINENO: checking DB library to use" >&5
14020 echo $ECHO_N "checking DB library to use... $ECHO_C" >&6; }
14021 { echo "$as_me:$LINENO: result: $dblib" >&5
14022 echo "${ECHO_T}$dblib" >&6; }
14023
14024 SASL_DB_BACKEND="db_${dblib}.lo"
14025 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
14026 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
14027 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
14028 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
14029
14030 case "$dblib" in
14031   gdbm)
14032     SASL_MECHS="$SASL_MECHS libsasldb.la"
14033
14034 cat >>confdefs.h <<\_ACEOF
14035 #define SASL_GDBM
14036 _ACEOF
14037
14038     ;;
14039   ndbm)
14040     SASL_MECHS="$SASL_MECHS libsasldb.la"
14041
14042 cat >>confdefs.h <<\_ACEOF
14043 #define SASL_NDBM
14044 _ACEOF
14045
14046     ;;
14047   berkeley)
14048     SASL_MECHS="$SASL_MECHS libsasldb.la"
14049
14050 cat >>confdefs.h <<\_ACEOF
14051 #define SASL_BERKELEYDB
14052 _ACEOF
14053
14054     ;;
14055   *)
14056     { echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5
14057 echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
14058             SASL_DB_BACKEND="db_none.lo"
14059     SASL_DB_BACKEND_STATIC="db_none.o"
14060     SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
14061     SASL_DB_UTILS=""
14062     SASL_DB_MANS=""
14063     SASL_DB_LIB=""
14064     ;;
14065 esac
14066
14067 if test "$enable_static" = yes; then
14068     if test "$dblib" != "none"; then
14069       SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
14070       SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
14071
14072 cat >>confdefs.h <<\_ACEOF
14073 #define STATIC_SASLDB
14074 _ACEOF
14075
14076     else
14077       SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
14078       SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
14079     fi
14080 fi
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090 # Do we not install the SASL DB man pages?
14091  if test "x$SASL_DB_MANS" = "x"; then
14092   NO_SASL_DB_MANS_TRUE=
14093   NO_SASL_DB_MANS_FALSE='#'
14094 else
14095   NO_SASL_DB_MANS_TRUE='#'
14096   NO_SASL_DB_MANS_FALSE=
14097 fi
14098
14099
14100 # Check whether --enable-keep_db_open was given.
14101 if test "${enable_keep_db_open+set}" = set; then
14102   enableval=$enable_keep_db_open; keep_db_open=$enableval
14103 else
14104   keep_db_open=no
14105 fi
14106
14107
14108 # Disable if Berkeley DB is not used
14109 if test "$dblib" != berkeley; then
14110   keep_db_open=no
14111 fi
14112
14113 if test "$keep_db_open" = yes; then
14114
14115 cat >>confdefs.h <<\_ACEOF
14116 #define KEEP_DB_OPEN
14117 _ACEOF
14118
14119 fi
14120 { echo "$as_me:$LINENO: checking if Berkeley DB handle is kept open in SASLDB" >&5
14121 echo $ECHO_N "checking if Berkeley DB handle is kept open in SASLDB... $ECHO_C" >&6; }
14122 { echo "$as_me:$LINENO: result: $keep_db_open" >&5
14123 echo "${ECHO_T}$keep_db_open" >&6; }
14124
14125 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14126 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14127 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14128   echo $ECHO_N "(cached) $ECHO_C" >&6
14129 else
14130   ac_check_lib_save_LIBS=$LIBS
14131 LIBS="-ldl  $LIBS"
14132 cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h.  */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h.  */
14138
14139 /* Override any GCC internal prototype to avoid an error.
14140    Use char because int might match the return type of a GCC
14141    builtin and then its argument prototype would still apply.  */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 char dlopen ();
14146 int
14147 main ()
14148 {
14149 return dlopen ();
14150   ;
14151   return 0;
14152 }
14153 _ACEOF
14154 rm -f conftest.$ac_objext conftest$ac_exeext
14155 if { (ac_try="$ac_link"
14156 case "(($ac_try" in
14157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158   *) ac_try_echo=$ac_try;;
14159 esac
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161   (eval "$ac_link") 2>conftest.er1
14162   ac_status=$?
14163   grep -v '^ *+' conftest.er1 >conftest.err
14164   rm -f conftest.er1
14165   cat conftest.err >&5
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); } && {
14168          test -z "$ac_c_werror_flag" ||
14169          test ! -s conftest.err
14170        } && test -s conftest$ac_exeext &&
14171        $as_test_x conftest$ac_exeext; then
14172   ac_cv_lib_dl_dlopen=yes
14173 else
14174   echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177         ac_cv_lib_dl_dlopen=no
14178 fi
14179
14180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14181       conftest$ac_exeext conftest.$ac_ext
14182 LIBS=$ac_check_lib_save_LIBS
14183 fi
14184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14185 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14186 if test $ac_cv_lib_dl_dlopen = yes; then
14187   SASL_DL_LIB="-ldl"
14188 else
14189   SASL_DL_LIB=""
14190 fi
14191
14192
14193
14194
14195
14196 # Check whether --with-devrandom was given.
14197 if test "${with_devrandom+set}" = set; then
14198   withval=$with_devrandom; devrandom=$withval
14199 else
14200   devrandom=/dev/random
14201 fi
14202
14203 { echo "$as_me:$LINENO: checking /dev/random to use" >&5
14204 echo $ECHO_N "checking /dev/random to use... $ECHO_C" >&6; }
14205 { echo "$as_me:$LINENO: result: $devrandom" >&5
14206 echo "${ECHO_T}$devrandom" >&6; }
14207
14208 cat >>confdefs.h <<_ACEOF
14209 #define SASL_DEV_RANDOM "$devrandom"
14210 _ACEOF
14211
14212
14213
14214 for ac_prog in nm
14215 do
14216   # Extract the first word of "$ac_prog", so it can be a program name with args.
14217 set dummy $ac_prog; ac_word=$2
14218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14220 if test "${ac_cv_prog_NM+set}" = set; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   if test -n "$NM"; then
14224   ac_cv_prog_NM="$NM" # Let the user override the test.
14225 else
14226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14227 for as_dir in $PATH
14228 do
14229   IFS=$as_save_IFS
14230   test -z "$as_dir" && as_dir=.
14231   for ac_exec_ext in '' $ac_executable_extensions; do
14232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14233     ac_cv_prog_NM="$ac_prog"
14234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14235     break 2
14236   fi
14237 done
14238 done
14239 IFS=$as_save_IFS
14240
14241 fi
14242 fi
14243 NM=$ac_cv_prog_NM
14244 if test -n "$NM"; then
14245   { echo "$as_me:$LINENO: result: $NM" >&5
14246 echo "${ECHO_T}$NM" >&6; }
14247 else
14248   { echo "$as_me:$LINENO: result: no" >&5
14249 echo "${ECHO_T}no" >&6; }
14250 fi
14251
14252
14253   test -n "$NM" && break
14254 done
14255
14256
14257 { echo "$as_me:$LINENO: checking for underscore before symbols" >&5
14258 echo $ECHO_N "checking for underscore before symbols... $ECHO_C" >&6; }
14259 if test "${sasl_cv_uscore+set}" = set; then
14260   echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262
14263     echo "main(){int i=1;}
14264     foo(){int i=6;}" > conftest.c
14265     ${CC} -o a.out conftest.c > /dev/null
14266     if (${NM} a.out | grep _foo) > /dev/null; then
14267       sasl_cv_uscore=yes
14268     else
14269       sasl_cv_uscore=no
14270     fi
14271 fi
14272
14273 { echo "$as_me:$LINENO: result: $sasl_cv_uscore" >&5
14274 echo "${ECHO_T}$sasl_cv_uscore" >&6; }
14275 rm -f conftest.c a.out
14276
14277 if test $sasl_cv_uscore = yes; then
14278   if test $ac_cv_lib_dl_dlopen = yes ; then
14279         { echo "$as_me:$LINENO: checking whether dlsym adds the underscore for us" >&5
14280 echo $ECHO_N "checking whether dlsym adds the underscore for us... $ECHO_C" >&6; }
14281         cmu_save_LIBS="$LIBS"
14282         LIBS="$LIBS $SASL_DL_LIB"
14283         if test "${sasl_cv_dlsym_adds_uscore+set}" = set; then
14284   echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286   if test "$cross_compiling" = yes; then
14287   { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
14288 echo "$as_me: WARNING: cross-compiler" >&2;}
14289 else
14290   cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296
14297 #include <dlfcn.h>
14298 #include <stdio.h>
14299 foo() { int i=0;}
14300 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
14301     if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
14302     if(ptr1 && !ptr2) exit(0); } exit(1); }
14303
14304 _ACEOF
14305 rm -f conftest$ac_exeext
14306 if { (ac_try="$ac_link"
14307 case "(($ac_try" in
14308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309   *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312   (eval "$ac_link") 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14316   { (case "(($ac_try" in
14317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318   *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321   (eval "$ac_try") 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; }; then
14325   sasl_cv_dlsym_adds_uscore=yes
14326 else
14327   echo "$as_me: program exited with status $ac_status" >&5
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 ( exit $ac_status )
14332 sasl_cv_dlsym_adds_uscore=no
14333
14334 cat >>confdefs.h <<\_ACEOF
14335 #define DLSYM_NEEDS_UNDERSCORE
14336 _ACEOF
14337
14338 fi
14339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14340 fi
14341
14342
14343 fi
14344
14345         LIBS="$cmu_save_LIBS"
14346       { echo "$as_me:$LINENO: result: $sasl_cv_dlsym_adds_uscore" >&5
14347 echo "${ECHO_T}$sasl_cv_dlsym_adds_uscore" >&6; }
14348   fi
14349 fi
14350
14351
14352 for ac_func in syslog
14353 do
14354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14368 #define $ac_func innocuous_$ac_func
14369
14370 /* System header to define __stub macros and hopefully few prototypes,
14371     which can conflict with char $ac_func (); below.
14372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14373     <limits.h> exists even on freestanding compilers.  */
14374
14375 #ifdef __STDC__
14376 # include <limits.h>
14377 #else
14378 # include <assert.h>
14379 #endif
14380
14381 #undef $ac_func
14382
14383 /* Override any GCC internal prototype to avoid an error.
14384    Use char because int might match the return type of a GCC
14385    builtin and then its argument prototype would still apply.  */
14386 #ifdef __cplusplus
14387 extern "C"
14388 #endif
14389 char $ac_func ();
14390 /* The GNU C library defines this for functions which it implements
14391     to always fail with ENOSYS.  Some functions are actually named
14392     something starting with __ and the normal name is an alias.  */
14393 #if defined __stub_$ac_func || defined __stub___$ac_func
14394 choke me
14395 #endif
14396
14397 int
14398 main ()
14399 {
14400 return $ac_func ();
14401   ;
14402   return 0;
14403 }
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409   *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412   (eval "$ac_link") 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } && {
14419          test -z "$ac_c_werror_flag" ||
14420          test ! -s conftest.err
14421        } && test -s conftest$ac_exeext &&
14422        $as_test_x conftest$ac_exeext; then
14423   eval "$as_ac_var=yes"
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428         eval "$as_ac_var=no"
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432       conftest$ac_exeext conftest.$ac_ext
14433 fi
14434 ac_res=`eval echo '${'$as_ac_var'}'`
14435                { echo "$as_me:$LINENO: result: $ac_res" >&5
14436 echo "${ECHO_T}$ac_res" >&6; }
14437 if test `eval echo '${'$as_ac_var'}'` = yes; then
14438   cat >>confdefs.h <<_ACEOF
14439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14440 _ACEOF
14441
14442 fi
14443 done
14444
14445
14446
14447 # Check whether --with-pam was given.
14448 if test "${with_pam+set}" = set; then
14449   withval=$with_pam; with_pam=$withval
14450 else
14451   with_pam=yes
14452 fi
14453
14454 if test "$with_pam" != no; then
14455   if test -d $with_pam; then
14456     CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
14457     LDFLAGS="$LDFLAGS -L${with_pam}/lib"
14458   fi
14459
14460
14461 for ac_header in security/pam_appl.h pam/pam_appl.h
14462 do
14463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14465   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14468   echo $ECHO_N "(cached) $ECHO_C" >&6
14469 fi
14470 ac_res=`eval echo '${'$as_ac_Header'}'`
14471                { echo "$as_me:$LINENO: result: $ac_res" >&5
14472 echo "${ECHO_T}$ac_res" >&6; }
14473 else
14474   # Is the header compilable?
14475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14477 cat >conftest.$ac_ext <<_ACEOF
14478 /* confdefs.h.  */
14479 _ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h.  */
14483 $ac_includes_default
14484 #include <$ac_header>
14485 _ACEOF
14486 rm -f conftest.$ac_objext
14487 if { (ac_try="$ac_compile"
14488 case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493   (eval "$ac_compile") 2>conftest.er1
14494   ac_status=$?
14495   grep -v '^ *+' conftest.er1 >conftest.err
14496   rm -f conftest.er1
14497   cat conftest.err >&5
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); } && {
14500          test -z "$ac_c_werror_flag" ||
14501          test ! -s conftest.err
14502        } && test -s conftest.$ac_objext; then
14503   ac_header_compiler=yes
14504 else
14505   echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14507
14508         ac_header_compiler=no
14509 fi
14510
14511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14513 echo "${ECHO_T}$ac_header_compiler" >&6; }
14514
14515 # Is the header present?
14516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14518 cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h.  */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h.  */
14524 #include <$ac_header>
14525 _ACEOF
14526 if { (ac_try="$ac_cpp conftest.$ac_ext"
14527 case "(($ac_try" in
14528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529   *) ac_try_echo=$ac_try;;
14530 esac
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14533   ac_status=$?
14534   grep -v '^ *+' conftest.er1 >conftest.err
14535   rm -f conftest.er1
14536   cat conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } >/dev/null && {
14539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14540          test ! -s conftest.err
14541        }; then
14542   ac_header_preproc=yes
14543 else
14544   echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547   ac_header_preproc=no
14548 fi
14549
14550 rm -f conftest.err conftest.$ac_ext
14551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14552 echo "${ECHO_T}$ac_header_preproc" >&6; }
14553
14554 # So?  What about this header?
14555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14556   yes:no: )
14557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14561     ac_header_preproc=yes
14562     ;;
14563   no:yes:* )
14564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14576
14577     ;;
14578 esac
14579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584   eval "$as_ac_Header=\$ac_header_preproc"
14585 fi
14586 ac_res=`eval echo '${'$as_ac_Header'}'`
14587                { echo "$as_me:$LINENO: result: $ac_res" >&5
14588 echo "${ECHO_T}$ac_res" >&6; }
14589
14590 fi
14591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14592   cat >>confdefs.h <<_ACEOF
14593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14594 _ACEOF
14595
14596 fi
14597
14598 done
14599
14600   cmu_save_LIBS="$LIBS"
14601   { echo "$as_me:$LINENO: checking for pam_start" >&5
14602 echo $ECHO_N "checking for pam_start... $ECHO_C" >&6; }
14603 if test "${ac_cv_func_pam_start+set}" = set; then
14604   echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606   cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612 /* Define pam_start to an innocuous variant, in case <limits.h> declares pam_start.
14613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14614 #define pam_start innocuous_pam_start
14615
14616 /* System header to define __stub macros and hopefully few prototypes,
14617     which can conflict with char pam_start (); below.
14618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14619     <limits.h> exists even on freestanding compilers.  */
14620
14621 #ifdef __STDC__
14622 # include <limits.h>
14623 #else
14624 # include <assert.h>
14625 #endif
14626
14627 #undef pam_start
14628
14629 /* Override any GCC internal prototype to avoid an error.
14630    Use char because int might match the return type of a GCC
14631    builtin and then its argument prototype would still apply.  */
14632 #ifdef __cplusplus
14633 extern "C"
14634 #endif
14635 char pam_start ();
14636 /* The GNU C library defines this for functions which it implements
14637     to always fail with ENOSYS.  Some functions are actually named
14638     something starting with __ and the normal name is an alias.  */
14639 #if defined __stub_pam_start || defined __stub___pam_start
14640 choke me
14641 #endif
14642
14643 int
14644 main ()
14645 {
14646 return pam_start ();
14647   ;
14648   return 0;
14649 }
14650 _ACEOF
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (ac_try="$ac_link"
14653 case "(($ac_try" in
14654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655   *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658   (eval "$ac_link") 2>conftest.er1
14659   ac_status=$?
14660   grep -v '^ *+' conftest.er1 >conftest.err
14661   rm -f conftest.er1
14662   cat conftest.err >&5
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); } && {
14665          test -z "$ac_c_werror_flag" ||
14666          test ! -s conftest.err
14667        } && test -s conftest$ac_exeext &&
14668        $as_test_x conftest$ac_exeext; then
14669   ac_cv_func_pam_start=yes
14670 else
14671   echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674         ac_cv_func_pam_start=no
14675 fi
14676
14677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14678       conftest$ac_exeext conftest.$ac_ext
14679 fi
14680 { echo "$as_me:$LINENO: result: $ac_cv_func_pam_start" >&5
14681 echo "${ECHO_T}$ac_cv_func_pam_start" >&6; }
14682 if test $ac_cv_func_pam_start = yes; then
14683   :
14684 else
14685   LIBS="-lpam $LIBS"
14686         cat >conftest.$ac_ext <<_ACEOF
14687 /* confdefs.h.  */
14688 _ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h.  */
14692
14693 #include <sys/types.h>
14694 #ifdef HAVE_PAM_PAM_APPL_H
14695 #include <pam/pam_appl.h>
14696 #endif
14697 #ifdef HAVE_SECURITY_PAM_H
14698 #include <security/pam_appl.h>
14699 #endif
14700 int
14701 main ()
14702 {
14703
14704 const char *service="foo";
14705 const char *user="bar";
14706 pam_handle_t *pamh;
14707 struct pam_conv *conv;
14708 int baz;
14709 baz = pam_start(service, user, conv, &pamh);
14710 return 0;
14711
14712   ;
14713   return 0;
14714 }
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720   *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723   (eval "$ac_link") 2>conftest.er1
14724   ac_status=$?
14725   grep -v '^ *+' conftest.er1 >conftest.err
14726   rm -f conftest.er1
14727   cat conftest.err >&5
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); } && {
14730          test -z "$ac_c_werror_flag" ||
14731          test ! -s conftest.err
14732        } && test -s conftest$ac_exeext &&
14733        $as_test_x conftest$ac_exeext; then
14734   LIBPAM="-lpam"
14735 else
14736   echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739
14740 fi
14741
14742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14743       conftest$ac_exeext conftest.$ac_ext
14744
14745 fi
14746
14747   LIBS="$cmu_save_LIBS $LIBPAM"
14748 fi
14749
14750
14751 # Check whether --with-saslauthd was given.
14752 if test "${with_saslauthd+set}" = set; then
14753   withval=$with_saslauthd; with_saslauthd=$withval
14754 else
14755   with_saslauthd=yes
14756 fi
14757
14758 if test "$with_saslauthd" != no; then
14759   if test "$with_saslauthd" = yes; then
14760     with_saslauthd="/var/state/saslauthd"
14761   fi
14762
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_SASLAUTHD
14765 _ACEOF
14766
14767
14768 cat >>confdefs.h <<_ACEOF
14769 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
14770 _ACEOF
14771
14772 fi
14773  if test "$with_saslauthd" != no; then
14774   SASLAUTHD_TRUE=
14775   SASLAUTHD_FALSE='#'
14776 else
14777   SASLAUTHD_TRUE='#'
14778   SASLAUTHD_FALSE=
14779 fi
14780
14781 { echo "$as_me:$LINENO: checking if I should include saslauthd" >&5
14782 echo $ECHO_N "checking if I should include saslauthd... $ECHO_C" >&6; }
14783 { echo "$as_me:$LINENO: result: $with_saslauthd" >&5
14784 echo "${ECHO_T}$with_saslauthd" >&6; }
14785
14786
14787 # Check whether --with-authdaemond was given.
14788 if test "${with_authdaemond+set}" = set; then
14789   withval=$with_authdaemond; with_authdaemon=$withval
14790 else
14791   with_authdaemon=yes
14792 fi
14793
14794 if test "$with_authdaemon" != no; then
14795   if test "$with_authdaemon" = yes; then
14796     with_authdaemon="/dev/null"
14797   fi
14798
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_AUTHDAEMON
14801 _ACEOF
14802
14803
14804 cat >>confdefs.h <<_ACEOF
14805 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
14806 _ACEOF
14807
14808 fi
14809 { echo "$as_me:$LINENO: checking to include Courier authdaemond support" >&5
14810 echo $ECHO_N "checking to include Courier authdaemond support... $ECHO_C" >&6; }
14811 { echo "$as_me:$LINENO: result: $with_authdaemon" >&5
14812 echo "${ECHO_T}$with_authdaemon" >&6; }
14813
14814
14815 # Check whether --with-pwcheck was given.
14816 if test "${with_pwcheck+set}" = set; then
14817   withval=$with_pwcheck; with_pwcheck=$withval
14818 else
14819   with_pwcheck=no
14820 fi
14821
14822 if test "$with_pwcheck" != no; then
14823    if test "$with_pwcheck" = yes; then
14824      with_pwcheck=/var/pwcheck
14825    fi
14826
14827 cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_PWCHECK
14829 _ACEOF
14830
14831
14832 cat >>confdefs.h <<_ACEOF
14833 #define PWCHECKDIR "$with_pwcheck"
14834 _ACEOF
14835
14836    { echo "$as_me:$LINENO: checking for getspnam" >&5
14837 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
14838 if test "${ac_cv_func_getspnam+set}" = set; then
14839   echo $ECHO_N "(cached) $ECHO_C" >&6
14840 else
14841   cat >conftest.$ac_ext <<_ACEOF
14842 /* confdefs.h.  */
14843 _ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h.  */
14847 /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
14848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14849 #define getspnam innocuous_getspnam
14850
14851 /* System header to define __stub macros and hopefully few prototypes,
14852     which can conflict with char getspnam (); below.
14853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14854     <limits.h> exists even on freestanding compilers.  */
14855
14856 #ifdef __STDC__
14857 # include <limits.h>
14858 #else
14859 # include <assert.h>
14860 #endif
14861
14862 #undef getspnam
14863
14864 /* Override any GCC internal prototype to avoid an error.
14865    Use char because int might match the return type of a GCC
14866    builtin and then its argument prototype would still apply.  */
14867 #ifdef __cplusplus
14868 extern "C"
14869 #endif
14870 char getspnam ();
14871 /* The GNU C library defines this for functions which it implements
14872     to always fail with ENOSYS.  Some functions are actually named
14873     something starting with __ and the normal name is an alias.  */
14874 #if defined __stub_getspnam || defined __stub___getspnam
14875 choke me
14876 #endif
14877
14878 int
14879 main ()
14880 {
14881 return getspnam ();
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (ac_try="$ac_link"
14888 case "(($ac_try" in
14889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890   *) ac_try_echo=$ac_try;;
14891 esac
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893   (eval "$ac_link") 2>conftest.er1
14894   ac_status=$?
14895   grep -v '^ *+' conftest.er1 >conftest.err
14896   rm -f conftest.er1
14897   cat conftest.err >&5
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); } && {
14900          test -z "$ac_c_werror_flag" ||
14901          test ! -s conftest.err
14902        } && test -s conftest$ac_exeext &&
14903        $as_test_x conftest$ac_exeext; then
14904   ac_cv_func_getspnam=yes
14905 else
14906   echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14908
14909         ac_cv_func_getspnam=no
14910 fi
14911
14912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14913       conftest$ac_exeext conftest.$ac_ext
14914 fi
14915 { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
14916 echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
14917 if test $ac_cv_func_getspnam = yes; then
14918   PWCHECKMETH="getspnam"
14919 else
14920   PWCHECKMETH="getpwnam"
14921 fi
14922
14923
14924 fi
14925  if test "$with_pwcheck" != no; then
14926   PWCHECK_TRUE=
14927   PWCHECK_FALSE='#'
14928 else
14929   PWCHECK_TRUE='#'
14930   PWCHECK_FALSE=
14931 fi
14932
14933 { echo "$as_me:$LINENO: checking if I should include pwcheck" >&5
14934 echo $ECHO_N "checking if I should include pwcheck... $ECHO_C" >&6; }
14935 { echo "$as_me:$LINENO: result: $with_pwcheck" >&5
14936 echo "${ECHO_T}$with_pwcheck" >&6; }
14937
14938
14939 # Check whether --with-ipctype was given.
14940 if test "${with_ipctype+set}" = set; then
14941   withval=$with_ipctype; with_ipctype=$withval
14942 else
14943   with_ipctype="unix"
14944 fi
14945
14946 IPCTYPE=$with_ipctype
14947
14948 LIB_DOOR=
14949 if test "$with_ipctype" = "doors"; then
14950    LIB_DOOR="-ldoor"
14951
14952 cat >>confdefs.h <<\_ACEOF
14953 #define USE_DOORS
14954 _ACEOF
14955
14956 fi
14957
14958
14959 # Check whether --enable-alwaystrue was given.
14960 if test "${enable_alwaystrue+set}" = set; then
14961   enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
14962 else
14963   enable_alwaystrue=no
14964 fi
14965
14966 if test "$enable_alwaystrue" = yes; then
14967
14968 cat >>confdefs.h <<\_ACEOF
14969 #define HAVE_ALWAYSTRUE
14970 _ACEOF
14971
14972 fi
14973 { echo "$as_me:$LINENO: checking if I should include the alwaystrue verifier" >&5
14974 echo $ECHO_N "checking if I should include the alwaystrue verifier... $ECHO_C" >&6; }
14975 { echo "$as_me:$LINENO: result: $enable_alwaystrue" >&5
14976 echo "${ECHO_T}$enable_alwaystrue" >&6; }
14977
14978 # Check whether --enable-checkapop was given.
14979 if test "${enable_checkapop+set}" = set; then
14980   enableval=$enable_checkapop; checkapop=$enableval
14981 else
14982   checkapop=yes
14983 fi
14984
14985
14986 { echo "$as_me:$LINENO: checking if we should enable sasl_checkapop" >&5
14987 echo $ECHO_N "checking if we should enable sasl_checkapop... $ECHO_C" >&6; }
14988 if test "$checkapop" != no; then
14989   { echo "$as_me:$LINENO: result: enabled" >&5
14990 echo "${ECHO_T}enabled" >&6; }
14991
14992 cat >>confdefs.h <<\_ACEOF
14993 #define DO_SASL_CHECKAPOP
14994 _ACEOF
14995
14996 else
14997   { echo "$as_me:$LINENO: result: disabled" >&5
14998 echo "${ECHO_T}disabled" >&6; }
14999 fi
15000
15001 # Check whether --enable-cram was given.
15002 if test "${enable_cram+set}" = set; then
15003   enableval=$enable_cram; cram=$enableval
15004 else
15005   cram=yes
15006 fi
15007
15008
15009 { echo "$as_me:$LINENO: checking CRAM-MD5" >&5
15010 echo $ECHO_N "checking CRAM-MD5... $ECHO_C" >&6; }
15011 if test "$cram" != no; then
15012   { echo "$as_me:$LINENO: result: enabled" >&5
15013 echo "${ECHO_T}enabled" >&6; }
15014   SASL_MECHS="$SASL_MECHS libcrammd5.la"
15015   if test "$enable_static" = yes; then
15016     SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
15017     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/cram.c"
15018
15019 cat >>confdefs.h <<\_ACEOF
15020 #define STATIC_CRAMMD5
15021 _ACEOF
15022
15023   fi
15024 else
15025   { echo "$as_me:$LINENO: result: disabled" >&5
15026 echo "${ECHO_T}disabled" >&6; }
15027 fi
15028
15029
15030 # Check whether --with-lib-subdir was given.
15031 if test "${with_lib_subdir+set}" = set; then
15032   withval=$with_lib_subdir;
15033 fi
15034
15035 { echo "$as_me:$LINENO: checking for long" >&5
15036 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
15037 if test "${ac_cv_type_long+set}" = set; then
15038   echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040   cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h.  */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h.  */
15046 $ac_includes_default
15047 typedef long ac__type_new_;
15048 int
15049 main ()
15050 {
15051 if ((ac__type_new_ *) 0)
15052   return 0;
15053 if (sizeof (ac__type_new_))
15054   return 0;
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 rm -f conftest.$ac_objext
15060 if { (ac_try="$ac_compile"
15061 case "(($ac_try" in
15062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063   *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066   (eval "$ac_compile") 2>conftest.er1
15067   ac_status=$?
15068   grep -v '^ *+' conftest.er1 >conftest.err
15069   rm -f conftest.er1
15070   cat conftest.err >&5
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); } && {
15073          test -z "$ac_c_werror_flag" ||
15074          test ! -s conftest.err
15075        } && test -s conftest.$ac_objext; then
15076   ac_cv_type_long=yes
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081         ac_cv_type_long=no
15082 fi
15083
15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 fi
15086 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15087 echo "${ECHO_T}$ac_cv_type_long" >&6; }
15088
15089 # The cast to long int works around a bug in the HP C Compiler
15090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15092 # This bug is HP SR number 8606223364.
15093 { echo "$as_me:$LINENO: checking size of long" >&5
15094 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
15095 if test "${ac_cv_sizeof_long+set}" = set; then
15096   echo $ECHO_N "(cached) $ECHO_C" >&6
15097 else
15098   if test "$cross_compiling" = yes; then
15099   # Depending upon the size, compute the lo and hi bounds.
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h.  */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h.  */
15106 $ac_includes_default
15107    typedef long ac__type_sizeof_;
15108 int
15109 main ()
15110 {
15111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15112 test_array [0] = 0
15113
15114   ;
15115   return 0;
15116 }
15117 _ACEOF
15118 rm -f conftest.$ac_objext
15119 if { (ac_try="$ac_compile"
15120 case "(($ac_try" in
15121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122   *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125   (eval "$ac_compile") 2>conftest.er1
15126   ac_status=$?
15127   grep -v '^ *+' conftest.er1 >conftest.err
15128   rm -f conftest.er1
15129   cat conftest.err >&5
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } && {
15132          test -z "$ac_c_werror_flag" ||
15133          test ! -s conftest.err
15134        } && test -s conftest.$ac_objext; then
15135   ac_lo=0 ac_mid=0
15136   while :; do
15137     cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143 $ac_includes_default
15144    typedef long ac__type_sizeof_;
15145 int
15146 main ()
15147 {
15148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15149 test_array [0] = 0
15150
15151   ;
15152   return 0;
15153 }
15154 _ACEOF
15155 rm -f conftest.$ac_objext
15156 if { (ac_try="$ac_compile"
15157 case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_compile") 2>conftest.er1
15163   ac_status=$?
15164   grep -v '^ *+' conftest.er1 >conftest.err
15165   rm -f conftest.er1
15166   cat conftest.err >&5
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } && {
15169          test -z "$ac_c_werror_flag" ||
15170          test ! -s conftest.err
15171        } && test -s conftest.$ac_objext; then
15172   ac_hi=$ac_mid; break
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177         ac_lo=`expr $ac_mid + 1`
15178                         if test $ac_lo -le $ac_mid; then
15179                           ac_lo= ac_hi=
15180                           break
15181                         fi
15182                         ac_mid=`expr 2 '*' $ac_mid + 1`
15183 fi
15184
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186   done
15187 else
15188   echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191         cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h.  */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h.  */
15197 $ac_includes_default
15198    typedef long ac__type_sizeof_;
15199 int
15200 main ()
15201 {
15202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15203 test_array [0] = 0
15204
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 rm -f conftest.$ac_objext
15210 if { (ac_try="$ac_compile"
15211 case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216   (eval "$ac_compile") 2>conftest.er1
15217   ac_status=$?
15218   grep -v '^ *+' conftest.er1 >conftest.err
15219   rm -f conftest.er1
15220   cat conftest.err >&5
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); } && {
15223          test -z "$ac_c_werror_flag" ||
15224          test ! -s conftest.err
15225        } && test -s conftest.$ac_objext; then
15226   ac_hi=-1 ac_mid=-1
15227   while :; do
15228     cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h.  */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h.  */
15234 $ac_includes_default
15235    typedef long ac__type_sizeof_;
15236 int
15237 main ()
15238 {
15239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15240 test_array [0] = 0
15241
15242   ;
15243   return 0;
15244 }
15245 _ACEOF
15246 rm -f conftest.$ac_objext
15247 if { (ac_try="$ac_compile"
15248 case "(($ac_try" in
15249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250   *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253   (eval "$ac_compile") 2>conftest.er1
15254   ac_status=$?
15255   grep -v '^ *+' conftest.er1 >conftest.err
15256   rm -f conftest.er1
15257   cat conftest.err >&5
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } && {
15260          test -z "$ac_c_werror_flag" ||
15261          test ! -s conftest.err
15262        } && test -s conftest.$ac_objext; then
15263   ac_lo=$ac_mid; break
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268         ac_hi=`expr '(' $ac_mid ')' - 1`
15269                         if test $ac_mid -le $ac_hi; then
15270                           ac_lo= ac_hi=
15271                           break
15272                         fi
15273                         ac_mid=`expr 2 '*' $ac_mid`
15274 fi
15275
15276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15277   done
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282         ac_lo= ac_hi=
15283 fi
15284
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286 fi
15287
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 # Binary search between lo and hi bounds.
15290 while test "x$ac_lo" != "x$ac_hi"; do
15291   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15292   cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298 $ac_includes_default
15299    typedef long ac__type_sizeof_;
15300 int
15301 main ()
15302 {
15303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15304 test_array [0] = 0
15305
15306   ;
15307   return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_compile") 2>conftest.er1
15318   ac_status=$?
15319   grep -v '^ *+' conftest.er1 >conftest.err
15320   rm -f conftest.er1
15321   cat conftest.err >&5
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } && {
15324          test -z "$ac_c_werror_flag" ||
15325          test ! -s conftest.err
15326        } && test -s conftest.$ac_objext; then
15327   ac_hi=$ac_mid
15328 else
15329   echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332         ac_lo=`expr '(' $ac_mid ')' + 1`
15333 fi
15334
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15336 done
15337 case $ac_lo in
15338 ?*) ac_cv_sizeof_long=$ac_lo;;
15339 '') if test "$ac_cv_type_long" = yes; then
15340      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15341 See \`config.log' for more details." >&5
15342 echo "$as_me: error: cannot compute sizeof (long)
15343 See \`config.log' for more details." >&2;}
15344    { (exit 77); exit 77; }; }
15345    else
15346      ac_cv_sizeof_long=0
15347    fi ;;
15348 esac
15349 else
15350   cat >conftest.$ac_ext <<_ACEOF
15351 /* confdefs.h.  */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h.  */
15356 $ac_includes_default
15357    typedef long ac__type_sizeof_;
15358 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15359 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15360 #include <stdio.h>
15361 #include <stdlib.h>
15362 int
15363 main ()
15364 {
15365
15366   FILE *f = fopen ("conftest.val", "w");
15367   if (! f)
15368     return 1;
15369   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15370     {
15371       long int i = longval ();
15372       if (i != ((long int) (sizeof (ac__type_sizeof_))))
15373         return 1;
15374       fprintf (f, "%ld\n", i);
15375     }
15376   else
15377     {
15378       unsigned long int i = ulongval ();
15379       if (i != ((long int) (sizeof (ac__type_sizeof_))))
15380         return 1;
15381       fprintf (f, "%lu\n", i);
15382     }
15383   return ferror (f) || fclose (f) != 0;
15384
15385   ;
15386   return 0;
15387 }
15388 _ACEOF
15389 rm -f conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393   *) ac_try_echo=$ac_try;;
15394 esac
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396   (eval "$ac_link") 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15400   { (case "(($ac_try" in
15401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402   *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405   (eval "$ac_try") 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }; }; then
15409   ac_cv_sizeof_long=`cat conftest.val`
15410 else
15411   echo "$as_me: program exited with status $ac_status" >&5
15412 echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15414
15415 ( exit $ac_status )
15416 if test "$ac_cv_type_long" = yes; then
15417      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15418 See \`config.log' for more details." >&5
15419 echo "$as_me: error: cannot compute sizeof (long)
15420 See \`config.log' for more details." >&2;}
15421    { (exit 77); exit 77; }; }
15422    else
15423      ac_cv_sizeof_long=0
15424    fi
15425 fi
15426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15427 fi
15428 rm -f conftest.val
15429 fi
15430 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15431 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
15432
15433
15434
15435 cat >>confdefs.h <<_ACEOF
15436 #define SIZEOF_LONG $ac_cv_sizeof_long
15437 _ACEOF
15438
15439
15440 { echo "$as_me:$LINENO: checking what directory libraries are found in" >&5
15441 echo $ECHO_N "checking what directory libraries are found in... $ECHO_C" >&6; }
15442 if test "${ac_cv_cmu_lib_subdir+set}" = set; then
15443   echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445   test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
15446 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
15447 if test "X$with_lib_subdir" = "X" ; then
15448   ac_cv_cmu_lib_subdir=lib
15449   if test $ac_cv_sizeof_long -eq 4 ; then
15450     test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
15451   fi
15452   if test $ac_cv_sizeof_long -eq 8 ; then
15453     test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
15454   fi
15455 else
15456   ac_cv_cmu_lib_subdir=$with_lib_subdir
15457 fi
15458 fi
15459 { echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5
15460 echo "${ECHO_T}$ac_cv_cmu_lib_subdir" >&6; }
15461 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
15462
15463
15464
15465
15466
15467 # Check whether --with-openssl was given.
15468 if test "${with_openssl+set}" = set; then
15469   withval=$with_openssl; with_openssl=$withval
15470 else
15471   with_openssl="yes"
15472 fi
15473
15474
15475         save_CPPFLAGS=$CPPFLAGS
15476         save_LDFLAGS=$LDFLAGS
15477
15478         if test -d $with_openssl; then
15479           CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
15480
15481   # this is CMU ADD LIBPATH
15482   if test "$andrew_runpath_switch" = "none" ; then
15483         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15484   else
15485         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15486   fi
15487
15488         fi
15489
15490 case "$with_openssl" in
15491         no)
15492           with_openssl="no";;
15493         *)
15494                                   LIB_RSAREF=""
15495                 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
15496 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
15497 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500   ac_check_lib_save_LIBS=$LIBS
15501 LIBS="-lrsaref  $LIBS"
15502 cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508
15509 /* Override any GCC internal prototype to avoid an error.
15510    Use char because int might match the return type of a GCC
15511    builtin and then its argument prototype would still apply.  */
15512 #ifdef __cplusplus
15513 extern "C"
15514 #endif
15515 char RSAPublicEncrypt ();
15516 int
15517 main ()
15518 {
15519 return RSAPublicEncrypt ();
15520   ;
15521   return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest.$ac_objext conftest$ac_exeext
15525 if { (ac_try="$ac_link"
15526 case "(($ac_try" in
15527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528   *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531   (eval "$ac_link") 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } && {
15538          test -z "$ac_c_werror_flag" ||
15539          test ! -s conftest.err
15540        } && test -s conftest$ac_exeext &&
15541        $as_test_x conftest$ac_exeext; then
15542   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
15543 else
15544   echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15546
15547         ac_cv_lib_rsaref_RSAPublicEncrypt=no
15548 fi
15549
15550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15551       conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15553 fi
15554 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
15555 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
15556 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
15557   cmu_have_rsaref=yes;
15558                         { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lRSAglue" >&5
15559 echo $ECHO_N "checking for RSAPublicEncrypt in -lRSAglue... $ECHO_C" >&6; }
15560 if test "${ac_cv_lib_RSAglue_RSAPublicEncrypt+set}" = set; then
15561   echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563   ac_check_lib_save_LIBS=$LIBS
15564 LIBS="-lRSAglue  $LIBS"
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h.  */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h.  */
15571
15572 /* Override any GCC internal prototype to avoid an error.
15573    Use char because int might match the return type of a GCC
15574    builtin and then its argument prototype would still apply.  */
15575 #ifdef __cplusplus
15576 extern "C"
15577 #endif
15578 char RSAPublicEncrypt ();
15579 int
15580 main ()
15581 {
15582 return RSAPublicEncrypt ();
15583   ;
15584   return 0;
15585 }
15586 _ACEOF
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (ac_try="$ac_link"
15589 case "(($ac_try" in
15590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591   *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594   (eval "$ac_link") 2>conftest.er1
15595   ac_status=$?
15596   grep -v '^ *+' conftest.er1 >conftest.err
15597   rm -f conftest.er1
15598   cat conftest.err >&5
15599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600   (exit $ac_status); } && {
15601          test -z "$ac_c_werror_flag" ||
15602          test ! -s conftest.err
15603        } && test -s conftest$ac_exeext &&
15604        $as_test_x conftest$ac_exeext; then
15605   ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610         ac_cv_lib_RSAglue_RSAPublicEncrypt=no
15611 fi
15612
15613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15614       conftest$ac_exeext conftest.$ac_ext
15615 LIBS=$ac_check_lib_save_LIBS
15616 fi
15617 { echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
15618 echo "${ECHO_T}$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
15619 if test $ac_cv_lib_RSAglue_RSAPublicEncrypt = yes; then
15620   LIB_RSAREF="-lRSAglue -lrsaref"
15621 else
15622   LIB_RSAREF="-lrsaref"
15623 fi
15624
15625 else
15626   cmu_have_rsaref=no
15627 fi
15628
15629
15630                 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
15631   { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
15632 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
15633 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 fi
15636 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15637 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
15638 else
15639   # Is the header compilable?
15640 { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
15641 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
15642 cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h.  */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h.  */
15648 $ac_includes_default
15649 #include <openssl/evp.h>
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (ac_try="$ac_compile"
15653 case "(($ac_try" in
15654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655   *) ac_try_echo=$ac_try;;
15656 esac
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658   (eval "$ac_compile") 2>conftest.er1
15659   ac_status=$?
15660   grep -v '^ *+' conftest.er1 >conftest.err
15661   rm -f conftest.er1
15662   cat conftest.err >&5
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } && {
15665          test -z "$ac_c_werror_flag" ||
15666          test ! -s conftest.err
15667        } && test -s conftest.$ac_objext; then
15668   ac_header_compiler=yes
15669 else
15670   echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15672
15673         ac_header_compiler=no
15674 fi
15675
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15678 echo "${ECHO_T}$ac_header_compiler" >&6; }
15679
15680 # Is the header present?
15681 { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
15682 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689 #include <openssl/evp.h>
15690 _ACEOF
15691 if { (ac_try="$ac_cpp conftest.$ac_ext"
15692 case "(($ac_try" in
15693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694   *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15698   ac_status=$?
15699   grep -v '^ *+' conftest.er1 >conftest.err
15700   rm -f conftest.er1
15701   cat conftest.err >&5
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); } >/dev/null && {
15704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15705          test ! -s conftest.err
15706        }; then
15707   ac_header_preproc=yes
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712   ac_header_preproc=no
15713 fi
15714
15715 rm -f conftest.err conftest.$ac_ext
15716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15717 echo "${ECHO_T}$ac_header_preproc" >&6; }
15718
15719 # So?  What about this header?
15720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15721   yes:no: )
15722     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15723 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15724     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
15725 echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
15726     ac_header_preproc=yes
15727     ;;
15728   no:yes:* )
15729     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
15730 echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
15731     { echo "$as_me:$LINENO: WARNING: openssl/evp.h:     check for missing prerequisite headers?" >&5
15732 echo "$as_me: WARNING: openssl/evp.h:     check for missing prerequisite headers?" >&2;}
15733     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
15734 echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
15735     { echo "$as_me:$LINENO: WARNING: openssl/evp.h:     section \"Present But Cannot Be Compiled\"" >&5
15736 echo "$as_me: WARNING: openssl/evp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15737     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
15738 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
15739     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
15740 echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
15741
15742     ;;
15743 esac
15744 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
15745 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
15746 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
15747   echo $ECHO_N "(cached) $ECHO_C" >&6
15748 else
15749   ac_cv_header_openssl_evp_h=$ac_header_preproc
15750 fi
15751 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15752 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
15753
15754 fi
15755 if test $ac_cv_header_openssl_evp_h = yes; then
15756
15757                         { echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
15758 echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6; }
15759 if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
15760   echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762   ac_check_lib_save_LIBS=$LIBS
15763 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15764 cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h.  */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h.  */
15770
15771 /* Override any GCC internal prototype to avoid an error.
15772    Use char because int might match the return type of a GCC
15773    builtin and then its argument prototype would still apply.  */
15774 #ifdef __cplusplus
15775 extern "C"
15776 #endif
15777 char EVP_DigestInit ();
15778 int
15779 main ()
15780 {
15781 return EVP_DigestInit ();
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790   *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793   (eval "$ac_link") 2>conftest.er1
15794   ac_status=$?
15795   grep -v '^ *+' conftest.er1 >conftest.err
15796   rm -f conftest.er1
15797   cat conftest.err >&5
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); } && {
15800          test -z "$ac_c_werror_flag" ||
15801          test ! -s conftest.err
15802        } && test -s conftest$ac_exeext &&
15803        $as_test_x conftest$ac_exeext; then
15804   ac_cv_lib_crypto_EVP_DigestInit=yes
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809         ac_cv_lib_crypto_EVP_DigestInit=no
15810 fi
15811
15812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15813       conftest$ac_exeext conftest.$ac_ext
15814 LIBS=$ac_check_lib_save_LIBS
15815 fi
15816 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
15817 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
15818 if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then
15819   with_openssl="yes"
15820 else
15821   with_openssl="no"
15822 fi
15823
15824 else
15825   with_openssl=no
15826 fi
15827
15828
15829                 ;;
15830 esac
15831
15832         if test "$with_openssl" != "no"; then
15833
15834 cat >>confdefs.h <<\_ACEOF
15835 #define HAVE_OPENSSL
15836 _ACEOF
15837
15838         else
15839                 CPPFLAGS=$save_CPPFLAGS
15840                 LDFLAGS=$save_LDFLAGS
15841         fi
15842
15843 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
15844 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
15845 { echo "$as_me:$LINENO: result: $with_openssl" >&5
15846 echo "${ECHO_T}$with_openssl" >&6; }
15847
15848
15849
15850 # Check whether --with-des was given.
15851 if test "${with_des+set}" = set; then
15852   withval=$with_des; with_des=$withval
15853 else
15854   with_des=yes
15855 fi
15856
15857
15858 LIB_DES=""
15859 if test "$with_des" != no; then
15860   if test -d $with_des; then
15861     CPPFLAGS="$CPPFLAGS -I${with_des}/include"
15862     LDFLAGS="$LDFLAGS -L${with_des}/lib"
15863   fi
15864
15865   if test "$with_openssl" != no; then
15866         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
15867 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
15868 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
15869   echo $ECHO_N "(cached) $ECHO_C" >&6
15870 else
15871   ac_check_lib_save_LIBS=$LIBS
15872 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15873 cat >conftest.$ac_ext <<_ACEOF
15874 /* confdefs.h.  */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h.  */
15879
15880 /* Override any GCC internal prototype to avoid an error.
15881    Use char because int might match the return type of a GCC
15882    builtin and then its argument prototype would still apply.  */
15883 #ifdef __cplusplus
15884 extern "C"
15885 #endif
15886 char des_cbc_encrypt ();
15887 int
15888 main ()
15889 {
15890 return des_cbc_encrypt ();
15891   ;
15892   return 0;
15893 }
15894 _ACEOF
15895 rm -f conftest.$ac_objext conftest$ac_exeext
15896 if { (ac_try="$ac_link"
15897 case "(($ac_try" in
15898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899   *) ac_try_echo=$ac_try;;
15900 esac
15901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902   (eval "$ac_link") 2>conftest.er1
15903   ac_status=$?
15904   grep -v '^ *+' conftest.er1 >conftest.err
15905   rm -f conftest.er1
15906   cat conftest.err >&5
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); } && {
15909          test -z "$ac_c_werror_flag" ||
15910          test ! -s conftest.err
15911        } && test -s conftest$ac_exeext &&
15912        $as_test_x conftest$ac_exeext; then
15913   ac_cv_lib_crypto_des_cbc_encrypt=yes
15914 else
15915   echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15917
15918         ac_cv_lib_crypto_des_cbc_encrypt=no
15919 fi
15920
15921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15922       conftest$ac_exeext conftest.$ac_ext
15923 LIBS=$ac_check_lib_save_LIBS
15924 fi
15925 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
15926 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
15927 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
15928
15929         if test "${ac_cv_header_openssl_des_h+set}" = set; then
15930   { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
15931 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
15932 if test "${ac_cv_header_openssl_des_h+set}" = set; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 fi
15935 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
15936 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
15937 else
15938   # Is the header compilable?
15939 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
15940 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h.  */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h.  */
15947 $ac_includes_default
15948 #include <openssl/des.h>
15949 _ACEOF
15950 rm -f conftest.$ac_objext
15951 if { (ac_try="$ac_compile"
15952 case "(($ac_try" in
15953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954   *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957   (eval "$ac_compile") 2>conftest.er1
15958   ac_status=$?
15959   grep -v '^ *+' conftest.er1 >conftest.err
15960   rm -f conftest.er1
15961   cat conftest.err >&5
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); } && {
15964          test -z "$ac_c_werror_flag" ||
15965          test ! -s conftest.err
15966        } && test -s conftest.$ac_objext; then
15967   ac_header_compiler=yes
15968 else
15969   echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15971
15972         ac_header_compiler=no
15973 fi
15974
15975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15977 echo "${ECHO_T}$ac_header_compiler" >&6; }
15978
15979 # Is the header present?
15980 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
15981 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h.  */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h.  */
15988 #include <openssl/des.h>
15989 _ACEOF
15990 if { (ac_try="$ac_cpp conftest.$ac_ext"
15991 case "(($ac_try" in
15992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993   *) ac_try_echo=$ac_try;;
15994 esac
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15997   ac_status=$?
15998   grep -v '^ *+' conftest.er1 >conftest.err
15999   rm -f conftest.er1
16000   cat conftest.err >&5
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); } >/dev/null && {
16003          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16004          test ! -s conftest.err
16005        }; then
16006   ac_header_preproc=yes
16007 else
16008   echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010
16011   ac_header_preproc=no
16012 fi
16013
16014 rm -f conftest.err conftest.$ac_ext
16015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16016 echo "${ECHO_T}$ac_header_preproc" >&6; }
16017
16018 # So?  What about this header?
16019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16020   yes:no: )
16021     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
16022 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16023     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
16024 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
16025     ac_header_preproc=yes
16026     ;;
16027   no:yes:* )
16028     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
16029 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
16030     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&5
16031 echo "$as_me: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&2;}
16032     { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
16033 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
16034     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&5
16035 echo "$as_me: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
16037 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
16038     { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
16039 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
16040
16041     ;;
16042 esac
16043 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16044 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16045 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16046   echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048   ac_cv_header_openssl_des_h=$ac_header_preproc
16049 fi
16050 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16051 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16052
16053 fi
16054 if test $ac_cv_header_openssl_des_h = yes; then
16055
16056 cat >>confdefs.h <<\_ACEOF
16057 #define WITH_SSL_DES
16058 _ACEOF
16059
16060                                        LIB_DES="-lcrypto";
16061                                        with_des=yes
16062 else
16063   with_des=no
16064 fi
16065
16066
16067 else
16068   with_des=no
16069 fi
16070
16071
16072         if test "$with_des" = no; then
16073       { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
16074 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
16075 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
16076   echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078   ac_check_lib_save_LIBS=$LIBS
16079 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086
16087 /* Override any GCC internal prototype to avoid an error.
16088    Use char because int might match the return type of a GCC
16089    builtin and then its argument prototype would still apply.  */
16090 #ifdef __cplusplus
16091 extern "C"
16092 #endif
16093 char DES_cbc_encrypt ();
16094 int
16095 main ()
16096 {
16097 return DES_cbc_encrypt ();
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (ac_try="$ac_link"
16104 case "(($ac_try" in
16105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106   *) ac_try_echo=$ac_try;;
16107 esac
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109   (eval "$ac_link") 2>conftest.er1
16110   ac_status=$?
16111   grep -v '^ *+' conftest.er1 >conftest.err
16112   rm -f conftest.er1
16113   cat conftest.err >&5
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); } && {
16116          test -z "$ac_c_werror_flag" ||
16117          test ! -s conftest.err
16118        } && test -s conftest$ac_exeext &&
16119        $as_test_x conftest$ac_exeext; then
16120   ac_cv_lib_crypto_DES_cbc_encrypt=yes
16121 else
16122   echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125         ac_cv_lib_crypto_DES_cbc_encrypt=no
16126 fi
16127
16128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16129       conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16131 fi
16132 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
16133 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
16134 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
16135
16136         if test "${ac_cv_header_openssl_des_h+set}" = set; then
16137   { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16138 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16139 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16140   echo $ECHO_N "(cached) $ECHO_C" >&6
16141 fi
16142 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16143 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16144 else
16145   # Is the header compilable?
16146 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
16147 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
16148 cat >conftest.$ac_ext <<_ACEOF
16149 /* confdefs.h.  */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h.  */
16154 $ac_includes_default
16155 #include <openssl/des.h>
16156 _ACEOF
16157 rm -f conftest.$ac_objext
16158 if { (ac_try="$ac_compile"
16159 case "(($ac_try" in
16160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161   *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164   (eval "$ac_compile") 2>conftest.er1
16165   ac_status=$?
16166   grep -v '^ *+' conftest.er1 >conftest.err
16167   rm -f conftest.er1
16168   cat conftest.err >&5
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } && {
16171          test -z "$ac_c_werror_flag" ||
16172          test ! -s conftest.err
16173        } && test -s conftest.$ac_objext; then
16174   ac_header_compiler=yes
16175 else
16176   echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179         ac_header_compiler=no
16180 fi
16181
16182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16184 echo "${ECHO_T}$ac_header_compiler" >&6; }
16185
16186 # Is the header present?
16187 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
16188 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h.  */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h.  */
16195 #include <openssl/des.h>
16196 _ACEOF
16197 if { (ac_try="$ac_cpp conftest.$ac_ext"
16198 case "(($ac_try" in
16199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200   *) ac_try_echo=$ac_try;;
16201 esac
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16204   ac_status=$?
16205   grep -v '^ *+' conftest.er1 >conftest.err
16206   rm -f conftest.er1
16207   cat conftest.err >&5
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); } >/dev/null && {
16210          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16211          test ! -s conftest.err
16212        }; then
16213   ac_header_preproc=yes
16214 else
16215   echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218   ac_header_preproc=no
16219 fi
16220
16221 rm -f conftest.err conftest.$ac_ext
16222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16223 echo "${ECHO_T}$ac_header_preproc" >&6; }
16224
16225 # So?  What about this header?
16226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16227   yes:no: )
16228     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
16229 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16230     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
16231 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
16232     ac_header_preproc=yes
16233     ;;
16234   no:yes:* )
16235     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
16236 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
16237     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&5
16238 echo "$as_me: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&2;}
16239     { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
16240 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
16241     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&5
16242 echo "$as_me: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16243     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
16244 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
16245     { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
16246 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
16247
16248     ;;
16249 esac
16250 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16251 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16252 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16253   echo $ECHO_N "(cached) $ECHO_C" >&6
16254 else
16255   ac_cv_header_openssl_des_h=$ac_header_preproc
16256 fi
16257 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16258 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16259
16260 fi
16261 if test $ac_cv_header_openssl_des_h = yes; then
16262
16263 cat >>confdefs.h <<\_ACEOF
16264 #define WITH_SSL_DES
16265 _ACEOF
16266
16267                                        LIB_DES="-lcrypto";
16268                                        with_des=yes
16269 else
16270   with_des=no
16271 fi
16272
16273
16274 else
16275   with_des=no
16276 fi
16277
16278     fi
16279   fi
16280
16281   if test "$with_des" = no; then
16282     { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
16283 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
16284 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287   ac_check_lib_save_LIBS=$LIBS
16288 LIBS="-ldes  $LIBS"
16289 cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295
16296 /* Override any GCC internal prototype to avoid an error.
16297    Use char because int might match the return type of a GCC
16298    builtin and then its argument prototype would still apply.  */
16299 #ifdef __cplusplus
16300 extern "C"
16301 #endif
16302 char des_cbc_encrypt ();
16303 int
16304 main ()
16305 {
16306 return des_cbc_encrypt ();
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315   *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318   (eval "$ac_link") 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } && {
16325          test -z "$ac_c_werror_flag" ||
16326          test ! -s conftest.err
16327        } && test -s conftest$ac_exeext &&
16328        $as_test_x conftest$ac_exeext; then
16329   ac_cv_lib_des_des_cbc_encrypt=yes
16330 else
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334         ac_cv_lib_des_des_cbc_encrypt=no
16335 fi
16336
16337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16338       conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16340 fi
16341 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16342 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16343 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
16344   LIB_DES="-ldes";
16345                                         with_des=yes
16346 else
16347   with_des=no
16348 fi
16349
16350   fi
16351
16352   if test "$with_des" = no; then
16353      { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
16354 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
16355 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
16356   echo $ECHO_N "(cached) $ECHO_C" >&6
16357 else
16358   ac_check_lib_save_LIBS=$LIBS
16359 LIBS="-ldes425  $LIBS"
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h.  */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h.  */
16366
16367 /* Override any GCC internal prototype to avoid an error.
16368    Use char because int might match the return type of a GCC
16369    builtin and then its argument prototype would still apply.  */
16370 #ifdef __cplusplus
16371 extern "C"
16372 #endif
16373 char des_cbc_encrypt ();
16374 int
16375 main ()
16376 {
16377 return des_cbc_encrypt ();
16378   ;
16379   return 0;
16380 }
16381 _ACEOF
16382 rm -f conftest.$ac_objext conftest$ac_exeext
16383 if { (ac_try="$ac_link"
16384 case "(($ac_try" in
16385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386   *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389   (eval "$ac_link") 2>conftest.er1
16390   ac_status=$?
16391   grep -v '^ *+' conftest.er1 >conftest.err
16392   rm -f conftest.er1
16393   cat conftest.err >&5
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } && {
16396          test -z "$ac_c_werror_flag" ||
16397          test ! -s conftest.err
16398        } && test -s conftest$ac_exeext &&
16399        $as_test_x conftest$ac_exeext; then
16400   ac_cv_lib_des425_des_cbc_encrypt=yes
16401 else
16402   echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16404
16405         ac_cv_lib_des425_des_cbc_encrypt=no
16406 fi
16407
16408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16409       conftest$ac_exeext conftest.$ac_ext
16410 LIBS=$ac_check_lib_save_LIBS
16411 fi
16412 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16413 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16414 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
16415   LIB_DES="-ldes425";
16416                                        with_des=yes
16417 else
16418   with_des=no
16419 fi
16420
16421   fi
16422
16423   if test "$with_des" = no; then
16424      { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5
16425 echo $ECHO_N "checking for des_cbc_encrypt in -ldes524... $ECHO_C" >&6; }
16426 if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then
16427   echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429   ac_check_lib_save_LIBS=$LIBS
16430 LIBS="-ldes524  $LIBS"
16431 cat >conftest.$ac_ext <<_ACEOF
16432 /* confdefs.h.  */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h.  */
16437
16438 /* Override any GCC internal prototype to avoid an error.
16439    Use char because int might match the return type of a GCC
16440    builtin and then its argument prototype would still apply.  */
16441 #ifdef __cplusplus
16442 extern "C"
16443 #endif
16444 char des_cbc_encrypt ();
16445 int
16446 main ()
16447 {
16448 return des_cbc_encrypt ();
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext conftest$ac_exeext
16454 if { (ac_try="$ac_link"
16455 case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_link") 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } && {
16467          test -z "$ac_c_werror_flag" ||
16468          test ! -s conftest.err
16469        } && test -s conftest$ac_exeext &&
16470        $as_test_x conftest$ac_exeext; then
16471   ac_cv_lib_des524_des_cbc_encrypt=yes
16472 else
16473   echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16475
16476         ac_cv_lib_des524_des_cbc_encrypt=no
16477 fi
16478
16479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16480       conftest$ac_exeext conftest.$ac_ext
16481 LIBS=$ac_check_lib_save_LIBS
16482 fi
16483 { echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
16484 echo "${ECHO_T}$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
16485 if test $ac_cv_lib_des524_des_cbc_encrypt = yes; then
16486   LIB_DES="-ldes524";
16487                                        with_des=yes
16488 else
16489   with_des=no
16490 fi
16491
16492   fi
16493
16494   if test "$with_des" = no; then
16495
16496             LIB_RSAREF=""
16497     { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
16498 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
16499 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
16500   echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502   ac_check_lib_save_LIBS=$LIBS
16503 LIBS="-lrsaref  $LIBS"
16504 cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h.  */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h.  */
16510
16511 /* Override any GCC internal prototype to avoid an error.
16512    Use char because int might match the return type of a GCC
16513    builtin and then its argument prototype would still apply.  */
16514 #ifdef __cplusplus
16515 extern "C"
16516 #endif
16517 char RSAPublicEncrypt ();
16518 int
16519 main ()
16520 {
16521 return RSAPublicEncrypt ();
16522   ;
16523   return 0;
16524 }
16525 _ACEOF
16526 rm -f conftest.$ac_objext conftest$ac_exeext
16527 if { (ac_try="$ac_link"
16528 case "(($ac_try" in
16529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530   *) ac_try_echo=$ac_try;;
16531 esac
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533   (eval "$ac_link") 2>conftest.er1
16534   ac_status=$?
16535   grep -v '^ *+' conftest.er1 >conftest.err
16536   rm -f conftest.er1
16537   cat conftest.err >&5
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); } && {
16540          test -z "$ac_c_werror_flag" ||
16541          test ! -s conftest.err
16542        } && test -s conftest$ac_exeext &&
16543        $as_test_x conftest$ac_exeext; then
16544   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
16545 else
16546   echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549         ac_cv_lib_rsaref_RSAPublicEncrypt=no
16550 fi
16551
16552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16553       conftest$ac_exeext conftest.$ac_ext
16554 LIBS=$ac_check_lib_save_LIBS
16555 fi
16556 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
16557 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
16558 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
16559   LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
16560 else
16561   cmu_have_rsaref=no
16562 fi
16563
16564
16565     { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
16566 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
16567 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
16568   echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570   ac_check_lib_save_LIBS=$LIBS
16571 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h.  */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h.  */
16578
16579 /* Override any GCC internal prototype to avoid an error.
16580    Use char because int might match the return type of a GCC
16581    builtin and then its argument prototype would still apply.  */
16582 #ifdef __cplusplus
16583 extern "C"
16584 #endif
16585 char des_cbc_encrypt ();
16586 int
16587 main ()
16588 {
16589 return des_cbc_encrypt ();
16590   ;
16591   return 0;
16592 }
16593 _ACEOF
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (ac_try="$ac_link"
16596 case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601   (eval "$ac_link") 2>conftest.er1
16602   ac_status=$?
16603   grep -v '^ *+' conftest.er1 >conftest.err
16604   rm -f conftest.er1
16605   cat conftest.err >&5
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } && {
16608          test -z "$ac_c_werror_flag" ||
16609          test ! -s conftest.err
16610        } && test -s conftest$ac_exeext &&
16611        $as_test_x conftest$ac_exeext; then
16612   ac_cv_lib_crypto_des_cbc_encrypt=yes
16613 else
16614   echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617         ac_cv_lib_crypto_des_cbc_encrypt=no
16618 fi
16619
16620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16621       conftest$ac_exeext conftest.$ac_ext
16622 LIBS=$ac_check_lib_save_LIBS
16623 fi
16624 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
16625 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
16626 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
16627
16628         if test "${ac_cv_header_openssl_des_h+set}" = set; then
16629   { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16630 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16631 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 fi
16634 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16635 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16636 else
16637   # Is the header compilable?
16638 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
16639 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
16640 cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646 $ac_includes_default
16647 #include <openssl/des.h>
16648 _ACEOF
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_compile") 2>conftest.er1
16657   ac_status=$?
16658   grep -v '^ *+' conftest.er1 >conftest.err
16659   rm -f conftest.er1
16660   cat conftest.err >&5
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); } && {
16663          test -z "$ac_c_werror_flag" ||
16664          test ! -s conftest.err
16665        } && test -s conftest.$ac_objext; then
16666   ac_header_compiler=yes
16667 else
16668   echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16670
16671         ac_header_compiler=no
16672 fi
16673
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16676 echo "${ECHO_T}$ac_header_compiler" >&6; }
16677
16678 # Is the header present?
16679 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
16680 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
16681 cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h.  */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h.  */
16687 #include <openssl/des.h>
16688 _ACEOF
16689 if { (ac_try="$ac_cpp conftest.$ac_ext"
16690 case "(($ac_try" in
16691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692   *) ac_try_echo=$ac_try;;
16693 esac
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16696   ac_status=$?
16697   grep -v '^ *+' conftest.er1 >conftest.err
16698   rm -f conftest.er1
16699   cat conftest.err >&5
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } >/dev/null && {
16702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16703          test ! -s conftest.err
16704        }; then
16705   ac_header_preproc=yes
16706 else
16707   echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710   ac_header_preproc=no
16711 fi
16712
16713 rm -f conftest.err conftest.$ac_ext
16714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16715 echo "${ECHO_T}$ac_header_preproc" >&6; }
16716
16717 # So?  What about this header?
16718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16719   yes:no: )
16720     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
16721 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16722     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
16723 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
16724     ac_header_preproc=yes
16725     ;;
16726   no:yes:* )
16727     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
16728 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
16729     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&5
16730 echo "$as_me: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&2;}
16731     { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
16732 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
16733     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&5
16734 echo "$as_me: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16735     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
16736 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
16737     { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
16738 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
16739
16740     ;;
16741 esac
16742 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16743 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16744 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16745   echo $ECHO_N "(cached) $ECHO_C" >&6
16746 else
16747   ac_cv_header_openssl_des_h=$ac_header_preproc
16748 fi
16749 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16750 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16751
16752 fi
16753 if test $ac_cv_header_openssl_des_h = yes; then
16754
16755 cat >>confdefs.h <<\_ACEOF
16756 #define WITH_SSL_DES
16757 _ACEOF
16758
16759                                         LIB_DES="-lcrypto";
16760                                         with_des=yes
16761 else
16762   with_des=no
16763 fi
16764
16765
16766 else
16767   with_des=no
16768 fi
16769
16770   fi
16771 fi
16772
16773 if test "$with_des" != no; then
16774
16775 cat >>confdefs.h <<\_ACEOF
16776 #define WITH_DES
16777 _ACEOF
16778
16779 fi
16780
16781
16782
16783
16784 # Check whether --enable-digest was given.
16785 if test "${enable_digest+set}" = set; then
16786   enableval=$enable_digest; digest=$enableval
16787 else
16788   digest=yes
16789 fi
16790
16791
16792 if test "$digest" != no; then
16793     if test -d $digest; then
16794     CPPFLAGS="$CPPFLAGS -I$digest/include"
16795     LDFLAGS="$LDFLAGS -L$digest/lib"
16796   fi
16797   if test "$with_des" = no; then
16798     { echo "$as_me:$LINENO: WARNING: No DES support for DIGEST-MD5" >&5
16799 echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
16800   fi
16801 fi
16802
16803 { echo "$as_me:$LINENO: checking DIGEST-MD5" >&5
16804 echo $ECHO_N "checking DIGEST-MD5... $ECHO_C" >&6; }
16805 if test "$digest" != no; then
16806   { echo "$as_me:$LINENO: result: enabled" >&5
16807 echo "${ECHO_T}enabled" >&6; }
16808   SASL_MECHS="$SASL_MECHS libdigestmd5.la"
16809   if test "$enable_static" = yes; then
16810     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/digestmd5.c"
16811     SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
16812
16813 cat >>confdefs.h <<\_ACEOF
16814 #define STATIC_DIGESTMD5
16815 _ACEOF
16816
16817   fi
16818 else
16819   { echo "$as_me:$LINENO: result: disabled" >&5
16820 echo "${ECHO_T}disabled" >&6; }
16821 fi
16822
16823 # Check whether --enable-otp was given.
16824 if test "${enable_otp+set}" = set; then
16825   enableval=$enable_otp; otp=$enableval
16826 else
16827   otp=yes
16828 fi
16829
16830
16831 if test "$with_openssl" = no; then
16832   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- OTP will be disabled" >&5
16833 echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
16834   otp=no
16835 fi
16836
16837 { echo "$as_me:$LINENO: checking OTP" >&5
16838 echo $ECHO_N "checking OTP... $ECHO_C" >&6; }
16839 if test "$otp" != no; then
16840   { echo "$as_me:$LINENO: result: enabled" >&5
16841 echo "${ECHO_T}enabled" >&6; }
16842   OTP_LIBS="-lcrypto $LIB_RSAREF"
16843
16844   SASL_MECHS="$SASL_MECHS libotp.la"
16845   if test "$enable_static" = yes; then
16846     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/otp.c"
16847     SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
16848
16849 cat >>confdefs.h <<\_ACEOF
16850 #define STATIC_OTP
16851 _ACEOF
16852
16853   fi
16854
16855
16856 # Check whether --with-with-opie was given.
16857 if test "${with_with_opie+set}" = set; then
16858   withval=$with_with_opie; with_opie="${withval}"
16859 fi
16860
16861
16862   case "$with_opie" in
16863         ""|yes)
16864                 { echo "$as_me:$LINENO: checking for opiechallenge in -lopie" >&5
16865 echo $ECHO_N "checking for opiechallenge in -lopie... $ECHO_C" >&6; }
16866 if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then
16867   echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869   ac_check_lib_save_LIBS=$LIBS
16870 LIBS="-lopie  $LIBS"
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h.  */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h.  */
16877
16878 /* Override any GCC internal prototype to avoid an error.
16879    Use char because int might match the return type of a GCC
16880    builtin and then its argument prototype would still apply.  */
16881 #ifdef __cplusplus
16882 extern "C"
16883 #endif
16884 char opiechallenge ();
16885 int
16886 main ()
16887 {
16888 return opiechallenge ();
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_link") 2>conftest.er1
16901   ac_status=$?
16902   grep -v '^ *+' conftest.er1 >conftest.err
16903   rm -f conftest.er1
16904   cat conftest.err >&5
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); } && {
16907          test -z "$ac_c_werror_flag" ||
16908          test ! -s conftest.err
16909        } && test -s conftest$ac_exeext &&
16910        $as_test_x conftest$ac_exeext; then
16911   ac_cv_lib_opie_opiechallenge=yes
16912 else
16913   echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916         ac_cv_lib_opie_opiechallenge=no
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16920       conftest$ac_exeext conftest.$ac_ext
16921 LIBS=$ac_check_lib_save_LIBS
16922 fi
16923 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_opiechallenge" >&5
16924 echo "${ECHO_T}$ac_cv_lib_opie_opiechallenge" >&6; }
16925 if test $ac_cv_lib_opie_opiechallenge = yes; then
16926
16927                         if test "${ac_cv_header_opie_h+set}" = set; then
16928   { echo "$as_me:$LINENO: checking for opie.h" >&5
16929 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6; }
16930 if test "${ac_cv_header_opie_h+set}" = set; then
16931   echo $ECHO_N "(cached) $ECHO_C" >&6
16932 fi
16933 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
16934 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
16935 else
16936   # Is the header compilable?
16937 { echo "$as_me:$LINENO: checking opie.h usability" >&5
16938 echo $ECHO_N "checking opie.h usability... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945 $ac_includes_default
16946 #include <opie.h>
16947 _ACEOF
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952   *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955   (eval "$ac_compile") 2>conftest.er1
16956   ac_status=$?
16957   grep -v '^ *+' conftest.er1 >conftest.err
16958   rm -f conftest.er1
16959   cat conftest.err >&5
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); } && {
16962          test -z "$ac_c_werror_flag" ||
16963          test ! -s conftest.err
16964        } && test -s conftest.$ac_objext; then
16965   ac_header_compiler=yes
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970         ac_header_compiler=no
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6; }
16976
16977 # Is the header present?
16978 { echo "$as_me:$LINENO: checking opie.h presence" >&5
16979 echo $ECHO_N "checking opie.h presence... $ECHO_C" >&6; }
16980 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h.  */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h.  */
16986 #include <opie.h>
16987 _ACEOF
16988 if { (ac_try="$ac_cpp conftest.$ac_ext"
16989 case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16995   ac_status=$?
16996   grep -v '^ *+' conftest.er1 >conftest.err
16997   rm -f conftest.er1
16998   cat conftest.err >&5
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } >/dev/null && {
17001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17002          test ! -s conftest.err
17003        }; then
17004   ac_header_preproc=yes
17005 else
17006   echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009   ac_header_preproc=no
17010 fi
17011
17012 rm -f conftest.err conftest.$ac_ext
17013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17014 echo "${ECHO_T}$ac_header_preproc" >&6; }
17015
17016 # So?  What about this header?
17017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17018   yes:no: )
17019     { echo "$as_me:$LINENO: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&5
17020 echo "$as_me: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17021     { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the compiler's result" >&5
17022 echo "$as_me: WARNING: opie.h: proceeding with the compiler's result" >&2;}
17023     ac_header_preproc=yes
17024     ;;
17025   no:yes:* )
17026     { echo "$as_me:$LINENO: WARNING: opie.h: present but cannot be compiled" >&5
17027 echo "$as_me: WARNING: opie.h: present but cannot be compiled" >&2;}
17028     { echo "$as_me:$LINENO: WARNING: opie.h:     check for missing prerequisite headers?" >&5
17029 echo "$as_me: WARNING: opie.h:     check for missing prerequisite headers?" >&2;}
17030     { echo "$as_me:$LINENO: WARNING: opie.h: see the Autoconf documentation" >&5
17031 echo "$as_me: WARNING: opie.h: see the Autoconf documentation" >&2;}
17032     { echo "$as_me:$LINENO: WARNING: opie.h:     section \"Present But Cannot Be Compiled\"" >&5
17033 echo "$as_me: WARNING: opie.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17034     { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the preprocessor's result" >&5
17035 echo "$as_me: WARNING: opie.h: proceeding with the preprocessor's result" >&2;}
17036     { echo "$as_me:$LINENO: WARNING: opie.h: in the future, the compiler will take precedence" >&5
17037 echo "$as_me: WARNING: opie.h: in the future, the compiler will take precedence" >&2;}
17038
17039     ;;
17040 esac
17041 { echo "$as_me:$LINENO: checking for opie.h" >&5
17042 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6; }
17043 if test "${ac_cv_header_opie_h+set}" = set; then
17044   echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046   ac_cv_header_opie_h=$ac_header_preproc
17047 fi
17048 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
17049 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
17050
17051 fi
17052 if test $ac_cv_header_opie_h = yes; then
17053   with_opie="yes"
17054 else
17055   with_opie="no"
17056 fi
17057
17058
17059 else
17060   with_opie="no"
17061 fi
17062
17063                 ;;
17064         *)
17065                 if test -d $with_opie; then
17066                   CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17067                   LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
17068                 else
17069                   with_opie="no"
17070                 fi
17071                 ;;
17072   esac
17073
17074   { echo "$as_me:$LINENO: checking for OPIE" >&5
17075 echo $ECHO_N "checking for OPIE... $ECHO_C" >&6; }
17076   { echo "$as_me:$LINENO: result: $with_opie" >&5
17077 echo "${ECHO_T}$with_opie" >&6; }
17078
17079   if test "$with_opie" != no; then
17080
17081 cat >>confdefs.h <<\_ACEOF
17082 #define HAVE_OPIE
17083 _ACEOF
17084
17085     OTP_LIBS="$OTP_LIBS -lopie"
17086   fi
17087
17088
17089
17090 else
17091   { echo "$as_me:$LINENO: result: disabled" >&5
17092 echo "${ECHO_T}disabled" >&6; }
17093 fi
17094
17095 # Check whether --enable-srp was given.
17096 if test "${enable_srp+set}" = set; then
17097   enableval=$enable_srp; srp=$enableval
17098 else
17099   srp=no
17100 fi
17101
17102
17103 if test "$with_openssl" = no; then
17104   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- SRP will be disabled" >&5
17105 echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
17106   srp=no
17107 fi
17108
17109 { echo "$as_me:$LINENO: checking SRP" >&5
17110 echo $ECHO_N "checking SRP... $ECHO_C" >&6; }
17111 if test "$srp" != no; then
17112   { echo "$as_me:$LINENO: result: enabled" >&5
17113 echo "${ECHO_T}enabled" >&6; }
17114   SRP_LIBS="-lcrypto $LIB_RSAREF"
17115
17116   SASL_MECHS="$SASL_MECHS libsrp.la"
17117   if test "$enable_static" = yes; then
17118     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/srp.c"
17119     SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
17120
17121 cat >>confdefs.h <<\_ACEOF
17122 #define STATIC_SRP
17123 _ACEOF
17124
17125   fi
17126
17127   # Check whether --enable-srp_setpass was given.
17128 if test "${enable_srp_setpass+set}" = set; then
17129   enableval=$enable_srp_setpass; srp_setpass=$enableval
17130 else
17131   srp_setpass=no
17132 fi
17133
17134
17135   { echo "$as_me:$LINENO: checking if we should enable setting SRP secrets with saslpasswd" >&5
17136 echo $ECHO_N "checking if we should enable setting SRP secrets with saslpasswd... $ECHO_C" >&6; }
17137   if test "$srp_setpass" != no; then
17138     { echo "$as_me:$LINENO: result: enabled" >&5
17139 echo "${ECHO_T}enabled" >&6; }
17140
17141 cat >>confdefs.h <<\_ACEOF
17142 #define DO_SRP_SETPASS
17143 _ACEOF
17144
17145   else
17146     { echo "$as_me:$LINENO: result: disabled" >&5
17147 echo "${ECHO_T}disabled" >&6; }
17148   fi
17149
17150
17151 else
17152   { echo "$as_me:$LINENO: result: disabled" >&5
17153 echo "${ECHO_T}disabled" >&6; }
17154 fi
17155
17156
17157
17158
17159   # Check whether --enable-krb4 was given.
17160 if test "${enable_krb4+set}" = set; then
17161   enableval=$enable_krb4; krb4=$enableval
17162 else
17163   krb4=no
17164 fi
17165
17166
17167   if test "$krb4" != no; then
17168
17169 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
17170 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
17171 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
17172   echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17174   ac_check_lib_save_LIBS=$LIBS
17175 LIBS="-lresolv  $LIBS"
17176 cat >conftest.$ac_ext <<_ACEOF
17177 /* confdefs.h.  */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h.  */
17182
17183 /* Override any GCC internal prototype to avoid an error.
17184    Use char because int might match the return type of a GCC
17185    builtin and then its argument prototype would still apply.  */
17186 #ifdef __cplusplus
17187 extern "C"
17188 #endif
17189 char res_search ();
17190 int
17191 main ()
17192 {
17193 return res_search ();
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (ac_try="$ac_link"
17200 case "(($ac_try" in
17201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202   *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205   (eval "$ac_link") 2>conftest.er1
17206   ac_status=$?
17207   grep -v '^ *+' conftest.er1 >conftest.err
17208   rm -f conftest.er1
17209   cat conftest.err >&5
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); } && {
17212          test -z "$ac_c_werror_flag" ||
17213          test ! -s conftest.err
17214        } && test -s conftest$ac_exeext &&
17215        $as_test_x conftest$ac_exeext; then
17216   ac_cv_lib_resolv_res_search=yes
17217 else
17218   echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17220
17221         ac_cv_lib_resolv_res_search=no
17222 fi
17223
17224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225       conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17227 fi
17228 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
17229 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
17230 if test $ac_cv_lib_resolv_res_search = yes; then
17231   cat >>confdefs.h <<_ACEOF
17232 #define HAVE_LIBRESOLV 1
17233 _ACEOF
17234
17235   LIBS="-lresolv $LIBS"
17236
17237 fi
17238
17239
17240             if test -d ${krb4}; then
17241        { echo "$as_me:$LINENO: checking for Kerberos includes" >&5
17242 echo $ECHO_N "checking for Kerberos includes... $ECHO_C" >&6; }
17243 if test "${cyrus_krbinclude+set}" = set; then
17244   echo $ECHO_N "(cached) $ECHO_C" >&6
17245 else
17246
17247          for krbhloc in include/kerberosIV include/kerberos include
17248          do
17249            if test -f ${krb4}/${krbhloc}/krb.h ; then
17250              cyrus_krbinclude=${krb4}/${krbhloc}
17251              break
17252            fi
17253          done
17254
17255 fi
17256 { echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
17257 echo "${ECHO_T}$cyrus_krbinclude" >&6; }
17258
17259        if test -n "${cyrus_krbinclude}"; then
17260          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
17261        fi
17262        LDFLAGS="$LDFLAGS -L$krb4/lib"
17263     fi
17264
17265     if test "$with_des" != no; then
17266       if test "${ac_cv_header_krb_h+set}" = set; then
17267   { echo "$as_me:$LINENO: checking for krb.h" >&5
17268 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
17269 if test "${ac_cv_header_krb_h+set}" = set; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 fi
17272 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17273 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
17274 else
17275   # Is the header compilable?
17276 { echo "$as_me:$LINENO: checking krb.h usability" >&5
17277 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
17278 cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284 $ac_includes_default
17285 #include <krb.h>
17286 _ACEOF
17287 rm -f conftest.$ac_objext
17288 if { (ac_try="$ac_compile"
17289 case "(($ac_try" in
17290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291   *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294   (eval "$ac_compile") 2>conftest.er1
17295   ac_status=$?
17296   grep -v '^ *+' conftest.er1 >conftest.err
17297   rm -f conftest.er1
17298   cat conftest.err >&5
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } && {
17301          test -z "$ac_c_werror_flag" ||
17302          test ! -s conftest.err
17303        } && test -s conftest.$ac_objext; then
17304   ac_header_compiler=yes
17305 else
17306   echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309         ac_header_compiler=no
17310 fi
17311
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17314 echo "${ECHO_T}$ac_header_compiler" >&6; }
17315
17316 # Is the header present?
17317 { echo "$as_me:$LINENO: checking krb.h presence" >&5
17318 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
17319 cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h.  */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h.  */
17325 #include <krb.h>
17326 _ACEOF
17327 if { (ac_try="$ac_cpp conftest.$ac_ext"
17328 case "(($ac_try" in
17329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330   *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17334   ac_status=$?
17335   grep -v '^ *+' conftest.er1 >conftest.err
17336   rm -f conftest.er1
17337   cat conftest.err >&5
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } >/dev/null && {
17340          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17341          test ! -s conftest.err
17342        }; then
17343   ac_header_preproc=yes
17344 else
17345   echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348   ac_header_preproc=no
17349 fi
17350
17351 rm -f conftest.err conftest.$ac_ext
17352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17353 echo "${ECHO_T}$ac_header_preproc" >&6; }
17354
17355 # So?  What about this header?
17356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17357   yes:no: )
17358     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
17359 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17360     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
17361 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
17362     ac_header_preproc=yes
17363     ;;
17364   no:yes:* )
17365     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
17366 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
17367     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
17368 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
17369     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
17370 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
17371     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
17372 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17373     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
17374 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
17375     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
17376 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
17377
17378     ;;
17379 esac
17380 { echo "$as_me:$LINENO: checking for krb.h" >&5
17381 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
17382 if test "${ac_cv_header_krb_h+set}" = set; then
17383   echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385   ac_cv_header_krb_h=$ac_header_preproc
17386 fi
17387 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17388 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
17389
17390 fi
17391 if test $ac_cv_header_krb_h = yes; then
17392
17393         { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17394 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
17395 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398   ac_check_lib_save_LIBS=$LIBS
17399 LIBS="-lcom_err  $LIBS"
17400 cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h.  */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h.  */
17406
17407 /* Override any GCC internal prototype to avoid an error.
17408    Use char because int might match the return type of a GCC
17409    builtin and then its argument prototype would still apply.  */
17410 #ifdef __cplusplus
17411 extern "C"
17412 #endif
17413 char com_err ();
17414 int
17415 main ()
17416 {
17417 return com_err ();
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426   *) ac_try_echo=$ac_try;;
17427 esac
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429   (eval "$ac_link") 2>conftest.er1
17430   ac_status=$?
17431   grep -v '^ *+' conftest.er1 >conftest.err
17432   rm -f conftest.er1
17433   cat conftest.err >&5
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); } && {
17436          test -z "$ac_c_werror_flag" ||
17437          test ! -s conftest.err
17438        } && test -s conftest$ac_exeext &&
17439        $as_test_x conftest$ac_exeext; then
17440   ac_cv_lib_com_err_com_err=yes
17441 else
17442   echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445         ac_cv_lib_com_err_com_err=no
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449       conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17451 fi
17452 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17453 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
17454 if test $ac_cv_lib_com_err_com_err = yes; then
17455
17456           { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
17457 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
17458 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
17459   echo $ECHO_N "(cached) $ECHO_C" >&6
17460 else
17461   ac_check_lib_save_LIBS=$LIBS
17462 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
17463 cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469
17470 /* Override any GCC internal prototype to avoid an error.
17471    Use char because int might match the return type of a GCC
17472    builtin and then its argument prototype would still apply.  */
17473 #ifdef __cplusplus
17474 extern "C"
17475 #endif
17476 char krb_mk_priv ();
17477 int
17478 main ()
17479 {
17480 return krb_mk_priv ();
17481   ;
17482   return 0;
17483 }
17484 _ACEOF
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (ac_try="$ac_link"
17487 case "(($ac_try" in
17488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489   *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492   (eval "$ac_link") 2>conftest.er1
17493   ac_status=$?
17494   grep -v '^ *+' conftest.er1 >conftest.err
17495   rm -f conftest.er1
17496   cat conftest.err >&5
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); } && {
17499          test -z "$ac_c_werror_flag" ||
17500          test ! -s conftest.err
17501        } && test -s conftest$ac_exeext &&
17502        $as_test_x conftest$ac_exeext; then
17503   ac_cv_lib_krb_krb_mk_priv=yes
17504 else
17505   echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508         ac_cv_lib_krb_krb_mk_priv=no
17509 fi
17510
17511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17512       conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17514 fi
17515 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
17516 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
17517 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
17518   COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
17519 else
17520   krb4lib=no
17521 fi
17522
17523 else
17524
17525           { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
17526 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
17527 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
17528   echo $ECHO_N "(cached) $ECHO_C" >&6
17529 else
17530   ac_check_lib_save_LIBS=$LIBS
17531 LIBS="-lkrb $LIB_DES $LIBS"
17532 cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538
17539 /* Override any GCC internal prototype to avoid an error.
17540    Use char because int might match the return type of a GCC
17541    builtin and then its argument prototype would still apply.  */
17542 #ifdef __cplusplus
17543 extern "C"
17544 #endif
17545 char krb_mk_priv ();
17546 int
17547 main ()
17548 {
17549 return krb_mk_priv ();
17550   ;
17551   return 0;
17552 }
17553 _ACEOF
17554 rm -f conftest.$ac_objext conftest$ac_exeext
17555 if { (ac_try="$ac_link"
17556 case "(($ac_try" in
17557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558   *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561   (eval "$ac_link") 2>conftest.er1
17562   ac_status=$?
17563   grep -v '^ *+' conftest.er1 >conftest.err
17564   rm -f conftest.er1
17565   cat conftest.err >&5
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); } && {
17568          test -z "$ac_c_werror_flag" ||
17569          test ! -s conftest.err
17570        } && test -s conftest$ac_exeext &&
17571        $as_test_x conftest$ac_exeext; then
17572   ac_cv_lib_krb_krb_mk_priv=yes
17573 else
17574   echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17576
17577         ac_cv_lib_krb_krb_mk_priv=no
17578 fi
17579
17580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17581       conftest$ac_exeext conftest.$ac_ext
17582 LIBS=$ac_check_lib_save_LIBS
17583 fi
17584 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
17585 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
17586 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
17587   COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
17588 else
17589   krb4lib=no
17590 fi
17591
17592 fi
17593
17594 else
17595   krb4="no"
17596 fi
17597
17598
17599
17600       if test "$krb4" != "no" -a "$krb4lib" = "no"; then
17601         { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5
17602 echo $ECHO_N "checking for krb_mk_priv in -lkrb4... $ECHO_C" >&6; }
17603 if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then
17604   echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606   ac_check_lib_save_LIBS=$LIBS
17607 LIBS="-lkrb4 $LIB_DES $LIBS"
17608 cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h.  */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h.  */
17614
17615 /* Override any GCC internal prototype to avoid an error.
17616    Use char because int might match the return type of a GCC
17617    builtin and then its argument prototype would still apply.  */
17618 #ifdef __cplusplus
17619 extern "C"
17620 #endif
17621 char krb_mk_priv ();
17622 int
17623 main ()
17624 {
17625 return krb_mk_priv ();
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 rm -f conftest.$ac_objext conftest$ac_exeext
17631 if { (ac_try="$ac_link"
17632 case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_link") 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } && {
17644          test -z "$ac_c_werror_flag" ||
17645          test ! -s conftest.err
17646        } && test -s conftest$ac_exeext &&
17647        $as_test_x conftest$ac_exeext; then
17648   ac_cv_lib_krb4_krb_mk_priv=yes
17649 else
17650   echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653         ac_cv_lib_krb4_krb_mk_priv=no
17654 fi
17655
17656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17657       conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17659 fi
17660 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
17661 echo "${ECHO_T}$ac_cv_lib_krb4_krb_mk_priv" >&6; }
17662 if test $ac_cv_lib_krb4_krb_mk_priv = yes; then
17663   COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
17664 else
17665   krb4=no
17666 fi
17667
17668       fi
17669       if test "$krb4" = no; then
17670           { echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5
17671 echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
17672       fi
17673     else
17674       { echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5
17675 echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
17676       krb4=no
17677     fi
17678   fi
17679
17680   if test "$krb4" != no; then
17681     cmu_save_LIBS="$LIBS"
17682     LIBS="$LIBS $SASL_KRB_LIB"
17683
17684 for ac_func in krb_get_err_text
17685 do
17686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17690   echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692   cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h.  */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h.  */
17698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17700 #define $ac_func innocuous_$ac_func
17701
17702 /* System header to define __stub macros and hopefully few prototypes,
17703     which can conflict with char $ac_func (); below.
17704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17705     <limits.h> exists even on freestanding compilers.  */
17706
17707 #ifdef __STDC__
17708 # include <limits.h>
17709 #else
17710 # include <assert.h>
17711 #endif
17712
17713 #undef $ac_func
17714
17715 /* Override any GCC internal prototype to avoid an error.
17716    Use char because int might match the return type of a GCC
17717    builtin and then its argument prototype would still apply.  */
17718 #ifdef __cplusplus
17719 extern "C"
17720 #endif
17721 char $ac_func ();
17722 /* The GNU C library defines this for functions which it implements
17723     to always fail with ENOSYS.  Some functions are actually named
17724     something starting with __ and the normal name is an alias.  */
17725 #if defined __stub_$ac_func || defined __stub___$ac_func
17726 choke me
17727 #endif
17728
17729 int
17730 main ()
17731 {
17732 return $ac_func ();
17733   ;
17734   return 0;
17735 }
17736 _ACEOF
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (ac_try="$ac_link"
17739 case "(($ac_try" in
17740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741   *) ac_try_echo=$ac_try;;
17742 esac
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744   (eval "$ac_link") 2>conftest.er1
17745   ac_status=$?
17746   grep -v '^ *+' conftest.er1 >conftest.err
17747   rm -f conftest.er1
17748   cat conftest.err >&5
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } && {
17751          test -z "$ac_c_werror_flag" ||
17752          test ! -s conftest.err
17753        } && test -s conftest$ac_exeext &&
17754        $as_test_x conftest$ac_exeext; then
17755   eval "$as_ac_var=yes"
17756 else
17757   echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760         eval "$as_ac_var=no"
17761 fi
17762
17763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17764       conftest$ac_exeext conftest.$ac_ext
17765 fi
17766 ac_res=`eval echo '${'$as_ac_var'}'`
17767                { echo "$as_me:$LINENO: result: $ac_res" >&5
17768 echo "${ECHO_T}$ac_res" >&6; }
17769 if test `eval echo '${'$as_ac_var'}'` = yes; then
17770   cat >>confdefs.h <<_ACEOF
17771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17772 _ACEOF
17773
17774 fi
17775 done
17776
17777     LIBS="$cmu_save_LIBS"
17778   fi
17779
17780   { echo "$as_me:$LINENO: checking KERBEROS_V4" >&5
17781 echo $ECHO_N "checking KERBEROS_V4... $ECHO_C" >&6; }
17782   if test "$krb4" != no; then
17783     { echo "$as_me:$LINENO: result: enabled" >&5
17784 echo "${ECHO_T}enabled" >&6; }
17785     SASL_MECHS="$SASL_MECHS libkerberos4.la"
17786     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
17787     SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
17788
17789 cat >>confdefs.h <<\_ACEOF
17790 #define STATIC_KERBEROS4
17791 _ACEOF
17792
17793
17794 cat >>confdefs.h <<\_ACEOF
17795 #define HAVE_KRB
17796 _ACEOF
17797
17798     SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
17799   else
17800     { echo "$as_me:$LINENO: result: disabled" >&5
17801 echo "${ECHO_T}disabled" >&6; }
17802   fi
17803
17804
17805 { echo "$as_me:$LINENO: checking for crypt" >&5
17806 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17807 if test "${ac_cv_func_crypt+set}" = set; then
17808   echo $ECHO_N "(cached) $ECHO_C" >&6
17809 else
17810   cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h.  */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h.  */
17816 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17818 #define crypt innocuous_crypt
17819
17820 /* System header to define __stub macros and hopefully few prototypes,
17821     which can conflict with char crypt (); below.
17822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17823     <limits.h> exists even on freestanding compilers.  */
17824
17825 #ifdef __STDC__
17826 # include <limits.h>
17827 #else
17828 # include <assert.h>
17829 #endif
17830
17831 #undef crypt
17832
17833 /* Override any GCC internal prototype to avoid an error.
17834    Use char because int might match the return type of a GCC
17835    builtin and then its argument prototype would still apply.  */
17836 #ifdef __cplusplus
17837 extern "C"
17838 #endif
17839 char crypt ();
17840 /* The GNU C library defines this for functions which it implements
17841     to always fail with ENOSYS.  Some functions are actually named
17842     something starting with __ and the normal name is an alias.  */
17843 #if defined __stub_crypt || defined __stub___crypt
17844 choke me
17845 #endif
17846
17847 int
17848 main ()
17849 {
17850 return crypt ();
17851   ;
17852   return 0;
17853 }
17854 _ACEOF
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (ac_try="$ac_link"
17857 case "(($ac_try" in
17858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859   *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862   (eval "$ac_link") 2>conftest.er1
17863   ac_status=$?
17864   grep -v '^ *+' conftest.er1 >conftest.err
17865   rm -f conftest.er1
17866   cat conftest.err >&5
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } && {
17869          test -z "$ac_c_werror_flag" ||
17870          test ! -s conftest.err
17871        } && test -s conftest$ac_exeext &&
17872        $as_test_x conftest$ac_exeext; then
17873   ac_cv_func_crypt=yes
17874 else
17875   echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17877
17878         ac_cv_func_crypt=no
17879 fi
17880
17881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17882       conftest$ac_exeext conftest.$ac_ext
17883 fi
17884 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17885 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17886 if test $ac_cv_func_crypt = yes; then
17887   cmu_have_crypt=yes
17888 else
17889   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17890 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17891 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17892   echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894   ac_check_lib_save_LIBS=$LIBS
17895 LIBS="-lcrypt  $LIBS"
17896 cat >conftest.$ac_ext <<_ACEOF
17897 /* confdefs.h.  */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h.  */
17902
17903 /* Override any GCC internal prototype to avoid an error.
17904    Use char because int might match the return type of a GCC
17905    builtin and then its argument prototype would still apply.  */
17906 #ifdef __cplusplus
17907 extern "C"
17908 #endif
17909 char crypt ();
17910 int
17911 main ()
17912 {
17913 return crypt ();
17914   ;
17915   return 0;
17916 }
17917 _ACEOF
17918 rm -f conftest.$ac_objext conftest$ac_exeext
17919 if { (ac_try="$ac_link"
17920 case "(($ac_try" in
17921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922   *) ac_try_echo=$ac_try;;
17923 esac
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925   (eval "$ac_link") 2>conftest.er1
17926   ac_status=$?
17927   grep -v '^ *+' conftest.er1 >conftest.err
17928   rm -f conftest.er1
17929   cat conftest.err >&5
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); } && {
17932          test -z "$ac_c_werror_flag" ||
17933          test ! -s conftest.err
17934        } && test -s conftest$ac_exeext &&
17935        $as_test_x conftest$ac_exeext; then
17936   ac_cv_lib_crypt_crypt=yes
17937 else
17938   echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17940
17941         ac_cv_lib_crypt_crypt=no
17942 fi
17943
17944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17945       conftest$ac_exeext conftest.$ac_ext
17946 LIBS=$ac_check_lib_save_LIBS
17947 fi
17948 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17949 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17950 if test $ac_cv_lib_crypt_crypt = yes; then
17951   LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
17952 else
17953   cmu_have_crypt=no
17954 fi
17955
17956 fi
17957
17958
17959
17960
17961
17962 # Check whether --enable-gssapi was given.
17963 if test "${enable_gssapi+set}" = set; then
17964   enableval=$enable_gssapi; gssapi=$enableval
17965 else
17966   gssapi=yes
17967 fi
17968
17969
17970 # Check whether --with-gss_impl was given.
17971 if test "${with_gss_impl+set}" = set; then
17972   withval=$with_gss_impl; gss_impl=$withval
17973 else
17974   gss_impl=auto
17975 fi
17976
17977
17978 if test "$gssapi" != no; then
17979   platform=
17980   case "${host}" in
17981     *-*-linux*)
17982       platform=__linux
17983       ;;
17984     *-*-hpux*)
17985       platform=__hpux
17986       ;;
17987     *-*-irix*)
17988       platform=__irix
17989       ;;
17990     *-*-solaris2*)
17991 # When should we use __sunos?
17992       platform=__solaris
17993       ;;
17994     *-*-aix*)
17995 ###_AIX
17996       platform=__aix
17997       ;;
17998     *)
17999       { 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
18000 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;}
18001       if test "$gss_impl" = "cybersafe"; then
18002         { { echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5
18003 echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;}
18004    { (exit 1); exit 1; }; }
18005       fi
18006       ;;
18007   esac
18008
18009   cmu_saved_CPPFLAGS=$CPPFLAGS
18010
18011   if test -d ${gssapi}; then
18012     CPPFLAGS="$CPPFLAGS -I$gssapi/include"
18013 # We want to keep -I in our CPPFLAGS, but only if we succeed
18014     cmu_saved_CPPFLAGS=$CPPFLAGS
18015 ### I am not sure how useful is this (and whether this is required at all
18016 ### especially when we have to provide two -L flags for new CyberSafe
18017     LDFLAGS="$LDFLAGS -L$gssapi/lib"
18018
18019     if test -n "$platform"; then
18020       if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
18021         CPPFLAGS="$CPPFLAGS -D$platform"
18022         if test -d "${gssapi}/appsec-sdk/include"; then
18023           CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
18024         fi
18025       fi
18026     fi
18027   fi
18028   if test "${ac_cv_header_gssapi_h+set}" = set; then
18029   { echo "$as_me:$LINENO: checking for gssapi.h" >&5
18030 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
18031 if test "${ac_cv_header_gssapi_h+set}" = set; then
18032   echo $ECHO_N "(cached) $ECHO_C" >&6
18033 fi
18034 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18035 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
18036 else
18037   # Is the header compilable?
18038 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
18039 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
18040 cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h.  */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h.  */
18046 $ac_includes_default
18047 #include <gssapi.h>
18048 _ACEOF
18049 rm -f conftest.$ac_objext
18050 if { (ac_try="$ac_compile"
18051 case "(($ac_try" in
18052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053   *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056   (eval "$ac_compile") 2>conftest.er1
18057   ac_status=$?
18058   grep -v '^ *+' conftest.er1 >conftest.err
18059   rm -f conftest.er1
18060   cat conftest.err >&5
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } && {
18063          test -z "$ac_c_werror_flag" ||
18064          test ! -s conftest.err
18065        } && test -s conftest.$ac_objext; then
18066   ac_header_compiler=yes
18067 else
18068   echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18070
18071         ac_header_compiler=no
18072 fi
18073
18074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18076 echo "${ECHO_T}$ac_header_compiler" >&6; }
18077
18078 # Is the header present?
18079 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
18080 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
18081 cat >conftest.$ac_ext <<_ACEOF
18082 /* confdefs.h.  */
18083 _ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h.  */
18087 #include <gssapi.h>
18088 _ACEOF
18089 if { (ac_try="$ac_cpp conftest.$ac_ext"
18090 case "(($ac_try" in
18091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092   *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } >/dev/null && {
18102          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18103          test ! -s conftest.err
18104        }; then
18105   ac_header_preproc=yes
18106 else
18107   echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18109
18110   ac_header_preproc=no
18111 fi
18112
18113 rm -f conftest.err conftest.$ac_ext
18114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18115 echo "${ECHO_T}$ac_header_preproc" >&6; }
18116
18117 # So?  What about this header?
18118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18119   yes:no: )
18120     { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
18121 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18122     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
18123 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
18124     ac_header_preproc=yes
18125     ;;
18126   no:yes:* )
18127     { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
18128 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
18129     { echo "$as_me:$LINENO: WARNING: gssapi.h:     check for missing prerequisite headers?" >&5
18130 echo "$as_me: WARNING: gssapi.h:     check for missing prerequisite headers?" >&2;}
18131     { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
18132 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
18133     { echo "$as_me:$LINENO: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&5
18134 echo "$as_me: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18135     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
18136 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
18137     { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
18138 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
18139
18140     ;;
18141 esac
18142 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
18143 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
18144 if test "${ac_cv_header_gssapi_h+set}" = set; then
18145   echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147   ac_cv_header_gssapi_h=$ac_header_preproc
18148 fi
18149 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18150 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
18151
18152 fi
18153 if test $ac_cv_header_gssapi_h = yes; then
18154
18155 cat >>confdefs.h <<\_ACEOF
18156 #define HAVE_GSSAPI_H
18157 _ACEOF
18158
18159 else
18160   if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
18161   { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
18162 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
18163 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
18164   echo $ECHO_N "(cached) $ECHO_C" >&6
18165 fi
18166 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18167 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
18168 else
18169   # Is the header compilable?
18170 { echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5
18171 echo $ECHO_N "checking gssapi/gssapi.h usability... $ECHO_C" >&6; }
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h.  */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h.  */
18178 $ac_includes_default
18179 #include <gssapi/gssapi.h>
18180 _ACEOF
18181 rm -f conftest.$ac_objext
18182 if { (ac_try="$ac_compile"
18183 case "(($ac_try" in
18184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185   *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188   (eval "$ac_compile") 2>conftest.er1
18189   ac_status=$?
18190   grep -v '^ *+' conftest.er1 >conftest.err
18191   rm -f conftest.er1
18192   cat conftest.err >&5
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); } && {
18195          test -z "$ac_c_werror_flag" ||
18196          test ! -s conftest.err
18197        } && test -s conftest.$ac_objext; then
18198   ac_header_compiler=yes
18199 else
18200   echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203         ac_header_compiler=no
18204 fi
18205
18206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18208 echo "${ECHO_T}$ac_header_compiler" >&6; }
18209
18210 # Is the header present?
18211 { echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5
18212 echo $ECHO_N "checking gssapi/gssapi.h presence... $ECHO_C" >&6; }
18213 cat >conftest.$ac_ext <<_ACEOF
18214 /* confdefs.h.  */
18215 _ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h.  */
18219 #include <gssapi/gssapi.h>
18220 _ACEOF
18221 if { (ac_try="$ac_cpp conftest.$ac_ext"
18222 case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } >/dev/null && {
18234          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18235          test ! -s conftest.err
18236        }; then
18237   ac_header_preproc=yes
18238 else
18239   echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18241
18242   ac_header_preproc=no
18243 fi
18244
18245 rm -f conftest.err conftest.$ac_ext
18246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18247 echo "${ECHO_T}$ac_header_preproc" >&6; }
18248
18249 # So?  What about this header?
18250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18251   yes:no: )
18252     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
18253 echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18254     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&5
18255 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&2;}
18256     ac_header_preproc=yes
18257     ;;
18258   no:yes:* )
18259     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5
18260 echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;}
18261     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h:     check for missing prerequisite headers?" >&5
18262 echo "$as_me: WARNING: gssapi/gssapi.h:     check for missing prerequisite headers?" >&2;}
18263     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&5
18264 echo "$as_me: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&2;}
18265     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h:     section \"Present But Cannot Be Compiled\"" >&5
18266 echo "$as_me: WARNING: gssapi/gssapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18267     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
18268 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
18269     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&5
18270 echo "$as_me: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&2;}
18271
18272     ;;
18273 esac
18274 { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
18275 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
18276 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
18277   echo $ECHO_N "(cached) $ECHO_C" >&6
18278 else
18279   ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
18280 fi
18281 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18282 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
18283
18284 fi
18285 if test $ac_cv_header_gssapi_gssapi_h = yes; then
18286   :
18287 else
18288   { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5
18289 echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
18290 fi
18291
18292
18293 fi
18294
18295
18296
18297 for ac_header in gssapi/gssapi_ext.h
18298 do
18299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18301   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18304   echo $ECHO_N "(cached) $ECHO_C" >&6
18305 fi
18306 ac_res=`eval echo '${'$as_ac_Header'}'`
18307                { echo "$as_me:$LINENO: result: $ac_res" >&5
18308 echo "${ECHO_T}$ac_res" >&6; }
18309 else
18310   # Is the header compilable?
18311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319 $ac_includes_default
18320 #include <$ac_header>
18321 _ACEOF
18322 rm -f conftest.$ac_objext
18323 if { (ac_try="$ac_compile"
18324 case "(($ac_try" in
18325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326   *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329   (eval "$ac_compile") 2>conftest.er1
18330   ac_status=$?
18331   grep -v '^ *+' conftest.er1 >conftest.err
18332   rm -f conftest.er1
18333   cat conftest.err >&5
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } && {
18336          test -z "$ac_c_werror_flag" ||
18337          test ! -s conftest.err
18338        } && test -s conftest.$ac_objext; then
18339   ac_header_compiler=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344         ac_header_compiler=no
18345 fi
18346
18347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18349 echo "${ECHO_T}$ac_header_compiler" >&6; }
18350
18351 # Is the header present?
18352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18354 cat >conftest.$ac_ext <<_ACEOF
18355 /* confdefs.h.  */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h.  */
18360 #include <$ac_header>
18361 _ACEOF
18362 if { (ac_try="$ac_cpp conftest.$ac_ext"
18363 case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18369   ac_status=$?
18370   grep -v '^ *+' conftest.er1 >conftest.err
18371   rm -f conftest.er1
18372   cat conftest.err >&5
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); } >/dev/null && {
18375          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18376          test ! -s conftest.err
18377        }; then
18378   ac_header_preproc=yes
18379 else
18380   echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383   ac_header_preproc=no
18384 fi
18385
18386 rm -f conftest.err conftest.$ac_ext
18387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18388 echo "${ECHO_T}$ac_header_preproc" >&6; }
18389
18390 # So?  What about this header?
18391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18392   yes:no: )
18393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18397     ac_header_preproc=yes
18398     ;;
18399   no:yes:* )
18400     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18402     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18403 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18404     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18406     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18407 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18410     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18412
18413     ;;
18414 esac
18415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18418   echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420   eval "$as_ac_Header=\$ac_header_preproc"
18421 fi
18422 ac_res=`eval echo '${'$as_ac_Header'}'`
18423                { echo "$as_me:$LINENO: result: $ac_res" >&5
18424 echo "${ECHO_T}$ac_res" >&6; }
18425
18426 fi
18427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18428   cat >>confdefs.h <<_ACEOF
18429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18430 _ACEOF
18431
18432 fi
18433
18434 done
18435
18436   CPPFLAGS=$cmu_saved_CPPFLAGS
18437
18438 fi
18439
18440 if test "$gssapi" != no; then
18441   # We need to find out which gssapi implementation we are
18442   # using. Supported alternatives are: MIT Kerberos 5,
18443   # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
18444   # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
18445   # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
18446   #
18447   # The choice is reflected in GSSAPIBASE_LIBS
18448
18449
18450 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
18451 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
18452 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
18453   echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455   ac_check_lib_save_LIBS=$LIBS
18456 LIBS="-lresolv  $LIBS"
18457 cat >conftest.$ac_ext <<_ACEOF
18458 /* confdefs.h.  */
18459 _ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h.  */
18463
18464 /* Override any GCC internal prototype to avoid an error.
18465    Use char because int might match the return type of a GCC
18466    builtin and then its argument prototype would still apply.  */
18467 #ifdef __cplusplus
18468 extern "C"
18469 #endif
18470 char res_search ();
18471 int
18472 main ()
18473 {
18474 return res_search ();
18475   ;
18476   return 0;
18477 }
18478 _ACEOF
18479 rm -f conftest.$ac_objext conftest$ac_exeext
18480 if { (ac_try="$ac_link"
18481 case "(($ac_try" in
18482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483   *) ac_try_echo=$ac_try;;
18484 esac
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486   (eval "$ac_link") 2>conftest.er1
18487   ac_status=$?
18488   grep -v '^ *+' conftest.er1 >conftest.err
18489   rm -f conftest.er1
18490   cat conftest.err >&5
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); } && {
18493          test -z "$ac_c_werror_flag" ||
18494          test ! -s conftest.err
18495        } && test -s conftest$ac_exeext &&
18496        $as_test_x conftest$ac_exeext; then
18497   ac_cv_lib_resolv_res_search=yes
18498 else
18499   echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18501
18502         ac_cv_lib_resolv_res_search=no
18503 fi
18504
18505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18506       conftest$ac_exeext conftest.$ac_ext
18507 LIBS=$ac_check_lib_save_LIBS
18508 fi
18509 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
18510 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
18511 if test $ac_cv_lib_resolv_res_search = yes; then
18512   cat >>confdefs.h <<_ACEOF
18513 #define HAVE_LIBRESOLV 1
18514 _ACEOF
18515
18516   LIBS="-lresolv $LIBS"
18517
18518 fi
18519
18520   if test -d ${gssapi}; then
18521      gssapi_dir="${gssapi}/lib"
18522      GSSAPIBASE_LIBS="-L$gssapi_dir"
18523      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
18524   else
18525      # FIXME: This is only used for building cyrus, and then only as
18526      # a real hack.  it needs to be fixed.
18527      gssapi_dir="/usr/local/lib"
18528   fi
18529
18530   # Check a full link against the Heimdal libraries.
18531   # If this fails, check a full link against the MIT libraries.
18532   # If this fails, check a full link against the CyberSafe libraries.
18533   # If this fails, check a full link against the Solaris 8 and up libgss.
18534
18535   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
18536     gss_failed=0
18537     { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
18538 echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6; }
18539 if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
18540   echo $ECHO_N "(cached) $ECHO_C" >&6
18541 else
18542   ac_check_lib_save_LIBS=$LIBS
18543 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
18544 cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h.  */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h.  */
18550
18551 /* Override any GCC internal prototype to avoid an error.
18552    Use char because int might match the return type of a GCC
18553    builtin and then its argument prototype would still apply.  */
18554 #ifdef __cplusplus
18555 extern "C"
18556 #endif
18557 char gss_unwrap ();
18558 int
18559 main ()
18560 {
18561 return gss_unwrap ();
18562   ;
18563   return 0;
18564 }
18565 _ACEOF
18566 rm -f conftest.$ac_objext conftest$ac_exeext
18567 if { (ac_try="$ac_link"
18568 case "(($ac_try" in
18569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570   *) ac_try_echo=$ac_try;;
18571 esac
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573   (eval "$ac_link") 2>conftest.er1
18574   ac_status=$?
18575   grep -v '^ *+' conftest.er1 >conftest.err
18576   rm -f conftest.er1
18577   cat conftest.err >&5
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); } && {
18580          test -z "$ac_c_werror_flag" ||
18581          test ! -s conftest.err
18582        } && test -s conftest$ac_exeext &&
18583        $as_test_x conftest$ac_exeext; then
18584   ac_cv_lib_gssapi_gss_unwrap=yes
18585 else
18586   echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18588
18589         ac_cv_lib_gssapi_gss_unwrap=no
18590 fi
18591
18592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18593       conftest$ac_exeext conftest.$ac_ext
18594 LIBS=$ac_check_lib_save_LIBS
18595 fi
18596 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
18597 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6; }
18598 if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
18599   gss_impl="heimdal"
18600 else
18601   gss_failed=1
18602 fi
18603
18604     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18605       gss_impl="failed"
18606     fi
18607   fi
18608
18609   if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
18610     # check for libkrb5support first
18611     { echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
18612 echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6; }
18613 if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
18614   echo $ECHO_N "(cached) $ECHO_C" >&6
18615 else
18616   ac_check_lib_save_LIBS=$LIBS
18617 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
18618 cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h.  */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h.  */
18624
18625 /* Override any GCC internal prototype to avoid an error.
18626    Use char because int might match the return type of a GCC
18627    builtin and then its argument prototype would still apply.  */
18628 #ifdef __cplusplus
18629 extern "C"
18630 #endif
18631 char krb5int_getspecific ();
18632 int
18633 main ()
18634 {
18635 return krb5int_getspecific ();
18636   ;
18637   return 0;
18638 }
18639 _ACEOF
18640 rm -f conftest.$ac_objext conftest$ac_exeext
18641 if { (ac_try="$ac_link"
18642 case "(($ac_try" in
18643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644   *) ac_try_echo=$ac_try;;
18645 esac
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647   (eval "$ac_link") 2>conftest.er1
18648   ac_status=$?
18649   grep -v '^ *+' conftest.er1 >conftest.err
18650   rm -f conftest.er1
18651   cat conftest.err >&5
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); } && {
18654          test -z "$ac_c_werror_flag" ||
18655          test ! -s conftest.err
18656        } && test -s conftest$ac_exeext &&
18657        $as_test_x conftest$ac_exeext; then
18658   ac_cv_lib_krb5support_krb5int_getspecific=yes
18659 else
18660   echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18662
18663         ac_cv_lib_krb5support_krb5int_getspecific=no
18664 fi
18665
18666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18667       conftest$ac_exeext conftest.$ac_ext
18668 LIBS=$ac_check_lib_save_LIBS
18669 fi
18670 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
18671 echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
18672 if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
18673   K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
18674 fi
18675
18676
18677     gss_failed=0
18678     { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
18679 echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6; }
18680 if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
18681   echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683   ac_check_lib_save_LIBS=$LIBS
18684 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
18685 cat >conftest.$ac_ext <<_ACEOF
18686 /* confdefs.h.  */
18687 _ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h.  */
18691
18692 /* Override any GCC internal prototype to avoid an error.
18693    Use char because int might match the return type of a GCC
18694    builtin and then its argument prototype would still apply.  */
18695 #ifdef __cplusplus
18696 extern "C"
18697 #endif
18698 char gss_unwrap ();
18699 int
18700 main ()
18701 {
18702 return gss_unwrap ();
18703   ;
18704   return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711   *) ac_try_echo=$ac_try;;
18712 esac
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714   (eval "$ac_link") 2>conftest.er1
18715   ac_status=$?
18716   grep -v '^ *+' conftest.er1 >conftest.err
18717   rm -f conftest.er1
18718   cat conftest.err >&5
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); } && {
18721          test -z "$ac_c_werror_flag" ||
18722          test ! -s conftest.err
18723        } && test -s conftest$ac_exeext &&
18724        $as_test_x conftest$ac_exeext; then
18725   ac_cv_lib_gssapi_krb5_gss_unwrap=yes
18726 else
18727   echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730         ac_cv_lib_gssapi_krb5_gss_unwrap=no
18731 fi
18732
18733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18734       conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18736 fi
18737 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
18738 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
18739 if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
18740   gss_impl="mit"
18741 else
18742   gss_failed=1
18743 fi
18744
18745     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18746       gss_impl="failed"
18747     fi
18748   fi
18749
18750   # For Cybersafe one has to set a platform define in order to make compilation work
18751   if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
18752
18753     cmu_saved_CPPFLAGS=$CPPFLAGS
18754     cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
18755 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
18756     if test -d "${gssapi}/appsec-rt/lib"; then
18757       GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
18758     fi
18759     CPPFLAGS="$CPPFLAGS -D$platform"
18760     if test -d "${gssapi}/appsec-sdk/include"; then
18761       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
18762     fi
18763
18764     gss_failed=0
18765
18766 # Check for CyberSafe with two libraries first, than fall back to a single
18767 # library (older CyberSafe)
18768
18769     unset ac_cv_lib_gss_csf_gss_acq_user
18770     { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18771 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18772 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18773   echo $ECHO_N "(cached) $ECHO_C" >&6
18774 else
18775   ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783
18784 /* Override any GCC internal prototype to avoid an error.
18785    Use char because int might match the return type of a GCC
18786    builtin and then its argument prototype would still apply.  */
18787 #ifdef __cplusplus
18788 extern "C"
18789 #endif
18790 char csf_gss_acq_user ();
18791 int
18792 main ()
18793 {
18794 return csf_gss_acq_user ();
18795   ;
18796   return 0;
18797 }
18798 _ACEOF
18799 rm -f conftest.$ac_objext conftest$ac_exeext
18800 if { (ac_try="$ac_link"
18801 case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_link") 2>conftest.er1
18807   ac_status=$?
18808   grep -v '^ *+' conftest.er1 >conftest.err
18809   rm -f conftest.er1
18810   cat conftest.err >&5
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } && {
18813          test -z "$ac_c_werror_flag" ||
18814          test ! -s conftest.err
18815        } && test -s conftest$ac_exeext &&
18816        $as_test_x conftest$ac_exeext; then
18817   ac_cv_lib_gss_csf_gss_acq_user=yes
18818 else
18819   echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18821
18822         ac_cv_lib_gss_csf_gss_acq_user=no
18823 fi
18824
18825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18826       conftest$ac_exeext conftest.$ac_ext
18827 LIBS=$ac_check_lib_save_LIBS
18828 fi
18829 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18830 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18831 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18832   gss_impl="cybersafe03"
18833 else
18834   unset ac_cv_lib_gss_csf_gss_acq_user;
18835                   { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18836 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18837 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18838   echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840   ac_check_lib_save_LIBS=$LIBS
18841 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
18842 cat >conftest.$ac_ext <<_ACEOF
18843 /* confdefs.h.  */
18844 _ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h.  */
18848
18849 /* Override any GCC internal prototype to avoid an error.
18850    Use char because int might match the return type of a GCC
18851    builtin and then its argument prototype would still apply.  */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 char csf_gss_acq_user ();
18856 int
18857 main ()
18858 {
18859 return csf_gss_acq_user ();
18860   ;
18861   return 0;
18862 }
18863 _ACEOF
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868   *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871   (eval "$ac_link") 2>conftest.er1
18872   ac_status=$?
18873   grep -v '^ *+' conftest.er1 >conftest.err
18874   rm -f conftest.er1
18875   cat conftest.err >&5
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); } && {
18878          test -z "$ac_c_werror_flag" ||
18879          test ! -s conftest.err
18880        } && test -s conftest$ac_exeext &&
18881        $as_test_x conftest$ac_exeext; then
18882   ac_cv_lib_gss_csf_gss_acq_user=yes
18883 else
18884   echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18886
18887         ac_cv_lib_gss_csf_gss_acq_user=no
18888 fi
18889
18890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18891       conftest$ac_exeext conftest.$ac_ext
18892 LIBS=$ac_check_lib_save_LIBS
18893 fi
18894 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18895 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18896 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18897   gss_impl="cybersafe"
18898 else
18899   gss_failed=1
18900 fi
18901
18902 fi
18903
18904
18905     if test "$gss_failed" = "1"; then
18906 # Restore variables
18907       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
18908       CPPFLAGS=$cmu_saved_CPPFLAGS
18909
18910       if test "$gss_impl" != "auto"; then
18911         gss_impl="failed"
18912       fi
18913     fi
18914   fi
18915
18916   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
18917     gss_failed=0
18918     { echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
18919 echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6; }
18920 if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923   ac_check_lib_save_LIBS=$LIBS
18924 LIBS="-lgss -lgss $LIBS"
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h.  */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h.  */
18931
18932 /* Override any GCC internal prototype to avoid an error.
18933    Use char because int might match the return type of a GCC
18934    builtin and then its argument prototype would still apply.  */
18935 #ifdef __cplusplus
18936 extern "C"
18937 #endif
18938 char gss_unwrap ();
18939 int
18940 main ()
18941 {
18942 return gss_unwrap ();
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_link") 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } && {
18961          test -z "$ac_c_werror_flag" ||
18962          test ! -s conftest.err
18963        } && test -s conftest$ac_exeext &&
18964        $as_test_x conftest$ac_exeext; then
18965   ac_cv_lib_gss_gss_unwrap=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970         ac_cv_lib_gss_gss_unwrap=no
18971 fi
18972
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974       conftest$ac_exeext conftest.$ac_ext
18975 LIBS=$ac_check_lib_save_LIBS
18976 fi
18977 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
18978 echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6; }
18979 if test $ac_cv_lib_gss_gss_unwrap = yes; then
18980   gss_impl="seam"
18981 else
18982   gss_failed=1
18983 fi
18984
18985     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18986       gss_impl="failed"
18987     fi
18988   fi
18989
18990   if test "$gss_impl" = "mit"; then
18991     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
18992     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
18993   elif test "$gss_impl" = "heimdal"; then
18994     CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
18995     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
18996     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}"
18997   elif test "$gss_impl" = "cybersafe03"; then
18998 # Version of CyberSafe with two libraries
18999     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
19000     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
19001     # there is no static libgss for CyberSafe
19002     GSSAPIBASE_STATIC_LIBS=none
19003   elif test "$gss_impl" = "cybersafe"; then
19004     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
19005     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
19006     # there is no static libgss for CyberSafe
19007     GSSAPIBASE_STATIC_LIBS=none
19008   elif test "$gss_impl" = "seam"; then
19009     GSSAPIBASE_LIBS=-lgss
19010     # there is no static libgss on Solaris 8 and up
19011     GSSAPIBASE_STATIC_LIBS=none
19012   elif test "$gss_impl" = "failed"; then
19013     gssapi="no"
19014     GSSAPIBASE_LIBS=
19015     GSSAPIBASE_STATIC_LIBS=
19016     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
19017 echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
19018   else
19019     gssapi="no"
19020     GSSAPIBASE_LIBS=
19021     GSSAPIBASE_STATIC_LIBS=
19022     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
19023 echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
19024   fi
19025 fi
19026
19027 #
19028 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
19029 # in gssapi\rfckrb5.h
19030 #
19031 if test "$gssapi" != "no"; then
19032   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
19033     cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h.  */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h.  */
19039 #include <gssapi/gssapi.h>
19040                   #ifdef GSS_C_NT_HOSTBASED_SERVICE
19041                     hostbased_service_gss_nt_yes
19042                   #endif
19043 _ACEOF
19044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19045   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
19046
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
19049 _ACEOF
19050
19051 else
19052   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
19053 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
19054 fi
19055 rm -f -r conftest*
19056
19057
19058   elif test "$ac_cv_header_gssapi_h" = "yes"; then
19059     cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065 #include <gssapi.h>
19066
19067 _ACEOF
19068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19069   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
19070
19071 cat >>confdefs.h <<\_ACEOF
19072 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
19073 _ACEOF
19074
19075 fi
19076 rm -f -r conftest*
19077
19078   elif test "$ac_cv_header_gssapi_gssapi_h"; then
19079     cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 #include <gssapi/gssapi.h>
19086
19087 _ACEOF
19088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19089   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
19090
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
19093 _ACEOF
19094
19095 fi
19096 rm -f -r conftest*
19097
19098   fi
19099
19100   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
19101     cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h.  */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h.  */
19107 #include <gssapi/gssapi.h>
19108                   #ifdef GSS_C_NT_USER_NAME
19109                    user_name_yes_gss_nt
19110                   #endif
19111 _ACEOF
19112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19113   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
19114
19115 cat >>confdefs.h <<\_ACEOF
19116 #define HAVE_GSS_C_NT_USER_NAME
19117 _ACEOF
19118
19119 else
19120   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
19121 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
19122 fi
19123 rm -f -r conftest*
19124
19125   elif test "$ac_cv_header_gssapi_h" = "yes"; then
19126     cat >conftest.$ac_ext <<_ACEOF
19127 /* confdefs.h.  */
19128 _ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h.  */
19132 #include <gssapi.h>
19133
19134 _ACEOF
19135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19136   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
19137
19138 cat >>confdefs.h <<\_ACEOF
19139 #define HAVE_GSS_C_NT_USER_NAME
19140 _ACEOF
19141
19142 fi
19143 rm -f -r conftest*
19144
19145     cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151 #include <gssapi.h>
19152
19153 _ACEOF
19154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19155   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
19156   rfc5587=yes
19157 fi
19158 rm -f -r conftest*
19159
19160   elif test "$ac_cv_header_gssapi_gssapi_h"; then
19161     cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h.  */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h.  */
19167 #include <gssapi/gssapi.h>
19168
19169 _ACEOF
19170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19171   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
19172
19173 cat >>confdefs.h <<\_ACEOF
19174 #define HAVE_GSS_C_NT_USER_NAME
19175 _ACEOF
19176
19177 fi
19178 rm -f -r conftest*
19179
19180     cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h.  */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h.  */
19186 #include <gssapi/gssapi.h>
19187
19188 _ACEOF
19189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19190   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
19191   rfc5587=yes
19192 fi
19193 rm -f -r conftest*
19194
19195   fi
19196 fi
19197
19198 GSSAPI_LIBS=""
19199 { echo "$as_me:$LINENO: checking GSSAPI" >&5
19200 echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6; }
19201 if test "$gssapi" != no; then
19202   { echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
19203 echo "${ECHO_T}with implementation ${gss_impl}" >&6; }
19204   { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
19205 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
19206 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
19207   echo $ECHO_N "(cached) $ECHO_C" >&6
19208 else
19209   ac_check_lib_save_LIBS=$LIBS
19210 LIBS="-lresolv  $LIBS"
19211 cat >conftest.$ac_ext <<_ACEOF
19212 /* confdefs.h.  */
19213 _ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h.  */
19217
19218 /* Override any GCC internal prototype to avoid an error.
19219    Use char because int might match the return type of a GCC
19220    builtin and then its argument prototype would still apply.  */
19221 #ifdef __cplusplus
19222 extern "C"
19223 #endif
19224 char res_search ();
19225 int
19226 main ()
19227 {
19228 return res_search ();
19229   ;
19230   return 0;
19231 }
19232 _ACEOF
19233 rm -f conftest.$ac_objext conftest$ac_exeext
19234 if { (ac_try="$ac_link"
19235 case "(($ac_try" in
19236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237   *) ac_try_echo=$ac_try;;
19238 esac
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240   (eval "$ac_link") 2>conftest.er1
19241   ac_status=$?
19242   grep -v '^ *+' conftest.er1 >conftest.err
19243   rm -f conftest.er1
19244   cat conftest.err >&5
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); } && {
19247          test -z "$ac_c_werror_flag" ||
19248          test ! -s conftest.err
19249        } && test -s conftest$ac_exeext &&
19250        $as_test_x conftest$ac_exeext; then
19251   ac_cv_lib_resolv_res_search=yes
19252 else
19253   echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256         ac_cv_lib_resolv_res_search=no
19257 fi
19258
19259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19260       conftest$ac_exeext conftest.$ac_ext
19261 LIBS=$ac_check_lib_save_LIBS
19262 fi
19263 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
19264 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
19265 if test $ac_cv_lib_resolv_res_search = yes; then
19266   GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
19267 fi
19268
19269   SASL_MECHS="$SASL_MECHS libgssapiv2.la"
19270   SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
19271   SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
19272   if test "$rfc5587" = "yes"; then
19273     SASL_MECHS="$SASL_MECHS libgs2.la"
19274     SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
19275     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
19276   fi
19277   cmu_save_LIBS="$LIBS"
19278   LIBS="$LIBS $GSSAPIBASE_LIBS"
19279
19280 for ac_func in gsskrb5_register_acceptor_identity
19281 do
19282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19286   echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288   cat >conftest.$ac_ext <<_ACEOF
19289 /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19296 #define $ac_func innocuous_$ac_func
19297
19298 /* System header to define __stub macros and hopefully few prototypes,
19299     which can conflict with char $ac_func (); below.
19300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19301     <limits.h> exists even on freestanding compilers.  */
19302
19303 #ifdef __STDC__
19304 # include <limits.h>
19305 #else
19306 # include <assert.h>
19307 #endif
19308
19309 #undef $ac_func
19310
19311 /* Override any GCC internal prototype to avoid an error.
19312    Use char because int might match the return type of a GCC
19313    builtin and then its argument prototype would still apply.  */
19314 #ifdef __cplusplus
19315 extern "C"
19316 #endif
19317 char $ac_func ();
19318 /* The GNU C library defines this for functions which it implements
19319     to always fail with ENOSYS.  Some functions are actually named
19320     something starting with __ and the normal name is an alias.  */
19321 #if defined __stub_$ac_func || defined __stub___$ac_func
19322 choke me
19323 #endif
19324
19325 int
19326 main ()
19327 {
19328 return $ac_func ();
19329   ;
19330   return 0;
19331 }
19332 _ACEOF
19333 rm -f conftest.$ac_objext conftest$ac_exeext
19334 if { (ac_try="$ac_link"
19335 case "(($ac_try" in
19336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337   *) ac_try_echo=$ac_try;;
19338 esac
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340   (eval "$ac_link") 2>conftest.er1
19341   ac_status=$?
19342   grep -v '^ *+' conftest.er1 >conftest.err
19343   rm -f conftest.er1
19344   cat conftest.err >&5
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); } && {
19347          test -z "$ac_c_werror_flag" ||
19348          test ! -s conftest.err
19349        } && test -s conftest$ac_exeext &&
19350        $as_test_x conftest$ac_exeext; then
19351   eval "$as_ac_var=yes"
19352 else
19353   echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19355
19356         eval "$as_ac_var=no"
19357 fi
19358
19359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19360       conftest$ac_exeext conftest.$ac_ext
19361 fi
19362 ac_res=`eval echo '${'$as_ac_var'}'`
19363                { echo "$as_me:$LINENO: result: $ac_res" >&5
19364 echo "${ECHO_T}$ac_res" >&6; }
19365 if test `eval echo '${'$as_ac_var'}'` = yes; then
19366   cat >>confdefs.h <<_ACEOF
19367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19368 _ACEOF
19369
19370 fi
19371 done
19372
19373   LIBS="$cmu_save_LIBS"
19374 else
19375   { echo "$as_me:$LINENO: result: disabled" >&5
19376 echo "${ECHO_T}disabled" >&6; }
19377 fi
19378
19379
19380
19381
19382 if test "$gssapi" != "no"; then
19383
19384 cat >>confdefs.h <<\_ACEOF
19385 #define STATIC_GSSAPIV2
19386 _ACEOF
19387
19388   mutex_default="no"
19389   if test "$gss_impl" = "mit"; then
19390      mutex_default="yes"
19391   fi
19392   { echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
19393 echo $ECHO_N "checking to use mutexes aroung GSS calls... $ECHO_C" >&6; }
19394   # Check whether --enable-gss_mutexes was given.
19395 if test "${enable_gss_mutexes+set}" = set; then
19396   enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
19397 else
19398   use_gss_mutexes=$mutex_default
19399 fi
19400
19401   if test $use_gss_mutexes = "yes"; then
19402
19403 cat >>confdefs.h <<\_ACEOF
19404 #define GSS_USE_MUTEXES
19405 _ACEOF
19406
19407   fi
19408   { echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
19409 echo "${ECHO_T}$use_gss_mutexes" >&6; }
19410 fi
19411
19412
19413
19414
19415  # Check whether --enable-plain was given.
19416 if test "${enable_plain+set}" = set; then
19417   enableval=$enable_plain; plain=$enableval
19418 else
19419   plain=yes
19420 fi
19421
19422
19423  PLAIN_LIBS=""
19424  if test "$plain" != no; then
19425     if test "$cmu_have_crypt" = yes; then
19426     PLAIN_LIBS=$LIB_CRYPT
19427   fi
19428  fi
19429
19430
19431  { echo "$as_me:$LINENO: checking PLAIN" >&5
19432 echo $ECHO_N "checking PLAIN... $ECHO_C" >&6; }
19433  if test "$plain" != no; then
19434   { echo "$as_me:$LINENO: result: enabled" >&5
19435 echo "${ECHO_T}enabled" >&6; }
19436   SASL_MECHS="$SASL_MECHS libplain.la"
19437   if test "$enable_static" = yes; then
19438     SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
19439     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
19440
19441 cat >>confdefs.h <<\_ACEOF
19442 #define STATIC_PLAIN
19443 _ACEOF
19444
19445   fi
19446  else
19447   { echo "$as_me:$LINENO: result: disabled" >&5
19448 echo "${ECHO_T}disabled" >&6; }
19449  fi
19450
19451
19452 # Check whether --enable-anon was given.
19453 if test "${enable_anon+set}" = set; then
19454   enableval=$enable_anon; anon=$enableval
19455 else
19456   anon=yes
19457 fi
19458
19459
19460 { echo "$as_me:$LINENO: checking ANONYMOUS" >&5
19461 echo $ECHO_N "checking ANONYMOUS... $ECHO_C" >&6; }
19462 if test "$anon" != no; then
19463   { echo "$as_me:$LINENO: result: enabled" >&5
19464 echo "${ECHO_T}enabled" >&6; }
19465   SASL_MECHS="$SASL_MECHS libanonymous.la"
19466   if test "$enable_static" = yes; then
19467     SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
19468     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
19469
19470 cat >>confdefs.h <<\_ACEOF
19471 #define STATIC_ANONYMOUS
19472 _ACEOF
19473
19474   fi
19475 else
19476   { echo "$as_me:$LINENO: result: disabled" >&5
19477 echo "${ECHO_T}disabled" >&6; }
19478 fi
19479
19480 # Check whether --enable-login was given.
19481 if test "${enable_login+set}" = set; then
19482   enableval=$enable_login; login=$enableval
19483 else
19484   login=no
19485 fi
19486
19487
19488 { echo "$as_me:$LINENO: checking LOGIN" >&5
19489 echo $ECHO_N "checking LOGIN... $ECHO_C" >&6; }
19490 if test "$login" != no; then
19491   { echo "$as_me:$LINENO: result: enabled" >&5
19492 echo "${ECHO_T}enabled" >&6; }
19493   SASL_MECHS="$SASL_MECHS liblogin.la"
19494   if test "$enable_static" = yes; then
19495     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
19496     SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
19497
19498 cat >>confdefs.h <<\_ACEOF
19499 #define STATIC_LOGIN
19500 _ACEOF
19501
19502   fi
19503 else
19504   { echo "$as_me:$LINENO: result: disabled" >&5
19505 echo "${ECHO_T}disabled" >&6; }
19506 fi
19507
19508 # Check whether --enable-ntlm was given.
19509 if test "${enable_ntlm+set}" = set; then
19510   enableval=$enable_ntlm; ntlm=$enableval
19511 else
19512   ntlm=no
19513 fi
19514
19515
19516 if test "$with_openssl" = no; then
19517   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
19518 echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
19519   ntlm=no
19520 fi
19521
19522 { echo "$as_me:$LINENO: checking NTLM" >&5
19523 echo $ECHO_N "checking NTLM... $ECHO_C" >&6; }
19524 if test "$ntlm" != no; then
19525   { echo "$as_me:$LINENO: result: enabled" >&5
19526 echo "${ECHO_T}enabled" >&6; }
19527   NTLM_LIBS="-lcrypto $LIB_RSAREF"
19528
19529
19530   SASL_MECHS="$SASL_MECHS libntlm.la"
19531   if test "$enable_static" = yes; then
19532     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
19533     SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
19534
19535 cat >>confdefs.h <<\_ACEOF
19536 #define STATIC_NTLM
19537 _ACEOF
19538
19539   fi
19540 else
19541   { echo "$as_me:$LINENO: result: disabled" >&5
19542 echo "${ECHO_T}disabled" >&6; }
19543 fi
19544
19545 # Check whether --enable-passdss was given.
19546 if test "${enable_passdss+set}" = set; then
19547   enableval=$enable_passdss; passdss=$enableval
19548 else
19549   passdss=no
19550 fi
19551
19552
19553 if test "$with_openssl" = no; then
19554   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
19555 echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
19556   passdss=no
19557 fi
19558
19559 { echo "$as_me:$LINENO: checking PASSDSS" >&5
19560 echo $ECHO_N "checking PASSDSS... $ECHO_C" >&6; }
19561 if test "$passdss" != no; then
19562   { echo "$as_me:$LINENO: result: enabled" >&5
19563 echo "${ECHO_T}enabled" >&6; }
19564   PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
19565
19566
19567   SASL_MECHS="$SASL_MECHS libpassdss.la"
19568   if test "$enable_static" = yes; then
19569     SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
19570     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
19571
19572 cat >>confdefs.h <<\_ACEOF
19573 #define STATIC_PASSDSS
19574 _ACEOF
19575
19576   fi
19577 else
19578   { echo "$as_me:$LINENO: result: disabled" >&5
19579 echo "${ECHO_T}disabled" >&6; }
19580 fi
19581
19582
19583 # make the option show up so people don't whine that it is only in the
19584 # saslauthd configure script --help
19585
19586 # Check whether --with-ldap was given.
19587 if test "${with_ldap+set}" = set; then
19588   withval=$with_ldap;
19589 else
19590   with_ldap=no
19591 fi
19592
19593
19594
19595
19596 # Check whether --enable-sql was given.
19597 if test "${enable_sql+set}" = set; then
19598   enableval=$enable_sql; sql=$enableval
19599 else
19600   sql=no
19601 fi
19602
19603
19604 { echo "$as_me:$LINENO: checking SQL" >&5
19605 echo $ECHO_N "checking SQL... $ECHO_C" >&6; }
19606 if test "$sql" != no; then
19607   { echo "$as_me:$LINENO: result: enabled" >&5
19608 echo "${ECHO_T}enabled" >&6; }
19609   SASL_MECHS="$SASL_MECHS libsql.la"
19610   if test "$enable_static" = yes; then
19611     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
19612     SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
19613
19614 cat >>confdefs.h <<\_ACEOF
19615 #define STATIC_SQL
19616 _ACEOF
19617
19618   fi
19619 else
19620   { echo "$as_me:$LINENO: result: disabled" >&5
19621 echo "${ECHO_T}disabled" >&6; }
19622 fi
19623
19624
19625 # Check whether --with-mysql was given.
19626 if test "${with_mysql+set}" = set; then
19627   withval=$with_mysql; with_mysql=$withval
19628 else
19629   with_mysql=$sql
19630 fi
19631
19632
19633 # find location of library
19634 # presuming if one given then correct
19635 if test "${with_mysql}" = "yes"; then
19636   with_mysql=notfound
19637   for mysqlloc in lib/mysql lib mysql/lib
19638   do
19639     if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
19640       with_mysql="${prefix}"
19641       break
19642     elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
19643       with_mysql="/usr/local"
19644       break
19645     elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
19646       with_mysql="/usr"
19647       break
19648     fi
19649   done
19650 fi
19651
19652 LIB_MYSQL=""
19653
19654 case "$with_mysql" in
19655     no) true;;
19656     notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
19657 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
19658     *)
19659      if test -d ${with_mysql}/lib/mysql; then
19660
19661   # this is CMU ADD LIBPATH TO
19662   if test "$andrew_runpath_switch" = "none" ; then
19663         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
19664   else
19665         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
19666   fi
19667
19668      elif test -d ${with_mysql}/mysql/lib; then
19669
19670   # this is CMU ADD LIBPATH TO
19671   if test "$andrew_runpath_switch" = "none" ; then
19672         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
19673   else
19674         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
19675   fi
19676
19677      elif test -d ${with_mysql}/lib; then
19678
19679   # this is CMU ADD LIBPATH TO
19680   if test "$andrew_runpath_switch" = "none" ; then
19681         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
19682   else
19683         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
19684   fi
19685
19686      else
19687
19688   # this is CMU ADD LIBPATH TO
19689   if test "$andrew_runpath_switch" = "none" ; then
19690         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
19691   else
19692         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
19693   fi
19694
19695      fi
19696
19697      LIB_MYSQL_DIR=$LIB_MYSQL
19698      LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
19699
19700      if test -d ${with_mysql}/include/mysql; then
19701          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
19702      elif test -d ${with_mysql}/mysql/include; then
19703          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
19704      elif test -d ${with_mysql}/include; then
19705          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
19706      else
19707          CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
19708      fi
19709
19710        save_LDFLAGS=$LDFLAGS
19711        LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
19712        { echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
19713 echo $ECHO_N "checking for mysql_select_db in -lmysqlclient... $ECHO_C" >&6; }
19714 if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lmysqlclient  $LIBS"
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h.  */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h.  */
19725
19726 /* Override any GCC internal prototype to avoid an error.
19727    Use char because int might match the return type of a GCC
19728    builtin and then its argument prototype would still apply.  */
19729 #ifdef __cplusplus
19730 extern "C"
19731 #endif
19732 char mysql_select_db ();
19733 int
19734 main ()
19735 {
19736 return mysql_select_db ();
19737   ;
19738   return 0;
19739 }
19740 _ACEOF
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745   *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748   (eval "$ac_link") 2>conftest.er1
19749   ac_status=$?
19750   grep -v '^ *+' conftest.er1 >conftest.err
19751   rm -f conftest.er1
19752   cat conftest.err >&5
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); } && {
19755          test -z "$ac_c_werror_flag" ||
19756          test ! -s conftest.err
19757        } && test -s conftest$ac_exeext &&
19758        $as_test_x conftest$ac_exeext; then
19759   ac_cv_lib_mysqlclient_mysql_select_db=yes
19760 else
19761   echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764         ac_cv_lib_mysqlclient_mysql_select_db=no
19765 fi
19766
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768       conftest$ac_exeext conftest.$ac_ext
19769 LIBS=$ac_check_lib_save_LIBS
19770 fi
19771 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
19772 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
19773 if test $ac_cv_lib_mysqlclient_mysql_select_db = yes; then
19774
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_MYSQL
19777 _ACEOF
19778
19779 else
19780   { echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
19781 echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
19782             with_mysql=no
19783 fi
19784
19785        LDFLAGS=$save_LDFLAGS;;
19786
19787 esac
19788
19789
19790
19791 # Check whether --with-pgsql was given.
19792 if test "${with_pgsql+set}" = set; then
19793   withval=$with_pgsql; with_pgsql=$withval
19794 else
19795   with_pgsql=$sql
19796 fi
19797
19798
19799 # find location of library
19800 # presuing if one given then correct
19801 if test "${with_pgsql}" = "yes"; then
19802   with_pgsql=notfound
19803   for pgsqlloc in lib/pgsql lib pgsql/lib
19804   do
19805     if test -f ${prefix}/${pgsqlloc}/libpq.a; then
19806       with_pgsql="${prefix}"
19807       break
19808     elif test -f /usr/local/${pgsqlloc}/libpq.a; then
19809       with_pgsql="/usr/local"
19810       break
19811     elif test -f /usr/${pgsqlloc}/libpq.a; then
19812       with_pgsql="/usr"
19813       break
19814     fi
19815   done
19816 fi
19817
19818 LIB_PGSQL=""
19819
19820 case "$with_pgsql" in
19821     no) true;;
19822     notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
19823 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
19824     *)
19825      if test -d ${with_pgsql}/lib/pgsql; then
19826
19827   # this is CMU ADD LIBPATH TO
19828   if test "$andrew_runpath_switch" = "none" ; then
19829         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
19830   else
19831         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
19832   fi
19833
19834      elif test -d ${with_pgsql}/pgsql/lib; then
19835
19836   # this is CMU ADD LIBPATH TO
19837   if test "$andrew_runpath_switch" = "none" ; then
19838         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
19839   else
19840         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
19841   fi
19842
19843      elif test -d ${with_pgsql}/lib; then
19844
19845   # this is CMU ADD LIBPATH TO
19846   if test "$andrew_runpath_switch" = "none" ; then
19847         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
19848   else
19849         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
19850   fi
19851
19852      else
19853
19854   # this is CMU ADD LIBPATH TO
19855   if test "$andrew_runpath_switch" = "none" ; then
19856         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
19857   else
19858         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
19859   fi
19860
19861      fi
19862
19863      LIB_PGSQL_DIR=$LIB_PGSQL
19864      LIB_PGSQL="$LIB_PGSQL -lpq"
19865
19866      if test -d ${with_pgsql}/include/pgsql; then
19867          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
19868      elif test -d ${with_pgsql}/pgsql/include; then
19869          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
19870      elif test -d ${with_pgsql}/include; then
19871          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
19872      else
19873          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
19874      fi
19875
19876
19877        save_LDFLAGS=$LDFLAGS
19878        LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
19879        { echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
19880 echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6; }
19881 if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   ac_check_lib_save_LIBS=$LIBS
19885 LIBS="-lpq  $LIBS"
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h.  */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h.  */
19892
19893 /* Override any GCC internal prototype to avoid an error.
19894    Use char because int might match the return type of a GCC
19895    builtin and then its argument prototype would still apply.  */
19896 #ifdef __cplusplus
19897 extern "C"
19898 #endif
19899 char PQsetdbLogin ();
19900 int
19901 main ()
19902 {
19903 return PQsetdbLogin ();
19904   ;
19905   return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (ac_try="$ac_link"
19910 case "(($ac_try" in
19911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912   *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915   (eval "$ac_link") 2>conftest.er1
19916   ac_status=$?
19917   grep -v '^ *+' conftest.er1 >conftest.err
19918   rm -f conftest.er1
19919   cat conftest.err >&5
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); } && {
19922          test -z "$ac_c_werror_flag" ||
19923          test ! -s conftest.err
19924        } && test -s conftest$ac_exeext &&
19925        $as_test_x conftest$ac_exeext; then
19926   ac_cv_lib_pq_PQsetdbLogin=yes
19927 else
19928   echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19930
19931         ac_cv_lib_pq_PQsetdbLogin=no
19932 fi
19933
19934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19935       conftest$ac_exeext conftest.$ac_ext
19936 LIBS=$ac_check_lib_save_LIBS
19937 fi
19938 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
19939 echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6; }
19940 if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
19941
19942 cat >>confdefs.h <<\_ACEOF
19943 #define HAVE_PGSQL
19944 _ACEOF
19945
19946 else
19947   { echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
19948 echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
19949             with_pgsql=no
19950 fi
19951
19952        LDFLAGS=$save_LDFLAGS;;
19953
19954 esac
19955
19956
19957
19958 # Check whether --with-sqlite was given.
19959 if test "${with_sqlite+set}" = set; then
19960   withval=$with_sqlite; with_sqlite=$withval
19961 else
19962   with_sqlite=$sql
19963 fi
19964
19965
19966 # find location of library
19967 # presuing if one given then correct
19968 if test "${with_sqlite}" = "yes"; then
19969   with_sqlite=notfound
19970   for sqliteloc in lib
19971   do
19972     if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
19973       with_sqlite="${prefix}"
19974       break
19975     elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
19976       with_sqlite="/usr/local"
19977       break
19978     elif test -f /usr/${sqliteloc}/libsqlite.a; then
19979       with_sqlite="/usr"
19980       break
19981     fi
19982   done
19983 fi
19984
19985 LIB_SQLITE=""
19986
19987 case "$with_sqlite" in
19988     no) true;;
19989     notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
19990 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
19991     *)
19992      if test -d ${with_sqlite}/lib; then
19993          LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
19994      else
19995          LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
19996      fi
19997
19998      LIB_SQLITE_DIR=$LIB_SQLITE
19999      LIB_SQLITE="$LIB_SQLITE -lsqlite"
20000
20001      if test -d ${with_sqlite}/include; then
20002          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
20003      else
20004          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
20005      fi
20006        { echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
20007 echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6; }
20008 if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
20009   echo $ECHO_N "(cached) $ECHO_C" >&6
20010 else
20011   ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019
20020 /* Override any GCC internal prototype to avoid an error.
20021    Use char because int might match the return type of a GCC
20022    builtin and then its argument prototype would still apply.  */
20023 #ifdef __cplusplus
20024 extern "C"
20025 #endif
20026 char sqlite_open ();
20027 int
20028 main ()
20029 {
20030 return sqlite_open ();
20031   ;
20032   return 0;
20033 }
20034 _ACEOF
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_link") 2>conftest.er1
20043   ac_status=$?
20044   grep -v '^ *+' conftest.er1 >conftest.err
20045   rm -f conftest.er1
20046   cat conftest.err >&5
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } && {
20049          test -z "$ac_c_werror_flag" ||
20050          test ! -s conftest.err
20051        } && test -s conftest$ac_exeext &&
20052        $as_test_x conftest$ac_exeext; then
20053   ac_cv_lib_sqlite_sqlite_open=yes
20054 else
20055   echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058         ac_cv_lib_sqlite_sqlite_open=no
20059 fi
20060
20061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20062       conftest$ac_exeext conftest.$ac_ext
20063 LIBS=$ac_check_lib_save_LIBS
20064 fi
20065 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
20066 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6; }
20067 if test $ac_cv_lib_sqlite_sqlite_open = yes; then
20068
20069 cat >>confdefs.h <<\_ACEOF
20070 #define HAVE_SQLITE
20071 _ACEOF
20072
20073 else
20074   { echo "$as_me:$LINENO: WARNING: SQLite Library sqlite does not work" >&5
20075 echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
20076             with_sqlite=no
20077 fi
20078 ;;
20079
20080 esac
20081
20082
20083 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
20084     { { echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&5
20085 echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&2;}
20086    { (exit 1); exit 1; }; }
20087 fi
20088
20089 if test "$enable_shared" = yes; then
20090
20091 cat >>confdefs.h <<\_ACEOF
20092 #define DO_DLOPEN
20093 _ACEOF
20094
20095 fi
20096
20097 # Check whether --enable-ldapdb was given.
20098 if test "${enable_ldapdb+set}" = set; then
20099   enableval=$enable_ldapdb; ldapdb=$enableval
20100 else
20101   ldapdb=no
20102 fi
20103
20104 { echo "$as_me:$LINENO: checking LDAPDB" >&5
20105 echo $ECHO_N "checking LDAPDB... $ECHO_C" >&6; }
20106 if test "$ldapdb" != no; then
20107     { echo "$as_me:$LINENO: result: enabled" >&5
20108 echo "${ECHO_T}enabled" >&6; }
20109
20110     if test "$with_ldap" = no; then
20111         { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&5
20112 echo "$as_me: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&2;}
20113    { (exit 1); exit 1; }; }
20114     fi
20115
20116     save_CPPFLAGS=$CPPFLAGS
20117     save_LDFLAGS=$LDFLAGS
20118
20119     if test -d $with_ldap; then
20120         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
20121
20122   # this is CMU ADD LIBPATH
20123   if test "$andrew_runpath_switch" = "none" ; then
20124         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
20125   else
20126         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
20127   fi
20128
20129     fi
20130
20131
20132
20133 for ac_header in ldap.h lber.h
20134 do
20135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20137   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20140   echo $ECHO_N "(cached) $ECHO_C" >&6
20141 fi
20142 ac_res=`eval echo '${'$as_ac_Header'}'`
20143                { echo "$as_me:$LINENO: result: $ac_res" >&5
20144 echo "${ECHO_T}$ac_res" >&6; }
20145 else
20146   # Is the header compilable?
20147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155 $ac_includes_default
20156 #include <$ac_header>
20157 _ACEOF
20158 rm -f conftest.$ac_objext
20159 if { (ac_try="$ac_compile"
20160 case "(($ac_try" in
20161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162   *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165   (eval "$ac_compile") 2>conftest.er1
20166   ac_status=$?
20167   grep -v '^ *+' conftest.er1 >conftest.err
20168   rm -f conftest.er1
20169   cat conftest.err >&5
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); } && {
20172          test -z "$ac_c_werror_flag" ||
20173          test ! -s conftest.err
20174        } && test -s conftest.$ac_objext; then
20175   ac_header_compiler=yes
20176 else
20177   echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180         ac_header_compiler=no
20181 fi
20182
20183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20185 echo "${ECHO_T}$ac_header_compiler" >&6; }
20186
20187 # Is the header present?
20188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20190 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196 #include <$ac_header>
20197 _ACEOF
20198 if { (ac_try="$ac_cpp conftest.$ac_ext"
20199 case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20205   ac_status=$?
20206   grep -v '^ *+' conftest.er1 >conftest.err
20207   rm -f conftest.er1
20208   cat conftest.err >&5
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); } >/dev/null && {
20211          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20212          test ! -s conftest.err
20213        }; then
20214   ac_header_preproc=yes
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219   ac_header_preproc=no
20220 fi
20221
20222 rm -f conftest.err conftest.$ac_ext
20223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20224 echo "${ECHO_T}$ac_header_preproc" >&6; }
20225
20226 # So?  What about this header?
20227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20228   yes:no: )
20229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20233     ac_header_preproc=yes
20234     ;;
20235   no:yes:* )
20236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20248
20249     ;;
20250 esac
20251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20254   echo $ECHO_N "(cached) $ECHO_C" >&6
20255 else
20256   eval "$as_ac_Header=\$ac_header_preproc"
20257 fi
20258 ac_res=`eval echo '${'$as_ac_Header'}'`
20259                { echo "$as_me:$LINENO: result: $ac_res" >&5
20260 echo "${ECHO_T}$ac_res" >&6; }
20261
20262 fi
20263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20264   cat >>confdefs.h <<_ACEOF
20265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20266 _ACEOF
20267
20268 fi
20269
20270 done
20271
20272
20273     if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
20274         { echo "$as_me:$LINENO: checking OpenLDAP api" >&5
20275 echo $ECHO_N "checking OpenLDAP api... $ECHO_C" >&6; }
20276 if test "${cmu_cv_openldap_api+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279
20280     cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286
20287 #include <ldap.h>
20288
20289 #ifdef LDAP_API_FEATURE_X_OPENLDAP
20290 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
20291 #endif
20292
20293 _ACEOF
20294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20295   $EGREP "__openldap_api" >/dev/null 2>&1; then
20296   cmu_cv_openldap_api=yes
20297 else
20298   cmu_cv_openldap_api=no
20299 fi
20300 rm -f -r conftest*
20301
20302 fi
20303 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
20304 echo "${ECHO_T}$cmu_cv_openldap_api" >&6; }
20305
20306
20307         if test "$cmu_cv_openldap_api" = yes; then
20308             { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
20309 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
20310 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
20311   echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313   ac_check_lib_save_LIBS=$LIBS
20314 LIBS="-lldap -llber $LIBS"
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321
20322 /* Override any GCC internal prototype to avoid an error.
20323    Use char because int might match the return type of a GCC
20324    builtin and then its argument prototype would still apply.  */
20325 #ifdef __cplusplus
20326 extern "C"
20327 #endif
20328 char ldap_initialize ();
20329 int
20330 main ()
20331 {
20332 return ldap_initialize ();
20333   ;
20334   return 0;
20335 }
20336 _ACEOF
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344   (eval "$ac_link") 2>conftest.er1
20345   ac_status=$?
20346   grep -v '^ *+' conftest.er1 >conftest.err
20347   rm -f conftest.er1
20348   cat conftest.err >&5
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } && {
20351          test -z "$ac_c_werror_flag" ||
20352          test ! -s conftest.err
20353        } && test -s conftest$ac_exeext &&
20354        $as_test_x conftest$ac_exeext; then
20355   ac_cv_lib_ldap_ldap_initialize=yes
20356 else
20357   echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360         ac_cv_lib_ldap_ldap_initialize=no
20361 fi
20362
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364       conftest$ac_exeext conftest.$ac_ext
20365 LIBS=$ac_check_lib_save_LIBS
20366 fi
20367 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
20368 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
20369 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
20370    cmu_link_openldap="-lldap -llber"
20371 else
20372    cmu_link_openldap=no
20373 fi
20374
20375         fi
20376     fi
20377
20378     if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
20379         { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&5
20380 echo "$as_me: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&2;}
20381    { (exit 1); exit 1; }; }
20382     else
20383         { echo "$as_me:$LINENO: checking OpenLDAP version" >&5
20384 echo $ECHO_N "checking OpenLDAP version... $ECHO_C" >&6; }
20385 if test "${cmu_cv_openldap_compat+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388
20389     cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h.  */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h.  */
20395
20396 #include <ldap.h>
20397
20398 /* Require 2.1.27+ and 2.2.6+ */
20399 #if LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
20400 char *__openldap_compat = "2.1.27 or better okay";
20401 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
20402 char *__openldap_compat = "2.2.6 or better okay";
20403 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR > 2
20404 char *__openldap_compat = "2.3 or better okay"
20405 #endif
20406
20407 _ACEOF
20408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20409   $EGREP "__openldap_compat" >/dev/null 2>&1; then
20410   cmu_cv_openldap_compat=yes
20411 else
20412   cmu_cv_openldap_compat=no
20413 fi
20414 rm -f -r conftest*
20415
20416 fi
20417 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
20418 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6; }
20419
20420
20421         if test "$cmu_cv_openldap_compat" = no; then
20422             { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&5
20423 echo "$as_me: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&2;}
20424    { (exit 1); exit 1; }; }
20425         else
20426             LIB_LDAP=$cmu_link_openldap
20427
20428
20429             SASL_MECHS="$SASL_MECHS libldapdb.la"
20430             if test "$enable_static" = yes; then
20431                 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
20432                 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
20433
20434 cat >>confdefs.h <<\_ACEOF
20435 #define STATIC_LDAPDB
20436 _ACEOF
20437
20438             fi
20439         fi
20440     fi
20441
20442     if test "$cmu_cv_openldap_compat" != yes; then
20443         CPPFLAGS=$save_CPPFLAGS
20444         LDFLAGS=$save_LDFLAGS
20445     fi
20446 else
20447     { echo "$as_me:$LINENO: result: disabled" >&5
20448 echo "${ECHO_T}disabled" >&6; }
20449 fi
20450
20451
20452
20453
20454
20455
20456
20457 # Check whether --with-plugindir was given.
20458 if test "${with_plugindir+set}" = set; then
20459   withval=$with_plugindir; plugindir=$withval
20460 else
20461   plugindir=/usr/lib/sasl2
20462 fi
20463
20464
20465 cat >>confdefs.h <<_ACEOF
20466 #define PLUGINDIR "$plugindir"
20467 _ACEOF
20468
20469
20470
20471
20472 # Check whether --with-configdir was given.
20473 if test "${with_configdir+set}" = set; then
20474   withval=$with_configdir; configdir=$withval
20475 else
20476   configdir=$plugindir:/etc/sasl2
20477 fi
20478
20479
20480 cat >>confdefs.h <<_ACEOF
20481 #define CONFIGDIR "$configdir"
20482 _ACEOF
20483
20484
20485
20486
20487 # Check whether --with-rc4 was given.
20488 if test "${with_rc4+set}" = set; then
20489   withval=$with_rc4; with_rc4=$withval
20490 else
20491   with_rc4=yes
20492 fi
20493
20494
20495 if test "$with_rc4" != no; then
20496
20497 cat >>confdefs.h <<\_ACEOF
20498 #define WITH_RC4
20499 _ACEOF
20500
20501 fi
20502
20503 building_for_macosx=no
20504 case "$host_os" in
20505         darwin*)
20506 # Check whether --enable-macos-framework was given.
20507 if test "${enable_macos_framework+set}" = set; then
20508   enableval=$enable_macos_framework; building_for_macosx=no
20509 else
20510   building_for_macosx=yes
20511 fi
20512
20513         ;;
20514 esac
20515  if test "$building_for_macosx" = yes; then
20516   MACOSX_TRUE=
20517   MACOSX_FALSE='#'
20518 else
20519   MACOSX_TRUE='#'
20520   MACOSX_FALSE=
20521 fi
20522
20523
20524 { echo "$as_me:$LINENO: checking for dmalloc library" >&5
20525 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6; }
20526
20527 # Check whether --with-dmalloc was given.
20528 if test "${with_dmalloc+set}" = set; then
20529   withval=$with_dmalloc; with_dmalloc=$withval
20530 else
20531   with_dmalloc=no
20532 fi
20533
20534
20535 DMALLOC_LIBS=""
20536
20537 if test "$with_dmalloc" != "no"; then
20538    if test "$with_dmalloc" = "yes"; then
20539         with_dmalloc="/usr/local"
20540    fi
20541
20542    if test -r "$with_dmalloc/libdmalloc.a"; then
20543         DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
20544
20545 cat >>confdefs.h <<\_ACEOF
20546 #define WITH_DMALLOC
20547 _ACEOF
20548
20549         { echo "$as_me:$LINENO: result: yes" >&5
20550 echo "${ECHO_T}yes" >&6; }
20551    elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
20552         DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
20553
20554 cat >>confdefs.h <<\_ACEOF
20555 #define WITH_DMALLOC
20556 _ACEOF
20557
20558         { echo "$as_me:$LINENO: result: yes" >&5
20559 echo "${ECHO_T}yes" >&6; }
20560    else
20561         { { echo "$as_me:$LINENO: error: cannot find dmalloc library" >&5
20562 echo "$as_me: error: cannot find dmalloc library" >&2;}
20563    { (exit please check your installation.); exit please check your installation.; }; }
20564    fi
20565 else
20566    { echo "$as_me:$LINENO: result: no" >&5
20567 echo "${ECHO_T}no" >&6; }
20568 fi
20569
20570
20571
20572 { echo "$as_me:$LINENO: checking for sfio library" >&5
20573 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6; }
20574
20575 # Check whether --with-sfio was given.
20576 if test "${with_sfio+set}" = set; then
20577   withval=$with_sfio; with_sfio=$withval
20578 else
20579   with_sfio=no
20580 fi
20581
20582
20583 if test "$with_sfio" != "no"; then
20584    if test "$with_sfio" = "yes"; then
20585         with_sfio="/usr/local"
20586    fi
20587
20588
20589
20590
20591
20592    if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20593                                               SFIO_INC_DIR=$with_sfio
20594    elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
20595                                               SFIO_INC_DIR=$with_sfio/include
20596    elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20597                                               SFIO_INC_DIR=$with_sfio/include/sfio
20598    fi
20599
20600    if test -z "$SFIO_DIR"; then
20601         { { echo "$as_me:$LINENO: error: Cannot find sfio.h" >&5
20602 echo "$as_me: error: Cannot find sfio.h" >&2;}
20603    { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20604    fi
20605
20606
20607                 str="$SFIO_DIR/lib/libsfio.*"
20608                 for i in `echo $str`; do
20609                         if test -r $i; then
20610                                 SFIO_LIBDIR=$SFIO_DIR/lib
20611                                 break 2
20612                         fi
20613                 done
20614
20615
20616                 str="$SFIO_DIR/lib/sfio/libsfio.*"
20617                 for i in `echo $str`; do
20618                         if test -r $i; then
20619                                 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
20620                                 break 2
20621                         fi
20622                 done
20623
20624
20625    if test -z "$SFIO_LIBDIR"; then
20626         { { echo "$as_me:$LINENO: error: Cannot find sfio library" >&5
20627 echo "$as_me: error: Cannot find sfio library" >&2;}
20628    { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20629    fi
20630
20631    SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
20632    SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
20633    SMTPTEST_PROGRAM="smtptest"
20634    SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
20635    SASL_UTIL_HEADERS_EXTRA=sfsasl.h
20636
20637    { echo "$as_me:$LINENO: result: yes" >&5
20638 echo "${ECHO_T}yes" >&6; }
20639 else
20640    { echo "$as_me:$LINENO: result: no" >&5
20641 echo "${ECHO_T}no" >&6; }
20642    SFIO_INC_FLAGS=""
20643    SFIO_LIB_FLAGS=""
20644    SMTPTEST_PROGRAM=""
20645    SASL_UTIL_LIBS_EXTRA=""
20646    SASL_UTIL_HEADERS_EXTRA=""
20647 fi
20648
20649
20650
20651
20652
20653
20654
20655 sasl_cv_getsubopt=no
20656 { echo "$as_me:$LINENO: checking for getsubopt" >&5
20657 echo $ECHO_N "checking for getsubopt... $ECHO_C" >&6; }
20658 if test "${ac_cv_func_getsubopt+set}" = set; then
20659   echo $ECHO_N "(cached) $ECHO_C" >&6
20660 else
20661   cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667 /* Define getsubopt to an innocuous variant, in case <limits.h> declares getsubopt.
20668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20669 #define getsubopt innocuous_getsubopt
20670
20671 /* System header to define __stub macros and hopefully few prototypes,
20672     which can conflict with char getsubopt (); below.
20673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20674     <limits.h> exists even on freestanding compilers.  */
20675
20676 #ifdef __STDC__
20677 # include <limits.h>
20678 #else
20679 # include <assert.h>
20680 #endif
20681
20682 #undef getsubopt
20683
20684 /* Override any GCC internal prototype to avoid an error.
20685    Use char because int might match the return type of a GCC
20686    builtin and then its argument prototype would still apply.  */
20687 #ifdef __cplusplus
20688 extern "C"
20689 #endif
20690 char getsubopt ();
20691 /* The GNU C library defines this for functions which it implements
20692     to always fail with ENOSYS.  Some functions are actually named
20693     something starting with __ and the normal name is an alias.  */
20694 #if defined __stub_getsubopt || defined __stub___getsubopt
20695 choke me
20696 #endif
20697
20698 int
20699 main ()
20700 {
20701 return getsubopt ();
20702   ;
20703   return 0;
20704 }
20705 _ACEOF
20706 rm -f conftest.$ac_objext conftest$ac_exeext
20707 if { (ac_try="$ac_link"
20708 case "(($ac_try" in
20709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710   *) ac_try_echo=$ac_try;;
20711 esac
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713   (eval "$ac_link") 2>conftest.er1
20714   ac_status=$?
20715   grep -v '^ *+' conftest.er1 >conftest.err
20716   rm -f conftest.er1
20717   cat conftest.err >&5
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } && {
20720          test -z "$ac_c_werror_flag" ||
20721          test ! -s conftest.err
20722        } && test -s conftest$ac_exeext &&
20723        $as_test_x conftest$ac_exeext; then
20724   ac_cv_func_getsubopt=yes
20725 else
20726   echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729         ac_cv_func_getsubopt=no
20730 fi
20731
20732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20733       conftest$ac_exeext conftest.$ac_ext
20734 fi
20735 { echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5
20736 echo "${ECHO_T}$ac_cv_func_getsubopt" >&6; }
20737 if test $ac_cv_func_getsubopt = yes; then
20738
20739 cat >>confdefs.h <<\_ACEOF
20740 #define HAVE_GETSUBOPT
20741 _ACEOF
20742
20743 else
20744   sasl_cv_getsubopt=yes
20745 fi
20746
20747 if test $sasl_cv_getsubopt = yes; then
20748         case " $LIBOBJS " in
20749   *" getsubopt.$ac_objext "* ) ;;
20750   *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
20751  ;;
20752 esac
20753
20754         GETSUBOPT="getsubopt.lo"
20755 fi
20756
20757
20758 sasl_cv_snprintf=no
20759 SNPRINTFOBJS=""
20760 { echo "$as_me:$LINENO: checking for snprintf" >&5
20761 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
20762 if test "${ac_cv_func_snprintf+set}" = set; then
20763   echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765   cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
20772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20773 #define snprintf innocuous_snprintf
20774
20775 /* System header to define __stub macros and hopefully few prototypes,
20776     which can conflict with char snprintf (); below.
20777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20778     <limits.h> exists even on freestanding compilers.  */
20779
20780 #ifdef __STDC__
20781 # include <limits.h>
20782 #else
20783 # include <assert.h>
20784 #endif
20785
20786 #undef snprintf
20787
20788 /* Override any GCC internal prototype to avoid an error.
20789    Use char because int might match the return type of a GCC
20790    builtin and then its argument prototype would still apply.  */
20791 #ifdef __cplusplus
20792 extern "C"
20793 #endif
20794 char snprintf ();
20795 /* The GNU C library defines this for functions which it implements
20796     to always fail with ENOSYS.  Some functions are actually named
20797     something starting with __ and the normal name is an alias.  */
20798 #if defined __stub_snprintf || defined __stub___snprintf
20799 choke me
20800 #endif
20801
20802 int
20803 main ()
20804 {
20805 return snprintf ();
20806   ;
20807   return 0;
20808 }
20809 _ACEOF
20810 rm -f conftest.$ac_objext conftest$ac_exeext
20811 if { (ac_try="$ac_link"
20812 case "(($ac_try" in
20813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814   *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817   (eval "$ac_link") 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } && {
20824          test -z "$ac_c_werror_flag" ||
20825          test ! -s conftest.err
20826        } && test -s conftest$ac_exeext &&
20827        $as_test_x conftest$ac_exeext; then
20828   ac_cv_func_snprintf=yes
20829 else
20830   echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833         ac_cv_func_snprintf=no
20834 fi
20835
20836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20837       conftest$ac_exeext conftest.$ac_ext
20838 fi
20839 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
20840 echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
20841 if test $ac_cv_func_snprintf = yes; then
20842
20843 cat >>confdefs.h <<\_ACEOF
20844 #define HAVE_SNPRINTF
20845 _ACEOF
20846
20847 else
20848   sasl_cv_snprintf=yes
20849 fi
20850
20851 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
20852 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
20853 if test "${ac_cv_func_vsnprintf+set}" = set; then
20854   echo $ECHO_N "(cached) $ECHO_C" >&6
20855 else
20856   cat >conftest.$ac_ext <<_ACEOF
20857 /* confdefs.h.  */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h.  */
20862 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
20863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20864 #define vsnprintf innocuous_vsnprintf
20865
20866 /* System header to define __stub macros and hopefully few prototypes,
20867     which can conflict with char vsnprintf (); below.
20868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20869     <limits.h> exists even on freestanding compilers.  */
20870
20871 #ifdef __STDC__
20872 # include <limits.h>
20873 #else
20874 # include <assert.h>
20875 #endif
20876
20877 #undef vsnprintf
20878
20879 /* Override any GCC internal prototype to avoid an error.
20880    Use char because int might match the return type of a GCC
20881    builtin and then its argument prototype would still apply.  */
20882 #ifdef __cplusplus
20883 extern "C"
20884 #endif
20885 char vsnprintf ();
20886 /* The GNU C library defines this for functions which it implements
20887     to always fail with ENOSYS.  Some functions are actually named
20888     something starting with __ and the normal name is an alias.  */
20889 #if defined __stub_vsnprintf || defined __stub___vsnprintf
20890 choke me
20891 #endif
20892
20893 int
20894 main ()
20895 {
20896 return vsnprintf ();
20897   ;
20898   return 0;
20899 }
20900 _ACEOF
20901 rm -f conftest.$ac_objext conftest$ac_exeext
20902 if { (ac_try="$ac_link"
20903 case "(($ac_try" in
20904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905   *) ac_try_echo=$ac_try;;
20906 esac
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908   (eval "$ac_link") 2>conftest.er1
20909   ac_status=$?
20910   grep -v '^ *+' conftest.er1 >conftest.err
20911   rm -f conftest.er1
20912   cat conftest.err >&5
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } && {
20915          test -z "$ac_c_werror_flag" ||
20916          test ! -s conftest.err
20917        } && test -s conftest$ac_exeext &&
20918        $as_test_x conftest$ac_exeext; then
20919   ac_cv_func_vsnprintf=yes
20920 else
20921   echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20923
20924         ac_cv_func_vsnprintf=no
20925 fi
20926
20927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20928       conftest$ac_exeext conftest.$ac_ext
20929 fi
20930 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
20931 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
20932 if test $ac_cv_func_vsnprintf = yes; then
20933
20934 cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_VSNPRINTF
20936 _ACEOF
20937
20938 else
20939   sasl_cv_snprintf=yes
20940 fi
20941
20942 if test $sasl_cv_snprintf = yes; then
20943         case " $LIBOBJS " in
20944   *" snprintf.$ac_objext "* ) ;;
20945   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20946  ;;
20947 esac
20948
20949         SNPRINTFOBJS="snprintf.o"
20950         LTSNPRINTFOBJS="snprintf.lo"
20951 fi
20952
20953
20954
20955
20956 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20957 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20958 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20959   echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961   ac_check_lib_save_LIBS=$LIBS
20962 LIBS="-lresolv  $LIBS"
20963 cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h.  */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h.  */
20969
20970 /* Override any GCC internal prototype to avoid an error.
20971    Use char because int might match the return type of a GCC
20972    builtin and then its argument prototype would still apply.  */
20973 #ifdef __cplusplus
20974 extern "C"
20975 #endif
20976 char inet_aton ();
20977 int
20978 main ()
20979 {
20980 return inet_aton ();
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (ac_try="$ac_link"
20987 case "(($ac_try" in
20988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989   *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992   (eval "$ac_link") 2>conftest.er1
20993   ac_status=$?
20994   grep -v '^ *+' conftest.er1 >conftest.err
20995   rm -f conftest.er1
20996   cat conftest.err >&5
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); } && {
20999          test -z "$ac_c_werror_flag" ||
21000          test ! -s conftest.err
21001        } && test -s conftest$ac_exeext &&
21002        $as_test_x conftest$ac_exeext; then
21003   ac_cv_lib_resolv_inet_aton=yes
21004 else
21005   echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21007
21008         ac_cv_lib_resolv_inet_aton=no
21009 fi
21010
21011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21012       conftest$ac_exeext conftest.$ac_ext
21013 LIBS=$ac_check_lib_save_LIBS
21014 fi
21015 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21016 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21017 if test $ac_cv_lib_resolv_inet_aton = yes; then
21018   cat >>confdefs.h <<_ACEOF
21019 #define HAVE_LIBRESOLV 1
21020 _ACEOF
21021
21022   LIBS="-lresolv $LIBS"
21023
21024 fi
21025
21026
21027 GETADDRINFOOBJS=""
21028 sasl_cv_getaddrinfo=yes
21029
21030 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21031 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
21032 if test "${ac_cv_func_getaddrinfo+set}" = set; then
21033   echo $ECHO_N "(cached) $ECHO_C" >&6
21034 else
21035   cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h.  */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h.  */
21041 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
21042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21043 #define getaddrinfo innocuous_getaddrinfo
21044
21045 /* System header to define __stub macros and hopefully few prototypes,
21046     which can conflict with char getaddrinfo (); below.
21047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21048     <limits.h> exists even on freestanding compilers.  */
21049
21050 #ifdef __STDC__
21051 # include <limits.h>
21052 #else
21053 # include <assert.h>
21054 #endif
21055
21056 #undef getaddrinfo
21057
21058 /* Override any GCC internal prototype to avoid an error.
21059    Use char because int might match the return type of a GCC
21060    builtin and then its argument prototype would still apply.  */
21061 #ifdef __cplusplus
21062 extern "C"
21063 #endif
21064 char getaddrinfo ();
21065 /* The GNU C library defines this for functions which it implements
21066     to always fail with ENOSYS.  Some functions are actually named
21067     something starting with __ and the normal name is an alias.  */
21068 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
21069 choke me
21070 #endif
21071
21072 int
21073 main ()
21074 {
21075 return getaddrinfo ();
21076   ;
21077   return 0;
21078 }
21079 _ACEOF
21080 rm -f conftest.$ac_objext conftest$ac_exeext
21081 if { (ac_try="$ac_link"
21082 case "(($ac_try" in
21083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084   *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087   (eval "$ac_link") 2>conftest.er1
21088   ac_status=$?
21089   grep -v '^ *+' conftest.er1 >conftest.err
21090   rm -f conftest.er1
21091   cat conftest.err >&5
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); } && {
21094          test -z "$ac_c_werror_flag" ||
21095          test ! -s conftest.err
21096        } && test -s conftest$ac_exeext &&
21097        $as_test_x conftest$ac_exeext; then
21098   ac_cv_func_getaddrinfo=yes
21099 else
21100   echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103         ac_cv_func_getaddrinfo=no
21104 fi
21105
21106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21107       conftest$ac_exeext conftest.$ac_ext
21108 fi
21109 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
21110 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
21111 if test $ac_cv_func_getaddrinfo = yes; then
21112     ac_cv_lib_socket_getaddrinfo=no
21113   ac_cv_lib_inet6_getaddrinfo=no
21114
21115 else
21116     { echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
21117 echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6; }
21118 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
21119   echo $ECHO_N "(cached) $ECHO_C" >&6
21120 else
21121   ac_check_lib_save_LIBS=$LIBS
21122 LIBS="-lsocket  $LIBS"
21123 cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129
21130 /* Override any GCC internal prototype to avoid an error.
21131    Use char because int might match the return type of a GCC
21132    builtin and then its argument prototype would still apply.  */
21133 #ifdef __cplusplus
21134 extern "C"
21135 #endif
21136 char getaddrinfo ();
21137 int
21138 main ()
21139 {
21140 return getaddrinfo ();
21141   ;
21142   return 0;
21143 }
21144 _ACEOF
21145 rm -f conftest.$ac_objext conftest$ac_exeext
21146 if { (ac_try="$ac_link"
21147 case "(($ac_try" in
21148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149   *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152   (eval "$ac_link") 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } && {
21159          test -z "$ac_c_werror_flag" ||
21160          test ! -s conftest.err
21161        } && test -s conftest$ac_exeext &&
21162        $as_test_x conftest$ac_exeext; then
21163   ac_cv_lib_socket_getaddrinfo=yes
21164 else
21165   echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21167
21168         ac_cv_lib_socket_getaddrinfo=no
21169 fi
21170
21171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21172       conftest$ac_exeext conftest.$ac_ext
21173 LIBS=$ac_check_lib_save_LIBS
21174 fi
21175 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
21176 echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6; }
21177 if test $ac_cv_lib_socket_getaddrinfo = yes; then
21178       LIBS="$LIBS -lsocket"
21179     ac_cv_lib_inet6_getaddrinfo=no
21180
21181 else
21182       { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21183 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21184     if test "${ipv6_cv_dir+set}" = set; then
21185   echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21188         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21189           break
21190         fi
21191       done
21192 fi
21193     { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21194 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21195     if test $ipv6_cv_dir = no; then
21196       ac_cv_lib_inet6_getaddrinfo=no
21197     else
21198       if test x$ipv6_libinet6 = x; then
21199         ipv6_libinet6=no
21200         SAVELDFLAGS="$LDFLAGS"
21201         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21202       fi
21203       { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
21204 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
21205 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
21206   echo $ECHO_N "(cached) $ECHO_C" >&6
21207 else
21208   ac_check_lib_save_LIBS=$LIBS
21209 LIBS="-linet6  $LIBS"
21210 cat >conftest.$ac_ext <<_ACEOF
21211 /* confdefs.h.  */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h.  */
21216
21217 /* Override any GCC internal prototype to avoid an error.
21218    Use char because int might match the return type of a GCC
21219    builtin and then its argument prototype would still apply.  */
21220 #ifdef __cplusplus
21221 extern "C"
21222 #endif
21223 char getaddrinfo ();
21224 int
21225 main ()
21226 {
21227 return getaddrinfo ();
21228   ;
21229   return 0;
21230 }
21231 _ACEOF
21232 rm -f conftest.$ac_objext conftest$ac_exeext
21233 if { (ac_try="$ac_link"
21234 case "(($ac_try" in
21235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236   *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239   (eval "$ac_link") 2>conftest.er1
21240   ac_status=$?
21241   grep -v '^ *+' conftest.er1 >conftest.err
21242   rm -f conftest.er1
21243   cat conftest.err >&5
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); } && {
21246          test -z "$ac_c_werror_flag" ||
21247          test ! -s conftest.err
21248        } && test -s conftest$ac_exeext &&
21249        $as_test_x conftest$ac_exeext; then
21250   ac_cv_lib_inet6_getaddrinfo=yes
21251 else
21252   echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21254
21255         ac_cv_lib_inet6_getaddrinfo=no
21256 fi
21257
21258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21259       conftest$ac_exeext conftest.$ac_ext
21260 LIBS=$ac_check_lib_save_LIBS
21261 fi
21262 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
21263 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
21264 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
21265         if test $ipv6_libinet6 = no; then
21266           ipv6_libinet6=yes
21267           LIBS="$LIBS -linet6"
21268         fi
21269 fi
21270       if test $ipv6_libinet6 = no; then
21271         LDFLAGS="$SAVELDFLAGS"
21272       fi
21273     fi
21274 fi
21275
21276 fi
21277 ipv6_cv_getaddrinfo=no
21278 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
21279      -o $ac_cv_lib_inet6_getaddrinfo = yes
21280 then
21281   ipv6_cv_getaddrinfo=yes
21282 fi
21283 if test $ipv6_cv_getaddrinfo = no; then
21284   if test getaddrinfo = getaddrinfo; then
21285     for ipv6_cv_pfx in o n; do
21286       cat >conftest.$ac_ext <<_ACEOF
21287 /* confdefs.h.  */
21288 _ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h.  */
21292 #include <netdb.h>
21293
21294 _ACEOF
21295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21296   $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
21297   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
21298 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
21299 echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6; }
21300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303   cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h.  */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h.  */
21309 /* Define ${ipv6_cv_pfx}getaddrinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getaddrinfo.
21310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21311 #define ${ipv6_cv_pfx}getaddrinfo innocuous_${ipv6_cv_pfx}getaddrinfo
21312
21313 /* System header to define __stub macros and hopefully few prototypes,
21314     which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
21315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21316     <limits.h> exists even on freestanding compilers.  */
21317
21318 #ifdef __STDC__
21319 # include <limits.h>
21320 #else
21321 # include <assert.h>
21322 #endif
21323
21324 #undef ${ipv6_cv_pfx}getaddrinfo
21325
21326 /* Override any GCC internal prototype to avoid an error.
21327    Use char because int might match the return type of a GCC
21328    builtin and then its argument prototype would still apply.  */
21329 #ifdef __cplusplus
21330 extern "C"
21331 #endif
21332 char ${ipv6_cv_pfx}getaddrinfo ();
21333 /* The GNU C library defines this for functions which it implements
21334     to always fail with ENOSYS.  Some functions are actually named
21335     something starting with __ and the normal name is an alias.  */
21336 #if defined __stub_${ipv6_cv_pfx}getaddrinfo || defined __stub___${ipv6_cv_pfx}getaddrinfo
21337 choke me
21338 #endif
21339
21340 int
21341 main ()
21342 {
21343 return ${ipv6_cv_pfx}getaddrinfo ();
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355   (eval "$ac_link") 2>conftest.er1
21356   ac_status=$?
21357   grep -v '^ *+' conftest.er1 >conftest.err
21358   rm -f conftest.er1
21359   cat conftest.err >&5
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } && {
21362          test -z "$ac_c_werror_flag" ||
21363          test ! -s conftest.err
21364        } && test -s conftest$ac_exeext &&
21365        $as_test_x conftest$ac_exeext; then
21366   eval "$as_ac_var=yes"
21367 else
21368   echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21370
21371         eval "$as_ac_var=no"
21372 fi
21373
21374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21375       conftest$ac_exeext conftest.$ac_ext
21376 fi
21377 ac_res=`eval echo '${'$as_ac_var'}'`
21378                { echo "$as_me:$LINENO: result: $ac_res" >&5
21379 echo "${ECHO_T}$ac_res" >&6; }
21380
21381 fi
21382 rm -f -r conftest*
21383
21384       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
21385
21386 cat >>confdefs.h <<\_ACEOF
21387 #define HAVE_GETADDRINFO
21388 _ACEOF
21389
21390         ipv6_cv_getaddrinfo=yes
21391         break
21392       fi
21393     done
21394   fi
21395 fi
21396 if test $ipv6_cv_getaddrinfo = yes; then
21397
21398 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
21399 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
21400 if test "${ac_cv_func_gai_strerror+set}" = set; then
21401   echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403   cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
21410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21411 #define gai_strerror innocuous_gai_strerror
21412
21413 /* System header to define __stub macros and hopefully few prototypes,
21414     which can conflict with char gai_strerror (); below.
21415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21416     <limits.h> exists even on freestanding compilers.  */
21417
21418 #ifdef __STDC__
21419 # include <limits.h>
21420 #else
21421 # include <assert.h>
21422 #endif
21423
21424 #undef gai_strerror
21425
21426 /* Override any GCC internal prototype to avoid an error.
21427    Use char because int might match the return type of a GCC
21428    builtin and then its argument prototype would still apply.  */
21429 #ifdef __cplusplus
21430 extern "C"
21431 #endif
21432 char gai_strerror ();
21433 /* The GNU C library defines this for functions which it implements
21434     to always fail with ENOSYS.  Some functions are actually named
21435     something starting with __ and the normal name is an alias.  */
21436 #if defined __stub_gai_strerror || defined __stub___gai_strerror
21437 choke me
21438 #endif
21439
21440 int
21441 main ()
21442 {
21443 return gai_strerror ();
21444   ;
21445   return 0;
21446 }
21447 _ACEOF
21448 rm -f conftest.$ac_objext conftest$ac_exeext
21449 if { (ac_try="$ac_link"
21450 case "(($ac_try" in
21451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452   *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455   (eval "$ac_link") 2>conftest.er1
21456   ac_status=$?
21457   grep -v '^ *+' conftest.er1 >conftest.err
21458   rm -f conftest.er1
21459   cat conftest.err >&5
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } && {
21462          test -z "$ac_c_werror_flag" ||
21463          test ! -s conftest.err
21464        } && test -s conftest$ac_exeext &&
21465        $as_test_x conftest$ac_exeext; then
21466   ac_cv_func_gai_strerror=yes
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471         ac_cv_func_gai_strerror=no
21472 fi
21473
21474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21475       conftest$ac_exeext conftest.$ac_ext
21476 fi
21477 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
21478 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
21479 if test $ac_cv_func_gai_strerror = yes; then
21480     ac_cv_lib_socket_gai_strerror=no
21481   ac_cv_lib_inet6_gai_strerror=no
21482
21483 else
21484     { echo "$as_me:$LINENO: checking for gai_strerror in -lsocket" >&5
21485 echo $ECHO_N "checking for gai_strerror in -lsocket... $ECHO_C" >&6; }
21486 if test "${ac_cv_lib_socket_gai_strerror+set}" = set; then
21487   echo $ECHO_N "(cached) $ECHO_C" >&6
21488 else
21489   ac_check_lib_save_LIBS=$LIBS
21490 LIBS="-lsocket  $LIBS"
21491 cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497
21498 /* Override any GCC internal prototype to avoid an error.
21499    Use char because int might match the return type of a GCC
21500    builtin and then its argument prototype would still apply.  */
21501 #ifdef __cplusplus
21502 extern "C"
21503 #endif
21504 char gai_strerror ();
21505 int
21506 main ()
21507 {
21508 return gai_strerror ();
21509   ;
21510   return 0;
21511 }
21512 _ACEOF
21513 rm -f conftest.$ac_objext conftest$ac_exeext
21514 if { (ac_try="$ac_link"
21515 case "(($ac_try" in
21516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517   *) ac_try_echo=$ac_try;;
21518 esac
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520   (eval "$ac_link") 2>conftest.er1
21521   ac_status=$?
21522   grep -v '^ *+' conftest.er1 >conftest.err
21523   rm -f conftest.er1
21524   cat conftest.err >&5
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); } && {
21527          test -z "$ac_c_werror_flag" ||
21528          test ! -s conftest.err
21529        } && test -s conftest$ac_exeext &&
21530        $as_test_x conftest$ac_exeext; then
21531   ac_cv_lib_socket_gai_strerror=yes
21532 else
21533   echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536         ac_cv_lib_socket_gai_strerror=no
21537 fi
21538
21539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21540       conftest$ac_exeext conftest.$ac_ext
21541 LIBS=$ac_check_lib_save_LIBS
21542 fi
21543 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gai_strerror" >&5
21544 echo "${ECHO_T}$ac_cv_lib_socket_gai_strerror" >&6; }
21545 if test $ac_cv_lib_socket_gai_strerror = yes; then
21546       LIBS="$LIBS -lsocket"
21547     ac_cv_lib_inet6_gai_strerror=no
21548
21549 else
21550       { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21551 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21552     if test "${ipv6_cv_dir+set}" = set; then
21553   echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21556         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21557           break
21558         fi
21559       done
21560 fi
21561     { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21562 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21563     if test $ipv6_cv_dir = no; then
21564       ac_cv_lib_inet6_gai_strerror=no
21565     else
21566       if test x$ipv6_libinet6 = x; then
21567         ipv6_libinet6=no
21568         SAVELDFLAGS="$LDFLAGS"
21569         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21570       fi
21571       { echo "$as_me:$LINENO: checking for gai_strerror in -linet6" >&5
21572 echo $ECHO_N "checking for gai_strerror in -linet6... $ECHO_C" >&6; }
21573 if test "${ac_cv_lib_inet6_gai_strerror+set}" = set; then
21574   echo $ECHO_N "(cached) $ECHO_C" >&6
21575 else
21576   ac_check_lib_save_LIBS=$LIBS
21577 LIBS="-linet6  $LIBS"
21578 cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584
21585 /* Override any GCC internal prototype to avoid an error.
21586    Use char because int might match the return type of a GCC
21587    builtin and then its argument prototype would still apply.  */
21588 #ifdef __cplusplus
21589 extern "C"
21590 #endif
21591 char gai_strerror ();
21592 int
21593 main ()
21594 {
21595 return gai_strerror ();
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 rm -f conftest.$ac_objext conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604   *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607   (eval "$ac_link") 2>conftest.er1
21608   ac_status=$?
21609   grep -v '^ *+' conftest.er1 >conftest.err
21610   rm -f conftest.er1
21611   cat conftest.err >&5
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } && {
21614          test -z "$ac_c_werror_flag" ||
21615          test ! -s conftest.err
21616        } && test -s conftest$ac_exeext &&
21617        $as_test_x conftest$ac_exeext; then
21618   ac_cv_lib_inet6_gai_strerror=yes
21619 else
21620   echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623         ac_cv_lib_inet6_gai_strerror=no
21624 fi
21625
21626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21627       conftest$ac_exeext conftest.$ac_ext
21628 LIBS=$ac_check_lib_save_LIBS
21629 fi
21630 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_gai_strerror" >&5
21631 echo "${ECHO_T}$ac_cv_lib_inet6_gai_strerror" >&6; }
21632 if test $ac_cv_lib_inet6_gai_strerror = yes; then
21633         if test $ipv6_libinet6 = no; then
21634           ipv6_libinet6=yes
21635           LIBS="$LIBS -linet6"
21636         fi
21637 fi
21638       if test $ipv6_libinet6 = no; then
21639         LDFLAGS="$SAVELDFLAGS"
21640       fi
21641     fi
21642 fi
21643
21644 fi
21645 ipv6_cv_gai_strerror=no
21646 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
21647      -o $ac_cv_lib_inet6_gai_strerror = yes
21648 then
21649   ipv6_cv_gai_strerror=yes
21650 fi
21651 if test $ipv6_cv_gai_strerror = no; then
21652   if test gai_strerror = getaddrinfo; then
21653     for ipv6_cv_pfx in o n; do
21654       cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660 #include <netdb.h>
21661
21662 _ACEOF
21663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21664   $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then
21665   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
21666 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}gai_strerror" >&5
21667 echo $ECHO_N "checking for ${ipv6_cv_pfx}gai_strerror... $ECHO_C" >&6; }
21668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21669   echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671   cat >conftest.$ac_ext <<_ACEOF
21672 /* confdefs.h.  */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h.  */
21677 /* Define ${ipv6_cv_pfx}gai_strerror to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}gai_strerror.
21678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21679 #define ${ipv6_cv_pfx}gai_strerror innocuous_${ipv6_cv_pfx}gai_strerror
21680
21681 /* System header to define __stub macros and hopefully few prototypes,
21682     which can conflict with char ${ipv6_cv_pfx}gai_strerror (); below.
21683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21684     <limits.h> exists even on freestanding compilers.  */
21685
21686 #ifdef __STDC__
21687 # include <limits.h>
21688 #else
21689 # include <assert.h>
21690 #endif
21691
21692 #undef ${ipv6_cv_pfx}gai_strerror
21693
21694 /* Override any GCC internal prototype to avoid an error.
21695    Use char because int might match the return type of a GCC
21696    builtin and then its argument prototype would still apply.  */
21697 #ifdef __cplusplus
21698 extern "C"
21699 #endif
21700 char ${ipv6_cv_pfx}gai_strerror ();
21701 /* The GNU C library defines this for functions which it implements
21702     to always fail with ENOSYS.  Some functions are actually named
21703     something starting with __ and the normal name is an alias.  */
21704 #if defined __stub_${ipv6_cv_pfx}gai_strerror || defined __stub___${ipv6_cv_pfx}gai_strerror
21705 choke me
21706 #endif
21707
21708 int
21709 main ()
21710 {
21711 return ${ipv6_cv_pfx}gai_strerror ();
21712   ;
21713   return 0;
21714 }
21715 _ACEOF
21716 rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720   *) ac_try_echo=$ac_try;;
21721 esac
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723   (eval "$ac_link") 2>conftest.er1
21724   ac_status=$?
21725   grep -v '^ *+' conftest.er1 >conftest.err
21726   rm -f conftest.er1
21727   cat conftest.err >&5
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); } && {
21730          test -z "$ac_c_werror_flag" ||
21731          test ! -s conftest.err
21732        } && test -s conftest$ac_exeext &&
21733        $as_test_x conftest$ac_exeext; then
21734   eval "$as_ac_var=yes"
21735 else
21736   echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21738
21739         eval "$as_ac_var=no"
21740 fi
21741
21742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21743       conftest$ac_exeext conftest.$ac_ext
21744 fi
21745 ac_res=`eval echo '${'$as_ac_var'}'`
21746                { echo "$as_me:$LINENO: result: $ac_res" >&5
21747 echo "${ECHO_T}$ac_res" >&6; }
21748
21749 fi
21750 rm -f -r conftest*
21751
21752       if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
21753
21754 cat >>confdefs.h <<\_ACEOF
21755 #define HAVE_GETADDRINFO
21756 _ACEOF
21757
21758         ipv6_cv_gai_strerror=yes
21759         break
21760       fi
21761     done
21762   fi
21763 fi
21764 if test $ipv6_cv_gai_strerror = yes; then
21765
21766 cat >>confdefs.h <<\_ACEOF
21767 #define HAVE_GETADDRINFO
21768 _ACEOF
21769
21770                 sasl_cv_getaddrinfo=no
21771 else
21772   :
21773 fi
21774 else
21775   :
21776 fi
21777 if test $sasl_cv_getaddrinfo = yes; then
21778     case " $LIBOBJS " in
21779   *" getaddrinfo.$ac_objext "* ) ;;
21780   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21781  ;;
21782 esac
21783
21784     GETADDRINFOOBJS="getaddrinfo.o"
21785     LTGETADDRINFOOBJS="getaddrinfo.lo"
21786 fi
21787
21788
21789
21790 GETNAMEINFOOBJS=""
21791 sasl_cv_getnameinfo=no
21792
21793 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
21794 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
21795 if test "${ac_cv_func_getnameinfo+set}" = set; then
21796   echo $ECHO_N "(cached) $ECHO_C" >&6
21797 else
21798   cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
21805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21806 #define getnameinfo innocuous_getnameinfo
21807
21808 /* System header to define __stub macros and hopefully few prototypes,
21809     which can conflict with char getnameinfo (); below.
21810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21811     <limits.h> exists even on freestanding compilers.  */
21812
21813 #ifdef __STDC__
21814 # include <limits.h>
21815 #else
21816 # include <assert.h>
21817 #endif
21818
21819 #undef getnameinfo
21820
21821 /* Override any GCC internal prototype to avoid an error.
21822    Use char because int might match the return type of a GCC
21823    builtin and then its argument prototype would still apply.  */
21824 #ifdef __cplusplus
21825 extern "C"
21826 #endif
21827 char getnameinfo ();
21828 /* The GNU C library defines this for functions which it implements
21829     to always fail with ENOSYS.  Some functions are actually named
21830     something starting with __ and the normal name is an alias.  */
21831 #if defined __stub_getnameinfo || defined __stub___getnameinfo
21832 choke me
21833 #endif
21834
21835 int
21836 main ()
21837 {
21838 return getnameinfo ();
21839   ;
21840   return 0;
21841 }
21842 _ACEOF
21843 rm -f conftest.$ac_objext conftest$ac_exeext
21844 if { (ac_try="$ac_link"
21845 case "(($ac_try" in
21846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847   *) ac_try_echo=$ac_try;;
21848 esac
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850   (eval "$ac_link") 2>conftest.er1
21851   ac_status=$?
21852   grep -v '^ *+' conftest.er1 >conftest.err
21853   rm -f conftest.er1
21854   cat conftest.err >&5
21855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856   (exit $ac_status); } && {
21857          test -z "$ac_c_werror_flag" ||
21858          test ! -s conftest.err
21859        } && test -s conftest$ac_exeext &&
21860        $as_test_x conftest$ac_exeext; then
21861   ac_cv_func_getnameinfo=yes
21862 else
21863   echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21865
21866         ac_cv_func_getnameinfo=no
21867 fi
21868
21869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21870       conftest$ac_exeext conftest.$ac_ext
21871 fi
21872 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
21873 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
21874 if test $ac_cv_func_getnameinfo = yes; then
21875     ac_cv_lib_socket_getnameinfo=no
21876   ac_cv_lib_inet6_getnameinfo=no
21877
21878 else
21879     { echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
21880 echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6; }
21881 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
21882   echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884   ac_check_lib_save_LIBS=$LIBS
21885 LIBS="-lsocket  $LIBS"
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h.  */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h.  */
21892
21893 /* Override any GCC internal prototype to avoid an error.
21894    Use char because int might match the return type of a GCC
21895    builtin and then its argument prototype would still apply.  */
21896 #ifdef __cplusplus
21897 extern "C"
21898 #endif
21899 char getnameinfo ();
21900 int
21901 main ()
21902 {
21903 return getnameinfo ();
21904   ;
21905   return 0;
21906 }
21907 _ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915   (eval "$ac_link") 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } && {
21922          test -z "$ac_c_werror_flag" ||
21923          test ! -s conftest.err
21924        } && test -s conftest$ac_exeext &&
21925        $as_test_x conftest$ac_exeext; then
21926   ac_cv_lib_socket_getnameinfo=yes
21927 else
21928   echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21930
21931         ac_cv_lib_socket_getnameinfo=no
21932 fi
21933
21934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21935       conftest$ac_exeext conftest.$ac_ext
21936 LIBS=$ac_check_lib_save_LIBS
21937 fi
21938 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
21939 echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6; }
21940 if test $ac_cv_lib_socket_getnameinfo = yes; then
21941       LIBS="$LIBS -lsocket"
21942     ac_cv_lib_inet6_getnameinfo=no
21943
21944 else
21945       { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21946 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21947     if test "${ipv6_cv_dir+set}" = set; then
21948   echo $ECHO_N "(cached) $ECHO_C" >&6
21949 else
21950         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21951         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21952           break
21953         fi
21954       done
21955 fi
21956     { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21957 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21958     if test $ipv6_cv_dir = no; then
21959       ac_cv_lib_inet6_getnameinfo=no
21960     else
21961       if test x$ipv6_libinet6 = x; then
21962         ipv6_libinet6=no
21963         SAVELDFLAGS="$LDFLAGS"
21964         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21965       fi
21966       { echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
21967 echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6; }
21968 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
21969   echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971   ac_check_lib_save_LIBS=$LIBS
21972 LIBS="-linet6  $LIBS"
21973 cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979
21980 /* Override any GCC internal prototype to avoid an error.
21981    Use char because int might match the return type of a GCC
21982    builtin and then its argument prototype would still apply.  */
21983 #ifdef __cplusplus
21984 extern "C"
21985 #endif
21986 char getnameinfo ();
21987 int
21988 main ()
21989 {
21990 return getnameinfo ();
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 rm -f conftest.$ac_objext conftest$ac_exeext
21996 if { (ac_try="$ac_link"
21997 case "(($ac_try" in
21998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999   *) ac_try_echo=$ac_try;;
22000 esac
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002   (eval "$ac_link") 2>conftest.er1
22003   ac_status=$?
22004   grep -v '^ *+' conftest.er1 >conftest.err
22005   rm -f conftest.er1
22006   cat conftest.err >&5
22007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008   (exit $ac_status); } && {
22009          test -z "$ac_c_werror_flag" ||
22010          test ! -s conftest.err
22011        } && test -s conftest$ac_exeext &&
22012        $as_test_x conftest$ac_exeext; then
22013   ac_cv_lib_inet6_getnameinfo=yes
22014 else
22015   echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22017
22018         ac_cv_lib_inet6_getnameinfo=no
22019 fi
22020
22021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22022       conftest$ac_exeext conftest.$ac_ext
22023 LIBS=$ac_check_lib_save_LIBS
22024 fi
22025 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
22026 echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6; }
22027 if test $ac_cv_lib_inet6_getnameinfo = yes; then
22028         if test $ipv6_libinet6 = no; then
22029           ipv6_libinet6=yes
22030           LIBS="$LIBS -linet6"
22031         fi
22032 fi
22033       if test $ipv6_libinet6 = no; then
22034         LDFLAGS="$SAVELDFLAGS"
22035       fi
22036     fi
22037 fi
22038
22039 fi
22040 ipv6_cv_getnameinfo=no
22041 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
22042      -o $ac_cv_lib_inet6_getnameinfo = yes
22043 then
22044   ipv6_cv_getnameinfo=yes
22045 fi
22046 if test $ipv6_cv_getnameinfo = no; then
22047   if test getnameinfo = getaddrinfo; then
22048     for ipv6_cv_pfx in o n; do
22049       cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h.  */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h.  */
22055 #include <netdb.h>
22056
22057 _ACEOF
22058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22059   $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
22060   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
22061 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
22062 echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6; }
22063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22064   echo $ECHO_N "(cached) $ECHO_C" >&6
22065 else
22066   cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072 /* Define ${ipv6_cv_pfx}getnameinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getnameinfo.
22073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22074 #define ${ipv6_cv_pfx}getnameinfo innocuous_${ipv6_cv_pfx}getnameinfo
22075
22076 /* System header to define __stub macros and hopefully few prototypes,
22077     which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
22078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22079     <limits.h> exists even on freestanding compilers.  */
22080
22081 #ifdef __STDC__
22082 # include <limits.h>
22083 #else
22084 # include <assert.h>
22085 #endif
22086
22087 #undef ${ipv6_cv_pfx}getnameinfo
22088
22089 /* Override any GCC internal prototype to avoid an error.
22090    Use char because int might match the return type of a GCC
22091    builtin and then its argument prototype would still apply.  */
22092 #ifdef __cplusplus
22093 extern "C"
22094 #endif
22095 char ${ipv6_cv_pfx}getnameinfo ();
22096 /* The GNU C library defines this for functions which it implements
22097     to always fail with ENOSYS.  Some functions are actually named
22098     something starting with __ and the normal name is an alias.  */
22099 #if defined __stub_${ipv6_cv_pfx}getnameinfo || defined __stub___${ipv6_cv_pfx}getnameinfo
22100 choke me
22101 #endif
22102
22103 int
22104 main ()
22105 {
22106 return ${ipv6_cv_pfx}getnameinfo ();
22107   ;
22108   return 0;
22109 }
22110 _ACEOF
22111 rm -f conftest.$ac_objext conftest$ac_exeext
22112 if { (ac_try="$ac_link"
22113 case "(($ac_try" in
22114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115   *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118   (eval "$ac_link") 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } && {
22125          test -z "$ac_c_werror_flag" ||
22126          test ! -s conftest.err
22127        } && test -s conftest$ac_exeext &&
22128        $as_test_x conftest$ac_exeext; then
22129   eval "$as_ac_var=yes"
22130 else
22131   echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134         eval "$as_ac_var=no"
22135 fi
22136
22137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22138       conftest$ac_exeext conftest.$ac_ext
22139 fi
22140 ac_res=`eval echo '${'$as_ac_var'}'`
22141                { echo "$as_me:$LINENO: result: $ac_res" >&5
22142 echo "${ECHO_T}$ac_res" >&6; }
22143
22144 fi
22145 rm -f -r conftest*
22146
22147       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
22148
22149 cat >>confdefs.h <<\_ACEOF
22150 #define HAVE_GETADDRINFO
22151 _ACEOF
22152
22153         ipv6_cv_getnameinfo=yes
22154         break
22155       fi
22156     done
22157   fi
22158 fi
22159 if test $ipv6_cv_getnameinfo = yes; then
22160
22161 cat >>confdefs.h <<\_ACEOF
22162 #define HAVE_GETNAMEINFO
22163 _ACEOF
22164
22165 else
22166   sasl_cv_getnameinfo=yes
22167 fi
22168 if test $sasl_cv_getnameinfo = yes; then
22169         case " $LIBOBJS " in
22170   *" getnameinfo.$ac_objext "* ) ;;
22171   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
22172  ;;
22173 esac
22174
22175         GETNAMEINFOOBJS="getnameinfo.o"
22176         LTGETNAMEINFOOBJS="getnameinfo.lo"
22177 fi
22178
22179
22180
22181 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
22182
22183
22184 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22185 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22186 if test "${ac_cv_c_const+set}" = set; then
22187   echo $ECHO_N "(cached) $ECHO_C" >&6
22188 else
22189   cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h.  */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h.  */
22195
22196 int
22197 main ()
22198 {
22199 /* FIXME: Include the comments suggested by Paul. */
22200 #ifndef __cplusplus
22201   /* Ultrix mips cc rejects this.  */
22202   typedef int charset[2];
22203   const charset cs;
22204   /* SunOS 4.1.1 cc rejects this.  */
22205   char const *const *pcpcc;
22206   char **ppc;
22207   /* NEC SVR4.0.2 mips cc rejects this.  */
22208   struct point {int x, y;};
22209   static struct point const zero = {0,0};
22210   /* AIX XL C 1.02.0.0 rejects this.
22211      It does not let you subtract one const X* pointer from another in
22212      an arm of an if-expression whose if-part is not a constant
22213      expression */
22214   const char *g = "string";
22215   pcpcc = &g + (g ? g-g : 0);
22216   /* HPUX 7.0 cc rejects these. */
22217   ++pcpcc;
22218   ppc = (char**) pcpcc;
22219   pcpcc = (char const *const *) ppc;
22220   { /* SCO 3.2v4 cc rejects this.  */
22221     char *t;
22222     char const *s = 0 ? (char *) 0 : (char const *) 0;
22223
22224     *t++ = 0;
22225     if (s) return 0;
22226   }
22227   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22228     int x[] = {25, 17};
22229     const int *foo = &x[0];
22230     ++foo;
22231   }
22232   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22233     typedef const int *iptr;
22234     iptr p = 0;
22235     ++p;
22236   }
22237   { /* AIX XL C 1.02.0.0 rejects this saying
22238        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22239     struct s { int j; const int *ap[3]; };
22240     struct s *b; b->j = 5;
22241   }
22242   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22243     const int foo = 10;
22244     if (!foo) return 0;
22245   }
22246   return !cs[0] && !zero.x;
22247 #endif
22248
22249   ;
22250   return 0;
22251 }
22252 _ACEOF
22253 rm -f conftest.$ac_objext
22254 if { (ac_try="$ac_compile"
22255 case "(($ac_try" in
22256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22257   *) ac_try_echo=$ac_try;;
22258 esac
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260   (eval "$ac_compile") 2>conftest.er1
22261   ac_status=$?
22262   grep -v '^ *+' conftest.er1 >conftest.err
22263   rm -f conftest.er1
22264   cat conftest.err >&5
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); } && {
22267          test -z "$ac_c_werror_flag" ||
22268          test ! -s conftest.err
22269        } && test -s conftest.$ac_objext; then
22270   ac_cv_c_const=yes
22271 else
22272   echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22274
22275         ac_cv_c_const=no
22276 fi
22277
22278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22279 fi
22280 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22281 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22282 if test $ac_cv_c_const = no; then
22283
22284 cat >>confdefs.h <<\_ACEOF
22285 #define const
22286 _ACEOF
22287
22288 fi
22289
22290 { echo "$as_me:$LINENO: checking for inline" >&5
22291 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22292 if test "${ac_cv_c_inline+set}" = set; then
22293   echo $ECHO_N "(cached) $ECHO_C" >&6
22294 else
22295   ac_cv_c_inline=no
22296 for ac_kw in inline __inline__ __inline; do
22297   cat >conftest.$ac_ext <<_ACEOF
22298 /* confdefs.h.  */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h.  */
22303 #ifndef __cplusplus
22304 typedef int foo_t;
22305 static $ac_kw foo_t static_foo () {return 0; }
22306 $ac_kw foo_t foo () {return 0; }
22307 #endif
22308
22309 _ACEOF
22310 rm -f conftest.$ac_objext
22311 if { (ac_try="$ac_compile"
22312 case "(($ac_try" in
22313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314   *) ac_try_echo=$ac_try;;
22315 esac
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317   (eval "$ac_compile") 2>conftest.er1
22318   ac_status=$?
22319   grep -v '^ *+' conftest.er1 >conftest.err
22320   rm -f conftest.er1
22321   cat conftest.err >&5
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); } && {
22324          test -z "$ac_c_werror_flag" ||
22325          test ! -s conftest.err
22326        } && test -s conftest.$ac_objext; then
22327   ac_cv_c_inline=$ac_kw
22328 else
22329   echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22331
22332
22333 fi
22334
22335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336   test "$ac_cv_c_inline" != no && break
22337 done
22338
22339 fi
22340 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22341 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22342
22343
22344 case $ac_cv_c_inline in
22345   inline | yes) ;;
22346   *)
22347     case $ac_cv_c_inline in
22348       no) ac_val=;;
22349       *) ac_val=$ac_cv_c_inline;;
22350     esac
22351     cat >>confdefs.h <<_ACEOF
22352 #ifndef __cplusplus
22353 #define inline $ac_val
22354 #endif
22355 _ACEOF
22356     ;;
22357 esac
22358
22359 { echo "$as_me:$LINENO: checking for mode_t" >&5
22360 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22361 if test "${ac_cv_type_mode_t+set}" = set; then
22362   echo $ECHO_N "(cached) $ECHO_C" >&6
22363 else
22364   cat >conftest.$ac_ext <<_ACEOF
22365 /* confdefs.h.  */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h.  */
22370 $ac_includes_default
22371 typedef mode_t ac__type_new_;
22372 int
22373 main ()
22374 {
22375 if ((ac__type_new_ *) 0)
22376   return 0;
22377 if (sizeof (ac__type_new_))
22378   return 0;
22379   ;
22380   return 0;
22381 }
22382 _ACEOF
22383 rm -f conftest.$ac_objext
22384 if { (ac_try="$ac_compile"
22385 case "(($ac_try" in
22386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387   *) ac_try_echo=$ac_try;;
22388 esac
22389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390   (eval "$ac_compile") 2>conftest.er1
22391   ac_status=$?
22392   grep -v '^ *+' conftest.er1 >conftest.err
22393   rm -f conftest.er1
22394   cat conftest.err >&5
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); } && {
22397          test -z "$ac_c_werror_flag" ||
22398          test ! -s conftest.err
22399        } && test -s conftest.$ac_objext; then
22400   ac_cv_type_mode_t=yes
22401 else
22402   echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405         ac_cv_type_mode_t=no
22406 fi
22407
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 fi
22410 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22411 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22412 if test $ac_cv_type_mode_t = yes; then
22413   :
22414 else
22415
22416 cat >>confdefs.h <<_ACEOF
22417 #define mode_t int
22418 _ACEOF
22419
22420 fi
22421
22422 { echo "$as_me:$LINENO: checking for pid_t" >&5
22423 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22424 if test "${ac_cv_type_pid_t+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433 $ac_includes_default
22434 typedef pid_t ac__type_new_;
22435 int
22436 main ()
22437 {
22438 if ((ac__type_new_ *) 0)
22439   return 0;
22440 if (sizeof (ac__type_new_))
22441   return 0;
22442   ;
22443   return 0;
22444 }
22445 _ACEOF
22446 rm -f conftest.$ac_objext
22447 if { (ac_try="$ac_compile"
22448 case "(($ac_try" in
22449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450   *) ac_try_echo=$ac_try;;
22451 esac
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453   (eval "$ac_compile") 2>conftest.er1
22454   ac_status=$?
22455   grep -v '^ *+' conftest.er1 >conftest.err
22456   rm -f conftest.er1
22457   cat conftest.err >&5
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); } && {
22460          test -z "$ac_c_werror_flag" ||
22461          test ! -s conftest.err
22462        } && test -s conftest.$ac_objext; then
22463   ac_cv_type_pid_t=yes
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468         ac_cv_type_pid_t=no
22469 fi
22470
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472 fi
22473 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22474 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22475 if test $ac_cv_type_pid_t = yes; then
22476   :
22477 else
22478
22479 cat >>confdefs.h <<_ACEOF
22480 #define pid_t int
22481 _ACEOF
22482
22483 fi
22484
22485 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22486 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22487 if test "${ac_cv_type_signal+set}" = set; then
22488   echo $ECHO_N "(cached) $ECHO_C" >&6
22489 else
22490   cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h.  */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h.  */
22496 #include <sys/types.h>
22497 #include <signal.h>
22498
22499 int
22500 main ()
22501 {
22502 return *(signal (0, 0)) (0) == 1;
22503   ;
22504   return 0;
22505 }
22506 _ACEOF
22507 rm -f conftest.$ac_objext
22508 if { (ac_try="$ac_compile"
22509 case "(($ac_try" in
22510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511   *) ac_try_echo=$ac_try;;
22512 esac
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514   (eval "$ac_compile") 2>conftest.er1
22515   ac_status=$?
22516   grep -v '^ *+' conftest.er1 >conftest.err
22517   rm -f conftest.er1
22518   cat conftest.err >&5
22519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520   (exit $ac_status); } && {
22521          test -z "$ac_c_werror_flag" ||
22522          test ! -s conftest.err
22523        } && test -s conftest.$ac_objext; then
22524   ac_cv_type_signal=int
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529         ac_cv_type_signal=void
22530 fi
22531
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533 fi
22534 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22535 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22536
22537 cat >>confdefs.h <<_ACEOF
22538 #define RETSIGTYPE $ac_cv_type_signal
22539 _ACEOF
22540
22541
22542
22543 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22544 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22545 if test "${ac_cv_header_time+set}" = set; then
22546   echo $ECHO_N "(cached) $ECHO_C" >&6
22547 else
22548   cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 #include <sys/types.h>
22555 #include <sys/time.h>
22556 #include <time.h>
22557
22558 int
22559 main ()
22560 {
22561 if ((struct tm *) 0)
22562 return 0;
22563   ;
22564   return 0;
22565 }
22566 _ACEOF
22567 rm -f conftest.$ac_objext
22568 if { (ac_try="$ac_compile"
22569 case "(($ac_try" in
22570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571   *) ac_try_echo=$ac_try;;
22572 esac
22573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574   (eval "$ac_compile") 2>conftest.er1
22575   ac_status=$?
22576   grep -v '^ *+' conftest.er1 >conftest.err
22577   rm -f conftest.er1
22578   cat conftest.err >&5
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); } && {
22581          test -z "$ac_c_werror_flag" ||
22582          test ! -s conftest.err
22583        } && test -s conftest.$ac_objext; then
22584   ac_cv_header_time=yes
22585 else
22586   echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589         ac_cv_header_time=no
22590 fi
22591
22592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22593 fi
22594 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22595 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22596 if test $ac_cv_header_time = yes; then
22597
22598 cat >>confdefs.h <<\_ACEOF
22599 #define TIME_WITH_SYS_TIME 1
22600 _ACEOF
22601
22602 fi
22603
22604 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22606 if test "${ac_cv_header_stdc+set}" = set; then
22607   echo $ECHO_N "(cached) $ECHO_C" >&6
22608 else
22609   cat >conftest.$ac_ext <<_ACEOF
22610 /* confdefs.h.  */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h.  */
22615 #include <stdlib.h>
22616 #include <stdarg.h>
22617 #include <string.h>
22618 #include <float.h>
22619
22620 int
22621 main ()
22622 {
22623
22624   ;
22625   return 0;
22626 }
22627 _ACEOF
22628 rm -f conftest.$ac_objext
22629 if { (ac_try="$ac_compile"
22630 case "(($ac_try" in
22631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632   *) ac_try_echo=$ac_try;;
22633 esac
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635   (eval "$ac_compile") 2>conftest.er1
22636   ac_status=$?
22637   grep -v '^ *+' conftest.er1 >conftest.err
22638   rm -f conftest.er1
22639   cat conftest.err >&5
22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641   (exit $ac_status); } && {
22642          test -z "$ac_c_werror_flag" ||
22643          test ! -s conftest.err
22644        } && test -s conftest.$ac_objext; then
22645   ac_cv_header_stdc=yes
22646 else
22647   echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22649
22650         ac_cv_header_stdc=no
22651 fi
22652
22653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22654
22655 if test $ac_cv_header_stdc = yes; then
22656   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22657   cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h.  */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h.  */
22663 #include <string.h>
22664
22665 _ACEOF
22666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22667   $EGREP "memchr" >/dev/null 2>&1; then
22668   :
22669 else
22670   ac_cv_header_stdc=no
22671 fi
22672 rm -f -r conftest*
22673
22674 fi
22675
22676 if test $ac_cv_header_stdc = yes; then
22677   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22678   cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h.  */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h.  */
22684 #include <stdlib.h>
22685
22686 _ACEOF
22687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22688   $EGREP "free" >/dev/null 2>&1; then
22689   :
22690 else
22691   ac_cv_header_stdc=no
22692 fi
22693 rm -f -r conftest*
22694
22695 fi
22696
22697 if test $ac_cv_header_stdc = yes; then
22698   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22699   if test "$cross_compiling" = yes; then
22700   :
22701 else
22702   cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h.  */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h.  */
22708 #include <ctype.h>
22709 #include <stdlib.h>
22710 #if ((' ' & 0x0FF) == 0x020)
22711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22713 #else
22714 # define ISLOWER(c) \
22715                    (('a' <= (c) && (c) <= 'i') \
22716                      || ('j' <= (c) && (c) <= 'r') \
22717                      || ('s' <= (c) && (c) <= 'z'))
22718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22719 #endif
22720
22721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22722 int
22723 main ()
22724 {
22725   int i;
22726   for (i = 0; i < 256; i++)
22727     if (XOR (islower (i), ISLOWER (i))
22728         || toupper (i) != TOUPPER (i))
22729       return 2;
22730   return 0;
22731 }
22732 _ACEOF
22733 rm -f conftest$ac_exeext
22734 if { (ac_try="$ac_link"
22735 case "(($ac_try" in
22736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737   *) ac_try_echo=$ac_try;;
22738 esac
22739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740   (eval "$ac_link") 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22744   { (case "(($ac_try" in
22745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746   *) ac_try_echo=$ac_try;;
22747 esac
22748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22749   (eval "$ac_try") 2>&5
22750   ac_status=$?
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); }; }; then
22753   :
22754 else
22755   echo "$as_me: program exited with status $ac_status" >&5
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 ( exit $ac_status )
22760 ac_cv_header_stdc=no
22761 fi
22762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22763 fi
22764
22765
22766 fi
22767 fi
22768 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22769 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22770 if test $ac_cv_header_stdc = yes; then
22771
22772 cat >>confdefs.h <<\_ACEOF
22773 #define STDC_HEADERS 1
22774 _ACEOF
22775
22776 fi
22777
22778
22779
22780
22781
22782
22783 ac_header_dirent=no
22784 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22785   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22786 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22787 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22789   echo $ECHO_N "(cached) $ECHO_C" >&6
22790 else
22791   cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h.  */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h.  */
22797 #include <sys/types.h>
22798 #include <$ac_hdr>
22799
22800 int
22801 main ()
22802 {
22803 if ((DIR *) 0)
22804 return 0;
22805   ;
22806   return 0;
22807 }
22808 _ACEOF
22809 rm -f conftest.$ac_objext
22810 if { (ac_try="$ac_compile"
22811 case "(($ac_try" in
22812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813   *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816   (eval "$ac_compile") 2>conftest.er1
22817   ac_status=$?
22818   grep -v '^ *+' conftest.er1 >conftest.err
22819   rm -f conftest.er1
22820   cat conftest.err >&5
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); } && {
22823          test -z "$ac_c_werror_flag" ||
22824          test ! -s conftest.err
22825        } && test -s conftest.$ac_objext; then
22826   eval "$as_ac_Header=yes"
22827 else
22828   echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831         eval "$as_ac_Header=no"
22832 fi
22833
22834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 fi
22836 ac_res=`eval echo '${'$as_ac_Header'}'`
22837                { echo "$as_me:$LINENO: result: $ac_res" >&5
22838 echo "${ECHO_T}$ac_res" >&6; }
22839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22840   cat >>confdefs.h <<_ACEOF
22841 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22842 _ACEOF
22843
22844 ac_header_dirent=$ac_hdr; break
22845 fi
22846
22847 done
22848 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22849 if test $ac_header_dirent = dirent.h; then
22850   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22852 if test "${ac_cv_search_opendir+set}" = set; then
22853   echo $ECHO_N "(cached) $ECHO_C" >&6
22854 else
22855   ac_func_search_save_LIBS=$LIBS
22856 cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862
22863 /* Override any GCC internal prototype to avoid an error.
22864    Use char because int might match the return type of a GCC
22865    builtin and then its argument prototype would still apply.  */
22866 #ifdef __cplusplus
22867 extern "C"
22868 #endif
22869 char opendir ();
22870 int
22871 main ()
22872 {
22873 return opendir ();
22874   ;
22875   return 0;
22876 }
22877 _ACEOF
22878 for ac_lib in '' dir; do
22879   if test -z "$ac_lib"; then
22880     ac_res="none required"
22881   else
22882     ac_res=-l$ac_lib
22883     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22884   fi
22885   rm -f conftest.$ac_objext conftest$ac_exeext
22886 if { (ac_try="$ac_link"
22887 case "(($ac_try" in
22888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22889   *) ac_try_echo=$ac_try;;
22890 esac
22891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22892   (eval "$ac_link") 2>conftest.er1
22893   ac_status=$?
22894   grep -v '^ *+' conftest.er1 >conftest.err
22895   rm -f conftest.er1
22896   cat conftest.err >&5
22897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898   (exit $ac_status); } && {
22899          test -z "$ac_c_werror_flag" ||
22900          test ! -s conftest.err
22901        } && test -s conftest$ac_exeext &&
22902        $as_test_x conftest$ac_exeext; then
22903   ac_cv_search_opendir=$ac_res
22904 else
22905   echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22907
22908
22909 fi
22910
22911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22912       conftest$ac_exeext
22913   if test "${ac_cv_search_opendir+set}" = set; then
22914   break
22915 fi
22916 done
22917 if test "${ac_cv_search_opendir+set}" = set; then
22918   :
22919 else
22920   ac_cv_search_opendir=no
22921 fi
22922 rm conftest.$ac_ext
22923 LIBS=$ac_func_search_save_LIBS
22924 fi
22925 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22926 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22927 ac_res=$ac_cv_search_opendir
22928 if test "$ac_res" != no; then
22929   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22930
22931 fi
22932
22933 else
22934   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22935 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22936 if test "${ac_cv_search_opendir+set}" = set; then
22937   echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939   ac_func_search_save_LIBS=$LIBS
22940 cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h.  */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h.  */
22946
22947 /* Override any GCC internal prototype to avoid an error.
22948    Use char because int might match the return type of a GCC
22949    builtin and then its argument prototype would still apply.  */
22950 #ifdef __cplusplus
22951 extern "C"
22952 #endif
22953 char opendir ();
22954 int
22955 main ()
22956 {
22957 return opendir ();
22958   ;
22959   return 0;
22960 }
22961 _ACEOF
22962 for ac_lib in '' x; do
22963   if test -z "$ac_lib"; then
22964     ac_res="none required"
22965   else
22966     ac_res=-l$ac_lib
22967     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22968   fi
22969   rm -f conftest.$ac_objext conftest$ac_exeext
22970 if { (ac_try="$ac_link"
22971 case "(($ac_try" in
22972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973   *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976   (eval "$ac_link") 2>conftest.er1
22977   ac_status=$?
22978   grep -v '^ *+' conftest.er1 >conftest.err
22979   rm -f conftest.er1
22980   cat conftest.err >&5
22981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982   (exit $ac_status); } && {
22983          test -z "$ac_c_werror_flag" ||
22984          test ! -s conftest.err
22985        } && test -s conftest$ac_exeext &&
22986        $as_test_x conftest$ac_exeext; then
22987   ac_cv_search_opendir=$ac_res
22988 else
22989   echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992
22993 fi
22994
22995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22996       conftest$ac_exeext
22997   if test "${ac_cv_search_opendir+set}" = set; then
22998   break
22999 fi
23000 done
23001 if test "${ac_cv_search_opendir+set}" = set; then
23002   :
23003 else
23004   ac_cv_search_opendir=no
23005 fi
23006 rm conftest.$ac_ext
23007 LIBS=$ac_func_search_save_LIBS
23008 fi
23009 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23010 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23011 ac_res=$ac_cv_search_opendir
23012 if test "$ac_res" != no; then
23013   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23014
23015 fi
23016
23017 fi
23018
23019 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23020 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
23021 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23022   echo $ECHO_N "(cached) $ECHO_C" >&6
23023 else
23024   cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h.  */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h.  */
23030 #include <sys/types.h>
23031 #include <sys/wait.h>
23032 #ifndef WEXITSTATUS
23033 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23034 #endif
23035 #ifndef WIFEXITED
23036 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23037 #endif
23038
23039 int
23040 main ()
23041 {
23042   int s;
23043   wait (&s);
23044   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23045   ;
23046   return 0;
23047 }
23048 _ACEOF
23049 rm -f conftest.$ac_objext
23050 if { (ac_try="$ac_compile"
23051 case "(($ac_try" in
23052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053   *) ac_try_echo=$ac_try;;
23054 esac
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056   (eval "$ac_compile") 2>conftest.er1
23057   ac_status=$?
23058   grep -v '^ *+' conftest.er1 >conftest.err
23059   rm -f conftest.er1
23060   cat conftest.err >&5
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); } && {
23063          test -z "$ac_c_werror_flag" ||
23064          test ! -s conftest.err
23065        } && test -s conftest.$ac_objext; then
23066   ac_cv_header_sys_wait_h=yes
23067 else
23068   echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23070
23071         ac_cv_header_sys_wait_h=no
23072 fi
23073
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23075 fi
23076 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23077 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
23078 if test $ac_cv_header_sys_wait_h = yes; then
23079
23080 cat >>confdefs.h <<\_ACEOF
23081 #define HAVE_SYS_WAIT_H 1
23082 _ACEOF
23083
23084 fi
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103 for ac_header in des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h
23104 do
23105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23107   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23110   echo $ECHO_N "(cached) $ECHO_C" >&6
23111 fi
23112 ac_res=`eval echo '${'$as_ac_Header'}'`
23113                { echo "$as_me:$LINENO: result: $ac_res" >&5
23114 echo "${ECHO_T}$ac_res" >&6; }
23115 else
23116   # Is the header compilable?
23117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23119 cat >conftest.$ac_ext <<_ACEOF
23120 /* confdefs.h.  */
23121 _ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h.  */
23125 $ac_includes_default
23126 #include <$ac_header>
23127 _ACEOF
23128 rm -f conftest.$ac_objext
23129 if { (ac_try="$ac_compile"
23130 case "(($ac_try" in
23131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132   *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135   (eval "$ac_compile") 2>conftest.er1
23136   ac_status=$?
23137   grep -v '^ *+' conftest.er1 >conftest.err
23138   rm -f conftest.er1
23139   cat conftest.err >&5
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } && {
23142          test -z "$ac_c_werror_flag" ||
23143          test ! -s conftest.err
23144        } && test -s conftest.$ac_objext; then
23145   ac_header_compiler=yes
23146 else
23147   echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23149
23150         ac_header_compiler=no
23151 fi
23152
23153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23155 echo "${ECHO_T}$ac_header_compiler" >&6; }
23156
23157 # Is the header present?
23158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23160 cat >conftest.$ac_ext <<_ACEOF
23161 /* confdefs.h.  */
23162 _ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h.  */
23166 #include <$ac_header>
23167 _ACEOF
23168 if { (ac_try="$ac_cpp conftest.$ac_ext"
23169 case "(($ac_try" in
23170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171   *) ac_try_echo=$ac_try;;
23172 esac
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23175   ac_status=$?
23176   grep -v '^ *+' conftest.er1 >conftest.err
23177   rm -f conftest.er1
23178   cat conftest.err >&5
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); } >/dev/null && {
23181          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23182          test ! -s conftest.err
23183        }; then
23184   ac_header_preproc=yes
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189   ac_header_preproc=no
23190 fi
23191
23192 rm -f conftest.err conftest.$ac_ext
23193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23194 echo "${ECHO_T}$ac_header_preproc" >&6; }
23195
23196 # So?  What about this header?
23197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23198   yes:no: )
23199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23203     ac_header_preproc=yes
23204     ;;
23205   no:yes:* )
23206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23218
23219     ;;
23220 esac
23221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23224   echo $ECHO_N "(cached) $ECHO_C" >&6
23225 else
23226   eval "$as_ac_Header=\$ac_header_preproc"
23227 fi
23228 ac_res=`eval echo '${'$as_ac_Header'}'`
23229                { echo "$as_me:$LINENO: result: $ac_res" >&5
23230 echo "${ECHO_T}$ac_res" >&6; }
23231
23232 fi
23233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23234   cat >>confdefs.h <<_ACEOF
23235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23236 _ACEOF
23237
23238 fi
23239
23240 done
23241
23242
23243
23244 { echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
23245 echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6; }
23246 if test "${ipv6_cv_ss_family+set}" = set; then
23247   echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249   cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h.  */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h.  */
23255 #include <sys/types.h>
23256 #include <sys/socket.h>
23257 int
23258 main ()
23259 {
23260 struct sockaddr_storage ss; int i = ss.ss_family;
23261   ;
23262   return 0;
23263 }
23264 _ACEOF
23265 rm -f conftest.$ac_objext
23266 if { (ac_try="$ac_compile"
23267 case "(($ac_try" in
23268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23269   *) ac_try_echo=$ac_try;;
23270 esac
23271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23272   (eval "$ac_compile") 2>conftest.er1
23273   ac_status=$?
23274   grep -v '^ *+' conftest.er1 >conftest.err
23275   rm -f conftest.er1
23276   cat conftest.err >&5
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); } && {
23279          test -z "$ac_c_werror_flag" ||
23280          test ! -s conftest.err
23281        } && test -s conftest.$ac_objext; then
23282   ipv6_cv_ss_family=yes
23283 else
23284   echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23286
23287         ipv6_cv_ss_family=no
23288 fi
23289
23290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23291 fi
23292 if test $ipv6_cv_ss_family = yes; then
23293
23294 cat >>confdefs.h <<\_ACEOF
23295 #define HAVE_SS_FAMILY
23296 _ACEOF
23297
23298 else
23299   :
23300 fi
23301 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
23302 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
23303
23304 { echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
23305 echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6; }
23306 if test "${ipv6_cv_sa_len+set}" = set; then
23307   echo $ECHO_N "(cached) $ECHO_C" >&6
23308 else
23309   cat >conftest.$ac_ext <<_ACEOF
23310 /* confdefs.h.  */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h.  */
23315 #include <sys/types.h>
23316 #include <sys/socket.h>
23317 int
23318 main ()
23319 {
23320 struct sockaddr sa; int i = sa.sa_len;
23321   ;
23322   return 0;
23323 }
23324 _ACEOF
23325 rm -f conftest.$ac_objext
23326 if { (ac_try="$ac_compile"
23327 case "(($ac_try" in
23328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329   *) ac_try_echo=$ac_try;;
23330 esac
23331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23332   (eval "$ac_compile") 2>conftest.er1
23333   ac_status=$?
23334   grep -v '^ *+' conftest.er1 >conftest.err
23335   rm -f conftest.er1
23336   cat conftest.err >&5
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); } && {
23339          test -z "$ac_c_werror_flag" ||
23340          test ! -s conftest.err
23341        } && test -s conftest.$ac_objext; then
23342   ipv6_cv_sa_len=yes
23343 else
23344   echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23346
23347         ipv6_cv_sa_len=no
23348 fi
23349
23350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351 fi
23352 if test $ipv6_cv_sa_len = yes; then
23353
23354 cat >>confdefs.h <<\_ACEOF
23355 #define HAVE_SOCKADDR_SA_LEN
23356 _ACEOF
23357
23358 else
23359   :
23360 fi
23361 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
23362 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
23363
23364 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23365 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23366 if test "${ipv6_cv_socklen_t+set}" = set; then
23367   echo $ECHO_N "(cached) $ECHO_C" >&6
23368 else
23369   cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h.  */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h.  */
23375 #include <sys/types.h>
23376 #include <sys/socket.h>
23377 int
23378 main ()
23379 {
23380 socklen_t len = 0;
23381   ;
23382   return 0;
23383 }
23384 _ACEOF
23385 rm -f conftest.$ac_objext conftest$ac_exeext
23386 if { (ac_try="$ac_link"
23387 case "(($ac_try" in
23388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389   *) ac_try_echo=$ac_try;;
23390 esac
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392   (eval "$ac_link") 2>conftest.er1
23393   ac_status=$?
23394   grep -v '^ *+' conftest.er1 >conftest.err
23395   rm -f conftest.er1
23396   cat conftest.err >&5
23397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); } && {
23399          test -z "$ac_c_werror_flag" ||
23400          test ! -s conftest.err
23401        } && test -s conftest$ac_exeext &&
23402        $as_test_x conftest$ac_exeext; then
23403   ipv6_cv_socklen_t=yes
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408         ipv6_cv_socklen_t=no
23409 fi
23410
23411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23412       conftest$ac_exeext conftest.$ac_ext
23413 fi
23414 if test $ipv6_cv_socklen_t = yes; then
23415
23416 cat >>confdefs.h <<\_ACEOF
23417 #define HAVE_SOCKLEN_T
23418 _ACEOF
23419
23420 else
23421   :
23422 fi
23423 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
23424 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
23425
23426 #AC_FUNC_MEMCMP
23427 #AC_FUNC_VPRINTF
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
23446 do
23447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23451   echo $ECHO_N "(cached) $ECHO_C" >&6
23452 else
23453   cat >conftest.$ac_ext <<_ACEOF
23454 /* confdefs.h.  */
23455 _ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h.  */
23459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23461 #define $ac_func innocuous_$ac_func
23462
23463 /* System header to define __stub macros and hopefully few prototypes,
23464     which can conflict with char $ac_func (); below.
23465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23466     <limits.h> exists even on freestanding compilers.  */
23467
23468 #ifdef __STDC__
23469 # include <limits.h>
23470 #else
23471 # include <assert.h>
23472 #endif
23473
23474 #undef $ac_func
23475
23476 /* Override any GCC internal prototype to avoid an error.
23477    Use char because int might match the return type of a GCC
23478    builtin and then its argument prototype would still apply.  */
23479 #ifdef __cplusplus
23480 extern "C"
23481 #endif
23482 char $ac_func ();
23483 /* The GNU C library defines this for functions which it implements
23484     to always fail with ENOSYS.  Some functions are actually named
23485     something starting with __ and the normal name is an alias.  */
23486 #if defined __stub_$ac_func || defined __stub___$ac_func
23487 choke me
23488 #endif
23489
23490 int
23491 main ()
23492 {
23493 return $ac_func ();
23494   ;
23495   return 0;
23496 }
23497 _ACEOF
23498 rm -f conftest.$ac_objext conftest$ac_exeext
23499 if { (ac_try="$ac_link"
23500 case "(($ac_try" in
23501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502   *) ac_try_echo=$ac_try;;
23503 esac
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505   (eval "$ac_link") 2>conftest.er1
23506   ac_status=$?
23507   grep -v '^ *+' conftest.er1 >conftest.err
23508   rm -f conftest.er1
23509   cat conftest.err >&5
23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511   (exit $ac_status); } && {
23512          test -z "$ac_c_werror_flag" ||
23513          test ! -s conftest.err
23514        } && test -s conftest$ac_exeext &&
23515        $as_test_x conftest$ac_exeext; then
23516   eval "$as_ac_var=yes"
23517 else
23518   echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521         eval "$as_ac_var=no"
23522 fi
23523
23524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23525       conftest$ac_exeext conftest.$ac_ext
23526 fi
23527 ac_res=`eval echo '${'$as_ac_var'}'`
23528                { echo "$as_me:$LINENO: result: $ac_res" >&5
23529 echo "${ECHO_T}$ac_res" >&6; }
23530 if test `eval echo '${'$as_ac_var'}'` = yes; then
23531   cat >>confdefs.h <<_ACEOF
23532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23533 _ACEOF
23534
23535 fi
23536 done
23537
23538
23539 if test $enable_cmulocal = yes; then
23540     { echo "$as_me:$LINENO: WARNING: enabling CMU local kludges" >&5
23541 echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
23542
23543 cat >>confdefs.h <<\_ACEOF
23544 #define KRB4_IGNORE_IP_ADDRESS
23545 _ACEOF
23546
23547
23548 cat >>confdefs.h <<_ACEOF
23549 #define PREFER_MECH "KERBEROS_V4"
23550 _ACEOF
23551
23552 fi
23553
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560 #include <sys/socket.h>
23561
23562 _ACEOF
23563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23564   $EGREP "sockaddr_storage" >/dev/null 2>&1; then
23565
23566
23567 cat >>confdefs.h <<\_ACEOF
23568 #define HAVE_STRUCT_SOCKADDR_STORAGE
23569 _ACEOF
23570
23571 fi
23572 rm -f -r conftest*
23573
23574
23575
23576
23577 subdirs="$subdirs saslauthd"
23578
23579
23580
23581
23582
23583
23584
23585
23586 ac_config_headers="$ac_config_headers config.h"
23587
23588
23589 ac_config_files="$ac_config_files Makefile include/Makefile sasldb/Makefile plugins/Makefile lib/Makefile utils/Makefile doc/Makefile sample/Makefile java/Makefile java/CyrusSasl/Makefile java/Test/Makefile java/javax/Makefile java/javax/security/Makefile java/javax/security/auth/Makefile java/javax/security/auth/callback/Makefile pwcheck/Makefile man/Makefile"
23590
23591 cat >confcache <<\_ACEOF
23592 # This file is a shell script that caches the results of configure
23593 # tests run on this system so they can be shared between configure
23594 # scripts and configure runs, see configure's option --config-cache.
23595 # It is not useful on other systems.  If it contains results you don't
23596 # want to keep, you may remove or edit it.
23597 #
23598 # config.status only pays attention to the cache file if you give it
23599 # the --recheck option to rerun configure.
23600 #
23601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23603 # following values.
23604
23605 _ACEOF
23606
23607 # The following way of writing the cache mishandles newlines in values,
23608 # but we know of no workaround that is simple, portable, and efficient.
23609 # So, we kill variables containing newlines.
23610 # Ultrix sh set writes to stderr and can't be redirected directly,
23611 # and sets the high bit in the cache file unless we assign to the vars.
23612 (
23613   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23614     eval ac_val=\$$ac_var
23615     case $ac_val in #(
23616     *${as_nl}*)
23617       case $ac_var in #(
23618       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23619 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23620       esac
23621       case $ac_var in #(
23622       _ | IFS | as_nl) ;; #(
23623       *) $as_unset $ac_var ;;
23624       esac ;;
23625     esac
23626   done
23627
23628   (set) 2>&1 |
23629     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23630     *${as_nl}ac_space=\ *)
23631       # `set' does not quote correctly, so add quotes (double-quote
23632       # substitution turns \\\\ into \\, and sed turns \\ into \).
23633       sed -n \
23634         "s/'/'\\\\''/g;
23635           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23636       ;; #(
23637     *)
23638       # `set' quotes correctly as required by POSIX, so do not add quotes.
23639       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23640       ;;
23641     esac |
23642     sort
23643 ) |
23644   sed '
23645      /^ac_cv_env_/b end
23646      t clear
23647      :clear
23648      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23649      t end
23650      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23651      :end' >>confcache
23652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23653   if test -w "$cache_file"; then
23654     test "x$cache_file" != "x/dev/null" &&
23655       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23656 echo "$as_me: updating cache $cache_file" >&6;}
23657     cat confcache >$cache_file
23658   else
23659     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23660 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23661   fi
23662 fi
23663 rm -f confcache
23664
23665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23666 # Let make expand exec_prefix.
23667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23668
23669 DEFS=-DHAVE_CONFIG_H
23670
23671 ac_libobjs=
23672 ac_ltlibobjs=
23673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23674   # 1. Remove the extension, and $U if already installed.
23675   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23676   ac_i=`echo "$ac_i" | sed "$ac_script"`
23677   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23678   #    will be set to the directory where LIBOBJS objects are built.
23679   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23680   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23681 done
23682 LIBOBJS=$ac_libobjs
23683
23684 LTLIBOBJS=$ac_ltlibobjs
23685
23686
23687 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23688   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23689 Usually this means the macro was only invoked conditionally." >&5
23690 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23691 Usually this means the macro was only invoked conditionally." >&2;}
23692    { (exit 1); exit 1; }; }
23693 fi
23694 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23695   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23696 Usually this means the macro was only invoked conditionally." >&5
23697 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23698 Usually this means the macro was only invoked conditionally." >&2;}
23699    { (exit 1); exit 1; }; }
23700 fi
23701 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
23702   { { echo "$as_me:$LINENO: error: conditional \"JAVA\" was never defined.
23703 Usually this means the macro was only invoked conditionally." >&5
23704 echo "$as_me: error: conditional \"JAVA\" was never defined.
23705 Usually this means the macro was only invoked conditionally." >&2;}
23706    { (exit 1); exit 1; }; }
23707 fi
23708 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
23709   { { echo "$as_me:$LINENO: error: conditional \"SAMPLE\" was never defined.
23710 Usually this means the macro was only invoked conditionally." >&5
23711 echo "$as_me: error: conditional \"SAMPLE\" was never defined.
23712 Usually this means the macro was only invoked conditionally." >&2;}
23713    { (exit 1); exit 1; }; }
23714 fi
23715 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
23716   { { echo "$as_me:$LINENO: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23717 Usually this means the macro was only invoked conditionally." >&5
23718 echo "$as_me: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23719 Usually this means the macro was only invoked conditionally." >&2;}
23720    { (exit 1); exit 1; }; }
23721 fi
23722 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
23723   { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
23724 Usually this means the macro was only invoked conditionally." >&5
23725 echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
23726 Usually this means the macro was only invoked conditionally." >&2;}
23727    { (exit 1); exit 1; }; }
23728 fi
23729 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
23730   { { echo "$as_me:$LINENO: error: conditional \"PWCHECK\" was never defined.
23731 Usually this means the macro was only invoked conditionally." >&5
23732 echo "$as_me: error: conditional \"PWCHECK\" was never defined.
23733 Usually this means the macro was only invoked conditionally." >&2;}
23734    { (exit 1); exit 1; }; }
23735 fi
23736 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
23737   { { echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined.
23738 Usually this means the macro was only invoked conditionally." >&5
23739 echo "$as_me: error: conditional \"MACOSX\" was never defined.
23740 Usually this means the macro was only invoked conditionally." >&2;}
23741    { (exit 1); exit 1; }; }
23742 fi
23743
23744 : ${CONFIG_STATUS=./config.status}
23745 ac_clean_files_save=$ac_clean_files
23746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23747 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23748 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23749 cat >$CONFIG_STATUS <<_ACEOF
23750 #! $SHELL
23751 # Generated by $as_me.
23752 # Run this file to recreate the current configuration.
23753 # Compiler output produced by configure, useful for debugging
23754 # configure, is in config.log if it exists.
23755
23756 debug=false
23757 ac_cs_recheck=false
23758 ac_cs_silent=false
23759 SHELL=\${CONFIG_SHELL-$SHELL}
23760 _ACEOF
23761
23762 cat >>$CONFIG_STATUS <<\_ACEOF
23763 ## --------------------- ##
23764 ## M4sh Initialization.  ##
23765 ## --------------------- ##
23766
23767 # Be more Bourne compatible
23768 DUALCASE=1; export DUALCASE # for MKS sh
23769 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23770   emulate sh
23771   NULLCMD=:
23772   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23773   # is contrary to our usage.  Disable this feature.
23774   alias -g '${1+"$@"}'='"$@"'
23775   setopt NO_GLOB_SUBST
23776 else
23777   case `(set -o) 2>/dev/null` in
23778   *posix*) set -o posix ;;
23779 esac
23780
23781 fi
23782
23783
23784
23785
23786 # PATH needs CR
23787 # Avoid depending upon Character Ranges.
23788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23791 as_cr_digits='0123456789'
23792 as_cr_alnum=$as_cr_Letters$as_cr_digits
23793
23794 # The user is always right.
23795 if test "${PATH_SEPARATOR+set}" != set; then
23796   echo "#! /bin/sh" >conf$$.sh
23797   echo  "exit 0"   >>conf$$.sh
23798   chmod +x conf$$.sh
23799   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23800     PATH_SEPARATOR=';'
23801   else
23802     PATH_SEPARATOR=:
23803   fi
23804   rm -f conf$$.sh
23805 fi
23806
23807 # Support unset when possible.
23808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23809   as_unset=unset
23810 else
23811   as_unset=false
23812 fi
23813
23814
23815 # IFS
23816 # We need space, tab and new line, in precisely that order.  Quoting is
23817 # there to prevent editors from complaining about space-tab.
23818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23819 # splitting by setting IFS to empty value.)
23820 as_nl='
23821 '
23822 IFS=" ""        $as_nl"
23823
23824 # Find who we are.  Look in the path if we contain no directory separator.
23825 case $0 in
23826   *[\\/]* ) as_myself=$0 ;;
23827   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23828 for as_dir in $PATH
23829 do
23830   IFS=$as_save_IFS
23831   test -z "$as_dir" && as_dir=.
23832   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23833 done
23834 IFS=$as_save_IFS
23835
23836      ;;
23837 esac
23838 # We did not find ourselves, most probably we were run as `sh COMMAND'
23839 # in which case we are not to be found in the path.
23840 if test "x$as_myself" = x; then
23841   as_myself=$0
23842 fi
23843 if test ! -f "$as_myself"; then
23844   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23845   { (exit 1); exit 1; }
23846 fi
23847
23848 # Work around bugs in pre-3.0 UWIN ksh.
23849 for as_var in ENV MAIL MAILPATH
23850 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23851 done
23852 PS1='$ '
23853 PS2='> '
23854 PS4='+ '
23855
23856 # NLS nuisances.
23857 for as_var in \
23858   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23859   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23860   LC_TELEPHONE LC_TIME
23861 do
23862   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23863     eval $as_var=C; export $as_var
23864   else
23865     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23866   fi
23867 done
23868
23869 # Required to use basename.
23870 if expr a : '\(a\)' >/dev/null 2>&1 &&
23871    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23872   as_expr=expr
23873 else
23874   as_expr=false
23875 fi
23876
23877 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23878   as_basename=basename
23879 else
23880   as_basename=false
23881 fi
23882
23883
23884 # Name of the executable.
23885 as_me=`$as_basename -- "$0" ||
23886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23887          X"$0" : 'X\(//\)$' \| \
23888          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23889 echo X/"$0" |
23890     sed '/^.*\/\([^/][^/]*\)\/*$/{
23891             s//\1/
23892             q
23893           }
23894           /^X\/\(\/\/\)$/{
23895             s//\1/
23896             q
23897           }
23898           /^X\/\(\/\).*/{
23899             s//\1/
23900             q
23901           }
23902           s/.*/./; q'`
23903
23904 # CDPATH.
23905 $as_unset CDPATH
23906
23907
23908
23909   as_lineno_1=$LINENO
23910   as_lineno_2=$LINENO
23911   test "x$as_lineno_1" != "x$as_lineno_2" &&
23912   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23913
23914   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23915   # uniformly replaced by the line number.  The first 'sed' inserts a
23916   # line-number line after each line using $LINENO; the second 'sed'
23917   # does the real work.  The second script uses 'N' to pair each
23918   # line-number line with the line containing $LINENO, and appends
23919   # trailing '-' during substitution so that $LINENO is not a special
23920   # case at line end.
23921   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23922   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23923   # E. McMahon (1931-1989) for sed's syntax.  :-)
23924   sed -n '
23925     p
23926     /[$]LINENO/=
23927   ' <$as_myself |
23928     sed '
23929       s/[$]LINENO.*/&-/
23930       t lineno
23931       b
23932       :lineno
23933       N
23934       :loop
23935       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23936       t loop
23937       s/-\n.*//
23938     ' >$as_me.lineno &&
23939   chmod +x "$as_me.lineno" ||
23940     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23941    { (exit 1); exit 1; }; }
23942
23943   # Don't try to exec as it changes $[0], causing all sort of problems
23944   # (the dirname of $[0] is not the place where we might find the
23945   # original and so on.  Autoconf is especially sensitive to this).
23946   . "./$as_me.lineno"
23947   # Exit status is that of the last command.
23948   exit
23949 }
23950
23951
23952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23953   as_dirname=dirname
23954 else
23955   as_dirname=false
23956 fi
23957
23958 ECHO_C= ECHO_N= ECHO_T=
23959 case `echo -n x` in
23960 -n*)
23961   case `echo 'x\c'` in
23962   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23963   *)   ECHO_C='\c';;
23964   esac;;
23965 *)
23966   ECHO_N='-n';;
23967 esac
23968
23969 if expr a : '\(a\)' >/dev/null 2>&1 &&
23970    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23971   as_expr=expr
23972 else
23973   as_expr=false
23974 fi
23975
23976 rm -f conf$$ conf$$.exe conf$$.file
23977 if test -d conf$$.dir; then
23978   rm -f conf$$.dir/conf$$.file
23979 else
23980   rm -f conf$$.dir
23981   mkdir conf$$.dir
23982 fi
23983 echo >conf$$.file
23984 if ln -s conf$$.file conf$$ 2>/dev/null; then
23985   as_ln_s='ln -s'
23986   # ... but there are two gotchas:
23987   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23988   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23989   # In both cases, we have to default to `cp -p'.
23990   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23991     as_ln_s='cp -p'
23992 elif ln conf$$.file conf$$ 2>/dev/null; then
23993   as_ln_s=ln
23994 else
23995   as_ln_s='cp -p'
23996 fi
23997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23998 rmdir conf$$.dir 2>/dev/null
23999
24000 if mkdir -p . 2>/dev/null; then
24001   as_mkdir_p=:
24002 else
24003   test -d ./-p && rmdir ./-p
24004   as_mkdir_p=false
24005 fi
24006
24007 if test -x / >/dev/null 2>&1; then
24008   as_test_x='test -x'
24009 else
24010   if ls -dL / >/dev/null 2>&1; then
24011     as_ls_L_option=L
24012   else
24013     as_ls_L_option=
24014   fi
24015   as_test_x='
24016     eval sh -c '\''
24017       if test -d "$1"; then
24018         test -d "$1/.";
24019       else
24020         case $1 in
24021         -*)set "./$1";;
24022         esac;
24023         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24024         ???[sx]*):;;*)false;;esac;fi
24025     '\'' sh
24026   '
24027 fi
24028 as_executable_p=$as_test_x
24029
24030 # Sed expression to map a string onto a valid CPP name.
24031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24032
24033 # Sed expression to map a string onto a valid variable name.
24034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24035
24036
24037 exec 6>&1
24038
24039 # Save the log message, to keep $[0] and so on meaningful, and to
24040 # report actual input values of CONFIG_FILES etc. instead of their
24041 # values after options handling.
24042 ac_log="
24043 This file was extended by $as_me, which was
24044 generated by GNU Autoconf 2.61.  Invocation command line was
24045
24046   CONFIG_FILES    = $CONFIG_FILES
24047   CONFIG_HEADERS  = $CONFIG_HEADERS
24048   CONFIG_LINKS    = $CONFIG_LINKS
24049   CONFIG_COMMANDS = $CONFIG_COMMANDS
24050   $ $0 $@
24051
24052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24053 "
24054
24055 _ACEOF
24056
24057 cat >>$CONFIG_STATUS <<_ACEOF
24058 # Files that config.status was made for.
24059 config_files="$ac_config_files"
24060 config_headers="$ac_config_headers"
24061 config_commands="$ac_config_commands"
24062
24063 _ACEOF
24064
24065 cat >>$CONFIG_STATUS <<\_ACEOF
24066 ac_cs_usage="\
24067 \`$as_me' instantiates files from templates according to the
24068 current configuration.
24069
24070 Usage: $0 [OPTIONS] [FILE]...
24071
24072   -h, --help       print this help, then exit
24073   -V, --version    print version number and configuration settings, then exit
24074   -q, --quiet      do not print progress messages
24075   -d, --debug      don't remove temporary files
24076       --recheck    update $as_me by reconfiguring in the same conditions
24077   --file=FILE[:TEMPLATE]
24078                    instantiate the configuration file FILE
24079   --header=FILE[:TEMPLATE]
24080                    instantiate the configuration header FILE
24081
24082 Configuration files:
24083 $config_files
24084
24085 Configuration headers:
24086 $config_headers
24087
24088 Configuration commands:
24089 $config_commands
24090
24091 Report bugs to <bug-autoconf@gnu.org>."
24092
24093 _ACEOF
24094 cat >>$CONFIG_STATUS <<_ACEOF
24095 ac_cs_version="\\
24096 config.status
24097 configured by $0, generated by GNU Autoconf 2.61,
24098   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24099
24100 Copyright (C) 2006 Free Software Foundation, Inc.
24101 This config.status script is free software; the Free Software Foundation
24102 gives unlimited permission to copy, distribute and modify it."
24103
24104 ac_pwd='$ac_pwd'
24105 srcdir='$srcdir'
24106 INSTALL='$INSTALL'
24107 MKDIR_P='$MKDIR_P'
24108 _ACEOF
24109
24110 cat >>$CONFIG_STATUS <<\_ACEOF
24111 # If no file are specified by the user, then we need to provide default
24112 # value.  By we need to know if files were specified by the user.
24113 ac_need_defaults=:
24114 while test $# != 0
24115 do
24116   case $1 in
24117   --*=*)
24118     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24119     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24120     ac_shift=:
24121     ;;
24122   *)
24123     ac_option=$1
24124     ac_optarg=$2
24125     ac_shift=shift
24126     ;;
24127   esac
24128
24129   case $ac_option in
24130   # Handling of the options.
24131   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24132     ac_cs_recheck=: ;;
24133   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24134     echo "$ac_cs_version"; exit ;;
24135   --debug | --debu | --deb | --de | --d | -d )
24136     debug=: ;;
24137   --file | --fil | --fi | --f )
24138     $ac_shift
24139     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24140     ac_need_defaults=false;;
24141   --header | --heade | --head | --hea )
24142     $ac_shift
24143     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24144     ac_need_defaults=false;;
24145   --he | --h)
24146     # Conflict between --help and --header
24147     { echo "$as_me: error: ambiguous option: $1
24148 Try \`$0 --help' for more information." >&2
24149    { (exit 1); exit 1; }; };;
24150   --help | --hel | -h )
24151     echo "$ac_cs_usage"; exit ;;
24152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24153   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24154     ac_cs_silent=: ;;
24155
24156   # This is an error.
24157   -*) { echo "$as_me: error: unrecognized option: $1
24158 Try \`$0 --help' for more information." >&2
24159    { (exit 1); exit 1; }; } ;;
24160
24161   *) ac_config_targets="$ac_config_targets $1"
24162      ac_need_defaults=false ;;
24163
24164   esac
24165   shift
24166 done
24167
24168 ac_configure_extra_args=
24169
24170 if $ac_cs_silent; then
24171   exec 6>/dev/null
24172   ac_configure_extra_args="$ac_configure_extra_args --silent"
24173 fi
24174
24175 _ACEOF
24176 cat >>$CONFIG_STATUS <<_ACEOF
24177 if \$ac_cs_recheck; then
24178   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24179   CONFIG_SHELL=$SHELL
24180   export CONFIG_SHELL
24181   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24182 fi
24183
24184 _ACEOF
24185 cat >>$CONFIG_STATUS <<\_ACEOF
24186 exec 5>>config.log
24187 {
24188   echo
24189   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24190 ## Running $as_me. ##
24191 _ASBOX
24192   echo "$ac_log"
24193 } >&5
24194
24195 _ACEOF
24196 cat >>$CONFIG_STATUS <<_ACEOF
24197 #
24198 # INIT-COMMANDS
24199 #
24200 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24201
24202
24203 # The HP-UX ksh and POSIX shell print the target directory to stdout
24204 # if CDPATH is set.
24205 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24206
24207 sed_quote_subst='$sed_quote_subst'
24208 double_quote_subst='$double_quote_subst'
24209 delay_variable_subst='$delay_variable_subst'
24210 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24211 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24212 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24213 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24214 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24215 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24216 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24217 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24218 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24219 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24220 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24221 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24222 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24223 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24224 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24225 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24226 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24227 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24228 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24229 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24230 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24231 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24232 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24233 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24234 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24235 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24236 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24237 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24238 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24239 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24240 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24241 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24242 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24243 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24244 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24245 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24246 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24247 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24248 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24249 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24250 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24251 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24252 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24253 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24254 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24255 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24256 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24257 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24259 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24260 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24261 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24262 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24263 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24264 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24265 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24266 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24267 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24268 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24269 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24270 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24271 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24272 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24273 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24274 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24275 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24276 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24277 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24278 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24279 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24280 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24281 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24282 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24283 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24284 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24285 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24286 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24287 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24288 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24289 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24290 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
24291 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24292 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24293 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24294 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24295 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24296 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24297 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24298 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24299 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
24300 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24301 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24302 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24303 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24304 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24305 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24306 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24307 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24308 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24309 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24310 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24311 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24312 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24313 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24314 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24315 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24316 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24317 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24318 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24319 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24320 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24321 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24322 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24323 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24324 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24325 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24326 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24327 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24328 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24329 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24330
24331 LTCC='$LTCC'
24332 LTCFLAGS='$LTCFLAGS'
24333 compiler='$compiler_DEFAULT'
24334
24335 # A function that is used when there is no print builtin or printf.
24336 func_fallback_echo ()
24337 {
24338   eval 'cat <<_LTECHO_EOF
24339 \$1
24340 _LTECHO_EOF'
24341 }
24342
24343 # Quote evaled strings.
24344 for var in SHELL \
24345 ECHO \
24346 SED \
24347 GREP \
24348 EGREP \
24349 FGREP \
24350 LD \
24351 NM \
24352 LN_S \
24353 lt_SP2NL \
24354 lt_NL2SP \
24355 reload_flag \
24356 OBJDUMP \
24357 deplibs_check_method \
24358 file_magic_cmd \
24359 AR \
24360 AR_FLAGS \
24361 STRIP \
24362 RANLIB \
24363 CC \
24364 CFLAGS \
24365 compiler \
24366 lt_cv_sys_global_symbol_pipe \
24367 lt_cv_sys_global_symbol_to_cdecl \
24368 lt_cv_sys_global_symbol_to_c_name_address \
24369 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24370 lt_prog_compiler_no_builtin_flag \
24371 lt_prog_compiler_wl \
24372 lt_prog_compiler_pic \
24373 lt_prog_compiler_static \
24374 lt_cv_prog_compiler_c_o \
24375 need_locks \
24376 DSYMUTIL \
24377 NMEDIT \
24378 LIPO \
24379 OTOOL \
24380 OTOOL64 \
24381 shrext_cmds \
24382 export_dynamic_flag_spec \
24383 whole_archive_flag_spec \
24384 compiler_needs_object \
24385 with_gnu_ld \
24386 allow_undefined_flag \
24387 no_undefined_flag \
24388 hardcode_libdir_flag_spec \
24389 hardcode_libdir_flag_spec_ld \
24390 hardcode_libdir_separator \
24391 fix_srcfile_path \
24392 exclude_expsyms \
24393 include_expsyms \
24394 file_list_spec \
24395 variables_saved_for_relink \
24396 libname_spec \
24397 library_names_spec \
24398 soname_spec \
24399 install_override_mode \
24400 finish_eval \
24401 old_striplib \
24402 striplib; do
24403     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24404     *[\\\\\\\`\\"\\\$]*)
24405       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24406       ;;
24407     *)
24408       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24409       ;;
24410     esac
24411 done
24412
24413 # Double-quote double-evaled strings.
24414 for var in reload_cmds \
24415 old_postinstall_cmds \
24416 old_postuninstall_cmds \
24417 old_archive_cmds \
24418 extract_expsyms_cmds \
24419 old_archive_from_new_cmds \
24420 old_archive_from_expsyms_cmds \
24421 archive_cmds \
24422 archive_expsym_cmds \
24423 module_cmds \
24424 module_expsym_cmds \
24425 export_symbols_cmds \
24426 prelink_cmds \
24427 postinstall_cmds \
24428 postuninstall_cmds \
24429 finish_cmds \
24430 sys_lib_search_path_spec \
24431 sys_lib_dlsearch_path_spec; do
24432     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24433     *[\\\\\\\`\\"\\\$]*)
24434       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24435       ;;
24436     *)
24437       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24438       ;;
24439     esac
24440 done
24441
24442 ac_aux_dir='$ac_aux_dir'
24443 xsi_shell='$xsi_shell'
24444 lt_shell_append='$lt_shell_append'
24445
24446 # See if we are running on zsh, and set the options which allow our
24447 # commands through without removal of \ escapes INIT.
24448 if test -n "\${ZSH_VERSION+set}" ; then
24449    setopt NO_GLOB_SUBST
24450 fi
24451
24452
24453     PACKAGE='$PACKAGE'
24454     VERSION='$VERSION'
24455     TIMESTAMP='$TIMESTAMP'
24456     RM='$RM'
24457     ofile='$ofile'
24458
24459
24460
24461
24462 _ACEOF
24463
24464 cat >>$CONFIG_STATUS <<\_ACEOF
24465
24466 # Handling of arguments.
24467 for ac_config_target in $ac_config_targets
24468 do
24469   case $ac_config_target in
24470     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24471     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24472     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24473     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24474     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24475     "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
24476     "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
24477     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24478     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
24479     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24480     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
24481     "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
24482     "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
24483     "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
24484     "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
24485     "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
24486     "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
24487     "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
24488     "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
24489     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24490
24491   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24493    { (exit 1); exit 1; }; };;
24494   esac
24495 done
24496
24497
24498 # If the user did not use the arguments to specify the items to instantiate,
24499 # then the envvar interface is used.  Set only those that are not.
24500 # We use the long form for the default assignment because of an extremely
24501 # bizarre bug on SunOS 4.1.3.
24502 if $ac_need_defaults; then
24503   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24504   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24505   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24506 fi
24507
24508 # Have a temporary directory for convenience.  Make it in the build tree
24509 # simply because there is no reason against having it here, and in addition,
24510 # creating and moving files from /tmp can sometimes cause problems.
24511 # Hook for its removal unless debugging.
24512 # Note that there is a small window in which the directory will not be cleaned:
24513 # after its creation but before its name has been assigned to `$tmp'.
24514 $debug ||
24515 {
24516   tmp=
24517   trap 'exit_status=$?
24518   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24519 ' 0
24520   trap '{ (exit 1); exit 1; }' 1 2 13 15
24521 }
24522 # Create a (secure) tmp directory for tmp files.
24523
24524 {
24525   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24526   test -n "$tmp" && test -d "$tmp"
24527 }  ||
24528 {
24529   tmp=./conf$$-$RANDOM
24530   (umask 077 && mkdir "$tmp")
24531 } ||
24532 {
24533    echo "$me: cannot create a temporary directory in ." >&2
24534    { (exit 1); exit 1; }
24535 }
24536
24537 #
24538 # Set up the sed scripts for CONFIG_FILES section.
24539 #
24540
24541 # No need to generate the scripts if there are no CONFIG_FILES.
24542 # This happens for instance when ./config.status config.h
24543 if test -n "$CONFIG_FILES"; then
24544
24545 _ACEOF
24546
24547
24548
24549 ac_delim='%!_!# '
24550 for ac_last_try in false false false false false :; do
24551   cat >conf$$subs.sed <<_ACEOF
24552 SHELL!$SHELL$ac_delim
24553 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24554 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24555 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24556 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24557 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24558 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24559 exec_prefix!$exec_prefix$ac_delim
24560 prefix!$prefix$ac_delim
24561 program_transform_name!$program_transform_name$ac_delim
24562 bindir!$bindir$ac_delim
24563 sbindir!$sbindir$ac_delim
24564 libexecdir!$libexecdir$ac_delim
24565 datarootdir!$datarootdir$ac_delim
24566 datadir!$datadir$ac_delim
24567 sysconfdir!$sysconfdir$ac_delim
24568 sharedstatedir!$sharedstatedir$ac_delim
24569 localstatedir!$localstatedir$ac_delim
24570 includedir!$includedir$ac_delim
24571 oldincludedir!$oldincludedir$ac_delim
24572 docdir!$docdir$ac_delim
24573 infodir!$infodir$ac_delim
24574 htmldir!$htmldir$ac_delim
24575 dvidir!$dvidir$ac_delim
24576 pdfdir!$pdfdir$ac_delim
24577 psdir!$psdir$ac_delim
24578 libdir!$libdir$ac_delim
24579 localedir!$localedir$ac_delim
24580 mandir!$mandir$ac_delim
24581 DEFS!$DEFS$ac_delim
24582 ECHO_C!$ECHO_C$ac_delim
24583 ECHO_N!$ECHO_N$ac_delim
24584 ECHO_T!$ECHO_T$ac_delim
24585 LIBS!$LIBS$ac_delim
24586 build_alias!$build_alias$ac_delim
24587 host_alias!$host_alias$ac_delim
24588 target_alias!$target_alias$ac_delim
24589 build!$build$ac_delim
24590 build_cpu!$build_cpu$ac_delim
24591 build_vendor!$build_vendor$ac_delim
24592 build_os!$build_os$ac_delim
24593 host!$host$ac_delim
24594 host_cpu!$host_cpu$ac_delim
24595 host_vendor!$host_vendor$ac_delim
24596 host_os!$host_os$ac_delim
24597 target!$target$ac_delim
24598 target_cpu!$target_cpu$ac_delim
24599 target_vendor!$target_vendor$ac_delim
24600 target_os!$target_os$ac_delim
24601 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24602 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24603 INSTALL_DATA!$INSTALL_DATA$ac_delim
24604 am__isrc!$am__isrc$ac_delim
24605 CYGPATH_W!$CYGPATH_W$ac_delim
24606 PACKAGE!$PACKAGE$ac_delim
24607 VERSION!$VERSION$ac_delim
24608 ACLOCAL!$ACLOCAL$ac_delim
24609 AUTOCONF!$AUTOCONF$ac_delim
24610 AUTOMAKE!$AUTOMAKE$ac_delim
24611 AUTOHEADER!$AUTOHEADER$ac_delim
24612 MAKEINFO!$MAKEINFO$ac_delim
24613 install_sh!$install_sh$ac_delim
24614 STRIP!$STRIP$ac_delim
24615 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24616 mkdir_p!$mkdir_p$ac_delim
24617 AWK!$AWK$ac_delim
24618 SET_MAKE!$SET_MAKE$ac_delim
24619 am__leading_dot!$am__leading_dot$ac_delim
24620 AMTAR!$AMTAR$ac_delim
24621 am__tar!$am__tar$ac_delim
24622 am__untar!$am__untar$ac_delim
24623 CC!$CC$ac_delim
24624 CFLAGS!$CFLAGS$ac_delim
24625 LDFLAGS!$LDFLAGS$ac_delim
24626 CPPFLAGS!$CPPFLAGS$ac_delim
24627 ac_ct_CC!$ac_ct_CC$ac_delim
24628 EXEEXT!$EXEEXT$ac_delim
24629 OBJEXT!$OBJEXT$ac_delim
24630 DEPDIR!$DEPDIR$ac_delim
24631 am__include!$am__include$ac_delim
24632 am__quote!$am__quote$ac_delim
24633 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24634 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24635 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24636 CCDEPMODE!$CCDEPMODE$ac_delim
24637 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24638 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24639 CPP!$CPP$ac_delim
24640 LN_S!$LN_S$ac_delim
24641 LIBTOOL!$LIBTOOL$ac_delim
24642 SED!$SED$ac_delim
24643 GREP!$GREP$ac_delim
24644 EGREP!$EGREP$ac_delim
24645 FGREP!$FGREP$ac_delim
24646 LD!$LD$ac_delim
24647 DUMPBIN!$DUMPBIN$ac_delim
24648 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
24649 _ACEOF
24650
24651   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24652     break
24653   elif $ac_last_try; then
24654     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24655 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24656    { (exit 1); exit 1; }; }
24657   else
24658     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24659   fi
24660 done
24661
24662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24663 if test -n "$ac_eof"; then
24664   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24665   ac_eof=`expr $ac_eof + 1`
24666 fi
24667
24668 cat >>$CONFIG_STATUS <<_ACEOF
24669 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24671 _ACEOF
24672 sed '
24673 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24674 s/^/s,@/; s/!/@,|#_!!_#|/
24675 :n
24676 t n
24677 s/'"$ac_delim"'$/,g/; t
24678 s/$/\\/; p
24679 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24680 ' >>$CONFIG_STATUS <conf$$subs.sed
24681 rm -f conf$$subs.sed
24682 cat >>$CONFIG_STATUS <<_ACEOF
24683 CEOF$ac_eof
24684 _ACEOF
24685
24686
24687 ac_delim='%!_!# '
24688 for ac_last_try in false false false false false :; do
24689   cat >conf$$subs.sed <<_ACEOF
24690 NM!$NM$ac_delim
24691 OBJDUMP!$OBJDUMP$ac_delim
24692 AR!$AR$ac_delim
24693 RANLIB!$RANLIB$ac_delim
24694 DSYMUTIL!$DSYMUTIL$ac_delim
24695 NMEDIT!$NMEDIT$ac_delim
24696 LIPO!$LIPO$ac_delim
24697 OTOOL!$OTOOL$ac_delim
24698 OTOOL64!$OTOOL64$ac_delim
24699 PURECOV!$PURECOV$ac_delim
24700 PURIFY!$PURIFY$ac_delim
24701 JAVAC!$JAVAC$ac_delim
24702 JAVAH!$JAVAH$ac_delim
24703 JAVADOC!$JAVADOC$ac_delim
24704 JAVA_TRUE!$JAVA_TRUE$ac_delim
24705 JAVA_FALSE!$JAVA_FALSE$ac_delim
24706 JAVA_INCLUDES!$JAVA_INCLUDES$ac_delim
24707 JAVAROOT!$JAVAROOT$ac_delim
24708 SAMPLE_TRUE!$SAMPLE_TRUE$ac_delim
24709 SAMPLE_FALSE!$SAMPLE_FALSE$ac_delim
24710 LIB_SOCKET!$LIB_SOCKET$ac_delim
24711 SASL_DB_UTILS!$SASL_DB_UTILS$ac_delim
24712 SASL_DB_MANS!$SASL_DB_MANS$ac_delim
24713 SASL_DB_BACKEND!$SASL_DB_BACKEND$ac_delim
24714 SASL_DB_BACKEND_STATIC!$SASL_DB_BACKEND_STATIC$ac_delim
24715 SASL_DB_INC!$SASL_DB_INC$ac_delim
24716 SASL_DB_LIB!$SASL_DB_LIB$ac_delim
24717 NO_SASL_DB_MANS_TRUE!$NO_SASL_DB_MANS_TRUE$ac_delim
24718 NO_SASL_DB_MANS_FALSE!$NO_SASL_DB_MANS_FALSE$ac_delim
24719 SASL_DL_LIB!$SASL_DL_LIB$ac_delim
24720 SASLAUTHD_TRUE!$SASLAUTHD_TRUE$ac_delim
24721 SASLAUTHD_FALSE!$SASLAUTHD_FALSE$ac_delim
24722 PWCHECKMETH!$PWCHECKMETH$ac_delim
24723 PWCHECK_TRUE!$PWCHECK_TRUE$ac_delim
24724 PWCHECK_FALSE!$PWCHECK_FALSE$ac_delim
24725 IPCTYPE!$IPCTYPE$ac_delim
24726 LIB_DOOR!$LIB_DOOR$ac_delim
24727 CMU_LIB_SUBDIR!$CMU_LIB_SUBDIR$ac_delim
24728 LIB_DES!$LIB_DES$ac_delim
24729 OTP_LIBS!$OTP_LIBS$ac_delim
24730 SRP_LIBS!$SRP_LIBS$ac_delim
24731 SASL_KRB_LIB!$SASL_KRB_LIB$ac_delim
24732 LIB_CRYPT!$LIB_CRYPT$ac_delim
24733 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
24734 GSSAPIBASE_LIBS!$GSSAPIBASE_LIBS$ac_delim
24735 PLAIN_LIBS!$PLAIN_LIBS$ac_delim
24736 NTLM_LIBS!$NTLM_LIBS$ac_delim
24737 PASSDSS_LIBS!$PASSDSS_LIBS$ac_delim
24738 LIB_MYSQL!$LIB_MYSQL$ac_delim
24739 LIB_PGSQL!$LIB_PGSQL$ac_delim
24740 LIB_SQLITE!$LIB_SQLITE$ac_delim
24741 LIB_LDAP!$LIB_LDAP$ac_delim
24742 SASL_MECHS!$SASL_MECHS$ac_delim
24743 SASL_STATIC_SRCS!$SASL_STATIC_SRCS$ac_delim
24744 SASL_STATIC_OBJS!$SASL_STATIC_OBJS$ac_delim
24745 SASL_STATIC_LIBS!$SASL_STATIC_LIBS$ac_delim
24746 plugindir!$plugindir$ac_delim
24747 configdir!$configdir$ac_delim
24748 MACOSX_TRUE!$MACOSX_TRUE$ac_delim
24749 MACOSX_FALSE!$MACOSX_FALSE$ac_delim
24750 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
24751 SFIO_INC_FLAGS!$SFIO_INC_FLAGS$ac_delim
24752 SFIO_LIB_FLAGS!$SFIO_LIB_FLAGS$ac_delim
24753 SMTPTEST_PROGRAM!$SMTPTEST_PROGRAM$ac_delim
24754 SASL_UTIL_LIBS_EXTRA!$SASL_UTIL_LIBS_EXTRA$ac_delim
24755 SASL_UTIL_HEADERS_EXTRA!$SASL_UTIL_HEADERS_EXTRA$ac_delim
24756 LIBOBJS!$LIBOBJS$ac_delim
24757 GETSUBOPT!$GETSUBOPT$ac_delim
24758 SNPRINTFOBJS!$SNPRINTFOBJS$ac_delim
24759 LTSNPRINTFOBJS!$LTSNPRINTFOBJS$ac_delim
24760 GETADDRINFOOBJS!$GETADDRINFOOBJS$ac_delim
24761 LTGETADDRINFOOBJS!$LTGETADDRINFOOBJS$ac_delim
24762 GETNAMEINFOOBJS!$GETNAMEINFOOBJS$ac_delim
24763 LTGETNAMEINFOOBJS!$LTGETNAMEINFOOBJS$ac_delim
24764 LTLIBOBJS!$LTLIBOBJS$ac_delim
24765 DIRS!$DIRS$ac_delim
24766 subdirs!$subdirs$ac_delim
24767 _ACEOF
24768
24769   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
24770     break
24771   elif $ac_last_try; then
24772     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24773 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24774    { (exit 1); exit 1; }; }
24775   else
24776     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24777   fi
24778 done
24779
24780 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24781 if test -n "$ac_eof"; then
24782   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24783   ac_eof=`expr $ac_eof + 1`
24784 fi
24785
24786 cat >>$CONFIG_STATUS <<_ACEOF
24787 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24789 _ACEOF
24790 sed '
24791 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24792 s/^/s,@/; s/!/@,|#_!!_#|/
24793 :n
24794 t n
24795 s/'"$ac_delim"'$/,g/; t
24796 s/$/\\/; p
24797 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24798 ' >>$CONFIG_STATUS <conf$$subs.sed
24799 rm -f conf$$subs.sed
24800 cat >>$CONFIG_STATUS <<_ACEOF
24801 :end
24802 s/|#_!!_#|//g
24803 CEOF$ac_eof
24804 _ACEOF
24805
24806
24807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24809 # trailing colons and then remove the whole line if VPATH becomes empty
24810 # (actually we leave an empty line to preserve line numbers).
24811 if test "x$srcdir" = x.; then
24812   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24813 s/:*\$(srcdir):*/:/
24814 s/:*\${srcdir}:*/:/
24815 s/:*@srcdir@:*/:/
24816 s/^\([^=]*=[     ]*\):*/\1/
24817 s/:*$//
24818 s/^[^=]*=[       ]*$//
24819 }'
24820 fi
24821
24822 cat >>$CONFIG_STATUS <<\_ACEOF
24823 fi # test -n "$CONFIG_FILES"
24824
24825
24826 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24827 do
24828   case $ac_tag in
24829   :[FHLC]) ac_mode=$ac_tag; continue;;
24830   esac
24831   case $ac_mode$ac_tag in
24832   :[FHL]*:*);;
24833   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24834 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24835    { (exit 1); exit 1; }; };;
24836   :[FH]-) ac_tag=-:-;;
24837   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24838   esac
24839   ac_save_IFS=$IFS
24840   IFS=:
24841   set x $ac_tag
24842   IFS=$ac_save_IFS
24843   shift
24844   ac_file=$1
24845   shift
24846
24847   case $ac_mode in
24848   :L) ac_source=$1;;
24849   :[FH])
24850     ac_file_inputs=
24851     for ac_f
24852     do
24853       case $ac_f in
24854       -) ac_f="$tmp/stdin";;
24855       *) # Look for the file first in the build tree, then in the source tree
24856          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24857          # because $ac_f cannot contain `:'.
24858          test -f "$ac_f" ||
24859            case $ac_f in
24860            [\\/$]*) false;;
24861            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24862            esac ||
24863            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24864 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24865    { (exit 1); exit 1; }; };;
24866       esac
24867       ac_file_inputs="$ac_file_inputs $ac_f"
24868     done
24869
24870     # Let's still pretend it is `configure' which instantiates (i.e., don't
24871     # use $as_me), people would be surprised to read:
24872     #    /* config.h.  Generated by config.status.  */
24873     configure_input="Generated from "`IFS=:
24874           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24875     if test x"$ac_file" != x-; then
24876       configure_input="$ac_file.  $configure_input"
24877       { echo "$as_me:$LINENO: creating $ac_file" >&5
24878 echo "$as_me: creating $ac_file" >&6;}
24879     fi
24880
24881     case $ac_tag in
24882     *:-:* | *:-) cat >"$tmp/stdin";;
24883     esac
24884     ;;
24885   esac
24886
24887   ac_dir=`$as_dirname -- "$ac_file" ||
24888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24889          X"$ac_file" : 'X\(//\)[^/]' \| \
24890          X"$ac_file" : 'X\(//\)$' \| \
24891          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24892 echo X"$ac_file" |
24893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24894             s//\1/
24895             q
24896           }
24897           /^X\(\/\/\)[^/].*/{
24898             s//\1/
24899             q
24900           }
24901           /^X\(\/\/\)$/{
24902             s//\1/
24903             q
24904           }
24905           /^X\(\/\).*/{
24906             s//\1/
24907             q
24908           }
24909           s/.*/./; q'`
24910   { as_dir="$ac_dir"
24911   case $as_dir in #(
24912   -*) as_dir=./$as_dir;;
24913   esac
24914   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24915     as_dirs=
24916     while :; do
24917       case $as_dir in #(
24918       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24919       *) as_qdir=$as_dir;;
24920       esac
24921       as_dirs="'$as_qdir' $as_dirs"
24922       as_dir=`$as_dirname -- "$as_dir" ||
24923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24924          X"$as_dir" : 'X\(//\)[^/]' \| \
24925          X"$as_dir" : 'X\(//\)$' \| \
24926          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24927 echo X"$as_dir" |
24928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24929             s//\1/
24930             q
24931           }
24932           /^X\(\/\/\)[^/].*/{
24933             s//\1/
24934             q
24935           }
24936           /^X\(\/\/\)$/{
24937             s//\1/
24938             q
24939           }
24940           /^X\(\/\).*/{
24941             s//\1/
24942             q
24943           }
24944           s/.*/./; q'`
24945       test -d "$as_dir" && break
24946     done
24947     test -z "$as_dirs" || eval "mkdir $as_dirs"
24948   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24949 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24950    { (exit 1); exit 1; }; }; }
24951   ac_builddir=.
24952
24953 case "$ac_dir" in
24954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24955 *)
24956   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24957   # A ".." for each directory in $ac_dir_suffix.
24958   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24959   case $ac_top_builddir_sub in
24960   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24961   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24962   esac ;;
24963 esac
24964 ac_abs_top_builddir=$ac_pwd
24965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24966 # for backward compatibility:
24967 ac_top_builddir=$ac_top_build_prefix
24968
24969 case $srcdir in
24970   .)  # We are building in place.
24971     ac_srcdir=.
24972     ac_top_srcdir=$ac_top_builddir_sub
24973     ac_abs_top_srcdir=$ac_pwd ;;
24974   [\\/]* | ?:[\\/]* )  # Absolute name.
24975     ac_srcdir=$srcdir$ac_dir_suffix;
24976     ac_top_srcdir=$srcdir
24977     ac_abs_top_srcdir=$srcdir ;;
24978   *) # Relative name.
24979     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24980     ac_top_srcdir=$ac_top_build_prefix$srcdir
24981     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24982 esac
24983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24984
24985
24986   case $ac_mode in
24987   :F)
24988   #
24989   # CONFIG_FILE
24990   #
24991
24992   case $INSTALL in
24993   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24994   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24995   esac
24996   ac_MKDIR_P=$MKDIR_P
24997   case $MKDIR_P in
24998   [\\/$]* | ?:[\\/]* ) ;;
24999   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25000   esac
25001 _ACEOF
25002
25003 cat >>$CONFIG_STATUS <<\_ACEOF
25004 # If the template does not know about datarootdir, expand it.
25005 # FIXME: This hack should be removed a few years after 2.60.
25006 ac_datarootdir_hack=; ac_datarootdir_seen=
25007
25008 case `sed -n '/datarootdir/ {
25009   p
25010   q
25011 }
25012 /@datadir@/p
25013 /@docdir@/p
25014 /@infodir@/p
25015 /@localedir@/p
25016 /@mandir@/p
25017 ' $ac_file_inputs` in
25018 *datarootdir*) ac_datarootdir_seen=yes;;
25019 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25020   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25021 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25022 _ACEOF
25023 cat >>$CONFIG_STATUS <<_ACEOF
25024   ac_datarootdir_hack='
25025   s&@datadir@&$datadir&g
25026   s&@docdir@&$docdir&g
25027   s&@infodir@&$infodir&g
25028   s&@localedir@&$localedir&g
25029   s&@mandir@&$mandir&g
25030     s&\\\${datarootdir}&$datarootdir&g' ;;
25031 esac
25032 _ACEOF
25033
25034 # Neutralize VPATH when `$srcdir' = `.'.
25035 # Shell code in configure.ac might set extrasub.
25036 # FIXME: do we really want to maintain this feature?
25037 cat >>$CONFIG_STATUS <<_ACEOF
25038   sed "$ac_vpsub
25039 $extrasub
25040 _ACEOF
25041 cat >>$CONFIG_STATUS <<\_ACEOF
25042 :t
25043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25044 s&@configure_input@&$configure_input&;t t
25045 s&@top_builddir@&$ac_top_builddir_sub&;t t
25046 s&@srcdir@&$ac_srcdir&;t t
25047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25048 s&@top_srcdir@&$ac_top_srcdir&;t t
25049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25050 s&@builddir@&$ac_builddir&;t t
25051 s&@abs_builddir@&$ac_abs_builddir&;t t
25052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25053 s&@INSTALL@&$ac_INSTALL&;t t
25054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25055 $ac_datarootdir_hack
25056 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25057
25058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25059   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25060   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25061   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25062 which seems to be undefined.  Please make sure it is defined." >&5
25063 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25064 which seems to be undefined.  Please make sure it is defined." >&2;}
25065
25066   rm -f "$tmp/stdin"
25067   case $ac_file in
25068   -) cat "$tmp/out"; rm -f "$tmp/out";;
25069   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25070   esac
25071  ;;
25072   :H)
25073   #
25074   # CONFIG_HEADER
25075   #
25076 _ACEOF
25077
25078 # Transform confdefs.h into a sed script `conftest.defines', that
25079 # substitutes the proper values into config.h.in to produce config.h.
25080 rm -f conftest.defines conftest.tail
25081 # First, append a space to every undef/define line, to ease matching.
25082 echo 's/$/ /' >conftest.defines
25083 # Then, protect against being on the right side of a sed subst, or in
25084 # an unquoted here document, in config.status.  If some macros were
25085 # called several times there might be several #defines for the same
25086 # symbol, which is useless.  But do not sort them, since the last
25087 # AC_DEFINE must be honored.
25088 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25089 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25090 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25091 # PARAMS is the parameter list in the macro definition--in most cases, it's
25092 # just an empty string.
25093 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25094 ac_dB='\\)[      (].*,\\1define\\2'
25095 ac_dC=' '
25096 ac_dD=' ,'
25097
25098 uniq confdefs.h |
25099   sed -n '
25100         t rset
25101         :rset
25102         s/^[     ]*#[    ]*define[       ][      ]*//
25103         t ok
25104         d
25105         :ok
25106         s/[\\&,]/\\&/g
25107         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25108         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25109   ' >>conftest.defines
25110
25111 # Remove the space that was appended to ease matching.
25112 # Then replace #undef with comments.  This is necessary, for
25113 # example, in the case of _POSIX_SOURCE, which is predefined and required
25114 # on some systems where configure will not decide to define it.
25115 # (The regexp can be short, since the line contains either #define or #undef.)
25116 echo 's/ $//
25117 s,^[     #]*u.*,/* & */,' >>conftest.defines
25118
25119 # Break up conftest.defines:
25120 ac_max_sed_lines=50
25121
25122 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25123 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25124 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25125 # et cetera.
25126 ac_in='$ac_file_inputs'
25127 ac_out='"$tmp/out1"'
25128 ac_nxt='"$tmp/out2"'
25129
25130 while :
25131 do
25132   # Write a here document:
25133     cat >>$CONFIG_STATUS <<_ACEOF
25134     # First, check the format of the line:
25135     cat >"\$tmp/defines.sed" <<\\CEOF
25136 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25137 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25138 b
25139 :def
25140 _ACEOF
25141   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25142   echo 'CEOF
25143     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25144   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25145   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25146   grep . conftest.tail >/dev/null || break
25147   rm -f conftest.defines
25148   mv conftest.tail conftest.defines
25149 done
25150 rm -f conftest.defines conftest.tail
25151
25152 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25153 cat >>$CONFIG_STATUS <<\_ACEOF
25154   if test x"$ac_file" != x-; then
25155     echo "/* $configure_input  */" >"$tmp/config.h"
25156     cat "$ac_result" >>"$tmp/config.h"
25157     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25158       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25159 echo "$as_me: $ac_file is unchanged" >&6;}
25160     else
25161       rm -f $ac_file
25162       mv "$tmp/config.h" $ac_file
25163     fi
25164   else
25165     echo "/* $configure_input  */"
25166     cat "$ac_result"
25167   fi
25168   rm -f "$tmp/out12"
25169 # Compute $ac_file's index in $config_headers.
25170 _am_stamp_count=1
25171 for _am_header in $config_headers :; do
25172   case $_am_header in
25173     $ac_file | $ac_file:* )
25174       break ;;
25175     * )
25176       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25177   esac
25178 done
25179 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25180 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25181          X$ac_file : 'X\(//\)[^/]' \| \
25182          X$ac_file : 'X\(//\)$' \| \
25183          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25184 echo X$ac_file |
25185     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25186             s//\1/
25187             q
25188           }
25189           /^X\(\/\/\)[^/].*/{
25190             s//\1/
25191             q
25192           }
25193           /^X\(\/\/\)$/{
25194             s//\1/
25195             q
25196           }
25197           /^X\(\/\).*/{
25198             s//\1/
25199             q
25200           }
25201           s/.*/./; q'`/stamp-h$_am_stamp_count
25202  ;;
25203
25204   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25205 echo "$as_me: executing $ac_file commands" >&6;}
25206  ;;
25207   esac
25208
25209
25210   case $ac_file$ac_mode in
25211     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25212   # Strip MF so we end up with the name of the file.
25213   mf=`echo "$mf" | sed -e 's/:.*$//'`
25214   # Check whether this is an Automake generated Makefile or not.
25215   # We used to match only the files named `Makefile.in', but
25216   # some people rename them; so instead we look at the file content.
25217   # Grep'ing the first line is not enough: some people post-process
25218   # each Makefile.in and add a new line on top of each file to say so.
25219   # Grep'ing the whole file is not good either: AIX grep has a line
25220   # limit of 2048, but all sed's we know have understand at least 4000.
25221   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25222     dirpart=`$as_dirname -- "$mf" ||
25223 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25224          X"$mf" : 'X\(//\)[^/]' \| \
25225          X"$mf" : 'X\(//\)$' \| \
25226          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25227 echo X"$mf" |
25228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25229             s//\1/
25230             q
25231           }
25232           /^X\(\/\/\)[^/].*/{
25233             s//\1/
25234             q
25235           }
25236           /^X\(\/\/\)$/{
25237             s//\1/
25238             q
25239           }
25240           /^X\(\/\).*/{
25241             s//\1/
25242             q
25243           }
25244           s/.*/./; q'`
25245   else
25246     continue
25247   fi
25248   # Extract the definition of DEPDIR, am__include, and am__quote
25249   # from the Makefile without running `make'.
25250   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25251   test -z "$DEPDIR" && continue
25252   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25253   test -z "am__include" && continue
25254   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25255   # When using ansi2knr, U may be empty or an underscore; expand it
25256   U=`sed -n 's/^U = //p' < "$mf"`
25257   # Find all dependency output files, they are included files with
25258   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25259   # simplest approach to changing $(DEPDIR) to its actual value in the
25260   # expansion.
25261   for file in `sed -n "
25262     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25263        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25264     # Make sure the directory exists.
25265     test -f "$dirpart/$file" && continue
25266     fdir=`$as_dirname -- "$file" ||
25267 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25268          X"$file" : 'X\(//\)[^/]' \| \
25269          X"$file" : 'X\(//\)$' \| \
25270          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25271 echo X"$file" |
25272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25273             s//\1/
25274             q
25275           }
25276           /^X\(\/\/\)[^/].*/{
25277             s//\1/
25278             q
25279           }
25280           /^X\(\/\/\)$/{
25281             s//\1/
25282             q
25283           }
25284           /^X\(\/\).*/{
25285             s//\1/
25286             q
25287           }
25288           s/.*/./; q'`
25289     { as_dir=$dirpart/$fdir
25290   case $as_dir in #(
25291   -*) as_dir=./$as_dir;;
25292   esac
25293   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25294     as_dirs=
25295     while :; do
25296       case $as_dir in #(
25297       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25298       *) as_qdir=$as_dir;;
25299       esac
25300       as_dirs="'$as_qdir' $as_dirs"
25301       as_dir=`$as_dirname -- "$as_dir" ||
25302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25303          X"$as_dir" : 'X\(//\)[^/]' \| \
25304          X"$as_dir" : 'X\(//\)$' \| \
25305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25306 echo X"$as_dir" |
25307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25308             s//\1/
25309             q
25310           }
25311           /^X\(\/\/\)[^/].*/{
25312             s//\1/
25313             q
25314           }
25315           /^X\(\/\/\)$/{
25316             s//\1/
25317             q
25318           }
25319           /^X\(\/\).*/{
25320             s//\1/
25321             q
25322           }
25323           s/.*/./; q'`
25324       test -d "$as_dir" && break
25325     done
25326     test -z "$as_dirs" || eval "mkdir $as_dirs"
25327   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25328 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25329    { (exit 1); exit 1; }; }; }
25330     # echo "creating $dirpart/$file"
25331     echo '# dummy' > "$dirpart/$file"
25332   done
25333 done
25334  ;;
25335     "libtool":C)
25336
25337     # See if we are running on zsh, and set the options which allow our
25338     # commands through without removal of \ escapes.
25339     if test -n "${ZSH_VERSION+set}" ; then
25340       setopt NO_GLOB_SUBST
25341     fi
25342
25343     cfgfile="${ofile}T"
25344     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25345     $RM "$cfgfile"
25346
25347     cat <<_LT_EOF >> "$cfgfile"
25348 #! $SHELL
25349
25350 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25351 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25354 #
25355 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25356 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
25357 #                 Inc.
25358 #   Written by Gordon Matzigkeit, 1996
25359 #
25360 #   This file is part of GNU Libtool.
25361 #
25362 # GNU Libtool is free software; you can redistribute it and/or
25363 # modify it under the terms of the GNU General Public License as
25364 # published by the Free Software Foundation; either version 2 of
25365 # the License, or (at your option) any later version.
25366 #
25367 # As a special exception to the GNU General Public License,
25368 # if you distribute this file as part of a program or library that
25369 # is built using GNU Libtool, you may include this file under the
25370 # same distribution terms that you use for the rest of that program.
25371 #
25372 # GNU Libtool is distributed in the hope that it will be useful,
25373 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25374 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25375 # GNU General Public License for more details.
25376 #
25377 # You should have received a copy of the GNU General Public License
25378 # along with GNU Libtool; see the file COPYING.  If not, a copy
25379 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25380 # obtained by writing to the Free Software Foundation, Inc.,
25381 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25382
25383
25384 # The names of the tagged configurations supported by this script.
25385 available_tags=""
25386
25387 # ### BEGIN LIBTOOL CONFIG
25388
25389 # Whether or not to build static libraries.
25390 build_old_libs=$enable_static
25391
25392 # Which release of libtool.m4 was used?
25393 macro_version=$macro_version
25394 macro_revision=$macro_revision
25395
25396 # Whether or not to build shared libraries.
25397 build_libtool_libs=$enable_shared
25398
25399 # What type of objects to build.
25400 pic_mode=$pic_mode
25401
25402 # Whether or not to optimize for fast installation.
25403 fast_install=$enable_fast_install
25404
25405 # Shell to use when invoking shell scripts.
25406 SHELL=$lt_SHELL
25407
25408 # An echo program that protects backslashes.
25409 ECHO=$lt_ECHO
25410
25411 # The host system.
25412 host_alias=$host_alias
25413 host=$host
25414 host_os=$host_os
25415
25416 # The build system.
25417 build_alias=$build_alias
25418 build=$build
25419 build_os=$build_os
25420
25421 # A sed program that does not truncate output.
25422 SED=$lt_SED
25423
25424 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25425 Xsed="\$SED -e 1s/^X//"
25426
25427 # A grep program that handles long lines.
25428 GREP=$lt_GREP
25429
25430 # An ERE matcher.
25431 EGREP=$lt_EGREP
25432
25433 # A literal string matcher.
25434 FGREP=$lt_FGREP
25435
25436 # A BSD- or MS-compatible name lister.
25437 NM=$lt_NM
25438
25439 # Whether we need soft or hard links.
25440 LN_S=$lt_LN_S
25441
25442 # What is the maximum length of a command?
25443 max_cmd_len=$max_cmd_len
25444
25445 # Object file suffix (normally "o").
25446 objext=$ac_objext
25447
25448 # Executable file suffix (normally "").
25449 exeext=$exeext
25450
25451 # whether the shell understands "unset".
25452 lt_unset=$lt_unset
25453
25454 # turn spaces into newlines.
25455 SP2NL=$lt_lt_SP2NL
25456
25457 # turn newlines into spaces.
25458 NL2SP=$lt_lt_NL2SP
25459
25460 # An object symbol dumper.
25461 OBJDUMP=$lt_OBJDUMP
25462
25463 # Method to check whether dependent libraries are shared objects.
25464 deplibs_check_method=$lt_deplibs_check_method
25465
25466 # Command to use when deplibs_check_method == "file_magic".
25467 file_magic_cmd=$lt_file_magic_cmd
25468
25469 # The archiver.
25470 AR=$lt_AR
25471 AR_FLAGS=$lt_AR_FLAGS
25472
25473 # A symbol stripping program.
25474 STRIP=$lt_STRIP
25475
25476 # Commands used to install an old-style archive.
25477 RANLIB=$lt_RANLIB
25478 old_postinstall_cmds=$lt_old_postinstall_cmds
25479 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25480
25481 # Whether to use a lock for old archive extraction.
25482 lock_old_archive_extraction=$lock_old_archive_extraction
25483
25484 # A C compiler.
25485 LTCC=$lt_CC
25486
25487 # LTCC compiler flags.
25488 LTCFLAGS=$lt_CFLAGS
25489
25490 # Take the output of nm and produce a listing of raw symbols and C names.
25491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25492
25493 # Transform the output of nm in a proper C declaration.
25494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25495
25496 # Transform the output of nm in a C name address pair.
25497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25498
25499 # Transform the output of nm in a C name address pair when lib prefix is needed.
25500 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25501
25502 # The name of the directory that contains temporary libtool files.
25503 objdir=$objdir
25504
25505 # Used to examine libraries when file_magic_cmd begins with "file".
25506 MAGIC_CMD=$MAGIC_CMD
25507
25508 # Must we lock files when doing compilation?
25509 need_locks=$lt_need_locks
25510
25511 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25512 DSYMUTIL=$lt_DSYMUTIL
25513
25514 # Tool to change global to local symbols on Mac OS X.
25515 NMEDIT=$lt_NMEDIT
25516
25517 # Tool to manipulate fat objects and archives on Mac OS X.
25518 LIPO=$lt_LIPO
25519
25520 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25521 OTOOL=$lt_OTOOL
25522
25523 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25524 OTOOL64=$lt_OTOOL64
25525
25526 # Old archive suffix (normally "a").
25527 libext=$libext
25528
25529 # Shared library suffix (normally ".so").
25530 shrext_cmds=$lt_shrext_cmds
25531
25532 # The commands to extract the exported symbol list from a shared archive.
25533 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25534
25535 # Variables whose values should be saved in libtool wrapper scripts and
25536 # restored at link time.
25537 variables_saved_for_relink=$lt_variables_saved_for_relink
25538
25539 # Do we need the "lib" prefix for modules?
25540 need_lib_prefix=$need_lib_prefix
25541
25542 # Do we need a version for libraries?
25543 need_version=$need_version
25544
25545 # Library versioning type.
25546 version_type=$version_type
25547
25548 # Shared library runtime path variable.
25549 runpath_var=$runpath_var
25550
25551 # Shared library path variable.
25552 shlibpath_var=$shlibpath_var
25553
25554 # Is shlibpath searched before the hard-coded library search path?
25555 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25556
25557 # Format of library name prefix.
25558 libname_spec=$lt_libname_spec
25559
25560 # List of archive names.  First name is the real one, the rest are links.
25561 # The last name is the one that the linker finds with -lNAME
25562 library_names_spec=$lt_library_names_spec
25563
25564 # The coded name of the library, if different from the real name.
25565 soname_spec=$lt_soname_spec
25566
25567 # Permission mode override for installation of shared libraries.
25568 install_override_mode=$lt_install_override_mode
25569
25570 # Command to use after installation of a shared archive.
25571 postinstall_cmds=$lt_postinstall_cmds
25572
25573 # Command to use after uninstallation of a shared archive.
25574 postuninstall_cmds=$lt_postuninstall_cmds
25575
25576 # Commands used to finish a libtool library installation in a directory.
25577 finish_cmds=$lt_finish_cmds
25578
25579 # As "finish_cmds", except a single script fragment to be evaled but
25580 # not shown.
25581 finish_eval=$lt_finish_eval
25582
25583 # Whether we should hardcode library paths into libraries.
25584 hardcode_into_libs=$hardcode_into_libs
25585
25586 # Compile-time system search path for libraries.
25587 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25588
25589 # Run-time system search path for libraries.
25590 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25591
25592 # Whether dlopen is supported.
25593 dlopen_support=$enable_dlopen
25594
25595 # Whether dlopen of programs is supported.
25596 dlopen_self=$enable_dlopen_self
25597
25598 # Whether dlopen of statically linked programs is supported.
25599 dlopen_self_static=$enable_dlopen_self_static
25600
25601 # Commands to strip libraries.
25602 old_striplib=$lt_old_striplib
25603 striplib=$lt_striplib
25604
25605
25606 # The linker used to build libraries.
25607 LD=$lt_LD
25608
25609 # How to create reloadable object files.
25610 reload_flag=$lt_reload_flag
25611 reload_cmds=$lt_reload_cmds
25612
25613 # Commands used to build an old-style archive.
25614 old_archive_cmds=$lt_old_archive_cmds
25615
25616 # A language specific compiler.
25617 CC=$lt_compiler
25618
25619 # Is the compiler the GNU compiler?
25620 with_gcc=$GCC
25621
25622 # Compiler flag to turn off builtin functions.
25623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25624
25625 # How to pass a linker flag through the compiler.
25626 wl=$lt_lt_prog_compiler_wl
25627
25628 # Additional compiler flags for building library objects.
25629 pic_flag=$lt_lt_prog_compiler_pic
25630
25631 # Compiler flag to prevent dynamic linking.
25632 link_static_flag=$lt_lt_prog_compiler_static
25633
25634 # Does compiler simultaneously support -c and -o options?
25635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25636
25637 # Whether or not to add -lc for building shared libraries.
25638 build_libtool_need_lc=$archive_cmds_need_lc
25639
25640 # Whether or not to disallow shared libs when runtime libs are static.
25641 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25642
25643 # Compiler flag to allow reflexive dlopens.
25644 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25645
25646 # Compiler flag to generate shared objects directly from archives.
25647 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25648
25649 # Whether the compiler copes with passing no objects directly.
25650 compiler_needs_object=$lt_compiler_needs_object
25651
25652 # Create an old-style archive from a shared archive.
25653 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25654
25655 # Create a temporary old-style archive to link instead of a shared archive.
25656 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25657
25658 # Commands used to build a shared archive.
25659 archive_cmds=$lt_archive_cmds
25660 archive_expsym_cmds=$lt_archive_expsym_cmds
25661
25662 # Commands used to build a loadable module if different from building
25663 # a shared archive.
25664 module_cmds=$lt_module_cmds
25665 module_expsym_cmds=$lt_module_expsym_cmds
25666
25667 # Whether we are building with GNU ld or not.
25668 with_gnu_ld=$lt_with_gnu_ld
25669
25670 # Flag that allows shared libraries with undefined symbols to be built.
25671 allow_undefined_flag=$lt_allow_undefined_flag
25672
25673 # Flag that enforces no undefined symbols.
25674 no_undefined_flag=$lt_no_undefined_flag
25675
25676 # Flag to hardcode \$libdir into a binary during linking.
25677 # This must work even if \$libdir does not exist
25678 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25679
25680 # If ld is used when linking, flag to hardcode \$libdir into a binary
25681 # during linking.  This must work even if \$libdir does not exist.
25682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25683
25684 # Whether we need a single "-rpath" flag with a separated argument.
25685 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25686
25687 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25688 # DIR into the resulting binary.
25689 hardcode_direct=$hardcode_direct
25690
25691 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25692 # DIR into the resulting binary and the resulting library dependency is
25693 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25694 # library is relocated.
25695 hardcode_direct_absolute=$hardcode_direct_absolute
25696
25697 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25698 # into the resulting binary.
25699 hardcode_minus_L=$hardcode_minus_L
25700
25701 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25702 # into the resulting binary.
25703 hardcode_shlibpath_var=$hardcode_shlibpath_var
25704
25705 # Set to "yes" if building a shared library automatically hardcodes DIR
25706 # into the library and all subsequent libraries and executables linked
25707 # against it.
25708 hardcode_automatic=$hardcode_automatic
25709
25710 # Set to yes if linker adds runtime paths of dependent libraries
25711 # to runtime path list.
25712 inherit_rpath=$inherit_rpath
25713
25714 # Whether libtool must link a program against all its dependency libraries.
25715 link_all_deplibs=$link_all_deplibs
25716
25717 # Fix the shell variable \$srcfile for the compiler.
25718 fix_srcfile_path=$lt_fix_srcfile_path
25719
25720 # Set to "yes" if exported symbols are required.
25721 always_export_symbols=$always_export_symbols
25722
25723 # The commands to list exported symbols.
25724 export_symbols_cmds=$lt_export_symbols_cmds
25725
25726 # Symbols that should not be listed in the preloaded symbols.
25727 exclude_expsyms=$lt_exclude_expsyms
25728
25729 # Symbols that must always be exported.
25730 include_expsyms=$lt_include_expsyms
25731
25732 # Commands necessary for linking programs (against libraries) with templates.
25733 prelink_cmds=$lt_prelink_cmds
25734
25735 # Specify filename containing input files.
25736 file_list_spec=$lt_file_list_spec
25737
25738 # How to hardcode a shared library path into an executable.
25739 hardcode_action=$hardcode_action
25740
25741 # ### END LIBTOOL CONFIG
25742
25743 _LT_EOF
25744
25745   case $host_os in
25746   aix3*)
25747     cat <<\_LT_EOF >> "$cfgfile"
25748 # AIX sometimes has problems with the GCC collect2 program.  For some
25749 # reason, if we set the COLLECT_NAMES environment variable, the problems
25750 # vanish in a puff of smoke.
25751 if test "X${COLLECT_NAMES+set}" != Xset; then
25752   COLLECT_NAMES=
25753   export COLLECT_NAMES
25754 fi
25755 _LT_EOF
25756     ;;
25757   esac
25758
25759
25760 ltmain="$ac_aux_dir/ltmain.sh"
25761
25762
25763   # We use sed instead of cat because bash on DJGPP gets confused if
25764   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25765   # text mode, it properly converts lines to CR/LF.  This bash problem
25766   # is reportedly fixed, but why not run on old versions too?
25767   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25768     || (rm -f "$cfgfile"; exit 1)
25769
25770   case $xsi_shell in
25771   yes)
25772     cat << \_LT_EOF >> "$cfgfile"
25773
25774 # func_dirname file append nondir_replacement
25775 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25776 # otherwise set result to NONDIR_REPLACEMENT.
25777 func_dirname ()
25778 {
25779   case ${1} in
25780     */*) func_dirname_result="${1%/*}${2}" ;;
25781     *  ) func_dirname_result="${3}" ;;
25782   esac
25783 }
25784
25785 # func_basename file
25786 func_basename ()
25787 {
25788   func_basename_result="${1##*/}"
25789 }
25790
25791 # func_dirname_and_basename file append nondir_replacement
25792 # perform func_basename and func_dirname in a single function
25793 # call:
25794 #   dirname:  Compute the dirname of FILE.  If nonempty,
25795 #             add APPEND to the result, otherwise set result
25796 #             to NONDIR_REPLACEMENT.
25797 #             value returned in "$func_dirname_result"
25798 #   basename: Compute filename of FILE.
25799 #             value retuned in "$func_basename_result"
25800 # Implementation must be kept synchronized with func_dirname
25801 # and func_basename. For efficiency, we do not delegate to
25802 # those functions but instead duplicate the functionality here.
25803 func_dirname_and_basename ()
25804 {
25805   case ${1} in
25806     */*) func_dirname_result="${1%/*}${2}" ;;
25807     *  ) func_dirname_result="${3}" ;;
25808   esac
25809   func_basename_result="${1##*/}"
25810 }
25811
25812 # func_stripname prefix suffix name
25813 # strip PREFIX and SUFFIX off of NAME.
25814 # PREFIX and SUFFIX must not contain globbing or regex special
25815 # characters, hashes, percent signs, but SUFFIX may contain a leading
25816 # dot (in which case that matches only a dot).
25817 func_stripname ()
25818 {
25819   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25820   # positional parameters, so assign one to ordinary parameter first.
25821   func_stripname_result=${3}
25822   func_stripname_result=${func_stripname_result#"${1}"}
25823   func_stripname_result=${func_stripname_result%"${2}"}
25824 }
25825
25826 # func_opt_split
25827 func_opt_split ()
25828 {
25829   func_opt_split_opt=${1%%=*}
25830   func_opt_split_arg=${1#*=}
25831 }
25832
25833 # func_lo2o object
25834 func_lo2o ()
25835 {
25836   case ${1} in
25837     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25838     *)    func_lo2o_result=${1} ;;
25839   esac
25840 }
25841
25842 # func_xform libobj-or-source
25843 func_xform ()
25844 {
25845   func_xform_result=${1%.*}.lo
25846 }
25847
25848 # func_arith arithmetic-term...
25849 func_arith ()
25850 {
25851   func_arith_result=$(( $* ))
25852 }
25853
25854 # func_len string
25855 # STRING may not start with a hyphen.
25856 func_len ()
25857 {
25858   func_len_result=${#1}
25859 }
25860
25861 _LT_EOF
25862     ;;
25863   *) # Bourne compatible functions.
25864     cat << \_LT_EOF >> "$cfgfile"
25865
25866 # func_dirname file append nondir_replacement
25867 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25868 # otherwise set result to NONDIR_REPLACEMENT.
25869 func_dirname ()
25870 {
25871   # Extract subdirectory from the argument.
25872   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25873   if test "X$func_dirname_result" = "X${1}"; then
25874     func_dirname_result="${3}"
25875   else
25876     func_dirname_result="$func_dirname_result${2}"
25877   fi
25878 }
25879
25880 # func_basename file
25881 func_basename ()
25882 {
25883   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25884 }
25885
25886
25887 # func_stripname prefix suffix name
25888 # strip PREFIX and SUFFIX off of NAME.
25889 # PREFIX and SUFFIX must not contain globbing or regex special
25890 # characters, hashes, percent signs, but SUFFIX may contain a leading
25891 # dot (in which case that matches only a dot).
25892 # func_strip_suffix prefix name
25893 func_stripname ()
25894 {
25895   case ${2} in
25896     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25897     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25898   esac
25899 }
25900
25901 # sed scripts:
25902 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25903 my_sed_long_arg='1s/^-[^=]*=//'
25904
25905 # func_opt_split
25906 func_opt_split ()
25907 {
25908   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25909   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25910 }
25911
25912 # func_lo2o object
25913 func_lo2o ()
25914 {
25915   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25916 }
25917
25918 # func_xform libobj-or-source
25919 func_xform ()
25920 {
25921   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25922 }
25923
25924 # func_arith arithmetic-term...
25925 func_arith ()
25926 {
25927   func_arith_result=`expr "$@"`
25928 }
25929
25930 # func_len string
25931 # STRING may not start with a hyphen.
25932 func_len ()
25933 {
25934   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25935 }
25936
25937 _LT_EOF
25938 esac
25939
25940 case $lt_shell_append in
25941   yes)
25942     cat << \_LT_EOF >> "$cfgfile"
25943
25944 # func_append var value
25945 # Append VALUE to the end of shell variable VAR.
25946 func_append ()
25947 {
25948   eval "$1+=\$2"
25949 }
25950 _LT_EOF
25951     ;;
25952   *)
25953     cat << \_LT_EOF >> "$cfgfile"
25954
25955 # func_append var value
25956 # Append VALUE to the end of shell variable VAR.
25957 func_append ()
25958 {
25959   eval "$1=\$$1\$2"
25960 }
25961
25962 _LT_EOF
25963     ;;
25964   esac
25965
25966
25967   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25968     || (rm -f "$cfgfile"; exit 1)
25969
25970   mv -f "$cfgfile" "$ofile" ||
25971     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25972   chmod +x "$ofile"
25973
25974  ;;
25975
25976   esac
25977 done # for ac_tag
25978
25979
25980 { (exit 0); exit 0; }
25981 _ACEOF
25982 chmod +x $CONFIG_STATUS
25983 ac_clean_files=$ac_clean_files_save
25984
25985
25986 # configure is writing to config.log, and then calls config.status.
25987 # config.status does its own redirection, appending to config.log.
25988 # Unfortunately, on DOS this fails, as config.log is still kept open
25989 # by configure, so config.status won't be able to write to it; its
25990 # output is simply discarded.  So we exec the FD to /dev/null,
25991 # effectively closing config.log, so it can be properly (re)opened and
25992 # appended to by config.status.  When coming back to configure, we
25993 # need to make the FD available again.
25994 if test "$no_create" != yes; then
25995   ac_cs_success=:
25996   ac_config_status_args=
25997   test "$silent" = yes &&
25998     ac_config_status_args="$ac_config_status_args --quiet"
25999   exec 5>/dev/null
26000   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26001   exec 5>>config.log
26002   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26003   # would make configure fail if this is the last instruction.
26004   $ac_cs_success || { (exit 1); exit 1; }
26005 fi
26006
26007 #
26008 # CONFIG_SUBDIRS section.
26009 #
26010 if test "$no_recursion" != yes; then
26011
26012   # Remove --cache-file and --srcdir arguments so they do not pile up.
26013   ac_sub_configure_args=
26014   ac_prev=
26015   eval "set x $ac_configure_args"
26016   shift
26017   for ac_arg
26018   do
26019     if test -n "$ac_prev"; then
26020       ac_prev=
26021       continue
26022     fi
26023     case $ac_arg in
26024     -cache-file | --cache-file | --cache-fil | --cache-fi \
26025     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26026       ac_prev=cache_file ;;
26027     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26028     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26029     | --c=*)
26030       ;;
26031     --config-cache | -C)
26032       ;;
26033     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26034       ac_prev=srcdir ;;
26035     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26036       ;;
26037     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26038       ac_prev=prefix ;;
26039     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26040       ;;
26041     *)
26042       case $ac_arg in
26043       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26044       esac
26045       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26046     esac
26047   done
26048
26049   # Always prepend --prefix to ensure using the same prefix
26050   # in subdir configurations.
26051   ac_arg="--prefix=$prefix"
26052   case $ac_arg in
26053   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26054   esac
26055   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26056
26057   # Pass --silent
26058   if test "$silent" = yes; then
26059     ac_sub_configure_args="--silent $ac_sub_configure_args"
26060   fi
26061
26062   ac_popdir=`pwd`
26063   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26064
26065     # Do not complain, so a configure script can configure whichever
26066     # parts of a large source tree are present.
26067     test -d "$srcdir/$ac_dir" || continue
26068
26069     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26070     echo "$as_me:$LINENO: $ac_msg" >&5
26071     echo "$ac_msg" >&6
26072     { as_dir="$ac_dir"
26073   case $as_dir in #(
26074   -*) as_dir=./$as_dir;;
26075   esac
26076   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26077     as_dirs=
26078     while :; do
26079       case $as_dir in #(
26080       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26081       *) as_qdir=$as_dir;;
26082       esac
26083       as_dirs="'$as_qdir' $as_dirs"
26084       as_dir=`$as_dirname -- "$as_dir" ||
26085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26086          X"$as_dir" : 'X\(//\)[^/]' \| \
26087          X"$as_dir" : 'X\(//\)$' \| \
26088          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26089 echo X"$as_dir" |
26090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26091             s//\1/
26092             q
26093           }
26094           /^X\(\/\/\)[^/].*/{
26095             s//\1/
26096             q
26097           }
26098           /^X\(\/\/\)$/{
26099             s//\1/
26100             q
26101           }
26102           /^X\(\/\).*/{
26103             s//\1/
26104             q
26105           }
26106           s/.*/./; q'`
26107       test -d "$as_dir" && break
26108     done
26109     test -z "$as_dirs" || eval "mkdir $as_dirs"
26110   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26111 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26112    { (exit 1); exit 1; }; }; }
26113     ac_builddir=.
26114
26115 case "$ac_dir" in
26116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26117 *)
26118   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26119   # A ".." for each directory in $ac_dir_suffix.
26120   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26121   case $ac_top_builddir_sub in
26122   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26123   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26124   esac ;;
26125 esac
26126 ac_abs_top_builddir=$ac_pwd
26127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26128 # for backward compatibility:
26129 ac_top_builddir=$ac_top_build_prefix
26130
26131 case $srcdir in
26132   .)  # We are building in place.
26133     ac_srcdir=.
26134     ac_top_srcdir=$ac_top_builddir_sub
26135     ac_abs_top_srcdir=$ac_pwd ;;
26136   [\\/]* | ?:[\\/]* )  # Absolute name.
26137     ac_srcdir=$srcdir$ac_dir_suffix;
26138     ac_top_srcdir=$srcdir
26139     ac_abs_top_srcdir=$srcdir ;;
26140   *) # Relative name.
26141     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26142     ac_top_srcdir=$ac_top_build_prefix$srcdir
26143     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26144 esac
26145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26146
26147
26148     cd "$ac_dir"
26149
26150     # Check for guested configure; otherwise get Cygnus style configure.
26151     if test -f "$ac_srcdir/configure.gnu"; then
26152       ac_sub_configure=$ac_srcdir/configure.gnu
26153     elif test -f "$ac_srcdir/configure"; then
26154       ac_sub_configure=$ac_srcdir/configure
26155     elif test -f "$ac_srcdir/configure.in"; then
26156       # This should be Cygnus configure.
26157       ac_sub_configure=$ac_aux_dir/configure
26158     else
26159       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26160 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26161       ac_sub_configure=
26162     fi
26163
26164     # The recursion is here.
26165     if test -n "$ac_sub_configure"; then
26166       # Make the cache file name correct relative to the subdirectory.
26167       case $cache_file in
26168       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26169       *) # Relative name.
26170         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26171       esac
26172
26173       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26174 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26175       # The eval makes quoting arguments work.
26176       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26177            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26178         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26179 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26180    { (exit 1); exit 1; }; }
26181     fi
26182
26183     cd "$ac_popdir"
26184   done
26185 fi
26186
26187
26188 echo Configuration Complete.  Type \'make\' to build.