2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
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
230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
231 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
234 test -z "$as_dir" && as_dir=.
237 for as_base in sh bash ksh sh5; do
238 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
257 case `(set -o) 2>/dev/null` in
258 *posix*) set -o posix ;;
267 CONFIG_SHELL=$as_shell
269 if { "$as_shell" 2> /dev/null <<\_ASEOF
270 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
278 case `(set -o) 2>/dev/null` in
279 *posix*) set -o posix ;;
295 as_func_ret_success () {
298 as_func_ret_failure () {
303 if as_func_success; then
307 echo as_func_success failed.
310 if as_func_failure; then
312 echo as_func_failure succeeded.
315 if as_func_ret_success; then
319 echo as_func_ret_success failed.
322 if as_func_ret_failure; then
324 echo as_func_ret_failure succeeded.
327 if ( set x; as_func_ret_success y && test x = "$1" ); then
331 echo positional parameters were not saved.
334 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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; }
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
365 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
384 (eval "as_func_return () {
393 as_func_ret_success () {
396 as_func_ret_failure () {
401 if as_func_success; then
405 echo as_func_success failed.
408 if as_func_failure; then
410 echo as_func_failure succeeded.
413 if as_func_ret_success; then
417 echo as_func_ret_success failed.
420 if as_func_ret_failure; then
422 echo as_func_ret_failure succeeded.
425 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 echo positional parameters were not saved.
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
443 test "x$as_lineno_1" != "x$as_lineno_2" &&
444 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
467 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
479 # Exit status is that of the last command.
484 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 ECHO_C= ECHO_N= ECHO_T=
494 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
501 if expr a : '\(a\)' >/dev/null 2>&1 &&
502 test "X`expr 00001 : '.*\(...\)'`" = X001; then
508 rm -f conf$$ conf$$.exe conf$$.file
509 if test -d conf$$.dir; then
510 rm -f conf$$.dir/conf$$.file
516 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
524 elif ln conf$$.file conf$$ 2>/dev/null; then
529 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
530 rmdir conf$$.dir 2>/dev/null
532 if mkdir -p . 2>/dev/null; then
535 test -d ./-p && rmdir ./-p
539 if test -x / >/dev/null 2>&1; then
542 if ls -dL / >/dev/null 2>&1; then
549 if test -d "$1"; then
555 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
556 ???[sx]*):;;*)false;;esac;fi
560 as_executable_p=$as_test_x
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'"
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'"
569 SHELL=${CONFIG_SHELL-/bin/sh}
572 exec 7<&0 </dev/null 6>&1
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`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
590 SHELL=${CONFIG_SHELL-/bin/sh}
592 # Identity of this package.
599 ac_unique_file="lib/saslint.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
645 program_transform_name
699 INSTALL_STRIP_PROGRAM
757 SASL_DB_BACKEND_STATIC
761 NO_SASL_DB_MANS_FALSE
798 SASL_UTIL_HEADERS_EXTRA
811 ac_precious_vars='build_alias
820 ac_subdirs_all='saslauthd'
822 # Initialize some variables set by options.
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
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'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
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 ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
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 ;;
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 ;;
931 -docdir | --docdir | --docdi | --doc | --do)
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
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 ;;
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 ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
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 ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
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 ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
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 ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
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 ;;
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 ;;
1157 # Obsolete; use --with-x.
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 ;;
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 ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
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 ;;
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}
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; }; }
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
1211 eval ac_val=\$$ac_var
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
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.
1225 target=$target_alias
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
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
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; }; }
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 ||
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
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; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
1316 # Report the --help message.
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.
1322 \`configure' configures this package to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1329 Defaults for the options are specified in brackets.
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 \`..']
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
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'.
1353 For better control, use the options below.
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]
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
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]
1391 if test -n "$ac_init_help"; then
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]
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-pic try to use only PIC/non-PIC objects [default=use
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]
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>
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.
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
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
1508 .) # We are building in place.
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 ;;
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 ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1542 generated by GNU Autoconf 2.61
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.
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.
1555 It was created by $as_me, which was
1556 generated by GNU Autoconf 2.61. Invocation command line was
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`
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`
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`
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 test -z "$as_dir" && as_dir=.
1592 echo "PATH: $as_dir"
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.
1616 ac_must_keep_next=false
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)
1627 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1630 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1645 -* ) ac_must_keep_next=true ;;
1648 ac_configure_args="$ac_configure_args '$ac_arg'"
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; }
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.
1667 ## ---------------- ##
1668 ## Cache variables. ##
1669 ## ---------------- ##
1672 # The following way of writing the cache mishandles newlines in values,
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
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;} ;;
1683 _ | IFS | as_nl) ;; #(
1684 *) $as_unset $ac_var ;;
1689 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1690 *${as_nl}ac_space=\ *)
1692 "s/'\''/'\''\\\\'\'''\''/g;
1693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1704 ## ----------------- ##
1705 ## Output variables. ##
1706 ## ----------------- ##
1709 for ac_var in $ac_subst_vars
1711 eval ac_val=\$$ac_var
1713 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1715 echo "$ac_var='\''$ac_val'\''"
1719 if test -n "$ac_subst_files"; then
1721 ## ------------------- ##
1722 ## File substitutions. ##
1723 ## ------------------- ##
1726 for ac_var in $ac_subst_files
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1737 if test -s confdefs.h; then
1747 test "$ac_signal" != 0 &&
1748 echo "$as_me: caught signal $ac_signal"
1749 echo "$as_me: exit $exit_status"
1751 rm -f core *.core core.conftest.* &&
1752 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1755 for ac_signal in 1 2 13 15; do
1756 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1761 rm -f -r conftest* confdefs.h
1763 # Predefined preprocessor variables.
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1797 set x "$ac_default_prefix/share/config.site" \
1798 "$ac_default_prefix/etc/config.site"
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
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;}
1818 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1819 *) . "./$cache_file";;
1823 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824 echo "$as_me: creating cache $cache_file" >&6;}
1828 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1857 # Pass precious variables to config.status.
1858 if test "$ac_new_set" = set; then
1860 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1861 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
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;}
1912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
1917 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918 echo "$as_me: creating cache $cache_file" >&6;}
1925 for ac_dir in config "$srcdir"/config; do
1926 if test -f "$ac_dir/install-sh"; then
1928 ac_install_sh="$ac_aux_dir/install-sh -c"
1930 elif test -f "$ac_dir/install.sh"; then
1932 ac_install_sh="$ac_aux_dir/install.sh -c"
1934 elif test -f "$ac_dir/shtool"; then
1936 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
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; }; }
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
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; }; }
1979 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1980 echo "${ECHO_T}$ac_cv_build" >&6; }
1981 case $ac_cv_build in
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; }; };;
1988 ac_save_IFS=$IFS; IFS='-'
1994 # Remember, the first character of IFS is used to create $*,
1995 # except with old shells:
1998 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
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
2006 if test "x$host_alias" = x; then
2007 ac_cv_host=$ac_cv_build
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; }; }
2016 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2017 echo "${ECHO_T}$ac_cv_host" >&6; }
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; }; };;
2025 ac_save_IFS=$IFS; IFS='-'
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2035 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
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
2043 if test "x$target_alias" = x; then
2044 ac_cv_target=$ac_cv_host
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; }; }
2053 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2054 echo "${ECHO_T}$ac_cv_target" >&6; }
2055 case $ac_cv_target in
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; }; };;
2061 target=$ac_cv_target
2062 ac_save_IFS=$IFS; IFS='-'
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2072 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
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" = \
2080 program_prefix=${target_alias}-
2082 am__api_version='1.10'
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
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
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 # Account for people who put trailing slashes in PATH elements.
2110 ./ | .// | /cC/* | \
2111 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2112 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
2130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2143 if test "${ac_cv_path_install+set}" = set; then
2144 INSTALL=$ac_cv_path_install
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
2153 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2154 echo "${ECHO_T}$INSTALL" >&6; }
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}'
2160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2162 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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; }
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
2175 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2176 if test "$*" = "X"; then
2178 set X `ls -t $srcdir/configure conftest.file`
2181 if test "$*" != "X $srcdir/configure conftest.file" \
2182 && test "$*" != "X conftest.file $srcdir/configure"; then
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; }; }
2195 test "$2" = conftest.file
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; }; }
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,$//
2219 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2222 # expand $ac_aux_dir to an absolute path
2223 am_aux_dir=`cd $ac_aux_dir && pwd`
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 "
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;}
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
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
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
2263 if test "${ac_cv_path_mkdir+set}" = set; then
2264 MKDIR_P="$ac_cv_path_mkdir -p"
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"
2274 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2275 echo "${ECHO_T}$MKDIR_P" >&6; }
2279 [\\/$]* | ?:[\\/]*) ;;
2280 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2283 for ac_prog in gawk mawk nawk awk
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
2292 if test -n "$AWK"; then
2293 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2313 if test -n "$AWK"; then
2314 { echo "$as_me:$LINENO: result: $AWK" >&5
2315 echo "${ECHO_T}$AWK" >&6; }
2317 { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2322 test -n "$AWK" && break
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
2331 cat >conftest.make <<\_ACEOF
2334 @echo '@@@%%%=$(MAKE)=@@@%%%'
2336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2337 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2339 eval ac_cv_prog_make_${ac_make}_set=yes;;
2341 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 SET_MAKE="MAKE=${MAKE-make}"
2355 rm -rf .tst 2>/dev/null
2356 mkdir .tst 2>/dev/null
2357 if test -d .tst; then
2362 rmdir .tst 2>/dev/null
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; }; }
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'
2386 # Define the identity of the package.
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE "$PACKAGE"
2396 cat >>confdefs.h <<_ACEOF
2397 #define VERSION "$VERSION"
2400 # Some tools Automake needs.
2402 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2405 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2408 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2411 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2414 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2416 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
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
2431 if test -n "$STRIP"; then
2432 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2462 if test -z "$ac_cv_prog_STRIP"; then
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
2471 if test -n "$ac_ct_STRIP"; then
2472 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2496 { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2500 if test "x$ac_ct_STRIP" = x; then
2503 case $cross_compiling:$ac_tool_warned in
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 ;;
2516 STRIP="$ac_cv_prog_STRIP"
2520 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2522 # We need awk for the "check" target. The system "awk" is bad on
2524 # Always define AMTAR for backward compatibility.
2526 AMTAR=${AMTAR-"${am_missing_run}tar"}
2528 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2536 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2539 # and include our config dir scripts
2540 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
2544 # Check whether --enable-cmulocal was given.
2545 if test "${enable_cmulocal+set}" = set; then
2546 enableval=$enable_cmulocal;
2552 # Check whether --enable-sample was given.
2553 if test "${enable_sample+set}" = set; then
2554 enableval=$enable_sample; enable_sample=yes
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
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2592 if test -n "$CC"; then
2593 { echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6; }
2596 { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2602 if test -z "$ac_cv_prog_CC"; then
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
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2636 { echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6; }
2640 if test "x$ac_ct_CC" = x; then
2643 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2689 if test -n "$CC"; then
2690 { echo "$as_me:$LINENO: result: $CC" >&5
2691 echo "${ECHO_T}$CC" >&6; }
2693 { echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6; }
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
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2740 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2746 if test -n "$CC"; then
2747 { echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6; }
2750 { echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6; }
2756 if test -z "$CC"; then
2757 if test -n "$ac_tool_prefix"; then
2758 for ac_prog in cl.exe
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
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2788 if test -n "$CC"; then
2789 { echo "$as_me:$LINENO: result: $CC" >&5
2790 echo "${ECHO_T}$CC" >&6; }
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2797 test -n "$CC" && break
2800 if test -z "$CC"; then
2802 for ac_prog in cl.exe
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
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2836 { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2841 test -n "$ac_ct_CC" && break
2844 if test "x$ac_ct_CC" = x; then
2847 case $cross_compiling:$ac_tool_warned in
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 ;;
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; }; }
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"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
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
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[^ ]*//'`
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'
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.
2937 for ac_file in $ac_files
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2941 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2946 if { (ac_try="$ac_link_default"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_link_default") 2>&5
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
2961 for ac_file in $ac_files ''
2963 test -f "$ac_file" || continue
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2968 # We found the default executable, but exeext='' is most
2972 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
2986 test "$ac_cv_exeext" = no && ac_cv_exeext=
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
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; }; }
3005 ac_exeext=$ac_cv_exeext
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;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3026 if test "$cross_compiling" = maybe; then
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; }; }
3039 { echo "$as_me:$LINENO: result: yes" >&5
3040 echo "${ECHO_T}yes" >&6; }
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; }
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"
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_link") 2>&5
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
3067 for ac_file in conftest.exe conftest conftest.*; do
3068 test -f "$ac_file" || continue
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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; }
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_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
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3111 rm -f conftest.o conftest.obj
3112 if { (ac_try="$ac_compile"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>&5
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;
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3143 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3144 echo "${ECHO_T}$ac_cv_objext" >&6; }
3145 OBJEXT=$ac_cv_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
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3179 grep -v '^ *+' conftest.er1 >conftest.err
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
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
3209 ac_save_c_werror_flag=$ac_c_werror_flag
3210 ac_c_werror_flag=yes
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
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
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3251 cat >conftest.$ac_ext <<_ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3266 rm -f conftest.$ac_objext
3267 if { (ac_try="$ac_compile"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
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
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 ac_c_werror_flag=$ac_save_c_werror_flag
3290 cat >conftest.$ac_ext <<_ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3305 rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
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
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
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
3350 if test "$GCC" = yes; then
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
3361 ac_cv_prog_cc_c89=no
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.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)
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3387 s = g (p, va_arg (v,int));
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];
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
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);
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_compile") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
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
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f core conftest.err conftest.$ac_objext
3450 test "x$ac_cv_prog_cc_c89" != "xno" && break
3452 rm -f conftest.$ac_ext
3457 case "x$ac_cv_prog_cc_c89" in
3459 { echo "$as_me:$LINENO: result: none needed" >&5
3460 echo "${ECHO_T}none needed" >&6; } ;;
3462 { echo "$as_me:$LINENO: result: unsupported" >&5
3463 echo "${ECHO_T}unsupported" >&6; } ;;
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; } ;;
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"
3478 ac_config_commands="$ac_config_commands depfiles"
3481 am_make=${MAKE-make}
3482 cat > confinc << '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; }
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
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
3516 { echo "$as_me:$LINENO: result: $_am_result" >&5
3517 echo "${ECHO_T}$_am_result" >&6; }
3518 rm -f confinc confmf
3520 # Check whether --enable-dependency-tracking was given.
3521 if test "${enable_dependency_tracking+set}" = set; then
3522 enableval=$enable_dependency_tracking;
3525 if test "x$enable_dependency_tracking" != xno; then
3526 am_depcomp="$ac_aux_dir/depcomp"
3529 if test "x$enable_dependency_tracking" != xno; then
3539 depcc="$CC" am_compiler_list=
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
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
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
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
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`
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.
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.
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
3584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
3628 am_cv_CC_dependencies_compiler_type=none
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
3637 test "x$enable_dependency_tracking" != xno \
3638 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3640 am__fastdepCC_FALSE='#'
3642 am__fastdepCC_TRUE='#'
3643 am__fastdepCC_FALSE=
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
3658 if test -z "$CPP"; then
3659 if test "${ac_cv_prog_CPP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 # Double quotes because CPP needs to be expanded
3663 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3666 for ac_c_preproc_warn_flag in '' yes
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
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3681 # include <limits.h>
3683 # include <assert.h>
3687 if { (ac_try="$ac_cpp conftest.$ac_ext"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3695 grep -v '^ *+' conftest.er1 >conftest.err
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
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 # Broken: fails on valid input.
3712 rm -f conftest.err conftest.$ac_ext
3714 # OK, works on sane cases. Now check whether nonexistent headers
3715 # can be detected and how.
3716 cat >conftest.$ac_ext <<_ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3732 grep -v '^ *+' conftest.er1 >conftest.err
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
3740 # Broken: success on invalid input.
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 # Passes both tests.
3751 rm -f conftest.err conftest.$ac_ext
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
3768 { echo "$as_me:$LINENO: result: $CPP" >&5
3769 echo "${ECHO_T}$CPP" >&6; }
3771 for ac_c_preproc_warn_flag in '' yes
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
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3786 # include <limits.h>
3788 # include <assert.h>
3792 if { (ac_try="$ac_cpp conftest.$ac_ext"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
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
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 # Broken: fails on valid input.
3817 rm -f conftest.err conftest.$ac_ext
3819 # OK, works on sane cases. Now check whether nonexistent headers
3820 # can be detected and how.
3821 cat >conftest.$ac_ext <<_ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3829 if { (ac_try="$ac_cpp conftest.$ac_ext"
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3837 grep -v '^ *+' conftest.er1 >conftest.err
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
3845 # Broken: success on invalid input.
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 # Passes both tests.
3856 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
3877 for ac_prog in gawk mawk nawk awk
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
3886 if test -n "$AWK"; then
3887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3907 if test -n "$AWK"; then
3908 { echo "$as_me:$LINENO: result: $AWK" >&5
3909 echo "${ECHO_T}$AWK" >&6; }
3911 { echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6; }
3916 test -n "$AWK" && break
3919 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3920 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3922 if test "$LN_S" = "ln -s"; then
3923 { echo "$as_me:$LINENO: result: yes" >&5
3924 echo "${ECHO_T}yes" >&6; }
3926 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3927 echo "${ECHO_T}no, using $LN_S" >&6; }
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
3936 cat >conftest.make <<\_ACEOF
3939 @echo '@@@%%%=$(MAKE)=@@@%%%'
3941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3944 eval ac_cv_prog_make_${ac_make}_set=yes;;
3946 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
3955 { echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6; }
3957 SET_MAKE="MAKE=${MAKE-make}"
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
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
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir=.
3984 # Account for people who put trailing slashes in PATH elements.
3986 ./ | .// | /cC/* | \
3987 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3988 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
4006 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4019 if test "${ac_cv_path_install+set}" = set; then
4020 INSTALL=$ac_cv_path_install
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
4029 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4030 echo "${ECHO_T}$INSTALL" >&6; }
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}'
4036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4061 static void foo(void) __attribute__ ((noreturn));
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
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
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 ac_cv___attribute__=no
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 if test "$ac_cv___attribute__" = "yes"; then
4103 cat >>confdefs.h <<\_ACEOF
4104 #define HAVE___ATTRIBUTE__ 1
4108 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4109 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
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
4121 SAVE_LDFLAGS="${LDFLAGS}"
4122 LDFLAGS="-R /usr/lib"
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4138 rm -f conftest.$ac_objext conftest$ac_exeext
4139 if { (ac_try="$ac_link"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_link") 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
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"
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4162 LDFLAGS="-Wl,-rpath,/usr/lib"
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (ac_try="$ac_link"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_link") 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
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,"
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 andrew_runpath_switch="none"
4204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4205 conftest$ac_exeext conftest.$ac_ext
4209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4210 conftest$ac_exeext conftest.$ac_ext
4211 LDFLAGS="${SAVE_LDFLAGS}"
4214 { echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
4215 echo "${ECHO_T}$andrew_runpath_switch" >&6; }
4218 # Check whether --with-staticsasl was given.
4219 if test "${with_staticsasl+set}" = set; then
4220 withval=$with_staticsasl;
4223 if test "$with_staticsasl" = yes; then
4229 if test -z "$target"; then
4234 # Check whether --enable-static was given.
4235 if test "${enable_static+set}" = set; then
4236 enableval=$enable_static; p=${PACKAGE-default}
4238 yes) enable_static=yes ;;
4239 no) 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
4246 if test "X$pkg" = "X$p"; then
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;} ;;
4273 macro_version='2.2.10'
4274 macro_revision='1.3175'
4288 ltmain="$ac_aux_dir/ltmain.sh"
4290 # Backslashify metacharacters that are still active within
4291 # double-quoted strings.
4292 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4294 # Same as above, but do not quote variable references.
4295 double_quote_subst='s/\(["`\\]\)/\\\1/g'
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'
4301 # Sed substitution to delay expansion of an escaped single quote.
4302 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4304 # Sed substitution to avoid accidental globbing in evaled expressions
4305 no_glob_subst='s/\*/\\\*/g'
4307 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
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
4317 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4320 # Use this function as a fallback that always works.
4321 func_fallback_echo ()
4323 eval 'cat <<_LTECHO_EOF
4327 ECHO='func_fallback_echo'
4330 # func_echo_all arg...
4331 # Invoke $ECHO with all args, space-separated.
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; } ;;
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
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"
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
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
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
4391 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4394 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416 $ac_path_SED_found && break 3
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; }; }
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"
4443 test -z "$SED" && SED=sed
4444 Xsed="$SED -e 1s/^X//"
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
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
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
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
4482 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4485 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4500 # 10*(2^10) chars as input seems more than enough
4501 test $ac_count -gt 10 && break
4503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4507 $ac_path_GREP_found && break 3
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; }; }
4525 ac_cv_path_GREP=$GREP
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"
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
4540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4541 then ac_cv_path_EGREP="$GREP -E"
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
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
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
4564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4567 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4582 # 10*(2^10) chars as input seems more than enough
4583 test $ac_count -gt 10 && break
4585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589 $ac_path_EGREP_found && break 3
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; }; }
4607 ac_cv_path_EGREP=$EGREP
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"
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
4623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4624 then ac_cv_path_FGREP="$GREP -F"
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
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
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
4647 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4665 # 10*(2^10) chars as input seems more than enough
4666 test $ac_count -gt 10 && break
4668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 $ac_path_FGREP_found && break 3
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; }; }
4690 ac_cv_path_FGREP=$FGREP
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"
4701 test -z "$GREP" && GREP=grep
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
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; }
4735 # gcc leaves a trailing carriage return which upsets mingw
4736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4741 # Accept absolute paths.
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%/%"`
4749 test -z "$LD" && LD="$ac_prog"
4752 # If it fails, then pretend we aren't using GCC.
4756 # If it is relative, then search for the first ld in PATH.
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; }
4764 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4765 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4767 if test "${lt_cv_path_LD+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 if test -z "$LD"; then
4771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4772 for ac_dir in $PATH; do
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
4785 test "$with_gnu_ld" != yes && break
4792 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4797 if test -n "$LD"; then
4798 { echo "$as_me:$LINENO: result: $LD" >&5
4799 echo "${ECHO_T}$LD" >&6; }
4801 { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
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
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
4818 lt_cv_prog_gnu_ld=no
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
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
4839 if test -n "$NM"; then
4840 # Let the user override the test.
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"
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
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"
4864 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4866 lt_cv_path_NM="$tmp_nm -p"
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
4880 : ${lt_cv_path_NM=no}
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
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.
4892 if test -n "$ac_tool_prefix"; then
4893 for ac_prog in dumpbin "link -dump"
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
4902 if test -n "$DUMPBIN"; then
4903 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
4927 { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4932 test -n "$DUMPBIN" && break
4935 if test -z "$DUMPBIN"; then
4936 ac_ct_DUMPBIN=$DUMPBIN
4937 for ac_prog in dumpbin "link -dump"
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
4946 if test -n "$ac_ct_DUMPBIN"; then
4947 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
4971 { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4976 test -n "$ac_ct_DUMPBIN" && break
4979 if test "x$ac_ct_DUMPBIN" = x; then
4982 case $cross_compiling:$ac_tool_warned in
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 ;;
4992 DUMPBIN=$ac_ct_DUMPBIN
4996 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4998 DUMPBIN="$DUMPBIN -symbols"
5006 if test "$DUMPBIN" != ":"; then
5010 test -z "$NM" && NM=nm
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
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"
5037 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5038 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
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
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
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;
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;
5077 # On MiNT this can take a long time and run out of memory.
5078 lt_cv_sys_max_cmd_len=8192;
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;
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`
5094 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
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`
5102 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5103 lt_cv_sys_max_cmd_len=196608
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
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 ;;
5120 lt_cv_sys_max_cmd_len=102400
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/.*[ ]//'`
5127 lt_cv_sys_max_cmd_len=32768
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`
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
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
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
5150 teststring=$teststring$teststring
5152 # Only check the string length outside the loop.
5153 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
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`
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; }
5169 { echo "$as_me:$LINENO: result: none" >&5
5170 echo "${ECHO_T}none" >&6; }
5172 max_cmd_len=$lt_cv_sys_max_cmd_len
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
5188 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5190 && eval 'test $(( 1 + 1 )) -eq 2 \
5191 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5193 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5194 echo "${ECHO_T}$xsi_shell" >&6; }
5197 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5198 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5200 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5202 && lt_shell_append=yes
5203 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5204 echo "${ECHO_T}$lt_shell_append" >&6; }
5207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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'
5224 *) # EBCDIC based system
5225 lt_SP2NL='tr \100 \n'
5226 lt_NL2SP='tr \r\n \100\100'
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
5243 lt_cv_ld_reload_flag='-r'
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
5250 *) reload_flag=" $reload_flag" ;;
5252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5255 if test "$GCC" = yes; then
5256 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
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
5279 if test -n "$OBJDUMP"; then
5280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5304 { echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6; }
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
5319 if test -n "$ac_ct_OBJDUMP"; then
5320 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5344 { echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6; }
5348 if test "x$ac_ct_OBJDUMP" = x; then
5351 case $cross_compiling:$ac_tool_warned in
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 ;;
5361 OBJDUMP=$ac_ct_OBJDUMP
5364 OBJDUMP="$ac_cv_prog_OBJDUMP"
5367 test -z "$OBJDUMP" && OBJDUMP=objdump
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
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.
5398 lt_cv_deplibs_check_method=pass_all
5402 lt_cv_deplibs_check_method=pass_all
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
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'
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'
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'
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'
5438 darwin* | rhapsody*)
5439 lt_cv_deplibs_check_method=pass_all
5442 freebsd* | dragonfly*)
5443 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
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.*`
5454 lt_cv_deplibs_check_method=pass_all
5459 lt_cv_deplibs_check_method=pass_all
5463 lt_cv_deplibs_check_method=pass_all
5466 hpux10.20* | hpux11*)
5467 lt_cv_file_magic_cmd=/usr/bin/file
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
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
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
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)$'
5489 irix5* | irix6* | nonstopux*)
5491 *-32|*"-32 ") libmagic=32-bit;;
5492 *-n32|*"-n32 ") libmagic=N32;;
5493 *-64|*"-64 ") libmagic=64-bit;;
5494 *) libmagic=never-match;;
5496 lt_cv_deplibs_check_method=pass_all
5499 # This must be Linux ELF.
5500 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5501 lt_cv_deplibs_check_method=pass_all
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)$'
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
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
5519 lt_cv_deplibs_check_method=pass_all
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)$'
5526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5530 osf3* | osf4* | osf5*)
5531 lt_cv_deplibs_check_method=pass_all
5535 lt_cv_deplibs_check_method=pass_all
5539 lt_cv_deplibs_check_method=pass_all
5542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5543 lt_cv_deplibs_check_method=pass_all
5547 case $host_vendor in
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*`
5553 lt_cv_deplibs_check_method=pass_all
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 )'
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
5565 lt_cv_deplibs_check_method=pass_all
5568 lt_cv_deplibs_check_method=pass_all
5574 lt_cv_deplibs_check_method=pass_all
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
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
5604 if test -n "$AR"; then
5605 ac_cv_prog_AR="$AR" # Let the user override the test.
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5625 if test -n "$AR"; then
5626 { echo "$as_me:$LINENO: result: $AR" >&5
5627 echo "${ECHO_T}$AR" >&6; }
5629 { echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6; }
5635 if test -z "$ac_cv_prog_AR"; then
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
5644 if test -n "$ac_ct_AR"; then
5645 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5669 { echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6; }
5673 if test "x$ac_ct_AR" = x; then
5676 case $cross_compiling:$ac_tool_warned in
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 ;;
5692 test -z "$AR" && AR=ar
5693 test -z "$AR_FLAGS" && AR_FLAGS=cru
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
5713 if test -n "$STRIP"; then
5714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5738 { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5744 if test -z "$ac_cv_prog_STRIP"; then
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
5753 if test -n "$ac_ct_STRIP"; then
5754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5778 { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5782 if test "x$ac_ct_STRIP" = x; then
5785 case $cross_compiling:$ac_tool_warned in
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 ;;
5798 STRIP="$ac_cv_prog_STRIP"
5801 test -z "$STRIP" && STRIP=:
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
5816 if test -n "$RANLIB"; then
5817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5841 { echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6; }
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
5856 if test -n "$ac_ct_RANLIB"; then
5857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5881 { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5885 if test "x$ac_ct_RANLIB" = x; then
5888 case $cross_compiling:$ac_tool_warned in
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 ;;
5898 RANLIB=$ac_ct_RANLIB
5901 RANLIB="$ac_cv_prog_RANLIB"
5904 test -z "$RANLIB" && RANLIB=:
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=
5916 if test -n "$RANLIB"; then
5919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5922 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5925 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5930 lock_old_archive_extraction=yes ;;
5932 lock_old_archive_extraction=no ;;
5973 # If no C compiler was specified, use CC.
5976 # If no C compiler flags were specified, use CFLAGS.
5977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5979 # Allow CC to be a program name with arguments.
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
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?!! ;)]
5993 # Character class describing NM global symbol codes.
5994 symcode='[BCDEGRST]'
5996 # Regexp to match symbols that can be accessed directly from C.
5997 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5999 # Define system-specific variables.
6004 cygwin* | mingw* | pw32* | cegcc*)
6005 symcode='[ABCDGISTW]'
6008 if test "$host_cpu" = ia64; then
6009 symcode='[ABCDEGRST]'
6013 symcode='[BCDEGRST]'
6016 symcode='[BCDEGQRST]'
6027 sysv5* | sco5v6* | unixware* | OpenUNIX*)
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]' ;;
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'"
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'"
6050 # Handle CRLF in mingw tool chain
6054 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6058 # Try without a prefix underscore, then with it.
6059 for ac_symprfx in "" "_"; do
6061 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6062 symxfrm="\\1 $ac_symprfx\\2 \\2"
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"
6082 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6085 # Check to see that the pipe works correctly.
6089 cat > conftest.$ac_ext <<_LT_EOF
6094 void nm_test_func(void);
6095 void nm_test_func(void){}
6099 int main(){nm_test_var='a';nm_test_func();return(0);}
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; then
6107 # Now try to grab the symbols.
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
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"
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
6130 # Now generate the symbol file.
6131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6133 cat <<_LT_EOF >> conftest.$ac_ext
6135 /* The mapping between symbol names and symbols. */
6140 lt__PROGRAM__LTX_preloaded_symbols[] =
6142 { "@PROGRAM@", (void *) 0 },
6144 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6145 cat <<\_LT_EOF >> conftest.$ac_ext
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;
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
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6173 LIBS="$lt_save_LIBS"
6174 CFLAGS="$lt_save_CFLAGS"
6176 echo "cannot find nm_test_func in $nlist" >&5
6179 echo "cannot find nm_test_var in $nlist" >&5
6182 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6185 echo "$progname: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 rm -rf conftest* conftst*
6190 # Do not use the global_symbol_pipe unless it works.
6191 if test "$pipe_works" = yes; then
6194 lt_cv_sys_global_symbol_pipe=
6200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6201 lt_cv_sys_global_symbol_to_cdecl=
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; }
6207 { echo "$as_me:$LINENO: result: ok" >&5
6208 echo "${ECHO_T}ok" >&6; }
6232 # Check whether --enable-libtool-lock was given.
6233 if test "${enable_libtool_lock+set}" = set; then
6234 enableval=$enable_libtool_lock;
6237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6239 # Some flags need to be propagated to the compiler or linker for good
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
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; then
6250 case `/usr/bin/file conftest.$ac_objext` in
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
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
6272 LD="${LD-ld} -melf32bsmip"
6275 LD="${LD-ld} -melf32bmipn32"
6278 LD="${LD-ld} -melf64bmip"
6282 case `/usr/bin/file conftest.$ac_objext` in
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
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; then
6307 case `/usr/bin/file conftest.o` in
6310 x86_64-*kfreebsd*-gnu)
6311 LD="${LD-ld} -m elf_i386_fbsd"
6314 LD="${LD-ld} -m elf_i386"
6316 ppc64-*linux*|powerpc64-*linux*)
6317 LD="${LD-ld} -m elf32ppclinux"
6320 LD="${LD-ld} -m elf_s390"
6323 LD="${LD-ld} -m elf32_sparc"
6329 x86_64-*kfreebsd*-gnu)
6330 LD="${LD-ld} -m elf_x86_64_fbsd"
6333 LD="${LD-ld} -m elf_x86_64"
6335 ppc*-*linux*|powerpc*-*linux*)
6336 LD="${LD-ld} -m elf64ppc"
6338 s390*-*linux*|s390*-*tpf*)
6339 LD="${LD-ld} -m elf64_s390"
6342 LD="${LD-ld} -m elf64_sparc"
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
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
6366 cat >conftest.$ac_ext <<_ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6381 rm -f conftest.$ac_objext conftest$ac_exeext
6382 if { (ac_try="$ac_link"
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_link") 2>conftest.er1
6390 grep -v '^ *+' conftest.er1 >conftest.err
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
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 lt_cv_cc_needs_belf=no
6407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6408 conftest$ac_exeext conftest.$ac_ext
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
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"
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
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; then
6431 case `/usr/bin/file conftest.o` in
6433 case $lt_cv_prog_gnu_ld in
6434 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6436 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6448 need_locks="$enable_libtool_lock"
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
6461 if test -n "$DSYMUTIL"; then
6462 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6486 { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
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
6501 if test -n "$ac_ct_DSYMUTIL"; then
6502 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6526 { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6530 if test "x$ac_ct_DSYMUTIL" = x; then
6533 case $cross_compiling:$ac_tool_warned in
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 ;;
6543 DSYMUTIL=$ac_ct_DSYMUTIL
6546 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
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
6557 if test -n "$NMEDIT"; then
6558 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
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
6597 if test -n "$ac_ct_NMEDIT"; then
6598 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6626 if test "x$ac_ct_NMEDIT" = x; then
6629 case $cross_compiling:$ac_tool_warned in
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 ;;
6639 NMEDIT=$ac_ct_NMEDIT
6642 NMEDIT="$ac_cv_prog_NMEDIT"
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
6653 if test -n "$LIPO"; then
6654 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6678 { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6684 if test -z "$ac_cv_prog_LIPO"; then
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
6693 if test -n "$ac_ct_LIPO"; then
6694 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6722 if test "x$ac_ct_LIPO" = x; then
6725 case $cross_compiling:$ac_tool_warned in
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 ;;
6738 LIPO="$ac_cv_prog_LIPO"
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
6749 if test -n "$OTOOL"; then
6750 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6780 if test -z "$ac_cv_prog_OTOOL"; then
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
6789 if test -n "$ac_ct_OTOOL"; then
6790 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6818 if test "x$ac_ct_OTOOL" = x; then
6821 case $cross_compiling:$ac_tool_warned in
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 ;;
6834 OTOOL="$ac_cv_prog_OTOOL"
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
6845 if test -n "$OTOOL64"; then
6846 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6870 { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
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
6885 if test -n "$ac_ct_OTOOL64"; then
6886 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6914 if test "x$ac_ct_OTOOL64" = x; then
6917 case $cross_compiling:$ac_tool_warned in
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 ;;
6927 OTOOL64=$ac_ct_OTOOL64
6930 OTOOL64="$ac_cv_prog_OTOOL64"
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
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
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
6977 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6978 lt_cv_apple_cc_single_mod=yes
6980 cat conftest.err >&5
6982 rm -rf libconftest.dylib*
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
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
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (ac_try="$ac_link"
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_link") 2>conftest.er1
7021 grep -v '^ *+' conftest.er1 >conftest.err
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
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 lt_cv_ld_exported_symbols_list=no
7038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7039 conftest$ac_exeext conftest.$ac_ext
7040 LDFLAGS="$save_LDFLAGS"
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
7050 lt_cv_ld_force_load=no
7051 cat > conftest.c << _LT_EOF
7052 int forced_loaded() { return 2;}
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;}
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
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
7069 cat conftest.err >&5
7071 rm -f conftest.err libconftest.a conftest conftest.c
7072 rm -rf conftest.dSYM
7075 { echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7076 echo "${ECHO_T}$lt_cv_ld_force_load" >&6; }
7078 rhapsody* | darwin1.[012])
7079 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
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' ;;
7090 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7092 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7096 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7097 _lt_dar_single_mod='$single_module'
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'
7102 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7104 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7105 _lt_dsymutil='~$DSYMUTIL $lib || :'
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
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7137 rm -f conftest.$ac_objext
7138 if { (ac_try="$ac_compile"
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_compile") 2>conftest.er1
7146 grep -v '^ *+' conftest.er1 >conftest.err
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
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 ac_cv_header_stdc=no
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7176 $EGREP "memchr" >/dev/null 2>&1; then
7179 ac_cv_header_stdc=no
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
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "free" >/dev/null 2>&1; then
7200 ac_cv_header_stdc=no
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
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7219 #if ((' ' & 0x0FF) == 0x020)
7220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
7230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7235 for (i = 0; i < 256; i++)
7236 if (XOR (islower (i), ISLOWER (i))
7237 || toupper (i) != TOUPPER (i))
7242 rm -f conftest$ac_exeext
7243 if { (ac_try="$ac_link"
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_link") 2>&5
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;;
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_try") 2>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
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
7269 ac_cv_header_stdc=no
7271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
7281 cat >>confdefs.h <<\_ACEOF
7282 #define STDC_HEADERS 1
7287 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
7306 cat >conftest.$ac_ext <<_ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 $ac_includes_default
7314 #include <$ac_header>
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7325 grep -v '^ *+' conftest.er1 >conftest.err
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"
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 eval "$as_ac_Header=no"
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
7357 for ac_header in dlfcn.h
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
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7373 #include <$ac_header>
7375 rm -f conftest.$ac_objext
7376 if { (ac_try="$ac_compile"
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382 (eval "$ac_compile") 2>conftest.er1
7384 grep -v '^ *+' conftest.er1 >conftest.err
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"
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 eval "$as_ac_Header=no"
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
7428 # Check whether --enable-shared was given.
7429 if test "${enable_shared+set}" = set; then
7430 enableval=$enable_shared; p=${PACKAGE-default}
7432 yes) enable_shared=yes ;;
7433 no) 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
7440 if test "X$pkg" = "X$p"; then
7461 # Check whether --with-pic was given.
7462 if test "${with_pic+set}" = set; then
7463 withval=$with_pic; pic_mode="$withval"
7469 test -z "$pic_mode" && pic_mode=default
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}
7481 yes) enable_fast_install=yes ;;
7482 no) enable_fast_install=no ;;
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
7489 if test "X$pkg" = "X$p"; then
7490 enable_fast_install=yes
7497 enable_fast_install=yes
7510 # This can be used to rebuild libtool when needed
7511 LIBTOOL_DEPS="$ltmain"
7513 # Always use our own libtool.
7514 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7541 test -z "$LN_S" && LN_S="ln -s"
7556 if test -n "${ZSH_VERSION+set}" ; then
7557 setopt NO_GLOB_SUBST
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
7565 rm -f .libs 2>/dev/null
7566 mkdir .libs 2>/dev/null
7567 if test -d .libs; then
7570 # MS-DOS does not allow filenames that begin with a dot.
7573 rmdir .libs 2>/dev/null
7575 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7576 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7577 objdir=$lt_cv_objdir
7583 cat >>confdefs.h <<_ACEOF
7584 #define LT_OBJDIR "$lt_cv_objdir/"
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
7597 export COLLECT_NAMES
7604 can_build_shared=yes
7606 # All known linkers require a `.a' archive for static linking (except MSVC,
7607 # which needs '.lib').
7610 with_gnu_ld="$lt_cv_prog_gnu_ld"
7613 old_CFLAGS="$CFLAGS"
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
7622 for cc_temp in $compiler""; do
7624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7630 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
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
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
7645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
7684 MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
7694 { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
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
7711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
7750 MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
7760 { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7774 # Use C for the default configuration in the libtool script
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
7784 # Source file extension for C test sources.
7787 # Object file extension for compiled C test sources.
7791 # Code to be used in simple compile tests
7792 lt_simple_compile_test_code="int some_variable = 0;"
7794 # Code to be used in simple link tests
7795 lt_simple_link_test_code='int main(){return(0);}'
7803 # If no C compiler was specified, use CC.
7806 # If no C compiler flags were specified, use CFLAGS.
7807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7809 # Allow CC to be a program name with arguments.
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
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`
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`
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
7836 lt_prog_compiler_no_builtin_flag=
7838 if test "$GCC" = yes; then
7839 case $cc_basename in
7841 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7843 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
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
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)
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
7881 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7882 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
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"
7897 lt_prog_compiler_wl=
7898 lt_prog_compiler_pic=
7899 lt_prog_compiler_static=
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; }
7904 if test "$GCC" = yes; then
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_static='-static'
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'
7920 # see comment about AmigaOS4 .so support
7921 lt_prog_compiler_pic='-fPIC'
7924 # FIXME: we need at least 68020 code to build shared libraries, but
7925 # adding the `-m68020' flag to GCC prevents building anything better,
7927 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7932 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7933 # PIC is the default for these OSes.
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'
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'
7951 # PIC is the default for Haiku.
7952 # The "-static" flag exists, but is broken.
7953 lt_prog_compiler_static=
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.
7965 lt_prog_compiler_pic='-fPIC'
7971 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7972 # Instead, we relocate shared libraries at runtime.
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
7983 # QNX uses GNU C++, but need to define -shared option too, otherwise
7985 lt_prog_compiler_pic='-fPIC -shared'
7989 if test -d /usr/nec; then
7990 lt_prog_compiler_pic=-Kconform_pic
7995 lt_prog_compiler_pic='-fPIC'
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'
8006 # PORTME Check for flag to pass linker flags through the system compiler.
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'
8014 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
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'
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
8033 lt_prog_compiler_pic='+Z'
8036 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8037 lt_prog_compiler_static='${wl}-a ${wl}archive'
8040 irix5* | irix6* | nonstopux*)
8041 lt_prog_compiler_wl='-Wl,'
8042 # PIC (with -KPIC) is the default.
8043 lt_prog_compiler_static='-non_shared'
8046 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8047 case $cc_basename in
8048 # old Intel for x86_64 which still supported -KPIC.
8050 lt_prog_compiler_wl='-Wl,'
8051 lt_prog_compiler_pic='-KPIC'
8052 lt_prog_compiler_static='-static'
8054 # icc used to be incompatible with GCC.
8055 # ICC 10 doesn't accept -KPIC any more.
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-fPIC'
8059 lt_prog_compiler_static='-static'
8061 # Lahey Fortran 8.1.
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='--shared'
8065 lt_prog_compiler_static='--static'
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'
8075 lt_prog_compiler_wl='-Wl,'
8076 # All Alpha code is PIC.
8077 lt_prog_compiler_static='-non_shared'
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'
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=''
8095 lt_prog_compiler_pic='-KPIC'
8096 lt_prog_compiler_static='-Bstatic'
8097 lt_prog_compiler_wl='-Wl,'
8105 lt_prog_compiler_pic='-KPIC'
8106 lt_prog_compiler_static='-Bstatic'
8110 # QNX uses GNU C++, but need to define -shared option too, otherwise
8112 lt_prog_compiler_pic='-fPIC -shared'
8115 osf3* | osf4* | osf5*)
8116 lt_prog_compiler_wl='-Wl,'
8117 # All OSF/1 code is PIC.
8118 lt_prog_compiler_static='-non_shared'
8122 lt_prog_compiler_static='-non_shared'
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 ';;
8132 lt_prog_compiler_wl='-Wl,';;
8137 lt_prog_compiler_wl='-Qoption ld '
8138 lt_prog_compiler_pic='-PIC'
8139 lt_prog_compiler_static='-Bstatic'
8142 sysv4 | sysv4.2uw2* | sysv4.3*)
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_pic='-KPIC'
8145 lt_prog_compiler_static='-Bstatic'
8149 if test -d /usr/nec ;then
8150 lt_prog_compiler_pic='-Kconform_pic'
8151 lt_prog_compiler_static='-Bstatic'
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'
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_can_build_shared=no
8167 lt_prog_compiler_pic='-pic'
8168 lt_prog_compiler_static='-Bstatic'
8172 lt_prog_compiler_can_build_shared=no
8178 # For platforms which do not support PIC, -DPIC is meaningless:
8180 lt_prog_compiler_pic=
8183 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8186 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8187 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8195 # Check to make sure the PIC flag actually works.
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
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)
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
8233 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8234 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8236 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8237 case $lt_prog_compiler_pic in
8239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8242 lt_prog_compiler_pic=
8243 lt_prog_compiler_can_build_shared=no
8254 # Check to make sure the static flag actually works.
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
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
8278 lt_cv_prog_compiler_static_works=yes
8282 LDFLAGS="$save_LDFLAGS"
8285 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8286 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8288 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8291 lt_prog_compiler_static=
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
8305 lt_cv_prog_compiler_c_o=no
8306 $RM -r conftest 2>/dev/null
8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
8347 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8348 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
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
8360 lt_cv_prog_compiler_c_o=no
8361 $RM -r conftest 2>/dev/null
8365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
8402 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8403 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
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; }
8415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
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;}
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; }
8439 allow_undefined_flag=
8440 always_export_symbols=no
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
8449 hardcode_direct_absolute=no
8450 hardcode_libdir_flag_spec=
8451 hardcode_libdir_flag_spec_ld=
8452 hardcode_libdir_separator=
8454 hardcode_shlibpath_var=unsupported
8456 link_all_deplibs=unknown
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
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=
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
8489 # we just hope/assume this is gcc and not c89 (= MSVC++)
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
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]*) ;;
8514 lt_use_gnu_ld_interface=yes
8519 lt_use_gnu_ld_interface=yes
8524 if test "$lt_use_gnu_ld_interface" = yes; then
8525 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
8538 whole_archive_flag_spec=
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 ;;
8550 # See if GNU ld supports shared libraries.
8553 # On AIX/PPC, the GNU linker is very broken
8554 if test "$host_cpu" != ia64; then
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.
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=''
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
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'
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'
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;
8612 echo EXPORTS > $output_objdir/$soname.def;
8613 cat $export_symbols >> $output_objdir/$soname.def;
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'
8622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623 link_all_deplibs=yes
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'
8641 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
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)
8648 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8649 && test "$tmp_diet" = no
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'
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'
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
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' ;;
8687 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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'
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'
8717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
8727 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
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.
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'
8747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8748 case `$LD -v 2>&1` in
8749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
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.
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'
8779 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_shlibpath_var=no
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'
8795 if test "$ld_shlibs" = no; then
8797 hardcode_libdir_flag_spec=
8798 export_dynamic_flag_spec=
8799 whole_archive_flag_spec=
8802 # PORTME fill in a description of your system's linker (not GNU ld)
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
8814 hardcode_direct=unsupported
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'
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'
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'
8835 aix_use_runtimelinking=no
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
8850 exp_sym_flag='-bexport'
8851 no_entry_flag='-bnoentry'
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.
8862 hardcode_direct_absolute=yes
8863 hardcode_libdir_separator=':'
8864 link_all_deplibs=yes
8865 file_list_spec='${wl}-f,'
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
8875 # We have reworked collect2
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=
8889 shared_flag='-shared'
8890 if test "$aix_use_runtimelinking" = yes; then
8891 shared_flag="$shared_flag "'${wl}-G'
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:
8900 if test "$aix_use_runtimelinking" = yes; then
8901 shared_flag='${wl}-G'
8903 shared_flag='${wl}-bM:SRE'
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
8918 cat >conftest.$ac_ext <<_ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (ac_try="$ac_link"
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_link") 2>conftest.er1
8942 grep -v '^ *+' conftest.er1 >conftest.err
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
8952 lt_aix_libpath_sed='
8953 /Import File Strings/,/^$/ {
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"`
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
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
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"
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"
8983 # Determine the default libpath from the value encoded in an
8985 cat >conftest.$ac_ext <<_ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_link") 2>conftest.er1
9009 grep -v '^ *+' conftest.er1 >conftest.err
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
9019 lt_aix_libpath_sed='
9020 /Import File Strings/,/^$/ {
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"`
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
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
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'
9051 # Exported symbols can be pulled into shared objects from archives
9052 whole_archive_flag_spec='$convenience'
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'
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=''
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
9077 export_dynamic_flag_spec=-rdynamic
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.
9089 # Tell ltmain to make .dll files, not .so files.
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
9101 darwin* | rhapsody*)
9104 archive_cmds_need_lc=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\"`'
9111 whole_archive_flag_spec=''
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 ;;
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}"
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
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
9147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9148 hardcode_libdir_flag_spec='-R$libdir'
9150 hardcode_shlibpath_var=no
9153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9157 hardcode_minus_L=yes
9158 hardcode_shlibpath_var=no
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'
9166 hardcode_shlibpath_var=no
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'
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'
9175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9176 hardcode_libdir_separator=:
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'
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'
9189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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=:
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
9205 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9208 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9211 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9214 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9223 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
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
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
9250 lt_cv_prog_compiler__b=yes
9254 LDFLAGS="$save_LDFLAGS"
9257 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9258 echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; }
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'
9263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9269 if test "$with_gnu_ld" = no; then
9270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271 hardcode_libdir_separator=:
9276 hardcode_shlibpath_var=no
9280 hardcode_direct_absolute=yes
9281 export_dynamic_flag_spec='${wl}-E'
9283 # hardcode_minus_L: Not really in the search PATH,
9284 # but as the default location of the library.
9285 hardcode_minus_L=yes
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
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_link") 2>conftest.er1
9311 grep -v '^ *+' conftest.er1 >conftest.err
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'
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330 conftest$ac_exeext conftest.$ac_ext
9331 LDFLAGS="$save_LDFLAGS"
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'
9336 archive_cmds_need_lc='no'
9337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338 hardcode_libdir_separator=:
9340 link_all_deplibs=yes
9344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9349 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_shlibpath_var=no
9355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358 hardcode_libdir_separator=:
9359 hardcode_shlibpath_var=no
9366 if test -f /usr/libexec/ld.so; then
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'
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'
9382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
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'
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'
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'
9408 archive_cmds_need_lc='no'
9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410 hardcode_libdir_separator=:
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'
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'
9424 # Both c and cxx compiler support -rpath directly
9425 hardcode_libdir_flag_spec='-rpath $libdir'
9427 archive_cmds_need_lc='no'
9428 hardcode_libdir_separator=:
9432 no_undefined_flag=' -z defs'
9433 if test "$GCC" = yes; then
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'
9439 case `$CC -V 2>&1` in
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'
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'
9454 hardcode_libdir_flag_spec='-R$libdir'
9455 hardcode_shlibpath_var=no
9457 solaris2.[0-5] | solaris2.[0-5].*) ;;
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'
9466 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9470 link_all_deplibs=yes
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'
9479 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9481 hardcode_libdir_flag_spec='-L$libdir'
9483 hardcode_minus_L=yes
9484 hardcode_shlibpath_var=no
9488 case $host_vendor in
9490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491 hardcode_direct=yes # is this really true???
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'
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
9505 runpath_var='LD_RUN_PATH'
9506 hardcode_shlibpath_var=no
9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_shlibpath_var=no
9512 export_dynamic_flag_spec='-Bexport'
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
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'
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'
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'
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
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'
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'
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'
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
9577 if test x$host_vendor = xsni; then
9579 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9580 export_dynamic_flag_spec='${wl}-Blargedynsym'
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
9590 with_gnu_ld=$with_gnu_ld
9607 # Do we need to explicitly link libc?
9609 case "x$archive_cmds_need_lc" in
9611 # Assume -lc should be added
9612 archive_cmds_need_lc=yes
9614 if test "$enable_shared" = yes && test "$GCC" = yes; then
9615 case $archive_cmds in
9617 # FIXME: we may have to deal with multi-command sequences.
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
9629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632 (eval $ac_compile) 2>&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } 2>conftest.err; then
9638 libobjs=conftest.$ac_objext
9640 wl=$lt_prog_compiler_wl
9641 pic_flag=$lt_prog_compiler_pic
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
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }
9655 lt_cv_archive_cmds_need_lc=no
9657 lt_cv_archive_cmds_need_lc=yes
9659 allow_undefined_flag=$lt_save_allow_undefined_flag
9661 cat conftest.err 1>&5
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
9831 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9832 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9834 if test "$GCC" = yes; then
9836 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9837 *) lt_awk_arg="/^libraries:/" ;;
9840 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9841 *) lt_sed_strip_eq="s,=/,/,g" ;;
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
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'`
9853 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
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"
9864 test -d "$lt_sys_path" && \
9865 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9868 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9869 BEGIN {RS=" "; FS="/|\n";} {
9872 for (lt_i = NF; lt_i > 0; lt_i--) {
9873 if ($lt_i != "" && $lt_i != ".") {
9874 if ($lt_i == "..") {
9877 if (lt_count == 0) {
9878 lt_foo="/" $lt_i lt_foo;
9885 if (lt_foo != "") { lt_freq[lt_foo]++; }
9886 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9888 # AWK program above erroneously prepends '/' to C:/dos/paths
9891 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9892 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9894 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9899 libname_spec='lib$name'
9907 shlibpath_overrides_runpath=unknown
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
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
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9922 shlibpath_var=LIBPATH
9924 # AIX 3 has no versioning support, so we append a major version to the name.
9925 soname_spec='${libname}${release}${shared_ext}$major'
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
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.
9944 aix4 | aix4.[01] | aix4.[01].*)
9945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9947 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
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}'
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'
9968 shlibpath_var=LIBPATH
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}'
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'
9988 library_names_spec='${libname}${shared_ext}'
9989 dynamic_linker="$host_os ld.so"
9990 shlibpath_var=LIBRARY_PATH
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
10007 cygwin* | mingw* | pw32* | cegcc*)
10008 version_type=windows
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 \$?;
10026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10027 dlpath=$dir/\$dldll~
10029 shlibpath_overrides_runpath=yes
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}'
10036 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10039 # MinGW DLLs use traditional 'lib' prefix
10040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
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}'
10050 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10053 dynamic_linker='Win32 ld.exe'
10054 # FIXME: first we should search . and the directory the executable is in
10058 darwin* | rhapsody*)
10059 dynamic_linker="$host_os dyld"
10060 version_type=darwin
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`'
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'
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
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`
10093 freebsd[123]*) objformat=aout ;;
10094 *) objformat=elf ;;
10097 version_type=freebsd-$objformat
10098 case $version_type in
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10109 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=yes
10114 freebsd3.[01]* | freebsdelf3.[01]*)
10115 shlibpath_overrides_runpath=yes
10116 hardcode_into_libs=yes
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
10123 *) # from 4.6 on, and DragonFly
10124 shlibpath_overrides_runpath=yes
10125 hardcode_into_libs=yes
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
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
10153 hpux9* | hpux10* | hpux11*)
10154 # Give a soname corresponding to the major version so that dld.sl refuses to
10155 # link against other versions.
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"
10171 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
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
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
10213 irix5* | irix6* | nonstopux*)
10215 nonstopux*) version_type=nonstopux ;;
10217 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
10228 irix5* | nonstopux*)
10229 libsuff= shlibsuff=
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;;
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
10250 # No shared lib support for Linux oldld, aout, or coff.
10251 linux*oldld* | linux*aout* | linux*coff*)
10255 # This must be Linux ELF.
10256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
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
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
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
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
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;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_link") 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
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
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
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
10326 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
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
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"
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'
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'
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'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
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
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'
10387 sys_lib_dlsearch_path_spec="/usr/lib"
10389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10392 *) need_version=no ;;
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
10399 openbsd2.[89] | openbsd2.[89].*)
10400 shlibpath_overrides_runpath=no
10403 shlibpath_overrides_runpath=yes
10407 shlibpath_overrides_runpath=yes
10412 libname_spec='$name'
10415 library_names_spec='$libname${shared_ext} $libname.a'
10416 dynamic_linker='OS/2 ld.exe'
10417 shlibpath_var=LIBPATH
10420 osf3* | osf4* | osf5*)
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"
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'
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
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
10467 shlibpath_overrides_runpath=no
10469 runpath_var=LD_RUN_PATH
10477 shlibpath_overrides_runpath=no
10478 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10484 if test -d /usr/nec ;then
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
10492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10493 version_type=freebsd-elf
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'
10504 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10511 sys_lib_dlsearch_path_spec='/usr/lib'
10515 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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
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
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
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"
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"
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"
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; }
10646 if test -n "$hardcode_libdir_flag_spec" ||
10647 test -n "$runpath_var" ||
10648 test "X$hardcode_automatic" = "Xyes" ; then
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
10660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10661 hardcode_action=immediate
10664 # We cannot hardcode anything, or else we can only hardcode existing
10666 hardcode_action=unsupported
10668 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10669 echo "${ECHO_T}$hardcode_action" >&6; }
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
10686 if test "x$enable_dlopen" != xyes; then
10687 enable_dlopen=unknown
10688 enable_dlopen_self=unknown
10689 enable_dlopen_self_static=unknown
10696 lt_cv_dlopen="load_add_on"
10698 lt_cv_dlopen_self=yes
10701 mingw* | pw32* | cegcc*)
10702 lt_cv_dlopen="LoadLibrary"
10707 lt_cv_dlopen="dlopen"
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
10718 ac_check_lib_save_LIBS=$LIBS
10720 cat >conftest.$ac_ext <<_ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
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. */
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;;
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_link") 2>conftest.er1
10751 grep -v '^ *+' conftest.er1 >conftest.err
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
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ac_cv_lib_dl_dlopen=no
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
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"
10778 lt_cv_dlopen="dyld"
10780 lt_cv_dlopen_self=yes
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
10792 cat >conftest.$ac_ext <<_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
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. */
10808 # include <limits.h>
10810 # include <assert.h>
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. */
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
10832 return shl_load ();
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;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_link") 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
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
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10860 ac_cv_func_shl_load=no
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864 conftest$ac_exeext conftest.$ac_ext
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"
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
10876 ac_check_lib_save_LIBS=$LIBS
10878 cat >conftest.$ac_ext <<_ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
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. */
10895 return shl_load ();
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;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_link") 2>conftest.er1
10909 grep -v '^ *+' conftest.er1 >conftest.err
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
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_cv_lib_dld_shl_load=no
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
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"
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
10940 cat >conftest.$ac_ext <<_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
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. */
10956 # include <limits.h>
10958 # include <assert.h>
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. */
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
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;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_link") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
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
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 ac_cv_func_dlopen=no
11011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11012 conftest$ac_exeext conftest.$ac_ext
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"
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
11024 ac_check_lib_save_LIBS=$LIBS
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
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. */
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;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_link") 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
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
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 ac_cv_lib_dl_dlopen=no
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
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"
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
11088 ac_check_lib_save_LIBS=$LIBS
11089 LIBS="-lsvld $LIBS"
11090 cat >conftest.$ac_ext <<_ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
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. */
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;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_link") 2>conftest.er1
11121 grep -v '^ *+' conftest.er1 >conftest.err
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
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 ac_cv_lib_svld_dlopen=no
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
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"
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
11152 ac_check_lib_save_LIBS=$LIBS
11154 cat >conftest.$ac_ext <<_ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
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. */
11171 return dld_link ();
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;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_link") 2>conftest.er1
11185 grep -v '^ *+' conftest.er1 >conftest.err
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
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_cv_lib_dld_dld_link=no
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
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"
11230 if test "x$lt_cv_dlopen" != xno; then
11236 case $lt_cv_dlopen in
11238 save_CPPFLAGS="$CPPFLAGS"
11239 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11241 save_LDFLAGS="$LDFLAGS"
11242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11245 LIBS="$lt_cv_dlopen_libs $LIBS"
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
11252 if test "$cross_compiling" = yes; then :
11253 lt_cv_dlopen_self=cross
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"
11268 # define LT_DLGLOBAL RTLD_GLOBAL
11271 # define LT_DLGLOBAL DL_GLOBAL
11273 # define LT_DLGLOBAL 0
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
11281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11284 # define LT_DLLAZY_OR_NOW DL_LAZY
11287 # define LT_DLLAZY_OR_NOW RTLD_NOW
11290 # define LT_DLLAZY_OR_NOW DL_NOW
11292 # define LT_DLLAZY_OR_NOW 0
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")));
11305 void fnord () { int i=42; }
11308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11309 int status = $lt_dlunknown;
11313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11316 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11317 else puts (dlerror ());
11319 /* dlclose (self); */
11327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328 (eval $ac_link) 2>&5
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
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 ;;
11340 # compilation failed
11341 lt_cv_dlopen_self=no
11348 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11349 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
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
11358 if test "$cross_compiling" = yes; then :
11359 lt_cv_dlopen_self_static=cross
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"
11374 # define LT_DLGLOBAL RTLD_GLOBAL
11377 # define LT_DLGLOBAL DL_GLOBAL
11379 # define LT_DLGLOBAL 0
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
11387 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11390 # define LT_DLLAZY_OR_NOW DL_LAZY
11393 # define LT_DLLAZY_OR_NOW RTLD_NOW
11396 # define LT_DLLAZY_OR_NOW DL_NOW
11398 # define LT_DLLAZY_OR_NOW 0
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")));
11411 void fnord () { int i=42; }
11414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11415 int status = $lt_dlunknown;
11419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11423 else puts (dlerror ());
11425 /* dlclose (self); */
11433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434 (eval $ac_link) 2>&5
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
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 ;;
11446 # compilation failed
11447 lt_cv_dlopen_self_static=no
11454 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11455 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11458 CPPFLAGS="$save_CPPFLAGS"
11459 LDFLAGS="$save_LDFLAGS"
11464 case $lt_cv_dlopen_self in
11465 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11466 *) enable_dlopen_self=unknown ;;
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 ;;
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; }
11501 # FIXME - insert some real tests, host_os isn't really good enough
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; }
11510 { echo "$as_me:$LINENO: result: no" >&5
11511 echo "${ECHO_T}no" >&6; }
11515 { echo "$as_me:$LINENO: result: no" >&5
11516 echo "${ECHO_T}no" >&6; }
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; }
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
11542 # On AIX, shared libraries and static libraries use the same namespace, and
11543 # are all built from PIC.
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'
11554 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11555 test "$enable_shared" = yes && enable_static=no
11559 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11560 echo "${ECHO_T}$enable_shared" >&6; }
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; }
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
11593 ac_config_commands="$ac_config_commands libtool"
11598 # Only expand once:
11602 target=$save_target
11604 if test "$enable_static" = yes; then
11605 SASL_STATIC_LIBS=libsasl2.a
11610 # Check whether --enable-staticdlopen was given.
11611 if test "${enable_staticdlopen+set}" = set; then
11612 enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
11614 enable_staticdlopen=no
11618 if test "$enable_staticdlopen" = yes; then
11620 cat >>confdefs.h <<\_ACEOF
11621 #define TRY_DLOPEN_WHEN_STATIC
11626 if test "$ac_cv_c_compiler_gnu" = yes; then
11627 CFLAGS="-Wall -W ${CFLAGS}"
11631 # Check whether --with-purecov was given.
11632 if test "${with_purecov+set}" = set; then
11633 withval=$with_purecov;
11636 if test "$with_purecov" = yes; then
11637 for ac_prog in purecov
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
11646 if test -n "$PURECOV"; then
11647 ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
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
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; }
11671 { echo "$as_me:$LINENO: result: no" >&5
11672 echo "${ECHO_T}no" >&6; }
11676 test -n "$PURECOV" && break
11681 # Check whether --with-purify was given.
11682 if test "${with_purify+set}" = set; then
11683 withval=$with_purify;
11686 if test "$with_purify" = yes; then
11687 for ac_prog in purify
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
11696 if test -n "$PURIFY"; then
11697 ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
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
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; }
11721 { echo "$as_me:$LINENO: result: no" >&5
11722 echo "${ECHO_T}no" >&6; }
11726 test -n "$PURIFY" && break
11731 # Check whether --enable-java was given.
11732 if test "${enable_java+set}" = set; then
11733 enableval=$enable_java; enable_java=$enableval
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
11748 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
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
11766 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
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; }
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11780 for ac_prog in javah kaffeh
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
11791 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
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
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; }
11817 { echo "$as_me:$LINENO: result: no" >&5
11818 echo "${ECHO_T}no" >&6; }
11822 test -n "$JAVAH" && break
11824 test -n "$JAVAH" || JAVAH="no"
11826 for ac_prog in javadoc
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
11835 if test -n "$JAVADOC"; then
11836 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
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
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; }
11860 { echo "$as_me:$LINENO: result: no" >&5
11861 echo "${ECHO_T}no" >&6; }
11865 test -n "$JAVADOC" && break
11867 test -n "$JAVADOC" || JAVADOC=":"
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;}
11875 # Make distcheck work
11880 if test "$enable_java" = yes; then
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
11896 if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
11897 sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
11899 java_base=`echo $JAVAC | sed 's,/bin.*,'','`
11902 # Check whether --with-javabase was given.
11903 if test "${with_javabase+set}" = set; then
11904 withval=$with_javabase; java_base=$withval
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"
11915 sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
11919 JAVA_INCLUDES=$sasl_cv_java_includes
11921 { echo "$as_me:$LINENO: result: ok" >&5
11922 echo "${ECHO_T}ok" >&6; }
11926 JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
11927 JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
11930 if test "$enable_sample" = yes; then
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
11947 cat >conftest.$ac_ext <<_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
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. */
11963 # include <limits.h>
11965 # include <assert.h>
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. */
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
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;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
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
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_cv_func_connect=no
12018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12019 conftest$ac_exeext conftest.$ac_ext
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
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
12031 ac_check_lib_save_LIBS=$LIBS
12033 cat >conftest.$ac_ext <<_ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
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. */
12046 char gethostbyname ();
12050 return gethostbyname ();
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;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_link") 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
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
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_cv_lib_nsl_gethostbyname=no
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
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"
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
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-lsocket $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
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. */
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;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_link") 2>conftest.er1
12129 grep -v '^ *+' conftest.er1 >conftest.err
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
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 ac_cv_lib_socket_connect=no
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
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"
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
12165 cat >conftest.$ac_ext <<_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
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. */
12181 # include <limits.h>
12183 # include <assert.h>
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. */
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
12205 return res_search ();
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;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_link") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
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
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_func_res_search=no
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237 conftest$ac_exeext conftest.$ac_ext
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
12244 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
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>
12258 #include <resolv.h>
12263 const char host[12]="openafs.org";
12265 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
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;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_link") 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
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"
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12299 conftest$ac_exeext conftest.$ac_ext
12303 LIBS="$LIB_SOCKET $save_LIBS"
12306 for ac_func in dn_expand dns_lookup
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
12314 cat >conftest.$ac_ext <<_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
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. */
12330 # include <limits.h>
12332 # include <assert.h>
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. */
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
12354 return $ac_func ();
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;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_link") 2>conftest.er1
12368 grep -v '^ *+' conftest.er1 >conftest.err
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"
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 eval "$as_ac_var=no"
12385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12386 conftest$ac_exeext conftest.$ac_ext
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
12405 # Check whether --with-dbpath was given.
12406 if test "${with_dbpath+set}" = set; then
12407 withval=$with_dbpath; dbpath=$withval
12409 dbpath=/etc/sasldb2
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; }
12417 cat >>confdefs.h <<_ACEOF
12418 #define SASL_DB_PATH "$dbpath"
12422 cmu_save_LIBS="$LIBS"
12424 # Check whether --with-dblib was given.
12425 if test "${with_dblib+set}" = set; then
12426 withval=$with_dblib; dblib=$withval
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
12438 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
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
12446 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
12458 cmu_save_CPPFLAGS=$CPPFLAGS
12460 if test -d $with_bdb_inc; then
12461 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
12462 BDB_INCADD="-I$with_bdb_inc"
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
12473 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12474 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
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
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
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;;
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_compile") 2>conftest.er1
12497 grep -v '^ *+' conftest.er1 >conftest.err
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
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ac_header_compiler=no
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; }
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
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
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;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
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
12544 ac_header_preproc=yes
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 ac_header_preproc=no
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; }
12556 # So? What about this header?
12557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
12586 ac_cv_header_db_h=$ac_header_preproc
12588 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12589 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
12592 if test $ac_cv_header_db_h = yes; then
12594 BDB_SAVE_LDFLAGS=$LDFLAGS
12596 if test -d $with_bdb_lib; then
12598 # this is CMU ADD LIBPATH TO
12599 if test "$andrew_runpath_switch" = "none" ; then
12600 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
12602 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
12606 # this is CMU ADD LIBPATH TO
12607 if test "$andrew_runpath_switch" = "none" ; then
12608 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
12610 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
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
12620 LIBS="$saved_LIBS -l$dbname"
12621 cat >conftest.$ac_ext <<_ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12631 db_create(NULL, NULL, 0);
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;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_link") 2>conftest.er1
12645 grep -v '^ *+' conftest.er1 >conftest.err
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
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
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
12666 if test "$dblib" = "no"; then
12667 LIBS="$saved_LIBS -ldb"
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12678 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
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;;
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_link") 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
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
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12710 conftest$ac_exeext conftest.$ac_ext
12714 LDFLAGS=$BDB_SAVE_LDFLAGS
12722 CPPFLAGS=$cmu_save_CPPFLAGS
12724 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
12725 SASL_DB_INC=$BDB_INCADD
12726 SASL_DB_LIB="${BDB_LIBADD}"
12730 # Check whether --with-gdbm was given.
12731 if test "${with_gdbm+set}" = set; then
12732 withval=$with_gdbm; with_gdbm="${withval}"
12736 case "$with_gdbm" in
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
12744 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
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
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 $ac_includes_default
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;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_compile") 2>conftest.er1
12768 grep -v '^ *+' conftest.er1 >conftest.err
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
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_header_compiler=no
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; }
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
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
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;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
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
12815 ac_header_preproc=yes
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_header_preproc=no
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; }
12827 # So? What about this header?
12828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
12857 ac_cv_header_gdbm_h=$ac_header_preproc
12859 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12860 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
12863 if test $ac_cv_header_gdbm_h = yes; then
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
12870 ac_check_lib_save_LIBS=$LIBS
12871 LIBS="-lgdbm $LIBS"
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
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. */
12889 return gdbm_open ();
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;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_link") 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
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
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_lib_gdbm_gdbm_open=no
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
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"
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"
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
12955 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
12956 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
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
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 $ac_includes_default
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;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_compile") 2>conftest.er1
12979 grep -v '^ *+' conftest.er1 >conftest.err
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
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 ac_header_compiler=no
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; }
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
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
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;;
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13018 grep -v '^ *+' conftest.er1 >conftest.err
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
13026 ac_header_preproc=yes
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13031 ac_header_preproc=no
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; }
13038 # So? What about this header?
13039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
13068 ac_cv_header_ndbm_h=$ac_header_preproc
13070 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13071 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13074 if test $ac_cv_header_ndbm_h = yes; then
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
13081 ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-lndbm $LIBS"
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
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. */
13100 return dbm_open ();
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;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_link") 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
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
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13128 ac_cv_lib_ndbm_dbm_open=no
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
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"
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
13146 cat >conftest.$ac_ext <<_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
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. */
13162 # include <limits.h>
13164 # include <assert.h>
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. */
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
13186 return dbm_open ();
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;;
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_link") 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
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
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 ac_cv_func_dbm_open=no
13217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13218 conftest$ac_exeext conftest.$ac_ext
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
13240 cmu_save_CPPFLAGS=$CPPFLAGS
13242 if test -d $with_bdb_inc; then
13243 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
13244 BDB_INCADD="-I$with_bdb_inc"
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
13255 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13256 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
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
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13267 $ac_includes_default
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;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
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
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13292 ac_header_compiler=no
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; }
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
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
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;;
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13318 grep -v '^ *+' conftest.er1 >conftest.err
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
13326 ac_header_preproc=yes
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13331 ac_header_preproc=no
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; }
13338 # So? What about this header?
13339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
13368 ac_cv_header_db_h=$ac_header_preproc
13370 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13371 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
13374 if test $ac_cv_header_db_h = yes; then
13376 BDB_SAVE_LDFLAGS=$LDFLAGS
13378 if test -d $with_bdb_lib; then
13380 # this is CMU ADD LIBPATH TO
13381 if test "$andrew_runpath_switch" = "none" ; then
13382 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
13384 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
13388 # this is CMU ADD LIBPATH TO
13389 if test "$andrew_runpath_switch" = "none" ; then
13390 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
13392 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
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
13402 LIBS="$saved_LIBS -l$dbname"
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13413 db_create(NULL, NULL, 0);
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;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_link") 2>conftest.er1
13427 grep -v '^ *+' conftest.er1 >conftest.err
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
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
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
13448 if test "$dblib" = "no"; then
13449 LIBS="$saved_LIBS -ldb"
13450 cat >conftest.$ac_ext <<_ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13460 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
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;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_link") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
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
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13492 conftest$ac_exeext conftest.$ac_ext
13496 LDFLAGS=$BDB_SAVE_LDFLAGS
13504 CPPFLAGS=$cmu_save_CPPFLAGS
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
13513 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13514 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
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
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 $ac_includes_default
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;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_compile") 2>conftest.er1
13537 grep -v '^ *+' conftest.er1 >conftest.err
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
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13550 ac_header_compiler=no
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; }
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
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
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;;
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
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
13584 ac_header_preproc=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_header_preproc=no
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; }
13596 # So? What about this header?
13597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
13626 ac_cv_header_ndbm_h=$ac_header_preproc
13628 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13629 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13632 if test $ac_cv_header_ndbm_h = yes; then
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
13639 ac_check_lib_save_LIBS=$LIBS
13640 LIBS="-lndbm $LIBS"
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
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. */
13658 return dbm_open ();
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;;
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_link") 2>conftest.er1
13672 grep -v '^ *+' conftest.er1 >conftest.err
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
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_cv_lib_ndbm_dbm_open=no
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
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"
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
13712 cat >conftest.$ac_ext <<_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
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. */
13728 # include <limits.h>
13730 # include <assert.h>
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. */
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
13752 return dbm_open ();
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;;
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_link") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
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
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ac_cv_func_dbm_open=no
13783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13784 conftest$ac_exeext conftest.$ac_ext
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
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
13803 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13804 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
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
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 $ac_includes_default
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;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_compile") 2>conftest.er1
13827 grep -v '^ *+' conftest.er1 >conftest.err
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
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 ac_header_compiler=no
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; }
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
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
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;;
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
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
13874 ac_header_preproc=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_header_preproc=no
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; }
13886 # So? What about this header?
13887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
13916 ac_cv_header_gdbm_h=$ac_header_preproc
13918 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13919 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
13922 if test $ac_cv_header_gdbm_h = yes; then
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
13929 ac_check_lib_save_LIBS=$LIBS
13930 LIBS="-lgdbm $LIBS"
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
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. */
13948 return gdbm_open ();
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;;
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_link") 2>conftest.er1
13962 grep -v '^ *+' conftest.er1 >conftest.err
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
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_cv_lib_gdbm_gdbm_open=no
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
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
13987 SASL_DB_LIB="-lgdbm"
13999 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
14000 SASL_DB_INC=$BDB_INCADD
14001 SASL_DB_LIB="${BDB_LIBADD}"
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; }; }
14017 LIBS="$cmu_save_LIBS"
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; }
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"
14032 SASL_MECHS="$SASL_MECHS libsasldb.la"
14034 cat >>confdefs.h <<\_ACEOF
14040 SASL_MECHS="$SASL_MECHS libsasldb.la"
14042 cat >>confdefs.h <<\_ACEOF
14048 SASL_MECHS="$SASL_MECHS libsasldb.la"
14050 cat >>confdefs.h <<\_ACEOF
14051 #define SASL_BERKELEYDB
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"
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"
14072 cat >>confdefs.h <<\_ACEOF
14073 #define STATIC_SASLDB
14077 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
14078 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
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='#'
14095 NO_SASL_DB_MANS_TRUE='#'
14096 NO_SASL_DB_MANS_FALSE=
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
14108 # Disable if Berkeley DB is not used
14109 if test "$dblib" != berkeley; then
14113 if test "$keep_db_open" = yes; then
14115 cat >>confdefs.h <<\_ACEOF
14116 #define KEEP_DB_OPEN
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; }
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
14130 ac_check_lib_save_LIBS=$LIBS
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
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. */
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;;
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_link") 2>conftest.er1
14163 grep -v '^ *+' conftest.er1 >conftest.err
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
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_cv_lib_dl_dlopen=no
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
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
14196 # Check whether --with-devrandom was given.
14197 if test "${with_devrandom+set}" = set; then
14198 withval=$with_devrandom; devrandom=$withval
14200 devrandom=/dev/random
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; }
14208 cat >>confdefs.h <<_ACEOF
14209 #define SASL_DEV_RANDOM "$devrandom"
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
14223 if test -n "$NM"; then
14224 ac_cv_prog_NM="$NM" # Let the user override the test.
14226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14227 for as_dir in $PATH
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
14244 if test -n "$NM"; then
14245 { echo "$as_me:$LINENO: result: $NM" >&5
14246 echo "${ECHO_T}$NM" >&6; }
14248 { echo "$as_me:$LINENO: result: no" >&5
14249 echo "${ECHO_T}no" >&6; }
14253 test -n "$NM" && break
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
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
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
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
14286 if test "$cross_compiling" = yes; then
14287 { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
14288 echo "$as_me: WARNING: cross-compiler" >&2;}
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
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); }
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;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_link") 2>&5
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;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 sasl_cv_dlsym_adds_uscore=yes
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
14331 ( exit $ac_status )
14332 sasl_cv_dlsym_adds_uscore=no
14334 cat >>confdefs.h <<\_ACEOF
14335 #define DLSYM_NEEDS_UNDERSCORE
14339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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; }
14352 for ac_func in syslog
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
14360 cat >conftest.$ac_ext <<_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
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. */
14376 # include <limits.h>
14378 # include <assert.h>
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. */
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
14400 return $ac_func ();
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;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
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"
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 eval "$as_ac_var=no"
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432 conftest$ac_exeext conftest.$ac_ext
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
14447 # Check whether --with-pam was given.
14448 if test "${with_pam+set}" = set; then
14449 withval=$with_pam; with_pam=$withval
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"
14461 for ac_header in security/pam_appl.h pam/pam_appl.h
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
14470 ac_res=`eval echo '${'$as_ac_Header'}'`
14471 { echo "$as_me:$LINENO: result: $ac_res" >&5
14472 echo "${ECHO_T}$ac_res" >&6; }
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
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>
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;;
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_compile") 2>conftest.er1
14495 grep -v '^ *+' conftest.er1 >conftest.err
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
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14508 ac_header_compiler=no
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; }
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
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <$ac_header>
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;;
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
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
14542 ac_header_preproc=yes
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ac_header_preproc=no
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; }
14554 # So? What about this header?
14555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
14584 eval "$as_ac_Header=\$ac_header_preproc"
14586 ac_res=`eval echo '${'$as_ac_Header'}'`
14587 { echo "$as_me:$LINENO: result: $ac_res" >&5
14588 echo "${ECHO_T}$ac_res" >&6; }
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
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
14606 cat >conftest.$ac_ext <<_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
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. */
14622 # include <limits.h>
14624 # include <assert.h>
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. */
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
14646 return pam_start ();
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;;
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_link") 2>conftest.er1
14660 grep -v '^ *+' conftest.er1 >conftest.err
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
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_cv_func_pam_start=no
14677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14678 conftest$ac_exeext conftest.$ac_ext
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
14686 cat >conftest.$ac_ext <<_ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14693 #include <sys/types.h>
14694 #ifdef HAVE_PAM_PAM_APPL_H
14695 #include <pam/pam_appl.h>
14697 #ifdef HAVE_SECURITY_PAM_H
14698 #include <security/pam_appl.h>
14704 const char *service="foo";
14705 const char *user="bar";
14706 pam_handle_t *pamh;
14707 struct pam_conv *conv;
14709 baz = pam_start(service, user, conv, &pamh);
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;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_link") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
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
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14743 conftest$ac_exeext conftest.$ac_ext
14747 LIBS="$cmu_save_LIBS $LIBPAM"
14751 # Check whether --with-saslauthd was given.
14752 if test "${with_saslauthd+set}" = set; then
14753 withval=$with_saslauthd; with_saslauthd=$withval
14758 if test "$with_saslauthd" != no; then
14759 if test "$with_saslauthd" = yes; then
14760 with_saslauthd="/var/state/saslauthd"
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_SASLAUTHD
14768 cat >>confdefs.h <<_ACEOF
14769 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
14773 if test "$with_saslauthd" != no; then
14775 SASLAUTHD_FALSE='#'
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; }
14787 # Check whether --with-authdaemond was given.
14788 if test "${with_authdaemond+set}" = set; then
14789 withval=$with_authdaemond; with_authdaemon=$withval
14791 with_authdaemon=yes
14794 if test "$with_authdaemon" != no; then
14795 if test "$with_authdaemon" = yes; then
14796 with_authdaemon="/dev/null"
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_AUTHDAEMON
14804 cat >>confdefs.h <<_ACEOF
14805 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
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; }
14815 # Check whether --with-pwcheck was given.
14816 if test "${with_pwcheck+set}" = set; then
14817 withval=$with_pwcheck; with_pwcheck=$withval
14822 if test "$with_pwcheck" != no; then
14823 if test "$with_pwcheck" = yes; then
14824 with_pwcheck=/var/pwcheck
14827 cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_PWCHECK
14832 cat >>confdefs.h <<_ACEOF
14833 #define PWCHECKDIR "$with_pwcheck"
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
14841 cat >conftest.$ac_ext <<_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
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. */
14857 # include <limits.h>
14859 # include <assert.h>
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. */
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
14881 return getspnam ();
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;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_link") 2>conftest.er1
14895 grep -v '^ *+' conftest.er1 >conftest.err
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
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ac_cv_func_getspnam=no
14912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14913 conftest$ac_exeext conftest.$ac_ext
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"
14920 PWCHECKMETH="getpwnam"
14925 if test "$with_pwcheck" != no; then
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; }
14939 # Check whether --with-ipctype was given.
14940 if test "${with_ipctype+set}" = set; then
14941 withval=$with_ipctype; with_ipctype=$withval
14943 with_ipctype="unix"
14946 IPCTYPE=$with_ipctype
14949 if test "$with_ipctype" = "doors"; then
14952 cat >>confdefs.h <<\_ACEOF
14959 # Check whether --enable-alwaystrue was given.
14960 if test "${enable_alwaystrue+set}" = set; then
14961 enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
14963 enable_alwaystrue=no
14966 if test "$enable_alwaystrue" = yes; then
14968 cat >>confdefs.h <<\_ACEOF
14969 #define HAVE_ALWAYSTRUE
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; }
14978 # Check whether --enable-checkapop was given.
14979 if test "${enable_checkapop+set}" = set; then
14980 enableval=$enable_checkapop; checkapop=$enableval
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; }
14992 cat >>confdefs.h <<\_ACEOF
14993 #define DO_SASL_CHECKAPOP
14997 { echo "$as_me:$LINENO: result: disabled" >&5
14998 echo "${ECHO_T}disabled" >&6; }
15001 # Check whether --enable-cram was given.
15002 if test "${enable_cram+set}" = set; then
15003 enableval=$enable_cram; cram=$enableval
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"
15019 cat >>confdefs.h <<\_ACEOF
15020 #define STATIC_CRAMMD5
15025 { echo "$as_me:$LINENO: result: disabled" >&5
15026 echo "${ECHO_T}disabled" >&6; }
15030 # Check whether --with-lib-subdir was given.
15031 if test "${with_lib_subdir+set}" = set; then
15032 withval=$with_lib_subdir;
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
15040 cat >conftest.$ac_ext <<_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_;
15051 if ((ac__type_new_ *) 0)
15053 if (sizeof (ac__type_new_))
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;;
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_compile") 2>conftest.er1
15068 grep -v '^ *+' conftest.er1 >conftest.err
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
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15087 echo "${ECHO_T}$ac_cv_type_long" >&6; }
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
15098 if test "$cross_compiling" = yes; then
15099 # Depending upon the size, compute the lo and hi bounds.
15100 cat >conftest.$ac_ext <<_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_;
15111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
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;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_compile") 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
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
15137 cat >conftest.$ac_ext <<_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_;
15148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_compile") 2>conftest.er1
15164 grep -v '^ *+' conftest.er1 >conftest.err
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
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_lo=`expr $ac_mid + 1`
15178 if test $ac_lo -le $ac_mid; then
15182 ac_mid=`expr 2 '*' $ac_mid + 1`
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15191 cat >conftest.$ac_ext <<_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_;
15202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_compile") 2>conftest.er1
15218 grep -v '^ *+' conftest.er1 >conftest.err
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
15228 cat >conftest.$ac_ext <<_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_;
15239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_compile") 2>conftest.er1
15255 grep -v '^ *+' conftest.er1 >conftest.err
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
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_hi=`expr '(' $ac_mid ')' - 1`
15269 if test $ac_mid -le $ac_hi; then
15273 ac_mid=`expr 2 '*' $ac_mid`
15276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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_;
15303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_compile") 2>conftest.er1
15319 grep -v '^ *+' conftest.er1 >conftest.err
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
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_lo=`expr '(' $ac_mid ')' + 1`
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; }
15346 ac_cv_sizeof_long=0
15350 cat >conftest.$ac_ext <<_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_)); }
15361 #include <stdlib.h>
15366 FILE *f = fopen ("conftest.val", "w");
15369 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15371 long int i = longval ();
15372 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15374 fprintf (f, "%ld\n", i);
15378 unsigned long int i = ulongval ();
15379 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15381 fprintf (f, "%lu\n", i);
15383 return ferror (f) || fclose (f) != 0;
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;;
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_link") 2>&5
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;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_cv_sizeof_long=`cat conftest.val`
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
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; }; }
15423 ac_cv_sizeof_long=0
15426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15430 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15431 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
15435 cat >>confdefs.h <<_ACEOF
15436 #define SIZEOF_LONG $ac_cv_sizeof_long
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
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
15452 if test $ac_cv_sizeof_long -eq 8 ; then
15453 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
15456 ac_cv_cmu_lib_subdir=$with_lib_subdir
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
15467 # Check whether --with-openssl was given.
15468 if test "${with_openssl+set}" = set; then
15469 withval=$with_openssl; with_openssl=$withval
15475 save_CPPFLAGS=$CPPFLAGS
15476 save_LDFLAGS=$LDFLAGS
15478 if test -d $with_openssl; then
15479 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
15481 # this is CMU ADD LIBPATH
15482 if test "$andrew_runpath_switch" = "none" ; then
15483 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15485 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15490 case "$with_openssl" in
15492 with_openssl="no";;
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
15500 ac_check_lib_save_LIBS=$LIBS
15501 LIBS="-lrsaref $LIBS"
15502 cat >conftest.$ac_ext <<_ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
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. */
15515 char RSAPublicEncrypt ();
15519 return RSAPublicEncrypt ();
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;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_link") 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
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
15544 echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15547 ac_cv_lib_rsaref_RSAPublicEncrypt=no
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
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
15563 ac_check_lib_save_LIBS=$LIBS
15564 LIBS="-lRSAglue $LIBS"
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
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. */
15578 char RSAPublicEncrypt ();
15582 return RSAPublicEncrypt ();
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;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_link") 2>conftest.er1
15596 grep -v '^ *+' conftest.er1 >conftest.err
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
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
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
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"
15622 LIB_RSAREF="-lrsaref"
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
15636 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15637 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
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
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>
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;;
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_compile") 2>conftest.er1
15660 grep -v '^ *+' conftest.er1 >conftest.err
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
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_header_compiler=no
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; }
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
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 #include <openssl/evp.h>
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;;
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15699 grep -v '^ *+' conftest.er1 >conftest.err
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
15707 ac_header_preproc=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_header_preproc=no
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; }
15719 # So? What about this header?
15720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
15749 ac_cv_header_openssl_evp_h=$ac_header_preproc
15751 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15752 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
15755 if test $ac_cv_header_openssl_evp_h = yes; then
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
15762 ac_check_lib_save_LIBS=$LIBS
15763 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15764 cat >conftest.$ac_ext <<_ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
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. */
15777 char EVP_DigestInit ();
15781 return EVP_DigestInit ();
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;;
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_link") 2>conftest.er1
15795 grep -v '^ *+' conftest.er1 >conftest.err
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
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_cv_lib_crypto_EVP_DigestInit=no
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
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
15832 if test "$with_openssl" != "no"; then
15834 cat >>confdefs.h <<\_ACEOF
15835 #define HAVE_OPENSSL
15839 CPPFLAGS=$save_CPPFLAGS
15840 LDFLAGS=$save_LDFLAGS
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; }
15850 # Check whether --with-des was given.
15851 if test "${with_des+set}" = set; then
15852 withval=$with_des; with_des=$withval
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"
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
15871 ac_check_lib_save_LIBS=$LIBS
15872 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15873 cat >conftest.$ac_ext <<_ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
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. */
15886 char des_cbc_encrypt ();
15890 return des_cbc_encrypt ();
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;;
15901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902 (eval "$ac_link") 2>conftest.er1
15904 grep -v '^ *+' conftest.er1 >conftest.err
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
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15918 ac_cv_lib_crypto_des_cbc_encrypt=no
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
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
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
15935 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
15936 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
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
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>
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;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_compile") 2>conftest.er1
15959 grep -v '^ *+' conftest.er1 >conftest.err
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
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 ac_header_compiler=no
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; }
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
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 #include <openssl/des.h>
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;;
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15998 grep -v '^ *+' conftest.er1 >conftest.err
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
16006 ac_header_preproc=yes
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 ac_header_preproc=no
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; }
16018 # So? What about this header?
16019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
16048 ac_cv_header_openssl_des_h=$ac_header_preproc
16050 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16051 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16054 if test $ac_cv_header_openssl_des_h = yes; then
16056 cat >>confdefs.h <<\_ACEOF
16057 #define WITH_SSL_DES
16060 LIB_DES="-lcrypto";
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
16078 ac_check_lib_save_LIBS=$LIBS
16079 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
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. */
16093 char DES_cbc_encrypt ();
16097 return DES_cbc_encrypt ();
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;;
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_link") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
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
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_cv_lib_crypto_DES_cbc_encrypt=no
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
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
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
16142 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16143 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
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
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>
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;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_compile") 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
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
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_header_compiler=no
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; }
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
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 #include <openssl/des.h>
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;;
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16205 grep -v '^ *+' conftest.er1 >conftest.err
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
16213 ac_header_preproc=yes
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16218 ac_header_preproc=no
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; }
16225 # So? What about this header?
16226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
16255 ac_cv_header_openssl_des_h=$ac_header_preproc
16257 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16258 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16261 if test $ac_cv_header_openssl_des_h = yes; then
16263 cat >>confdefs.h <<\_ACEOF
16264 #define WITH_SSL_DES
16267 LIB_DES="-lcrypto";
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
16287 ac_check_lib_save_LIBS=$LIBS
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
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. */
16302 char des_cbc_encrypt ();
16306 return des_cbc_encrypt ();
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;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_link") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
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
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_cv_lib_des_des_cbc_encrypt=no
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
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
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
16358 ac_check_lib_save_LIBS=$LIBS
16359 LIBS="-ldes425 $LIBS"
16360 cat >conftest.$ac_ext <<_ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
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. */
16373 char des_cbc_encrypt ();
16377 return des_cbc_encrypt ();
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;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_link") 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
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
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16405 ac_cv_lib_des425_des_cbc_encrypt=no
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
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";
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
16429 ac_check_lib_save_LIBS=$LIBS
16430 LIBS="-ldes524 $LIBS"
16431 cat >conftest.$ac_ext <<_ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
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. */
16444 char des_cbc_encrypt ();
16448 return des_cbc_encrypt ();
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;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_link") 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
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
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16476 ac_cv_lib_des524_des_cbc_encrypt=no
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
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";
16494 if test "$with_des" = no; then
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
16502 ac_check_lib_save_LIBS=$LIBS
16503 LIBS="-lrsaref $LIBS"
16504 cat >conftest.$ac_ext <<_ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
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. */
16517 char RSAPublicEncrypt ();
16521 return RSAPublicEncrypt ();
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;;
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_link") 2>conftest.er1
16535 grep -v '^ *+' conftest.er1 >conftest.err
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
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_cv_lib_rsaref_RSAPublicEncrypt=no
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
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
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
16570 ac_check_lib_save_LIBS=$LIBS
16571 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16572 cat >conftest.$ac_ext <<_ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
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. */
16585 char des_cbc_encrypt ();
16589 return des_cbc_encrypt ();
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;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_link") 2>conftest.er1
16603 grep -v '^ *+' conftest.er1 >conftest.err
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
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_cv_lib_crypto_des_cbc_encrypt=no
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
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
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
16634 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16635 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
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
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>
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;;
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_compile") 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
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
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 ac_header_compiler=no
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; }
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
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 #include <openssl/des.h>
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;;
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16697 grep -v '^ *+' conftest.er1 >conftest.err
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
16705 ac_header_preproc=yes
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16710 ac_header_preproc=no
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; }
16717 # So? What about this header?
16718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
16747 ac_cv_header_openssl_des_h=$ac_header_preproc
16749 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16750 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16753 if test $ac_cv_header_openssl_des_h = yes; then
16755 cat >>confdefs.h <<\_ACEOF
16756 #define WITH_SSL_DES
16759 LIB_DES="-lcrypto";
16773 if test "$with_des" != no; then
16775 cat >>confdefs.h <<\_ACEOF
16784 # Check whether --enable-digest was given.
16785 if test "${enable_digest+set}" = set; then
16786 enableval=$enable_digest; digest=$enableval
16792 if test "$digest" != no; then
16793 if test -d $digest; then
16794 CPPFLAGS="$CPPFLAGS -I$digest/include"
16795 LDFLAGS="$LDFLAGS -L$digest/lib"
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;}
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"
16813 cat >>confdefs.h <<\_ACEOF
16814 #define STATIC_DIGESTMD5
16819 { echo "$as_me:$LINENO: result: disabled" >&5
16820 echo "${ECHO_T}disabled" >&6; }
16823 # Check whether --enable-otp was given.
16824 if test "${enable_otp+set}" = set; then
16825 enableval=$enable_otp; otp=$enableval
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;}
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"
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"
16849 cat >>confdefs.h <<\_ACEOF
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}"
16862 case "$with_opie" in
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
16869 ac_check_lib_save_LIBS=$LIBS
16870 LIBS="-lopie $LIBS"
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
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. */
16884 char opiechallenge ();
16888 return opiechallenge ();
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;;
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
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
16913 echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_lib_opie_opiechallenge=no
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
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
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
16933 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
16934 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
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
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 $ac_includes_default
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;;
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_compile") 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
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
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_header_compiler=no
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; }
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
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
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;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1 >conftest.err
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
17004 ac_header_preproc=yes
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 ac_header_preproc=no
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; }
17016 # So? What about this header?
17017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
17046 ac_cv_header_opie_h=$ac_header_preproc
17048 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
17049 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
17052 if test $ac_cv_header_opie_h = yes; then
17065 if test -d $with_opie; then
17066 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17067 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
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; }
17079 if test "$with_opie" != no; then
17081 cat >>confdefs.h <<\_ACEOF
17085 OTP_LIBS="$OTP_LIBS -lopie"
17091 { echo "$as_me:$LINENO: result: disabled" >&5
17092 echo "${ECHO_T}disabled" >&6; }
17095 # Check whether --enable-srp was given.
17096 if test "${enable_srp+set}" = set; then
17097 enableval=$enable_srp; srp=$enableval
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;}
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"
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"
17121 cat >>confdefs.h <<\_ACEOF
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
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; }
17141 cat >>confdefs.h <<\_ACEOF
17142 #define DO_SRP_SETPASS
17146 { echo "$as_me:$LINENO: result: disabled" >&5
17147 echo "${ECHO_T}disabled" >&6; }
17152 { echo "$as_me:$LINENO: result: disabled" >&5
17153 echo "${ECHO_T}disabled" >&6; }
17159 # Check whether --enable-krb4 was given.
17160 if test "${enable_krb4+set}" = set; then
17161 enableval=$enable_krb4; krb4=$enableval
17167 if test "$krb4" != no; then
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
17174 ac_check_lib_save_LIBS=$LIBS
17175 LIBS="-lresolv $LIBS"
17176 cat >conftest.$ac_ext <<_ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
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. */
17189 char res_search ();
17193 return res_search ();
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;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17207 grep -v '^ *+' conftest.er1 >conftest.err
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
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ac_cv_lib_resolv_res_search=no
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
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
17235 LIBS="-lresolv $LIBS"
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
17247 for krbhloc in include/kerberosIV include/kerberos include
17249 if test -f ${krb4}/${krbhloc}/krb.h ; then
17250 cyrus_krbinclude=${krb4}/${krbhloc}
17256 { echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
17257 echo "${ECHO_T}$cyrus_krbinclude" >&6; }
17259 if test -n "${cyrus_krbinclude}"; then
17260 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
17262 LDFLAGS="$LDFLAGS -L$krb4/lib"
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
17272 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17273 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
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
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 $ac_includes_default
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;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_compile") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
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
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ac_header_compiler=no
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; }
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
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
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;;
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17335 grep -v '^ *+' conftest.er1 >conftest.err
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
17343 ac_header_preproc=yes
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 ac_header_preproc=no
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; }
17355 # So? What about this header?
17356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
17385 ac_cv_header_krb_h=$ac_header_preproc
17387 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17388 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
17391 if test $ac_cv_header_krb_h = yes; then
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
17398 ac_check_lib_save_LIBS=$LIBS
17399 LIBS="-lcom_err $LIBS"
17400 cat >conftest.$ac_ext <<_ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
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. */
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;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17431 grep -v '^ *+' conftest.er1 >conftest.err
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
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 ac_cv_lib_com_err_com_err=no
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
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
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
17461 ac_check_lib_save_LIBS=$LIBS
17462 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
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. */
17476 char krb_mk_priv ();
17480 return krb_mk_priv ();
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;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
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
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 ac_cv_lib_krb_krb_mk_priv=no
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
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"
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
17530 ac_check_lib_save_LIBS=$LIBS
17531 LIBS="-lkrb $LIB_DES $LIBS"
17532 cat >conftest.$ac_ext <<_ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
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. */
17545 char krb_mk_priv ();
17549 return krb_mk_priv ();
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;;
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_link") 2>conftest.er1
17563 grep -v '^ *+' conftest.er1 >conftest.err
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
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 ac_cv_lib_krb_krb_mk_priv=no
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
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"
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
17606 ac_check_lib_save_LIBS=$LIBS
17607 LIBS="-lkrb4 $LIB_DES $LIBS"
17608 cat >conftest.$ac_ext <<_ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
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. */
17621 char krb_mk_priv ();
17625 return krb_mk_priv ();
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;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_link") 2>conftest.er1
17639 grep -v '^ *+' conftest.er1 >conftest.err
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
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 ac_cv_lib_krb4_krb_mk_priv=no
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
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
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;}
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;}
17680 if test "$krb4" != no; then
17681 cmu_save_LIBS="$LIBS"
17682 LIBS="$LIBS $SASL_KRB_LIB"
17684 for ac_func in krb_get_err_text
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
17692 cat >conftest.$ac_ext <<_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
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. */
17708 # include <limits.h>
17710 # include <assert.h>
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. */
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
17732 return $ac_func ();
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;;
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_link") 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
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"
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 eval "$as_ac_var=no"
17763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17764 conftest$ac_exeext conftest.$ac_ext
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
17777 LIBS="$cmu_save_LIBS"
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"
17789 cat >>confdefs.h <<\_ACEOF
17790 #define STATIC_KERBEROS4
17794 cat >>confdefs.h <<\_ACEOF
17798 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
17800 { echo "$as_me:$LINENO: result: disabled" >&5
17801 echo "${ECHO_T}disabled" >&6; }
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
17810 cat >conftest.$ac_ext <<_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
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. */
17826 # include <limits.h>
17828 # include <assert.h>
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. */
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
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;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_link") 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
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
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_cv_func_crypt=no
17881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17882 conftest$ac_exeext conftest.$ac_ext
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
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
17894 ac_check_lib_save_LIBS=$LIBS
17895 LIBS="-lcrypt $LIBS"
17896 cat >conftest.$ac_ext <<_ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h. */
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. */
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;;
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_link") 2>conftest.er1
17927 grep -v '^ *+' conftest.er1 >conftest.err
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
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17941 ac_cv_lib_crypt_crypt=no
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
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
17962 # Check whether --enable-gssapi was given.
17963 if test "${enable_gssapi+set}" = set; then
17964 enableval=$enable_gssapi; gssapi=$enableval
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
17978 if test "$gssapi" != no; then
17991 # When should we use __sunos?
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; }; }
18009 cmu_saved_CPPFLAGS=$CPPFLAGS
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"
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"
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
18034 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18035 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
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
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>
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;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_compile") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
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
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_compiler=no
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; }
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
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18087 #include <gssapi.h>
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;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
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
18105 ac_header_preproc=yes
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_header_preproc=no
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; }
18117 # So? What about this header?
18118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
18147 ac_cv_header_gssapi_h=$ac_header_preproc
18149 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18150 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
18153 if test $ac_cv_header_gssapi_h = yes; then
18155 cat >>confdefs.h <<\_ACEOF
18156 #define HAVE_GSSAPI_H
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
18166 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18167 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
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
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>
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;;
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_compile") 2>conftest.er1
18190 grep -v '^ *+' conftest.er1 >conftest.err
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
18200 echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18203 ac_header_compiler=no
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; }
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
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18219 #include <gssapi/gssapi.h>
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;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
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
18237 ac_header_preproc=yes
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 ac_header_preproc=no
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; }
18249 # So? What about this header?
18250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
18279 ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
18281 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18282 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
18285 if test $ac_cv_header_gssapi_gssapi_h = yes; then
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
18297 for ac_header in gssapi/gssapi_ext.h
18299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 ac_res=`eval echo '${'$as_ac_Header'}'`
18307 { echo "$as_me:$LINENO: result: $ac_res" >&5
18308 echo "${ECHO_T}$ac_res" >&6; }
18310 # Is the header compilable?
18311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18313 cat >conftest.$ac_ext <<_ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18319 $ac_includes_default
18320 #include <$ac_header>
18322 rm -f conftest.$ac_objext
18323 if { (ac_try="$ac_compile"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_compile") 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } && {
18336 test -z "$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 } && test -s conftest.$ac_objext; then
18339 ac_header_compiler=yes
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_header_compiler=no
18347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18349 echo "${ECHO_T}$ac_header_compiler" >&6; }
18351 # Is the header present?
18352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18354 cat >conftest.$ac_ext <<_ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 #include <$ac_header>
18362 if { (ac_try="$ac_cpp conftest.$ac_ext"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18370 grep -v '^ *+' conftest.er1 >conftest.err
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } >/dev/null && {
18375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18376 test ! -s conftest.err
18378 ac_header_preproc=yes
18380 echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18383 ac_header_preproc=no
18386 rm -f conftest.err conftest.$ac_ext
18387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18388 echo "${ECHO_T}$ac_header_preproc" >&6; }
18390 # So? What about this header?
18391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18397 ac_header_preproc=yes
18400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 eval "$as_ac_Header=\$ac_header_preproc"
18422 ac_res=`eval echo '${'$as_ac_Header'}'`
18423 { echo "$as_me:$LINENO: result: $ac_res" >&5
18424 echo "${ECHO_T}$ac_res" >&6; }
18427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18428 cat >>confdefs.h <<_ACEOF
18429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18436 CPPFLAGS=$cmu_saved_CPPFLAGS
18440 if test "$gssapi" != no; then
18441 # We need to find out which gssapi implementation we are
18442 # using. Supported alternatives are: MIT Kerberos 5,
18443 # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
18444 # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
18445 # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
18447 # The choice is reflected in GSSAPIBASE_LIBS
18450 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
18451 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
18452 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18455 ac_check_lib_save_LIBS=$LIBS
18456 LIBS="-lresolv $LIBS"
18457 cat >conftest.$ac_ext <<_ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h. */
18464 /* Override any GCC internal prototype to avoid an error.
18465 Use char because int might match the return type of a GCC
18466 builtin and then its argument prototype would still apply. */
18470 char res_search ();
18474 return res_search ();
18479 rm -f conftest.$ac_objext conftest$ac_exeext
18480 if { (ac_try="$ac_link"
18481 case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_link") 2>conftest.er1
18488 grep -v '^ *+' conftest.er1 >conftest.err
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } && {
18493 test -z "$ac_c_werror_flag" ||
18494 test ! -s conftest.err
18495 } && test -s conftest$ac_exeext &&
18496 $as_test_x conftest$ac_exeext; then
18497 ac_cv_lib_resolv_res_search=yes
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 ac_cv_lib_resolv_res_search=no
18505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18506 conftest$ac_exeext conftest.$ac_ext
18507 LIBS=$ac_check_lib_save_LIBS
18509 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
18510 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
18511 if test $ac_cv_lib_resolv_res_search = yes; then
18512 cat >>confdefs.h <<_ACEOF
18513 #define HAVE_LIBRESOLV 1
18516 LIBS="-lresolv $LIBS"
18520 if test -d ${gssapi}; then
18521 gssapi_dir="${gssapi}/lib"
18522 GSSAPIBASE_LIBS="-L$gssapi_dir"
18523 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
18525 # FIXME: This is only used for building cyrus, and then only as
18526 # a real hack. it needs to be fixed.
18527 gssapi_dir="/usr/local/lib"
18530 # Check a full link against the Heimdal libraries.
18531 # If this fails, check a full link against the MIT libraries.
18532 # If this fails, check a full link against the CyberSafe libraries.
18533 # If this fails, check a full link against the Solaris 8 and up libgss.
18535 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
18537 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
18538 echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6; }
18539 if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18542 ac_check_lib_save_LIBS=$LIBS
18543 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
18544 cat >conftest.$ac_ext <<_ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18551 /* Override any GCC internal prototype to avoid an error.
18552 Use char because int might match the return type of a GCC
18553 builtin and then its argument prototype would still apply. */
18557 char gss_unwrap ();
18561 return gss_unwrap ();
18566 rm -f conftest.$ac_objext conftest$ac_exeext
18567 if { (ac_try="$ac_link"
18568 case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_link") 2>conftest.er1
18575 grep -v '^ *+' conftest.er1 >conftest.err
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && {
18580 test -z "$ac_c_werror_flag" ||
18581 test ! -s conftest.err
18582 } && test -s conftest$ac_exeext &&
18583 $as_test_x conftest$ac_exeext; then
18584 ac_cv_lib_gssapi_gss_unwrap=yes
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 ac_cv_lib_gssapi_gss_unwrap=no
18592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18593 conftest$ac_exeext conftest.$ac_ext
18594 LIBS=$ac_check_lib_save_LIBS
18596 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
18597 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6; }
18598 if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
18604 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18609 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
18610 # check for libkrb5support first
18611 { echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
18612 echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6; }
18613 if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 ac_check_lib_save_LIBS=$LIBS
18617 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
18618 cat >conftest.$ac_ext <<_ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18625 /* Override any GCC internal prototype to avoid an error.
18626 Use char because int might match the return type of a GCC
18627 builtin and then its argument prototype would still apply. */
18631 char krb5int_getspecific ();
18635 return krb5int_getspecific ();
18640 rm -f conftest.$ac_objext conftest$ac_exeext
18641 if { (ac_try="$ac_link"
18642 case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_link") 2>conftest.er1
18649 grep -v '^ *+' conftest.er1 >conftest.err
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } && {
18654 test -z "$ac_c_werror_flag" ||
18655 test ! -s conftest.err
18656 } && test -s conftest$ac_exeext &&
18657 $as_test_x conftest$ac_exeext; then
18658 ac_cv_lib_krb5support_krb5int_getspecific=yes
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 ac_cv_lib_krb5support_krb5int_getspecific=no
18666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18667 conftest$ac_exeext conftest.$ac_ext
18668 LIBS=$ac_check_lib_save_LIBS
18670 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
18671 echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
18672 if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
18673 K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
18678 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
18679 echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6; }
18680 if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18683 ac_check_lib_save_LIBS=$LIBS
18684 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
18685 cat >conftest.$ac_ext <<_ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18692 /* Override any GCC internal prototype to avoid an error.
18693 Use char because int might match the return type of a GCC
18694 builtin and then its argument prototype would still apply. */
18698 char gss_unwrap ();
18702 return gss_unwrap ();
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_link") 2>conftest.er1
18716 grep -v '^ *+' conftest.er1 >conftest.err
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } && {
18721 test -z "$ac_c_werror_flag" ||
18722 test ! -s conftest.err
18723 } && test -s conftest$ac_exeext &&
18724 $as_test_x conftest$ac_exeext; then
18725 ac_cv_lib_gssapi_krb5_gss_unwrap=yes
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 ac_cv_lib_gssapi_krb5_gss_unwrap=no
18733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18734 conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18737 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
18738 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
18739 if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
18745 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18750 # For Cybersafe one has to set a platform define in order to make compilation work
18751 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
18753 cmu_saved_CPPFLAGS=$CPPFLAGS
18754 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
18755 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
18756 if test -d "${gssapi}/appsec-rt/lib"; then
18757 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
18759 CPPFLAGS="$CPPFLAGS -D$platform"
18760 if test -d "${gssapi}/appsec-sdk/include"; then
18761 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
18766 # Check for CyberSafe with two libraries first, than fall back to a single
18767 # library (older CyberSafe)
18769 unset ac_cv_lib_gss_csf_gss_acq_user
18770 { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18771 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18772 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18775 ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18784 /* Override any GCC internal prototype to avoid an error.
18785 Use char because int might match the return type of a GCC
18786 builtin and then its argument prototype would still apply. */
18790 char csf_gss_acq_user ();
18794 return csf_gss_acq_user ();
18799 rm -f conftest.$ac_objext conftest$ac_exeext
18800 if { (ac_try="$ac_link"
18801 case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_link") 2>conftest.er1
18808 grep -v '^ *+' conftest.er1 >conftest.err
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } && {
18813 test -z "$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18815 } && test -s conftest$ac_exeext &&
18816 $as_test_x conftest$ac_exeext; then
18817 ac_cv_lib_gss_csf_gss_acq_user=yes
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 ac_cv_lib_gss_csf_gss_acq_user=no
18825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18826 conftest$ac_exeext conftest.$ac_ext
18827 LIBS=$ac_check_lib_save_LIBS
18829 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18830 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18831 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18832 gss_impl="cybersafe03"
18834 unset ac_cv_lib_gss_csf_gss_acq_user;
18835 { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18836 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18837 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 ac_check_lib_save_LIBS=$LIBS
18841 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
18842 cat >conftest.$ac_ext <<_ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18855 char csf_gss_acq_user ();
18859 return csf_gss_acq_user ();
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest$ac_exeext &&
18881 $as_test_x conftest$ac_exeext; then
18882 ac_cv_lib_gss_csf_gss_acq_user=yes
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_cv_lib_gss_csf_gss_acq_user=no
18890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18891 conftest$ac_exeext conftest.$ac_ext
18892 LIBS=$ac_check_lib_save_LIBS
18894 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18895 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18896 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18897 gss_impl="cybersafe"
18905 if test "$gss_failed" = "1"; then
18906 # Restore variables
18907 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
18908 CPPFLAGS=$cmu_saved_CPPFLAGS
18910 if test "$gss_impl" != "auto"; then
18916 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
18918 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
18919 echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6; }
18920 if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 ac_check_lib_save_LIBS=$LIBS
18924 LIBS="-lgss -lgss $LIBS"
18925 cat >conftest.$ac_ext <<_ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18932 /* Override any GCC internal prototype to avoid an error.
18933 Use char because int might match the return type of a GCC
18934 builtin and then its argument prototype would still apply. */
18938 char gss_unwrap ();
18942 return gss_unwrap ();
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && {
18961 test -z "$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18963 } && test -s conftest$ac_exeext &&
18964 $as_test_x conftest$ac_exeext; then
18965 ac_cv_lib_gss_gss_unwrap=yes
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_cv_lib_gss_gss_unwrap=no
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974 conftest$ac_exeext conftest.$ac_ext
18975 LIBS=$ac_check_lib_save_LIBS
18977 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
18978 echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6; }
18979 if test $ac_cv_lib_gss_gss_unwrap = yes; then
18985 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18990 if test "$gss_impl" = "mit"; then
18991 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
18992 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
18993 elif test "$gss_impl" = "heimdal"; then
18994 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
18995 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
18996 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}"
18997 elif test "$gss_impl" = "cybersafe03"; then
18998 # Version of CyberSafe with two libraries
18999 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
19000 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
19001 # there is no static libgss for CyberSafe
19002 GSSAPIBASE_STATIC_LIBS=none
19003 elif test "$gss_impl" = "cybersafe"; then
19004 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
19005 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
19006 # there is no static libgss for CyberSafe
19007 GSSAPIBASE_STATIC_LIBS=none
19008 elif test "$gss_impl" = "seam"; then
19009 GSSAPIBASE_LIBS=-lgss
19010 # there is no static libgss on Solaris 8 and up
19011 GSSAPIBASE_STATIC_LIBS=none
19012 elif test "$gss_impl" = "failed"; then
19015 GSSAPIBASE_STATIC_LIBS=
19016 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
19017 echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
19021 GSSAPIBASE_STATIC_LIBS=
19022 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
19023 echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
19028 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
19029 # in gssapi\rfckrb5.h
19031 if test "$gssapi" != "no"; then
19032 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
19033 cat >conftest.$ac_ext <<_ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #include <gssapi/gssapi.h>
19040 #ifdef GSS_C_NT_HOSTBASED_SERVICE
19041 hostbased_service_gss_nt_yes
19044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19045 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
19052 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
19053 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
19058 elif test "$ac_cv_header_gssapi_h" = "yes"; then
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19065 #include <gssapi.h>
19068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19069 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
19071 cat >>confdefs.h <<\_ACEOF
19072 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
19078 elif test "$ac_cv_header_gssapi_gssapi_h"; then
19079 cat >conftest.$ac_ext <<_ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19085 #include <gssapi/gssapi.h>
19088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19089 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
19100 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 #include <gssapi/gssapi.h>
19108 #ifdef GSS_C_NT_USER_NAME
19109 user_name_yes_gss_nt
19112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19113 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
19115 cat >>confdefs.h <<\_ACEOF
19116 #define HAVE_GSS_C_NT_USER_NAME
19120 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
19121 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
19125 elif test "$ac_cv_header_gssapi_h" = "yes"; then
19126 cat >conftest.$ac_ext <<_ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19132 #include <gssapi.h>
19135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19136 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
19138 cat >>confdefs.h <<\_ACEOF
19139 #define HAVE_GSS_C_NT_USER_NAME
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 #include <gssapi.h>
19154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19155 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
19160 elif test "$ac_cv_header_gssapi_gssapi_h"; then
19161 cat >conftest.$ac_ext <<_ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 #include <gssapi/gssapi.h>
19170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19171 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
19173 cat >>confdefs.h <<\_ACEOF
19174 #define HAVE_GSS_C_NT_USER_NAME
19180 cat >conftest.$ac_ext <<_ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 #include <gssapi/gssapi.h>
19189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19190 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
19199 { echo "$as_me:$LINENO: checking GSSAPI" >&5
19200 echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6; }
19201 if test "$gssapi" != no; then
19202 { echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
19203 echo "${ECHO_T}with implementation ${gss_impl}" >&6; }
19204 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
19205 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
19206 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19209 ac_check_lib_save_LIBS=$LIBS
19210 LIBS="-lresolv $LIBS"
19211 cat >conftest.$ac_ext <<_ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h. */
19218 /* Override any GCC internal prototype to avoid an error.
19219 Use char because int might match the return type of a GCC
19220 builtin and then its argument prototype would still apply. */
19224 char res_search ();
19228 return res_search ();
19233 rm -f conftest.$ac_objext conftest$ac_exeext
19234 if { (ac_try="$ac_link"
19235 case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_link") 2>conftest.er1
19242 grep -v '^ *+' conftest.er1 >conftest.err
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } && {
19247 test -z "$ac_c_werror_flag" ||
19248 test ! -s conftest.err
19249 } && test -s conftest$ac_exeext &&
19250 $as_test_x conftest$ac_exeext; then
19251 ac_cv_lib_resolv_res_search=yes
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 ac_cv_lib_resolv_res_search=no
19259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19260 conftest$ac_exeext conftest.$ac_ext
19261 LIBS=$ac_check_lib_save_LIBS
19263 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
19264 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
19265 if test $ac_cv_lib_resolv_res_search = yes; then
19266 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
19269 SASL_MECHS="$SASL_MECHS libgssapiv2.la"
19270 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
19271 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
19272 if test "$rfc5587" = "yes"; then
19273 SASL_MECHS="$SASL_MECHS libgs2.la"
19274 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
19275 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
19277 cmu_save_LIBS="$LIBS"
19278 LIBS="$LIBS $GSSAPIBASE_LIBS"
19280 for ac_func in gsskrb5_register_acceptor_identity
19282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 cat >conftest.$ac_ext <<_ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19296 #define $ac_func innocuous_$ac_func
19298 /* System header to define __stub macros and hopefully few prototypes,
19299 which can conflict with char $ac_func (); below.
19300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19301 <limits.h> exists even on freestanding compilers. */
19304 # include <limits.h>
19306 # include <assert.h>
19311 /* Override any GCC internal prototype to avoid an error.
19312 Use char because int might match the return type of a GCC
19313 builtin and then its argument prototype would still apply. */
19318 /* The GNU C library defines this for functions which it implements
19319 to always fail with ENOSYS. Some functions are actually named
19320 something starting with __ and the normal name is an alias. */
19321 #if defined __stub_$ac_func || defined __stub___$ac_func
19328 return $ac_func ();
19333 rm -f conftest.$ac_objext conftest$ac_exeext
19334 if { (ac_try="$ac_link"
19335 case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_link") 2>conftest.er1
19342 grep -v '^ *+' conftest.er1 >conftest.err
19344 cat conftest.err >&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } && {
19347 test -z "$ac_c_werror_flag" ||
19348 test ! -s conftest.err
19349 } && test -s conftest$ac_exeext &&
19350 $as_test_x conftest$ac_exeext; then
19351 eval "$as_ac_var=yes"
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19356 eval "$as_ac_var=no"
19359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19360 conftest$ac_exeext conftest.$ac_ext
19362 ac_res=`eval echo '${'$as_ac_var'}'`
19363 { echo "$as_me:$LINENO: result: $ac_res" >&5
19364 echo "${ECHO_T}$ac_res" >&6; }
19365 if test `eval echo '${'$as_ac_var'}'` = yes; then
19366 cat >>confdefs.h <<_ACEOF
19367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19373 LIBS="$cmu_save_LIBS"
19375 { echo "$as_me:$LINENO: result: disabled" >&5
19376 echo "${ECHO_T}disabled" >&6; }
19382 if test "$gssapi" != "no"; then
19384 cat >>confdefs.h <<\_ACEOF
19385 #define STATIC_GSSAPIV2
19389 if test "$gss_impl" = "mit"; then
19390 mutex_default="yes"
19392 { echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
19393 echo $ECHO_N "checking to use mutexes aroung GSS calls... $ECHO_C" >&6; }
19394 # Check whether --enable-gss_mutexes was given.
19395 if test "${enable_gss_mutexes+set}" = set; then
19396 enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
19398 use_gss_mutexes=$mutex_default
19401 if test $use_gss_mutexes = "yes"; then
19403 cat >>confdefs.h <<\_ACEOF
19404 #define GSS_USE_MUTEXES
19408 { echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
19409 echo "${ECHO_T}$use_gss_mutexes" >&6; }
19415 # Check whether --enable-plain was given.
19416 if test "${enable_plain+set}" = set; then
19417 enableval=$enable_plain; plain=$enableval
19424 if test "$plain" != no; then
19425 if test "$cmu_have_crypt" = yes; then
19426 PLAIN_LIBS=$LIB_CRYPT
19431 { echo "$as_me:$LINENO: checking PLAIN" >&5
19432 echo $ECHO_N "checking PLAIN... $ECHO_C" >&6; }
19433 if test "$plain" != no; then
19434 { echo "$as_me:$LINENO: result: enabled" >&5
19435 echo "${ECHO_T}enabled" >&6; }
19436 SASL_MECHS="$SASL_MECHS libplain.la"
19437 if test "$enable_static" = yes; then
19438 SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
19439 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
19441 cat >>confdefs.h <<\_ACEOF
19442 #define STATIC_PLAIN
19447 { echo "$as_me:$LINENO: result: disabled" >&5
19448 echo "${ECHO_T}disabled" >&6; }
19452 # Check whether --enable-anon was given.
19453 if test "${enable_anon+set}" = set; then
19454 enableval=$enable_anon; anon=$enableval
19460 { echo "$as_me:$LINENO: checking ANONYMOUS" >&5
19461 echo $ECHO_N "checking ANONYMOUS... $ECHO_C" >&6; }
19462 if test "$anon" != no; then
19463 { echo "$as_me:$LINENO: result: enabled" >&5
19464 echo "${ECHO_T}enabled" >&6; }
19465 SASL_MECHS="$SASL_MECHS libanonymous.la"
19466 if test "$enable_static" = yes; then
19467 SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
19468 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
19470 cat >>confdefs.h <<\_ACEOF
19471 #define STATIC_ANONYMOUS
19476 { echo "$as_me:$LINENO: result: disabled" >&5
19477 echo "${ECHO_T}disabled" >&6; }
19480 # Check whether --enable-login was given.
19481 if test "${enable_login+set}" = set; then
19482 enableval=$enable_login; login=$enableval
19488 { echo "$as_me:$LINENO: checking LOGIN" >&5
19489 echo $ECHO_N "checking LOGIN... $ECHO_C" >&6; }
19490 if test "$login" != no; then
19491 { echo "$as_me:$LINENO: result: enabled" >&5
19492 echo "${ECHO_T}enabled" >&6; }
19493 SASL_MECHS="$SASL_MECHS liblogin.la"
19494 if test "$enable_static" = yes; then
19495 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
19496 SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
19498 cat >>confdefs.h <<\_ACEOF
19499 #define STATIC_LOGIN
19504 { echo "$as_me:$LINENO: result: disabled" >&5
19505 echo "${ECHO_T}disabled" >&6; }
19508 # Check whether --enable-ntlm was given.
19509 if test "${enable_ntlm+set}" = set; then
19510 enableval=$enable_ntlm; ntlm=$enableval
19516 if test "$with_openssl" = no; then
19517 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
19518 echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
19522 { echo "$as_me:$LINENO: checking NTLM" >&5
19523 echo $ECHO_N "checking NTLM... $ECHO_C" >&6; }
19524 if test "$ntlm" != no; then
19525 { echo "$as_me:$LINENO: result: enabled" >&5
19526 echo "${ECHO_T}enabled" >&6; }
19527 NTLM_LIBS="-lcrypto $LIB_RSAREF"
19530 SASL_MECHS="$SASL_MECHS libntlm.la"
19531 if test "$enable_static" = yes; then
19532 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
19533 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
19535 cat >>confdefs.h <<\_ACEOF
19536 #define STATIC_NTLM
19541 { echo "$as_me:$LINENO: result: disabled" >&5
19542 echo "${ECHO_T}disabled" >&6; }
19545 # Check whether --enable-passdss was given.
19546 if test "${enable_passdss+set}" = set; then
19547 enableval=$enable_passdss; passdss=$enableval
19553 if test "$with_openssl" = no; then
19554 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
19555 echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
19559 { echo "$as_me:$LINENO: checking PASSDSS" >&5
19560 echo $ECHO_N "checking PASSDSS... $ECHO_C" >&6; }
19561 if test "$passdss" != no; then
19562 { echo "$as_me:$LINENO: result: enabled" >&5
19563 echo "${ECHO_T}enabled" >&6; }
19564 PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
19567 SASL_MECHS="$SASL_MECHS libpassdss.la"
19568 if test "$enable_static" = yes; then
19569 SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
19570 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
19572 cat >>confdefs.h <<\_ACEOF
19573 #define STATIC_PASSDSS
19578 { echo "$as_me:$LINENO: result: disabled" >&5
19579 echo "${ECHO_T}disabled" >&6; }
19583 # make the option show up so people don't whine that it is only in the
19584 # saslauthd configure script --help
19586 # Check whether --with-ldap was given.
19587 if test "${with_ldap+set}" = set; then
19588 withval=$with_ldap;
19596 # Check whether --enable-sql was given.
19597 if test "${enable_sql+set}" = set; then
19598 enableval=$enable_sql; sql=$enableval
19604 { echo "$as_me:$LINENO: checking SQL" >&5
19605 echo $ECHO_N "checking SQL... $ECHO_C" >&6; }
19606 if test "$sql" != no; then
19607 { echo "$as_me:$LINENO: result: enabled" >&5
19608 echo "${ECHO_T}enabled" >&6; }
19609 SASL_MECHS="$SASL_MECHS libsql.la"
19610 if test "$enable_static" = yes; then
19611 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
19612 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
19614 cat >>confdefs.h <<\_ACEOF
19620 { echo "$as_me:$LINENO: result: disabled" >&5
19621 echo "${ECHO_T}disabled" >&6; }
19625 # Check whether --with-mysql was given.
19626 if test "${with_mysql+set}" = set; then
19627 withval=$with_mysql; with_mysql=$withval
19633 # find location of library
19634 # presuming if one given then correct
19635 if test "${with_mysql}" = "yes"; then
19636 with_mysql=notfound
19637 for mysqlloc in lib/mysql lib mysql/lib
19639 if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
19640 with_mysql="${prefix}"
19642 elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
19643 with_mysql="/usr/local"
19645 elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
19654 case "$with_mysql" in
19656 notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
19657 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
19659 if test -d ${with_mysql}/lib/mysql; then
19661 # this is CMU ADD LIBPATH TO
19662 if test "$andrew_runpath_switch" = "none" ; then
19663 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
19665 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
19668 elif test -d ${with_mysql}/mysql/lib; then
19670 # this is CMU ADD LIBPATH TO
19671 if test "$andrew_runpath_switch" = "none" ; then
19672 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
19674 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
19677 elif test -d ${with_mysql}/lib; then
19679 # this is CMU ADD LIBPATH TO
19680 if test "$andrew_runpath_switch" = "none" ; then
19681 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
19683 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
19688 # this is CMU ADD LIBPATH TO
19689 if test "$andrew_runpath_switch" = "none" ; then
19690 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
19692 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
19697 LIB_MYSQL_DIR=$LIB_MYSQL
19698 LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
19700 if test -d ${with_mysql}/include/mysql; then
19701 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
19702 elif test -d ${with_mysql}/mysql/include; then
19703 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
19704 elif test -d ${with_mysql}/include; then
19705 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
19707 CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
19710 save_LDFLAGS=$LDFLAGS
19711 LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
19712 { echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
19713 echo $ECHO_N "checking for mysql_select_db in -lmysqlclient... $ECHO_C" >&6; }
19714 if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lmysqlclient $LIBS"
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19732 char mysql_select_db ();
19736 return mysql_select_db ();
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19750 grep -v '^ *+' conftest.er1 >conftest.err
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19759 ac_cv_lib_mysqlclient_mysql_select_db=yes
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_cv_lib_mysqlclient_mysql_select_db=no
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19769 LIBS=$ac_check_lib_save_LIBS
19771 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
19772 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
19773 if test $ac_cv_lib_mysqlclient_mysql_select_db = yes; then
19775 cat >>confdefs.h <<\_ACEOF
19780 { echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
19781 echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
19785 LDFLAGS=$save_LDFLAGS;;
19791 # Check whether --with-pgsql was given.
19792 if test "${with_pgsql+set}" = set; then
19793 withval=$with_pgsql; with_pgsql=$withval
19799 # find location of library
19800 # presuing if one given then correct
19801 if test "${with_pgsql}" = "yes"; then
19802 with_pgsql=notfound
19803 for pgsqlloc in lib/pgsql lib pgsql/lib
19805 if test -f ${prefix}/${pgsqlloc}/libpq.a; then
19806 with_pgsql="${prefix}"
19808 elif test -f /usr/local/${pgsqlloc}/libpq.a; then
19809 with_pgsql="/usr/local"
19811 elif test -f /usr/${pgsqlloc}/libpq.a; then
19820 case "$with_pgsql" in
19822 notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
19823 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
19825 if test -d ${with_pgsql}/lib/pgsql; then
19827 # this is CMU ADD LIBPATH TO
19828 if test "$andrew_runpath_switch" = "none" ; then
19829 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
19831 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
19834 elif test -d ${with_pgsql}/pgsql/lib; then
19836 # this is CMU ADD LIBPATH TO
19837 if test "$andrew_runpath_switch" = "none" ; then
19838 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
19840 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
19843 elif test -d ${with_pgsql}/lib; then
19845 # this is CMU ADD LIBPATH TO
19846 if test "$andrew_runpath_switch" = "none" ; then
19847 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
19849 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
19854 # this is CMU ADD LIBPATH TO
19855 if test "$andrew_runpath_switch" = "none" ; then
19856 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
19858 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
19863 LIB_PGSQL_DIR=$LIB_PGSQL
19864 LIB_PGSQL="$LIB_PGSQL -lpq"
19866 if test -d ${with_pgsql}/include/pgsql; then
19867 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
19868 elif test -d ${with_pgsql}/pgsql/include; then
19869 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
19870 elif test -d ${with_pgsql}/include; then
19871 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
19873 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
19877 save_LDFLAGS=$LDFLAGS
19878 LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
19879 { echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
19880 echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6; }
19881 if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 ac_check_lib_save_LIBS=$LIBS
19886 cat >conftest.$ac_ext <<_ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19893 /* Override any GCC internal prototype to avoid an error.
19894 Use char because int might match the return type of a GCC
19895 builtin and then its argument prototype would still apply. */
19899 char PQsetdbLogin ();
19903 return PQsetdbLogin ();
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (ac_try="$ac_link"
19910 case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_link") 2>conftest.er1
19917 grep -v '^ *+' conftest.er1 >conftest.err
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest$ac_exeext &&
19925 $as_test_x conftest$ac_exeext; then
19926 ac_cv_lib_pq_PQsetdbLogin=yes
19928 echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19931 ac_cv_lib_pq_PQsetdbLogin=no
19934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19935 conftest$ac_exeext conftest.$ac_ext
19936 LIBS=$ac_check_lib_save_LIBS
19938 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
19939 echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6; }
19940 if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
19942 cat >>confdefs.h <<\_ACEOF
19947 { echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
19948 echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
19952 LDFLAGS=$save_LDFLAGS;;
19958 # Check whether --with-sqlite was given.
19959 if test "${with_sqlite+set}" = set; then
19960 withval=$with_sqlite; with_sqlite=$withval
19966 # find location of library
19967 # presuing if one given then correct
19968 if test "${with_sqlite}" = "yes"; then
19969 with_sqlite=notfound
19970 for sqliteloc in lib
19972 if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
19973 with_sqlite="${prefix}"
19975 elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
19976 with_sqlite="/usr/local"
19978 elif test -f /usr/${sqliteloc}/libsqlite.a; then
19987 case "$with_sqlite" in
19989 notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
19990 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
19992 if test -d ${with_sqlite}/lib; then
19993 LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
19995 LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
19998 LIB_SQLITE_DIR=$LIB_SQLITE
19999 LIB_SQLITE="$LIB_SQLITE -lsqlite"
20001 if test -d ${with_sqlite}/include; then
20002 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
20004 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
20006 { echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
20007 echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6; }
20008 if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 /* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20026 char sqlite_open ();
20030 return sqlite_open ();
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_link") 2>conftest.er1
20044 grep -v '^ *+' conftest.er1 >conftest.err
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } && {
20049 test -z "$ac_c_werror_flag" ||
20050 test ! -s conftest.err
20051 } && test -s conftest$ac_exeext &&
20052 $as_test_x conftest$ac_exeext; then
20053 ac_cv_lib_sqlite_sqlite_open=yes
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 ac_cv_lib_sqlite_sqlite_open=no
20061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20062 conftest$ac_exeext conftest.$ac_ext
20063 LIBS=$ac_check_lib_save_LIBS
20065 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
20066 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6; }
20067 if test $ac_cv_lib_sqlite_sqlite_open = yes; then
20069 cat >>confdefs.h <<\_ACEOF
20070 #define HAVE_SQLITE
20074 { echo "$as_me:$LINENO: WARNING: SQLite Library sqlite does not work" >&5
20075 echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
20083 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
20084 { { echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&5
20085 echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&2;}
20086 { (exit 1); exit 1; }; }
20089 if test "$enable_shared" = yes; then
20091 cat >>confdefs.h <<\_ACEOF
20097 # Check whether --enable-ldapdb was given.
20098 if test "${enable_ldapdb+set}" = set; then
20099 enableval=$enable_ldapdb; ldapdb=$enableval
20104 { echo "$as_me:$LINENO: checking LDAPDB" >&5
20105 echo $ECHO_N "checking LDAPDB... $ECHO_C" >&6; }
20106 if test "$ldapdb" != no; then
20107 { echo "$as_me:$LINENO: result: enabled" >&5
20108 echo "${ECHO_T}enabled" >&6; }
20110 if test "$with_ldap" = no; then
20111 { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&5
20112 echo "$as_me: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&2;}
20113 { (exit 1); exit 1; }; }
20116 save_CPPFLAGS=$CPPFLAGS
20117 save_LDFLAGS=$LDFLAGS
20119 if test -d $with_ldap; then
20120 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
20122 # this is CMU ADD LIBPATH
20123 if test "$andrew_runpath_switch" = "none" ; then
20124 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
20126 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
20133 for ac_header in ldap.h lber.h
20135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 ac_res=`eval echo '${'$as_ac_Header'}'`
20143 { echo "$as_me:$LINENO: result: $ac_res" >&5
20144 echo "${ECHO_T}$ac_res" >&6; }
20146 # Is the header compilable?
20147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20149 cat >conftest.$ac_ext <<_ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 $ac_includes_default
20156 #include <$ac_header>
20158 rm -f conftest.$ac_objext
20159 if { (ac_try="$ac_compile"
20160 case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_compile") 2>conftest.er1
20167 grep -v '^ *+' conftest.er1 >conftest.err
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } && {
20172 test -z "$ac_c_werror_flag" ||
20173 test ! -s conftest.err
20174 } && test -s conftest.$ac_objext; then
20175 ac_header_compiler=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_header_compiler=no
20183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20185 echo "${ECHO_T}$ac_header_compiler" >&6; }
20187 # Is the header present?
20188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20196 #include <$ac_header>
20198 if { (ac_try="$ac_cpp conftest.$ac_ext"
20199 case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20206 grep -v '^ *+' conftest.er1 >conftest.err
20208 cat conftest.err >&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } >/dev/null && {
20211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20212 test ! -s conftest.err
20214 ac_header_preproc=yes
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219 ac_header_preproc=no
20222 rm -f conftest.err conftest.$ac_ext
20223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20224 echo "${ECHO_T}$ac_header_preproc" >&6; }
20226 # So? What about this header?
20227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20233 ac_header_preproc=yes
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20256 eval "$as_ac_Header=\$ac_header_preproc"
20258 ac_res=`eval echo '${'$as_ac_Header'}'`
20259 { echo "$as_me:$LINENO: result: $ac_res" >&5
20260 echo "${ECHO_T}$ac_res" >&6; }
20263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20264 cat >>confdefs.h <<_ACEOF
20265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20273 if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
20274 { echo "$as_me:$LINENO: checking OpenLDAP api" >&5
20275 echo $ECHO_N "checking OpenLDAP api... $ECHO_C" >&6; }
20276 if test "${cmu_cv_openldap_api+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20289 #ifdef LDAP_API_FEATURE_X_OPENLDAP
20290 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
20294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20295 $EGREP "__openldap_api" >/dev/null 2>&1; then
20296 cmu_cv_openldap_api=yes
20298 cmu_cv_openldap_api=no
20303 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
20304 echo "${ECHO_T}$cmu_cv_openldap_api" >&6; }
20307 if test "$cmu_cv_openldap_api" = yes; then
20308 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
20309 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
20310 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 ac_check_lib_save_LIBS=$LIBS
20314 LIBS="-lldap -llber $LIBS"
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 /* Override any GCC internal prototype to avoid an error.
20323 Use char because int might match the return type of a GCC
20324 builtin and then its argument prototype would still apply. */
20328 char ldap_initialize ();
20332 return ldap_initialize ();
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest$ac_exeext &&
20354 $as_test_x conftest$ac_exeext; then
20355 ac_cv_lib_ldap_ldap_initialize=yes
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_cv_lib_ldap_ldap_initialize=no
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364 conftest$ac_exeext conftest.$ac_ext
20365 LIBS=$ac_check_lib_save_LIBS
20367 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
20368 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
20369 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
20370 cmu_link_openldap="-lldap -llber"
20372 cmu_link_openldap=no
20378 if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
20379 { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&5
20380 echo "$as_me: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&2;}
20381 { (exit 1); exit 1; }; }
20383 { echo "$as_me:$LINENO: checking OpenLDAP version" >&5
20384 echo $ECHO_N "checking OpenLDAP version... $ECHO_C" >&6; }
20385 if test "${cmu_cv_openldap_compat+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 cat >conftest.$ac_ext <<_ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20398 /* Require 2.1.27+ and 2.2.6+ */
20399 #if LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
20400 char *__openldap_compat = "2.1.27 or better okay";
20401 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
20402 char *__openldap_compat = "2.2.6 or better okay";
20403 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR > 2
20404 char *__openldap_compat = "2.3 or better okay"
20408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20409 $EGREP "__openldap_compat" >/dev/null 2>&1; then
20410 cmu_cv_openldap_compat=yes
20412 cmu_cv_openldap_compat=no
20417 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
20418 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6; }
20421 if test "$cmu_cv_openldap_compat" = no; then
20422 { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&5
20423 echo "$as_me: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&2;}
20424 { (exit 1); exit 1; }; }
20426 LIB_LDAP=$cmu_link_openldap
20429 SASL_MECHS="$SASL_MECHS libldapdb.la"
20430 if test "$enable_static" = yes; then
20431 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
20432 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
20434 cat >>confdefs.h <<\_ACEOF
20435 #define STATIC_LDAPDB
20442 if test "$cmu_cv_openldap_compat" != yes; then
20443 CPPFLAGS=$save_CPPFLAGS
20444 LDFLAGS=$save_LDFLAGS
20447 { echo "$as_me:$LINENO: result: disabled" >&5
20448 echo "${ECHO_T}disabled" >&6; }
20457 # Check whether --with-plugindir was given.
20458 if test "${with_plugindir+set}" = set; then
20459 withval=$with_plugindir; plugindir=$withval
20461 plugindir=/usr/lib/sasl2
20465 cat >>confdefs.h <<_ACEOF
20466 #define PLUGINDIR "$plugindir"
20472 # Check whether --with-configdir was given.
20473 if test "${with_configdir+set}" = set; then
20474 withval=$with_configdir; configdir=$withval
20476 configdir=$plugindir:/etc/sasl2
20480 cat >>confdefs.h <<_ACEOF
20481 #define CONFIGDIR "$configdir"
20487 # Check whether --with-rc4 was given.
20488 if test "${with_rc4+set}" = set; then
20489 withval=$with_rc4; with_rc4=$withval
20495 if test "$with_rc4" != no; then
20497 cat >>confdefs.h <<\_ACEOF
20503 building_for_macosx=no
20506 # Check whether --enable-macos-framework was given.
20507 if test "${enable_macos_framework+set}" = set; then
20508 enableval=$enable_macos_framework; building_for_macosx=no
20510 building_for_macosx=yes
20515 if test "$building_for_macosx" = yes; then
20524 { echo "$as_me:$LINENO: checking for dmalloc library" >&5
20525 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6; }
20527 # Check whether --with-dmalloc was given.
20528 if test "${with_dmalloc+set}" = set; then
20529 withval=$with_dmalloc; with_dmalloc=$withval
20537 if test "$with_dmalloc" != "no"; then
20538 if test "$with_dmalloc" = "yes"; then
20539 with_dmalloc="/usr/local"
20542 if test -r "$with_dmalloc/libdmalloc.a"; then
20543 DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
20545 cat >>confdefs.h <<\_ACEOF
20546 #define WITH_DMALLOC
20549 { echo "$as_me:$LINENO: result: yes" >&5
20550 echo "${ECHO_T}yes" >&6; }
20551 elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
20552 DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
20554 cat >>confdefs.h <<\_ACEOF
20555 #define WITH_DMALLOC
20558 { echo "$as_me:$LINENO: result: yes" >&5
20559 echo "${ECHO_T}yes" >&6; }
20561 { { echo "$as_me:$LINENO: error: cannot find dmalloc library" >&5
20562 echo "$as_me: error: cannot find dmalloc library" >&2;}
20563 { (exit please check your installation.); exit please check your installation.; }; }
20566 { echo "$as_me:$LINENO: result: no" >&5
20567 echo "${ECHO_T}no" >&6; }
20572 { echo "$as_me:$LINENO: checking for sfio library" >&5
20573 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6; }
20575 # Check whether --with-sfio was given.
20576 if test "${with_sfio+set}" = set; then
20577 withval=$with_sfio; with_sfio=$withval
20583 if test "$with_sfio" != "no"; then
20584 if test "$with_sfio" = "yes"; then
20585 with_sfio="/usr/local"
20592 if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20593 SFIO_INC_DIR=$with_sfio
20594 elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
20595 SFIO_INC_DIR=$with_sfio/include
20596 elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20597 SFIO_INC_DIR=$with_sfio/include/sfio
20600 if test -z "$SFIO_DIR"; then
20601 { { echo "$as_me:$LINENO: error: Cannot find sfio.h" >&5
20602 echo "$as_me: error: Cannot find sfio.h" >&2;}
20603 { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20607 str="$SFIO_DIR/lib/libsfio.*"
20608 for i in `echo $str`; do
20609 if test -r $i; then
20610 SFIO_LIBDIR=$SFIO_DIR/lib
20616 str="$SFIO_DIR/lib/sfio/libsfio.*"
20617 for i in `echo $str`; do
20618 if test -r $i; then
20619 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
20625 if test -z "$SFIO_LIBDIR"; then
20626 { { echo "$as_me:$LINENO: error: Cannot find sfio library" >&5
20627 echo "$as_me: error: Cannot find sfio library" >&2;}
20628 { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20631 SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
20632 SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
20633 SMTPTEST_PROGRAM="smtptest"
20634 SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
20635 SASL_UTIL_HEADERS_EXTRA=sfsasl.h
20637 { echo "$as_me:$LINENO: result: yes" >&5
20638 echo "${ECHO_T}yes" >&6; }
20640 { echo "$as_me:$LINENO: result: no" >&5
20641 echo "${ECHO_T}no" >&6; }
20644 SMTPTEST_PROGRAM=""
20645 SASL_UTIL_LIBS_EXTRA=""
20646 SASL_UTIL_HEADERS_EXTRA=""
20655 sasl_cv_getsubopt=no
20656 { echo "$as_me:$LINENO: checking for getsubopt" >&5
20657 echo $ECHO_N "checking for getsubopt... $ECHO_C" >&6; }
20658 if test "${ac_cv_func_getsubopt+set}" = set; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 /* Define getsubopt to an innocuous variant, in case <limits.h> declares getsubopt.
20668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20669 #define getsubopt innocuous_getsubopt
20671 /* System header to define __stub macros and hopefully few prototypes,
20672 which can conflict with char getsubopt (); below.
20673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20674 <limits.h> exists even on freestanding compilers. */
20677 # include <limits.h>
20679 # include <assert.h>
20684 /* Override any GCC internal prototype to avoid an error.
20685 Use char because int might match the return type of a GCC
20686 builtin and then its argument prototype would still apply. */
20691 /* The GNU C library defines this for functions which it implements
20692 to always fail with ENOSYS. Some functions are actually named
20693 something starting with __ and the normal name is an alias. */
20694 #if defined __stub_getsubopt || defined __stub___getsubopt
20701 return getsubopt ();
20706 rm -f conftest.$ac_objext conftest$ac_exeext
20707 if { (ac_try="$ac_link"
20708 case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_link") 2>conftest.er1
20715 grep -v '^ *+' conftest.er1 >conftest.err
20717 cat conftest.err >&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } && {
20720 test -z "$ac_c_werror_flag" ||
20721 test ! -s conftest.err
20722 } && test -s conftest$ac_exeext &&
20723 $as_test_x conftest$ac_exeext; then
20724 ac_cv_func_getsubopt=yes
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 ac_cv_func_getsubopt=no
20732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20733 conftest$ac_exeext conftest.$ac_ext
20735 { echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5
20736 echo "${ECHO_T}$ac_cv_func_getsubopt" >&6; }
20737 if test $ac_cv_func_getsubopt = yes; then
20739 cat >>confdefs.h <<\_ACEOF
20740 #define HAVE_GETSUBOPT
20744 sasl_cv_getsubopt=yes
20747 if test $sasl_cv_getsubopt = yes; then
20748 case " $LIBOBJS " in
20749 *" getsubopt.$ac_objext "* ) ;;
20750 *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
20754 GETSUBOPT="getsubopt.lo"
20758 sasl_cv_snprintf=no
20760 { echo "$as_me:$LINENO: checking for snprintf" >&5
20761 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
20762 if test "${ac_cv_func_snprintf+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
20772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20773 #define snprintf innocuous_snprintf
20775 /* System header to define __stub macros and hopefully few prototypes,
20776 which can conflict with char snprintf (); below.
20777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20778 <limits.h> exists even on freestanding compilers. */
20781 # include <limits.h>
20783 # include <assert.h>
20788 /* Override any GCC internal prototype to avoid an error.
20789 Use char because int might match the return type of a GCC
20790 builtin and then its argument prototype would still apply. */
20795 /* The GNU C library defines this for functions which it implements
20796 to always fail with ENOSYS. Some functions are actually named
20797 something starting with __ and the normal name is an alias. */
20798 #if defined __stub_snprintf || defined __stub___snprintf
20805 return snprintf ();
20810 rm -f conftest.$ac_objext conftest$ac_exeext
20811 if { (ac_try="$ac_link"
20812 case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_link") 2>conftest.er1
20819 grep -v '^ *+' conftest.er1 >conftest.err
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && {
20824 test -z "$ac_c_werror_flag" ||
20825 test ! -s conftest.err
20826 } && test -s conftest$ac_exeext &&
20827 $as_test_x conftest$ac_exeext; then
20828 ac_cv_func_snprintf=yes
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ac_cv_func_snprintf=no
20836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20837 conftest$ac_exeext conftest.$ac_ext
20839 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
20840 echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
20841 if test $ac_cv_func_snprintf = yes; then
20843 cat >>confdefs.h <<\_ACEOF
20844 #define HAVE_SNPRINTF
20848 sasl_cv_snprintf=yes
20851 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
20852 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
20853 if test "${ac_cv_func_vsnprintf+set}" = set; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 cat >conftest.$ac_ext <<_ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20862 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
20863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20864 #define vsnprintf innocuous_vsnprintf
20866 /* System header to define __stub macros and hopefully few prototypes,
20867 which can conflict with char vsnprintf (); below.
20868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20869 <limits.h> exists even on freestanding compilers. */
20872 # include <limits.h>
20874 # include <assert.h>
20879 /* Override any GCC internal prototype to avoid an error.
20880 Use char because int might match the return type of a GCC
20881 builtin and then its argument prototype would still apply. */
20886 /* The GNU C library defines this for functions which it implements
20887 to always fail with ENOSYS. Some functions are actually named
20888 something starting with __ and the normal name is an alias. */
20889 #if defined __stub_vsnprintf || defined __stub___vsnprintf
20896 return vsnprintf ();
20901 rm -f conftest.$ac_objext conftest$ac_exeext
20902 if { (ac_try="$ac_link"
20903 case "(($ac_try" in
20904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905 *) ac_try_echo=$ac_try;;
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908 (eval "$ac_link") 2>conftest.er1
20910 grep -v '^ *+' conftest.er1 >conftest.err
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } && {
20915 test -z "$ac_c_werror_flag" ||
20916 test ! -s conftest.err
20917 } && test -s conftest$ac_exeext &&
20918 $as_test_x conftest$ac_exeext; then
20919 ac_cv_func_vsnprintf=yes
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_cv_func_vsnprintf=no
20927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20928 conftest$ac_exeext conftest.$ac_ext
20930 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
20931 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
20932 if test $ac_cv_func_vsnprintf = yes; then
20934 cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_VSNPRINTF
20939 sasl_cv_snprintf=yes
20942 if test $sasl_cv_snprintf = yes; then
20943 case " $LIBOBJS " in
20944 *" snprintf.$ac_objext "* ) ;;
20945 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20949 SNPRINTFOBJS="snprintf.o"
20950 LTSNPRINTFOBJS="snprintf.lo"
20956 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20957 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20958 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 ac_check_lib_save_LIBS=$LIBS
20962 LIBS="-lresolv $LIBS"
20963 cat >conftest.$ac_ext <<_ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20970 /* Override any GCC internal prototype to avoid an error.
20971 Use char because int might match the return type of a GCC
20972 builtin and then its argument prototype would still apply. */
20980 return inet_aton ();
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (ac_try="$ac_link"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_link") 2>conftest.er1
20994 grep -v '^ *+' conftest.er1 >conftest.err
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && {
20999 test -z "$ac_c_werror_flag" ||
21000 test ! -s conftest.err
21001 } && test -s conftest$ac_exeext &&
21002 $as_test_x conftest$ac_exeext; then
21003 ac_cv_lib_resolv_inet_aton=yes
21005 echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21008 ac_cv_lib_resolv_inet_aton=no
21011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21012 conftest$ac_exeext conftest.$ac_ext
21013 LIBS=$ac_check_lib_save_LIBS
21015 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21016 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21017 if test $ac_cv_lib_resolv_inet_aton = yes; then
21018 cat >>confdefs.h <<_ACEOF
21019 #define HAVE_LIBRESOLV 1
21022 LIBS="-lresolv $LIBS"
21028 sasl_cv_getaddrinfo=yes
21030 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21031 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
21032 if test "${ac_cv_func_getaddrinfo+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
21042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21043 #define getaddrinfo innocuous_getaddrinfo
21045 /* System header to define __stub macros and hopefully few prototypes,
21046 which can conflict with char getaddrinfo (); below.
21047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21048 <limits.h> exists even on freestanding compilers. */
21051 # include <limits.h>
21053 # include <assert.h>
21058 /* Override any GCC internal prototype to avoid an error.
21059 Use char because int might match the return type of a GCC
21060 builtin and then its argument prototype would still apply. */
21064 char getaddrinfo ();
21065 /* The GNU C library defines this for functions which it implements
21066 to always fail with ENOSYS. Some functions are actually named
21067 something starting with __ and the normal name is an alias. */
21068 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
21075 return getaddrinfo ();
21080 rm -f conftest.$ac_objext conftest$ac_exeext
21081 if { (ac_try="$ac_link"
21082 case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_link") 2>conftest.er1
21089 grep -v '^ *+' conftest.er1 >conftest.err
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } && {
21094 test -z "$ac_c_werror_flag" ||
21095 test ! -s conftest.err
21096 } && test -s conftest$ac_exeext &&
21097 $as_test_x conftest$ac_exeext; then
21098 ac_cv_func_getaddrinfo=yes
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21103 ac_cv_func_getaddrinfo=no
21106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21107 conftest$ac_exeext conftest.$ac_ext
21109 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
21110 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
21111 if test $ac_cv_func_getaddrinfo = yes; then
21112 ac_cv_lib_socket_getaddrinfo=no
21113 ac_cv_lib_inet6_getaddrinfo=no
21116 { echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
21117 echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6; }
21118 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
21119 echo $ECHO_N "(cached) $ECHO_C" >&6
21121 ac_check_lib_save_LIBS=$LIBS
21122 LIBS="-lsocket $LIBS"
21123 cat >conftest.$ac_ext <<_ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21130 /* Override any GCC internal prototype to avoid an error.
21131 Use char because int might match the return type of a GCC
21132 builtin and then its argument prototype would still apply. */
21136 char getaddrinfo ();
21140 return getaddrinfo ();
21145 rm -f conftest.$ac_objext conftest$ac_exeext
21146 if { (ac_try="$ac_link"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_link") 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest$ac_exeext &&
21162 $as_test_x conftest$ac_exeext; then
21163 ac_cv_lib_socket_getaddrinfo=yes
21165 echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21168 ac_cv_lib_socket_getaddrinfo=no
21171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21172 conftest$ac_exeext conftest.$ac_ext
21173 LIBS=$ac_check_lib_save_LIBS
21175 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
21176 echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6; }
21177 if test $ac_cv_lib_socket_getaddrinfo = yes; then
21178 LIBS="$LIBS -lsocket"
21179 ac_cv_lib_inet6_getaddrinfo=no
21182 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21183 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21184 if test "${ipv6_cv_dir+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21188 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21193 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21194 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21195 if test $ipv6_cv_dir = no; then
21196 ac_cv_lib_inet6_getaddrinfo=no
21198 if test x$ipv6_libinet6 = x; then
21200 SAVELDFLAGS="$LDFLAGS"
21201 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21203 { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
21204 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
21205 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 ac_check_lib_save_LIBS=$LIBS
21209 LIBS="-linet6 $LIBS"
21210 cat >conftest.$ac_ext <<_ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21217 /* Override any GCC internal prototype to avoid an error.
21218 Use char because int might match the return type of a GCC
21219 builtin and then its argument prototype would still apply. */
21223 char getaddrinfo ();
21227 return getaddrinfo ();
21232 rm -f conftest.$ac_objext conftest$ac_exeext
21233 if { (ac_try="$ac_link"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_link") 2>conftest.er1
21241 grep -v '^ *+' conftest.er1 >conftest.err
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest$ac_exeext &&
21249 $as_test_x conftest$ac_exeext; then
21250 ac_cv_lib_inet6_getaddrinfo=yes
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_cv_lib_inet6_getaddrinfo=no
21258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21259 conftest$ac_exeext conftest.$ac_ext
21260 LIBS=$ac_check_lib_save_LIBS
21262 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
21263 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
21264 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
21265 if test $ipv6_libinet6 = no; then
21267 LIBS="$LIBS -linet6"
21270 if test $ipv6_libinet6 = no; then
21271 LDFLAGS="$SAVELDFLAGS"
21277 ipv6_cv_getaddrinfo=no
21278 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
21279 -o $ac_cv_lib_inet6_getaddrinfo = yes
21281 ipv6_cv_getaddrinfo=yes
21283 if test $ipv6_cv_getaddrinfo = no; then
21284 if test getaddrinfo = getaddrinfo; then
21285 for ipv6_cv_pfx in o n; do
21286 cat >conftest.$ac_ext <<_ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21296 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
21297 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
21298 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
21299 echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6; }
21300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 /* Define ${ipv6_cv_pfx}getaddrinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getaddrinfo.
21310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21311 #define ${ipv6_cv_pfx}getaddrinfo innocuous_${ipv6_cv_pfx}getaddrinfo
21313 /* System header to define __stub macros and hopefully few prototypes,
21314 which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
21315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21316 <limits.h> exists even on freestanding compilers. */
21319 # include <limits.h>
21321 # include <assert.h>
21324 #undef ${ipv6_cv_pfx}getaddrinfo
21326 /* Override any GCC internal prototype to avoid an error.
21327 Use char because int might match the return type of a GCC
21328 builtin and then its argument prototype would still apply. */
21332 char ${ipv6_cv_pfx}getaddrinfo ();
21333 /* The GNU C library defines this for functions which it implements
21334 to always fail with ENOSYS. Some functions are actually named
21335 something starting with __ and the normal name is an alias. */
21336 #if defined __stub_${ipv6_cv_pfx}getaddrinfo || defined __stub___${ipv6_cv_pfx}getaddrinfo
21343 return ${ipv6_cv_pfx}getaddrinfo ();
21348 rm -f conftest.$ac_objext conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_link") 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && {
21362 test -z "$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21364 } && test -s conftest$ac_exeext &&
21365 $as_test_x conftest$ac_exeext; then
21366 eval "$as_ac_var=yes"
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 eval "$as_ac_var=no"
21374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21375 conftest$ac_exeext conftest.$ac_ext
21377 ac_res=`eval echo '${'$as_ac_var'}'`
21378 { echo "$as_me:$LINENO: result: $ac_res" >&5
21379 echo "${ECHO_T}$ac_res" >&6; }
21384 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
21386 cat >>confdefs.h <<\_ACEOF
21387 #define HAVE_GETADDRINFO
21390 ipv6_cv_getaddrinfo=yes
21396 if test $ipv6_cv_getaddrinfo = yes; then
21398 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
21399 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
21400 if test "${ac_cv_func_gai_strerror+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
21410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21411 #define gai_strerror innocuous_gai_strerror
21413 /* System header to define __stub macros and hopefully few prototypes,
21414 which can conflict with char gai_strerror (); below.
21415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21416 <limits.h> exists even on freestanding compilers. */
21419 # include <limits.h>
21421 # include <assert.h>
21424 #undef gai_strerror
21426 /* Override any GCC internal prototype to avoid an error.
21427 Use char because int might match the return type of a GCC
21428 builtin and then its argument prototype would still apply. */
21432 char gai_strerror ();
21433 /* The GNU C library defines this for functions which it implements
21434 to always fail with ENOSYS. Some functions are actually named
21435 something starting with __ and the normal name is an alias. */
21436 #if defined __stub_gai_strerror || defined __stub___gai_strerror
21443 return gai_strerror ();
21448 rm -f conftest.$ac_objext conftest$ac_exeext
21449 if { (ac_try="$ac_link"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_link") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest$ac_exeext &&
21465 $as_test_x conftest$ac_exeext; then
21466 ac_cv_func_gai_strerror=yes
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ac_cv_func_gai_strerror=no
21474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21475 conftest$ac_exeext conftest.$ac_ext
21477 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
21478 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
21479 if test $ac_cv_func_gai_strerror = yes; then
21480 ac_cv_lib_socket_gai_strerror=no
21481 ac_cv_lib_inet6_gai_strerror=no
21484 { echo "$as_me:$LINENO: checking for gai_strerror in -lsocket" >&5
21485 echo $ECHO_N "checking for gai_strerror in -lsocket... $ECHO_C" >&6; }
21486 if test "${ac_cv_lib_socket_gai_strerror+set}" = set; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21489 ac_check_lib_save_LIBS=$LIBS
21490 LIBS="-lsocket $LIBS"
21491 cat >conftest.$ac_ext <<_ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21498 /* Override any GCC internal prototype to avoid an error.
21499 Use char because int might match the return type of a GCC
21500 builtin and then its argument prototype would still apply. */
21504 char gai_strerror ();
21508 return gai_strerror ();
21513 rm -f conftest.$ac_objext conftest$ac_exeext
21514 if { (ac_try="$ac_link"
21515 case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_link") 2>conftest.er1
21522 grep -v '^ *+' conftest.er1 >conftest.err
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } && {
21527 test -z "$ac_c_werror_flag" ||
21528 test ! -s conftest.err
21529 } && test -s conftest$ac_exeext &&
21530 $as_test_x conftest$ac_exeext; then
21531 ac_cv_lib_socket_gai_strerror=yes
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21536 ac_cv_lib_socket_gai_strerror=no
21539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21540 conftest$ac_exeext conftest.$ac_ext
21541 LIBS=$ac_check_lib_save_LIBS
21543 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gai_strerror" >&5
21544 echo "${ECHO_T}$ac_cv_lib_socket_gai_strerror" >&6; }
21545 if test $ac_cv_lib_socket_gai_strerror = yes; then
21546 LIBS="$LIBS -lsocket"
21547 ac_cv_lib_inet6_gai_strerror=no
21550 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21551 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21552 if test "${ipv6_cv_dir+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21556 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21561 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21562 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21563 if test $ipv6_cv_dir = no; then
21564 ac_cv_lib_inet6_gai_strerror=no
21566 if test x$ipv6_libinet6 = x; then
21568 SAVELDFLAGS="$LDFLAGS"
21569 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21571 { echo "$as_me:$LINENO: checking for gai_strerror in -linet6" >&5
21572 echo $ECHO_N "checking for gai_strerror in -linet6... $ECHO_C" >&6; }
21573 if test "${ac_cv_lib_inet6_gai_strerror+set}" = set; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 ac_check_lib_save_LIBS=$LIBS
21577 LIBS="-linet6 $LIBS"
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21585 /* Override any GCC internal prototype to avoid an error.
21586 Use char because int might match the return type of a GCC
21587 builtin and then its argument prototype would still apply. */
21591 char gai_strerror ();
21595 return gai_strerror ();
21600 rm -f conftest.$ac_objext conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_link") 2>conftest.er1
21609 grep -v '^ *+' conftest.er1 >conftest.err
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } && {
21614 test -z "$ac_c_werror_flag" ||
21615 test ! -s conftest.err
21616 } && test -s conftest$ac_exeext &&
21617 $as_test_x conftest$ac_exeext; then
21618 ac_cv_lib_inet6_gai_strerror=yes
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ac_cv_lib_inet6_gai_strerror=no
21626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21627 conftest$ac_exeext conftest.$ac_ext
21628 LIBS=$ac_check_lib_save_LIBS
21630 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_gai_strerror" >&5
21631 echo "${ECHO_T}$ac_cv_lib_inet6_gai_strerror" >&6; }
21632 if test $ac_cv_lib_inet6_gai_strerror = yes; then
21633 if test $ipv6_libinet6 = no; then
21635 LIBS="$LIBS -linet6"
21638 if test $ipv6_libinet6 = no; then
21639 LDFLAGS="$SAVELDFLAGS"
21645 ipv6_cv_gai_strerror=no
21646 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
21647 -o $ac_cv_lib_inet6_gai_strerror = yes
21649 ipv6_cv_gai_strerror=yes
21651 if test $ipv6_cv_gai_strerror = no; then
21652 if test gai_strerror = getaddrinfo; then
21653 for ipv6_cv_pfx in o n; do
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21664 $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then
21665 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
21666 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}gai_strerror" >&5
21667 echo $ECHO_N "checking for ${ipv6_cv_pfx}gai_strerror... $ECHO_C" >&6; }
21668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 cat >conftest.$ac_ext <<_ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 /* Define ${ipv6_cv_pfx}gai_strerror to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}gai_strerror.
21678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21679 #define ${ipv6_cv_pfx}gai_strerror innocuous_${ipv6_cv_pfx}gai_strerror
21681 /* System header to define __stub macros and hopefully few prototypes,
21682 which can conflict with char ${ipv6_cv_pfx}gai_strerror (); below.
21683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21684 <limits.h> exists even on freestanding compilers. */
21687 # include <limits.h>
21689 # include <assert.h>
21692 #undef ${ipv6_cv_pfx}gai_strerror
21694 /* Override any GCC internal prototype to avoid an error.
21695 Use char because int might match the return type of a GCC
21696 builtin and then its argument prototype would still apply. */
21700 char ${ipv6_cv_pfx}gai_strerror ();
21701 /* The GNU C library defines this for functions which it implements
21702 to always fail with ENOSYS. Some functions are actually named
21703 something starting with __ and the normal name is an alias. */
21704 #if defined __stub_${ipv6_cv_pfx}gai_strerror || defined __stub___${ipv6_cv_pfx}gai_strerror
21711 return ${ipv6_cv_pfx}gai_strerror ();
21716 rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720 *) ac_try_echo=$ac_try;;
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723 (eval "$ac_link") 2>conftest.er1
21725 grep -v '^ *+' conftest.er1 >conftest.err
21727 cat conftest.err >&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } && {
21730 test -z "$ac_c_werror_flag" ||
21731 test ! -s conftest.err
21732 } && test -s conftest$ac_exeext &&
21733 $as_test_x conftest$ac_exeext; then
21734 eval "$as_ac_var=yes"
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 eval "$as_ac_var=no"
21742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21743 conftest$ac_exeext conftest.$ac_ext
21745 ac_res=`eval echo '${'$as_ac_var'}'`
21746 { echo "$as_me:$LINENO: result: $ac_res" >&5
21747 echo "${ECHO_T}$ac_res" >&6; }
21752 if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
21754 cat >>confdefs.h <<\_ACEOF
21755 #define HAVE_GETADDRINFO
21758 ipv6_cv_gai_strerror=yes
21764 if test $ipv6_cv_gai_strerror = yes; then
21766 cat >>confdefs.h <<\_ACEOF
21767 #define HAVE_GETADDRINFO
21770 sasl_cv_getaddrinfo=no
21777 if test $sasl_cv_getaddrinfo = yes; then
21778 case " $LIBOBJS " in
21779 *" getaddrinfo.$ac_objext "* ) ;;
21780 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21784 GETADDRINFOOBJS="getaddrinfo.o"
21785 LTGETADDRINFOOBJS="getaddrinfo.lo"
21791 sasl_cv_getnameinfo=no
21793 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
21794 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
21795 if test "${ac_cv_func_getnameinfo+set}" = set; then
21796 echo $ECHO_N "(cached) $ECHO_C" >&6
21798 cat >conftest.$ac_ext <<_ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21804 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
21805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21806 #define getnameinfo innocuous_getnameinfo
21808 /* System header to define __stub macros and hopefully few prototypes,
21809 which can conflict with char getnameinfo (); below.
21810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21811 <limits.h> exists even on freestanding compilers. */
21814 # include <limits.h>
21816 # include <assert.h>
21821 /* Override any GCC internal prototype to avoid an error.
21822 Use char because int might match the return type of a GCC
21823 builtin and then its argument prototype would still apply. */
21827 char getnameinfo ();
21828 /* The GNU C library defines this for functions which it implements
21829 to always fail with ENOSYS. Some functions are actually named
21830 something starting with __ and the normal name is an alias. */
21831 #if defined __stub_getnameinfo || defined __stub___getnameinfo
21838 return getnameinfo ();
21843 rm -f conftest.$ac_objext conftest$ac_exeext
21844 if { (ac_try="$ac_link"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_link") 2>conftest.er1
21852 grep -v '^ *+' conftest.er1 >conftest.err
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } && {
21857 test -z "$ac_c_werror_flag" ||
21858 test ! -s conftest.err
21859 } && test -s conftest$ac_exeext &&
21860 $as_test_x conftest$ac_exeext; then
21861 ac_cv_func_getnameinfo=yes
21863 echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_cv_func_getnameinfo=no
21869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21870 conftest$ac_exeext conftest.$ac_ext
21872 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
21873 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
21874 if test $ac_cv_func_getnameinfo = yes; then
21875 ac_cv_lib_socket_getnameinfo=no
21876 ac_cv_lib_inet6_getnameinfo=no
21879 { echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
21880 echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6; }
21881 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 ac_check_lib_save_LIBS=$LIBS
21885 LIBS="-lsocket $LIBS"
21886 cat >conftest.$ac_ext <<_ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21893 /* Override any GCC internal prototype to avoid an error.
21894 Use char because int might match the return type of a GCC
21895 builtin and then its argument prototype would still apply. */
21899 char getnameinfo ();
21903 return getnameinfo ();
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_link") 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && {
21922 test -z "$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 } && test -s conftest$ac_exeext &&
21925 $as_test_x conftest$ac_exeext; then
21926 ac_cv_lib_socket_getnameinfo=yes
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 ac_cv_lib_socket_getnameinfo=no
21934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21935 conftest$ac_exeext conftest.$ac_ext
21936 LIBS=$ac_check_lib_save_LIBS
21938 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
21939 echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6; }
21940 if test $ac_cv_lib_socket_getnameinfo = yes; then
21941 LIBS="$LIBS -lsocket"
21942 ac_cv_lib_inet6_getnameinfo=no
21945 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21946 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21947 if test "${ipv6_cv_dir+set}" = set; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21950 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21951 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21956 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21957 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21958 if test $ipv6_cv_dir = no; then
21959 ac_cv_lib_inet6_getnameinfo=no
21961 if test x$ipv6_libinet6 = x; then
21963 SAVELDFLAGS="$LDFLAGS"
21964 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21966 { echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
21967 echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6; }
21968 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 ac_check_lib_save_LIBS=$LIBS
21972 LIBS="-linet6 $LIBS"
21973 cat >conftest.$ac_ext <<_ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21980 /* Override any GCC internal prototype to avoid an error.
21981 Use char because int might match the return type of a GCC
21982 builtin and then its argument prototype would still apply. */
21986 char getnameinfo ();
21990 return getnameinfo ();
21995 rm -f conftest.$ac_objext conftest$ac_exeext
21996 if { (ac_try="$ac_link"
21997 case "(($ac_try" in
21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999 *) ac_try_echo=$ac_try;;
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002 (eval "$ac_link") 2>conftest.er1
22004 grep -v '^ *+' conftest.er1 >conftest.err
22006 cat conftest.err >&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } && {
22009 test -z "$ac_c_werror_flag" ||
22010 test ! -s conftest.err
22011 } && test -s conftest$ac_exeext &&
22012 $as_test_x conftest$ac_exeext; then
22013 ac_cv_lib_inet6_getnameinfo=yes
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ac_cv_lib_inet6_getnameinfo=no
22021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22022 conftest$ac_exeext conftest.$ac_ext
22023 LIBS=$ac_check_lib_save_LIBS
22025 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
22026 echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6; }
22027 if test $ac_cv_lib_inet6_getnameinfo = yes; then
22028 if test $ipv6_libinet6 = no; then
22030 LIBS="$LIBS -linet6"
22033 if test $ipv6_libinet6 = no; then
22034 LDFLAGS="$SAVELDFLAGS"
22040 ipv6_cv_getnameinfo=no
22041 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
22042 -o $ac_cv_lib_inet6_getnameinfo = yes
22044 ipv6_cv_getnameinfo=yes
22046 if test $ipv6_cv_getnameinfo = no; then
22047 if test getnameinfo = getaddrinfo; then
22048 for ipv6_cv_pfx in o n; do
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22059 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
22060 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
22061 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
22062 echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6; }
22063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22066 cat >conftest.$ac_ext <<_ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072 /* Define ${ipv6_cv_pfx}getnameinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getnameinfo.
22073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22074 #define ${ipv6_cv_pfx}getnameinfo innocuous_${ipv6_cv_pfx}getnameinfo
22076 /* System header to define __stub macros and hopefully few prototypes,
22077 which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
22078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22079 <limits.h> exists even on freestanding compilers. */
22082 # include <limits.h>
22084 # include <assert.h>
22087 #undef ${ipv6_cv_pfx}getnameinfo
22089 /* Override any GCC internal prototype to avoid an error.
22090 Use char because int might match the return type of a GCC
22091 builtin and then its argument prototype would still apply. */
22095 char ${ipv6_cv_pfx}getnameinfo ();
22096 /* The GNU C library defines this for functions which it implements
22097 to always fail with ENOSYS. Some functions are actually named
22098 something starting with __ and the normal name is an alias. */
22099 #if defined __stub_${ipv6_cv_pfx}getnameinfo || defined __stub___${ipv6_cv_pfx}getnameinfo
22106 return ${ipv6_cv_pfx}getnameinfo ();
22111 rm -f conftest.$ac_objext conftest$ac_exeext
22112 if { (ac_try="$ac_link"
22113 case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_link") 2>conftest.er1
22120 grep -v '^ *+' conftest.er1 >conftest.err
22122 cat conftest.err >&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } && {
22125 test -z "$ac_c_werror_flag" ||
22126 test ! -s conftest.err
22127 } && test -s conftest$ac_exeext &&
22128 $as_test_x conftest$ac_exeext; then
22129 eval "$as_ac_var=yes"
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 eval "$as_ac_var=no"
22137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22138 conftest$ac_exeext conftest.$ac_ext
22140 ac_res=`eval echo '${'$as_ac_var'}'`
22141 { echo "$as_me:$LINENO: result: $ac_res" >&5
22142 echo "${ECHO_T}$ac_res" >&6; }
22147 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
22149 cat >>confdefs.h <<\_ACEOF
22150 #define HAVE_GETADDRINFO
22153 ipv6_cv_getnameinfo=yes
22159 if test $ipv6_cv_getnameinfo = yes; then
22161 cat >>confdefs.h <<\_ACEOF
22162 #define HAVE_GETNAMEINFO
22166 sasl_cv_getnameinfo=yes
22168 if test $sasl_cv_getnameinfo = yes; then
22169 case " $LIBOBJS " in
22170 *" getnameinfo.$ac_objext "* ) ;;
22171 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
22175 GETNAMEINFOOBJS="getnameinfo.o"
22176 LTGETNAMEINFOOBJS="getnameinfo.lo"
22181 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
22184 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22185 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22186 if test "${ac_cv_c_const+set}" = set; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22189 cat >conftest.$ac_ext <<_ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22199 /* FIXME: Include the comments suggested by Paul. */
22200 #ifndef __cplusplus
22201 /* Ultrix mips cc rejects this. */
22202 typedef int charset[2];
22204 /* SunOS 4.1.1 cc rejects this. */
22205 char const *const *pcpcc;
22207 /* NEC SVR4.0.2 mips cc rejects this. */
22208 struct point {int x, y;};
22209 static struct point const zero = {0,0};
22210 /* AIX XL C 1.02.0.0 rejects this.
22211 It does not let you subtract one const X* pointer from another in
22212 an arm of an if-expression whose if-part is not a constant
22214 const char *g = "string";
22215 pcpcc = &g + (g ? g-g : 0);
22216 /* HPUX 7.0 cc rejects these. */
22218 ppc = (char**) pcpcc;
22219 pcpcc = (char const *const *) ppc;
22220 { /* SCO 3.2v4 cc rejects this. */
22222 char const *s = 0 ? (char *) 0 : (char const *) 0;
22227 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22228 int x[] = {25, 17};
22229 const int *foo = &x[0];
22232 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22233 typedef const int *iptr;
22237 { /* AIX XL C 1.02.0.0 rejects this saying
22238 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22239 struct s { int j; const int *ap[3]; };
22240 struct s *b; b->j = 5;
22242 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22243 const int foo = 10;
22244 if (!foo) return 0;
22246 return !cs[0] && !zero.x;
22253 rm -f conftest.$ac_objext
22254 if { (ac_try="$ac_compile"
22255 case "(($ac_try" in
22256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22257 *) ac_try_echo=$ac_try;;
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260 (eval "$ac_compile") 2>conftest.er1
22262 grep -v '^ *+' conftest.er1 >conftest.err
22264 cat conftest.err >&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } && {
22267 test -z "$ac_c_werror_flag" ||
22268 test ! -s conftest.err
22269 } && test -s conftest.$ac_objext; then
22272 echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22280 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22281 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22282 if test $ac_cv_c_const = no; then
22284 cat >>confdefs.h <<\_ACEOF
22290 { echo "$as_me:$LINENO: checking for inline" >&5
22291 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22292 if test "${ac_cv_c_inline+set}" = set; then
22293 echo $ECHO_N "(cached) $ECHO_C" >&6
22296 for ac_kw in inline __inline__ __inline; do
22297 cat >conftest.$ac_ext <<_ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h. */
22303 #ifndef __cplusplus
22305 static $ac_kw foo_t static_foo () {return 0; }
22306 $ac_kw foo_t foo () {return 0; }
22310 rm -f conftest.$ac_objext
22311 if { (ac_try="$ac_compile"
22312 case "(($ac_try" in
22313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314 *) ac_try_echo=$ac_try;;
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317 (eval "$ac_compile") 2>conftest.er1
22319 grep -v '^ *+' conftest.er1 >conftest.err
22321 cat conftest.err >&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } && {
22324 test -z "$ac_c_werror_flag" ||
22325 test ! -s conftest.err
22326 } && test -s conftest.$ac_objext; then
22327 ac_cv_c_inline=$ac_kw
22329 echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336 test "$ac_cv_c_inline" != no && break
22340 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22341 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22344 case $ac_cv_c_inline in
22347 case $ac_cv_c_inline in
22349 *) ac_val=$ac_cv_c_inline;;
22351 cat >>confdefs.h <<_ACEOF
22352 #ifndef __cplusplus
22353 #define inline $ac_val
22359 { echo "$as_me:$LINENO: checking for mode_t" >&5
22360 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22361 if test "${ac_cv_type_mode_t+set}" = set; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22364 cat >conftest.$ac_ext <<_ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h. */
22370 $ac_includes_default
22371 typedef mode_t ac__type_new_;
22375 if ((ac__type_new_ *) 0)
22377 if (sizeof (ac__type_new_))
22383 rm -f conftest.$ac_objext
22384 if { (ac_try="$ac_compile"
22385 case "(($ac_try" in
22386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387 *) ac_try_echo=$ac_try;;
22389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390 (eval "$ac_compile") 2>conftest.er1
22392 grep -v '^ *+' conftest.er1 >conftest.err
22394 cat conftest.err >&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } && {
22397 test -z "$ac_c_werror_flag" ||
22398 test ! -s conftest.err
22399 } && test -s conftest.$ac_objext; then
22400 ac_cv_type_mode_t=yes
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22405 ac_cv_type_mode_t=no
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22410 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22411 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22412 if test $ac_cv_type_mode_t = yes; then
22416 cat >>confdefs.h <<_ACEOF
22422 { echo "$as_me:$LINENO: checking for pid_t" >&5
22423 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22424 if test "${ac_cv_type_pid_t+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 cat >conftest.$ac_ext <<_ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h. */
22433 $ac_includes_default
22434 typedef pid_t ac__type_new_;
22438 if ((ac__type_new_ *) 0)
22440 if (sizeof (ac__type_new_))
22446 rm -f conftest.$ac_objext
22447 if { (ac_try="$ac_compile"
22448 case "(($ac_try" in
22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450 *) ac_try_echo=$ac_try;;
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_compile") 2>conftest.er1
22455 grep -v '^ *+' conftest.er1 >conftest.err
22457 cat conftest.err >&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest.$ac_objext; then
22463 ac_cv_type_pid_t=yes
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ac_cv_type_pid_t=no
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22473 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22474 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22475 if test $ac_cv_type_pid_t = yes; then
22479 cat >>confdefs.h <<_ACEOF
22485 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22486 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22487 if test "${ac_cv_type_signal+set}" = set; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 cat >conftest.$ac_ext <<_ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 #include <sys/types.h>
22497 #include <signal.h>
22502 return *(signal (0, 0)) (0) == 1;
22507 rm -f conftest.$ac_objext
22508 if { (ac_try="$ac_compile"
22509 case "(($ac_try" in
22510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511 *) ac_try_echo=$ac_try;;
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514 (eval "$ac_compile") 2>conftest.er1
22516 grep -v '^ *+' conftest.er1 >conftest.err
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } && {
22521 test -z "$ac_c_werror_flag" ||
22522 test ! -s conftest.err
22523 } && test -s conftest.$ac_objext; then
22524 ac_cv_type_signal=int
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 ac_cv_type_signal=void
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22534 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22535 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22537 cat >>confdefs.h <<_ACEOF
22538 #define RETSIGTYPE $ac_cv_type_signal
22543 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22544 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22545 if test "${ac_cv_header_time+set}" = set; then
22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22548 cat >conftest.$ac_ext <<_ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22554 #include <sys/types.h>
22555 #include <sys/time.h>
22561 if ((struct tm *) 0)
22567 rm -f conftest.$ac_objext
22568 if { (ac_try="$ac_compile"
22569 case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_compile") 2>conftest.er1
22576 grep -v '^ *+' conftest.er1 >conftest.err
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } && {
22581 test -z "$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22583 } && test -s conftest.$ac_objext; then
22584 ac_cv_header_time=yes
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ac_cv_header_time=no
22592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22594 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22595 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22596 if test $ac_cv_header_time = yes; then
22598 cat >>confdefs.h <<\_ACEOF
22599 #define TIME_WITH_SYS_TIME 1
22604 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22606 if test "${ac_cv_header_stdc+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22609 cat >conftest.$ac_ext <<_ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22615 #include <stdlib.h>
22616 #include <stdarg.h>
22617 #include <string.h>
22628 rm -f conftest.$ac_objext
22629 if { (ac_try="$ac_compile"
22630 case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_compile") 2>conftest.er1
22637 grep -v '^ *+' conftest.er1 >conftest.err
22639 cat conftest.err >&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest.$ac_objext; then
22645 ac_cv_header_stdc=yes
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22650 ac_cv_header_stdc=no
22653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 if test $ac_cv_header_stdc = yes; then
22656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22657 cat >conftest.$ac_ext <<_ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 #include <string.h>
22666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22667 $EGREP "memchr" >/dev/null 2>&1; then
22670 ac_cv_header_stdc=no
22676 if test $ac_cv_header_stdc = yes; then
22677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 #include <stdlib.h>
22687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22688 $EGREP "free" >/dev/null 2>&1; then
22691 ac_cv_header_stdc=no
22697 if test $ac_cv_header_stdc = yes; then
22698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22699 if test "$cross_compiling" = yes; then
22702 cat >conftest.$ac_ext <<_ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h. */
22709 #include <stdlib.h>
22710 #if ((' ' & 0x0FF) == 0x020)
22711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22714 # define ISLOWER(c) \
22715 (('a' <= (c) && (c) <= 'i') \
22716 || ('j' <= (c) && (c) <= 'r') \
22717 || ('s' <= (c) && (c) <= 'z'))
22718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22726 for (i = 0; i < 256; i++)
22727 if (XOR (islower (i), ISLOWER (i))
22728 || toupper (i) != TOUPPER (i))
22733 rm -f conftest$ac_exeext
22734 if { (ac_try="$ac_link"
22735 case "(($ac_try" in
22736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737 *) ac_try_echo=$ac_try;;
22739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740 (eval "$ac_link") 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22744 { (case "(($ac_try" in
22745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746 *) ac_try_echo=$ac_try;;
22748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22749 (eval "$ac_try") 2>&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; }; then
22755 echo "$as_me: program exited with status $ac_status" >&5
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ( exit $ac_status )
22760 ac_cv_header_stdc=no
22762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22768 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22769 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22770 if test $ac_cv_header_stdc = yes; then
22772 cat >>confdefs.h <<\_ACEOF
22773 #define STDC_HEADERS 1
22783 ac_header_dirent=no
22784 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22785 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22786 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22787 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22791 cat >conftest.$ac_ext <<_ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22797 #include <sys/types.h>
22809 rm -f conftest.$ac_objext
22810 if { (ac_try="$ac_compile"
22811 case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_compile") 2>conftest.er1
22818 grep -v '^ *+' conftest.er1 >conftest.err
22820 cat conftest.err >&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } && {
22823 test -z "$ac_c_werror_flag" ||
22824 test ! -s conftest.err
22825 } && test -s conftest.$ac_objext; then
22826 eval "$as_ac_Header=yes"
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 eval "$as_ac_Header=no"
22834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836 ac_res=`eval echo '${'$as_ac_Header'}'`
22837 { echo "$as_me:$LINENO: result: $ac_res" >&5
22838 echo "${ECHO_T}$ac_res" >&6; }
22839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22840 cat >>confdefs.h <<_ACEOF
22841 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22844 ac_header_dirent=$ac_hdr; break
22848 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22849 if test $ac_header_dirent = dirent.h; then
22850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22852 if test "${ac_cv_search_opendir+set}" = set; then
22853 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 ac_func_search_save_LIBS=$LIBS
22856 cat >conftest.$ac_ext <<_ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22863 /* Override any GCC internal prototype to avoid an error.
22864 Use char because int might match the return type of a GCC
22865 builtin and then its argument prototype would still apply. */
22878 for ac_lib in '' dir; do
22879 if test -z "$ac_lib"; then
22880 ac_res="none required"
22883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22885 rm -f conftest.$ac_objext conftest$ac_exeext
22886 if { (ac_try="$ac_link"
22887 case "(($ac_try" in
22888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22889 *) ac_try_echo=$ac_try;;
22891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22892 (eval "$ac_link") 2>conftest.er1
22894 grep -v '^ *+' conftest.er1 >conftest.err
22896 cat conftest.err >&5
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); } && {
22899 test -z "$ac_c_werror_flag" ||
22900 test ! -s conftest.err
22901 } && test -s conftest$ac_exeext &&
22902 $as_test_x conftest$ac_exeext; then
22903 ac_cv_search_opendir=$ac_res
22905 echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22913 if test "${ac_cv_search_opendir+set}" = set; then
22917 if test "${ac_cv_search_opendir+set}" = set; then
22920 ac_cv_search_opendir=no
22922 rm conftest.$ac_ext
22923 LIBS=$ac_func_search_save_LIBS
22925 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22926 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22927 ac_res=$ac_cv_search_opendir
22928 if test "$ac_res" != no; then
22929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22934 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22935 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22936 if test "${ac_cv_search_opendir+set}" = set; then
22937 echo $ECHO_N "(cached) $ECHO_C" >&6
22939 ac_func_search_save_LIBS=$LIBS
22940 cat >conftest.$ac_ext <<_ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22947 /* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22962 for ac_lib in '' x; do
22963 if test -z "$ac_lib"; then
22964 ac_res="none required"
22967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22969 rm -f conftest.$ac_objext conftest$ac_exeext
22970 if { (ac_try="$ac_link"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_link") 2>conftest.er1
22978 grep -v '^ *+' conftest.er1 >conftest.err
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest$ac_exeext &&
22986 $as_test_x conftest$ac_exeext; then
22987 ac_cv_search_opendir=$ac_res
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22997 if test "${ac_cv_search_opendir+set}" = set; then
23001 if test "${ac_cv_search_opendir+set}" = set; then
23004 ac_cv_search_opendir=no
23006 rm conftest.$ac_ext
23007 LIBS=$ac_func_search_save_LIBS
23009 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23010 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23011 ac_res=$ac_cv_search_opendir
23012 if test "$ac_res" != no; then
23013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23019 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23020 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
23021 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23022 echo $ECHO_N "(cached) $ECHO_C" >&6
23024 cat >conftest.$ac_ext <<_ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 #include <sys/types.h>
23031 #include <sys/wait.h>
23032 #ifndef WEXITSTATUS
23033 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23036 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23044 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23049 rm -f conftest.$ac_objext
23050 if { (ac_try="$ac_compile"
23051 case "(($ac_try" in
23052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053 *) ac_try_echo=$ac_try;;
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_compile") 2>conftest.er1
23058 grep -v '^ *+' conftest.er1 >conftest.err
23060 cat conftest.err >&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest.$ac_objext; then
23066 ac_cv_header_sys_wait_h=yes
23068 echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23071 ac_cv_header_sys_wait_h=no
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23076 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23077 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
23078 if test $ac_cv_header_sys_wait_h = yes; then
23080 cat >>confdefs.h <<\_ACEOF
23081 #define HAVE_SYS_WAIT_H 1
23103 for ac_header in des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h
23105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23110 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 ac_res=`eval echo '${'$as_ac_Header'}'`
23113 { echo "$as_me:$LINENO: result: $ac_res" >&5
23114 echo "${ECHO_T}$ac_res" >&6; }
23116 # Is the header compilable?
23117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23119 cat >conftest.$ac_ext <<_ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23125 $ac_includes_default
23126 #include <$ac_header>
23128 rm -f conftest.$ac_objext
23129 if { (ac_try="$ac_compile"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135 (eval "$ac_compile") 2>conftest.er1
23137 grep -v '^ *+' conftest.er1 >conftest.err
23139 cat conftest.err >&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); } && {
23142 test -z "$ac_c_werror_flag" ||
23143 test ! -s conftest.err
23144 } && test -s conftest.$ac_objext; then
23145 ac_header_compiler=yes
23147 echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23150 ac_header_compiler=no
23153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23155 echo "${ECHO_T}$ac_header_compiler" >&6; }
23157 # Is the header present?
23158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23160 cat >conftest.$ac_ext <<_ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h. */
23166 #include <$ac_header>
23168 if { (ac_try="$ac_cpp conftest.$ac_ext"
23169 case "(($ac_try" in
23170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171 *) ac_try_echo=$ac_try;;
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23176 grep -v '^ *+' conftest.er1 >conftest.err
23178 cat conftest.err >&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } >/dev/null && {
23181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23182 test ! -s conftest.err
23184 ac_header_preproc=yes
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ac_header_preproc=no
23192 rm -f conftest.err conftest.$ac_ext
23193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23194 echo "${ECHO_T}$ac_header_preproc" >&6; }
23196 # So? What about this header?
23197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23203 ac_header_preproc=yes
23206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23226 eval "$as_ac_Header=\$ac_header_preproc"
23228 ac_res=`eval echo '${'$as_ac_Header'}'`
23229 { echo "$as_me:$LINENO: result: $ac_res" >&5
23230 echo "${ECHO_T}$ac_res" >&6; }
23233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23234 cat >>confdefs.h <<_ACEOF
23235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23244 { echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
23245 echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6; }
23246 if test "${ipv6_cv_ss_family+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23255 #include <sys/types.h>
23256 #include <sys/socket.h>
23260 struct sockaddr_storage ss; int i = ss.ss_family;
23265 rm -f conftest.$ac_objext
23266 if { (ac_try="$ac_compile"
23267 case "(($ac_try" in
23268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23269 *) ac_try_echo=$ac_try;;
23271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23272 (eval "$ac_compile") 2>conftest.er1
23274 grep -v '^ *+' conftest.er1 >conftest.err
23276 cat conftest.err >&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); } && {
23279 test -z "$ac_c_werror_flag" ||
23280 test ! -s conftest.err
23281 } && test -s conftest.$ac_objext; then
23282 ipv6_cv_ss_family=yes
23284 echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23287 ipv6_cv_ss_family=no
23290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292 if test $ipv6_cv_ss_family = yes; then
23294 cat >>confdefs.h <<\_ACEOF
23295 #define HAVE_SS_FAMILY
23301 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
23302 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
23304 { echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
23305 echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6; }
23306 if test "${ipv6_cv_sa_len+set}" = set; then
23307 echo $ECHO_N "(cached) $ECHO_C" >&6
23309 cat >conftest.$ac_ext <<_ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23315 #include <sys/types.h>
23316 #include <sys/socket.h>
23320 struct sockaddr sa; int i = sa.sa_len;
23325 rm -f conftest.$ac_objext
23326 if { (ac_try="$ac_compile"
23327 case "(($ac_try" in
23328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329 *) ac_try_echo=$ac_try;;
23331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23332 (eval "$ac_compile") 2>conftest.er1
23334 grep -v '^ *+' conftest.er1 >conftest.err
23336 cat conftest.err >&5
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); } && {
23339 test -z "$ac_c_werror_flag" ||
23340 test ! -s conftest.err
23341 } && test -s conftest.$ac_objext; then
23344 echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352 if test $ipv6_cv_sa_len = yes; then
23354 cat >>confdefs.h <<\_ACEOF
23355 #define HAVE_SOCKADDR_SA_LEN
23361 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
23362 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
23364 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23365 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23366 if test "${ipv6_cv_socklen_t+set}" = set; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23369 cat >conftest.$ac_ext <<_ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23375 #include <sys/types.h>
23376 #include <sys/socket.h>
23385 rm -f conftest.$ac_objext conftest$ac_exeext
23386 if { (ac_try="$ac_link"
23387 case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_link") 2>conftest.er1
23394 grep -v '^ *+' conftest.er1 >conftest.err
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest$ac_exeext &&
23402 $as_test_x conftest$ac_exeext; then
23403 ipv6_cv_socklen_t=yes
23405 echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23408 ipv6_cv_socklen_t=no
23411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23412 conftest$ac_exeext conftest.$ac_ext
23414 if test $ipv6_cv_socklen_t = yes; then
23416 cat >>confdefs.h <<\_ACEOF
23417 #define HAVE_SOCKLEN_T
23423 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
23424 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
23445 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
23447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23453 cat >conftest.$ac_ext <<_ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23461 #define $ac_func innocuous_$ac_func
23463 /* System header to define __stub macros and hopefully few prototypes,
23464 which can conflict with char $ac_func (); below.
23465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23466 <limits.h> exists even on freestanding compilers. */
23469 # include <limits.h>
23471 # include <assert.h>
23476 /* Override any GCC internal prototype to avoid an error.
23477 Use char because int might match the return type of a GCC
23478 builtin and then its argument prototype would still apply. */
23483 /* The GNU C library defines this for functions which it implements
23484 to always fail with ENOSYS. Some functions are actually named
23485 something starting with __ and the normal name is an alias. */
23486 #if defined __stub_$ac_func || defined __stub___$ac_func
23493 return $ac_func ();
23498 rm -f conftest.$ac_objext conftest$ac_exeext
23499 if { (ac_try="$ac_link"
23500 case "(($ac_try" in
23501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502 *) ac_try_echo=$ac_try;;
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505 (eval "$ac_link") 2>conftest.er1
23507 grep -v '^ *+' conftest.er1 >conftest.err
23509 cat conftest.err >&5
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); } && {
23512 test -z "$ac_c_werror_flag" ||
23513 test ! -s conftest.err
23514 } && test -s conftest$ac_exeext &&
23515 $as_test_x conftest$ac_exeext; then
23516 eval "$as_ac_var=yes"
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 eval "$as_ac_var=no"
23524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23525 conftest$ac_exeext conftest.$ac_ext
23527 ac_res=`eval echo '${'$as_ac_var'}'`
23528 { echo "$as_me:$LINENO: result: $ac_res" >&5
23529 echo "${ECHO_T}$ac_res" >&6; }
23530 if test `eval echo '${'$as_ac_var'}'` = yes; then
23531 cat >>confdefs.h <<_ACEOF
23532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23539 if test $enable_cmulocal = yes; then
23540 { echo "$as_me:$LINENO: WARNING: enabling CMU local kludges" >&5
23541 echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
23543 cat >>confdefs.h <<\_ACEOF
23544 #define KRB4_IGNORE_IP_ADDRESS
23548 cat >>confdefs.h <<_ACEOF
23549 #define PREFER_MECH "KERBEROS_V4"
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 #include <sys/socket.h>
23563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23564 $EGREP "sockaddr_storage" >/dev/null 2>&1; then
23567 cat >>confdefs.h <<\_ACEOF
23568 #define HAVE_STRUCT_SOCKADDR_STORAGE
23577 subdirs="$subdirs saslauthd"
23586 ac_config_headers="$ac_config_headers config.h"
23589 ac_config_files="$ac_config_files Makefile include/Makefile sasldb/Makefile plugins/Makefile lib/Makefile utils/Makefile doc/Makefile sample/Makefile java/Makefile java/CyrusSasl/Makefile java/Test/Makefile java/javax/Makefile java/javax/security/Makefile java/javax/security/auth/Makefile java/javax/security/auth/callback/Makefile pwcheck/Makefile man/Makefile"
23591 cat >confcache <<\_ACEOF
23592 # This file is a shell script that caches the results of configure
23593 # tests run on this system so they can be shared between configure
23594 # scripts and configure runs, see configure's option --config-cache.
23595 # It is not useful on other systems. If it contains results you don't
23596 # want to keep, you may remove or edit it.
23598 # config.status only pays attention to the cache file if you give it
23599 # the --recheck option to rerun configure.
23601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23603 # following values.
23607 # The following way of writing the cache mishandles newlines in values,
23608 # but we know of no workaround that is simple, portable, and efficient.
23609 # So, we kill variables containing newlines.
23610 # Ultrix sh set writes to stderr and can't be redirected directly,
23611 # and sets the high bit in the cache file unless we assign to the vars.
23613 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23614 eval ac_val=\$$ac_var
23618 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23619 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23622 _ | IFS | as_nl) ;; #(
23623 *) $as_unset $ac_var ;;
23629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23630 *${as_nl}ac_space=\ *)
23631 # `set' does not quote correctly, so add quotes (double-quote
23632 # substitution turns \\\\ into \\, and sed turns \\ into \).
23635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23638 # `set' quotes correctly as required by POSIX, so do not add quotes.
23639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23653 if test -w "$cache_file"; then
23654 test "x$cache_file" != "x/dev/null" &&
23655 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23656 echo "$as_me: updating cache $cache_file" >&6;}
23657 cat confcache >$cache_file
23659 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23660 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23666 # Let make expand exec_prefix.
23667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23669 DEFS=-DHAVE_CONFIG_H
23673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23674 # 1. Remove the extension, and $U if already installed.
23675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23676 ac_i=`echo "$ac_i" | sed "$ac_script"`
23677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23678 # will be set to the directory where LIBOBJS objects are built.
23679 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23680 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23682 LIBOBJS=$ac_libobjs
23684 LTLIBOBJS=$ac_ltlibobjs
23687 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23688 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23689 Usually this means the macro was only invoked conditionally." >&5
23690 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23691 Usually this means the macro was only invoked conditionally." >&2;}
23692 { (exit 1); exit 1; }; }
23694 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23695 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23696 Usually this means the macro was only invoked conditionally." >&5
23697 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23698 Usually this means the macro was only invoked conditionally." >&2;}
23699 { (exit 1); exit 1; }; }
23701 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
23702 { { echo "$as_me:$LINENO: error: conditional \"JAVA\" was never defined.
23703 Usually this means the macro was only invoked conditionally." >&5
23704 echo "$as_me: error: conditional \"JAVA\" was never defined.
23705 Usually this means the macro was only invoked conditionally." >&2;}
23706 { (exit 1); exit 1; }; }
23708 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
23709 { { echo "$as_me:$LINENO: error: conditional \"SAMPLE\" was never defined.
23710 Usually this means the macro was only invoked conditionally." >&5
23711 echo "$as_me: error: conditional \"SAMPLE\" was never defined.
23712 Usually this means the macro was only invoked conditionally." >&2;}
23713 { (exit 1); exit 1; }; }
23715 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
23716 { { echo "$as_me:$LINENO: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23717 Usually this means the macro was only invoked conditionally." >&5
23718 echo "$as_me: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23719 Usually this means the macro was only invoked conditionally." >&2;}
23720 { (exit 1); exit 1; }; }
23722 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
23723 { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
23724 Usually this means the macro was only invoked conditionally." >&5
23725 echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
23726 Usually this means the macro was only invoked conditionally." >&2;}
23727 { (exit 1); exit 1; }; }
23729 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
23730 { { echo "$as_me:$LINENO: error: conditional \"PWCHECK\" was never defined.
23731 Usually this means the macro was only invoked conditionally." >&5
23732 echo "$as_me: error: conditional \"PWCHECK\" was never defined.
23733 Usually this means the macro was only invoked conditionally." >&2;}
23734 { (exit 1); exit 1; }; }
23736 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
23737 { { echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined.
23738 Usually this means the macro was only invoked conditionally." >&5
23739 echo "$as_me: error: conditional \"MACOSX\" was never defined.
23740 Usually this means the macro was only invoked conditionally." >&2;}
23741 { (exit 1); exit 1; }; }
23744 : ${CONFIG_STATUS=./config.status}
23745 ac_clean_files_save=$ac_clean_files
23746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23747 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23748 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23749 cat >$CONFIG_STATUS <<_ACEOF
23751 # Generated by $as_me.
23752 # Run this file to recreate the current configuration.
23753 # Compiler output produced by configure, useful for debugging
23754 # configure, is in config.log if it exists.
23757 ac_cs_recheck=false
23759 SHELL=\${CONFIG_SHELL-$SHELL}
23762 cat >>$CONFIG_STATUS <<\_ACEOF
23763 ## --------------------- ##
23764 ## M4sh Initialization. ##
23765 ## --------------------- ##
23767 # Be more Bourne compatible
23768 DUALCASE=1; export DUALCASE # for MKS sh
23769 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23772 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23773 # is contrary to our usage. Disable this feature.
23774 alias -g '${1+"$@"}'='"$@"'
23775 setopt NO_GLOB_SUBST
23777 case `(set -o) 2>/dev/null` in
23778 *posix*) set -o posix ;;
23787 # Avoid depending upon Character Ranges.
23788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23791 as_cr_digits='0123456789'
23792 as_cr_alnum=$as_cr_Letters$as_cr_digits
23794 # The user is always right.
23795 if test "${PATH_SEPARATOR+set}" != set; then
23796 echo "#! /bin/sh" >conf$$.sh
23797 echo "exit 0" >>conf$$.sh
23799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23807 # Support unset when possible.
23808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23816 # We need space, tab and new line, in precisely that order. Quoting is
23817 # there to prevent editors from complaining about space-tab.
23818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23819 # splitting by setting IFS to empty value.)
23824 # Find who we are. Look in the path if we contain no directory separator.
23826 *[\\/]* ) as_myself=$0 ;;
23827 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23828 for as_dir in $PATH
23831 test -z "$as_dir" && as_dir=.
23832 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23838 # We did not find ourselves, most probably we were run as `sh COMMAND'
23839 # in which case we are not to be found in the path.
23840 if test "x$as_myself" = x; then
23843 if test ! -f "$as_myself"; then
23844 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23845 { (exit 1); exit 1; }
23848 # Work around bugs in pre-3.0 UWIN ksh.
23849 for as_var in ENV MAIL MAILPATH
23850 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23858 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23859 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23860 LC_TELEPHONE LC_TIME
23862 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23863 eval $as_var=C; export $as_var
23865 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23869 # Required to use basename.
23870 if expr a : '\(a\)' >/dev/null 2>&1 &&
23871 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23877 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23878 as_basename=basename
23884 # Name of the executable.
23885 as_me=`$as_basename -- "$0" ||
23886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23887 X"$0" : 'X\(//\)$' \| \
23888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23890 sed '/^.*\/\([^/][^/]*\)\/*$/{
23909 as_lineno_1=$LINENO
23910 as_lineno_2=$LINENO
23911 test "x$as_lineno_1" != "x$as_lineno_2" &&
23912 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23914 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23915 # uniformly replaced by the line number. The first 'sed' inserts a
23916 # line-number line after each line using $LINENO; the second 'sed'
23917 # does the real work. The second script uses 'N' to pair each
23918 # line-number line with the line containing $LINENO, and appends
23919 # trailing '-' during substitution so that $LINENO is not a special
23920 # case at line end.
23921 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23922 # scripts with optimization help from Paolo Bonzini. Blame Lee
23923 # E. McMahon (1931-1989) for sed's syntax. :-)
23935 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23938 ' >$as_me.lineno &&
23939 chmod +x "$as_me.lineno" ||
23940 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23941 { (exit 1); exit 1; }; }
23943 # Don't try to exec as it changes $[0], causing all sort of problems
23944 # (the dirname of $[0] is not the place where we might find the
23945 # original and so on. Autoconf is especially sensitive to this).
23946 . "./$as_me.lineno"
23947 # Exit status is that of the last command.
23952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23958 ECHO_C= ECHO_N= ECHO_T=
23959 case `echo -n x` in
23961 case `echo 'x\c'` in
23962 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23969 if expr a : '\(a\)' >/dev/null 2>&1 &&
23970 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23976 rm -f conf$$ conf$$.exe conf$$.file
23977 if test -d conf$$.dir; then
23978 rm -f conf$$.dir/conf$$.file
23984 if ln -s conf$$.file conf$$ 2>/dev/null; then
23986 # ... but there are two gotchas:
23987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23989 # In both cases, we have to default to `cp -p'.
23990 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23992 elif ln conf$$.file conf$$ 2>/dev/null; then
23997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23998 rmdir conf$$.dir 2>/dev/null
24000 if mkdir -p . 2>/dev/null; then
24003 test -d ./-p && rmdir ./-p
24007 if test -x / >/dev/null 2>&1; then
24008 as_test_x='test -x'
24010 if ls -dL / >/dev/null 2>&1; then
24017 if test -d "$1"; then
24023 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24024 ???[sx]*):;;*)false;;esac;fi
24028 as_executable_p=$as_test_x
24030 # Sed expression to map a string onto a valid CPP name.
24031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24033 # Sed expression to map a string onto a valid variable name.
24034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24039 # Save the log message, to keep $[0] and so on meaningful, and to
24040 # report actual input values of CONFIG_FILES etc. instead of their
24041 # values after options handling.
24043 This file was extended by $as_me, which was
24044 generated by GNU Autoconf 2.61. Invocation command line was
24046 CONFIG_FILES = $CONFIG_FILES
24047 CONFIG_HEADERS = $CONFIG_HEADERS
24048 CONFIG_LINKS = $CONFIG_LINKS
24049 CONFIG_COMMANDS = $CONFIG_COMMANDS
24052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24057 cat >>$CONFIG_STATUS <<_ACEOF
24058 # Files that config.status was made for.
24059 config_files="$ac_config_files"
24060 config_headers="$ac_config_headers"
24061 config_commands="$ac_config_commands"
24065 cat >>$CONFIG_STATUS <<\_ACEOF
24067 \`$as_me' instantiates files from templates according to the
24068 current configuration.
24070 Usage: $0 [OPTIONS] [FILE]...
24072 -h, --help print this help, then exit
24073 -V, --version print version number and configuration settings, then exit
24074 -q, --quiet do not print progress messages
24075 -d, --debug don't remove temporary files
24076 --recheck update $as_me by reconfiguring in the same conditions
24077 --file=FILE[:TEMPLATE]
24078 instantiate the configuration file FILE
24079 --header=FILE[:TEMPLATE]
24080 instantiate the configuration header FILE
24082 Configuration files:
24085 Configuration headers:
24088 Configuration commands:
24091 Report bugs to <bug-autoconf@gnu.org>."
24094 cat >>$CONFIG_STATUS <<_ACEOF
24097 configured by $0, generated by GNU Autoconf 2.61,
24098 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24100 Copyright (C) 2006 Free Software Foundation, Inc.
24101 This config.status script is free software; the Free Software Foundation
24102 gives unlimited permission to copy, distribute and modify it."
24110 cat >>$CONFIG_STATUS <<\_ACEOF
24111 # If no file are specified by the user, then we need to provide default
24112 # value. By we need to know if files were specified by the user.
24118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24119 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24130 # Handling of the options.
24131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24134 echo "$ac_cs_version"; exit ;;
24135 --debug | --debu | --deb | --de | --d | -d )
24137 --file | --fil | --fi | --f )
24139 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24140 ac_need_defaults=false;;
24141 --header | --heade | --head | --hea )
24143 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24144 ac_need_defaults=false;;
24146 # Conflict between --help and --header
24147 { echo "$as_me: error: ambiguous option: $1
24148 Try \`$0 --help' for more information." >&2
24149 { (exit 1); exit 1; }; };;
24150 --help | --hel | -h )
24151 echo "$ac_cs_usage"; exit ;;
24152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24153 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24156 # This is an error.
24157 -*) { echo "$as_me: error: unrecognized option: $1
24158 Try \`$0 --help' for more information." >&2
24159 { (exit 1); exit 1; }; } ;;
24161 *) ac_config_targets="$ac_config_targets $1"
24162 ac_need_defaults=false ;;
24168 ac_configure_extra_args=
24170 if $ac_cs_silent; then
24172 ac_configure_extra_args="$ac_configure_extra_args --silent"
24176 cat >>$CONFIG_STATUS <<_ACEOF
24177 if \$ac_cs_recheck; then
24178 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24179 CONFIG_SHELL=$SHELL
24180 export CONFIG_SHELL
24181 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24185 cat >>$CONFIG_STATUS <<\_ACEOF
24189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24190 ## Running $as_me. ##
24196 cat >>$CONFIG_STATUS <<_ACEOF
24200 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24203 # The HP-UX ksh and POSIX shell print the target directory to stdout
24204 # if CDPATH is set.
24205 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24207 sed_quote_subst='$sed_quote_subst'
24208 double_quote_subst='$double_quote_subst'
24209 delay_variable_subst='$delay_variable_subst'
24210 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24211 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24212 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24213 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24214 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24215 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24216 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24217 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24218 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24219 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24220 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24221 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24222 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24223 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24224 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24225 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24226 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24227 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24228 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24229 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24230 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24231 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24232 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24233 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24234 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24235 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24236 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24237 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24238 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24239 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24240 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24241 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24242 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24243 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24244 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24245 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24246 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24247 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24248 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24249 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24250 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24251 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24252 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24253 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24254 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24255 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24256 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24257 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24259 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24260 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24261 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24262 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24263 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24264 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24265 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24266 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24267 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24268 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24269 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24270 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24271 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24272 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24273 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24274 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24275 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24276 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24277 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24278 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24279 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24280 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24281 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24282 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24283 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24284 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24285 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24286 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24287 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24288 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24289 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24290 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
24291 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24292 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24293 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24294 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24295 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24296 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24297 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24298 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24299 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
24300 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24301 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24302 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24303 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24304 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24305 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24306 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24307 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24308 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24309 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24310 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24311 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24312 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24313 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24314 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24315 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24316 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24317 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24318 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24319 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24320 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24321 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24322 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24323 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24324 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24325 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24326 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24327 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24328 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24329 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24332 LTCFLAGS='$LTCFLAGS'
24333 compiler='$compiler_DEFAULT'
24335 # A function that is used when there is no print builtin or printf.
24336 func_fallback_echo ()
24338 eval 'cat <<_LTECHO_EOF
24343 # Quote evaled strings.
24357 deplibs_check_method \
24366 lt_cv_sys_global_symbol_pipe \
24367 lt_cv_sys_global_symbol_to_cdecl \
24368 lt_cv_sys_global_symbol_to_c_name_address \
24369 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24370 lt_prog_compiler_no_builtin_flag \
24371 lt_prog_compiler_wl \
24372 lt_prog_compiler_pic \
24373 lt_prog_compiler_static \
24374 lt_cv_prog_compiler_c_o \
24382 export_dynamic_flag_spec \
24383 whole_archive_flag_spec \
24384 compiler_needs_object \
24386 allow_undefined_flag \
24387 no_undefined_flag \
24388 hardcode_libdir_flag_spec \
24389 hardcode_libdir_flag_spec_ld \
24390 hardcode_libdir_separator \
24395 variables_saved_for_relink \
24397 library_names_spec \
24399 install_override_mode \
24403 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24404 *[\\\\\\\`\\"\\\$]*)
24405 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24408 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24413 # Double-quote double-evaled strings.
24414 for var in reload_cmds \
24415 old_postinstall_cmds \
24416 old_postuninstall_cmds \
24418 extract_expsyms_cmds \
24419 old_archive_from_new_cmds \
24420 old_archive_from_expsyms_cmds \
24422 archive_expsym_cmds \
24424 module_expsym_cmds \
24425 export_symbols_cmds \
24428 postuninstall_cmds \
24430 sys_lib_search_path_spec \
24431 sys_lib_dlsearch_path_spec; do
24432 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24433 *[\\\\\\\`\\"\\\$]*)
24434 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24437 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24442 ac_aux_dir='$ac_aux_dir'
24443 xsi_shell='$xsi_shell'
24444 lt_shell_append='$lt_shell_append'
24446 # See if we are running on zsh, and set the options which allow our
24447 # commands through without removal of \ escapes INIT.
24448 if test -n "\${ZSH_VERSION+set}" ; then
24449 setopt NO_GLOB_SUBST
24455 TIMESTAMP='$TIMESTAMP'
24464 cat >>$CONFIG_STATUS <<\_ACEOF
24466 # Handling of arguments.
24467 for ac_config_target in $ac_config_targets
24469 case $ac_config_target in
24470 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24471 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24472 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24473 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24474 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24475 "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
24476 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
24477 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24478 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
24479 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24480 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
24481 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
24482 "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
24483 "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
24484 "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
24485 "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
24486 "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
24487 "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
24488 "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
24489 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24493 { (exit 1); exit 1; }; };;
24498 # If the user did not use the arguments to specify the items to instantiate,
24499 # then the envvar interface is used. Set only those that are not.
24500 # We use the long form for the default assignment because of an extremely
24501 # bizarre bug on SunOS 4.1.3.
24502 if $ac_need_defaults; then
24503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24508 # Have a temporary directory for convenience. Make it in the build tree
24509 # simply because there is no reason against having it here, and in addition,
24510 # creating and moving files from /tmp can sometimes cause problems.
24511 # Hook for its removal unless debugging.
24512 # Note that there is a small window in which the directory will not be cleaned:
24513 # after its creation but before its name has been assigned to `$tmp'.
24517 trap 'exit_status=$?
24518 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24520 trap '{ (exit 1); exit 1; }' 1 2 13 15
24522 # Create a (secure) tmp directory for tmp files.
24525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24526 test -n "$tmp" && test -d "$tmp"
24529 tmp=./conf$$-$RANDOM
24530 (umask 077 && mkdir "$tmp")
24533 echo "$me: cannot create a temporary directory in ." >&2
24534 { (exit 1); exit 1; }
24538 # Set up the sed scripts for CONFIG_FILES section.
24541 # No need to generate the scripts if there are no CONFIG_FILES.
24542 # This happens for instance when ./config.status config.h
24543 if test -n "$CONFIG_FILES"; then
24550 for ac_last_try in false false false false false :; do
24551 cat >conf$$subs.sed <<_ACEOF
24552 SHELL!$SHELL$ac_delim
24553 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24554 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24555 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24556 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24557 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24558 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24559 exec_prefix!$exec_prefix$ac_delim
24560 prefix!$prefix$ac_delim
24561 program_transform_name!$program_transform_name$ac_delim
24562 bindir!$bindir$ac_delim
24563 sbindir!$sbindir$ac_delim
24564 libexecdir!$libexecdir$ac_delim
24565 datarootdir!$datarootdir$ac_delim
24566 datadir!$datadir$ac_delim
24567 sysconfdir!$sysconfdir$ac_delim
24568 sharedstatedir!$sharedstatedir$ac_delim
24569 localstatedir!$localstatedir$ac_delim
24570 includedir!$includedir$ac_delim
24571 oldincludedir!$oldincludedir$ac_delim
24572 docdir!$docdir$ac_delim
24573 infodir!$infodir$ac_delim
24574 htmldir!$htmldir$ac_delim
24575 dvidir!$dvidir$ac_delim
24576 pdfdir!$pdfdir$ac_delim
24577 psdir!$psdir$ac_delim
24578 libdir!$libdir$ac_delim
24579 localedir!$localedir$ac_delim
24580 mandir!$mandir$ac_delim
24581 DEFS!$DEFS$ac_delim
24582 ECHO_C!$ECHO_C$ac_delim
24583 ECHO_N!$ECHO_N$ac_delim
24584 ECHO_T!$ECHO_T$ac_delim
24585 LIBS!$LIBS$ac_delim
24586 build_alias!$build_alias$ac_delim
24587 host_alias!$host_alias$ac_delim
24588 target_alias!$target_alias$ac_delim
24589 build!$build$ac_delim
24590 build_cpu!$build_cpu$ac_delim
24591 build_vendor!$build_vendor$ac_delim
24592 build_os!$build_os$ac_delim
24593 host!$host$ac_delim
24594 host_cpu!$host_cpu$ac_delim
24595 host_vendor!$host_vendor$ac_delim
24596 host_os!$host_os$ac_delim
24597 target!$target$ac_delim
24598 target_cpu!$target_cpu$ac_delim
24599 target_vendor!$target_vendor$ac_delim
24600 target_os!$target_os$ac_delim
24601 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24602 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24603 INSTALL_DATA!$INSTALL_DATA$ac_delim
24604 am__isrc!$am__isrc$ac_delim
24605 CYGPATH_W!$CYGPATH_W$ac_delim
24606 PACKAGE!$PACKAGE$ac_delim
24607 VERSION!$VERSION$ac_delim
24608 ACLOCAL!$ACLOCAL$ac_delim
24609 AUTOCONF!$AUTOCONF$ac_delim
24610 AUTOMAKE!$AUTOMAKE$ac_delim
24611 AUTOHEADER!$AUTOHEADER$ac_delim
24612 MAKEINFO!$MAKEINFO$ac_delim
24613 install_sh!$install_sh$ac_delim
24614 STRIP!$STRIP$ac_delim
24615 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24616 mkdir_p!$mkdir_p$ac_delim
24618 SET_MAKE!$SET_MAKE$ac_delim
24619 am__leading_dot!$am__leading_dot$ac_delim
24620 AMTAR!$AMTAR$ac_delim
24621 am__tar!$am__tar$ac_delim
24622 am__untar!$am__untar$ac_delim
24624 CFLAGS!$CFLAGS$ac_delim
24625 LDFLAGS!$LDFLAGS$ac_delim
24626 CPPFLAGS!$CPPFLAGS$ac_delim
24627 ac_ct_CC!$ac_ct_CC$ac_delim
24628 EXEEXT!$EXEEXT$ac_delim
24629 OBJEXT!$OBJEXT$ac_delim
24630 DEPDIR!$DEPDIR$ac_delim
24631 am__include!$am__include$ac_delim
24632 am__quote!$am__quote$ac_delim
24633 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24634 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24635 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24636 CCDEPMODE!$CCDEPMODE$ac_delim
24637 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24638 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24640 LN_S!$LN_S$ac_delim
24641 LIBTOOL!$LIBTOOL$ac_delim
24643 GREP!$GREP$ac_delim
24644 EGREP!$EGREP$ac_delim
24645 FGREP!$FGREP$ac_delim
24647 DUMPBIN!$DUMPBIN$ac_delim
24648 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
24651 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24653 elif $ac_last_try; then
24654 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24655 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24656 { (exit 1); exit 1; }; }
24658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24663 if test -n "$ac_eof"; then
24664 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24665 ac_eof=`expr $ac_eof + 1`
24668 cat >>$CONFIG_STATUS <<_ACEOF
24669 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24673 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24674 s/^/s,@/; s/!/@,|#_!!_#|/
24677 s/'"$ac_delim"'$/,g/; t
24679 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24680 ' >>$CONFIG_STATUS <conf$$subs.sed
24681 rm -f conf$$subs.sed
24682 cat >>$CONFIG_STATUS <<_ACEOF
24688 for ac_last_try in false false false false false :; do
24689 cat >conf$$subs.sed <<_ACEOF
24691 OBJDUMP!$OBJDUMP$ac_delim
24693 RANLIB!$RANLIB$ac_delim
24694 DSYMUTIL!$DSYMUTIL$ac_delim
24695 NMEDIT!$NMEDIT$ac_delim
24696 LIPO!$LIPO$ac_delim
24697 OTOOL!$OTOOL$ac_delim
24698 OTOOL64!$OTOOL64$ac_delim
24699 PURECOV!$PURECOV$ac_delim
24700 PURIFY!$PURIFY$ac_delim
24701 JAVAC!$JAVAC$ac_delim
24702 JAVAH!$JAVAH$ac_delim
24703 JAVADOC!$JAVADOC$ac_delim
24704 JAVA_TRUE!$JAVA_TRUE$ac_delim
24705 JAVA_FALSE!$JAVA_FALSE$ac_delim
24706 JAVA_INCLUDES!$JAVA_INCLUDES$ac_delim
24707 JAVAROOT!$JAVAROOT$ac_delim
24708 SAMPLE_TRUE!$SAMPLE_TRUE$ac_delim
24709 SAMPLE_FALSE!$SAMPLE_FALSE$ac_delim
24710 LIB_SOCKET!$LIB_SOCKET$ac_delim
24711 SASL_DB_UTILS!$SASL_DB_UTILS$ac_delim
24712 SASL_DB_MANS!$SASL_DB_MANS$ac_delim
24713 SASL_DB_BACKEND!$SASL_DB_BACKEND$ac_delim
24714 SASL_DB_BACKEND_STATIC!$SASL_DB_BACKEND_STATIC$ac_delim
24715 SASL_DB_INC!$SASL_DB_INC$ac_delim
24716 SASL_DB_LIB!$SASL_DB_LIB$ac_delim
24717 NO_SASL_DB_MANS_TRUE!$NO_SASL_DB_MANS_TRUE$ac_delim
24718 NO_SASL_DB_MANS_FALSE!$NO_SASL_DB_MANS_FALSE$ac_delim
24719 SASL_DL_LIB!$SASL_DL_LIB$ac_delim
24720 SASLAUTHD_TRUE!$SASLAUTHD_TRUE$ac_delim
24721 SASLAUTHD_FALSE!$SASLAUTHD_FALSE$ac_delim
24722 PWCHECKMETH!$PWCHECKMETH$ac_delim
24723 PWCHECK_TRUE!$PWCHECK_TRUE$ac_delim
24724 PWCHECK_FALSE!$PWCHECK_FALSE$ac_delim
24725 IPCTYPE!$IPCTYPE$ac_delim
24726 LIB_DOOR!$LIB_DOOR$ac_delim
24727 CMU_LIB_SUBDIR!$CMU_LIB_SUBDIR$ac_delim
24728 LIB_DES!$LIB_DES$ac_delim
24729 OTP_LIBS!$OTP_LIBS$ac_delim
24730 SRP_LIBS!$SRP_LIBS$ac_delim
24731 SASL_KRB_LIB!$SASL_KRB_LIB$ac_delim
24732 LIB_CRYPT!$LIB_CRYPT$ac_delim
24733 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
24734 GSSAPIBASE_LIBS!$GSSAPIBASE_LIBS$ac_delim
24735 PLAIN_LIBS!$PLAIN_LIBS$ac_delim
24736 NTLM_LIBS!$NTLM_LIBS$ac_delim
24737 PASSDSS_LIBS!$PASSDSS_LIBS$ac_delim
24738 LIB_MYSQL!$LIB_MYSQL$ac_delim
24739 LIB_PGSQL!$LIB_PGSQL$ac_delim
24740 LIB_SQLITE!$LIB_SQLITE$ac_delim
24741 LIB_LDAP!$LIB_LDAP$ac_delim
24742 SASL_MECHS!$SASL_MECHS$ac_delim
24743 SASL_STATIC_SRCS!$SASL_STATIC_SRCS$ac_delim
24744 SASL_STATIC_OBJS!$SASL_STATIC_OBJS$ac_delim
24745 SASL_STATIC_LIBS!$SASL_STATIC_LIBS$ac_delim
24746 plugindir!$plugindir$ac_delim
24747 configdir!$configdir$ac_delim
24748 MACOSX_TRUE!$MACOSX_TRUE$ac_delim
24749 MACOSX_FALSE!$MACOSX_FALSE$ac_delim
24750 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
24751 SFIO_INC_FLAGS!$SFIO_INC_FLAGS$ac_delim
24752 SFIO_LIB_FLAGS!$SFIO_LIB_FLAGS$ac_delim
24753 SMTPTEST_PROGRAM!$SMTPTEST_PROGRAM$ac_delim
24754 SASL_UTIL_LIBS_EXTRA!$SASL_UTIL_LIBS_EXTRA$ac_delim
24755 SASL_UTIL_HEADERS_EXTRA!$SASL_UTIL_HEADERS_EXTRA$ac_delim
24756 LIBOBJS!$LIBOBJS$ac_delim
24757 GETSUBOPT!$GETSUBOPT$ac_delim
24758 SNPRINTFOBJS!$SNPRINTFOBJS$ac_delim
24759 LTSNPRINTFOBJS!$LTSNPRINTFOBJS$ac_delim
24760 GETADDRINFOOBJS!$GETADDRINFOOBJS$ac_delim
24761 LTGETADDRINFOOBJS!$LTGETADDRINFOOBJS$ac_delim
24762 GETNAMEINFOOBJS!$GETNAMEINFOOBJS$ac_delim
24763 LTGETNAMEINFOOBJS!$LTGETNAMEINFOOBJS$ac_delim
24764 LTLIBOBJS!$LTLIBOBJS$ac_delim
24765 DIRS!$DIRS$ac_delim
24766 subdirs!$subdirs$ac_delim
24769 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
24771 elif $ac_last_try; then
24772 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24773 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24774 { (exit 1); exit 1; }; }
24776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24780 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24781 if test -n "$ac_eof"; then
24782 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24783 ac_eof=`expr $ac_eof + 1`
24786 cat >>$CONFIG_STATUS <<_ACEOF
24787 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24791 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24792 s/^/s,@/; s/!/@,|#_!!_#|/
24795 s/'"$ac_delim"'$/,g/; t
24797 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24798 ' >>$CONFIG_STATUS <conf$$subs.sed
24799 rm -f conf$$subs.sed
24800 cat >>$CONFIG_STATUS <<_ACEOF
24807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24809 # trailing colons and then remove the whole line if VPATH becomes empty
24810 # (actually we leave an empty line to preserve line numbers).
24811 if test "x$srcdir" = x.; then
24812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24813 s/:*\$(srcdir):*/:/
24814 s/:*\${srcdir}:*/:/
24816 s/^\([^=]*=[ ]*\):*/\1/
24822 cat >>$CONFIG_STATUS <<\_ACEOF
24823 fi # test -n "$CONFIG_FILES"
24826 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24829 :[FHLC]) ac_mode=$ac_tag; continue;;
24831 case $ac_mode$ac_tag in
24833 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24834 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24835 { (exit 1); exit 1; }; };;
24836 :[FH]-) ac_tag=-:-;;
24837 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24854 -) ac_f="$tmp/stdin";;
24855 *) # Look for the file first in the build tree, then in the source tree
24856 # (if the path is not absolute). The absolute path cannot be DOS-style,
24857 # because $ac_f cannot contain `:'.
24861 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24863 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24864 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24865 { (exit 1); exit 1; }; };;
24867 ac_file_inputs="$ac_file_inputs $ac_f"
24870 # Let's still pretend it is `configure' which instantiates (i.e., don't
24871 # use $as_me), people would be surprised to read:
24872 # /* config.h. Generated by config.status. */
24873 configure_input="Generated from "`IFS=:
24874 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24875 if test x"$ac_file" != x-; then
24876 configure_input="$ac_file. $configure_input"
24877 { echo "$as_me:$LINENO: creating $ac_file" >&5
24878 echo "$as_me: creating $ac_file" >&6;}
24882 *:-:* | *:-) cat >"$tmp/stdin";;
24887 ac_dir=`$as_dirname -- "$ac_file" ||
24888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24889 X"$ac_file" : 'X\(//\)[^/]' \| \
24890 X"$ac_file" : 'X\(//\)$' \| \
24891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24897 /^X\(\/\/\)[^/].*/{
24912 -*) as_dir=./$as_dir;;
24914 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24918 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24919 *) as_qdir=$as_dir;;
24921 as_dirs="'$as_qdir' $as_dirs"
24922 as_dir=`$as_dirname -- "$as_dir" ||
24923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24924 X"$as_dir" : 'X\(//\)[^/]' \| \
24925 X"$as_dir" : 'X\(//\)$' \| \
24926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24932 /^X\(\/\/\)[^/].*/{
24945 test -d "$as_dir" && break
24947 test -z "$as_dirs" || eval "mkdir $as_dirs"
24948 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24949 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24950 { (exit 1); exit 1; }; }; }
24954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24957 # A ".." for each directory in $ac_dir_suffix.
24958 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24959 case $ac_top_builddir_sub in
24960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24964 ac_abs_top_builddir=$ac_pwd
24965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24966 # for backward compatibility:
24967 ac_top_builddir=$ac_top_build_prefix
24970 .) # We are building in place.
24972 ac_top_srcdir=$ac_top_builddir_sub
24973 ac_abs_top_srcdir=$ac_pwd ;;
24974 [\\/]* | ?:[\\/]* ) # Absolute name.
24975 ac_srcdir=$srcdir$ac_dir_suffix;
24976 ac_top_srcdir=$srcdir
24977 ac_abs_top_srcdir=$srcdir ;;
24978 *) # Relative name.
24979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24980 ac_top_srcdir=$ac_top_build_prefix$srcdir
24981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24996 ac_MKDIR_P=$MKDIR_P
24998 [\\/$]* | ?:[\\/]* ) ;;
24999 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25003 cat >>$CONFIG_STATUS <<\_ACEOF
25004 # If the template does not know about datarootdir, expand it.
25005 # FIXME: This hack should be removed a few years after 2.60.
25006 ac_datarootdir_hack=; ac_datarootdir_seen=
25008 case `sed -n '/datarootdir/ {
25017 ' $ac_file_inputs` in
25018 *datarootdir*) ac_datarootdir_seen=yes;;
25019 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25020 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25021 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25023 cat >>$CONFIG_STATUS <<_ACEOF
25024 ac_datarootdir_hack='
25025 s&@datadir@&$datadir&g
25026 s&@docdir@&$docdir&g
25027 s&@infodir@&$infodir&g
25028 s&@localedir@&$localedir&g
25029 s&@mandir@&$mandir&g
25030 s&\\\${datarootdir}&$datarootdir&g' ;;
25034 # Neutralize VPATH when `$srcdir' = `.'.
25035 # Shell code in configure.ac might set extrasub.
25036 # FIXME: do we really want to maintain this feature?
25037 cat >>$CONFIG_STATUS <<_ACEOF
25041 cat >>$CONFIG_STATUS <<\_ACEOF
25043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25044 s&@configure_input@&$configure_input&;t t
25045 s&@top_builddir@&$ac_top_builddir_sub&;t t
25046 s&@srcdir@&$ac_srcdir&;t t
25047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25048 s&@top_srcdir@&$ac_top_srcdir&;t t
25049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25050 s&@builddir@&$ac_builddir&;t t
25051 s&@abs_builddir@&$ac_abs_builddir&;t t
25052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25053 s&@INSTALL@&$ac_INSTALL&;t t
25054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25055 $ac_datarootdir_hack
25056 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25059 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25061 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25062 which seems to be undefined. Please make sure it is defined." >&5
25063 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25064 which seems to be undefined. Please make sure it is defined." >&2;}
25068 -) cat "$tmp/out"; rm -f "$tmp/out";;
25069 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25078 # Transform confdefs.h into a sed script `conftest.defines', that
25079 # substitutes the proper values into config.h.in to produce config.h.
25080 rm -f conftest.defines conftest.tail
25081 # First, append a space to every undef/define line, to ease matching.
25082 echo 's/$/ /' >conftest.defines
25083 # Then, protect against being on the right side of a sed subst, or in
25084 # an unquoted here document, in config.status. If some macros were
25085 # called several times there might be several #defines for the same
25086 # symbol, which is useless. But do not sort them, since the last
25087 # AC_DEFINE must be honored.
25088 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25089 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25090 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25091 # PARAMS is the parameter list in the macro definition--in most cases, it's
25092 # just an empty string.
25093 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25094 ac_dB='\\)[ (].*,\\1define\\2'
25102 s/^[ ]*#[ ]*define[ ][ ]*//
25107 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25108 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25109 ' >>conftest.defines
25111 # Remove the space that was appended to ease matching.
25112 # Then replace #undef with comments. This is necessary, for
25113 # example, in the case of _POSIX_SOURCE, which is predefined and required
25114 # on some systems where configure will not decide to define it.
25115 # (The regexp can be short, since the line contains either #define or #undef.)
25117 s,^[ #]*u.*,/* & */,' >>conftest.defines
25119 # Break up conftest.defines:
25120 ac_max_sed_lines=50
25122 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25123 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25124 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25126 ac_in='$ac_file_inputs'
25127 ac_out='"$tmp/out1"'
25128 ac_nxt='"$tmp/out2"'
25132 # Write a here document:
25133 cat >>$CONFIG_STATUS <<_ACEOF
25134 # First, check the format of the line:
25135 cat >"\$tmp/defines.sed" <<\\CEOF
25136 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25137 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25141 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25143 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25144 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25145 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25146 grep . conftest.tail >/dev/null || break
25147 rm -f conftest.defines
25148 mv conftest.tail conftest.defines
25150 rm -f conftest.defines conftest.tail
25152 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25153 cat >>$CONFIG_STATUS <<\_ACEOF
25154 if test x"$ac_file" != x-; then
25155 echo "/* $configure_input */" >"$tmp/config.h"
25156 cat "$ac_result" >>"$tmp/config.h"
25157 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25158 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25159 echo "$as_me: $ac_file is unchanged" >&6;}
25162 mv "$tmp/config.h" $ac_file
25165 echo "/* $configure_input */"
25169 # Compute $ac_file's index in $config_headers.
25171 for _am_header in $config_headers :; do
25172 case $_am_header in
25173 $ac_file | $ac_file:* )
25176 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25179 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25180 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25181 X$ac_file : 'X\(//\)[^/]' \| \
25182 X$ac_file : 'X\(//\)$' \| \
25183 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25189 /^X\(\/\/\)[^/].*/{
25201 s/.*/./; q'`/stamp-h$_am_stamp_count
25204 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25205 echo "$as_me: executing $ac_file commands" >&6;}
25210 case $ac_file$ac_mode in
25211 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25212 # Strip MF so we end up with the name of the file.
25213 mf=`echo "$mf" | sed -e 's/:.*$//'`
25214 # Check whether this is an Automake generated Makefile or not.
25215 # We used to match only the files named `Makefile.in', but
25216 # some people rename them; so instead we look at the file content.
25217 # Grep'ing the first line is not enough: some people post-process
25218 # each Makefile.in and add a new line on top of each file to say so.
25219 # Grep'ing the whole file is not good either: AIX grep has a line
25220 # limit of 2048, but all sed's we know have understand at least 4000.
25221 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25222 dirpart=`$as_dirname -- "$mf" ||
25223 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25224 X"$mf" : 'X\(//\)[^/]' \| \
25225 X"$mf" : 'X\(//\)$' \| \
25226 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25232 /^X\(\/\/\)[^/].*/{
25248 # Extract the definition of DEPDIR, am__include, and am__quote
25249 # from the Makefile without running `make'.
25250 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25251 test -z "$DEPDIR" && continue
25252 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25253 test -z "am__include" && continue
25254 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25255 # When using ansi2knr, U may be empty or an underscore; expand it
25256 U=`sed -n 's/^U = //p' < "$mf"`
25257 # Find all dependency output files, they are included files with
25258 # $(DEPDIR) in their names. We invoke sed twice because it is the
25259 # simplest approach to changing $(DEPDIR) to its actual value in the
25261 for file in `sed -n "
25262 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25263 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25264 # Make sure the directory exists.
25265 test -f "$dirpart/$file" && continue
25266 fdir=`$as_dirname -- "$file" ||
25267 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25268 X"$file" : 'X\(//\)[^/]' \| \
25269 X"$file" : 'X\(//\)$' \| \
25270 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25276 /^X\(\/\/\)[^/].*/{
25289 { as_dir=$dirpart/$fdir
25291 -*) as_dir=./$as_dir;;
25293 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25297 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25298 *) as_qdir=$as_dir;;
25300 as_dirs="'$as_qdir' $as_dirs"
25301 as_dir=`$as_dirname -- "$as_dir" ||
25302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25303 X"$as_dir" : 'X\(//\)[^/]' \| \
25304 X"$as_dir" : 'X\(//\)$' \| \
25305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25311 /^X\(\/\/\)[^/].*/{
25324 test -d "$as_dir" && break
25326 test -z "$as_dirs" || eval "mkdir $as_dirs"
25327 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25328 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25329 { (exit 1); exit 1; }; }; }
25330 # echo "creating $dirpart/$file"
25331 echo '# dummy' > "$dirpart/$file"
25337 # See if we are running on zsh, and set the options which allow our
25338 # commands through without removal of \ escapes.
25339 if test -n "${ZSH_VERSION+set}" ; then
25340 setopt NO_GLOB_SUBST
25343 cfgfile="${ofile}T"
25344 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25347 cat <<_LT_EOF >> "$cfgfile"
25350 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25351 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25353 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25355 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25356 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
25358 # Written by Gordon Matzigkeit, 1996
25360 # This file is part of GNU Libtool.
25362 # GNU Libtool is free software; you can redistribute it and/or
25363 # modify it under the terms of the GNU General Public License as
25364 # published by the Free Software Foundation; either version 2 of
25365 # the License, or (at your option) any later version.
25367 # As a special exception to the GNU General Public License,
25368 # if you distribute this file as part of a program or library that
25369 # is built using GNU Libtool, you may include this file under the
25370 # same distribution terms that you use for the rest of that program.
25372 # GNU Libtool is distributed in the hope that it will be useful,
25373 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25374 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25375 # GNU General Public License for more details.
25377 # You should have received a copy of the GNU General Public License
25378 # along with GNU Libtool; see the file COPYING. If not, a copy
25379 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25380 # obtained by writing to the Free Software Foundation, Inc.,
25381 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25384 # The names of the tagged configurations supported by this script.
25387 # ### BEGIN LIBTOOL CONFIG
25389 # Whether or not to build static libraries.
25390 build_old_libs=$enable_static
25392 # Which release of libtool.m4 was used?
25393 macro_version=$macro_version
25394 macro_revision=$macro_revision
25396 # Whether or not to build shared libraries.
25397 build_libtool_libs=$enable_shared
25399 # What type of objects to build.
25402 # Whether or not to optimize for fast installation.
25403 fast_install=$enable_fast_install
25405 # Shell to use when invoking shell scripts.
25408 # An echo program that protects backslashes.
25412 host_alias=$host_alias
25416 # The build system.
25417 build_alias=$build_alias
25421 # A sed program that does not truncate output.
25424 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25425 Xsed="\$SED -e 1s/^X//"
25427 # A grep program that handles long lines.
25433 # A literal string matcher.
25436 # A BSD- or MS-compatible name lister.
25439 # Whether we need soft or hard links.
25442 # What is the maximum length of a command?
25443 max_cmd_len=$max_cmd_len
25445 # Object file suffix (normally "o").
25448 # Executable file suffix (normally "").
25451 # whether the shell understands "unset".
25454 # turn spaces into newlines.
25457 # turn newlines into spaces.
25460 # An object symbol dumper.
25461 OBJDUMP=$lt_OBJDUMP
25463 # Method to check whether dependent libraries are shared objects.
25464 deplibs_check_method=$lt_deplibs_check_method
25466 # Command to use when deplibs_check_method == "file_magic".
25467 file_magic_cmd=$lt_file_magic_cmd
25471 AR_FLAGS=$lt_AR_FLAGS
25473 # A symbol stripping program.
25476 # Commands used to install an old-style archive.
25478 old_postinstall_cmds=$lt_old_postinstall_cmds
25479 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25481 # Whether to use a lock for old archive extraction.
25482 lock_old_archive_extraction=$lock_old_archive_extraction
25487 # LTCC compiler flags.
25488 LTCFLAGS=$lt_CFLAGS
25490 # Take the output of nm and produce a listing of raw symbols and C names.
25491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25493 # Transform the output of nm in a proper C declaration.
25494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25496 # Transform the output of nm in a C name address pair.
25497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25499 # Transform the output of nm in a C name address pair when lib prefix is needed.
25500 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25502 # The name of the directory that contains temporary libtool files.
25505 # Used to examine libraries when file_magic_cmd begins with "file".
25506 MAGIC_CMD=$MAGIC_CMD
25508 # Must we lock files when doing compilation?
25509 need_locks=$lt_need_locks
25511 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25512 DSYMUTIL=$lt_DSYMUTIL
25514 # Tool to change global to local symbols on Mac OS X.
25517 # Tool to manipulate fat objects and archives on Mac OS X.
25520 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25523 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25524 OTOOL64=$lt_OTOOL64
25526 # Old archive suffix (normally "a").
25529 # Shared library suffix (normally ".so").
25530 shrext_cmds=$lt_shrext_cmds
25532 # The commands to extract the exported symbol list from a shared archive.
25533 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25535 # Variables whose values should be saved in libtool wrapper scripts and
25536 # restored at link time.
25537 variables_saved_for_relink=$lt_variables_saved_for_relink
25539 # Do we need the "lib" prefix for modules?
25540 need_lib_prefix=$need_lib_prefix
25542 # Do we need a version for libraries?
25543 need_version=$need_version
25545 # Library versioning type.
25546 version_type=$version_type
25548 # Shared library runtime path variable.
25549 runpath_var=$runpath_var
25551 # Shared library path variable.
25552 shlibpath_var=$shlibpath_var
25554 # Is shlibpath searched before the hard-coded library search path?
25555 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25557 # Format of library name prefix.
25558 libname_spec=$lt_libname_spec
25560 # List of archive names. First name is the real one, the rest are links.
25561 # The last name is the one that the linker finds with -lNAME
25562 library_names_spec=$lt_library_names_spec
25564 # The coded name of the library, if different from the real name.
25565 soname_spec=$lt_soname_spec
25567 # Permission mode override for installation of shared libraries.
25568 install_override_mode=$lt_install_override_mode
25570 # Command to use after installation of a shared archive.
25571 postinstall_cmds=$lt_postinstall_cmds
25573 # Command to use after uninstallation of a shared archive.
25574 postuninstall_cmds=$lt_postuninstall_cmds
25576 # Commands used to finish a libtool library installation in a directory.
25577 finish_cmds=$lt_finish_cmds
25579 # As "finish_cmds", except a single script fragment to be evaled but
25581 finish_eval=$lt_finish_eval
25583 # Whether we should hardcode library paths into libraries.
25584 hardcode_into_libs=$hardcode_into_libs
25586 # Compile-time system search path for libraries.
25587 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25589 # Run-time system search path for libraries.
25590 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25592 # Whether dlopen is supported.
25593 dlopen_support=$enable_dlopen
25595 # Whether dlopen of programs is supported.
25596 dlopen_self=$enable_dlopen_self
25598 # Whether dlopen of statically linked programs is supported.
25599 dlopen_self_static=$enable_dlopen_self_static
25601 # Commands to strip libraries.
25602 old_striplib=$lt_old_striplib
25603 striplib=$lt_striplib
25606 # The linker used to build libraries.
25609 # How to create reloadable object files.
25610 reload_flag=$lt_reload_flag
25611 reload_cmds=$lt_reload_cmds
25613 # Commands used to build an old-style archive.
25614 old_archive_cmds=$lt_old_archive_cmds
25616 # A language specific compiler.
25619 # Is the compiler the GNU compiler?
25622 # Compiler flag to turn off builtin functions.
25623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25625 # How to pass a linker flag through the compiler.
25626 wl=$lt_lt_prog_compiler_wl
25628 # Additional compiler flags for building library objects.
25629 pic_flag=$lt_lt_prog_compiler_pic
25631 # Compiler flag to prevent dynamic linking.
25632 link_static_flag=$lt_lt_prog_compiler_static
25634 # Does compiler simultaneously support -c and -o options?
25635 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25637 # Whether or not to add -lc for building shared libraries.
25638 build_libtool_need_lc=$archive_cmds_need_lc
25640 # Whether or not to disallow shared libs when runtime libs are static.
25641 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25643 # Compiler flag to allow reflexive dlopens.
25644 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25646 # Compiler flag to generate shared objects directly from archives.
25647 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25649 # Whether the compiler copes with passing no objects directly.
25650 compiler_needs_object=$lt_compiler_needs_object
25652 # Create an old-style archive from a shared archive.
25653 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25655 # Create a temporary old-style archive to link instead of a shared archive.
25656 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25658 # Commands used to build a shared archive.
25659 archive_cmds=$lt_archive_cmds
25660 archive_expsym_cmds=$lt_archive_expsym_cmds
25662 # Commands used to build a loadable module if different from building
25663 # a shared archive.
25664 module_cmds=$lt_module_cmds
25665 module_expsym_cmds=$lt_module_expsym_cmds
25667 # Whether we are building with GNU ld or not.
25668 with_gnu_ld=$lt_with_gnu_ld
25670 # Flag that allows shared libraries with undefined symbols to be built.
25671 allow_undefined_flag=$lt_allow_undefined_flag
25673 # Flag that enforces no undefined symbols.
25674 no_undefined_flag=$lt_no_undefined_flag
25676 # Flag to hardcode \$libdir into a binary during linking.
25677 # This must work even if \$libdir does not exist
25678 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25680 # If ld is used when linking, flag to hardcode \$libdir into a binary
25681 # during linking. This must work even if \$libdir does not exist.
25682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25684 # Whether we need a single "-rpath" flag with a separated argument.
25685 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25687 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25688 # DIR into the resulting binary.
25689 hardcode_direct=$hardcode_direct
25691 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25692 # DIR into the resulting binary and the resulting library dependency is
25693 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25694 # library is relocated.
25695 hardcode_direct_absolute=$hardcode_direct_absolute
25697 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25698 # into the resulting binary.
25699 hardcode_minus_L=$hardcode_minus_L
25701 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25702 # into the resulting binary.
25703 hardcode_shlibpath_var=$hardcode_shlibpath_var
25705 # Set to "yes" if building a shared library automatically hardcodes DIR
25706 # into the library and all subsequent libraries and executables linked
25708 hardcode_automatic=$hardcode_automatic
25710 # Set to yes if linker adds runtime paths of dependent libraries
25711 # to runtime path list.
25712 inherit_rpath=$inherit_rpath
25714 # Whether libtool must link a program against all its dependency libraries.
25715 link_all_deplibs=$link_all_deplibs
25717 # Fix the shell variable \$srcfile for the compiler.
25718 fix_srcfile_path=$lt_fix_srcfile_path
25720 # Set to "yes" if exported symbols are required.
25721 always_export_symbols=$always_export_symbols
25723 # The commands to list exported symbols.
25724 export_symbols_cmds=$lt_export_symbols_cmds
25726 # Symbols that should not be listed in the preloaded symbols.
25727 exclude_expsyms=$lt_exclude_expsyms
25729 # Symbols that must always be exported.
25730 include_expsyms=$lt_include_expsyms
25732 # Commands necessary for linking programs (against libraries) with templates.
25733 prelink_cmds=$lt_prelink_cmds
25735 # Specify filename containing input files.
25736 file_list_spec=$lt_file_list_spec
25738 # How to hardcode a shared library path into an executable.
25739 hardcode_action=$hardcode_action
25741 # ### END LIBTOOL CONFIG
25747 cat <<\_LT_EOF >> "$cfgfile"
25748 # AIX sometimes has problems with the GCC collect2 program. For some
25749 # reason, if we set the COLLECT_NAMES environment variable, the problems
25750 # vanish in a puff of smoke.
25751 if test "X${COLLECT_NAMES+set}" != Xset; then
25753 export COLLECT_NAMES
25760 ltmain="$ac_aux_dir/ltmain.sh"
25763 # We use sed instead of cat because bash on DJGPP gets confused if
25764 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25765 # text mode, it properly converts lines to CR/LF. This bash problem
25766 # is reportedly fixed, but why not run on old versions too?
25767 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25768 || (rm -f "$cfgfile"; exit 1)
25772 cat << \_LT_EOF >> "$cfgfile"
25774 # func_dirname file append nondir_replacement
25775 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
25776 # otherwise set result to NONDIR_REPLACEMENT.
25780 */*) func_dirname_result="${1%/*}${2}" ;;
25781 * ) func_dirname_result="${3}" ;;
25785 # func_basename file
25788 func_basename_result="${1##*/}"
25791 # func_dirname_and_basename file append nondir_replacement
25792 # perform func_basename and func_dirname in a single function
25794 # dirname: Compute the dirname of FILE. If nonempty,
25795 # add APPEND to the result, otherwise set result
25796 # to NONDIR_REPLACEMENT.
25797 # value returned in "$func_dirname_result"
25798 # basename: Compute filename of FILE.
25799 # value retuned in "$func_basename_result"
25800 # Implementation must be kept synchronized with func_dirname
25801 # and func_basename. For efficiency, we do not delegate to
25802 # those functions but instead duplicate the functionality here.
25803 func_dirname_and_basename ()
25806 */*) func_dirname_result="${1%/*}${2}" ;;
25807 * ) func_dirname_result="${3}" ;;
25809 func_basename_result="${1##*/}"
25812 # func_stripname prefix suffix name
25813 # strip PREFIX and SUFFIX off of NAME.
25814 # PREFIX and SUFFIX must not contain globbing or regex special
25815 # characters, hashes, percent signs, but SUFFIX may contain a leading
25816 # dot (in which case that matches only a dot).
25819 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25820 # positional parameters, so assign one to ordinary parameter first.
25821 func_stripname_result=${3}
25822 func_stripname_result=${func_stripname_result#"${1}"}
25823 func_stripname_result=${func_stripname_result%"${2}"}
25829 func_opt_split_opt=${1%%=*}
25830 func_opt_split_arg=${1#*=}
25837 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25838 *) func_lo2o_result=${1} ;;
25842 # func_xform libobj-or-source
25845 func_xform_result=${1%.*}.lo
25848 # func_arith arithmetic-term...
25851 func_arith_result=$(( $* ))
25855 # STRING may not start with a hyphen.
25858 func_len_result=${#1}
25863 *) # Bourne compatible functions.
25864 cat << \_LT_EOF >> "$cfgfile"
25866 # func_dirname file append nondir_replacement
25867 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
25868 # otherwise set result to NONDIR_REPLACEMENT.
25871 # Extract subdirectory from the argument.
25872 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25873 if test "X$func_dirname_result" = "X${1}"; then
25874 func_dirname_result="${3}"
25876 func_dirname_result="$func_dirname_result${2}"
25880 # func_basename file
25883 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25887 # func_stripname prefix suffix name
25888 # strip PREFIX and SUFFIX off of NAME.
25889 # PREFIX and SUFFIX must not contain globbing or regex special
25890 # characters, hashes, percent signs, but SUFFIX may contain a leading
25891 # dot (in which case that matches only a dot).
25892 # func_strip_suffix prefix name
25896 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25897 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25902 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25903 my_sed_long_arg='1s/^-[^=]*=//'
25908 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25909 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25915 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25918 # func_xform libobj-or-source
25921 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25924 # func_arith arithmetic-term...
25927 func_arith_result=`expr "$@"`
25931 # STRING may not start with a hyphen.
25934 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25940 case $lt_shell_append in
25942 cat << \_LT_EOF >> "$cfgfile"
25944 # func_append var value
25945 # Append VALUE to the end of shell variable VAR.
25953 cat << \_LT_EOF >> "$cfgfile"
25955 # func_append var value
25956 # Append VALUE to the end of shell variable VAR.
25967 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25968 || (rm -f "$cfgfile"; exit 1)
25970 mv -f "$cfgfile" "$ofile" ||
25971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25980 { (exit 0); exit 0; }
25982 chmod +x $CONFIG_STATUS
25983 ac_clean_files=$ac_clean_files_save
25986 # configure is writing to config.log, and then calls config.status.
25987 # config.status does its own redirection, appending to config.log.
25988 # Unfortunately, on DOS this fails, as config.log is still kept open
25989 # by configure, so config.status won't be able to write to it; its
25990 # output is simply discarded. So we exec the FD to /dev/null,
25991 # effectively closing config.log, so it can be properly (re)opened and
25992 # appended to by config.status. When coming back to configure, we
25993 # need to make the FD available again.
25994 if test "$no_create" != yes; then
25996 ac_config_status_args=
25997 test "$silent" = yes &&
25998 ac_config_status_args="$ac_config_status_args --quiet"
26000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26003 # would make configure fail if this is the last instruction.
26004 $ac_cs_success || { (exit 1); exit 1; }
26008 # CONFIG_SUBDIRS section.
26010 if test "$no_recursion" != yes; then
26012 # Remove --cache-file and --srcdir arguments so they do not pile up.
26013 ac_sub_configure_args=
26015 eval "set x $ac_configure_args"
26019 if test -n "$ac_prev"; then
26024 -cache-file | --cache-file | --cache-fil | --cache-fi \
26025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26026 ac_prev=cache_file ;;
26027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26031 --config-cache | -C)
26033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26043 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26045 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26049 # Always prepend --prefix to ensure using the same prefix
26050 # in subdir configurations.
26051 ac_arg="--prefix=$prefix"
26053 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26055 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26058 if test "$silent" = yes; then
26059 ac_sub_configure_args="--silent $ac_sub_configure_args"
26063 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26065 # Do not complain, so a configure script can configure whichever
26066 # parts of a large source tree are present.
26067 test -d "$srcdir/$ac_dir" || continue
26069 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26070 echo "$as_me:$LINENO: $ac_msg" >&5
26074 -*) as_dir=./$as_dir;;
26076 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26080 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26081 *) as_qdir=$as_dir;;
26083 as_dirs="'$as_qdir' $as_dirs"
26084 as_dir=`$as_dirname -- "$as_dir" ||
26085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26086 X"$as_dir" : 'X\(//\)[^/]' \| \
26087 X"$as_dir" : 'X\(//\)$' \| \
26088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26094 /^X\(\/\/\)[^/].*/{
26107 test -d "$as_dir" && break
26109 test -z "$as_dirs" || eval "mkdir $as_dirs"
26110 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26111 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26112 { (exit 1); exit 1; }; }; }
26116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26119 # A ".." for each directory in $ac_dir_suffix.
26120 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26121 case $ac_top_builddir_sub in
26122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26126 ac_abs_top_builddir=$ac_pwd
26127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26128 # for backward compatibility:
26129 ac_top_builddir=$ac_top_build_prefix
26132 .) # We are building in place.
26134 ac_top_srcdir=$ac_top_builddir_sub
26135 ac_abs_top_srcdir=$ac_pwd ;;
26136 [\\/]* | ?:[\\/]* ) # Absolute name.
26137 ac_srcdir=$srcdir$ac_dir_suffix;
26138 ac_top_srcdir=$srcdir
26139 ac_abs_top_srcdir=$srcdir ;;
26140 *) # Relative name.
26141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26142 ac_top_srcdir=$ac_top_build_prefix$srcdir
26143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26150 # Check for guested configure; otherwise get Cygnus style configure.
26151 if test -f "$ac_srcdir/configure.gnu"; then
26152 ac_sub_configure=$ac_srcdir/configure.gnu
26153 elif test -f "$ac_srcdir/configure"; then
26154 ac_sub_configure=$ac_srcdir/configure
26155 elif test -f "$ac_srcdir/configure.in"; then
26156 # This should be Cygnus configure.
26157 ac_sub_configure=$ac_aux_dir/configure
26159 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26160 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26164 # The recursion is here.
26165 if test -n "$ac_sub_configure"; then
26166 # Make the cache file name correct relative to the subdirectory.
26167 case $cache_file in
26168 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26169 *) # Relative name.
26170 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26173 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26174 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26175 # The eval makes quoting arguments work.
26176 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26177 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26178 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26179 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26180 { (exit 1); exit 1; }; }
26188 echo Configuration Complete. Type \'make\' to build.