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