reformat
[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   CPPFLAGS=$cmu_saved_CPPFLAGS
18298
18299 fi
18300
18301 if test "$gssapi" != no; then
18302   # We need to find out which gssapi implementation we are
18303   # using. Supported alternatives are: MIT Kerberos 5,
18304   # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
18305   # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
18306   # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
18307   #
18308   # The choice is reflected in GSSAPIBASE_LIBS
18309
18310
18311 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
18312 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
18313 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
18314   echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316   ac_check_lib_save_LIBS=$LIBS
18317 LIBS="-lresolv  $LIBS"
18318 cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h.  */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h.  */
18324
18325 /* Override any GCC internal prototype to avoid an error.
18326    Use char because int might match the return type of a GCC
18327    builtin and then its argument prototype would still apply.  */
18328 #ifdef __cplusplus
18329 extern "C"
18330 #endif
18331 char res_search ();
18332 int
18333 main ()
18334 {
18335 return res_search ();
18336   ;
18337   return 0;
18338 }
18339 _ACEOF
18340 rm -f conftest.$ac_objext conftest$ac_exeext
18341 if { (ac_try="$ac_link"
18342 case "(($ac_try" in
18343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344   *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347   (eval "$ac_link") 2>conftest.er1
18348   ac_status=$?
18349   grep -v '^ *+' conftest.er1 >conftest.err
18350   rm -f conftest.er1
18351   cat conftest.err >&5
18352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353   (exit $ac_status); } && {
18354          test -z "$ac_c_werror_flag" ||
18355          test ! -s conftest.err
18356        } && test -s conftest$ac_exeext &&
18357        $as_test_x conftest$ac_exeext; then
18358   ac_cv_lib_resolv_res_search=yes
18359 else
18360   echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18362
18363         ac_cv_lib_resolv_res_search=no
18364 fi
18365
18366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18367       conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18369 fi
18370 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
18371 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
18372 if test $ac_cv_lib_resolv_res_search = yes; then
18373   cat >>confdefs.h <<_ACEOF
18374 #define HAVE_LIBRESOLV 1
18375 _ACEOF
18376
18377   LIBS="-lresolv $LIBS"
18378
18379 fi
18380
18381   if test -d ${gssapi}; then
18382      gssapi_dir="${gssapi}/lib"
18383      GSSAPIBASE_LIBS="-L$gssapi_dir"
18384      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
18385   else
18386      # FIXME: This is only used for building cyrus, and then only as
18387      # a real hack.  it needs to be fixed.
18388      gssapi_dir="/usr/local/lib"
18389   fi
18390
18391   # Check a full link against the Heimdal libraries.
18392   # If this fails, check a full link against the MIT libraries.
18393   # If this fails, check a full link against the CyberSafe libraries.
18394   # If this fails, check a full link against the Solaris 8 and up libgss.
18395
18396   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
18397     gss_failed=0
18398     { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
18399 echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
18405 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412 /* Override any GCC internal prototype to avoid an error.
18413    Use char because int might match the return type of a GCC
18414    builtin and then its argument prototype would still apply.  */
18415 #ifdef __cplusplus
18416 extern "C"
18417 #endif
18418 char gss_unwrap ();
18419 int
18420 main ()
18421 {
18422 return gss_unwrap ();
18423   ;
18424   return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431   *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434   (eval "$ac_link") 2>conftest.er1
18435   ac_status=$?
18436   grep -v '^ *+' conftest.er1 >conftest.err
18437   rm -f conftest.er1
18438   cat conftest.err >&5
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } && {
18441          test -z "$ac_c_werror_flag" ||
18442          test ! -s conftest.err
18443        } && test -s conftest$ac_exeext &&
18444        $as_test_x conftest$ac_exeext; then
18445   ac_cv_lib_gssapi_gss_unwrap=yes
18446 else
18447   echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18449
18450         ac_cv_lib_gssapi_gss_unwrap=no
18451 fi
18452
18453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18454       conftest$ac_exeext conftest.$ac_ext
18455 LIBS=$ac_check_lib_save_LIBS
18456 fi
18457 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
18458 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6; }
18459 if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
18460   gss_impl="heimdal"
18461 else
18462   gss_failed=1
18463 fi
18464
18465     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18466       gss_impl="failed"
18467     fi
18468   fi
18469
18470   if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
18471     # check for libkrb5support first
18472     { echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
18473 echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6; }
18474 if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
18475   echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477   ac_check_lib_save_LIBS=$LIBS
18478 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
18479 cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485
18486 /* Override any GCC internal prototype to avoid an error.
18487    Use char because int might match the return type of a GCC
18488    builtin and then its argument prototype would still apply.  */
18489 #ifdef __cplusplus
18490 extern "C"
18491 #endif
18492 char krb5int_getspecific ();
18493 int
18494 main ()
18495 {
18496 return krb5int_getspecific ();
18497   ;
18498   return 0;
18499 }
18500 _ACEOF
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (ac_try="$ac_link"
18503 case "(($ac_try" in
18504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505   *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508   (eval "$ac_link") 2>conftest.er1
18509   ac_status=$?
18510   grep -v '^ *+' conftest.er1 >conftest.err
18511   rm -f conftest.er1
18512   cat conftest.err >&5
18513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); } && {
18515          test -z "$ac_c_werror_flag" ||
18516          test ! -s conftest.err
18517        } && test -s conftest$ac_exeext &&
18518        $as_test_x conftest$ac_exeext; then
18519   ac_cv_lib_krb5support_krb5int_getspecific=yes
18520 else
18521   echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524         ac_cv_lib_krb5support_krb5int_getspecific=no
18525 fi
18526
18527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18528       conftest$ac_exeext conftest.$ac_ext
18529 LIBS=$ac_check_lib_save_LIBS
18530 fi
18531 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
18532 echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
18533 if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
18534   K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
18535 fi
18536
18537
18538     gss_failed=0
18539     { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
18540 echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6; }
18541 if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
18542   echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544   ac_check_lib_save_LIBS=$LIBS
18545 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
18546 cat >conftest.$ac_ext <<_ACEOF
18547 /* confdefs.h.  */
18548 _ACEOF
18549 cat confdefs.h >>conftest.$ac_ext
18550 cat >>conftest.$ac_ext <<_ACEOF
18551 /* end confdefs.h.  */
18552
18553 /* Override any GCC internal prototype to avoid an error.
18554    Use char because int might match the return type of a GCC
18555    builtin and then its argument prototype would still apply.  */
18556 #ifdef __cplusplus
18557 extern "C"
18558 #endif
18559 char gss_unwrap ();
18560 int
18561 main ()
18562 {
18563 return gss_unwrap ();
18564   ;
18565   return 0;
18566 }
18567 _ACEOF
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (ac_try="$ac_link"
18570 case "(($ac_try" in
18571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572   *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575   (eval "$ac_link") 2>conftest.er1
18576   ac_status=$?
18577   grep -v '^ *+' conftest.er1 >conftest.err
18578   rm -f conftest.er1
18579   cat conftest.err >&5
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); } && {
18582          test -z "$ac_c_werror_flag" ||
18583          test ! -s conftest.err
18584        } && test -s conftest$ac_exeext &&
18585        $as_test_x conftest$ac_exeext; then
18586   ac_cv_lib_gssapi_krb5_gss_unwrap=yes
18587 else
18588   echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591         ac_cv_lib_gssapi_krb5_gss_unwrap=no
18592 fi
18593
18594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595       conftest$ac_exeext conftest.$ac_ext
18596 LIBS=$ac_check_lib_save_LIBS
18597 fi
18598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
18599 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
18600 if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
18601   gss_impl="mit"
18602 else
18603   gss_failed=1
18604 fi
18605
18606     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18607       gss_impl="failed"
18608     fi
18609   fi
18610
18611   # For Cybersafe one has to set a platform define in order to make compilation work
18612   if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
18613
18614     cmu_saved_CPPFLAGS=$CPPFLAGS
18615     cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
18616 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
18617     if test -d "${gssapi}/appsec-rt/lib"; then
18618       GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
18619     fi
18620     CPPFLAGS="$CPPFLAGS -D$platform"
18621     if test -d "${gssapi}/appsec-sdk/include"; then
18622       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
18623     fi
18624
18625     gss_failed=0
18626
18627 # Check for CyberSafe with two libraries first, than fall back to a single
18628 # library (older CyberSafe)
18629
18630     unset ac_cv_lib_gss_csf_gss_acq_user
18631     { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18632 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18633 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18634   echo $ECHO_N "(cached) $ECHO_C" >&6
18635 else
18636   ac_check_lib_save_LIBS=$LIBS
18637 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
18638 cat >conftest.$ac_ext <<_ACEOF
18639 /* confdefs.h.  */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h.  */
18644
18645 /* Override any GCC internal prototype to avoid an error.
18646    Use char because int might match the return type of a GCC
18647    builtin and then its argument prototype would still apply.  */
18648 #ifdef __cplusplus
18649 extern "C"
18650 #endif
18651 char csf_gss_acq_user ();
18652 int
18653 main ()
18654 {
18655 return csf_gss_acq_user ();
18656   ;
18657   return 0;
18658 }
18659 _ACEOF
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (ac_try="$ac_link"
18662 case "(($ac_try" in
18663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664   *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667   (eval "$ac_link") 2>conftest.er1
18668   ac_status=$?
18669   grep -v '^ *+' conftest.er1 >conftest.err
18670   rm -f conftest.er1
18671   cat conftest.err >&5
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); } && {
18674          test -z "$ac_c_werror_flag" ||
18675          test ! -s conftest.err
18676        } && test -s conftest$ac_exeext &&
18677        $as_test_x conftest$ac_exeext; then
18678   ac_cv_lib_gss_csf_gss_acq_user=yes
18679 else
18680   echo "$as_me: failed program was:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18682
18683         ac_cv_lib_gss_csf_gss_acq_user=no
18684 fi
18685
18686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18687       conftest$ac_exeext conftest.$ac_ext
18688 LIBS=$ac_check_lib_save_LIBS
18689 fi
18690 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18691 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18692 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18693   gss_impl="cybersafe03"
18694 else
18695   unset ac_cv_lib_gss_csf_gss_acq_user;
18696                   { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18697 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18698 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18699   echo $ECHO_N "(cached) $ECHO_C" >&6
18700 else
18701   ac_check_lib_save_LIBS=$LIBS
18702 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
18703 cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h.  */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h.  */
18709
18710 /* Override any GCC internal prototype to avoid an error.
18711    Use char because int might match the return type of a GCC
18712    builtin and then its argument prototype would still apply.  */
18713 #ifdef __cplusplus
18714 extern "C"
18715 #endif
18716 char csf_gss_acq_user ();
18717 int
18718 main ()
18719 {
18720 return csf_gss_acq_user ();
18721   ;
18722   return 0;
18723 }
18724 _ACEOF
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (ac_try="$ac_link"
18727 case "(($ac_try" in
18728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729   *) ac_try_echo=$ac_try;;
18730 esac
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732   (eval "$ac_link") 2>conftest.er1
18733   ac_status=$?
18734   grep -v '^ *+' conftest.er1 >conftest.err
18735   rm -f conftest.er1
18736   cat conftest.err >&5
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); } && {
18739          test -z "$ac_c_werror_flag" ||
18740          test ! -s conftest.err
18741        } && test -s conftest$ac_exeext &&
18742        $as_test_x conftest$ac_exeext; then
18743   ac_cv_lib_gss_csf_gss_acq_user=yes
18744 else
18745   echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18747
18748         ac_cv_lib_gss_csf_gss_acq_user=no
18749 fi
18750
18751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18752       conftest$ac_exeext conftest.$ac_ext
18753 LIBS=$ac_check_lib_save_LIBS
18754 fi
18755 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18756 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18757 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18758   gss_impl="cybersafe"
18759 else
18760   gss_failed=1
18761 fi
18762
18763 fi
18764
18765
18766     if test "$gss_failed" = "1"; then
18767 # Restore variables
18768       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
18769       CPPFLAGS=$cmu_saved_CPPFLAGS
18770
18771       if test "$gss_impl" != "auto"; then
18772         gss_impl="failed"
18773       fi
18774     fi
18775   fi
18776
18777   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
18778     gss_failed=0
18779     { echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
18780 echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6; }
18781 if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   ac_check_lib_save_LIBS=$LIBS
18785 LIBS="-lgss -lgss $LIBS"
18786 cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h.  */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h.  */
18792
18793 /* Override any GCC internal prototype to avoid an error.
18794    Use char because int might match the return type of a GCC
18795    builtin and then its argument prototype would still apply.  */
18796 #ifdef __cplusplus
18797 extern "C"
18798 #endif
18799 char gss_unwrap ();
18800 int
18801 main ()
18802 {
18803 return gss_unwrap ();
18804   ;
18805   return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (ac_try="$ac_link"
18810 case "(($ac_try" in
18811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812   *) ac_try_echo=$ac_try;;
18813 esac
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815   (eval "$ac_link") 2>conftest.er1
18816   ac_status=$?
18817   grep -v '^ *+' conftest.er1 >conftest.err
18818   rm -f conftest.er1
18819   cat conftest.err >&5
18820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821   (exit $ac_status); } && {
18822          test -z "$ac_c_werror_flag" ||
18823          test ! -s conftest.err
18824        } && test -s conftest$ac_exeext &&
18825        $as_test_x conftest$ac_exeext; then
18826   ac_cv_lib_gss_gss_unwrap=yes
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18830
18831         ac_cv_lib_gss_gss_unwrap=no
18832 fi
18833
18834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18835       conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18837 fi
18838 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
18839 echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6; }
18840 if test $ac_cv_lib_gss_gss_unwrap = yes; then
18841   gss_impl="seam"
18842 else
18843   gss_failed=1
18844 fi
18845
18846     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18847       gss_impl="failed"
18848     fi
18849   fi
18850
18851   if test "$gss_impl" = "mit"; then
18852     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
18853     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
18854   elif test "$gss_impl" = "heimdal"; then
18855     CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
18856     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
18857     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}"
18858   elif test "$gss_impl" = "cybersafe03"; then
18859 # Version of CyberSafe with two libraries
18860     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
18861     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
18862     # there is no static libgss for CyberSafe
18863     GSSAPIBASE_STATIC_LIBS=none
18864   elif test "$gss_impl" = "cybersafe"; then
18865     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
18866     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
18867     # there is no static libgss for CyberSafe
18868     GSSAPIBASE_STATIC_LIBS=none
18869   elif test "$gss_impl" = "seam"; then
18870     GSSAPIBASE_LIBS=-lgss
18871     # there is no static libgss on Solaris 8 and up
18872     GSSAPIBASE_STATIC_LIBS=none
18873   elif test "$gss_impl" = "failed"; then
18874     gssapi="no"
18875     GSSAPIBASE_LIBS=
18876     GSSAPIBASE_STATIC_LIBS=
18877     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
18878 echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
18879   else
18880     gssapi="no"
18881     GSSAPIBASE_LIBS=
18882     GSSAPIBASE_STATIC_LIBS=
18883     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
18884 echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
18885   fi
18886 fi
18887
18888 #
18889 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
18890 # in gssapi\rfckrb5.h
18891 #
18892 if test "$gssapi" != "no"; then
18893   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
18894     cat >conftest.$ac_ext <<_ACEOF
18895 /* confdefs.h.  */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h.  */
18900 #include <gssapi/gssapi.h>
18901                   #ifdef GSS_C_NT_HOSTBASED_SERVICE
18902                     hostbased_service_gss_nt_yes
18903                   #endif
18904 _ACEOF
18905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18906   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
18907
18908 cat >>confdefs.h <<\_ACEOF
18909 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18910 _ACEOF
18911
18912 else
18913   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
18914 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
18915 fi
18916 rm -f -r conftest*
18917
18918
18919   elif test "$ac_cv_header_gssapi_h" = "yes"; then
18920     cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926 #include <gssapi.h>
18927
18928 _ACEOF
18929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18930   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
18931
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18934 _ACEOF
18935
18936 fi
18937 rm -f -r conftest*
18938
18939   elif test "$ac_cv_header_gssapi_gssapi_h"; then
18940     cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h.  */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h.  */
18946 #include <gssapi/gssapi.h>
18947
18948 _ACEOF
18949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18950   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
18951
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18954 _ACEOF
18955
18956 fi
18957 rm -f -r conftest*
18958
18959   fi
18960
18961   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
18962     cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h.  */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h.  */
18968 #include <gssapi/gssapi.h>
18969                   #ifdef GSS_C_NT_USER_NAME
18970                    user_name_yes_gss_nt
18971                   #endif
18972 _ACEOF
18973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18974   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
18975
18976 cat >>confdefs.h <<\_ACEOF
18977 #define HAVE_GSS_C_NT_USER_NAME
18978 _ACEOF
18979
18980 else
18981   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
18982 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
18983 fi
18984 rm -f -r conftest*
18985
18986   elif test "$ac_cv_header_gssapi_h" = "yes"; then
18987     cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h.  */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h.  */
18993 #include <gssapi.h>
18994
18995 _ACEOF
18996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18997   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
18998
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_GSS_C_NT_USER_NAME
19001 _ACEOF
19002
19003 fi
19004 rm -f -r conftest*
19005
19006     cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012 #include <gssapi.h>
19013
19014 _ACEOF
19015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19016   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
19017   rfc5587=yes
19018 fi
19019 rm -f -r conftest*
19020
19021   elif test "$ac_cv_header_gssapi_gssapi_h"; then
19022     cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028 #include <gssapi/gssapi.h>
19029
19030 _ACEOF
19031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19032   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
19033
19034 cat >>confdefs.h <<\_ACEOF
19035 #define HAVE_GSS_C_NT_USER_NAME
19036 _ACEOF
19037
19038 fi
19039 rm -f -r conftest*
19040
19041     cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047 #include <gssapi/gssapi.h>
19048
19049 _ACEOF
19050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19051   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
19052   rfc5587=yes
19053 fi
19054 rm -f -r conftest*
19055
19056   fi
19057 fi
19058
19059 GSSAPI_LIBS=""
19060 { echo "$as_me:$LINENO: checking GSSAPI" >&5
19061 echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6; }
19062 if test "$gssapi" != no; then
19063   { echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
19064 echo "${ECHO_T}with implementation ${gss_impl}" >&6; }
19065   { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
19066 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
19067 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   ac_check_lib_save_LIBS=$LIBS
19071 LIBS="-lresolv  $LIBS"
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078
19079 /* Override any GCC internal prototype to avoid an error.
19080    Use char because int might match the return type of a GCC
19081    builtin and then its argument prototype would still apply.  */
19082 #ifdef __cplusplus
19083 extern "C"
19084 #endif
19085 char res_search ();
19086 int
19087 main ()
19088 {
19089 return res_search ();
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098   *) ac_try_echo=$ac_try;;
19099 esac
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101   (eval "$ac_link") 2>conftest.er1
19102   ac_status=$?
19103   grep -v '^ *+' conftest.er1 >conftest.err
19104   rm -f conftest.er1
19105   cat conftest.err >&5
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); } && {
19108          test -z "$ac_c_werror_flag" ||
19109          test ! -s conftest.err
19110        } && test -s conftest$ac_exeext &&
19111        $as_test_x conftest$ac_exeext; then
19112   ac_cv_lib_resolv_res_search=yes
19113 else
19114   echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19116
19117         ac_cv_lib_resolv_res_search=no
19118 fi
19119
19120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19121       conftest$ac_exeext conftest.$ac_ext
19122 LIBS=$ac_check_lib_save_LIBS
19123 fi
19124 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
19125 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
19126 if test $ac_cv_lib_resolv_res_search = yes; then
19127   GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
19128 fi
19129
19130   SASL_MECHS="$SASL_MECHS libgssapiv2.la"
19131   SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
19132   SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
19133   if test "$rfc5587" = "yes"; then
19134     SASL_MECHS="$SASL_MECHS libgs2.la"
19135     SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
19136     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
19137   fi
19138   cmu_save_LIBS="$LIBS"
19139   LIBS="$LIBS $GSSAPIBASE_LIBS"
19140
19141 for ac_func in gsskrb5_register_acceptor_identity
19142 do
19143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19147   echo $ECHO_N "(cached) $ECHO_C" >&6
19148 else
19149   cat >conftest.$ac_ext <<_ACEOF
19150 /* confdefs.h.  */
19151 _ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h.  */
19155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19157 #define $ac_func innocuous_$ac_func
19158
19159 /* System header to define __stub macros and hopefully few prototypes,
19160     which can conflict with char $ac_func (); below.
19161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19162     <limits.h> exists even on freestanding compilers.  */
19163
19164 #ifdef __STDC__
19165 # include <limits.h>
19166 #else
19167 # include <assert.h>
19168 #endif
19169
19170 #undef $ac_func
19171
19172 /* Override any GCC internal prototype to avoid an error.
19173    Use char because int might match the return type of a GCC
19174    builtin and then its argument prototype would still apply.  */
19175 #ifdef __cplusplus
19176 extern "C"
19177 #endif
19178 char $ac_func ();
19179 /* The GNU C library defines this for functions which it implements
19180     to always fail with ENOSYS.  Some functions are actually named
19181     something starting with __ and the normal name is an alias.  */
19182 #if defined __stub_$ac_func || defined __stub___$ac_func
19183 choke me
19184 #endif
19185
19186 int
19187 main ()
19188 {
19189 return $ac_func ();
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (ac_try="$ac_link"
19196 case "(($ac_try" in
19197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198   *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201   (eval "$ac_link") 2>conftest.er1
19202   ac_status=$?
19203   grep -v '^ *+' conftest.er1 >conftest.err
19204   rm -f conftest.er1
19205   cat conftest.err >&5
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); } && {
19208          test -z "$ac_c_werror_flag" ||
19209          test ! -s conftest.err
19210        } && test -s conftest$ac_exeext &&
19211        $as_test_x conftest$ac_exeext; then
19212   eval "$as_ac_var=yes"
19213 else
19214   echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217         eval "$as_ac_var=no"
19218 fi
19219
19220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19221       conftest$ac_exeext conftest.$ac_ext
19222 fi
19223 ac_res=`eval echo '${'$as_ac_var'}'`
19224                { echo "$as_me:$LINENO: result: $ac_res" >&5
19225 echo "${ECHO_T}$ac_res" >&6; }
19226 if test `eval echo '${'$as_ac_var'}'` = yes; then
19227   cat >>confdefs.h <<_ACEOF
19228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19229 _ACEOF
19230
19231 fi
19232 done
19233
19234   LIBS="$cmu_save_LIBS"
19235 else
19236   { echo "$as_me:$LINENO: result: disabled" >&5
19237 echo "${ECHO_T}disabled" >&6; }
19238 fi
19239
19240
19241
19242
19243 if test "$gssapi" != "no"; then
19244
19245 cat >>confdefs.h <<\_ACEOF
19246 #define STATIC_GSSAPIV2
19247 _ACEOF
19248
19249   mutex_default="no"
19250   if test "$gss_impl" = "mit"; then
19251      mutex_default="yes"
19252   fi
19253   { echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
19254 echo $ECHO_N "checking to use mutexes aroung GSS calls... $ECHO_C" >&6; }
19255   # Check whether --enable-gss_mutexes was given.
19256 if test "${enable_gss_mutexes+set}" = set; then
19257   enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
19258 else
19259   use_gss_mutexes=$mutex_default
19260 fi
19261
19262   if test $use_gss_mutexes = "yes"; then
19263
19264 cat >>confdefs.h <<\_ACEOF
19265 #define GSS_USE_MUTEXES
19266 _ACEOF
19267
19268   fi
19269   { echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
19270 echo "${ECHO_T}$use_gss_mutexes" >&6; }
19271 fi
19272
19273
19274
19275
19276  # Check whether --enable-plain was given.
19277 if test "${enable_plain+set}" = set; then
19278   enableval=$enable_plain; plain=$enableval
19279 else
19280   plain=yes
19281 fi
19282
19283
19284  PLAIN_LIBS=""
19285  if test "$plain" != no; then
19286     if test "$cmu_have_crypt" = yes; then
19287     PLAIN_LIBS=$LIB_CRYPT
19288   fi
19289  fi
19290
19291
19292  { echo "$as_me:$LINENO: checking PLAIN" >&5
19293 echo $ECHO_N "checking PLAIN... $ECHO_C" >&6; }
19294  if test "$plain" != no; then
19295   { echo "$as_me:$LINENO: result: enabled" >&5
19296 echo "${ECHO_T}enabled" >&6; }
19297   SASL_MECHS="$SASL_MECHS libplain.la"
19298   if test "$enable_static" = yes; then
19299     SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
19300     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
19301
19302 cat >>confdefs.h <<\_ACEOF
19303 #define STATIC_PLAIN
19304 _ACEOF
19305
19306   fi
19307  else
19308   { echo "$as_me:$LINENO: result: disabled" >&5
19309 echo "${ECHO_T}disabled" >&6; }
19310  fi
19311
19312
19313 # Check whether --enable-anon was given.
19314 if test "${enable_anon+set}" = set; then
19315   enableval=$enable_anon; anon=$enableval
19316 else
19317   anon=yes
19318 fi
19319
19320
19321 { echo "$as_me:$LINENO: checking ANONYMOUS" >&5
19322 echo $ECHO_N "checking ANONYMOUS... $ECHO_C" >&6; }
19323 if test "$anon" != no; then
19324   { echo "$as_me:$LINENO: result: enabled" >&5
19325 echo "${ECHO_T}enabled" >&6; }
19326   SASL_MECHS="$SASL_MECHS libanonymous.la"
19327   if test "$enable_static" = yes; then
19328     SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
19329     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
19330
19331 cat >>confdefs.h <<\_ACEOF
19332 #define STATIC_ANONYMOUS
19333 _ACEOF
19334
19335   fi
19336 else
19337   { echo "$as_me:$LINENO: result: disabled" >&5
19338 echo "${ECHO_T}disabled" >&6; }
19339 fi
19340
19341 # Check whether --enable-login was given.
19342 if test "${enable_login+set}" = set; then
19343   enableval=$enable_login; login=$enableval
19344 else
19345   login=no
19346 fi
19347
19348
19349 { echo "$as_me:$LINENO: checking LOGIN" >&5
19350 echo $ECHO_N "checking LOGIN... $ECHO_C" >&6; }
19351 if test "$login" != no; then
19352   { echo "$as_me:$LINENO: result: enabled" >&5
19353 echo "${ECHO_T}enabled" >&6; }
19354   SASL_MECHS="$SASL_MECHS liblogin.la"
19355   if test "$enable_static" = yes; then
19356     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
19357     SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
19358
19359 cat >>confdefs.h <<\_ACEOF
19360 #define STATIC_LOGIN
19361 _ACEOF
19362
19363   fi
19364 else
19365   { echo "$as_me:$LINENO: result: disabled" >&5
19366 echo "${ECHO_T}disabled" >&6; }
19367 fi
19368
19369 # Check whether --enable-ntlm was given.
19370 if test "${enable_ntlm+set}" = set; then
19371   enableval=$enable_ntlm; ntlm=$enableval
19372 else
19373   ntlm=no
19374 fi
19375
19376
19377 if test "$with_openssl" = no; then
19378   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
19379 echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
19380   ntlm=no
19381 fi
19382
19383 { echo "$as_me:$LINENO: checking NTLM" >&5
19384 echo $ECHO_N "checking NTLM... $ECHO_C" >&6; }
19385 if test "$ntlm" != no; then
19386   { echo "$as_me:$LINENO: result: enabled" >&5
19387 echo "${ECHO_T}enabled" >&6; }
19388   NTLM_LIBS="-lcrypto $LIB_RSAREF"
19389
19390
19391   SASL_MECHS="$SASL_MECHS libntlm.la"
19392   if test "$enable_static" = yes; then
19393     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
19394     SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
19395
19396 cat >>confdefs.h <<\_ACEOF
19397 #define STATIC_NTLM
19398 _ACEOF
19399
19400   fi
19401 else
19402   { echo "$as_me:$LINENO: result: disabled" >&5
19403 echo "${ECHO_T}disabled" >&6; }
19404 fi
19405
19406 # Check whether --enable-passdss was given.
19407 if test "${enable_passdss+set}" = set; then
19408   enableval=$enable_passdss; passdss=$enableval
19409 else
19410   passdss=no
19411 fi
19412
19413
19414 if test "$with_openssl" = no; then
19415   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
19416 echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
19417   passdss=no
19418 fi
19419
19420 { echo "$as_me:$LINENO: checking PASSDSS" >&5
19421 echo $ECHO_N "checking PASSDSS... $ECHO_C" >&6; }
19422 if test "$passdss" != no; then
19423   { echo "$as_me:$LINENO: result: enabled" >&5
19424 echo "${ECHO_T}enabled" >&6; }
19425   PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
19426
19427
19428   SASL_MECHS="$SASL_MECHS libpassdss.la"
19429   if test "$enable_static" = yes; then
19430     SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
19431     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
19432
19433 cat >>confdefs.h <<\_ACEOF
19434 #define STATIC_PASSDSS
19435 _ACEOF
19436
19437   fi
19438 else
19439   { echo "$as_me:$LINENO: result: disabled" >&5
19440 echo "${ECHO_T}disabled" >&6; }
19441 fi
19442
19443
19444 # make the option show up so people don't whine that it is only in the
19445 # saslauthd configure script --help
19446
19447 # Check whether --with-ldap was given.
19448 if test "${with_ldap+set}" = set; then
19449   withval=$with_ldap;
19450 else
19451   with_ldap=no
19452 fi
19453
19454
19455
19456
19457 # Check whether --enable-sql was given.
19458 if test "${enable_sql+set}" = set; then
19459   enableval=$enable_sql; sql=$enableval
19460 else
19461   sql=no
19462 fi
19463
19464
19465 { echo "$as_me:$LINENO: checking SQL" >&5
19466 echo $ECHO_N "checking SQL... $ECHO_C" >&6; }
19467 if test "$sql" != no; then
19468   { echo "$as_me:$LINENO: result: enabled" >&5
19469 echo "${ECHO_T}enabled" >&6; }
19470   SASL_MECHS="$SASL_MECHS libsql.la"
19471   if test "$enable_static" = yes; then
19472     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
19473     SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
19474
19475 cat >>confdefs.h <<\_ACEOF
19476 #define STATIC_SQL
19477 _ACEOF
19478
19479   fi
19480 else
19481   { echo "$as_me:$LINENO: result: disabled" >&5
19482 echo "${ECHO_T}disabled" >&6; }
19483 fi
19484
19485
19486 # Check whether --with-mysql was given.
19487 if test "${with_mysql+set}" = set; then
19488   withval=$with_mysql; with_mysql=$withval
19489 else
19490   with_mysql=$sql
19491 fi
19492
19493
19494 # find location of library
19495 # presuming if one given then correct
19496 if test "${with_mysql}" = "yes"; then
19497   with_mysql=notfound
19498   for mysqlloc in lib/mysql lib mysql/lib
19499   do
19500     if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
19501       with_mysql="${prefix}"
19502       break
19503     elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
19504       with_mysql="/usr/local"
19505       break
19506     elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
19507       with_mysql="/usr"
19508       break
19509     fi
19510   done
19511 fi
19512
19513 LIB_MYSQL=""
19514
19515 case "$with_mysql" in
19516     no) true;;
19517     notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
19518 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
19519     *)
19520      if test -d ${with_mysql}/lib/mysql; then
19521
19522   # this is CMU ADD LIBPATH TO
19523   if test "$andrew_runpath_switch" = "none" ; then
19524         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
19525   else
19526         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
19527   fi
19528
19529      elif test -d ${with_mysql}/mysql/lib; then
19530
19531   # this is CMU ADD LIBPATH TO
19532   if test "$andrew_runpath_switch" = "none" ; then
19533         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
19534   else
19535         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
19536   fi
19537
19538      elif test -d ${with_mysql}/lib; then
19539
19540   # this is CMU ADD LIBPATH TO
19541   if test "$andrew_runpath_switch" = "none" ; then
19542         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
19543   else
19544         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
19545   fi
19546
19547      else
19548
19549   # this is CMU ADD LIBPATH TO
19550   if test "$andrew_runpath_switch" = "none" ; then
19551         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
19552   else
19553         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
19554   fi
19555
19556      fi
19557
19558      LIB_MYSQL_DIR=$LIB_MYSQL
19559      LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
19560
19561      if test -d ${with_mysql}/include/mysql; then
19562          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
19563      elif test -d ${with_mysql}/mysql/include; then
19564          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
19565      elif test -d ${with_mysql}/include; then
19566          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
19567      else
19568          CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
19569      fi
19570
19571        save_LDFLAGS=$LDFLAGS
19572        LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
19573        { echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
19574 echo $ECHO_N "checking for mysql_select_db in -lmysqlclient... $ECHO_C" >&6; }
19575 if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
19576   echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578   ac_check_lib_save_LIBS=$LIBS
19579 LIBS="-lmysqlclient  $LIBS"
19580 cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h.  */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h.  */
19586
19587 /* Override any GCC internal prototype to avoid an error.
19588    Use char because int might match the return type of a GCC
19589    builtin and then its argument prototype would still apply.  */
19590 #ifdef __cplusplus
19591 extern "C"
19592 #endif
19593 char mysql_select_db ();
19594 int
19595 main ()
19596 {
19597 return mysql_select_db ();
19598   ;
19599   return 0;
19600 }
19601 _ACEOF
19602 rm -f conftest.$ac_objext conftest$ac_exeext
19603 if { (ac_try="$ac_link"
19604 case "(($ac_try" in
19605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606   *) ac_try_echo=$ac_try;;
19607 esac
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609   (eval "$ac_link") 2>conftest.er1
19610   ac_status=$?
19611   grep -v '^ *+' conftest.er1 >conftest.err
19612   rm -f conftest.er1
19613   cat conftest.err >&5
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); } && {
19616          test -z "$ac_c_werror_flag" ||
19617          test ! -s conftest.err
19618        } && test -s conftest$ac_exeext &&
19619        $as_test_x conftest$ac_exeext; then
19620   ac_cv_lib_mysqlclient_mysql_select_db=yes
19621 else
19622   echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19624
19625         ac_cv_lib_mysqlclient_mysql_select_db=no
19626 fi
19627
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629       conftest$ac_exeext conftest.$ac_ext
19630 LIBS=$ac_check_lib_save_LIBS
19631 fi
19632 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
19633 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
19634 if test $ac_cv_lib_mysqlclient_mysql_select_db = yes; then
19635
19636 cat >>confdefs.h <<\_ACEOF
19637 #define HAVE_MYSQL
19638 _ACEOF
19639
19640 else
19641   { echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
19642 echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
19643             with_mysql=no
19644 fi
19645
19646        LDFLAGS=$save_LDFLAGS;;
19647
19648 esac
19649
19650
19651
19652 # Check whether --with-pgsql was given.
19653 if test "${with_pgsql+set}" = set; then
19654   withval=$with_pgsql; with_pgsql=$withval
19655 else
19656   with_pgsql=$sql
19657 fi
19658
19659
19660 # find location of library
19661 # presuing if one given then correct
19662 if test "${with_pgsql}" = "yes"; then
19663   with_pgsql=notfound
19664   for pgsqlloc in lib/pgsql lib pgsql/lib
19665   do
19666     if test -f ${prefix}/${pgsqlloc}/libpq.a; then
19667       with_pgsql="${prefix}"
19668       break
19669     elif test -f /usr/local/${pgsqlloc}/libpq.a; then
19670       with_pgsql="/usr/local"
19671       break
19672     elif test -f /usr/${pgsqlloc}/libpq.a; then
19673       with_pgsql="/usr"
19674       break
19675     fi
19676   done
19677 fi
19678
19679 LIB_PGSQL=""
19680
19681 case "$with_pgsql" in
19682     no) true;;
19683     notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
19684 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
19685     *)
19686      if test -d ${with_pgsql}/lib/pgsql; then
19687
19688   # this is CMU ADD LIBPATH TO
19689   if test "$andrew_runpath_switch" = "none" ; then
19690         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
19691   else
19692         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
19693   fi
19694
19695      elif test -d ${with_pgsql}/pgsql/lib; then
19696
19697   # this is CMU ADD LIBPATH TO
19698   if test "$andrew_runpath_switch" = "none" ; then
19699         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
19700   else
19701         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
19702   fi
19703
19704      elif test -d ${with_pgsql}/lib; then
19705
19706   # this is CMU ADD LIBPATH TO
19707   if test "$andrew_runpath_switch" = "none" ; then
19708         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
19709   else
19710         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
19711   fi
19712
19713      else
19714
19715   # this is CMU ADD LIBPATH TO
19716   if test "$andrew_runpath_switch" = "none" ; then
19717         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
19718   else
19719         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
19720   fi
19721
19722      fi
19723
19724      LIB_PGSQL_DIR=$LIB_PGSQL
19725      LIB_PGSQL="$LIB_PGSQL -lpq"
19726
19727      if test -d ${with_pgsql}/include/pgsql; then
19728          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
19729      elif test -d ${with_pgsql}/pgsql/include; then
19730          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
19731      elif test -d ${with_pgsql}/include; then
19732          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
19733      else
19734          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
19735      fi
19736
19737
19738        save_LDFLAGS=$LDFLAGS
19739        LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
19740        { echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
19741 echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6; }
19742 if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
19743   echo $ECHO_N "(cached) $ECHO_C" >&6
19744 else
19745   ac_check_lib_save_LIBS=$LIBS
19746 LIBS="-lpq  $LIBS"
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h.  */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h.  */
19753
19754 /* Override any GCC internal prototype to avoid an error.
19755    Use char because int might match the return type of a GCC
19756    builtin and then its argument prototype would still apply.  */
19757 #ifdef __cplusplus
19758 extern "C"
19759 #endif
19760 char PQsetdbLogin ();
19761 int
19762 main ()
19763 {
19764 return PQsetdbLogin ();
19765   ;
19766   return 0;
19767 }
19768 _ACEOF
19769 rm -f conftest.$ac_objext conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776   (eval "$ac_link") 2>conftest.er1
19777   ac_status=$?
19778   grep -v '^ *+' conftest.er1 >conftest.err
19779   rm -f conftest.er1
19780   cat conftest.err >&5
19781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782   (exit $ac_status); } && {
19783          test -z "$ac_c_werror_flag" ||
19784          test ! -s conftest.err
19785        } && test -s conftest$ac_exeext &&
19786        $as_test_x conftest$ac_exeext; then
19787   ac_cv_lib_pq_PQsetdbLogin=yes
19788 else
19789   echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792         ac_cv_lib_pq_PQsetdbLogin=no
19793 fi
19794
19795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19796       conftest$ac_exeext conftest.$ac_ext
19797 LIBS=$ac_check_lib_save_LIBS
19798 fi
19799 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
19800 echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6; }
19801 if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
19802
19803 cat >>confdefs.h <<\_ACEOF
19804 #define HAVE_PGSQL
19805 _ACEOF
19806
19807 else
19808   { echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
19809 echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
19810             with_pgsql=no
19811 fi
19812
19813        LDFLAGS=$save_LDFLAGS;;
19814
19815 esac
19816
19817
19818
19819 # Check whether --with-sqlite was given.
19820 if test "${with_sqlite+set}" = set; then
19821   withval=$with_sqlite; with_sqlite=$withval
19822 else
19823   with_sqlite=$sql
19824 fi
19825
19826
19827 # find location of library
19828 # presuing if one given then correct
19829 if test "${with_sqlite}" = "yes"; then
19830   with_sqlite=notfound
19831   for sqliteloc in lib
19832   do
19833     if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
19834       with_sqlite="${prefix}"
19835       break
19836     elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
19837       with_sqlite="/usr/local"
19838       break
19839     elif test -f /usr/${sqliteloc}/libsqlite.a; then
19840       with_sqlite="/usr"
19841       break
19842     fi
19843   done
19844 fi
19845
19846 LIB_SQLITE=""
19847
19848 case "$with_sqlite" in
19849     no) true;;
19850     notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
19851 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
19852     *)
19853      if test -d ${with_sqlite}/lib; then
19854          LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
19855      else
19856          LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
19857      fi
19858
19859      LIB_SQLITE_DIR=$LIB_SQLITE
19860      LIB_SQLITE="$LIB_SQLITE -lsqlite"
19861
19862      if test -d ${with_sqlite}/include; then
19863          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
19864      else
19865          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
19866      fi
19867        { echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
19868 echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6; }
19869 if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
19870   echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872   ac_check_lib_save_LIBS=$LIBS
19873 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
19874 cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880
19881 /* Override any GCC internal prototype to avoid an error.
19882    Use char because int might match the return type of a GCC
19883    builtin and then its argument prototype would still apply.  */
19884 #ifdef __cplusplus
19885 extern "C"
19886 #endif
19887 char sqlite_open ();
19888 int
19889 main ()
19890 {
19891 return sqlite_open ();
19892   ;
19893   return 0;
19894 }
19895 _ACEOF
19896 rm -f conftest.$ac_objext conftest$ac_exeext
19897 if { (ac_try="$ac_link"
19898 case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_link") 2>conftest.er1
19904   ac_status=$?
19905   grep -v '^ *+' conftest.er1 >conftest.err
19906   rm -f conftest.er1
19907   cat conftest.err >&5
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); } && {
19910          test -z "$ac_c_werror_flag" ||
19911          test ! -s conftest.err
19912        } && test -s conftest$ac_exeext &&
19913        $as_test_x conftest$ac_exeext; then
19914   ac_cv_lib_sqlite_sqlite_open=yes
19915 else
19916   echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919         ac_cv_lib_sqlite_sqlite_open=no
19920 fi
19921
19922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19923       conftest$ac_exeext conftest.$ac_ext
19924 LIBS=$ac_check_lib_save_LIBS
19925 fi
19926 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
19927 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6; }
19928 if test $ac_cv_lib_sqlite_sqlite_open = yes; then
19929
19930 cat >>confdefs.h <<\_ACEOF
19931 #define HAVE_SQLITE
19932 _ACEOF
19933
19934 else
19935   { echo "$as_me:$LINENO: WARNING: SQLite Library sqlite does not work" >&5
19936 echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
19937             with_sqlite=no
19938 fi
19939 ;;
19940
19941 esac
19942
19943
19944 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
19945     { { echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&5
19946 echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&2;}
19947    { (exit 1); exit 1; }; }
19948 fi
19949
19950 if test "$enable_shared" = yes; then
19951
19952 cat >>confdefs.h <<\_ACEOF
19953 #define DO_DLOPEN
19954 _ACEOF
19955
19956 fi
19957
19958 # Check whether --enable-ldapdb was given.
19959 if test "${enable_ldapdb+set}" = set; then
19960   enableval=$enable_ldapdb; ldapdb=$enableval
19961 else
19962   ldapdb=no
19963 fi
19964
19965 { echo "$as_me:$LINENO: checking LDAPDB" >&5
19966 echo $ECHO_N "checking LDAPDB... $ECHO_C" >&6; }
19967 if test "$ldapdb" != no; then
19968     { echo "$as_me:$LINENO: result: enabled" >&5
19969 echo "${ECHO_T}enabled" >&6; }
19970
19971     if test "$with_ldap" = no; then
19972         { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&5
19973 echo "$as_me: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&2;}
19974    { (exit 1); exit 1; }; }
19975     fi
19976
19977     save_CPPFLAGS=$CPPFLAGS
19978     save_LDFLAGS=$LDFLAGS
19979
19980     if test -d $with_ldap; then
19981         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19982
19983   # this is CMU ADD LIBPATH
19984   if test "$andrew_runpath_switch" = "none" ; then
19985         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
19986   else
19987         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
19988   fi
19989
19990     fi
19991
19992
19993
19994 for ac_header in ldap.h lber.h
19995 do
19996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19998   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 fi
20003 ac_res=`eval echo '${'$as_ac_Header'}'`
20004                { echo "$as_me:$LINENO: result: $ac_res" >&5
20005 echo "${ECHO_T}$ac_res" >&6; }
20006 else
20007   # Is the header compilable?
20008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016 $ac_includes_default
20017 #include <$ac_header>
20018 _ACEOF
20019 rm -f conftest.$ac_objext
20020 if { (ac_try="$ac_compile"
20021 case "(($ac_try" in
20022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023   *) ac_try_echo=$ac_try;;
20024 esac
20025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026   (eval "$ac_compile") 2>conftest.er1
20027   ac_status=$?
20028   grep -v '^ *+' conftest.er1 >conftest.err
20029   rm -f conftest.er1
20030   cat conftest.err >&5
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); } && {
20033          test -z "$ac_c_werror_flag" ||
20034          test ! -s conftest.err
20035        } && test -s conftest.$ac_objext; then
20036   ac_header_compiler=yes
20037 else
20038   echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041         ac_header_compiler=no
20042 fi
20043
20044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20046 echo "${ECHO_T}$ac_header_compiler" >&6; }
20047
20048 # Is the header present?
20049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20051 cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h.  */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h.  */
20057 #include <$ac_header>
20058 _ACEOF
20059 if { (ac_try="$ac_cpp conftest.$ac_ext"
20060 case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } >/dev/null && {
20072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20073          test ! -s conftest.err
20074        }; then
20075   ac_header_preproc=yes
20076 else
20077   echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20079
20080   ac_header_preproc=no
20081 fi
20082
20083 rm -f conftest.err conftest.$ac_ext
20084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20085 echo "${ECHO_T}$ac_header_preproc" >&6; }
20086
20087 # So?  What about this header?
20088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20089   yes:no: )
20090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20094     ac_header_preproc=yes
20095     ;;
20096   no:yes:* )
20097     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20099     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20100 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20101     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20103     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20104 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20107     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20109
20110     ;;
20111 esac
20112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117   eval "$as_ac_Header=\$ac_header_preproc"
20118 fi
20119 ac_res=`eval echo '${'$as_ac_Header'}'`
20120                { echo "$as_me:$LINENO: result: $ac_res" >&5
20121 echo "${ECHO_T}$ac_res" >&6; }
20122
20123 fi
20124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20125   cat >>confdefs.h <<_ACEOF
20126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20127 _ACEOF
20128
20129 fi
20130
20131 done
20132
20133
20134     if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
20135         { echo "$as_me:$LINENO: checking OpenLDAP api" >&5
20136 echo $ECHO_N "checking OpenLDAP api... $ECHO_C" >&6; }
20137 if test "${cmu_cv_openldap_api+set}" = set; then
20138   echo $ECHO_N "(cached) $ECHO_C" >&6
20139 else
20140
20141     cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147
20148 #include <ldap.h>
20149
20150 #ifdef LDAP_API_FEATURE_X_OPENLDAP
20151 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
20152 #endif
20153
20154 _ACEOF
20155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20156   $EGREP "__openldap_api" >/dev/null 2>&1; then
20157   cmu_cv_openldap_api=yes
20158 else
20159   cmu_cv_openldap_api=no
20160 fi
20161 rm -f -r conftest*
20162
20163 fi
20164 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
20165 echo "${ECHO_T}$cmu_cv_openldap_api" >&6; }
20166
20167
20168         if test "$cmu_cv_openldap_api" = yes; then
20169             { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
20170 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
20171 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
20172   echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174   ac_check_lib_save_LIBS=$LIBS
20175 LIBS="-lldap -llber $LIBS"
20176 cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h.  */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h.  */
20182
20183 /* Override any GCC internal prototype to avoid an error.
20184    Use char because int might match the return type of a GCC
20185    builtin and then its argument prototype would still apply.  */
20186 #ifdef __cplusplus
20187 extern "C"
20188 #endif
20189 char ldap_initialize ();
20190 int
20191 main ()
20192 {
20193 return ldap_initialize ();
20194   ;
20195   return 0;
20196 }
20197 _ACEOF
20198 rm -f conftest.$ac_objext conftest$ac_exeext
20199 if { (ac_try="$ac_link"
20200 case "(($ac_try" in
20201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202   *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205   (eval "$ac_link") 2>conftest.er1
20206   ac_status=$?
20207   grep -v '^ *+' conftest.er1 >conftest.err
20208   rm -f conftest.er1
20209   cat conftest.err >&5
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); } && {
20212          test -z "$ac_c_werror_flag" ||
20213          test ! -s conftest.err
20214        } && test -s conftest$ac_exeext &&
20215        $as_test_x conftest$ac_exeext; then
20216   ac_cv_lib_ldap_ldap_initialize=yes
20217 else
20218   echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221         ac_cv_lib_ldap_ldap_initialize=no
20222 fi
20223
20224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20225       conftest$ac_exeext conftest.$ac_ext
20226 LIBS=$ac_check_lib_save_LIBS
20227 fi
20228 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
20229 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
20230 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
20231    cmu_link_openldap="-lldap -llber"
20232 else
20233    cmu_link_openldap=no
20234 fi
20235
20236         fi
20237     fi
20238
20239     if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
20240         { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&5
20241 echo "$as_me: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&2;}
20242    { (exit 1); exit 1; }; }
20243     else
20244         { echo "$as_me:$LINENO: checking OpenLDAP version" >&5
20245 echo $ECHO_N "checking OpenLDAP version... $ECHO_C" >&6; }
20246 if test "${cmu_cv_openldap_compat+set}" = set; then
20247   echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249
20250     cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h.  */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h.  */
20256
20257 #include <ldap.h>
20258
20259 /* Require 2.1.27+ and 2.2.6+ */
20260 #if LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
20261 char *__openldap_compat = "2.1.27 or better okay";
20262 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
20263 char *__openldap_compat = "2.2.6 or better okay";
20264 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR > 2
20265 char *__openldap_compat = "2.3 or better okay"
20266 #endif
20267
20268 _ACEOF
20269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20270   $EGREP "__openldap_compat" >/dev/null 2>&1; then
20271   cmu_cv_openldap_compat=yes
20272 else
20273   cmu_cv_openldap_compat=no
20274 fi
20275 rm -f -r conftest*
20276
20277 fi
20278 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
20279 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6; }
20280
20281
20282         if test "$cmu_cv_openldap_compat" = no; then
20283             { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&5
20284 echo "$as_me: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&2;}
20285    { (exit 1); exit 1; }; }
20286         else
20287             LIB_LDAP=$cmu_link_openldap
20288
20289
20290             SASL_MECHS="$SASL_MECHS libldapdb.la"
20291             if test "$enable_static" = yes; then
20292                 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
20293                 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
20294
20295 cat >>confdefs.h <<\_ACEOF
20296 #define STATIC_LDAPDB
20297 _ACEOF
20298
20299             fi
20300         fi
20301     fi
20302
20303     if test "$cmu_cv_openldap_compat" != yes; then
20304         CPPFLAGS=$save_CPPFLAGS
20305         LDFLAGS=$save_LDFLAGS
20306     fi
20307 else
20308     { echo "$as_me:$LINENO: result: disabled" >&5
20309 echo "${ECHO_T}disabled" >&6; }
20310 fi
20311
20312
20313
20314
20315
20316
20317
20318 # Check whether --with-plugindir was given.
20319 if test "${with_plugindir+set}" = set; then
20320   withval=$with_plugindir; plugindir=$withval
20321 else
20322   plugindir=/usr/lib/sasl2
20323 fi
20324
20325
20326 cat >>confdefs.h <<_ACEOF
20327 #define PLUGINDIR "$plugindir"
20328 _ACEOF
20329
20330
20331
20332
20333 # Check whether --with-configdir was given.
20334 if test "${with_configdir+set}" = set; then
20335   withval=$with_configdir; configdir=$withval
20336 else
20337   configdir=$plugindir:/etc/sasl2
20338 fi
20339
20340
20341 cat >>confdefs.h <<_ACEOF
20342 #define CONFIGDIR "$configdir"
20343 _ACEOF
20344
20345
20346
20347
20348 # Check whether --with-rc4 was given.
20349 if test "${with_rc4+set}" = set; then
20350   withval=$with_rc4; with_rc4=$withval
20351 else
20352   with_rc4=yes
20353 fi
20354
20355
20356 if test "$with_rc4" != no; then
20357
20358 cat >>confdefs.h <<\_ACEOF
20359 #define WITH_RC4
20360 _ACEOF
20361
20362 fi
20363
20364 building_for_macosx=no
20365 case "$host_os" in
20366         darwin*)
20367 # Check whether --enable-macos-framework was given.
20368 if test "${enable_macos_framework+set}" = set; then
20369   enableval=$enable_macos_framework; building_for_macosx=no
20370 else
20371   building_for_macosx=yes
20372 fi
20373
20374         ;;
20375 esac
20376  if test "$building_for_macosx" = yes; then
20377   MACOSX_TRUE=
20378   MACOSX_FALSE='#'
20379 else
20380   MACOSX_TRUE='#'
20381   MACOSX_FALSE=
20382 fi
20383
20384
20385 { echo "$as_me:$LINENO: checking for dmalloc library" >&5
20386 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6; }
20387
20388 # Check whether --with-dmalloc was given.
20389 if test "${with_dmalloc+set}" = set; then
20390   withval=$with_dmalloc; with_dmalloc=$withval
20391 else
20392   with_dmalloc=no
20393 fi
20394
20395
20396 DMALLOC_LIBS=""
20397
20398 if test "$with_dmalloc" != "no"; then
20399    if test "$with_dmalloc" = "yes"; then
20400         with_dmalloc="/usr/local"
20401    fi
20402
20403    if test -r "$with_dmalloc/libdmalloc.a"; then
20404         DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
20405
20406 cat >>confdefs.h <<\_ACEOF
20407 #define WITH_DMALLOC
20408 _ACEOF
20409
20410         { echo "$as_me:$LINENO: result: yes" >&5
20411 echo "${ECHO_T}yes" >&6; }
20412    elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
20413         DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
20414
20415 cat >>confdefs.h <<\_ACEOF
20416 #define WITH_DMALLOC
20417 _ACEOF
20418
20419         { echo "$as_me:$LINENO: result: yes" >&5
20420 echo "${ECHO_T}yes" >&6; }
20421    else
20422         { { echo "$as_me:$LINENO: error: cannot find dmalloc library" >&5
20423 echo "$as_me: error: cannot find dmalloc library" >&2;}
20424    { (exit please check your installation.); exit please check your installation.; }; }
20425    fi
20426 else
20427    { echo "$as_me:$LINENO: result: no" >&5
20428 echo "${ECHO_T}no" >&6; }
20429 fi
20430
20431
20432
20433 { echo "$as_me:$LINENO: checking for sfio library" >&5
20434 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6; }
20435
20436 # Check whether --with-sfio was given.
20437 if test "${with_sfio+set}" = set; then
20438   withval=$with_sfio; with_sfio=$withval
20439 else
20440   with_sfio=no
20441 fi
20442
20443
20444 if test "$with_sfio" != "no"; then
20445    if test "$with_sfio" = "yes"; then
20446         with_sfio="/usr/local"
20447    fi
20448
20449
20450
20451
20452
20453    if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20454                                               SFIO_INC_DIR=$with_sfio
20455    elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
20456                                               SFIO_INC_DIR=$with_sfio/include
20457    elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20458                                               SFIO_INC_DIR=$with_sfio/include/sfio
20459    fi
20460
20461    if test -z "$SFIO_DIR"; then
20462         { { echo "$as_me:$LINENO: error: Cannot find sfio.h" >&5
20463 echo "$as_me: error: Cannot find sfio.h" >&2;}
20464    { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20465    fi
20466
20467
20468                 str="$SFIO_DIR/lib/libsfio.*"
20469                 for i in `echo $str`; do
20470                         if test -r $i; then
20471                                 SFIO_LIBDIR=$SFIO_DIR/lib
20472                                 break 2
20473                         fi
20474                 done
20475
20476
20477                 str="$SFIO_DIR/lib/sfio/libsfio.*"
20478                 for i in `echo $str`; do
20479                         if test -r $i; then
20480                                 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
20481                                 break 2
20482                         fi
20483                 done
20484
20485
20486    if test -z "$SFIO_LIBDIR"; then
20487         { { echo "$as_me:$LINENO: error: Cannot find sfio library" >&5
20488 echo "$as_me: error: Cannot find sfio library" >&2;}
20489    { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20490    fi
20491
20492    SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
20493    SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
20494    SMTPTEST_PROGRAM="smtptest"
20495    SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
20496    SASL_UTIL_HEADERS_EXTRA=sfsasl.h
20497
20498    { echo "$as_me:$LINENO: result: yes" >&5
20499 echo "${ECHO_T}yes" >&6; }
20500 else
20501    { echo "$as_me:$LINENO: result: no" >&5
20502 echo "${ECHO_T}no" >&6; }
20503    SFIO_INC_FLAGS=""
20504    SFIO_LIB_FLAGS=""
20505    SMTPTEST_PROGRAM=""
20506    SASL_UTIL_LIBS_EXTRA=""
20507    SASL_UTIL_HEADERS_EXTRA=""
20508 fi
20509
20510
20511
20512
20513
20514
20515
20516 sasl_cv_getsubopt=no
20517 { echo "$as_me:$LINENO: checking for getsubopt" >&5
20518 echo $ECHO_N "checking for getsubopt... $ECHO_C" >&6; }
20519 if test "${ac_cv_func_getsubopt+set}" = set; then
20520   echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522   cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h.  */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h.  */
20528 /* Define getsubopt to an innocuous variant, in case <limits.h> declares getsubopt.
20529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20530 #define getsubopt innocuous_getsubopt
20531
20532 /* System header to define __stub macros and hopefully few prototypes,
20533     which can conflict with char getsubopt (); below.
20534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20535     <limits.h> exists even on freestanding compilers.  */
20536
20537 #ifdef __STDC__
20538 # include <limits.h>
20539 #else
20540 # include <assert.h>
20541 #endif
20542
20543 #undef getsubopt
20544
20545 /* Override any GCC internal prototype to avoid an error.
20546    Use char because int might match the return type of a GCC
20547    builtin and then its argument prototype would still apply.  */
20548 #ifdef __cplusplus
20549 extern "C"
20550 #endif
20551 char getsubopt ();
20552 /* The GNU C library defines this for functions which it implements
20553     to always fail with ENOSYS.  Some functions are actually named
20554     something starting with __ and the normal name is an alias.  */
20555 #if defined __stub_getsubopt || defined __stub___getsubopt
20556 choke me
20557 #endif
20558
20559 int
20560 main ()
20561 {
20562 return getsubopt ();
20563   ;
20564   return 0;
20565 }
20566 _ACEOF
20567 rm -f conftest.$ac_objext conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_link") 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } && {
20581          test -z "$ac_c_werror_flag" ||
20582          test ! -s conftest.err
20583        } && test -s conftest$ac_exeext &&
20584        $as_test_x conftest$ac_exeext; then
20585   ac_cv_func_getsubopt=yes
20586 else
20587   echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590         ac_cv_func_getsubopt=no
20591 fi
20592
20593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20594       conftest$ac_exeext conftest.$ac_ext
20595 fi
20596 { echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5
20597 echo "${ECHO_T}$ac_cv_func_getsubopt" >&6; }
20598 if test $ac_cv_func_getsubopt = yes; then
20599
20600 cat >>confdefs.h <<\_ACEOF
20601 #define HAVE_GETSUBOPT
20602 _ACEOF
20603
20604 else
20605   sasl_cv_getsubopt=yes
20606 fi
20607
20608 if test $sasl_cv_getsubopt = yes; then
20609         case " $LIBOBJS " in
20610   *" getsubopt.$ac_objext "* ) ;;
20611   *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
20612  ;;
20613 esac
20614
20615         GETSUBOPT="getsubopt.lo"
20616 fi
20617
20618
20619 sasl_cv_snprintf=no
20620 SNPRINTFOBJS=""
20621 { echo "$as_me:$LINENO: checking for snprintf" >&5
20622 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
20623 if test "${ac_cv_func_snprintf+set}" = set; then
20624   echo $ECHO_N "(cached) $ECHO_C" >&6
20625 else
20626   cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h.  */
20628 _ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h.  */
20632 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
20633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20634 #define snprintf innocuous_snprintf
20635
20636 /* System header to define __stub macros and hopefully few prototypes,
20637     which can conflict with char snprintf (); below.
20638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20639     <limits.h> exists even on freestanding compilers.  */
20640
20641 #ifdef __STDC__
20642 # include <limits.h>
20643 #else
20644 # include <assert.h>
20645 #endif
20646
20647 #undef snprintf
20648
20649 /* Override any GCC internal prototype to avoid an error.
20650    Use char because int might match the return type of a GCC
20651    builtin and then its argument prototype would still apply.  */
20652 #ifdef __cplusplus
20653 extern "C"
20654 #endif
20655 char snprintf ();
20656 /* The GNU C library defines this for functions which it implements
20657     to always fail with ENOSYS.  Some functions are actually named
20658     something starting with __ and the normal name is an alias.  */
20659 #if defined __stub_snprintf || defined __stub___snprintf
20660 choke me
20661 #endif
20662
20663 int
20664 main ()
20665 {
20666 return snprintf ();
20667   ;
20668   return 0;
20669 }
20670 _ACEOF
20671 rm -f conftest.$ac_objext conftest$ac_exeext
20672 if { (ac_try="$ac_link"
20673 case "(($ac_try" in
20674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675   *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678   (eval "$ac_link") 2>conftest.er1
20679   ac_status=$?
20680   grep -v '^ *+' conftest.er1 >conftest.err
20681   rm -f conftest.er1
20682   cat conftest.err >&5
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); } && {
20685          test -z "$ac_c_werror_flag" ||
20686          test ! -s conftest.err
20687        } && test -s conftest$ac_exeext &&
20688        $as_test_x conftest$ac_exeext; then
20689   ac_cv_func_snprintf=yes
20690 else
20691   echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20693
20694         ac_cv_func_snprintf=no
20695 fi
20696
20697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20698       conftest$ac_exeext conftest.$ac_ext
20699 fi
20700 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
20701 echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
20702 if test $ac_cv_func_snprintf = yes; then
20703
20704 cat >>confdefs.h <<\_ACEOF
20705 #define HAVE_SNPRINTF
20706 _ACEOF
20707
20708 else
20709   sasl_cv_snprintf=yes
20710 fi
20711
20712 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
20713 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
20714 if test "${ac_cv_func_vsnprintf+set}" = set; then
20715   echo $ECHO_N "(cached) $ECHO_C" >&6
20716 else
20717   cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h.  */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h.  */
20723 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
20724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20725 #define vsnprintf innocuous_vsnprintf
20726
20727 /* System header to define __stub macros and hopefully few prototypes,
20728     which can conflict with char vsnprintf (); below.
20729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20730     <limits.h> exists even on freestanding compilers.  */
20731
20732 #ifdef __STDC__
20733 # include <limits.h>
20734 #else
20735 # include <assert.h>
20736 #endif
20737
20738 #undef vsnprintf
20739
20740 /* Override any GCC internal prototype to avoid an error.
20741    Use char because int might match the return type of a GCC
20742    builtin and then its argument prototype would still apply.  */
20743 #ifdef __cplusplus
20744 extern "C"
20745 #endif
20746 char vsnprintf ();
20747 /* The GNU C library defines this for functions which it implements
20748     to always fail with ENOSYS.  Some functions are actually named
20749     something starting with __ and the normal name is an alias.  */
20750 #if defined __stub_vsnprintf || defined __stub___vsnprintf
20751 choke me
20752 #endif
20753
20754 int
20755 main ()
20756 {
20757 return vsnprintf ();
20758   ;
20759   return 0;
20760 }
20761 _ACEOF
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766   *) ac_try_echo=$ac_try;;
20767 esac
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769   (eval "$ac_link") 2>conftest.er1
20770   ac_status=$?
20771   grep -v '^ *+' conftest.er1 >conftest.err
20772   rm -f conftest.er1
20773   cat conftest.err >&5
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } && {
20776          test -z "$ac_c_werror_flag" ||
20777          test ! -s conftest.err
20778        } && test -s conftest$ac_exeext &&
20779        $as_test_x conftest$ac_exeext; then
20780   ac_cv_func_vsnprintf=yes
20781 else
20782   echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20784
20785         ac_cv_func_vsnprintf=no
20786 fi
20787
20788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20789       conftest$ac_exeext conftest.$ac_ext
20790 fi
20791 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
20792 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
20793 if test $ac_cv_func_vsnprintf = yes; then
20794
20795 cat >>confdefs.h <<\_ACEOF
20796 #define HAVE_VSNPRINTF
20797 _ACEOF
20798
20799 else
20800   sasl_cv_snprintf=yes
20801 fi
20802
20803 if test $sasl_cv_snprintf = yes; then
20804         case " $LIBOBJS " in
20805   *" snprintf.$ac_objext "* ) ;;
20806   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20807  ;;
20808 esac
20809
20810         SNPRINTFOBJS="snprintf.o"
20811         LTSNPRINTFOBJS="snprintf.lo"
20812 fi
20813
20814
20815
20816
20817 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20818 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20819 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20820   echo $ECHO_N "(cached) $ECHO_C" >&6
20821 else
20822   ac_check_lib_save_LIBS=$LIBS
20823 LIBS="-lresolv  $LIBS"
20824 cat >conftest.$ac_ext <<_ACEOF
20825 /* confdefs.h.  */
20826 _ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h.  */
20830
20831 /* Override any GCC internal prototype to avoid an error.
20832    Use char because int might match the return type of a GCC
20833    builtin and then its argument prototype would still apply.  */
20834 #ifdef __cplusplus
20835 extern "C"
20836 #endif
20837 char inet_aton ();
20838 int
20839 main ()
20840 {
20841 return inet_aton ();
20842   ;
20843   return 0;
20844 }
20845 _ACEOF
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (ac_try="$ac_link"
20848 case "(($ac_try" in
20849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850   *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853   (eval "$ac_link") 2>conftest.er1
20854   ac_status=$?
20855   grep -v '^ *+' conftest.er1 >conftest.err
20856   rm -f conftest.er1
20857   cat conftest.err >&5
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); } && {
20860          test -z "$ac_c_werror_flag" ||
20861          test ! -s conftest.err
20862        } && test -s conftest$ac_exeext &&
20863        $as_test_x conftest$ac_exeext; then
20864   ac_cv_lib_resolv_inet_aton=yes
20865 else
20866   echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869         ac_cv_lib_resolv_inet_aton=no
20870 fi
20871
20872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20873       conftest$ac_exeext conftest.$ac_ext
20874 LIBS=$ac_check_lib_save_LIBS
20875 fi
20876 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20877 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20878 if test $ac_cv_lib_resolv_inet_aton = yes; then
20879   cat >>confdefs.h <<_ACEOF
20880 #define HAVE_LIBRESOLV 1
20881 _ACEOF
20882
20883   LIBS="-lresolv $LIBS"
20884
20885 fi
20886
20887
20888 GETADDRINFOOBJS=""
20889 sasl_cv_getaddrinfo=yes
20890
20891 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20892 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20893 if test "${ac_cv_func_getaddrinfo+set}" = set; then
20894   echo $ECHO_N "(cached) $ECHO_C" >&6
20895 else
20896   cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
20903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20904 #define getaddrinfo innocuous_getaddrinfo
20905
20906 /* System header to define __stub macros and hopefully few prototypes,
20907     which can conflict with char getaddrinfo (); below.
20908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20909     <limits.h> exists even on freestanding compilers.  */
20910
20911 #ifdef __STDC__
20912 # include <limits.h>
20913 #else
20914 # include <assert.h>
20915 #endif
20916
20917 #undef getaddrinfo
20918
20919 /* Override any GCC internal prototype to avoid an error.
20920    Use char because int might match the return type of a GCC
20921    builtin and then its argument prototype would still apply.  */
20922 #ifdef __cplusplus
20923 extern "C"
20924 #endif
20925 char getaddrinfo ();
20926 /* The GNU C library defines this for functions which it implements
20927     to always fail with ENOSYS.  Some functions are actually named
20928     something starting with __ and the normal name is an alias.  */
20929 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
20930 choke me
20931 #endif
20932
20933 int
20934 main ()
20935 {
20936 return getaddrinfo ();
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (ac_try="$ac_link"
20943 case "(($ac_try" in
20944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945   *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948   (eval "$ac_link") 2>conftest.er1
20949   ac_status=$?
20950   grep -v '^ *+' conftest.er1 >conftest.err
20951   rm -f conftest.er1
20952   cat conftest.err >&5
20953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954   (exit $ac_status); } && {
20955          test -z "$ac_c_werror_flag" ||
20956          test ! -s conftest.err
20957        } && test -s conftest$ac_exeext &&
20958        $as_test_x conftest$ac_exeext; then
20959   ac_cv_func_getaddrinfo=yes
20960 else
20961   echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20963
20964         ac_cv_func_getaddrinfo=no
20965 fi
20966
20967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20968       conftest$ac_exeext conftest.$ac_ext
20969 fi
20970 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
20971 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
20972 if test $ac_cv_func_getaddrinfo = yes; then
20973     ac_cv_lib_socket_getaddrinfo=no
20974   ac_cv_lib_inet6_getaddrinfo=no
20975
20976 else
20977     { echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
20978 echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6; }
20979 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
20980   echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982   ac_check_lib_save_LIBS=$LIBS
20983 LIBS="-lsocket  $LIBS"
20984 cat >conftest.$ac_ext <<_ACEOF
20985 /* confdefs.h.  */
20986 _ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h.  */
20990
20991 /* Override any GCC internal prototype to avoid an error.
20992    Use char because int might match the return type of a GCC
20993    builtin and then its argument prototype would still apply.  */
20994 #ifdef __cplusplus
20995 extern "C"
20996 #endif
20997 char getaddrinfo ();
20998 int
20999 main ()
21000 {
21001 return getaddrinfo ();
21002   ;
21003   return 0;
21004 }
21005 _ACEOF
21006 rm -f conftest.$ac_objext conftest$ac_exeext
21007 if { (ac_try="$ac_link"
21008 case "(($ac_try" in
21009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010   *) ac_try_echo=$ac_try;;
21011 esac
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013   (eval "$ac_link") 2>conftest.er1
21014   ac_status=$?
21015   grep -v '^ *+' conftest.er1 >conftest.err
21016   rm -f conftest.er1
21017   cat conftest.err >&5
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); } && {
21020          test -z "$ac_c_werror_flag" ||
21021          test ! -s conftest.err
21022        } && test -s conftest$ac_exeext &&
21023        $as_test_x conftest$ac_exeext; then
21024   ac_cv_lib_socket_getaddrinfo=yes
21025 else
21026   echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029         ac_cv_lib_socket_getaddrinfo=no
21030 fi
21031
21032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21033       conftest$ac_exeext conftest.$ac_ext
21034 LIBS=$ac_check_lib_save_LIBS
21035 fi
21036 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
21037 echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6; }
21038 if test $ac_cv_lib_socket_getaddrinfo = yes; then
21039       LIBS="$LIBS -lsocket"
21040     ac_cv_lib_inet6_getaddrinfo=no
21041
21042 else
21043       { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21044 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21045     if test "${ipv6_cv_dir+set}" = set; then
21046   echo $ECHO_N "(cached) $ECHO_C" >&6
21047 else
21048         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21049         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21050           break
21051         fi
21052       done
21053 fi
21054     { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21055 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21056     if test $ipv6_cv_dir = no; then
21057       ac_cv_lib_inet6_getaddrinfo=no
21058     else
21059       if test x$ipv6_libinet6 = x; then
21060         ipv6_libinet6=no
21061         SAVELDFLAGS="$LDFLAGS"
21062         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21063       fi
21064       { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
21065 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
21066 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
21067   echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069   ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-linet6  $LIBS"
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077
21078 /* Override any GCC internal prototype to avoid an error.
21079    Use char because int might match the return type of a GCC
21080    builtin and then its argument prototype would still apply.  */
21081 #ifdef __cplusplus
21082 extern "C"
21083 #endif
21084 char getaddrinfo ();
21085 int
21086 main ()
21087 {
21088 return getaddrinfo ();
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_link") 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } && {
21107          test -z "$ac_c_werror_flag" ||
21108          test ! -s conftest.err
21109        } && test -s conftest$ac_exeext &&
21110        $as_test_x conftest$ac_exeext; then
21111   ac_cv_lib_inet6_getaddrinfo=yes
21112 else
21113   echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116         ac_cv_lib_inet6_getaddrinfo=no
21117 fi
21118
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120       conftest$ac_exeext conftest.$ac_ext
21121 LIBS=$ac_check_lib_save_LIBS
21122 fi
21123 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
21124 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
21125 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
21126         if test $ipv6_libinet6 = no; then
21127           ipv6_libinet6=yes
21128           LIBS="$LIBS -linet6"
21129         fi
21130 fi
21131       if test $ipv6_libinet6 = no; then
21132         LDFLAGS="$SAVELDFLAGS"
21133       fi
21134     fi
21135 fi
21136
21137 fi
21138 ipv6_cv_getaddrinfo=no
21139 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
21140      -o $ac_cv_lib_inet6_getaddrinfo = yes
21141 then
21142   ipv6_cv_getaddrinfo=yes
21143 fi
21144 if test $ipv6_cv_getaddrinfo = no; then
21145   if test getaddrinfo = getaddrinfo; then
21146     for ipv6_cv_pfx in o n; do
21147       cat >conftest.$ac_ext <<_ACEOF
21148 /* confdefs.h.  */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h.  */
21153 #include <netdb.h>
21154
21155 _ACEOF
21156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21157   $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
21158   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
21159 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
21160 echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6; }
21161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21162   echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164   cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h.  */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h.  */
21170 /* Define ${ipv6_cv_pfx}getaddrinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getaddrinfo.
21171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21172 #define ${ipv6_cv_pfx}getaddrinfo innocuous_${ipv6_cv_pfx}getaddrinfo
21173
21174 /* System header to define __stub macros and hopefully few prototypes,
21175     which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
21176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21177     <limits.h> exists even on freestanding compilers.  */
21178
21179 #ifdef __STDC__
21180 # include <limits.h>
21181 #else
21182 # include <assert.h>
21183 #endif
21184
21185 #undef ${ipv6_cv_pfx}getaddrinfo
21186
21187 /* Override any GCC internal prototype to avoid an error.
21188    Use char because int might match the return type of a GCC
21189    builtin and then its argument prototype would still apply.  */
21190 #ifdef __cplusplus
21191 extern "C"
21192 #endif
21193 char ${ipv6_cv_pfx}getaddrinfo ();
21194 /* The GNU C library defines this for functions which it implements
21195     to always fail with ENOSYS.  Some functions are actually named
21196     something starting with __ and the normal name is an alias.  */
21197 #if defined __stub_${ipv6_cv_pfx}getaddrinfo || defined __stub___${ipv6_cv_pfx}getaddrinfo
21198 choke me
21199 #endif
21200
21201 int
21202 main ()
21203 {
21204 return ${ipv6_cv_pfx}getaddrinfo ();
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext conftest$ac_exeext
21210 if { (ac_try="$ac_link"
21211 case "(($ac_try" in
21212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213   *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216   (eval "$ac_link") 2>conftest.er1
21217   ac_status=$?
21218   grep -v '^ *+' conftest.er1 >conftest.err
21219   rm -f conftest.er1
21220   cat conftest.err >&5
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); } && {
21223          test -z "$ac_c_werror_flag" ||
21224          test ! -s conftest.err
21225        } && test -s conftest$ac_exeext &&
21226        $as_test_x conftest$ac_exeext; then
21227   eval "$as_ac_var=yes"
21228 else
21229   echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232         eval "$as_ac_var=no"
21233 fi
21234
21235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21236       conftest$ac_exeext conftest.$ac_ext
21237 fi
21238 ac_res=`eval echo '${'$as_ac_var'}'`
21239                { echo "$as_me:$LINENO: result: $ac_res" >&5
21240 echo "${ECHO_T}$ac_res" >&6; }
21241
21242 fi
21243 rm -f -r conftest*
21244
21245       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
21246
21247 cat >>confdefs.h <<\_ACEOF
21248 #define HAVE_GETADDRINFO
21249 _ACEOF
21250
21251         ipv6_cv_getaddrinfo=yes
21252         break
21253       fi
21254     done
21255   fi
21256 fi
21257 if test $ipv6_cv_getaddrinfo = yes; then
21258
21259 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
21260 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
21261 if test "${ac_cv_func_gai_strerror+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264   cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
21271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21272 #define gai_strerror innocuous_gai_strerror
21273
21274 /* System header to define __stub macros and hopefully few prototypes,
21275     which can conflict with char gai_strerror (); below.
21276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21277     <limits.h> exists even on freestanding compilers.  */
21278
21279 #ifdef __STDC__
21280 # include <limits.h>
21281 #else
21282 # include <assert.h>
21283 #endif
21284
21285 #undef gai_strerror
21286
21287 /* Override any GCC internal prototype to avoid an error.
21288    Use char because int might match the return type of a GCC
21289    builtin and then its argument prototype would still apply.  */
21290 #ifdef __cplusplus
21291 extern "C"
21292 #endif
21293 char gai_strerror ();
21294 /* The GNU C library defines this for functions which it implements
21295     to always fail with ENOSYS.  Some functions are actually named
21296     something starting with __ and the normal name is an alias.  */
21297 #if defined __stub_gai_strerror || defined __stub___gai_strerror
21298 choke me
21299 #endif
21300
21301 int
21302 main ()
21303 {
21304 return gai_strerror ();
21305   ;
21306   return 0;
21307 }
21308 _ACEOF
21309 rm -f conftest.$ac_objext conftest$ac_exeext
21310 if { (ac_try="$ac_link"
21311 case "(($ac_try" in
21312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313   *) ac_try_echo=$ac_try;;
21314 esac
21315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316   (eval "$ac_link") 2>conftest.er1
21317   ac_status=$?
21318   grep -v '^ *+' conftest.er1 >conftest.err
21319   rm -f conftest.er1
21320   cat conftest.err >&5
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); } && {
21323          test -z "$ac_c_werror_flag" ||
21324          test ! -s conftest.err
21325        } && test -s conftest$ac_exeext &&
21326        $as_test_x conftest$ac_exeext; then
21327   ac_cv_func_gai_strerror=yes
21328 else
21329   echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21331
21332         ac_cv_func_gai_strerror=no
21333 fi
21334
21335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21336       conftest$ac_exeext conftest.$ac_ext
21337 fi
21338 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
21339 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
21340 if test $ac_cv_func_gai_strerror = yes; then
21341     ac_cv_lib_socket_gai_strerror=no
21342   ac_cv_lib_inet6_gai_strerror=no
21343
21344 else
21345     { echo "$as_me:$LINENO: checking for gai_strerror in -lsocket" >&5
21346 echo $ECHO_N "checking for gai_strerror in -lsocket... $ECHO_C" >&6; }
21347 if test "${ac_cv_lib_socket_gai_strerror+set}" = set; then
21348   echo $ECHO_N "(cached) $ECHO_C" >&6
21349 else
21350   ac_check_lib_save_LIBS=$LIBS
21351 LIBS="-lsocket  $LIBS"
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358
21359 /* Override any GCC internal prototype to avoid an error.
21360    Use char because int might match the return type of a GCC
21361    builtin and then its argument prototype would still apply.  */
21362 #ifdef __cplusplus
21363 extern "C"
21364 #endif
21365 char gai_strerror ();
21366 int
21367 main ()
21368 {
21369 return gai_strerror ();
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext conftest$ac_exeext
21375 if { (ac_try="$ac_link"
21376 case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381   (eval "$ac_link") 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } && {
21388          test -z "$ac_c_werror_flag" ||
21389          test ! -s conftest.err
21390        } && test -s conftest$ac_exeext &&
21391        $as_test_x conftest$ac_exeext; then
21392   ac_cv_lib_socket_gai_strerror=yes
21393 else
21394   echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21396
21397         ac_cv_lib_socket_gai_strerror=no
21398 fi
21399
21400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21401       conftest$ac_exeext conftest.$ac_ext
21402 LIBS=$ac_check_lib_save_LIBS
21403 fi
21404 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gai_strerror" >&5
21405 echo "${ECHO_T}$ac_cv_lib_socket_gai_strerror" >&6; }
21406 if test $ac_cv_lib_socket_gai_strerror = yes; then
21407       LIBS="$LIBS -lsocket"
21408     ac_cv_lib_inet6_gai_strerror=no
21409
21410 else
21411       { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21412 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21413     if test "${ipv6_cv_dir+set}" = set; then
21414   echo $ECHO_N "(cached) $ECHO_C" >&6
21415 else
21416         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21417         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21418           break
21419         fi
21420       done
21421 fi
21422     { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21423 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21424     if test $ipv6_cv_dir = no; then
21425       ac_cv_lib_inet6_gai_strerror=no
21426     else
21427       if test x$ipv6_libinet6 = x; then
21428         ipv6_libinet6=no
21429         SAVELDFLAGS="$LDFLAGS"
21430         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21431       fi
21432       { echo "$as_me:$LINENO: checking for gai_strerror in -linet6" >&5
21433 echo $ECHO_N "checking for gai_strerror in -linet6... $ECHO_C" >&6; }
21434 if test "${ac_cv_lib_inet6_gai_strerror+set}" = set; then
21435   echo $ECHO_N "(cached) $ECHO_C" >&6
21436 else
21437   ac_check_lib_save_LIBS=$LIBS
21438 LIBS="-linet6  $LIBS"
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h.  */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h.  */
21445
21446 /* Override any GCC internal prototype to avoid an error.
21447    Use char because int might match the return type of a GCC
21448    builtin and then its argument prototype would still apply.  */
21449 #ifdef __cplusplus
21450 extern "C"
21451 #endif
21452 char gai_strerror ();
21453 int
21454 main ()
21455 {
21456 return gai_strerror ();
21457   ;
21458   return 0;
21459 }
21460 _ACEOF
21461 rm -f conftest.$ac_objext conftest$ac_exeext
21462 if { (ac_try="$ac_link"
21463 case "(($ac_try" in
21464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465   *) ac_try_echo=$ac_try;;
21466 esac
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468   (eval "$ac_link") 2>conftest.er1
21469   ac_status=$?
21470   grep -v '^ *+' conftest.er1 >conftest.err
21471   rm -f conftest.er1
21472   cat conftest.err >&5
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); } && {
21475          test -z "$ac_c_werror_flag" ||
21476          test ! -s conftest.err
21477        } && test -s conftest$ac_exeext &&
21478        $as_test_x conftest$ac_exeext; then
21479   ac_cv_lib_inet6_gai_strerror=yes
21480 else
21481   echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21483
21484         ac_cv_lib_inet6_gai_strerror=no
21485 fi
21486
21487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21488       conftest$ac_exeext conftest.$ac_ext
21489 LIBS=$ac_check_lib_save_LIBS
21490 fi
21491 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_gai_strerror" >&5
21492 echo "${ECHO_T}$ac_cv_lib_inet6_gai_strerror" >&6; }
21493 if test $ac_cv_lib_inet6_gai_strerror = yes; then
21494         if test $ipv6_libinet6 = no; then
21495           ipv6_libinet6=yes
21496           LIBS="$LIBS -linet6"
21497         fi
21498 fi
21499       if test $ipv6_libinet6 = no; then
21500         LDFLAGS="$SAVELDFLAGS"
21501       fi
21502     fi
21503 fi
21504
21505 fi
21506 ipv6_cv_gai_strerror=no
21507 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
21508      -o $ac_cv_lib_inet6_gai_strerror = yes
21509 then
21510   ipv6_cv_gai_strerror=yes
21511 fi
21512 if test $ipv6_cv_gai_strerror = no; then
21513   if test gai_strerror = getaddrinfo; then
21514     for ipv6_cv_pfx in o n; do
21515       cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521 #include <netdb.h>
21522
21523 _ACEOF
21524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21525   $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then
21526   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
21527 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}gai_strerror" >&5
21528 echo $ECHO_N "checking for ${ipv6_cv_pfx}gai_strerror... $ECHO_C" >&6; }
21529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21530   echo $ECHO_N "(cached) $ECHO_C" >&6
21531 else
21532   cat >conftest.$ac_ext <<_ACEOF
21533 /* confdefs.h.  */
21534 _ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h.  */
21538 /* Define ${ipv6_cv_pfx}gai_strerror to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}gai_strerror.
21539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21540 #define ${ipv6_cv_pfx}gai_strerror innocuous_${ipv6_cv_pfx}gai_strerror
21541
21542 /* System header to define __stub macros and hopefully few prototypes,
21543     which can conflict with char ${ipv6_cv_pfx}gai_strerror (); below.
21544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21545     <limits.h> exists even on freestanding compilers.  */
21546
21547 #ifdef __STDC__
21548 # include <limits.h>
21549 #else
21550 # include <assert.h>
21551 #endif
21552
21553 #undef ${ipv6_cv_pfx}gai_strerror
21554
21555 /* Override any GCC internal prototype to avoid an error.
21556    Use char because int might match the return type of a GCC
21557    builtin and then its argument prototype would still apply.  */
21558 #ifdef __cplusplus
21559 extern "C"
21560 #endif
21561 char ${ipv6_cv_pfx}gai_strerror ();
21562 /* The GNU C library defines this for functions which it implements
21563     to always fail with ENOSYS.  Some functions are actually named
21564     something starting with __ and the normal name is an alias.  */
21565 #if defined __stub_${ipv6_cv_pfx}gai_strerror || defined __stub___${ipv6_cv_pfx}gai_strerror
21566 choke me
21567 #endif
21568
21569 int
21570 main ()
21571 {
21572 return ${ipv6_cv_pfx}gai_strerror ();
21573   ;
21574   return 0;
21575 }
21576 _ACEOF
21577 rm -f conftest.$ac_objext conftest$ac_exeext
21578 if { (ac_try="$ac_link"
21579 case "(($ac_try" in
21580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581   *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584   (eval "$ac_link") 2>conftest.er1
21585   ac_status=$?
21586   grep -v '^ *+' conftest.er1 >conftest.err
21587   rm -f conftest.er1
21588   cat conftest.err >&5
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } && {
21591          test -z "$ac_c_werror_flag" ||
21592          test ! -s conftest.err
21593        } && test -s conftest$ac_exeext &&
21594        $as_test_x conftest$ac_exeext; then
21595   eval "$as_ac_var=yes"
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600         eval "$as_ac_var=no"
21601 fi
21602
21603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21604       conftest$ac_exeext conftest.$ac_ext
21605 fi
21606 ac_res=`eval echo '${'$as_ac_var'}'`
21607                { echo "$as_me:$LINENO: result: $ac_res" >&5
21608 echo "${ECHO_T}$ac_res" >&6; }
21609
21610 fi
21611 rm -f -r conftest*
21612
21613       if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
21614
21615 cat >>confdefs.h <<\_ACEOF
21616 #define HAVE_GETADDRINFO
21617 _ACEOF
21618
21619         ipv6_cv_gai_strerror=yes
21620         break
21621       fi
21622     done
21623   fi
21624 fi
21625 if test $ipv6_cv_gai_strerror = yes; then
21626
21627 cat >>confdefs.h <<\_ACEOF
21628 #define HAVE_GETADDRINFO
21629 _ACEOF
21630
21631                 sasl_cv_getaddrinfo=no
21632 else
21633   :
21634 fi
21635 else
21636   :
21637 fi
21638 if test $sasl_cv_getaddrinfo = yes; then
21639     case " $LIBOBJS " in
21640   *" getaddrinfo.$ac_objext "* ) ;;
21641   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21642  ;;
21643 esac
21644
21645     GETADDRINFOOBJS="getaddrinfo.o"
21646     LTGETADDRINFOOBJS="getaddrinfo.lo"
21647 fi
21648
21649
21650
21651 GETNAMEINFOOBJS=""
21652 sasl_cv_getnameinfo=no
21653
21654 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
21655 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
21656 if test "${ac_cv_func_getnameinfo+set}" = set; then
21657   echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659   cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h.  */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h.  */
21665 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
21666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21667 #define getnameinfo innocuous_getnameinfo
21668
21669 /* System header to define __stub macros and hopefully few prototypes,
21670     which can conflict with char getnameinfo (); below.
21671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21672     <limits.h> exists even on freestanding compilers.  */
21673
21674 #ifdef __STDC__
21675 # include <limits.h>
21676 #else
21677 # include <assert.h>
21678 #endif
21679
21680 #undef getnameinfo
21681
21682 /* Override any GCC internal prototype to avoid an error.
21683    Use char because int might match the return type of a GCC
21684    builtin and then its argument prototype would still apply.  */
21685 #ifdef __cplusplus
21686 extern "C"
21687 #endif
21688 char getnameinfo ();
21689 /* The GNU C library defines this for functions which it implements
21690     to always fail with ENOSYS.  Some functions are actually named
21691     something starting with __ and the normal name is an alias.  */
21692 #if defined __stub_getnameinfo || defined __stub___getnameinfo
21693 choke me
21694 #endif
21695
21696 int
21697 main ()
21698 {
21699 return getnameinfo ();
21700   ;
21701   return 0;
21702 }
21703 _ACEOF
21704 rm -f conftest.$ac_objext conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708   *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711   (eval "$ac_link") 2>conftest.er1
21712   ac_status=$?
21713   grep -v '^ *+' conftest.er1 >conftest.err
21714   rm -f conftest.er1
21715   cat conftest.err >&5
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); } && {
21718          test -z "$ac_c_werror_flag" ||
21719          test ! -s conftest.err
21720        } && test -s conftest$ac_exeext &&
21721        $as_test_x conftest$ac_exeext; then
21722   ac_cv_func_getnameinfo=yes
21723 else
21724   echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21726
21727         ac_cv_func_getnameinfo=no
21728 fi
21729
21730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21731       conftest$ac_exeext conftest.$ac_ext
21732 fi
21733 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
21734 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
21735 if test $ac_cv_func_getnameinfo = yes; then
21736     ac_cv_lib_socket_getnameinfo=no
21737   ac_cv_lib_inet6_getnameinfo=no
21738
21739 else
21740     { echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
21741 echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6; }
21742 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
21743   echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745   ac_check_lib_save_LIBS=$LIBS
21746 LIBS="-lsocket  $LIBS"
21747 cat >conftest.$ac_ext <<_ACEOF
21748 /* confdefs.h.  */
21749 _ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h.  */
21753
21754 /* Override any GCC internal prototype to avoid an error.
21755    Use char because int might match the return type of a GCC
21756    builtin and then its argument prototype would still apply.  */
21757 #ifdef __cplusplus
21758 extern "C"
21759 #endif
21760 char getnameinfo ();
21761 int
21762 main ()
21763 {
21764 return getnameinfo ();
21765   ;
21766   return 0;
21767 }
21768 _ACEOF
21769 rm -f conftest.$ac_objext conftest$ac_exeext
21770 if { (ac_try="$ac_link"
21771 case "(($ac_try" in
21772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773   *) ac_try_echo=$ac_try;;
21774 esac
21775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776   (eval "$ac_link") 2>conftest.er1
21777   ac_status=$?
21778   grep -v '^ *+' conftest.er1 >conftest.err
21779   rm -f conftest.er1
21780   cat conftest.err >&5
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); } && {
21783          test -z "$ac_c_werror_flag" ||
21784          test ! -s conftest.err
21785        } && test -s conftest$ac_exeext &&
21786        $as_test_x conftest$ac_exeext; then
21787   ac_cv_lib_socket_getnameinfo=yes
21788 else
21789   echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21791
21792         ac_cv_lib_socket_getnameinfo=no
21793 fi
21794
21795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21796       conftest$ac_exeext conftest.$ac_ext
21797 LIBS=$ac_check_lib_save_LIBS
21798 fi
21799 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
21800 echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6; }
21801 if test $ac_cv_lib_socket_getnameinfo = yes; then
21802       LIBS="$LIBS -lsocket"
21803     ac_cv_lib_inet6_getnameinfo=no
21804
21805 else
21806       { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21807 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21808     if test "${ipv6_cv_dir+set}" = set; then
21809   echo $ECHO_N "(cached) $ECHO_C" >&6
21810 else
21811         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21812         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21813           break
21814         fi
21815       done
21816 fi
21817     { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21818 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21819     if test $ipv6_cv_dir = no; then
21820       ac_cv_lib_inet6_getnameinfo=no
21821     else
21822       if test x$ipv6_libinet6 = x; then
21823         ipv6_libinet6=no
21824         SAVELDFLAGS="$LDFLAGS"
21825         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21826       fi
21827       { echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
21828 echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6; }
21829 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
21830   echo $ECHO_N "(cached) $ECHO_C" >&6
21831 else
21832   ac_check_lib_save_LIBS=$LIBS
21833 LIBS="-linet6  $LIBS"
21834 cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840
21841 /* Override any GCC internal prototype to avoid an error.
21842    Use char because int might match the return type of a GCC
21843    builtin and then its argument prototype would still apply.  */
21844 #ifdef __cplusplus
21845 extern "C"
21846 #endif
21847 char getnameinfo ();
21848 int
21849 main ()
21850 {
21851 return getnameinfo ();
21852   ;
21853   return 0;
21854 }
21855 _ACEOF
21856 rm -f conftest.$ac_objext conftest$ac_exeext
21857 if { (ac_try="$ac_link"
21858 case "(($ac_try" in
21859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860   *) ac_try_echo=$ac_try;;
21861 esac
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863   (eval "$ac_link") 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } && {
21870          test -z "$ac_c_werror_flag" ||
21871          test ! -s conftest.err
21872        } && test -s conftest$ac_exeext &&
21873        $as_test_x conftest$ac_exeext; then
21874   ac_cv_lib_inet6_getnameinfo=yes
21875 else
21876   echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21878
21879         ac_cv_lib_inet6_getnameinfo=no
21880 fi
21881
21882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21883       conftest$ac_exeext conftest.$ac_ext
21884 LIBS=$ac_check_lib_save_LIBS
21885 fi
21886 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
21887 echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6; }
21888 if test $ac_cv_lib_inet6_getnameinfo = yes; then
21889         if test $ipv6_libinet6 = no; then
21890           ipv6_libinet6=yes
21891           LIBS="$LIBS -linet6"
21892         fi
21893 fi
21894       if test $ipv6_libinet6 = no; then
21895         LDFLAGS="$SAVELDFLAGS"
21896       fi
21897     fi
21898 fi
21899
21900 fi
21901 ipv6_cv_getnameinfo=no
21902 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
21903      -o $ac_cv_lib_inet6_getnameinfo = yes
21904 then
21905   ipv6_cv_getnameinfo=yes
21906 fi
21907 if test $ipv6_cv_getnameinfo = no; then
21908   if test getnameinfo = getaddrinfo; then
21909     for ipv6_cv_pfx in o n; do
21910       cat >conftest.$ac_ext <<_ACEOF
21911 /* confdefs.h.  */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h.  */
21916 #include <netdb.h>
21917
21918 _ACEOF
21919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21920   $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
21921   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
21922 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
21923 echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6; }
21924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21925   echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927   cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h.  */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h.  */
21933 /* Define ${ipv6_cv_pfx}getnameinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getnameinfo.
21934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21935 #define ${ipv6_cv_pfx}getnameinfo innocuous_${ipv6_cv_pfx}getnameinfo
21936
21937 /* System header to define __stub macros and hopefully few prototypes,
21938     which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
21939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21940     <limits.h> exists even on freestanding compilers.  */
21941
21942 #ifdef __STDC__
21943 # include <limits.h>
21944 #else
21945 # include <assert.h>
21946 #endif
21947
21948 #undef ${ipv6_cv_pfx}getnameinfo
21949
21950 /* Override any GCC internal prototype to avoid an error.
21951    Use char because int might match the return type of a GCC
21952    builtin and then its argument prototype would still apply.  */
21953 #ifdef __cplusplus
21954 extern "C"
21955 #endif
21956 char ${ipv6_cv_pfx}getnameinfo ();
21957 /* The GNU C library defines this for functions which it implements
21958     to always fail with ENOSYS.  Some functions are actually named
21959     something starting with __ and the normal name is an alias.  */
21960 #if defined __stub_${ipv6_cv_pfx}getnameinfo || defined __stub___${ipv6_cv_pfx}getnameinfo
21961 choke me
21962 #endif
21963
21964 int
21965 main ()
21966 {
21967 return ${ipv6_cv_pfx}getnameinfo ();
21968   ;
21969   return 0;
21970 }
21971 _ACEOF
21972 rm -f conftest.$ac_objext conftest$ac_exeext
21973 if { (ac_try="$ac_link"
21974 case "(($ac_try" in
21975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976   *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979   (eval "$ac_link") 2>conftest.er1
21980   ac_status=$?
21981   grep -v '^ *+' conftest.er1 >conftest.err
21982   rm -f conftest.er1
21983   cat conftest.err >&5
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); } && {
21986          test -z "$ac_c_werror_flag" ||
21987          test ! -s conftest.err
21988        } && test -s conftest$ac_exeext &&
21989        $as_test_x conftest$ac_exeext; then
21990   eval "$as_ac_var=yes"
21991 else
21992   echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21994
21995         eval "$as_ac_var=no"
21996 fi
21997
21998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21999       conftest$ac_exeext conftest.$ac_ext
22000 fi
22001 ac_res=`eval echo '${'$as_ac_var'}'`
22002                { echo "$as_me:$LINENO: result: $ac_res" >&5
22003 echo "${ECHO_T}$ac_res" >&6; }
22004
22005 fi
22006 rm -f -r conftest*
22007
22008       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
22009
22010 cat >>confdefs.h <<\_ACEOF
22011 #define HAVE_GETADDRINFO
22012 _ACEOF
22013
22014         ipv6_cv_getnameinfo=yes
22015         break
22016       fi
22017     done
22018   fi
22019 fi
22020 if test $ipv6_cv_getnameinfo = yes; then
22021
22022 cat >>confdefs.h <<\_ACEOF
22023 #define HAVE_GETNAMEINFO
22024 _ACEOF
22025
22026 else
22027   sasl_cv_getnameinfo=yes
22028 fi
22029 if test $sasl_cv_getnameinfo = yes; then
22030         case " $LIBOBJS " in
22031   *" getnameinfo.$ac_objext "* ) ;;
22032   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
22033  ;;
22034 esac
22035
22036         GETNAMEINFOOBJS="getnameinfo.o"
22037         LTGETNAMEINFOOBJS="getnameinfo.lo"
22038 fi
22039
22040
22041
22042 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
22043
22044
22045 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22046 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22047 if test "${ac_cv_c_const+set}" = set; then
22048   echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050   cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056
22057 int
22058 main ()
22059 {
22060 /* FIXME: Include the comments suggested by Paul. */
22061 #ifndef __cplusplus
22062   /* Ultrix mips cc rejects this.  */
22063   typedef int charset[2];
22064   const charset cs;
22065   /* SunOS 4.1.1 cc rejects this.  */
22066   char const *const *pcpcc;
22067   char **ppc;
22068   /* NEC SVR4.0.2 mips cc rejects this.  */
22069   struct point {int x, y;};
22070   static struct point const zero = {0,0};
22071   /* AIX XL C 1.02.0.0 rejects this.
22072      It does not let you subtract one const X* pointer from another in
22073      an arm of an if-expression whose if-part is not a constant
22074      expression */
22075   const char *g = "string";
22076   pcpcc = &g + (g ? g-g : 0);
22077   /* HPUX 7.0 cc rejects these. */
22078   ++pcpcc;
22079   ppc = (char**) pcpcc;
22080   pcpcc = (char const *const *) ppc;
22081   { /* SCO 3.2v4 cc rejects this.  */
22082     char *t;
22083     char const *s = 0 ? (char *) 0 : (char const *) 0;
22084
22085     *t++ = 0;
22086     if (s) return 0;
22087   }
22088   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22089     int x[] = {25, 17};
22090     const int *foo = &x[0];
22091     ++foo;
22092   }
22093   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22094     typedef const int *iptr;
22095     iptr p = 0;
22096     ++p;
22097   }
22098   { /* AIX XL C 1.02.0.0 rejects this saying
22099        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22100     struct s { int j; const int *ap[3]; };
22101     struct s *b; b->j = 5;
22102   }
22103   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22104     const int foo = 10;
22105     if (!foo) return 0;
22106   }
22107   return !cs[0] && !zero.x;
22108 #endif
22109
22110   ;
22111   return 0;
22112 }
22113 _ACEOF
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121   (eval "$ac_compile") 2>conftest.er1
22122   ac_status=$?
22123   grep -v '^ *+' conftest.er1 >conftest.err
22124   rm -f conftest.er1
22125   cat conftest.err >&5
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); } && {
22128          test -z "$ac_c_werror_flag" ||
22129          test ! -s conftest.err
22130        } && test -s conftest.$ac_objext; then
22131   ac_cv_c_const=yes
22132 else
22133   echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136         ac_cv_c_const=no
22137 fi
22138
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140 fi
22141 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22142 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22143 if test $ac_cv_c_const = no; then
22144
22145 cat >>confdefs.h <<\_ACEOF
22146 #define const
22147 _ACEOF
22148
22149 fi
22150
22151 { echo "$as_me:$LINENO: checking for inline" >&5
22152 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22153 if test "${ac_cv_c_inline+set}" = set; then
22154   echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22156   ac_cv_c_inline=no
22157 for ac_kw in inline __inline__ __inline; do
22158   cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164 #ifndef __cplusplus
22165 typedef int foo_t;
22166 static $ac_kw foo_t static_foo () {return 0; }
22167 $ac_kw foo_t foo () {return 0; }
22168 #endif
22169
22170 _ACEOF
22171 rm -f conftest.$ac_objext
22172 if { (ac_try="$ac_compile"
22173 case "(($ac_try" in
22174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175   *) ac_try_echo=$ac_try;;
22176 esac
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178   (eval "$ac_compile") 2>conftest.er1
22179   ac_status=$?
22180   grep -v '^ *+' conftest.er1 >conftest.err
22181   rm -f conftest.er1
22182   cat conftest.err >&5
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); } && {
22185          test -z "$ac_c_werror_flag" ||
22186          test ! -s conftest.err
22187        } && test -s conftest.$ac_objext; then
22188   ac_cv_c_inline=$ac_kw
22189 else
22190   echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22192
22193
22194 fi
22195
22196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22197   test "$ac_cv_c_inline" != no && break
22198 done
22199
22200 fi
22201 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22202 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22203
22204
22205 case $ac_cv_c_inline in
22206   inline | yes) ;;
22207   *)
22208     case $ac_cv_c_inline in
22209       no) ac_val=;;
22210       *) ac_val=$ac_cv_c_inline;;
22211     esac
22212     cat >>confdefs.h <<_ACEOF
22213 #ifndef __cplusplus
22214 #define inline $ac_val
22215 #endif
22216 _ACEOF
22217     ;;
22218 esac
22219
22220 { echo "$as_me:$LINENO: checking for mode_t" >&5
22221 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22222 if test "${ac_cv_type_mode_t+set}" = set; then
22223   echo $ECHO_N "(cached) $ECHO_C" >&6
22224 else
22225   cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 $ac_includes_default
22232 typedef mode_t ac__type_new_;
22233 int
22234 main ()
22235 {
22236 if ((ac__type_new_ *) 0)
22237   return 0;
22238 if (sizeof (ac__type_new_))
22239   return 0;
22240   ;
22241   return 0;
22242 }
22243 _ACEOF
22244 rm -f conftest.$ac_objext
22245 if { (ac_try="$ac_compile"
22246 case "(($ac_try" in
22247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248   *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251   (eval "$ac_compile") 2>conftest.er1
22252   ac_status=$?
22253   grep -v '^ *+' conftest.er1 >conftest.err
22254   rm -f conftest.er1
22255   cat conftest.err >&5
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); } && {
22258          test -z "$ac_c_werror_flag" ||
22259          test ! -s conftest.err
22260        } && test -s conftest.$ac_objext; then
22261   ac_cv_type_mode_t=yes
22262 else
22263   echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22265
22266         ac_cv_type_mode_t=no
22267 fi
22268
22269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22270 fi
22271 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22272 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22273 if test $ac_cv_type_mode_t = yes; then
22274   :
22275 else
22276
22277 cat >>confdefs.h <<_ACEOF
22278 #define mode_t int
22279 _ACEOF
22280
22281 fi
22282
22283 { echo "$as_me:$LINENO: checking for pid_t" >&5
22284 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22285 if test "${ac_cv_type_pid_t+set}" = set; then
22286   echo $ECHO_N "(cached) $ECHO_C" >&6
22287 else
22288   cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h.  */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h.  */
22294 $ac_includes_default
22295 typedef pid_t ac__type_new_;
22296 int
22297 main ()
22298 {
22299 if ((ac__type_new_ *) 0)
22300   return 0;
22301 if (sizeof (ac__type_new_))
22302   return 0;
22303   ;
22304   return 0;
22305 }
22306 _ACEOF
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311   *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314   (eval "$ac_compile") 2>conftest.er1
22315   ac_status=$?
22316   grep -v '^ *+' conftest.er1 >conftest.err
22317   rm -f conftest.er1
22318   cat conftest.err >&5
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); } && {
22321          test -z "$ac_c_werror_flag" ||
22322          test ! -s conftest.err
22323        } && test -s conftest.$ac_objext; then
22324   ac_cv_type_pid_t=yes
22325 else
22326   echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329         ac_cv_type_pid_t=no
22330 fi
22331
22332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333 fi
22334 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22335 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22336 if test $ac_cv_type_pid_t = yes; then
22337   :
22338 else
22339
22340 cat >>confdefs.h <<_ACEOF
22341 #define pid_t int
22342 _ACEOF
22343
22344 fi
22345
22346 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22347 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22348 if test "${ac_cv_type_signal+set}" = set; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351   cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 #include <sys/types.h>
22358 #include <signal.h>
22359
22360 int
22361 main ()
22362 {
22363 return *(signal (0, 0)) (0) == 1;
22364   ;
22365   return 0;
22366 }
22367 _ACEOF
22368 rm -f conftest.$ac_objext
22369 if { (ac_try="$ac_compile"
22370 case "(($ac_try" in
22371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372   *) ac_try_echo=$ac_try;;
22373 esac
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375   (eval "$ac_compile") 2>conftest.er1
22376   ac_status=$?
22377   grep -v '^ *+' conftest.er1 >conftest.err
22378   rm -f conftest.er1
22379   cat conftest.err >&5
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); } && {
22382          test -z "$ac_c_werror_flag" ||
22383          test ! -s conftest.err
22384        } && test -s conftest.$ac_objext; then
22385   ac_cv_type_signal=int
22386 else
22387   echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22389
22390         ac_cv_type_signal=void
22391 fi
22392
22393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394 fi
22395 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22396 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22397
22398 cat >>confdefs.h <<_ACEOF
22399 #define RETSIGTYPE $ac_cv_type_signal
22400 _ACEOF
22401
22402
22403
22404 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22405 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22406 if test "${ac_cv_header_time+set}" = set; then
22407   echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22409   cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h.  */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h.  */
22415 #include <sys/types.h>
22416 #include <sys/time.h>
22417 #include <time.h>
22418
22419 int
22420 main ()
22421 {
22422 if ((struct tm *) 0)
22423 return 0;
22424   ;
22425   return 0;
22426 }
22427 _ACEOF
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432   *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435   (eval "$ac_compile") 2>conftest.er1
22436   ac_status=$?
22437   grep -v '^ *+' conftest.er1 >conftest.err
22438   rm -f conftest.er1
22439   cat conftest.err >&5
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); } && {
22442          test -z "$ac_c_werror_flag" ||
22443          test ! -s conftest.err
22444        } && test -s conftest.$ac_objext; then
22445   ac_cv_header_time=yes
22446 else
22447   echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450         ac_cv_header_time=no
22451 fi
22452
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22454 fi
22455 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22456 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22457 if test $ac_cv_header_time = yes; then
22458
22459 cat >>confdefs.h <<\_ACEOF
22460 #define TIME_WITH_SYS_TIME 1
22461 _ACEOF
22462
22463 fi
22464
22465 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22466 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22467 if test "${ac_cv_header_stdc+set}" = set; then
22468   echo $ECHO_N "(cached) $ECHO_C" >&6
22469 else
22470   cat >conftest.$ac_ext <<_ACEOF
22471 /* confdefs.h.  */
22472 _ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h.  */
22476 #include <stdlib.h>
22477 #include <stdarg.h>
22478 #include <string.h>
22479 #include <float.h>
22480
22481 int
22482 main ()
22483 {
22484
22485   ;
22486   return 0;
22487 }
22488 _ACEOF
22489 rm -f conftest.$ac_objext
22490 if { (ac_try="$ac_compile"
22491 case "(($ac_try" in
22492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493   *) ac_try_echo=$ac_try;;
22494 esac
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496   (eval "$ac_compile") 2>conftest.er1
22497   ac_status=$?
22498   grep -v '^ *+' conftest.er1 >conftest.err
22499   rm -f conftest.er1
22500   cat conftest.err >&5
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); } && {
22503          test -z "$ac_c_werror_flag" ||
22504          test ! -s conftest.err
22505        } && test -s conftest.$ac_objext; then
22506   ac_cv_header_stdc=yes
22507 else
22508   echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22510
22511         ac_cv_header_stdc=no
22512 fi
22513
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515
22516 if test $ac_cv_header_stdc = yes; then
22517   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22518   cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h.  */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h.  */
22524 #include <string.h>
22525
22526 _ACEOF
22527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22528   $EGREP "memchr" >/dev/null 2>&1; then
22529   :
22530 else
22531   ac_cv_header_stdc=no
22532 fi
22533 rm -f -r conftest*
22534
22535 fi
22536
22537 if test $ac_cv_header_stdc = yes; then
22538   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22539   cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h.  */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h.  */
22545 #include <stdlib.h>
22546
22547 _ACEOF
22548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22549   $EGREP "free" >/dev/null 2>&1; then
22550   :
22551 else
22552   ac_cv_header_stdc=no
22553 fi
22554 rm -f -r conftest*
22555
22556 fi
22557
22558 if test $ac_cv_header_stdc = yes; then
22559   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22560   if test "$cross_compiling" = yes; then
22561   :
22562 else
22563   cat >conftest.$ac_ext <<_ACEOF
22564 /* confdefs.h.  */
22565 _ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h.  */
22569 #include <ctype.h>
22570 #include <stdlib.h>
22571 #if ((' ' & 0x0FF) == 0x020)
22572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22574 #else
22575 # define ISLOWER(c) \
22576                    (('a' <= (c) && (c) <= 'i') \
22577                      || ('j' <= (c) && (c) <= 'r') \
22578                      || ('s' <= (c) && (c) <= 'z'))
22579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22580 #endif
22581
22582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22583 int
22584 main ()
22585 {
22586   int i;
22587   for (i = 0; i < 256; i++)
22588     if (XOR (islower (i), ISLOWER (i))
22589         || toupper (i) != TOUPPER (i))
22590       return 2;
22591   return 0;
22592 }
22593 _ACEOF
22594 rm -f conftest$ac_exeext
22595 if { (ac_try="$ac_link"
22596 case "(($ac_try" in
22597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598   *) ac_try_echo=$ac_try;;
22599 esac
22600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601   (eval "$ac_link") 2>&5
22602   ac_status=$?
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22605   { (case "(($ac_try" in
22606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607   *) ac_try_echo=$ac_try;;
22608 esac
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610   (eval "$ac_try") 2>&5
22611   ac_status=$?
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); }; }; then
22614   :
22615 else
22616   echo "$as_me: program exited with status $ac_status" >&5
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620 ( exit $ac_status )
22621 ac_cv_header_stdc=no
22622 fi
22623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22624 fi
22625
22626
22627 fi
22628 fi
22629 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22630 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22631 if test $ac_cv_header_stdc = yes; then
22632
22633 cat >>confdefs.h <<\_ACEOF
22634 #define STDC_HEADERS 1
22635 _ACEOF
22636
22637 fi
22638
22639
22640
22641
22642
22643
22644 ac_header_dirent=no
22645 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22646   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22647 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22648 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22650   echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652   cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h.  */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h.  */
22658 #include <sys/types.h>
22659 #include <$ac_hdr>
22660
22661 int
22662 main ()
22663 {
22664 if ((DIR *) 0)
22665 return 0;
22666   ;
22667   return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest.$ac_objext
22671 if { (ac_try="$ac_compile"
22672 case "(($ac_try" in
22673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674   *) ac_try_echo=$ac_try;;
22675 esac
22676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22677   (eval "$ac_compile") 2>conftest.er1
22678   ac_status=$?
22679   grep -v '^ *+' conftest.er1 >conftest.err
22680   rm -f conftest.er1
22681   cat conftest.err >&5
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); } && {
22684          test -z "$ac_c_werror_flag" ||
22685          test ! -s conftest.err
22686        } && test -s conftest.$ac_objext; then
22687   eval "$as_ac_Header=yes"
22688 else
22689   echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692         eval "$as_ac_Header=no"
22693 fi
22694
22695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22696 fi
22697 ac_res=`eval echo '${'$as_ac_Header'}'`
22698                { echo "$as_me:$LINENO: result: $ac_res" >&5
22699 echo "${ECHO_T}$ac_res" >&6; }
22700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22701   cat >>confdefs.h <<_ACEOF
22702 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22703 _ACEOF
22704
22705 ac_header_dirent=$ac_hdr; break
22706 fi
22707
22708 done
22709 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22710 if test $ac_header_dirent = dirent.h; then
22711   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22713 if test "${ac_cv_search_opendir+set}" = set; then
22714   echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716   ac_func_search_save_LIBS=$LIBS
22717 cat >conftest.$ac_ext <<_ACEOF
22718 /* confdefs.h.  */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h.  */
22723
22724 /* Override any GCC internal prototype to avoid an error.
22725    Use char because int might match the return type of a GCC
22726    builtin and then its argument prototype would still apply.  */
22727 #ifdef __cplusplus
22728 extern "C"
22729 #endif
22730 char opendir ();
22731 int
22732 main ()
22733 {
22734 return opendir ();
22735   ;
22736   return 0;
22737 }
22738 _ACEOF
22739 for ac_lib in '' dir; do
22740   if test -z "$ac_lib"; then
22741     ac_res="none required"
22742   else
22743     ac_res=-l$ac_lib
22744     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22745   fi
22746   rm -f conftest.$ac_objext conftest$ac_exeext
22747 if { (ac_try="$ac_link"
22748 case "(($ac_try" in
22749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750   *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753   (eval "$ac_link") 2>conftest.er1
22754   ac_status=$?
22755   grep -v '^ *+' conftest.er1 >conftest.err
22756   rm -f conftest.er1
22757   cat conftest.err >&5
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); } && {
22760          test -z "$ac_c_werror_flag" ||
22761          test ! -s conftest.err
22762        } && test -s conftest$ac_exeext &&
22763        $as_test_x conftest$ac_exeext; then
22764   ac_cv_search_opendir=$ac_res
22765 else
22766   echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22768
22769
22770 fi
22771
22772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22773       conftest$ac_exeext
22774   if test "${ac_cv_search_opendir+set}" = set; then
22775   break
22776 fi
22777 done
22778 if test "${ac_cv_search_opendir+set}" = set; then
22779   :
22780 else
22781   ac_cv_search_opendir=no
22782 fi
22783 rm conftest.$ac_ext
22784 LIBS=$ac_func_search_save_LIBS
22785 fi
22786 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22787 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22788 ac_res=$ac_cv_search_opendir
22789 if test "$ac_res" != no; then
22790   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22791
22792 fi
22793
22794 else
22795   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22796 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22797 if test "${ac_cv_search_opendir+set}" = set; then
22798   echo $ECHO_N "(cached) $ECHO_C" >&6
22799 else
22800   ac_func_search_save_LIBS=$LIBS
22801 cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h.  */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h.  */
22807
22808 /* Override any GCC internal prototype to avoid an error.
22809    Use char because int might match the return type of a GCC
22810    builtin and then its argument prototype would still apply.  */
22811 #ifdef __cplusplus
22812 extern "C"
22813 #endif
22814 char opendir ();
22815 int
22816 main ()
22817 {
22818 return opendir ();
22819   ;
22820   return 0;
22821 }
22822 _ACEOF
22823 for ac_lib in '' x; do
22824   if test -z "$ac_lib"; then
22825     ac_res="none required"
22826   else
22827     ac_res=-l$ac_lib
22828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22829   fi
22830   rm -f conftest.$ac_objext conftest$ac_exeext
22831 if { (ac_try="$ac_link"
22832 case "(($ac_try" in
22833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834   *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837   (eval "$ac_link") 2>conftest.er1
22838   ac_status=$?
22839   grep -v '^ *+' conftest.er1 >conftest.err
22840   rm -f conftest.er1
22841   cat conftest.err >&5
22842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843   (exit $ac_status); } && {
22844          test -z "$ac_c_werror_flag" ||
22845          test ! -s conftest.err
22846        } && test -s conftest$ac_exeext &&
22847        $as_test_x conftest$ac_exeext; then
22848   ac_cv_search_opendir=$ac_res
22849 else
22850   echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22852
22853
22854 fi
22855
22856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22857       conftest$ac_exeext
22858   if test "${ac_cv_search_opendir+set}" = set; then
22859   break
22860 fi
22861 done
22862 if test "${ac_cv_search_opendir+set}" = set; then
22863   :
22864 else
22865   ac_cv_search_opendir=no
22866 fi
22867 rm conftest.$ac_ext
22868 LIBS=$ac_func_search_save_LIBS
22869 fi
22870 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22871 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22872 ac_res=$ac_cv_search_opendir
22873 if test "$ac_res" != no; then
22874   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22875
22876 fi
22877
22878 fi
22879
22880 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22881 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22882 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22883   echo $ECHO_N "(cached) $ECHO_C" >&6
22884 else
22885   cat >conftest.$ac_ext <<_ACEOF
22886 /* confdefs.h.  */
22887 _ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h.  */
22891 #include <sys/types.h>
22892 #include <sys/wait.h>
22893 #ifndef WEXITSTATUS
22894 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22895 #endif
22896 #ifndef WIFEXITED
22897 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22898 #endif
22899
22900 int
22901 main ()
22902 {
22903   int s;
22904   wait (&s);
22905   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest.$ac_objext
22911 if { (ac_try="$ac_compile"
22912 case "(($ac_try" in
22913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914   *) ac_try_echo=$ac_try;;
22915 esac
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917   (eval "$ac_compile") 2>conftest.er1
22918   ac_status=$?
22919   grep -v '^ *+' conftest.er1 >conftest.err
22920   rm -f conftest.er1
22921   cat conftest.err >&5
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); } && {
22924          test -z "$ac_c_werror_flag" ||
22925          test ! -s conftest.err
22926        } && test -s conftest.$ac_objext; then
22927   ac_cv_header_sys_wait_h=yes
22928 else
22929   echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22931
22932         ac_cv_header_sys_wait_h=no
22933 fi
22934
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936 fi
22937 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22938 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22939 if test $ac_cv_header_sys_wait_h = yes; then
22940
22941 cat >>confdefs.h <<\_ACEOF
22942 #define HAVE_SYS_WAIT_H 1
22943 _ACEOF
22944
22945 fi
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964 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
22965 do
22966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22968   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22971   echo $ECHO_N "(cached) $ECHO_C" >&6
22972 fi
22973 ac_res=`eval echo '${'$as_ac_Header'}'`
22974                { echo "$as_me:$LINENO: result: $ac_res" >&5
22975 echo "${ECHO_T}$ac_res" >&6; }
22976 else
22977   # Is the header compilable?
22978 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22980 cat >conftest.$ac_ext <<_ACEOF
22981 /* confdefs.h.  */
22982 _ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h.  */
22986 $ac_includes_default
22987 #include <$ac_header>
22988 _ACEOF
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993   *) ac_try_echo=$ac_try;;
22994 esac
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996   (eval "$ac_compile") 2>conftest.er1
22997   ac_status=$?
22998   grep -v '^ *+' conftest.er1 >conftest.err
22999   rm -f conftest.er1
23000   cat conftest.err >&5
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); } && {
23003          test -z "$ac_c_werror_flag" ||
23004          test ! -s conftest.err
23005        } && test -s conftest.$ac_objext; then
23006   ac_header_compiler=yes
23007 else
23008   echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011         ac_header_compiler=no
23012 fi
23013
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23016 echo "${ECHO_T}$ac_header_compiler" >&6; }
23017
23018 # Is the header present?
23019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h.  */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h.  */
23027 #include <$ac_header>
23028 _ACEOF
23029 if { (ac_try="$ac_cpp conftest.$ac_ext"
23030 case "(($ac_try" in
23031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032   *) ac_try_echo=$ac_try;;
23033 esac
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } >/dev/null && {
23042          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23043          test ! -s conftest.err
23044        }; then
23045   ac_header_preproc=yes
23046 else
23047   echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23049
23050   ac_header_preproc=no
23051 fi
23052
23053 rm -f conftest.err conftest.$ac_ext
23054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23055 echo "${ECHO_T}$ac_header_preproc" >&6; }
23056
23057 # So?  What about this header?
23058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23059   yes:no: )
23060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23064     ac_header_preproc=yes
23065     ;;
23066   no:yes:* )
23067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23079
23080     ;;
23081 esac
23082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23085   echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087   eval "$as_ac_Header=\$ac_header_preproc"
23088 fi
23089 ac_res=`eval echo '${'$as_ac_Header'}'`
23090                { echo "$as_me:$LINENO: result: $ac_res" >&5
23091 echo "${ECHO_T}$ac_res" >&6; }
23092
23093 fi
23094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23095   cat >>confdefs.h <<_ACEOF
23096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23097 _ACEOF
23098
23099 fi
23100
23101 done
23102
23103
23104
23105 { echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
23106 echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6; }
23107 if test "${ipv6_cv_ss_family+set}" = set; then
23108   echo $ECHO_N "(cached) $ECHO_C" >&6
23109 else
23110   cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 #include <sys/types.h>
23117 #include <sys/socket.h>
23118 int
23119 main ()
23120 {
23121 struct sockaddr_storage ss; int i = ss.ss_family;
23122   ;
23123   return 0;
23124 }
23125 _ACEOF
23126 rm -f conftest.$ac_objext
23127 if { (ac_try="$ac_compile"
23128 case "(($ac_try" in
23129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130   *) ac_try_echo=$ac_try;;
23131 esac
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133   (eval "$ac_compile") 2>conftest.er1
23134   ac_status=$?
23135   grep -v '^ *+' conftest.er1 >conftest.err
23136   rm -f conftest.er1
23137   cat conftest.err >&5
23138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); } && {
23140          test -z "$ac_c_werror_flag" ||
23141          test ! -s conftest.err
23142        } && test -s conftest.$ac_objext; then
23143   ipv6_cv_ss_family=yes
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148         ipv6_cv_ss_family=no
23149 fi
23150
23151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23152 fi
23153 if test $ipv6_cv_ss_family = yes; then
23154
23155 cat >>confdefs.h <<\_ACEOF
23156 #define HAVE_SS_FAMILY
23157 _ACEOF
23158
23159 else
23160   :
23161 fi
23162 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
23163 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
23164
23165 { echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
23166 echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6; }
23167 if test "${ipv6_cv_sa_len+set}" = set; then
23168   echo $ECHO_N "(cached) $ECHO_C" >&6
23169 else
23170   cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h.  */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h.  */
23176 #include <sys/types.h>
23177 #include <sys/socket.h>
23178 int
23179 main ()
23180 {
23181 struct sockaddr sa; int i = sa.sa_len;
23182   ;
23183   return 0;
23184 }
23185 _ACEOF
23186 rm -f conftest.$ac_objext
23187 if { (ac_try="$ac_compile"
23188 case "(($ac_try" in
23189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190   *) ac_try_echo=$ac_try;;
23191 esac
23192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23193   (eval "$ac_compile") 2>conftest.er1
23194   ac_status=$?
23195   grep -v '^ *+' conftest.er1 >conftest.err
23196   rm -f conftest.er1
23197   cat conftest.err >&5
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); } && {
23200          test -z "$ac_c_werror_flag" ||
23201          test ! -s conftest.err
23202        } && test -s conftest.$ac_objext; then
23203   ipv6_cv_sa_len=yes
23204 else
23205   echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23207
23208         ipv6_cv_sa_len=no
23209 fi
23210
23211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23212 fi
23213 if test $ipv6_cv_sa_len = yes; then
23214
23215 cat >>confdefs.h <<\_ACEOF
23216 #define HAVE_SOCKADDR_SA_LEN
23217 _ACEOF
23218
23219 else
23220   :
23221 fi
23222 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
23223 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
23224
23225 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23226 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23227 if test "${ipv6_cv_socklen_t+set}" = set; then
23228   echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230   cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h.  */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h.  */
23236 #include <sys/types.h>
23237 #include <sys/socket.h>
23238 int
23239 main ()
23240 {
23241 socklen_t len = 0;
23242   ;
23243   return 0;
23244 }
23245 _ACEOF
23246 rm -f conftest.$ac_objext conftest$ac_exeext
23247 if { (ac_try="$ac_link"
23248 case "(($ac_try" in
23249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23250   *) ac_try_echo=$ac_try;;
23251 esac
23252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23253   (eval "$ac_link") 2>conftest.er1
23254   ac_status=$?
23255   grep -v '^ *+' conftest.er1 >conftest.err
23256   rm -f conftest.er1
23257   cat conftest.err >&5
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); } && {
23260          test -z "$ac_c_werror_flag" ||
23261          test ! -s conftest.err
23262        } && test -s conftest$ac_exeext &&
23263        $as_test_x conftest$ac_exeext; then
23264   ipv6_cv_socklen_t=yes
23265 else
23266   echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23268
23269         ipv6_cv_socklen_t=no
23270 fi
23271
23272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23273       conftest$ac_exeext conftest.$ac_ext
23274 fi
23275 if test $ipv6_cv_socklen_t = yes; then
23276
23277 cat >>confdefs.h <<\_ACEOF
23278 #define HAVE_SOCKLEN_T
23279 _ACEOF
23280
23281 else
23282   :
23283 fi
23284 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
23285 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
23286
23287 #AC_FUNC_MEMCMP
23288 #AC_FUNC_VPRINTF
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
23307 do
23308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23312   echo $ECHO_N "(cached) $ECHO_C" >&6
23313 else
23314   cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h.  */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h.  */
23320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23322 #define $ac_func innocuous_$ac_func
23323
23324 /* System header to define __stub macros and hopefully few prototypes,
23325     which can conflict with char $ac_func (); below.
23326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23327     <limits.h> exists even on freestanding compilers.  */
23328
23329 #ifdef __STDC__
23330 # include <limits.h>
23331 #else
23332 # include <assert.h>
23333 #endif
23334
23335 #undef $ac_func
23336
23337 /* Override any GCC internal prototype to avoid an error.
23338    Use char because int might match the return type of a GCC
23339    builtin and then its argument prototype would still apply.  */
23340 #ifdef __cplusplus
23341 extern "C"
23342 #endif
23343 char $ac_func ();
23344 /* The GNU C library defines this for functions which it implements
23345     to always fail with ENOSYS.  Some functions are actually named
23346     something starting with __ and the normal name is an alias.  */
23347 #if defined __stub_$ac_func || defined __stub___$ac_func
23348 choke me
23349 #endif
23350
23351 int
23352 main ()
23353 {
23354 return $ac_func ();
23355   ;
23356   return 0;
23357 }
23358 _ACEOF
23359 rm -f conftest.$ac_objext conftest$ac_exeext
23360 if { (ac_try="$ac_link"
23361 case "(($ac_try" in
23362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363   *) ac_try_echo=$ac_try;;
23364 esac
23365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23366   (eval "$ac_link") 2>conftest.er1
23367   ac_status=$?
23368   grep -v '^ *+' conftest.er1 >conftest.err
23369   rm -f conftest.er1
23370   cat conftest.err >&5
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); } && {
23373          test -z "$ac_c_werror_flag" ||
23374          test ! -s conftest.err
23375        } && test -s conftest$ac_exeext &&
23376        $as_test_x conftest$ac_exeext; then
23377   eval "$as_ac_var=yes"
23378 else
23379   echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23381
23382         eval "$as_ac_var=no"
23383 fi
23384
23385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23386       conftest$ac_exeext conftest.$ac_ext
23387 fi
23388 ac_res=`eval echo '${'$as_ac_var'}'`
23389                { echo "$as_me:$LINENO: result: $ac_res" >&5
23390 echo "${ECHO_T}$ac_res" >&6; }
23391 if test `eval echo '${'$as_ac_var'}'` = yes; then
23392   cat >>confdefs.h <<_ACEOF
23393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23394 _ACEOF
23395
23396 fi
23397 done
23398
23399
23400 if test $enable_cmulocal = yes; then
23401     { echo "$as_me:$LINENO: WARNING: enabling CMU local kludges" >&5
23402 echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
23403
23404 cat >>confdefs.h <<\_ACEOF
23405 #define KRB4_IGNORE_IP_ADDRESS
23406 _ACEOF
23407
23408
23409 cat >>confdefs.h <<_ACEOF
23410 #define PREFER_MECH "KERBEROS_V4"
23411 _ACEOF
23412
23413 fi
23414
23415 cat >conftest.$ac_ext <<_ACEOF
23416 /* confdefs.h.  */
23417 _ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h.  */
23421 #include <sys/socket.h>
23422
23423 _ACEOF
23424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23425   $EGREP "sockaddr_storage" >/dev/null 2>&1; then
23426
23427
23428 cat >>confdefs.h <<\_ACEOF
23429 #define HAVE_STRUCT_SOCKADDR_STORAGE
23430 _ACEOF
23431
23432 fi
23433 rm -f -r conftest*
23434
23435
23436
23437
23438 subdirs="$subdirs saslauthd"
23439
23440
23441
23442
23443
23444
23445
23446
23447 ac_config_headers="$ac_config_headers config.h"
23448
23449
23450 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"
23451
23452 cat >confcache <<\_ACEOF
23453 # This file is a shell script that caches the results of configure
23454 # tests run on this system so they can be shared between configure
23455 # scripts and configure runs, see configure's option --config-cache.
23456 # It is not useful on other systems.  If it contains results you don't
23457 # want to keep, you may remove or edit it.
23458 #
23459 # config.status only pays attention to the cache file if you give it
23460 # the --recheck option to rerun configure.
23461 #
23462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23464 # following values.
23465
23466 _ACEOF
23467
23468 # The following way of writing the cache mishandles newlines in values,
23469 # but we know of no workaround that is simple, portable, and efficient.
23470 # So, we kill variables containing newlines.
23471 # Ultrix sh set writes to stderr and can't be redirected directly,
23472 # and sets the high bit in the cache file unless we assign to the vars.
23473 (
23474   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23475     eval ac_val=\$$ac_var
23476     case $ac_val in #(
23477     *${as_nl}*)
23478       case $ac_var in #(
23479       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23480 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23481       esac
23482       case $ac_var in #(
23483       _ | IFS | as_nl) ;; #(
23484       *) $as_unset $ac_var ;;
23485       esac ;;
23486     esac
23487   done
23488
23489   (set) 2>&1 |
23490     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23491     *${as_nl}ac_space=\ *)
23492       # `set' does not quote correctly, so add quotes (double-quote
23493       # substitution turns \\\\ into \\, and sed turns \\ into \).
23494       sed -n \
23495         "s/'/'\\\\''/g;
23496           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23497       ;; #(
23498     *)
23499       # `set' quotes correctly as required by POSIX, so do not add quotes.
23500       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23501       ;;
23502     esac |
23503     sort
23504 ) |
23505   sed '
23506      /^ac_cv_env_/b end
23507      t clear
23508      :clear
23509      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23510      t end
23511      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23512      :end' >>confcache
23513 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23514   if test -w "$cache_file"; then
23515     test "x$cache_file" != "x/dev/null" &&
23516       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23517 echo "$as_me: updating cache $cache_file" >&6;}
23518     cat confcache >$cache_file
23519   else
23520     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23521 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23522   fi
23523 fi
23524 rm -f confcache
23525
23526 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23527 # Let make expand exec_prefix.
23528 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23529
23530 DEFS=-DHAVE_CONFIG_H
23531
23532 ac_libobjs=
23533 ac_ltlibobjs=
23534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23535   # 1. Remove the extension, and $U if already installed.
23536   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23537   ac_i=`echo "$ac_i" | sed "$ac_script"`
23538   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23539   #    will be set to the directory where LIBOBJS objects are built.
23540   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23541   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23542 done
23543 LIBOBJS=$ac_libobjs
23544
23545 LTLIBOBJS=$ac_ltlibobjs
23546
23547
23548 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23549   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23550 Usually this means the macro was only invoked conditionally." >&5
23551 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23552 Usually this means the macro was only invoked conditionally." >&2;}
23553    { (exit 1); exit 1; }; }
23554 fi
23555 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23556   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23557 Usually this means the macro was only invoked conditionally." >&5
23558 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23559 Usually this means the macro was only invoked conditionally." >&2;}
23560    { (exit 1); exit 1; }; }
23561 fi
23562 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
23563   { { echo "$as_me:$LINENO: error: conditional \"JAVA\" was never defined.
23564 Usually this means the macro was only invoked conditionally." >&5
23565 echo "$as_me: error: conditional \"JAVA\" was never defined.
23566 Usually this means the macro was only invoked conditionally." >&2;}
23567    { (exit 1); exit 1; }; }
23568 fi
23569 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
23570   { { echo "$as_me:$LINENO: error: conditional \"SAMPLE\" was never defined.
23571 Usually this means the macro was only invoked conditionally." >&5
23572 echo "$as_me: error: conditional \"SAMPLE\" was never defined.
23573 Usually this means the macro was only invoked conditionally." >&2;}
23574    { (exit 1); exit 1; }; }
23575 fi
23576 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
23577   { { echo "$as_me:$LINENO: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23578 Usually this means the macro was only invoked conditionally." >&5
23579 echo "$as_me: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23580 Usually this means the macro was only invoked conditionally." >&2;}
23581    { (exit 1); exit 1; }; }
23582 fi
23583 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
23584   { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
23585 Usually this means the macro was only invoked conditionally." >&5
23586 echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
23587 Usually this means the macro was only invoked conditionally." >&2;}
23588    { (exit 1); exit 1; }; }
23589 fi
23590 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
23591   { { echo "$as_me:$LINENO: error: conditional \"PWCHECK\" was never defined.
23592 Usually this means the macro was only invoked conditionally." >&5
23593 echo "$as_me: error: conditional \"PWCHECK\" was never defined.
23594 Usually this means the macro was only invoked conditionally." >&2;}
23595    { (exit 1); exit 1; }; }
23596 fi
23597 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
23598   { { echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined.
23599 Usually this means the macro was only invoked conditionally." >&5
23600 echo "$as_me: error: conditional \"MACOSX\" was never defined.
23601 Usually this means the macro was only invoked conditionally." >&2;}
23602    { (exit 1); exit 1; }; }
23603 fi
23604
23605 : ${CONFIG_STATUS=./config.status}
23606 ac_clean_files_save=$ac_clean_files
23607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23608 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23609 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23610 cat >$CONFIG_STATUS <<_ACEOF
23611 #! $SHELL
23612 # Generated by $as_me.
23613 # Run this file to recreate the current configuration.
23614 # Compiler output produced by configure, useful for debugging
23615 # configure, is in config.log if it exists.
23616
23617 debug=false
23618 ac_cs_recheck=false
23619 ac_cs_silent=false
23620 SHELL=\${CONFIG_SHELL-$SHELL}
23621 _ACEOF
23622
23623 cat >>$CONFIG_STATUS <<\_ACEOF
23624 ## --------------------- ##
23625 ## M4sh Initialization.  ##
23626 ## --------------------- ##
23627
23628 # Be more Bourne compatible
23629 DUALCASE=1; export DUALCASE # for MKS sh
23630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23631   emulate sh
23632   NULLCMD=:
23633   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23634   # is contrary to our usage.  Disable this feature.
23635   alias -g '${1+"$@"}'='"$@"'
23636   setopt NO_GLOB_SUBST
23637 else
23638   case `(set -o) 2>/dev/null` in
23639   *posix*) set -o posix ;;
23640 esac
23641
23642 fi
23643
23644
23645
23646
23647 # PATH needs CR
23648 # Avoid depending upon Character Ranges.
23649 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23650 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23651 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23652 as_cr_digits='0123456789'
23653 as_cr_alnum=$as_cr_Letters$as_cr_digits
23654
23655 # The user is always right.
23656 if test "${PATH_SEPARATOR+set}" != set; then
23657   echo "#! /bin/sh" >conf$$.sh
23658   echo  "exit 0"   >>conf$$.sh
23659   chmod +x conf$$.sh
23660   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23661     PATH_SEPARATOR=';'
23662   else
23663     PATH_SEPARATOR=:
23664   fi
23665   rm -f conf$$.sh
23666 fi
23667
23668 # Support unset when possible.
23669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23670   as_unset=unset
23671 else
23672   as_unset=false
23673 fi
23674
23675
23676 # IFS
23677 # We need space, tab and new line, in precisely that order.  Quoting is
23678 # there to prevent editors from complaining about space-tab.
23679 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23680 # splitting by setting IFS to empty value.)
23681 as_nl='
23682 '
23683 IFS=" ""        $as_nl"
23684
23685 # Find who we are.  Look in the path if we contain no directory separator.
23686 case $0 in
23687   *[\\/]* ) as_myself=$0 ;;
23688   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23689 for as_dir in $PATH
23690 do
23691   IFS=$as_save_IFS
23692   test -z "$as_dir" && as_dir=.
23693   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23694 done
23695 IFS=$as_save_IFS
23696
23697      ;;
23698 esac
23699 # We did not find ourselves, most probably we were run as `sh COMMAND'
23700 # in which case we are not to be found in the path.
23701 if test "x$as_myself" = x; then
23702   as_myself=$0
23703 fi
23704 if test ! -f "$as_myself"; then
23705   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23706   { (exit 1); exit 1; }
23707 fi
23708
23709 # Work around bugs in pre-3.0 UWIN ksh.
23710 for as_var in ENV MAIL MAILPATH
23711 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23712 done
23713 PS1='$ '
23714 PS2='> '
23715 PS4='+ '
23716
23717 # NLS nuisances.
23718 for as_var in \
23719   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23720   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23721   LC_TELEPHONE LC_TIME
23722 do
23723   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23724     eval $as_var=C; export $as_var
23725   else
23726     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23727   fi
23728 done
23729
23730 # Required to use basename.
23731 if expr a : '\(a\)' >/dev/null 2>&1 &&
23732    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23733   as_expr=expr
23734 else
23735   as_expr=false
23736 fi
23737
23738 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23739   as_basename=basename
23740 else
23741   as_basename=false
23742 fi
23743
23744
23745 # Name of the executable.
23746 as_me=`$as_basename -- "$0" ||
23747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23748          X"$0" : 'X\(//\)$' \| \
23749          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23750 echo X/"$0" |
23751     sed '/^.*\/\([^/][^/]*\)\/*$/{
23752             s//\1/
23753             q
23754           }
23755           /^X\/\(\/\/\)$/{
23756             s//\1/
23757             q
23758           }
23759           /^X\/\(\/\).*/{
23760             s//\1/
23761             q
23762           }
23763           s/.*/./; q'`
23764
23765 # CDPATH.
23766 $as_unset CDPATH
23767
23768
23769
23770   as_lineno_1=$LINENO
23771   as_lineno_2=$LINENO
23772   test "x$as_lineno_1" != "x$as_lineno_2" &&
23773   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23774
23775   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23776   # uniformly replaced by the line number.  The first 'sed' inserts a
23777   # line-number line after each line using $LINENO; the second 'sed'
23778   # does the real work.  The second script uses 'N' to pair each
23779   # line-number line with the line containing $LINENO, and appends
23780   # trailing '-' during substitution so that $LINENO is not a special
23781   # case at line end.
23782   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23783   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23784   # E. McMahon (1931-1989) for sed's syntax.  :-)
23785   sed -n '
23786     p
23787     /[$]LINENO/=
23788   ' <$as_myself |
23789     sed '
23790       s/[$]LINENO.*/&-/
23791       t lineno
23792       b
23793       :lineno
23794       N
23795       :loop
23796       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23797       t loop
23798       s/-\n.*//
23799     ' >$as_me.lineno &&
23800   chmod +x "$as_me.lineno" ||
23801     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23802    { (exit 1); exit 1; }; }
23803
23804   # Don't try to exec as it changes $[0], causing all sort of problems
23805   # (the dirname of $[0] is not the place where we might find the
23806   # original and so on.  Autoconf is especially sensitive to this).
23807   . "./$as_me.lineno"
23808   # Exit status is that of the last command.
23809   exit
23810 }
23811
23812
23813 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23814   as_dirname=dirname
23815 else
23816   as_dirname=false
23817 fi
23818
23819 ECHO_C= ECHO_N= ECHO_T=
23820 case `echo -n x` in
23821 -n*)
23822   case `echo 'x\c'` in
23823   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23824   *)   ECHO_C='\c';;
23825   esac;;
23826 *)
23827   ECHO_N='-n';;
23828 esac
23829
23830 if expr a : '\(a\)' >/dev/null 2>&1 &&
23831    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23832   as_expr=expr
23833 else
23834   as_expr=false
23835 fi
23836
23837 rm -f conf$$ conf$$.exe conf$$.file
23838 if test -d conf$$.dir; then
23839   rm -f conf$$.dir/conf$$.file
23840 else
23841   rm -f conf$$.dir
23842   mkdir conf$$.dir
23843 fi
23844 echo >conf$$.file
23845 if ln -s conf$$.file conf$$ 2>/dev/null; then
23846   as_ln_s='ln -s'
23847   # ... but there are two gotchas:
23848   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23849   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23850   # In both cases, we have to default to `cp -p'.
23851   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23852     as_ln_s='cp -p'
23853 elif ln conf$$.file conf$$ 2>/dev/null; then
23854   as_ln_s=ln
23855 else
23856   as_ln_s='cp -p'
23857 fi
23858 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23859 rmdir conf$$.dir 2>/dev/null
23860
23861 if mkdir -p . 2>/dev/null; then
23862   as_mkdir_p=:
23863 else
23864   test -d ./-p && rmdir ./-p
23865   as_mkdir_p=false
23866 fi
23867
23868 if test -x / >/dev/null 2>&1; then
23869   as_test_x='test -x'
23870 else
23871   if ls -dL / >/dev/null 2>&1; then
23872     as_ls_L_option=L
23873   else
23874     as_ls_L_option=
23875   fi
23876   as_test_x='
23877     eval sh -c '\''
23878       if test -d "$1"; then
23879         test -d "$1/.";
23880       else
23881         case $1 in
23882         -*)set "./$1";;
23883         esac;
23884         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23885         ???[sx]*):;;*)false;;esac;fi
23886     '\'' sh
23887   '
23888 fi
23889 as_executable_p=$as_test_x
23890
23891 # Sed expression to map a string onto a valid CPP name.
23892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23893
23894 # Sed expression to map a string onto a valid variable name.
23895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23896
23897
23898 exec 6>&1
23899
23900 # Save the log message, to keep $[0] and so on meaningful, and to
23901 # report actual input values of CONFIG_FILES etc. instead of their
23902 # values after options handling.
23903 ac_log="
23904 This file was extended by $as_me, which was
23905 generated by GNU Autoconf 2.61.  Invocation command line was
23906
23907   CONFIG_FILES    = $CONFIG_FILES
23908   CONFIG_HEADERS  = $CONFIG_HEADERS
23909   CONFIG_LINKS    = $CONFIG_LINKS
23910   CONFIG_COMMANDS = $CONFIG_COMMANDS
23911   $ $0 $@
23912
23913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23914 "
23915
23916 _ACEOF
23917
23918 cat >>$CONFIG_STATUS <<_ACEOF
23919 # Files that config.status was made for.
23920 config_files="$ac_config_files"
23921 config_headers="$ac_config_headers"
23922 config_commands="$ac_config_commands"
23923
23924 _ACEOF
23925
23926 cat >>$CONFIG_STATUS <<\_ACEOF
23927 ac_cs_usage="\
23928 \`$as_me' instantiates files from templates according to the
23929 current configuration.
23930
23931 Usage: $0 [OPTIONS] [FILE]...
23932
23933   -h, --help       print this help, then exit
23934   -V, --version    print version number and configuration settings, then exit
23935   -q, --quiet      do not print progress messages
23936   -d, --debug      don't remove temporary files
23937       --recheck    update $as_me by reconfiguring in the same conditions
23938   --file=FILE[:TEMPLATE]
23939                    instantiate the configuration file FILE
23940   --header=FILE[:TEMPLATE]
23941                    instantiate the configuration header FILE
23942
23943 Configuration files:
23944 $config_files
23945
23946 Configuration headers:
23947 $config_headers
23948
23949 Configuration commands:
23950 $config_commands
23951
23952 Report bugs to <bug-autoconf@gnu.org>."
23953
23954 _ACEOF
23955 cat >>$CONFIG_STATUS <<_ACEOF
23956 ac_cs_version="\\
23957 config.status
23958 configured by $0, generated by GNU Autoconf 2.61,
23959   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23960
23961 Copyright (C) 2006 Free Software Foundation, Inc.
23962 This config.status script is free software; the Free Software Foundation
23963 gives unlimited permission to copy, distribute and modify it."
23964
23965 ac_pwd='$ac_pwd'
23966 srcdir='$srcdir'
23967 INSTALL='$INSTALL'
23968 MKDIR_P='$MKDIR_P'
23969 _ACEOF
23970
23971 cat >>$CONFIG_STATUS <<\_ACEOF
23972 # If no file are specified by the user, then we need to provide default
23973 # value.  By we need to know if files were specified by the user.
23974 ac_need_defaults=:
23975 while test $# != 0
23976 do
23977   case $1 in
23978   --*=*)
23979     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23980     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23981     ac_shift=:
23982     ;;
23983   *)
23984     ac_option=$1
23985     ac_optarg=$2
23986     ac_shift=shift
23987     ;;
23988   esac
23989
23990   case $ac_option in
23991   # Handling of the options.
23992   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23993     ac_cs_recheck=: ;;
23994   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23995     echo "$ac_cs_version"; exit ;;
23996   --debug | --debu | --deb | --de | --d | -d )
23997     debug=: ;;
23998   --file | --fil | --fi | --f )
23999     $ac_shift
24000     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24001     ac_need_defaults=false;;
24002   --header | --heade | --head | --hea )
24003     $ac_shift
24004     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24005     ac_need_defaults=false;;
24006   --he | --h)
24007     # Conflict between --help and --header
24008     { echo "$as_me: error: ambiguous option: $1
24009 Try \`$0 --help' for more information." >&2
24010    { (exit 1); exit 1; }; };;
24011   --help | --hel | -h )
24012     echo "$ac_cs_usage"; exit ;;
24013   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24014   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24015     ac_cs_silent=: ;;
24016
24017   # This is an error.
24018   -*) { echo "$as_me: error: unrecognized option: $1
24019 Try \`$0 --help' for more information." >&2
24020    { (exit 1); exit 1; }; } ;;
24021
24022   *) ac_config_targets="$ac_config_targets $1"
24023      ac_need_defaults=false ;;
24024
24025   esac
24026   shift
24027 done
24028
24029 ac_configure_extra_args=
24030
24031 if $ac_cs_silent; then
24032   exec 6>/dev/null
24033   ac_configure_extra_args="$ac_configure_extra_args --silent"
24034 fi
24035
24036 _ACEOF
24037 cat >>$CONFIG_STATUS <<_ACEOF
24038 if \$ac_cs_recheck; then
24039   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24040   CONFIG_SHELL=$SHELL
24041   export CONFIG_SHELL
24042   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24043 fi
24044
24045 _ACEOF
24046 cat >>$CONFIG_STATUS <<\_ACEOF
24047 exec 5>>config.log
24048 {
24049   echo
24050   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24051 ## Running $as_me. ##
24052 _ASBOX
24053   echo "$ac_log"
24054 } >&5
24055
24056 _ACEOF
24057 cat >>$CONFIG_STATUS <<_ACEOF
24058 #
24059 # INIT-COMMANDS
24060 #
24061 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24062
24063
24064 # The HP-UX ksh and POSIX shell print the target directory to stdout
24065 # if CDPATH is set.
24066 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24067
24068 sed_quote_subst='$sed_quote_subst'
24069 double_quote_subst='$double_quote_subst'
24070 delay_variable_subst='$delay_variable_subst'
24071 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24072 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24073 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24074 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24075 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24076 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24077 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24078 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24079 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24080 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24081 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24082 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24083 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24084 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24085 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24086 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24087 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24088 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24089 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24090 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24091 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24092 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24093 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24094 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24095 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24096 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24097 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24098 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24099 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24100 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24101 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24102 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24103 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24104 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24105 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24106 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24107 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24108 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24109 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24110 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24111 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24112 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24113 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24114 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24115 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24116 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24117 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24118 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24119 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"`'
24120 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24121 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24122 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24123 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24124 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24125 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24126 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24127 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24128 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24129 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24130 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24131 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24132 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24133 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24134 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24135 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24136 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24137 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24138 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24139 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24140 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24141 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24142 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24143 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24144 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24145 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24146 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24147 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24148 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24149 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24150 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24151 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
24152 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24153 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24154 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24155 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24156 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24157 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24158 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24159 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24160 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
24161 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24162 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24163 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24164 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24165 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24166 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24167 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24168 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24169 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24170 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24171 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24172 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24173 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24174 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24175 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24176 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24177 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24178 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24179 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24180 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24181 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24182 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24183 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24184 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24185 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24186 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24187 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24188 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24189 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24190 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24191
24192 LTCC='$LTCC'
24193 LTCFLAGS='$LTCFLAGS'
24194 compiler='$compiler_DEFAULT'
24195
24196 # A function that is used when there is no print builtin or printf.
24197 func_fallback_echo ()
24198 {
24199   eval 'cat <<_LTECHO_EOF
24200 \$1
24201 _LTECHO_EOF'
24202 }
24203
24204 # Quote evaled strings.
24205 for var in SHELL \
24206 ECHO \
24207 SED \
24208 GREP \
24209 EGREP \
24210 FGREP \
24211 LD \
24212 NM \
24213 LN_S \
24214 lt_SP2NL \
24215 lt_NL2SP \
24216 reload_flag \
24217 OBJDUMP \
24218 deplibs_check_method \
24219 file_magic_cmd \
24220 AR \
24221 AR_FLAGS \
24222 STRIP \
24223 RANLIB \
24224 CC \
24225 CFLAGS \
24226 compiler \
24227 lt_cv_sys_global_symbol_pipe \
24228 lt_cv_sys_global_symbol_to_cdecl \
24229 lt_cv_sys_global_symbol_to_c_name_address \
24230 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24231 lt_prog_compiler_no_builtin_flag \
24232 lt_prog_compiler_wl \
24233 lt_prog_compiler_pic \
24234 lt_prog_compiler_static \
24235 lt_cv_prog_compiler_c_o \
24236 need_locks \
24237 DSYMUTIL \
24238 NMEDIT \
24239 LIPO \
24240 OTOOL \
24241 OTOOL64 \
24242 shrext_cmds \
24243 export_dynamic_flag_spec \
24244 whole_archive_flag_spec \
24245 compiler_needs_object \
24246 with_gnu_ld \
24247 allow_undefined_flag \
24248 no_undefined_flag \
24249 hardcode_libdir_flag_spec \
24250 hardcode_libdir_flag_spec_ld \
24251 hardcode_libdir_separator \
24252 fix_srcfile_path \
24253 exclude_expsyms \
24254 include_expsyms \
24255 file_list_spec \
24256 variables_saved_for_relink \
24257 libname_spec \
24258 library_names_spec \
24259 soname_spec \
24260 install_override_mode \
24261 finish_eval \
24262 old_striplib \
24263 striplib; do
24264     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24265     *[\\\\\\\`\\"\\\$]*)
24266       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24267       ;;
24268     *)
24269       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24270       ;;
24271     esac
24272 done
24273
24274 # Double-quote double-evaled strings.
24275 for var in reload_cmds \
24276 old_postinstall_cmds \
24277 old_postuninstall_cmds \
24278 old_archive_cmds \
24279 extract_expsyms_cmds \
24280 old_archive_from_new_cmds \
24281 old_archive_from_expsyms_cmds \
24282 archive_cmds \
24283 archive_expsym_cmds \
24284 module_cmds \
24285 module_expsym_cmds \
24286 export_symbols_cmds \
24287 prelink_cmds \
24288 postinstall_cmds \
24289 postuninstall_cmds \
24290 finish_cmds \
24291 sys_lib_search_path_spec \
24292 sys_lib_dlsearch_path_spec; do
24293     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24294     *[\\\\\\\`\\"\\\$]*)
24295       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24296       ;;
24297     *)
24298       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24299       ;;
24300     esac
24301 done
24302
24303 ac_aux_dir='$ac_aux_dir'
24304 xsi_shell='$xsi_shell'
24305 lt_shell_append='$lt_shell_append'
24306
24307 # See if we are running on zsh, and set the options which allow our
24308 # commands through without removal of \ escapes INIT.
24309 if test -n "\${ZSH_VERSION+set}" ; then
24310    setopt NO_GLOB_SUBST
24311 fi
24312
24313
24314     PACKAGE='$PACKAGE'
24315     VERSION='$VERSION'
24316     TIMESTAMP='$TIMESTAMP'
24317     RM='$RM'
24318     ofile='$ofile'
24319
24320
24321
24322
24323 _ACEOF
24324
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24326
24327 # Handling of arguments.
24328 for ac_config_target in $ac_config_targets
24329 do
24330   case $ac_config_target in
24331     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24332     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24333     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24334     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24335     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24336     "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
24337     "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
24338     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24339     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
24340     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24341     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
24342     "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
24343     "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
24344     "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
24345     "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
24346     "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
24347     "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
24348     "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
24349     "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
24350     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24351
24352   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24353 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24354    { (exit 1); exit 1; }; };;
24355   esac
24356 done
24357
24358
24359 # If the user did not use the arguments to specify the items to instantiate,
24360 # then the envvar interface is used.  Set only those that are not.
24361 # We use the long form for the default assignment because of an extremely
24362 # bizarre bug on SunOS 4.1.3.
24363 if $ac_need_defaults; then
24364   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24365   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24366   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24367 fi
24368
24369 # Have a temporary directory for convenience.  Make it in the build tree
24370 # simply because there is no reason against having it here, and in addition,
24371 # creating and moving files from /tmp can sometimes cause problems.
24372 # Hook for its removal unless debugging.
24373 # Note that there is a small window in which the directory will not be cleaned:
24374 # after its creation but before its name has been assigned to `$tmp'.
24375 $debug ||
24376 {
24377   tmp=
24378   trap 'exit_status=$?
24379   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24380 ' 0
24381   trap '{ (exit 1); exit 1; }' 1 2 13 15
24382 }
24383 # Create a (secure) tmp directory for tmp files.
24384
24385 {
24386   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24387   test -n "$tmp" && test -d "$tmp"
24388 }  ||
24389 {
24390   tmp=./conf$$-$RANDOM
24391   (umask 077 && mkdir "$tmp")
24392 } ||
24393 {
24394    echo "$me: cannot create a temporary directory in ." >&2
24395    { (exit 1); exit 1; }
24396 }
24397
24398 #
24399 # Set up the sed scripts for CONFIG_FILES section.
24400 #
24401
24402 # No need to generate the scripts if there are no CONFIG_FILES.
24403 # This happens for instance when ./config.status config.h
24404 if test -n "$CONFIG_FILES"; then
24405
24406 _ACEOF
24407
24408
24409
24410 ac_delim='%!_!# '
24411 for ac_last_try in false false false false false :; do
24412   cat >conf$$subs.sed <<_ACEOF
24413 SHELL!$SHELL$ac_delim
24414 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24415 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24416 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24417 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24418 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24419 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24420 exec_prefix!$exec_prefix$ac_delim
24421 prefix!$prefix$ac_delim
24422 program_transform_name!$program_transform_name$ac_delim
24423 bindir!$bindir$ac_delim
24424 sbindir!$sbindir$ac_delim
24425 libexecdir!$libexecdir$ac_delim
24426 datarootdir!$datarootdir$ac_delim
24427 datadir!$datadir$ac_delim
24428 sysconfdir!$sysconfdir$ac_delim
24429 sharedstatedir!$sharedstatedir$ac_delim
24430 localstatedir!$localstatedir$ac_delim
24431 includedir!$includedir$ac_delim
24432 oldincludedir!$oldincludedir$ac_delim
24433 docdir!$docdir$ac_delim
24434 infodir!$infodir$ac_delim
24435 htmldir!$htmldir$ac_delim
24436 dvidir!$dvidir$ac_delim
24437 pdfdir!$pdfdir$ac_delim
24438 psdir!$psdir$ac_delim
24439 libdir!$libdir$ac_delim
24440 localedir!$localedir$ac_delim
24441 mandir!$mandir$ac_delim
24442 DEFS!$DEFS$ac_delim
24443 ECHO_C!$ECHO_C$ac_delim
24444 ECHO_N!$ECHO_N$ac_delim
24445 ECHO_T!$ECHO_T$ac_delim
24446 LIBS!$LIBS$ac_delim
24447 build_alias!$build_alias$ac_delim
24448 host_alias!$host_alias$ac_delim
24449 target_alias!$target_alias$ac_delim
24450 build!$build$ac_delim
24451 build_cpu!$build_cpu$ac_delim
24452 build_vendor!$build_vendor$ac_delim
24453 build_os!$build_os$ac_delim
24454 host!$host$ac_delim
24455 host_cpu!$host_cpu$ac_delim
24456 host_vendor!$host_vendor$ac_delim
24457 host_os!$host_os$ac_delim
24458 target!$target$ac_delim
24459 target_cpu!$target_cpu$ac_delim
24460 target_vendor!$target_vendor$ac_delim
24461 target_os!$target_os$ac_delim
24462 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24463 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24464 INSTALL_DATA!$INSTALL_DATA$ac_delim
24465 am__isrc!$am__isrc$ac_delim
24466 CYGPATH_W!$CYGPATH_W$ac_delim
24467 PACKAGE!$PACKAGE$ac_delim
24468 VERSION!$VERSION$ac_delim
24469 ACLOCAL!$ACLOCAL$ac_delim
24470 AUTOCONF!$AUTOCONF$ac_delim
24471 AUTOMAKE!$AUTOMAKE$ac_delim
24472 AUTOHEADER!$AUTOHEADER$ac_delim
24473 MAKEINFO!$MAKEINFO$ac_delim
24474 install_sh!$install_sh$ac_delim
24475 STRIP!$STRIP$ac_delim
24476 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24477 mkdir_p!$mkdir_p$ac_delim
24478 AWK!$AWK$ac_delim
24479 SET_MAKE!$SET_MAKE$ac_delim
24480 am__leading_dot!$am__leading_dot$ac_delim
24481 AMTAR!$AMTAR$ac_delim
24482 am__tar!$am__tar$ac_delim
24483 am__untar!$am__untar$ac_delim
24484 CC!$CC$ac_delim
24485 CFLAGS!$CFLAGS$ac_delim
24486 LDFLAGS!$LDFLAGS$ac_delim
24487 CPPFLAGS!$CPPFLAGS$ac_delim
24488 ac_ct_CC!$ac_ct_CC$ac_delim
24489 EXEEXT!$EXEEXT$ac_delim
24490 OBJEXT!$OBJEXT$ac_delim
24491 DEPDIR!$DEPDIR$ac_delim
24492 am__include!$am__include$ac_delim
24493 am__quote!$am__quote$ac_delim
24494 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24495 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24496 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24497 CCDEPMODE!$CCDEPMODE$ac_delim
24498 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24499 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24500 CPP!$CPP$ac_delim
24501 LN_S!$LN_S$ac_delim
24502 LIBTOOL!$LIBTOOL$ac_delim
24503 SED!$SED$ac_delim
24504 GREP!$GREP$ac_delim
24505 EGREP!$EGREP$ac_delim
24506 FGREP!$FGREP$ac_delim
24507 LD!$LD$ac_delim
24508 DUMPBIN!$DUMPBIN$ac_delim
24509 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
24510 _ACEOF
24511
24512   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24513     break
24514   elif $ac_last_try; then
24515     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24516 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24517    { (exit 1); exit 1; }; }
24518   else
24519     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24520   fi
24521 done
24522
24523 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24524 if test -n "$ac_eof"; then
24525   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24526   ac_eof=`expr $ac_eof + 1`
24527 fi
24528
24529 cat >>$CONFIG_STATUS <<_ACEOF
24530 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24532 _ACEOF
24533 sed '
24534 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24535 s/^/s,@/; s/!/@,|#_!!_#|/
24536 :n
24537 t n
24538 s/'"$ac_delim"'$/,g/; t
24539 s/$/\\/; p
24540 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24541 ' >>$CONFIG_STATUS <conf$$subs.sed
24542 rm -f conf$$subs.sed
24543 cat >>$CONFIG_STATUS <<_ACEOF
24544 CEOF$ac_eof
24545 _ACEOF
24546
24547
24548 ac_delim='%!_!# '
24549 for ac_last_try in false false false false false :; do
24550   cat >conf$$subs.sed <<_ACEOF
24551 NM!$NM$ac_delim
24552 OBJDUMP!$OBJDUMP$ac_delim
24553 AR!$AR$ac_delim
24554 RANLIB!$RANLIB$ac_delim
24555 DSYMUTIL!$DSYMUTIL$ac_delim
24556 NMEDIT!$NMEDIT$ac_delim
24557 LIPO!$LIPO$ac_delim
24558 OTOOL!$OTOOL$ac_delim
24559 OTOOL64!$OTOOL64$ac_delim
24560 PURECOV!$PURECOV$ac_delim
24561 PURIFY!$PURIFY$ac_delim
24562 JAVAC!$JAVAC$ac_delim
24563 JAVAH!$JAVAH$ac_delim
24564 JAVADOC!$JAVADOC$ac_delim
24565 JAVA_TRUE!$JAVA_TRUE$ac_delim
24566 JAVA_FALSE!$JAVA_FALSE$ac_delim
24567 JAVA_INCLUDES!$JAVA_INCLUDES$ac_delim
24568 JAVAROOT!$JAVAROOT$ac_delim
24569 SAMPLE_TRUE!$SAMPLE_TRUE$ac_delim
24570 SAMPLE_FALSE!$SAMPLE_FALSE$ac_delim
24571 LIB_SOCKET!$LIB_SOCKET$ac_delim
24572 SASL_DB_UTILS!$SASL_DB_UTILS$ac_delim
24573 SASL_DB_MANS!$SASL_DB_MANS$ac_delim
24574 SASL_DB_BACKEND!$SASL_DB_BACKEND$ac_delim
24575 SASL_DB_BACKEND_STATIC!$SASL_DB_BACKEND_STATIC$ac_delim
24576 SASL_DB_INC!$SASL_DB_INC$ac_delim
24577 SASL_DB_LIB!$SASL_DB_LIB$ac_delim
24578 NO_SASL_DB_MANS_TRUE!$NO_SASL_DB_MANS_TRUE$ac_delim
24579 NO_SASL_DB_MANS_FALSE!$NO_SASL_DB_MANS_FALSE$ac_delim
24580 SASL_DL_LIB!$SASL_DL_LIB$ac_delim
24581 SASLAUTHD_TRUE!$SASLAUTHD_TRUE$ac_delim
24582 SASLAUTHD_FALSE!$SASLAUTHD_FALSE$ac_delim
24583 PWCHECKMETH!$PWCHECKMETH$ac_delim
24584 PWCHECK_TRUE!$PWCHECK_TRUE$ac_delim
24585 PWCHECK_FALSE!$PWCHECK_FALSE$ac_delim
24586 IPCTYPE!$IPCTYPE$ac_delim
24587 LIB_DOOR!$LIB_DOOR$ac_delim
24588 CMU_LIB_SUBDIR!$CMU_LIB_SUBDIR$ac_delim
24589 LIB_DES!$LIB_DES$ac_delim
24590 OTP_LIBS!$OTP_LIBS$ac_delim
24591 SRP_LIBS!$SRP_LIBS$ac_delim
24592 SASL_KRB_LIB!$SASL_KRB_LIB$ac_delim
24593 LIB_CRYPT!$LIB_CRYPT$ac_delim
24594 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
24595 GSSAPIBASE_LIBS!$GSSAPIBASE_LIBS$ac_delim
24596 PLAIN_LIBS!$PLAIN_LIBS$ac_delim
24597 NTLM_LIBS!$NTLM_LIBS$ac_delim
24598 PASSDSS_LIBS!$PASSDSS_LIBS$ac_delim
24599 LIB_MYSQL!$LIB_MYSQL$ac_delim
24600 LIB_PGSQL!$LIB_PGSQL$ac_delim
24601 LIB_SQLITE!$LIB_SQLITE$ac_delim
24602 LIB_LDAP!$LIB_LDAP$ac_delim
24603 SASL_MECHS!$SASL_MECHS$ac_delim
24604 SASL_STATIC_SRCS!$SASL_STATIC_SRCS$ac_delim
24605 SASL_STATIC_OBJS!$SASL_STATIC_OBJS$ac_delim
24606 SASL_STATIC_LIBS!$SASL_STATIC_LIBS$ac_delim
24607 plugindir!$plugindir$ac_delim
24608 configdir!$configdir$ac_delim
24609 MACOSX_TRUE!$MACOSX_TRUE$ac_delim
24610 MACOSX_FALSE!$MACOSX_FALSE$ac_delim
24611 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
24612 SFIO_INC_FLAGS!$SFIO_INC_FLAGS$ac_delim
24613 SFIO_LIB_FLAGS!$SFIO_LIB_FLAGS$ac_delim
24614 SMTPTEST_PROGRAM!$SMTPTEST_PROGRAM$ac_delim
24615 SASL_UTIL_LIBS_EXTRA!$SASL_UTIL_LIBS_EXTRA$ac_delim
24616 SASL_UTIL_HEADERS_EXTRA!$SASL_UTIL_HEADERS_EXTRA$ac_delim
24617 LIBOBJS!$LIBOBJS$ac_delim
24618 GETSUBOPT!$GETSUBOPT$ac_delim
24619 SNPRINTFOBJS!$SNPRINTFOBJS$ac_delim
24620 LTSNPRINTFOBJS!$LTSNPRINTFOBJS$ac_delim
24621 GETADDRINFOOBJS!$GETADDRINFOOBJS$ac_delim
24622 LTGETADDRINFOOBJS!$LTGETADDRINFOOBJS$ac_delim
24623 GETNAMEINFOOBJS!$GETNAMEINFOOBJS$ac_delim
24624 LTGETNAMEINFOOBJS!$LTGETNAMEINFOOBJS$ac_delim
24625 LTLIBOBJS!$LTLIBOBJS$ac_delim
24626 DIRS!$DIRS$ac_delim
24627 subdirs!$subdirs$ac_delim
24628 _ACEOF
24629
24630   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
24631     break
24632   elif $ac_last_try; then
24633     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24634 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24635    { (exit 1); exit 1; }; }
24636   else
24637     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24638   fi
24639 done
24640
24641 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24642 if test -n "$ac_eof"; then
24643   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24644   ac_eof=`expr $ac_eof + 1`
24645 fi
24646
24647 cat >>$CONFIG_STATUS <<_ACEOF
24648 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24650 _ACEOF
24651 sed '
24652 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24653 s/^/s,@/; s/!/@,|#_!!_#|/
24654 :n
24655 t n
24656 s/'"$ac_delim"'$/,g/; t
24657 s/$/\\/; p
24658 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24659 ' >>$CONFIG_STATUS <conf$$subs.sed
24660 rm -f conf$$subs.sed
24661 cat >>$CONFIG_STATUS <<_ACEOF
24662 :end
24663 s/|#_!!_#|//g
24664 CEOF$ac_eof
24665 _ACEOF
24666
24667
24668 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24669 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24670 # trailing colons and then remove the whole line if VPATH becomes empty
24671 # (actually we leave an empty line to preserve line numbers).
24672 if test "x$srcdir" = x.; then
24673   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24674 s/:*\$(srcdir):*/:/
24675 s/:*\${srcdir}:*/:/
24676 s/:*@srcdir@:*/:/
24677 s/^\([^=]*=[     ]*\):*/\1/
24678 s/:*$//
24679 s/^[^=]*=[       ]*$//
24680 }'
24681 fi
24682
24683 cat >>$CONFIG_STATUS <<\_ACEOF
24684 fi # test -n "$CONFIG_FILES"
24685
24686
24687 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24688 do
24689   case $ac_tag in
24690   :[FHLC]) ac_mode=$ac_tag; continue;;
24691   esac
24692   case $ac_mode$ac_tag in
24693   :[FHL]*:*);;
24694   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24695 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24696    { (exit 1); exit 1; }; };;
24697   :[FH]-) ac_tag=-:-;;
24698   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24699   esac
24700   ac_save_IFS=$IFS
24701   IFS=:
24702   set x $ac_tag
24703   IFS=$ac_save_IFS
24704   shift
24705   ac_file=$1
24706   shift
24707
24708   case $ac_mode in
24709   :L) ac_source=$1;;
24710   :[FH])
24711     ac_file_inputs=
24712     for ac_f
24713     do
24714       case $ac_f in
24715       -) ac_f="$tmp/stdin";;
24716       *) # Look for the file first in the build tree, then in the source tree
24717          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24718          # because $ac_f cannot contain `:'.
24719          test -f "$ac_f" ||
24720            case $ac_f in
24721            [\\/$]*) false;;
24722            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24723            esac ||
24724            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24725 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24726    { (exit 1); exit 1; }; };;
24727       esac
24728       ac_file_inputs="$ac_file_inputs $ac_f"
24729     done
24730
24731     # Let's still pretend it is `configure' which instantiates (i.e., don't
24732     # use $as_me), people would be surprised to read:
24733     #    /* config.h.  Generated by config.status.  */
24734     configure_input="Generated from "`IFS=:
24735           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24736     if test x"$ac_file" != x-; then
24737       configure_input="$ac_file.  $configure_input"
24738       { echo "$as_me:$LINENO: creating $ac_file" >&5
24739 echo "$as_me: creating $ac_file" >&6;}
24740     fi
24741
24742     case $ac_tag in
24743     *:-:* | *:-) cat >"$tmp/stdin";;
24744     esac
24745     ;;
24746   esac
24747
24748   ac_dir=`$as_dirname -- "$ac_file" ||
24749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24750          X"$ac_file" : 'X\(//\)[^/]' \| \
24751          X"$ac_file" : 'X\(//\)$' \| \
24752          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24753 echo X"$ac_file" |
24754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24755             s//\1/
24756             q
24757           }
24758           /^X\(\/\/\)[^/].*/{
24759             s//\1/
24760             q
24761           }
24762           /^X\(\/\/\)$/{
24763             s//\1/
24764             q
24765           }
24766           /^X\(\/\).*/{
24767             s//\1/
24768             q
24769           }
24770           s/.*/./; q'`
24771   { as_dir="$ac_dir"
24772   case $as_dir in #(
24773   -*) as_dir=./$as_dir;;
24774   esac
24775   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24776     as_dirs=
24777     while :; do
24778       case $as_dir in #(
24779       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24780       *) as_qdir=$as_dir;;
24781       esac
24782       as_dirs="'$as_qdir' $as_dirs"
24783       as_dir=`$as_dirname -- "$as_dir" ||
24784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24785          X"$as_dir" : 'X\(//\)[^/]' \| \
24786          X"$as_dir" : 'X\(//\)$' \| \
24787          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24788 echo X"$as_dir" |
24789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24790             s//\1/
24791             q
24792           }
24793           /^X\(\/\/\)[^/].*/{
24794             s//\1/
24795             q
24796           }
24797           /^X\(\/\/\)$/{
24798             s//\1/
24799             q
24800           }
24801           /^X\(\/\).*/{
24802             s//\1/
24803             q
24804           }
24805           s/.*/./; q'`
24806       test -d "$as_dir" && break
24807     done
24808     test -z "$as_dirs" || eval "mkdir $as_dirs"
24809   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24810 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24811    { (exit 1); exit 1; }; }; }
24812   ac_builddir=.
24813
24814 case "$ac_dir" in
24815 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24816 *)
24817   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24818   # A ".." for each directory in $ac_dir_suffix.
24819   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24820   case $ac_top_builddir_sub in
24821   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24822   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24823   esac ;;
24824 esac
24825 ac_abs_top_builddir=$ac_pwd
24826 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24827 # for backward compatibility:
24828 ac_top_builddir=$ac_top_build_prefix
24829
24830 case $srcdir in
24831   .)  # We are building in place.
24832     ac_srcdir=.
24833     ac_top_srcdir=$ac_top_builddir_sub
24834     ac_abs_top_srcdir=$ac_pwd ;;
24835   [\\/]* | ?:[\\/]* )  # Absolute name.
24836     ac_srcdir=$srcdir$ac_dir_suffix;
24837     ac_top_srcdir=$srcdir
24838     ac_abs_top_srcdir=$srcdir ;;
24839   *) # Relative name.
24840     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24841     ac_top_srcdir=$ac_top_build_prefix$srcdir
24842     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24843 esac
24844 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24845
24846
24847   case $ac_mode in
24848   :F)
24849   #
24850   # CONFIG_FILE
24851   #
24852
24853   case $INSTALL in
24854   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24855   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24856   esac
24857   ac_MKDIR_P=$MKDIR_P
24858   case $MKDIR_P in
24859   [\\/$]* | ?:[\\/]* ) ;;
24860   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24861   esac
24862 _ACEOF
24863
24864 cat >>$CONFIG_STATUS <<\_ACEOF
24865 # If the template does not know about datarootdir, expand it.
24866 # FIXME: This hack should be removed a few years after 2.60.
24867 ac_datarootdir_hack=; ac_datarootdir_seen=
24868
24869 case `sed -n '/datarootdir/ {
24870   p
24871   q
24872 }
24873 /@datadir@/p
24874 /@docdir@/p
24875 /@infodir@/p
24876 /@localedir@/p
24877 /@mandir@/p
24878 ' $ac_file_inputs` in
24879 *datarootdir*) ac_datarootdir_seen=yes;;
24880 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24881   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24882 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24883 _ACEOF
24884 cat >>$CONFIG_STATUS <<_ACEOF
24885   ac_datarootdir_hack='
24886   s&@datadir@&$datadir&g
24887   s&@docdir@&$docdir&g
24888   s&@infodir@&$infodir&g
24889   s&@localedir@&$localedir&g
24890   s&@mandir@&$mandir&g
24891     s&\\\${datarootdir}&$datarootdir&g' ;;
24892 esac
24893 _ACEOF
24894
24895 # Neutralize VPATH when `$srcdir' = `.'.
24896 # Shell code in configure.ac might set extrasub.
24897 # FIXME: do we really want to maintain this feature?
24898 cat >>$CONFIG_STATUS <<_ACEOF
24899   sed "$ac_vpsub
24900 $extrasub
24901 _ACEOF
24902 cat >>$CONFIG_STATUS <<\_ACEOF
24903 :t
24904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24905 s&@configure_input@&$configure_input&;t t
24906 s&@top_builddir@&$ac_top_builddir_sub&;t t
24907 s&@srcdir@&$ac_srcdir&;t t
24908 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24909 s&@top_srcdir@&$ac_top_srcdir&;t t
24910 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24911 s&@builddir@&$ac_builddir&;t t
24912 s&@abs_builddir@&$ac_abs_builddir&;t t
24913 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24914 s&@INSTALL@&$ac_INSTALL&;t t
24915 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24916 $ac_datarootdir_hack
24917 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24918
24919 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24920   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24921   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24922   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24923 which seems to be undefined.  Please make sure it is defined." >&5
24924 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24925 which seems to be undefined.  Please make sure it is defined." >&2;}
24926
24927   rm -f "$tmp/stdin"
24928   case $ac_file in
24929   -) cat "$tmp/out"; rm -f "$tmp/out";;
24930   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24931   esac
24932  ;;
24933   :H)
24934   #
24935   # CONFIG_HEADER
24936   #
24937 _ACEOF
24938
24939 # Transform confdefs.h into a sed script `conftest.defines', that
24940 # substitutes the proper values into config.h.in to produce config.h.
24941 rm -f conftest.defines conftest.tail
24942 # First, append a space to every undef/define line, to ease matching.
24943 echo 's/$/ /' >conftest.defines
24944 # Then, protect against being on the right side of a sed subst, or in
24945 # an unquoted here document, in config.status.  If some macros were
24946 # called several times there might be several #defines for the same
24947 # symbol, which is useless.  But do not sort them, since the last
24948 # AC_DEFINE must be honored.
24949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24950 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24951 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24952 # PARAMS is the parameter list in the macro definition--in most cases, it's
24953 # just an empty string.
24954 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24955 ac_dB='\\)[      (].*,\\1define\\2'
24956 ac_dC=' '
24957 ac_dD=' ,'
24958
24959 uniq confdefs.h |
24960   sed -n '
24961         t rset
24962         :rset
24963         s/^[     ]*#[    ]*define[       ][      ]*//
24964         t ok
24965         d
24966         :ok
24967         s/[\\&,]/\\&/g
24968         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24969         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24970   ' >>conftest.defines
24971
24972 # Remove the space that was appended to ease matching.
24973 # Then replace #undef with comments.  This is necessary, for
24974 # example, in the case of _POSIX_SOURCE, which is predefined and required
24975 # on some systems where configure will not decide to define it.
24976 # (The regexp can be short, since the line contains either #define or #undef.)
24977 echo 's/ $//
24978 s,^[     #]*u.*,/* & */,' >>conftest.defines
24979
24980 # Break up conftest.defines:
24981 ac_max_sed_lines=50
24982
24983 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24984 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24985 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24986 # et cetera.
24987 ac_in='$ac_file_inputs'
24988 ac_out='"$tmp/out1"'
24989 ac_nxt='"$tmp/out2"'
24990
24991 while :
24992 do
24993   # Write a here document:
24994     cat >>$CONFIG_STATUS <<_ACEOF
24995     # First, check the format of the line:
24996     cat >"\$tmp/defines.sed" <<\\CEOF
24997 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24998 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24999 b
25000 :def
25001 _ACEOF
25002   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25003   echo 'CEOF
25004     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25005   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25006   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25007   grep . conftest.tail >/dev/null || break
25008   rm -f conftest.defines
25009   mv conftest.tail conftest.defines
25010 done
25011 rm -f conftest.defines conftest.tail
25012
25013 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25014 cat >>$CONFIG_STATUS <<\_ACEOF
25015   if test x"$ac_file" != x-; then
25016     echo "/* $configure_input  */" >"$tmp/config.h"
25017     cat "$ac_result" >>"$tmp/config.h"
25018     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25019       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25020 echo "$as_me: $ac_file is unchanged" >&6;}
25021     else
25022       rm -f $ac_file
25023       mv "$tmp/config.h" $ac_file
25024     fi
25025   else
25026     echo "/* $configure_input  */"
25027     cat "$ac_result"
25028   fi
25029   rm -f "$tmp/out12"
25030 # Compute $ac_file's index in $config_headers.
25031 _am_stamp_count=1
25032 for _am_header in $config_headers :; do
25033   case $_am_header in
25034     $ac_file | $ac_file:* )
25035       break ;;
25036     * )
25037       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25038   esac
25039 done
25040 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25041 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25042          X$ac_file : 'X\(//\)[^/]' \| \
25043          X$ac_file : 'X\(//\)$' \| \
25044          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25045 echo X$ac_file |
25046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25047             s//\1/
25048             q
25049           }
25050           /^X\(\/\/\)[^/].*/{
25051             s//\1/
25052             q
25053           }
25054           /^X\(\/\/\)$/{
25055             s//\1/
25056             q
25057           }
25058           /^X\(\/\).*/{
25059             s//\1/
25060             q
25061           }
25062           s/.*/./; q'`/stamp-h$_am_stamp_count
25063  ;;
25064
25065   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25066 echo "$as_me: executing $ac_file commands" >&6;}
25067  ;;
25068   esac
25069
25070
25071   case $ac_file$ac_mode in
25072     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25073   # Strip MF so we end up with the name of the file.
25074   mf=`echo "$mf" | sed -e 's/:.*$//'`
25075   # Check whether this is an Automake generated Makefile or not.
25076   # We used to match only the files named `Makefile.in', but
25077   # some people rename them; so instead we look at the file content.
25078   # Grep'ing the first line is not enough: some people post-process
25079   # each Makefile.in and add a new line on top of each file to say so.
25080   # Grep'ing the whole file is not good either: AIX grep has a line
25081   # limit of 2048, but all sed's we know have understand at least 4000.
25082   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25083     dirpart=`$as_dirname -- "$mf" ||
25084 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25085          X"$mf" : 'X\(//\)[^/]' \| \
25086          X"$mf" : 'X\(//\)$' \| \
25087          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25088 echo X"$mf" |
25089     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25090             s//\1/
25091             q
25092           }
25093           /^X\(\/\/\)[^/].*/{
25094             s//\1/
25095             q
25096           }
25097           /^X\(\/\/\)$/{
25098             s//\1/
25099             q
25100           }
25101           /^X\(\/\).*/{
25102             s//\1/
25103             q
25104           }
25105           s/.*/./; q'`
25106   else
25107     continue
25108   fi
25109   # Extract the definition of DEPDIR, am__include, and am__quote
25110   # from the Makefile without running `make'.
25111   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25112   test -z "$DEPDIR" && continue
25113   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25114   test -z "am__include" && continue
25115   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25116   # When using ansi2knr, U may be empty or an underscore; expand it
25117   U=`sed -n 's/^U = //p' < "$mf"`
25118   # Find all dependency output files, they are included files with
25119   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25120   # simplest approach to changing $(DEPDIR) to its actual value in the
25121   # expansion.
25122   for file in `sed -n "
25123     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25124        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25125     # Make sure the directory exists.
25126     test -f "$dirpart/$file" && continue
25127     fdir=`$as_dirname -- "$file" ||
25128 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25129          X"$file" : 'X\(//\)[^/]' \| \
25130          X"$file" : 'X\(//\)$' \| \
25131          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25132 echo X"$file" |
25133     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25134             s//\1/
25135             q
25136           }
25137           /^X\(\/\/\)[^/].*/{
25138             s//\1/
25139             q
25140           }
25141           /^X\(\/\/\)$/{
25142             s//\1/
25143             q
25144           }
25145           /^X\(\/\).*/{
25146             s//\1/
25147             q
25148           }
25149           s/.*/./; q'`
25150     { as_dir=$dirpart/$fdir
25151   case $as_dir in #(
25152   -*) as_dir=./$as_dir;;
25153   esac
25154   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25155     as_dirs=
25156     while :; do
25157       case $as_dir in #(
25158       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25159       *) as_qdir=$as_dir;;
25160       esac
25161       as_dirs="'$as_qdir' $as_dirs"
25162       as_dir=`$as_dirname -- "$as_dir" ||
25163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25164          X"$as_dir" : 'X\(//\)[^/]' \| \
25165          X"$as_dir" : 'X\(//\)$' \| \
25166          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25167 echo X"$as_dir" |
25168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25169             s//\1/
25170             q
25171           }
25172           /^X\(\/\/\)[^/].*/{
25173             s//\1/
25174             q
25175           }
25176           /^X\(\/\/\)$/{
25177             s//\1/
25178             q
25179           }
25180           /^X\(\/\).*/{
25181             s//\1/
25182             q
25183           }
25184           s/.*/./; q'`
25185       test -d "$as_dir" && break
25186     done
25187     test -z "$as_dirs" || eval "mkdir $as_dirs"
25188   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25189 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25190    { (exit 1); exit 1; }; }; }
25191     # echo "creating $dirpart/$file"
25192     echo '# dummy' > "$dirpart/$file"
25193   done
25194 done
25195  ;;
25196     "libtool":C)
25197
25198     # See if we are running on zsh, and set the options which allow our
25199     # commands through without removal of \ escapes.
25200     if test -n "${ZSH_VERSION+set}" ; then
25201       setopt NO_GLOB_SUBST
25202     fi
25203
25204     cfgfile="${ofile}T"
25205     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25206     $RM "$cfgfile"
25207
25208     cat <<_LT_EOF >> "$cfgfile"
25209 #! $SHELL
25210
25211 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25212 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25214 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25215 #
25216 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25217 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
25218 #                 Inc.
25219 #   Written by Gordon Matzigkeit, 1996
25220 #
25221 #   This file is part of GNU Libtool.
25222 #
25223 # GNU Libtool is free software; you can redistribute it and/or
25224 # modify it under the terms of the GNU General Public License as
25225 # published by the Free Software Foundation; either version 2 of
25226 # the License, or (at your option) any later version.
25227 #
25228 # As a special exception to the GNU General Public License,
25229 # if you distribute this file as part of a program or library that
25230 # is built using GNU Libtool, you may include this file under the
25231 # same distribution terms that you use for the rest of that program.
25232 #
25233 # GNU Libtool is distributed in the hope that it will be useful,
25234 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25235 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25236 # GNU General Public License for more details.
25237 #
25238 # You should have received a copy of the GNU General Public License
25239 # along with GNU Libtool; see the file COPYING.  If not, a copy
25240 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25241 # obtained by writing to the Free Software Foundation, Inc.,
25242 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25243
25244
25245 # The names of the tagged configurations supported by this script.
25246 available_tags=""
25247
25248 # ### BEGIN LIBTOOL CONFIG
25249
25250 # Whether or not to build static libraries.
25251 build_old_libs=$enable_static
25252
25253 # Which release of libtool.m4 was used?
25254 macro_version=$macro_version
25255 macro_revision=$macro_revision
25256
25257 # Whether or not to build shared libraries.
25258 build_libtool_libs=$enable_shared
25259
25260 # What type of objects to build.
25261 pic_mode=$pic_mode
25262
25263 # Whether or not to optimize for fast installation.
25264 fast_install=$enable_fast_install
25265
25266 # Shell to use when invoking shell scripts.
25267 SHELL=$lt_SHELL
25268
25269 # An echo program that protects backslashes.
25270 ECHO=$lt_ECHO
25271
25272 # The host system.
25273 host_alias=$host_alias
25274 host=$host
25275 host_os=$host_os
25276
25277 # The build system.
25278 build_alias=$build_alias
25279 build=$build
25280 build_os=$build_os
25281
25282 # A sed program that does not truncate output.
25283 SED=$lt_SED
25284
25285 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25286 Xsed="\$SED -e 1s/^X//"
25287
25288 # A grep program that handles long lines.
25289 GREP=$lt_GREP
25290
25291 # An ERE matcher.
25292 EGREP=$lt_EGREP
25293
25294 # A literal string matcher.
25295 FGREP=$lt_FGREP
25296
25297 # A BSD- or MS-compatible name lister.
25298 NM=$lt_NM
25299
25300 # Whether we need soft or hard links.
25301 LN_S=$lt_LN_S
25302
25303 # What is the maximum length of a command?
25304 max_cmd_len=$max_cmd_len
25305
25306 # Object file suffix (normally "o").
25307 objext=$ac_objext
25308
25309 # Executable file suffix (normally "").
25310 exeext=$exeext
25311
25312 # whether the shell understands "unset".
25313 lt_unset=$lt_unset
25314
25315 # turn spaces into newlines.
25316 SP2NL=$lt_lt_SP2NL
25317
25318 # turn newlines into spaces.
25319 NL2SP=$lt_lt_NL2SP
25320
25321 # An object symbol dumper.
25322 OBJDUMP=$lt_OBJDUMP
25323
25324 # Method to check whether dependent libraries are shared objects.
25325 deplibs_check_method=$lt_deplibs_check_method
25326
25327 # Command to use when deplibs_check_method == "file_magic".
25328 file_magic_cmd=$lt_file_magic_cmd
25329
25330 # The archiver.
25331 AR=$lt_AR
25332 AR_FLAGS=$lt_AR_FLAGS
25333
25334 # A symbol stripping program.
25335 STRIP=$lt_STRIP
25336
25337 # Commands used to install an old-style archive.
25338 RANLIB=$lt_RANLIB
25339 old_postinstall_cmds=$lt_old_postinstall_cmds
25340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25341
25342 # Whether to use a lock for old archive extraction.
25343 lock_old_archive_extraction=$lock_old_archive_extraction
25344
25345 # A C compiler.
25346 LTCC=$lt_CC
25347
25348 # LTCC compiler flags.
25349 LTCFLAGS=$lt_CFLAGS
25350
25351 # Take the output of nm and produce a listing of raw symbols and C names.
25352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25353
25354 # Transform the output of nm in a proper C declaration.
25355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25356
25357 # Transform the output of nm in a C name address pair.
25358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25359
25360 # Transform the output of nm in a C name address pair when lib prefix is needed.
25361 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25362
25363 # The name of the directory that contains temporary libtool files.
25364 objdir=$objdir
25365
25366 # Used to examine libraries when file_magic_cmd begins with "file".
25367 MAGIC_CMD=$MAGIC_CMD
25368
25369 # Must we lock files when doing compilation?
25370 need_locks=$lt_need_locks
25371
25372 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25373 DSYMUTIL=$lt_DSYMUTIL
25374
25375 # Tool to change global to local symbols on Mac OS X.
25376 NMEDIT=$lt_NMEDIT
25377
25378 # Tool to manipulate fat objects and archives on Mac OS X.
25379 LIPO=$lt_LIPO
25380
25381 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25382 OTOOL=$lt_OTOOL
25383
25384 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25385 OTOOL64=$lt_OTOOL64
25386
25387 # Old archive suffix (normally "a").
25388 libext=$libext
25389
25390 # Shared library suffix (normally ".so").
25391 shrext_cmds=$lt_shrext_cmds
25392
25393 # The commands to extract the exported symbol list from a shared archive.
25394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25395
25396 # Variables whose values should be saved in libtool wrapper scripts and
25397 # restored at link time.
25398 variables_saved_for_relink=$lt_variables_saved_for_relink
25399
25400 # Do we need the "lib" prefix for modules?
25401 need_lib_prefix=$need_lib_prefix
25402
25403 # Do we need a version for libraries?
25404 need_version=$need_version
25405
25406 # Library versioning type.
25407 version_type=$version_type
25408
25409 # Shared library runtime path variable.
25410 runpath_var=$runpath_var
25411
25412 # Shared library path variable.
25413 shlibpath_var=$shlibpath_var
25414
25415 # Is shlibpath searched before the hard-coded library search path?
25416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25417
25418 # Format of library name prefix.
25419 libname_spec=$lt_libname_spec
25420
25421 # List of archive names.  First name is the real one, the rest are links.
25422 # The last name is the one that the linker finds with -lNAME
25423 library_names_spec=$lt_library_names_spec
25424
25425 # The coded name of the library, if different from the real name.
25426 soname_spec=$lt_soname_spec
25427
25428 # Permission mode override for installation of shared libraries.
25429 install_override_mode=$lt_install_override_mode
25430
25431 # Command to use after installation of a shared archive.
25432 postinstall_cmds=$lt_postinstall_cmds
25433
25434 # Command to use after uninstallation of a shared archive.
25435 postuninstall_cmds=$lt_postuninstall_cmds
25436
25437 # Commands used to finish a libtool library installation in a directory.
25438 finish_cmds=$lt_finish_cmds
25439
25440 # As "finish_cmds", except a single script fragment to be evaled but
25441 # not shown.
25442 finish_eval=$lt_finish_eval
25443
25444 # Whether we should hardcode library paths into libraries.
25445 hardcode_into_libs=$hardcode_into_libs
25446
25447 # Compile-time system search path for libraries.
25448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25449
25450 # Run-time system search path for libraries.
25451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25452
25453 # Whether dlopen is supported.
25454 dlopen_support=$enable_dlopen
25455
25456 # Whether dlopen of programs is supported.
25457 dlopen_self=$enable_dlopen_self
25458
25459 # Whether dlopen of statically linked programs is supported.
25460 dlopen_self_static=$enable_dlopen_self_static
25461
25462 # Commands to strip libraries.
25463 old_striplib=$lt_old_striplib
25464 striplib=$lt_striplib
25465
25466
25467 # The linker used to build libraries.
25468 LD=$lt_LD
25469
25470 # How to create reloadable object files.
25471 reload_flag=$lt_reload_flag
25472 reload_cmds=$lt_reload_cmds
25473
25474 # Commands used to build an old-style archive.
25475 old_archive_cmds=$lt_old_archive_cmds
25476
25477 # A language specific compiler.
25478 CC=$lt_compiler
25479
25480 # Is the compiler the GNU compiler?
25481 with_gcc=$GCC
25482
25483 # Compiler flag to turn off builtin functions.
25484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25485
25486 # How to pass a linker flag through the compiler.
25487 wl=$lt_lt_prog_compiler_wl
25488
25489 # Additional compiler flags for building library objects.
25490 pic_flag=$lt_lt_prog_compiler_pic
25491
25492 # Compiler flag to prevent dynamic linking.
25493 link_static_flag=$lt_lt_prog_compiler_static
25494
25495 # Does compiler simultaneously support -c and -o options?
25496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25497
25498 # Whether or not to add -lc for building shared libraries.
25499 build_libtool_need_lc=$archive_cmds_need_lc
25500
25501 # Whether or not to disallow shared libs when runtime libs are static.
25502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25503
25504 # Compiler flag to allow reflexive dlopens.
25505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25506
25507 # Compiler flag to generate shared objects directly from archives.
25508 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25509
25510 # Whether the compiler copes with passing no objects directly.
25511 compiler_needs_object=$lt_compiler_needs_object
25512
25513 # Create an old-style archive from a shared archive.
25514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25515
25516 # Create a temporary old-style archive to link instead of a shared archive.
25517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25518
25519 # Commands used to build a shared archive.
25520 archive_cmds=$lt_archive_cmds
25521 archive_expsym_cmds=$lt_archive_expsym_cmds
25522
25523 # Commands used to build a loadable module if different from building
25524 # a shared archive.
25525 module_cmds=$lt_module_cmds
25526 module_expsym_cmds=$lt_module_expsym_cmds
25527
25528 # Whether we are building with GNU ld or not.
25529 with_gnu_ld=$lt_with_gnu_ld
25530
25531 # Flag that allows shared libraries with undefined symbols to be built.
25532 allow_undefined_flag=$lt_allow_undefined_flag
25533
25534 # Flag that enforces no undefined symbols.
25535 no_undefined_flag=$lt_no_undefined_flag
25536
25537 # Flag to hardcode \$libdir into a binary during linking.
25538 # This must work even if \$libdir does not exist
25539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25540
25541 # If ld is used when linking, flag to hardcode \$libdir into a binary
25542 # during linking.  This must work even if \$libdir does not exist.
25543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25544
25545 # Whether we need a single "-rpath" flag with a separated argument.
25546 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25547
25548 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25549 # DIR into the resulting binary.
25550 hardcode_direct=$hardcode_direct
25551
25552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25553 # DIR into the resulting binary and the resulting library dependency is
25554 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25555 # library is relocated.
25556 hardcode_direct_absolute=$hardcode_direct_absolute
25557
25558 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25559 # into the resulting binary.
25560 hardcode_minus_L=$hardcode_minus_L
25561
25562 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25563 # into the resulting binary.
25564 hardcode_shlibpath_var=$hardcode_shlibpath_var
25565
25566 # Set to "yes" if building a shared library automatically hardcodes DIR
25567 # into the library and all subsequent libraries and executables linked
25568 # against it.
25569 hardcode_automatic=$hardcode_automatic
25570
25571 # Set to yes if linker adds runtime paths of dependent libraries
25572 # to runtime path list.
25573 inherit_rpath=$inherit_rpath
25574
25575 # Whether libtool must link a program against all its dependency libraries.
25576 link_all_deplibs=$link_all_deplibs
25577
25578 # Fix the shell variable \$srcfile for the compiler.
25579 fix_srcfile_path=$lt_fix_srcfile_path
25580
25581 # Set to "yes" if exported symbols are required.
25582 always_export_symbols=$always_export_symbols
25583
25584 # The commands to list exported symbols.
25585 export_symbols_cmds=$lt_export_symbols_cmds
25586
25587 # Symbols that should not be listed in the preloaded symbols.
25588 exclude_expsyms=$lt_exclude_expsyms
25589
25590 # Symbols that must always be exported.
25591 include_expsyms=$lt_include_expsyms
25592
25593 # Commands necessary for linking programs (against libraries) with templates.
25594 prelink_cmds=$lt_prelink_cmds
25595
25596 # Specify filename containing input files.
25597 file_list_spec=$lt_file_list_spec
25598
25599 # How to hardcode a shared library path into an executable.
25600 hardcode_action=$hardcode_action
25601
25602 # ### END LIBTOOL CONFIG
25603
25604 _LT_EOF
25605
25606   case $host_os in
25607   aix3*)
25608     cat <<\_LT_EOF >> "$cfgfile"
25609 # AIX sometimes has problems with the GCC collect2 program.  For some
25610 # reason, if we set the COLLECT_NAMES environment variable, the problems
25611 # vanish in a puff of smoke.
25612 if test "X${COLLECT_NAMES+set}" != Xset; then
25613   COLLECT_NAMES=
25614   export COLLECT_NAMES
25615 fi
25616 _LT_EOF
25617     ;;
25618   esac
25619
25620
25621 ltmain="$ac_aux_dir/ltmain.sh"
25622
25623
25624   # We use sed instead of cat because bash on DJGPP gets confused if
25625   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25626   # text mode, it properly converts lines to CR/LF.  This bash problem
25627   # is reportedly fixed, but why not run on old versions too?
25628   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25629     || (rm -f "$cfgfile"; exit 1)
25630
25631   case $xsi_shell in
25632   yes)
25633     cat << \_LT_EOF >> "$cfgfile"
25634
25635 # func_dirname file append nondir_replacement
25636 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25637 # otherwise set result to NONDIR_REPLACEMENT.
25638 func_dirname ()
25639 {
25640   case ${1} in
25641     */*) func_dirname_result="${1%/*}${2}" ;;
25642     *  ) func_dirname_result="${3}" ;;
25643   esac
25644 }
25645
25646 # func_basename file
25647 func_basename ()
25648 {
25649   func_basename_result="${1##*/}"
25650 }
25651
25652 # func_dirname_and_basename file append nondir_replacement
25653 # perform func_basename and func_dirname in a single function
25654 # call:
25655 #   dirname:  Compute the dirname of FILE.  If nonempty,
25656 #             add APPEND to the result, otherwise set result
25657 #             to NONDIR_REPLACEMENT.
25658 #             value returned in "$func_dirname_result"
25659 #   basename: Compute filename of FILE.
25660 #             value retuned in "$func_basename_result"
25661 # Implementation must be kept synchronized with func_dirname
25662 # and func_basename. For efficiency, we do not delegate to
25663 # those functions but instead duplicate the functionality here.
25664 func_dirname_and_basename ()
25665 {
25666   case ${1} in
25667     */*) func_dirname_result="${1%/*}${2}" ;;
25668     *  ) func_dirname_result="${3}" ;;
25669   esac
25670   func_basename_result="${1##*/}"
25671 }
25672
25673 # func_stripname prefix suffix name
25674 # strip PREFIX and SUFFIX off of NAME.
25675 # PREFIX and SUFFIX must not contain globbing or regex special
25676 # characters, hashes, percent signs, but SUFFIX may contain a leading
25677 # dot (in which case that matches only a dot).
25678 func_stripname ()
25679 {
25680   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25681   # positional parameters, so assign one to ordinary parameter first.
25682   func_stripname_result=${3}
25683   func_stripname_result=${func_stripname_result#"${1}"}
25684   func_stripname_result=${func_stripname_result%"${2}"}
25685 }
25686
25687 # func_opt_split
25688 func_opt_split ()
25689 {
25690   func_opt_split_opt=${1%%=*}
25691   func_opt_split_arg=${1#*=}
25692 }
25693
25694 # func_lo2o object
25695 func_lo2o ()
25696 {
25697   case ${1} in
25698     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25699     *)    func_lo2o_result=${1} ;;
25700   esac
25701 }
25702
25703 # func_xform libobj-or-source
25704 func_xform ()
25705 {
25706   func_xform_result=${1%.*}.lo
25707 }
25708
25709 # func_arith arithmetic-term...
25710 func_arith ()
25711 {
25712   func_arith_result=$(( $* ))
25713 }
25714
25715 # func_len string
25716 # STRING may not start with a hyphen.
25717 func_len ()
25718 {
25719   func_len_result=${#1}
25720 }
25721
25722 _LT_EOF
25723     ;;
25724   *) # Bourne compatible functions.
25725     cat << \_LT_EOF >> "$cfgfile"
25726
25727 # func_dirname file append nondir_replacement
25728 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25729 # otherwise set result to NONDIR_REPLACEMENT.
25730 func_dirname ()
25731 {
25732   # Extract subdirectory from the argument.
25733   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25734   if test "X$func_dirname_result" = "X${1}"; then
25735     func_dirname_result="${3}"
25736   else
25737     func_dirname_result="$func_dirname_result${2}"
25738   fi
25739 }
25740
25741 # func_basename file
25742 func_basename ()
25743 {
25744   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25745 }
25746
25747
25748 # func_stripname prefix suffix name
25749 # strip PREFIX and SUFFIX off of NAME.
25750 # PREFIX and SUFFIX must not contain globbing or regex special
25751 # characters, hashes, percent signs, but SUFFIX may contain a leading
25752 # dot (in which case that matches only a dot).
25753 # func_strip_suffix prefix name
25754 func_stripname ()
25755 {
25756   case ${2} in
25757     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25758     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25759   esac
25760 }
25761
25762 # sed scripts:
25763 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25764 my_sed_long_arg='1s/^-[^=]*=//'
25765
25766 # func_opt_split
25767 func_opt_split ()
25768 {
25769   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25770   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25771 }
25772
25773 # func_lo2o object
25774 func_lo2o ()
25775 {
25776   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25777 }
25778
25779 # func_xform libobj-or-source
25780 func_xform ()
25781 {
25782   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25783 }
25784
25785 # func_arith arithmetic-term...
25786 func_arith ()
25787 {
25788   func_arith_result=`expr "$@"`
25789 }
25790
25791 # func_len string
25792 # STRING may not start with a hyphen.
25793 func_len ()
25794 {
25795   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25796 }
25797
25798 _LT_EOF
25799 esac
25800
25801 case $lt_shell_append in
25802   yes)
25803     cat << \_LT_EOF >> "$cfgfile"
25804
25805 # func_append var value
25806 # Append VALUE to the end of shell variable VAR.
25807 func_append ()
25808 {
25809   eval "$1+=\$2"
25810 }
25811 _LT_EOF
25812     ;;
25813   *)
25814     cat << \_LT_EOF >> "$cfgfile"
25815
25816 # func_append var value
25817 # Append VALUE to the end of shell variable VAR.
25818 func_append ()
25819 {
25820   eval "$1=\$$1\$2"
25821 }
25822
25823 _LT_EOF
25824     ;;
25825   esac
25826
25827
25828   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25829     || (rm -f "$cfgfile"; exit 1)
25830
25831   mv -f "$cfgfile" "$ofile" ||
25832     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25833   chmod +x "$ofile"
25834
25835  ;;
25836
25837   esac
25838 done # for ac_tag
25839
25840
25841 { (exit 0); exit 0; }
25842 _ACEOF
25843 chmod +x $CONFIG_STATUS
25844 ac_clean_files=$ac_clean_files_save
25845
25846
25847 # configure is writing to config.log, and then calls config.status.
25848 # config.status does its own redirection, appending to config.log.
25849 # Unfortunately, on DOS this fails, as config.log is still kept open
25850 # by configure, so config.status won't be able to write to it; its
25851 # output is simply discarded.  So we exec the FD to /dev/null,
25852 # effectively closing config.log, so it can be properly (re)opened and
25853 # appended to by config.status.  When coming back to configure, we
25854 # need to make the FD available again.
25855 if test "$no_create" != yes; then
25856   ac_cs_success=:
25857   ac_config_status_args=
25858   test "$silent" = yes &&
25859     ac_config_status_args="$ac_config_status_args --quiet"
25860   exec 5>/dev/null
25861   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25862   exec 5>>config.log
25863   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25864   # would make configure fail if this is the last instruction.
25865   $ac_cs_success || { (exit 1); exit 1; }
25866 fi
25867
25868 #
25869 # CONFIG_SUBDIRS section.
25870 #
25871 if test "$no_recursion" != yes; then
25872
25873   # Remove --cache-file and --srcdir arguments so they do not pile up.
25874   ac_sub_configure_args=
25875   ac_prev=
25876   eval "set x $ac_configure_args"
25877   shift
25878   for ac_arg
25879   do
25880     if test -n "$ac_prev"; then
25881       ac_prev=
25882       continue
25883     fi
25884     case $ac_arg in
25885     -cache-file | --cache-file | --cache-fil | --cache-fi \
25886     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25887       ac_prev=cache_file ;;
25888     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25889     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25890     | --c=*)
25891       ;;
25892     --config-cache | -C)
25893       ;;
25894     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25895       ac_prev=srcdir ;;
25896     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25897       ;;
25898     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25899       ac_prev=prefix ;;
25900     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25901       ;;
25902     *)
25903       case $ac_arg in
25904       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25905       esac
25906       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25907     esac
25908   done
25909
25910   # Always prepend --prefix to ensure using the same prefix
25911   # in subdir configurations.
25912   ac_arg="--prefix=$prefix"
25913   case $ac_arg in
25914   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25915   esac
25916   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25917
25918   # Pass --silent
25919   if test "$silent" = yes; then
25920     ac_sub_configure_args="--silent $ac_sub_configure_args"
25921   fi
25922
25923   ac_popdir=`pwd`
25924   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25925
25926     # Do not complain, so a configure script can configure whichever
25927     # parts of a large source tree are present.
25928     test -d "$srcdir/$ac_dir" || continue
25929
25930     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25931     echo "$as_me:$LINENO: $ac_msg" >&5
25932     echo "$ac_msg" >&6
25933     { as_dir="$ac_dir"
25934   case $as_dir in #(
25935   -*) as_dir=./$as_dir;;
25936   esac
25937   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25938     as_dirs=
25939     while :; do
25940       case $as_dir in #(
25941       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25942       *) as_qdir=$as_dir;;
25943       esac
25944       as_dirs="'$as_qdir' $as_dirs"
25945       as_dir=`$as_dirname -- "$as_dir" ||
25946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25947          X"$as_dir" : 'X\(//\)[^/]' \| \
25948          X"$as_dir" : 'X\(//\)$' \| \
25949          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25950 echo X"$as_dir" |
25951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25952             s//\1/
25953             q
25954           }
25955           /^X\(\/\/\)[^/].*/{
25956             s//\1/
25957             q
25958           }
25959           /^X\(\/\/\)$/{
25960             s//\1/
25961             q
25962           }
25963           /^X\(\/\).*/{
25964             s//\1/
25965             q
25966           }
25967           s/.*/./; q'`
25968       test -d "$as_dir" && break
25969     done
25970     test -z "$as_dirs" || eval "mkdir $as_dirs"
25971   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25972 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25973    { (exit 1); exit 1; }; }; }
25974     ac_builddir=.
25975
25976 case "$ac_dir" in
25977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25978 *)
25979   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25980   # A ".." for each directory in $ac_dir_suffix.
25981   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25982   case $ac_top_builddir_sub in
25983   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25984   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25985   esac ;;
25986 esac
25987 ac_abs_top_builddir=$ac_pwd
25988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25989 # for backward compatibility:
25990 ac_top_builddir=$ac_top_build_prefix
25991
25992 case $srcdir in
25993   .)  # We are building in place.
25994     ac_srcdir=.
25995     ac_top_srcdir=$ac_top_builddir_sub
25996     ac_abs_top_srcdir=$ac_pwd ;;
25997   [\\/]* | ?:[\\/]* )  # Absolute name.
25998     ac_srcdir=$srcdir$ac_dir_suffix;
25999     ac_top_srcdir=$srcdir
26000     ac_abs_top_srcdir=$srcdir ;;
26001   *) # Relative name.
26002     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26003     ac_top_srcdir=$ac_top_build_prefix$srcdir
26004     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26005 esac
26006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26007
26008
26009     cd "$ac_dir"
26010
26011     # Check for guested configure; otherwise get Cygnus style configure.
26012     if test -f "$ac_srcdir/configure.gnu"; then
26013       ac_sub_configure=$ac_srcdir/configure.gnu
26014     elif test -f "$ac_srcdir/configure"; then
26015       ac_sub_configure=$ac_srcdir/configure
26016     elif test -f "$ac_srcdir/configure.in"; then
26017       # This should be Cygnus configure.
26018       ac_sub_configure=$ac_aux_dir/configure
26019     else
26020       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26021 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26022       ac_sub_configure=
26023     fi
26024
26025     # The recursion is here.
26026     if test -n "$ac_sub_configure"; then
26027       # Make the cache file name correct relative to the subdirectory.
26028       case $cache_file in
26029       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26030       *) # Relative name.
26031         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26032       esac
26033
26034       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26035 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26036       # The eval makes quoting arguments work.
26037       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26038            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26039         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26040 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26041    { (exit 1); exit 1; }; }
26042     fi
26043
26044     cd "$ac_popdir"
26045   done
26046 fi
26047
26048
26049 echo Configuration Complete.  Type \'make\' to build.