2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
575 ac_unique_file="lib/saslint.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 enable_option_checking=no
613 ac_subst_vars='subdirs
624 SASL_UTIL_HEADERS_EXTRA
661 NO_SASL_DB_MANS_FALSE
665 SASL_DB_BACKEND_STATIC
724 INSTALL_STRIP_PROGRAM
778 program_transform_name
791 enable_option_checking
794 enable_dependency_tracking
848 enable_macos_framework
852 ac_precious_vars='build_alias
861 ac_subdirs_all='saslauthd'
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 # Accept the important Cygnus configure options, so we can diagnose typos.
930 case $ac_dashdash$ac_option in
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
952 cache_file=config.cache ;;
954 -datadir | --datadir | --datadi | --datad)
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1006 eval enable_$ac_useropt=\$ac_optarg ;;
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 htmldir=$ac_optarg ;;
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1051 -libdir | --libdir | --libdi | --libd)
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1142 -psdir | --psdir | --psdi | --psd | --ps)
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 sbindir=$ac_optarg ;;
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 sharedstatedir=$ac_optarg ;;
1168 -site | --site | --sit)
1170 -site=* | --site=* | --sit=*)
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1210 eval with_$ac_useropt=\$ac_optarg ;;
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval with_$ac_useropt=no ;;
1229 # Obsolete; use --with-x.
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1297 # Be sure to have absolute directory names.
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1317 If a cross compiler is detected then cross compile mode will be used" >&2
1318 elif test "x$build_alias" != "x$host_alias"; then
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326 test "$silent" = yes && exec 6>/dev/null
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1369 ac_srcdir_defaulted=no
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 # Report the --help message.
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1403 \`configure' configures this package to adapt to many kinds of systems.
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1410 Defaults for the options are specified in brackets.
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1434 For better control, use the options below.
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 --target=TARGET configure for building compilers for TARGET [HOST]
1472 if test -n "$ac_init_help"; then
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-cmulocal enable local mods for CMU [[no]]
1481 --enable-sample compile sample code [[yes]]
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --enable-static[=PKGS] build static libraries [default=no]
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --enable-staticdlopen try dynamic plugins when we are a static libsasl [no]
1490 --enable-java compile Java support [no]
1491 --enable-keep-db-open keep handle to Berkeley DB open for improved performance [no]
1492 --enable-alwaystrue enable the alwaystrue password verifier (discouraged)
1493 --enable-checkapop enable use of sasl_checkapop [yes]
1494 --enable-cram enable CRAM-MD5 authentication [yes]
1495 --enable-digest enable DIGEST-MD5 authentication [yes]
1496 --enable-otp enable OTP authentication [yes]
1497 --enable-srp enable SRP authentication [no]
1498 --enable-srp-setpass enable setting SRP secrets with saslpasswd [no]
1499 --enable-krb4 enable KERBEROS_V4 authentication [no]
1500 --enable-gssapi=<DIR> enable GSSAPI authentication [yes]
1501 --enable-gss_mutexes use mutexes around calls to the GSS library
1502 --enable-plain enable PLAIN authentication yes
1503 --enable-anon enable ANONYMOUS authentication [yes]
1504 --enable-login enable unsupported LOGIN authentication [no]
1505 --enable-ntlm enable unsupported NTLM authentication [no]
1506 --enable-passdss enable PASSDSS authentication (experimental) [no]
1507 --enable-sql enable SQL auxprop [no]
1508 --enable-ldapdb enable LDAPDB plugin no
1509 --disable-macos-framework disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no]
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-pic try to use only PIC/non-PIC objects [default=use
1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1518 --with-purecov link with purecov
1519 --with-purify link with purify
1520 --with-javabase=PATH set path to find jni.h in /usr/java/include
1521 --with-dbpath=PATH set the DB path to use /etc/sasldb2
1522 --with-dblib=DBLIB set the DB library to use berkeley
1523 --with-bdb-libdir=DIR Berkeley DB lib files are in DIR
1524 --with-bdb-incdir=DIR Berkeley DB include files are in DIR
1525 --with-gdbm=PATH use gdbm from PATH
1526 --with-devrandom=PATH set the path to /dev/random [/dev/random]
1527 --with-pam=DIR use PAM (rooted in DIR) [yes]
1528 --with-saslauthd=DIR enable use of the saslauth daemon using state dir DIR
1529 --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes]
1530 --with-pwcheck=DIR enable deprecated pwcheck daemon using statedir DIR
1531 --with-ipctype={unix,doors} use ipctype [unix]
1532 --with-lib-subdir=DIR Find libraries in DIR instead of lib
1533 --with-openssl=PATH use OpenSSL from PATH
1534 --with-des=DIR with DES (look in DIR) yes
1535 --with-opie=PATH use OPIE (One Time Passwords in Everything) from PATH
1536 --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1537 choose specific GSSAPI implementation [[auto]]
1538 --with-ldap=DIR use LDAP (in DIR) for saslauthd no
1539 --with-mysql=PATH use MySQL from PATH
1540 --with-pgsql=PATH use PostgreSQL from PATH
1541 --with-sqlite=PATH use SQLite from PATH
1542 --with-plugindir=DIR set the directory where plugins will
1543 be found [/usr/lib/sasl2]
1544 --with-configdir=DIR set the directory where config files will
1545 be found /usr/lib/sasl2
1546 --with-rc4 use internal rc4 routines [yes]
1547 --with-dmalloc=DIR with DMALLOC support (for test applications) [no]
1548 --with-sfio=DIR with SFIO support (for smtptest/libsfsasl) [no]
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to the package provider.
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1593 .) # We are building in place.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1627 generated by GNU Autoconf 2.68
1629 Copyright (C) 2010 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then :
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1676 } # ac_fn_c_try_compile
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } > conftest.i && {
1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext conftest$ac_exeext
1722 if { { ac_try="$ac_link"
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 $as_test_x conftest$ac_exeext
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_c_try_link
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1778 if ac_fn_c_try_compile "$LINENO"; then :
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_header_compile
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=$ac_status
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1834 # ac_fn_c_check_func LINENO FUNC VAR
1835 # ----------------------------------
1836 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1837 ac_fn_c_check_func ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1849 #define $2 innocuous_$2
1851 /* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $2 (); below.
1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854 <limits.h> exists even on freestanding compilers. */
1857 # include <limits.h>
1859 # include <assert.h>
1864 /* Override any GCC internal prototype to avoid an error.
1865 Use char because int might match the return type of a GCC
1866 builtin and then its argument prototype would still apply. */
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined __stub_$2 || defined __stub___$2
1886 if ac_fn_c_try_link "$LINENO"; then :
1891 rm -f core conftest.err conftest.$ac_objext \
1892 conftest$ac_exeext conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_func
1901 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1904 # the include files in INCLUDES and setting the cache variable VAR
1906 ac_fn_c_check_header_mongrel ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if eval \${$3+:} false; then :
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1919 # Is the header compilable?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1921 $as_echo_n "checking $2 usability... " >&6; }
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_header_compiler=yes
1930 ac_header_compiler=no
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1934 $as_echo "$ac_header_compiler" >&6; }
1936 # Is the header present?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1938 $as_echo_n "checking $2 presence... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1943 if ac_fn_c_try_cpp "$LINENO"; then :
1944 ac_header_preproc=yes
1946 ac_header_preproc=no
1948 rm -f conftest.err conftest.i conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1950 $as_echo "$ac_header_preproc" >&6; }
1952 # So? What about this header?
1953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1956 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1962 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1964 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1966 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1968 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1978 eval "$3=\$ac_header_compiler"
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_header_mongrel
1988 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1989 # --------------------------------------------
1990 # Tries to find the compile-time value of EXPR in a program that includes
1991 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1993 ac_fn_c_compute_int ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if test "$cross_compiling" = yes; then
1997 # Depending upon the size, compute the lo and hi bounds.
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2004 static int test_array [1 - 2 * !(($2) >= 0)];
2011 if ac_fn_c_try_compile "$LINENO"; then :
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_hi=$ac_mid; break
2030 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2031 if test $ac_lo -le $ac_mid; then
2035 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) < 0)];
2053 if ac_fn_c_try_compile "$LINENO"; then :
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_lo=$ac_mid; break
2072 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2073 if test $ac_mid -le $ac_hi; then
2077 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 # Binary search between lo and hi bounds.
2088 while test "x$ac_lo" != "x$ac_hi"; do
2089 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2096 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103 if ac_fn_c_try_compile "$LINENO"; then :
2106 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2118 static long int longval () { return $2; }
2119 static unsigned long int ulongval () { return $2; }
2126 FILE *f = fopen ("conftest.val", "w");
2131 long int i = longval ();
2134 fprintf (f, "%ld", i);
2138 unsigned long int i = ulongval ();
2141 fprintf (f, "%lu", i);
2143 /* Do not output a trailing newline, as this causes \r\n confusion
2144 on some platforms. */
2145 return ferror (f) || fclose (f) != 0;
2151 if ac_fn_c_try_run "$LINENO"; then :
2152 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2157 conftest.$ac_objext conftest.beam conftest.$ac_ext
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 as_fn_set_status $ac_retval
2164 } # ac_fn_c_compute_int
2166 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2167 # -------------------------------------------
2168 # Tests whether TYPE exists after having included INCLUDES, setting cache
2169 # variable VAR accordingly.
2170 ac_fn_c_check_type ()
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176 $as_echo_n "(cached) " >&6
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2204 if ac_fn_c_try_compile "$LINENO"; then :
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218 } # ac_fn_c_check_type
2219 cat >config.log <<_ACEOF
2220 This file contains any messages produced by compilers while
2221 running configure, to aid debugging if configure makes a mistake.
2223 It was created by $as_me, which was
2224 generated by GNU Autoconf 2.68. Invocation command line was
2236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2243 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2245 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2246 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2248 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2249 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2250 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2251 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 $as_echo "PATH: $as_dir"
2276 # Keep a trace of the command line.
2277 # Strip out --no-create and --no-recursion so they do not pile up.
2278 # Strip out --silent because we don't want to record it for future runs.
2279 # Also quote any args containing shell meta-characters.
2280 # Make two passes to allow for proper duplicate-argument suppression.
2284 ac_must_keep_next=false
2290 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2292 | -silent | --silent | --silen | --sile | --sil)
2295 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2300 as_fn_append ac_configure_args1 " '$ac_arg'"
2301 if test $ac_must_keep_next = true; then
2302 ac_must_keep_next=false # Got value, back to normal.
2305 *=* | --config-cache | -C | -disable-* | --disable-* \
2306 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2307 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2308 | -with-* | --with-* | -without-* | --without-* | --x)
2309 case "$ac_configure_args0 " in
2310 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2313 -* ) ac_must_keep_next=true ;;
2316 as_fn_append ac_configure_args " '$ac_arg'"
2321 { ac_configure_args0=; unset ac_configure_args0;}
2322 { ac_configure_args1=; unset ac_configure_args1;}
2324 # When interrupted or exit'd, cleanup temporary files, and complete
2325 # config.log. We remove comments because anyway the quotes in there
2326 # would cause problems or look ugly.
2327 # WARNING: Use '\'' to represent an apostrophe within the trap.
2328 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2329 trap 'exit_status=$?
2330 # Save into config.log some information that might help in debugging.
2334 $as_echo "## ---------------- ##
2335 ## Cache variables. ##
2336 ## ---------------- ##"
2338 # The following way of writing the cache mishandles newlines in values,
2340 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2341 eval ac_val=\$$ac_var
2345 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2349 _ | IFS | as_nl) ;; #(
2350 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2351 *) { eval $ac_var=; unset $ac_var;} ;;
2356 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2357 *${as_nl}ac_space=\ *)
2359 "s/'\''/'\''\\\\'\'''\''/g;
2360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2363 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2370 $as_echo "## ----------------- ##
2371 ## Output variables. ##
2372 ## ----------------- ##"
2374 for ac_var in $ac_subst_vars
2376 eval ac_val=\$$ac_var
2378 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380 $as_echo "$ac_var='\''$ac_val'\''"
2384 if test -n "$ac_subst_files"; then
2385 $as_echo "## ------------------- ##
2386 ## File substitutions. ##
2387 ## ------------------- ##"
2389 for ac_var in $ac_subst_files
2391 eval ac_val=\$$ac_var
2393 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 $as_echo "$ac_var='\''$ac_val'\''"
2400 if test -s confdefs.h; then
2401 $as_echo "## ----------- ##
2408 test "$ac_signal" != 0 &&
2409 $as_echo "$as_me: caught signal $ac_signal"
2410 $as_echo "$as_me: exit $exit_status"
2412 rm -f core *.core core.conftest.* &&
2413 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2416 for ac_signal in 1 2 13 15; do
2417 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2421 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2422 rm -f -r conftest* confdefs.h
2424 $as_echo "/* confdefs.h */" > confdefs.h
2426 # Predefined preprocessor variables.
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_NAME "$PACKAGE_NAME"
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_STRING "$PACKAGE_STRING"
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_URL "$PACKAGE_URL"
2453 # Let the site file select an alternate cache file if it wants to.
2454 # Prefer an explicitly selected file to automatically selected ones.
2457 if test -n "$CONFIG_SITE"; then
2458 # We do not want a PATH search for config.site.
2459 case $CONFIG_SITE in #((
2460 -*) ac_site_file1=./$CONFIG_SITE;;
2461 */*) ac_site_file1=$CONFIG_SITE;;
2462 *) ac_site_file1=./$CONFIG_SITE;;
2464 elif test "x$prefix" != xNONE; then
2465 ac_site_file1=$prefix/share/config.site
2466 ac_site_file2=$prefix/etc/config.site
2468 ac_site_file1=$ac_default_prefix/share/config.site
2469 ac_site_file2=$ac_default_prefix/etc/config.site
2471 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2473 test "x$ac_site_file" = xNONE && continue
2474 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2476 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2477 sed 's/^/| /' "$ac_site_file" >&5
2479 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 as_fn_error $? "failed to load site script $ac_site_file
2482 See \`config.log' for more details" "$LINENO" 5; }
2486 if test -r "$cache_file"; then
2487 # Some versions of bash will fail to source /dev/null (special files
2488 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2489 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2491 $as_echo "$as_me: loading cache $cache_file" >&6;}
2493 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2494 *) . "./$cache_file";;
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2499 $as_echo "$as_me: creating cache $cache_file" >&6;}
2503 # Check that the precious variables saved in the cache have kept the same
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508 eval ac_new_set=\$ac_env_${ac_var}_set
2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510 eval ac_new_val=\$ac_env_${ac_var}_value
2511 case $ac_old_set,$ac_new_set in
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2522 if test "x$ac_old_val" != "x$ac_new_val"; then
2523 # differences in whitespace do not lead to failure.
2524 ac_old_val_w=`echo x $ac_old_val`
2525 ac_new_val_w=`echo x $ac_new_val`
2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529 ac_cache_corrupted=:
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533 eval $ac_var=\$ac_old_val
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2536 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2541 # Pass precious variables to config.status.
2542 if test "$ac_new_set" = set; then
2544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545 *) ac_arg=$ac_var=$ac_new_val ;;
2547 case " $ac_configure_args " in
2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2553 if $ac_cache_corrupted; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 if test $cache_file = "/dev/null"; then
2575 cache_file="./config.cache"
2576 if test -r "$cache_file"; then
2577 # Some versions of bash will fail to source /dev/null (special files
2578 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2579 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2581 $as_echo "$as_me: loading cache $cache_file" >&6;}
2583 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2584 *) . "./$cache_file";;
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2589 $as_echo "$as_me: creating cache $cache_file" >&6;}
2596 for ac_dir in config "$srcdir"/config; do
2597 if test -f "$ac_dir/install-sh"; then
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2601 elif test -f "$ac_dir/install.sh"; then
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2605 elif test -f "$ac_dir/shtool"; then
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624 # Make sure we can run config.sub.
2625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2626 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629 $as_echo_n "checking build system type... " >&6; }
2630 if ${ac_cv_build+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 ac_build_alias=$build_alias
2634 test "x$ac_build_alias" = x &&
2635 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636 test "x$ac_build_alias" = x &&
2637 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2638 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643 $as_echo "$ac_cv_build" >&6; }
2644 case $ac_cv_build in
2646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2649 ac_save_IFS=$IFS; IFS='-'
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663 $as_echo_n "checking host system type... " >&6; }
2664 if ${ac_cv_host+:} false; then :
2665 $as_echo_n "(cached) " >&6
2667 if test "x$host_alias" = x; then
2668 ac_cv_host=$ac_cv_build
2670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2671 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676 $as_echo "$ac_cv_host" >&6; }
2679 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2682 ac_save_IFS=$IFS; IFS='-'
2688 # Remember, the first character of IFS is used to create $*,
2689 # except with old shells:
2692 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2696 $as_echo_n "checking target system type... " >&6; }
2697 if ${ac_cv_target+:} false; then :
2698 $as_echo_n "(cached) " >&6
2700 if test "x$target_alias" = x; then
2701 ac_cv_target=$ac_cv_host
2703 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2704 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2709 $as_echo "$ac_cv_target" >&6; }
2710 case $ac_cv_target in
2712 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2714 target=$ac_cv_target
2715 ac_save_IFS=$IFS; IFS='-'
2721 # Remember, the first character of IFS is used to create $*,
2722 # except with old shells:
2725 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2728 # The aliases save the names the user supplied, while $host etc.
2729 # will get canonicalized.
2730 test -n "$target_alias" &&
2731 test "$program_prefix$program_suffix$program_transform_name" = \
2733 program_prefix=${target_alias}-
2735 am__api_version='1.10'
2737 # Find a good install program. We prefer a C program (faster),
2738 # so one script is as good as another. But avoid the broken or
2739 # incompatible versions:
2740 # SysV /etc/install, /usr/sbin/install
2741 # SunOS /usr/etc/install
2742 # IRIX /sbin/install
2744 # AmigaOS /C/install, which installs bootblocks on floppy discs
2745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2748 # OS/2's system install, which has a completely different semantic
2749 # ./install, which can be erroneously created by make from ./install.sh.
2750 # Reject install programs that cannot install multiple files.
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2753 if test -z "$INSTALL"; then
2754 if ${ac_cv_path_install+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 # Account for people who put trailing slashes in PATH elements.
2763 case $as_dir/ in #((
2764 ./ | .// | /[cC]/* | \
2765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2769 # OSF1 and SCO ODT 3.0 have their own names for install.
2770 # Don't use installbsd from OSF since it installs stuff as root
2772 for ac_prog in ginstall scoinst install; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2775 if test $ac_prog = install &&
2776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777 # AIX install. It has an incompatible calling convention.
2779 elif test $ac_prog = install &&
2780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # program-specific install script used by HP pwplus--don't use.
2784 rm -rf conftest.one conftest.two conftest.dir
2785 echo one > conftest.one
2786 echo two > conftest.two
2788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2789 test -s conftest.one && test -s conftest.two &&
2790 test -s conftest.dir/conftest.one &&
2791 test -s conftest.dir/conftest.two
2793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2806 rm -rf conftest.one conftest.two conftest.dir
2809 if test "${ac_cv_path_install+set}" = set; then
2810 INSTALL=$ac_cv_path_install
2812 # As a last resort, use the slow shell script. Don't cache a
2813 # value for INSTALL within a source directory, because that will
2814 # break other packages using the cache if that directory is
2815 # removed, or if the value is a relative name.
2816 INSTALL=$ac_install_sh
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2820 $as_echo "$INSTALL" >&6; }
2822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2823 # It thinks the first close brace ends the variable substitution.
2824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2831 $as_echo_n "checking whether build environment is sane... " >&6; }
2834 echo timestamp > conftest.file
2835 # Do `set' in a subshell so we don't clobber the current shell's
2836 # arguments. Must try -L first in case configure is actually a
2837 # symlink; some systems play weird games with the mod time of symlinks
2838 # (eg FreeBSD returns the mod time of the symlink's containing
2841 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2842 if test "$*" = "X"; then
2844 set X `ls -t $srcdir/configure conftest.file`
2847 if test "$*" != "X $srcdir/configure conftest.file" \
2848 && test "$*" != "X conftest.file $srcdir/configure"; then
2850 # If neither matched, then we have a broken ls. This can happen
2851 # if, for instance, CONFIG_SHELL is bash and it inherits a
2852 # broken ls alias from the environment. This has actually
2853 # happened. Such a system could not be considered "sane".
2854 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2855 alias in your environment" "$LINENO" 5
2858 test "$2" = conftest.file
2864 as_fn_error $? "newly created file is older than distributed files!
2865 Check your system clock" "$LINENO" 5
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 test "$program_prefix" != NONE &&
2870 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2871 # Use a double $ so make ignores it.
2872 test "$program_suffix" != NONE &&
2873 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2874 # Double any \ or $.
2875 # By default was `s,x,x', remove it if useless.
2876 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2877 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2879 # expand $ac_aux_dir to an absolute path
2880 am_aux_dir=`cd $ac_aux_dir && pwd`
2882 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2883 # Use eval to expand $SHELL
2884 if eval "$MISSING --run true"; then
2885 am_missing_run="$MISSING --run "
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2889 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2892 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2894 # Installed binaries are usually stripped using `strip' when the user
2895 # run `make install-strip'. However `strip' might not be the right
2896 # tool to use in cross-compilation environments, therefore Automake
2897 # will honor the `STRIP' environment variable to overrule this program.
2898 if test "$cross_compiling" != no; then
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}strip; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_STRIP+:} false; then :
2905 $as_echo_n "(cached) " >&6
2907 if test -n "$STRIP"; then
2908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 STRIP=$ac_cv_prog_STRIP
2928 if test -n "$STRIP"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2930 $as_echo "$STRIP" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2938 if test -z "$ac_cv_prog_STRIP"; then
2940 # Extract the first word of "strip", so it can be a program name with args.
2941 set dummy strip; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$ac_ct_STRIP"; then
2948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_ac_ct_STRIP="strip"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2968 if test -n "$ac_ct_STRIP"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2970 $as_echo "$ac_ct_STRIP" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2976 if test "x$ac_ct_STRIP" = x; then
2979 case $cross_compiling:$ac_tool_warned in
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2988 STRIP="$ac_cv_prog_STRIP"
2992 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2995 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2996 if test -z "$MKDIR_P"; then
2997 if ${ac_cv_path_mkdir+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3004 test -z "$as_dir" && as_dir=.
3005 for ac_prog in mkdir gmkdir; do
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3008 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3009 'mkdir (GNU coreutils) '* | \
3010 'mkdir (coreutils) '* | \
3011 'mkdir (fileutils) '4.1*)
3012 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3022 test -d ./--version && rmdir ./--version
3023 if test "${ac_cv_path_mkdir+set}" = set; then
3024 MKDIR_P="$ac_cv_path_mkdir -p"
3026 # As a last resort, use the slow shell script. Don't cache a
3027 # value for MKDIR_P within a source directory, because that will
3028 # break other packages using the cache if that directory is
3029 # removed, or if the value is a relative name.
3030 MKDIR_P="$ac_install_sh -d"
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3034 $as_echo "$MKDIR_P" >&6; }
3038 [\\/$]* | ?:[\\/]*) ;;
3039 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3042 for ac_prog in gawk mawk nawk awk
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_AWK+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$AWK"; then
3052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_AWK="$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$AWK"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3074 $as_echo "$AWK" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3081 test -n "$AWK" && break
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3085 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3087 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3088 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 cat >conftest.make <<\_ACEOF
3094 @echo '@@@%%%=$(MAKE)=@@@%%%'
3096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3099 eval ac_cv_prog_make_${ac_make}_set=yes;;
3101 eval ac_cv_prog_make_${ac_make}_set=no;;
3105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 SET_MAKE="MAKE=${MAKE-make}"
3115 rm -rf .tst 2>/dev/null
3116 mkdir .tst 2>/dev/null
3117 if test -d .tst; then
3122 rmdir .tst 2>/dev/null
3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126 # is not polluted with repeated "-I."
3127 am__isrc=' -I$(srcdir)'
3128 # test to see if srcdir already configured
3129 if test -f $srcdir/config.status; then
3130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3134 # test whether we have cygpath
3135 if test -z "$CYGPATH_W"; then
3136 if (cygpath --version) >/dev/null 2>/dev/null; then
3137 CYGPATH_W='cygpath -w'
3144 # Define the identity of the package.
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE "$PACKAGE"
3154 cat >>confdefs.h <<_ACEOF
3155 #define VERSION "$VERSION"
3158 # Some tools Automake needs.
3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174 # We need awk for the "check" target. The system "awk" is bad on
3176 # Always define AMTAR for backward compatibility.
3178 AMTAR=${AMTAR-"${am_missing_run}tar"}
3180 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3188 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
3191 # and include our config dir scripts
3192 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
3196 # Check whether --enable-cmulocal was given.
3197 if test "${enable_cmulocal+set}" = set; then :
3198 enableval=$enable_cmulocal;
3204 # Check whether --enable-sample was given.
3205 if test "${enable_sample+set}" = set; then :
3206 enableval=$enable_sample; enable_sample=yes
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_CC+:} false; then :
3221 $as_echo_n "(cached) " >&6
3223 if test -n "$CC"; then
3224 ac_cv_prog_CC="$CC" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 if test -n "$CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3254 if test -z "$ac_cv_prog_CC"; then
3256 # Extract the first word of "gcc", so it can be a program name with args.
3257 set dummy gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 if test -n "$ac_ct_CC"; then
3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_ac_ct_CC="gcc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286 $as_echo "$ac_ct_CC" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3292 if test "x$ac_ct_CC" = x; then
3295 case $cross_compiling:$ac_tool_warned in
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299 ac_tool_warned=yes ;;
3307 if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}cc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_CC="${ac_tool_prefix}cc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3348 if test -z "$CC"; then
3349 # Extract the first word of "cc", so it can be a program name with args.
3350 set dummy cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CC+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368 ac_prog_rejected=yes
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 if test $ac_prog_rejected = yes; then
3380 # We found a bogon in the path, so make sure we never use it.
3381 set dummy $ac_cv_prog_CC
3383 if test $# != 0; then
3384 # We chose a different compiler from the bogus one.
3385 # However, it has the same basename, so the bogon will be chosen
3386 # first if we set CC to just the basename; use the full file name.
3388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3394 if test -n "$CC"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3404 if test -z "$CC"; then
3405 if test -n "$ac_tool_prefix"; then
3406 for ac_prog in cl.exe
3408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3445 test -n "$CC" && break
3448 if test -z "$CC"; then
3450 for ac_prog in cl.exe
3452 # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy $ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_ac_ct_CC="$ac_prog"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482 $as_echo "$ac_ct_CC" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3489 test -n "$ac_ct_CC" && break
3492 if test "x$ac_ct_CC" = x; then
3495 case $cross_compiling:$ac_tool_warned in
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned=yes ;;
3508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "no acceptable C compiler found in \$PATH
3511 See \`config.log' for more details" "$LINENO" 5; }
3513 # Provide some information about the compiler.
3514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3517 for ac_option in --version -v -V -qversion; do
3518 { { ac_try="$ac_compiler $ac_option >&5"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3527 if test -s conftest.err; then
3529 ... rest of stderr output deleted ...
3530 10q' conftest.err >conftest.er1
3531 cat conftest.er1 >&5
3533 rm -f conftest.er1 conftest.err
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3549 ac_clean_files_save=$ac_clean_files
3550 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3551 # Try to create an executable without -o first, disregard a.out.
3552 # It will help us diagnose broken compilers, and finding out an intuition
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3555 $as_echo_n "checking whether the C compiler works... " >&6; }
3556 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3558 # The possible output files:
3559 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3562 for ac_file in $ac_files
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3571 if { { ac_try="$ac_link_default"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_link_default") 2>&5
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3583 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3584 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3585 # so that the user can short-circuit this test for compilers unknown to
3587 for ac_file in $ac_files ''
3589 test -f "$ac_file" || continue
3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3594 # We found the default executable, but exeext='' is most
3598 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3600 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602 # We set ac_cv_exeext here because the later test for it is not
3603 # safe: cross compilers may not add the suffix if given an `-o'
3604 # argument, so we may need to know it at that point already.
3605 # Even if this section looks crufty: it has the advantage of
3612 test "$ac_cv_exeext" = no && ac_cv_exeext=
3617 if test -z "$ac_file"; then :
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error 77 "C compiler cannot create executables
3626 See \`config.log' for more details" "$LINENO" 5; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3632 $as_echo_n "checking for C compiler default output file name... " >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634 $as_echo "$ac_file" >&6; }
3635 ac_exeext=$ac_cv_exeext
3637 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3638 ac_clean_files=$ac_clean_files_save
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3640 $as_echo_n "checking for suffix of executables... " >&6; }
3641 if { { ac_try="$ac_link"
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link") 2>&5
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3654 # work properly (i.e., refer to `conftest.exe'), while it won't with
3656 for ac_file in conftest.exe conftest conftest.*; do
3657 test -f "$ac_file" || continue
3659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3669 See \`config.log' for more details" "$LINENO" 5; }
3671 rm -f conftest conftest$ac_cv_exeext
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3673 $as_echo "$ac_cv_exeext" >&6; }
3675 rm -f conftest.$ac_ext
3676 EXEEXT=$ac_cv_exeext
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3684 FILE *f = fopen ("conftest.out", "w");
3685 return ferror (f) || fclose (f) != 0;
3691 ac_clean_files="$ac_clean_files conftest.out"
3692 # Check that the compiler produces executables we can run. If not, either
3693 # the compiler is broken, or we cross compile.
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3695 $as_echo_n "checking whether we are cross compiling... " >&6; }
3696 if test "$cross_compiling" != yes; then
3697 { { ac_try="$ac_link"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_link") 2>&5
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }
3708 if { ac_try='./conftest$ac_cv_exeext'
3709 { { case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_try") 2>&5
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; }; then
3721 if test "$cross_compiling" = maybe; then
3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot run C compiled programs.
3727 If you meant to cross compile, use \`--host'.
3728 See \`config.log' for more details" "$LINENO" 5; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3733 $as_echo "$cross_compiling" >&6; }
3735 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3736 ac_clean_files=$ac_clean_files_save
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3738 $as_echo_n "checking for suffix of object files... " >&6; }
3739 if ${ac_cv_objext+:} false; then :
3740 $as_echo_n "(cached) " >&6
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3753 rm -f conftest.o conftest.obj
3754 if { { ac_try="$ac_compile"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_compile") 2>&5
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }; then :
3765 for ac_file in conftest.o conftest.obj conftest.*; do
3766 test -f "$ac_file" || continue;
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot compute suffix of object files: cannot compile
3780 See \`config.log' for more details" "$LINENO" 5; }
3782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3785 $as_echo "$ac_cv_objext" >&6; }
3786 OBJEXT=$ac_cv_objext
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3789 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3790 if ${ac_cv_c_compiler_gnu+:} false; then :
3791 $as_echo_n "(cached) " >&6
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3807 if ac_fn_c_try_compile "$LINENO"; then :
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3817 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3818 if test $ac_compiler_gnu = yes; then
3823 ac_test_CFLAGS=${CFLAGS+set}
3824 ac_save_CFLAGS=$CFLAGS
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3826 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3827 if ${ac_cv_prog_cc_g+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 ac_save_c_werror_flag=$ac_c_werror_flag
3831 ac_c_werror_flag=yes
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3845 if ac_fn_c_try_compile "$LINENO"; then :
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3860 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_c_werror_flag=$ac_save_c_werror_flag
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3876 if ac_fn_c_try_compile "$LINENO"; then :
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 ac_c_werror_flag=$ac_save_c_werror_flag
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3887 $as_echo "$ac_cv_prog_cc_g" >&6; }
3888 if test "$ac_test_CFLAGS" = set; then
3889 CFLAGS=$ac_save_CFLAGS
3890 elif test $ac_cv_prog_cc_g = yes; then
3891 if test "$GCC" = yes; then
3897 if test "$GCC" = yes; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3904 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3905 if ${ac_cv_prog_cc_c89+:} false; then :
3906 $as_echo_n "(cached) " >&6
3908 ac_cv_prog_cc_c89=no
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3914 #include <sys/types.h>
3915 #include <sys/stat.h>
3916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3917 struct buf { int x; };
3918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3919 static char *e (p, i)
3925 static char *f (char * (*g) (char **, int), char **p, ...)
3930 s = g (p, va_arg (v,int));
3935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3936 function prototypes and stuff, but not '\xHH' hex character constants.
3937 These don't provoke an error unfortunately, instead are silently treated
3938 as 'x'. The following induces an error, until -std is added to get
3939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3940 array size at least. It's necessary to write '\x00'==0 to get something
3941 that's true only with -std. */
3942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3945 inside strings and character constants. */
3947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3949 int test (int i, double x);
3950 struct s1 {int (*f) (int a);};
3951 struct s2 {int (*f) (double a);};
3952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3958 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3966 CC="$ac_save_CC $ac_arg"
3967 if ac_fn_c_try_compile "$LINENO"; then :
3968 ac_cv_prog_cc_c89=$ac_arg
3970 rm -f core conftest.err conftest.$ac_objext
3971 test "x$ac_cv_prog_cc_c89" != "xno" && break
3973 rm -f conftest.$ac_ext
3978 case "x$ac_cv_prog_cc_c89" in
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3981 $as_echo "none needed" >&6; } ;;
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3984 $as_echo "unsupported" >&6; } ;;
3986 CC="$CC $ac_cv_prog_cc_c89"
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3988 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3990 if test "x$ac_cv_prog_cc_c89" != xno; then :
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 DEPDIR="${am__leading_dot}deps"
4001 ac_config_commands="$ac_config_commands depfiles"
4004 am_make=${MAKE-make}
4005 cat > confinc << 'END'
4010 # If we don't find an include directive, just comment out the code.
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4012 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4016 # First try GNU make style include.
4017 echo "include confinc" > confmf
4018 # We grep out `Entering directory' and `Leaving directory'
4019 # messages which can occur if `w' ends up in MAKEFLAGS.
4020 # In particular we don't look at `^make:' because GNU make might
4021 # be invoked under some other name (usually "gmake"), in which
4022 # case it prints its new name instead of `make'.
4023 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4028 # Now try BSD make style include.
4029 if test "$am__include" = "#"; then
4030 echo '.include "confinc"' > confmf
4031 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4032 am__include=.include
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4040 $as_echo "$_am_result" >&6; }
4041 rm -f confinc confmf
4043 # Check whether --enable-dependency-tracking was given.
4044 if test "${enable_dependency_tracking+set}" = set; then :
4045 enableval=$enable_dependency_tracking;
4048 if test "x$enable_dependency_tracking" != xno; then
4049 am_depcomp="$ac_aux_dir/depcomp"
4052 if test "x$enable_dependency_tracking" != xno; then
4062 depcc="$CC" am_compiler_list=
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4065 $as_echo_n "checking dependency style of $depcc... " >&6; }
4066 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4070 # We make a subdir and do the tests there. Otherwise we can end up
4071 # making bogus files that we don't know about and never remove. For
4072 # instance it was reported that on HP-UX the gcc test will end up
4073 # making a dummy file named `D' -- because `-MD' means `put the output
4076 # Copy depcomp to subdir because otherwise we won't find it if we're
4077 # using a relative directory.
4078 cp "$am_depcomp" conftest.dir
4080 # We will build objects and dependencies in a subdirectory because
4081 # it helps to detect inapplicable dependency modes. For instance
4082 # both Tru64's cc and ICC support -MD to output dependencies as a
4083 # side effect of compilation, but ICC will put the dependencies in
4084 # the current directory while Tru64 will put them in the object
4088 am_cv_CC_dependencies_compiler_type=none
4089 if test "$am_compiler_list" = ""; then
4090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4093 case " $depcc " in #(
4094 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4097 for depmode in $am_compiler_list; do
4098 # Setup a source with many dependencies, because some compilers
4099 # like to wrap large dependency lists on column 80 (with \), and
4100 # we should not choose a depcomp mode which is confused by this.
4102 # We need to recreate these files for each test, as the compiler may
4103 # overwrite some of them when testing with obscure command lines.
4104 # This happens at least with the AIX C compiler.
4106 for i in 1 2 3 4 5 6; do
4107 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4108 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4109 # Solaris 8's {/usr,}/bin/sh.
4110 touch sub/conftst$i.h
4112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4114 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4115 # mode. It turns out that the SunPro C++ compiler does not properly
4116 # handle `-M -o', and we need to detect this. Also, some Intel
4117 # versions had trouble with output in subdirs
4118 am__obj=sub/conftest.${OBJEXT-o}
4119 am__minus_obj="-o $am__obj"
4122 # This depmode causes a compiler race in universal mode.
4123 test "$am__universal" = false || continue
4126 # after this tag, mechanisms are not by side-effect, so they'll
4127 # only be used when explicitly requested
4128 if test "x$enable_dependency_tracking" = xyes; then
4134 msvisualcpp | msvcmsys)
4135 # This compiler won't grok `-c -o', but also, the minuso test has
4136 # not run yet. These depmodes are late enough in the game, and
4137 # so weak that their functioning should not be impacted.
4138 am__obj=conftest.${OBJEXT-o}
4143 if depmode=$depmode \
4144 source=sub/conftest.c object=$am__obj \
4145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4146 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4147 >/dev/null 2>conftest.err &&
4148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4150 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4152 # icc doesn't choke on unknown options, it will just issue warnings
4153 # or remarks (even with -Werror). So we grep stderr for any message
4154 # that says an option was ignored or not supported.
4155 # When given -MP, icc 7.0 and 7.1 complain thusly:
4156 # icc: Command line warning: ignoring option '-M'; no argument required
4157 # The diagnosis changed in icc 8.0:
4158 # icc: Command line remark: option '-MP' not supported
4159 if (grep 'ignoring option' conftest.err ||
4160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4161 am_cv_CC_dependencies_compiler_type=$depmode
4170 am_cv_CC_dependencies_compiler_type=none
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4175 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4176 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4179 test "x$enable_dependency_tracking" != xno \
4180 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4182 am__fastdepCC_FALSE='#'
4184 am__fastdepCC_TRUE='#'
4185 am__fastdepCC_FALSE=
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4195 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4196 # On Suns, sometimes $CPP names a directory.
4197 if test -n "$CPP" && test -d "$CPP"; then
4200 if test -z "$CPP"; then
4201 if ${ac_cv_prog_CPP+:} false; then :
4202 $as_echo_n "(cached) " >&6
4204 # Double quotes because CPP needs to be expanded
4205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4208 for ac_c_preproc_warn_flag in '' yes
4210 # Use a header file that comes with gcc, so configuring glibc
4211 # with a fresh cross-compiler works.
4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 # <limits.h> exists even on freestanding compilers.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4219 # include <limits.h>
4221 # include <assert.h>
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4228 # Broken: fails on valid input.
4231 rm -f conftest.err conftest.i conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <ac_nonexistent.h>
4239 if ac_fn_c_try_cpp "$LINENO"; then :
4240 # Broken: success on invalid input.
4243 # Passes both tests.
4247 rm -f conftest.err conftest.i conftest.$ac_ext
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.i conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then :
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4265 $as_echo "$CPP" >&6; }
4267 for ac_c_preproc_warn_flag in '' yes
4269 # Use a header file that comes with gcc, so configuring glibc
4270 # with a fresh cross-compiler works.
4271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4272 # <limits.h> exists even on freestanding compilers.
4273 # On the NeXT, cc -E runs the code through the compiler's parser,
4274 # not just through cpp. "Syntax error" is here to catch this case.
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4278 # include <limits.h>
4280 # include <assert.h>
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4287 # Broken: fails on valid input.
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4292 # OK, works on sane cases. Now check whether nonexistent headers
4293 # can be detected and how.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #include <ac_nonexistent.h>
4298 if ac_fn_c_try_cpp "$LINENO"; then :
4299 # Broken: success on invalid input.
4302 # Passes both tests.
4306 rm -f conftest.err conftest.i conftest.$ac_ext
4309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4310 rm -f conftest.i conftest.err conftest.$ac_ext
4311 if $ac_preproc_ok; then :
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4317 See \`config.log' for more details" "$LINENO" 5; }
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 for ac_prog in gawk mawk nawk awk
4328 # Extract the first word of "$ac_prog", so it can be a program name with args.
4329 set dummy $ac_prog; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_AWK+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -n "$AWK"; then
4336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345 ac_cv_prog_AWK="$ac_prog"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 if test -n "$AWK"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4358 $as_echo "$AWK" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4365 test -n "$AWK" && break
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4369 $as_echo_n "checking whether ln -s works... " >&6; }
4371 if test "$LN_S" = "ln -s"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4376 $as_echo "no, using $LN_S" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4380 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4382 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4383 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4384 $as_echo_n "(cached) " >&6
4386 cat >conftest.make <<\_ACEOF
4389 @echo '@@@%%%=$(MAKE)=@@@%%%'
4391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4394 eval ac_cv_prog_make_${ac_make}_set=yes;;
4396 eval ac_cv_prog_make_${ac_make}_set=no;;
4400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 SET_MAKE="MAKE=${MAKE-make}"
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4414 $as_echo_n "checking for __attribute__... " >&6; }
4415 if ${ac_cv___attribute__+:} false; then :
4416 $as_echo_n "(cached) " >&6
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4428 static void foo(void) __attribute__ ((noreturn));
4440 if ac_fn_c_try_compile "$LINENO"; then :
4441 ac_cv___attribute__=yes
4443 ac_cv___attribute__=no
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 if test "$ac_cv___attribute__" = "yes"; then
4450 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4454 $as_echo "$ac_cv___attribute__" >&6; }
4458 # CMU GUESS RUNPATH SWITCH
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for runpath switch" >&5
4460 $as_echo_n "checking for runpath switch... " >&6; }
4461 if ${andrew_runpath_switch+:} false; then :
4462 $as_echo_n "(cached) " >&6
4466 SAVE_LDFLAGS="${LDFLAGS}"
4467 LDFLAGS="-R /usr/lib"
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4479 if ac_fn_c_try_link "$LINENO"; then :
4480 andrew_runpath_switch="-R"
4483 LDFLAGS="-Wl,-rpath,/usr/lib"
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4495 if ac_fn_c_try_link "$LINENO"; then :
4496 andrew_runpath_switch="-Wl,-rpath,"
4498 andrew_runpath_switch="none"
4500 rm -f core conftest.err conftest.$ac_objext \
4501 conftest$ac_exeext conftest.$ac_ext
4504 rm -f core conftest.err conftest.$ac_objext \
4505 conftest$ac_exeext conftest.$ac_ext
4506 LDFLAGS="${SAVE_LDFLAGS}"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $andrew_runpath_switch" >&5
4510 $as_echo "$andrew_runpath_switch" >&6; }
4513 # Check whether --with-staticsasl was given.
4514 if test "${with_staticsasl+set}" = set; then :
4515 withval=$with_staticsasl;
4518 if test "$with_staticsasl" = yes; then
4524 if test -z "$target"; then
4529 # Check whether --enable-static was given.
4530 if test "${enable_static+set}" = set; then :
4531 enableval=$enable_static; p=${PACKAGE-default}
4533 yes) enable_static=yes ;;
4534 no) enable_static=no ;;
4537 # Look at the argument we got. We use all the common list separators.
4538 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4539 for pkg in $enableval; do
4541 if test "X$pkg" = "X$p"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4563 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4568 macro_version='2.2.10'
4569 macro_revision='1.3175'
4583 ltmain="$ac_aux_dir/ltmain.sh"
4585 # Backslashify metacharacters that are still active within
4586 # double-quoted strings.
4587 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4589 # Same as above, but do not quote variable references.
4590 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4592 # Sed substitution to delay expansion of an escaped shell variable in a
4593 # double_quote_subst'ed string.
4594 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4596 # Sed substitution to delay expansion of an escaped single quote.
4597 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4599 # Sed substitution to avoid accidental globbing in evaled expressions
4600 no_glob_subst='s/\*/\\\*/g'
4602 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4603 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4604 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4607 $as_echo_n "checking how to print strings... " >&6; }
4608 # Test print first, because it will be a builtin if present.
4609 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4610 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4612 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4615 # Use this function as a fallback that always works.
4616 func_fallback_echo ()
4618 eval 'cat <<_LTECHO_EOF
4622 ECHO='func_fallback_echo'
4625 # func_echo_all arg...
4626 # Invoke $ECHO with all args, space-separated.
4633 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4634 $as_echo "printf" >&6; } ;;
4635 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4636 $as_echo "print -r" >&6; } ;;
4637 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4638 $as_echo "cat" >&6; } ;;
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4655 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4656 if ${ac_cv_path_SED+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4660 for ac_i in 1 2 3 4 5 6 7; do
4661 ac_script="$ac_script$as_nl$ac_script"
4663 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4664 { ac_script=; unset ac_script;}
4665 if test -z "$SED"; then
4666 ac_path_SED_found=false
4667 # Loop through the user's path and test for each of PROGNAME-LIST
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_prog in sed gsed; do
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4676 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4677 # Check for GNU ac_path_SED and select it if it is found.
4678 # Check for GNU $ac_path_SED
4679 case `"$ac_path_SED" --version 2>&1` in
4681 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4684 $as_echo_n 0123456789 >"conftest.in"
4687 cat "conftest.in" "conftest.in" >"conftest.tmp"
4688 mv "conftest.tmp" "conftest.in"
4689 cp "conftest.in" "conftest.nl"
4690 $as_echo '' >> "conftest.nl"
4691 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693 as_fn_arith $ac_count + 1 && ac_count=$as_val
4694 if test $ac_count -gt ${ac_path_SED_max-0}; then
4695 # Best one so far, save it but keep looking for a better one
4696 ac_cv_path_SED="$ac_path_SED"
4697 ac_path_SED_max=$ac_count
4699 # 10*(2^10) chars as input seems more than enough
4700 test $ac_count -gt 10 && break
4702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705 $ac_path_SED_found && break 3
4710 if test -z "$ac_cv_path_SED"; then
4711 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4719 $as_echo "$ac_cv_path_SED" >&6; }
4720 SED="$ac_cv_path_SED"
4723 test -z "$SED" && SED=sed
4724 Xsed="$SED -e 1s/^X//"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4737 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4738 if ${ac_cv_path_GREP+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -z "$GREP"; then
4742 ac_path_GREP_found=false
4743 # Loop through the user's path and test for each of PROGNAME-LIST
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4748 test -z "$as_dir" && as_dir=.
4749 for ac_prog in grep ggrep; do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4752 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4753 # Check for GNU ac_path_GREP and select it if it is found.
4754 # Check for GNU $ac_path_GREP
4755 case `"$ac_path_GREP" --version 2>&1` in
4757 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4760 $as_echo_n 0123456789 >"conftest.in"
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo 'GREP' >> "conftest.nl"
4767 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769 as_fn_arith $ac_count + 1 && ac_count=$as_val
4770 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_GREP="$ac_path_GREP"
4773 ac_path_GREP_max=$ac_count
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781 $ac_path_GREP_found && break 3
4786 if test -z "$ac_cv_path_GREP"; then
4787 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790 ac_cv_path_GREP=$GREP
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4795 $as_echo "$ac_cv_path_GREP" >&6; }
4796 GREP="$ac_cv_path_GREP"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4800 $as_echo_n "checking for egrep... " >&6; }
4801 if ${ac_cv_path_EGREP+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4805 then ac_cv_path_EGREP="$GREP -E"
4807 if test -z "$EGREP"; then
4808 ac_path_EGREP_found=false
4809 # Loop through the user's path and test for each of PROGNAME-LIST
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4814 test -z "$as_dir" && as_dir=.
4815 for ac_prog in egrep; do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4818 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4819 # Check for GNU ac_path_EGREP and select it if it is found.
4820 # Check for GNU $ac_path_EGREP
4821 case `"$ac_path_EGREP" --version 2>&1` in
4823 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4826 $as_echo_n 0123456789 >"conftest.in"
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 $as_echo 'EGREP' >> "conftest.nl"
4833 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
4836 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_EGREP="$ac_path_EGREP"
4839 ac_path_EGREP_max=$ac_count
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4847 $ac_path_EGREP_found && break 3
4852 if test -z "$ac_cv_path_EGREP"; then
4853 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4856 ac_cv_path_EGREP=$EGREP
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4862 $as_echo "$ac_cv_path_EGREP" >&6; }
4863 EGREP="$ac_cv_path_EGREP"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4867 $as_echo_n "checking for fgrep... " >&6; }
4868 if ${ac_cv_path_FGREP+:} false; then :
4869 $as_echo_n "(cached) " >&6
4871 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4872 then ac_cv_path_FGREP="$GREP -F"
4874 if test -z "$FGREP"; then
4875 ac_path_FGREP_found=false
4876 # Loop through the user's path and test for each of PROGNAME-LIST
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4881 test -z "$as_dir" && as_dir=.
4882 for ac_prog in fgrep; do
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4885 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4886 # Check for GNU ac_path_FGREP and select it if it is found.
4887 # Check for GNU $ac_path_FGREP
4888 case `"$ac_path_FGREP" --version 2>&1` in
4890 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4893 $as_echo_n 0123456789 >"conftest.in"
4896 cat "conftest.in" "conftest.in" >"conftest.tmp"
4897 mv "conftest.tmp" "conftest.in"
4898 cp "conftest.in" "conftest.nl"
4899 $as_echo 'FGREP' >> "conftest.nl"
4900 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4902 as_fn_arith $ac_count + 1 && ac_count=$as_val
4903 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4904 # Best one so far, save it but keep looking for a better one
4905 ac_cv_path_FGREP="$ac_path_FGREP"
4906 ac_path_FGREP_max=$ac_count
4908 # 10*(2^10) chars as input seems more than enough
4909 test $ac_count -gt 10 && break
4911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4914 $ac_path_FGREP_found && break 3
4919 if test -z "$ac_cv_path_FGREP"; then
4920 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4923 ac_cv_path_FGREP=$FGREP
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4929 $as_echo "$ac_cv_path_FGREP" >&6; }
4930 FGREP="$ac_cv_path_FGREP"
4933 test -z "$GREP" && GREP=grep
4953 # Check whether --with-gnu-ld was given.
4954 if test "${with_gnu_ld+set}" = set; then :
4955 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4961 if test "$GCC" = yes; then
4962 # Check if gcc -print-prog-name=ld gives a path.
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4964 $as_echo_n "checking for ld used by $CC... " >&6; }
4967 # gcc leaves a trailing carriage return which upsets mingw
4968 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4970 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4973 # Accept absolute paths.
4975 re_direlt='/[^/][^/]*/\.\./'
4976 # Canonicalize the pathname of ld
4977 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4978 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4979 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4981 test -z "$LD" && LD="$ac_prog"
4984 # If it fails, then pretend we aren't using GCC.
4988 # If it is relative, then search for the first ld in PATH.
4992 elif test "$with_gnu_ld" = yes; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4994 $as_echo_n "checking for GNU ld... " >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4997 $as_echo_n "checking for non-GNU ld... " >&6; }
4999 if ${lt_cv_path_LD+:} false; then :
5000 $as_echo_n "(cached) " >&6
5002 if test -z "$LD"; then
5003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5004 for ac_dir in $PATH; do
5006 test -z "$ac_dir" && ac_dir=.
5007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5008 lt_cv_path_LD="$ac_dir/$ac_prog"
5009 # Check to see if the program is GNU ld. I'd rather use --version,
5010 # but apparently some variants of GNU ld only accept -v.
5011 # Break only if it was the GNU/non-GNU ld that we prefer.
5012 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5013 *GNU* | *'with BFD'*)
5014 test "$with_gnu_ld" != no && break
5017 test "$with_gnu_ld" != yes && break
5024 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5029 if test -n "$LD"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5031 $as_echo "$LD" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5036 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5038 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5039 if ${lt_cv_prog_gnu_ld+:} false; then :
5040 $as_echo_n "(cached) " >&6
5042 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5043 case `$LD -v 2>&1 </dev/null` in
5044 *GNU* | *'with BFD'*)
5045 lt_cv_prog_gnu_ld=yes
5048 lt_cv_prog_gnu_ld=no
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5053 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5054 with_gnu_ld=$lt_cv_prog_gnu_ld
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5065 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5066 if ${lt_cv_path_NM+:} false; then :
5067 $as_echo_n "(cached) " >&6
5069 if test -n "$NM"; then
5070 # Let the user override the test.
5073 lt_nm_to_check="${ac_tool_prefix}nm"
5074 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5075 lt_nm_to_check="$lt_nm_to_check nm"
5077 for lt_tmp_nm in $lt_nm_to_check; do
5078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5079 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5081 test -z "$ac_dir" && ac_dir=.
5082 tmp_nm="$ac_dir/$lt_tmp_nm"
5083 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5084 # Check to see if the nm accepts a BSD-compat flag.
5085 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5086 # nm: unknown option "B" ignored
5087 # Tru64's nm complains that /dev/null is an invalid object file
5088 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5089 */dev/null* | *'Invalid file or object type'*)
5090 lt_cv_path_NM="$tmp_nm -B"
5094 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5096 lt_cv_path_NM="$tmp_nm -p"
5100 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5101 continue # so that we can try to find one that supports BSD flags
5110 : ${lt_cv_path_NM=no}
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5114 $as_echo "$lt_cv_path_NM" >&6; }
5115 if test "$lt_cv_path_NM" != "no"; then
5118 # Didn't find any BSD compatible name lister, look for dumpbin.
5119 if test -n "$DUMPBIN"; then :
5120 # Let the user override the test.
5122 if test -n "$ac_tool_prefix"; then
5123 for ac_prog in dumpbin "link -dump"
5125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_DUMPBIN+:} false; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$DUMPBIN"; then
5133 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 DUMPBIN=$ac_cv_prog_DUMPBIN
5153 if test -n "$DUMPBIN"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5155 $as_echo "$DUMPBIN" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 test -n "$DUMPBIN" && break
5165 if test -z "$DUMPBIN"; then
5166 ac_ct_DUMPBIN=$DUMPBIN
5167 for ac_prog in dumpbin "link -dump"
5169 # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5174 $as_echo_n "(cached) " >&6
5176 if test -n "$ac_ct_DUMPBIN"; then
5177 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5197 if test -n "$ac_ct_DUMPBIN"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5199 $as_echo "$ac_ct_DUMPBIN" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5206 test -n "$ac_ct_DUMPBIN" && break
5209 if test "x$ac_ct_DUMPBIN" = x; then
5212 case $cross_compiling:$ac_tool_warned in
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216 ac_tool_warned=yes ;;
5218 DUMPBIN=$ac_ct_DUMPBIN
5222 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5224 DUMPBIN="$DUMPBIN -symbols"
5232 if test "$DUMPBIN" != ":"; then
5236 test -z "$NM" && NM=nm
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5244 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5245 if ${lt_cv_nm_interface+:} false; then :
5246 $as_echo_n "(cached) " >&6
5248 lt_cv_nm_interface="BSD nm"
5249 echo "int some_variable = 0;" > conftest.$ac_ext
5250 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5251 (eval "$ac_compile" 2>conftest.err)
5252 cat conftest.err >&5
5253 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5254 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5255 cat conftest.err >&5
5256 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5257 cat conftest.out >&5
5258 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5259 lt_cv_nm_interface="MS dumpbin"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5264 $as_echo "$lt_cv_nm_interface" >&6; }
5266 # find the maximum length of command line arguments
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5268 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5269 if ${lt_cv_sys_max_cmd_len+:} false; then :
5270 $as_echo_n "(cached) " >&6
5277 # On DJGPP, this test can blow up pretty badly due to problems in libc
5278 # (any single argument exceeding 2000 bytes causes a buffer overrun
5279 # during glob expansion). Even if it were fixed, the result of this
5280 # check would be larger than it should be.
5281 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5285 # Under GNU Hurd, this test is not required because there is
5286 # no limit to the length of command line arguments.
5287 # Libtool will interpret -1 as no limit whatsoever
5288 lt_cv_sys_max_cmd_len=-1;
5291 cygwin* | mingw* | cegcc*)
5292 # On Win9x/ME, this test blows up -- it succeeds, but takes
5293 # about 5 minutes as the teststring grows exponentially.
5294 # Worse, since 9x/ME are not pre-emptively multitasking,
5295 # you end up with a "frozen" computer, even though with patience
5296 # the test eventually succeeds (with a max line length of 256k).
5297 # Instead, let's just punt: use the minimum linelength reported by
5298 # all of the supported platforms: 8192 (on NT/2K/XP).
5299 lt_cv_sys_max_cmd_len=8192;
5303 # On MiNT this can take a long time and run out of memory.
5304 lt_cv_sys_max_cmd_len=8192;
5308 # On AmigaOS with pdksh, this test takes hours, literally.
5309 # So we just punt and use a minimum line length of 8192.
5310 lt_cv_sys_max_cmd_len=8192;
5313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5314 # This has been around since 386BSD, at least. Likely further.
5315 if test -x /sbin/sysctl; then
5316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5317 elif test -x /usr/sbin/sysctl; then
5318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5322 # And add a safety zone
5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5329 lt_cv_sys_max_cmd_len=196608
5333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5335 # nice to cause kernel panics so lets avoid the loop below.
5336 # First set a reasonable default.
5337 lt_cv_sys_max_cmd_len=16384
5339 if test -x /sbin/sysconfig; then
5340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5346 lt_cv_sys_max_cmd_len=102400
5348 sysv5* | sco5v6* | sysv4.2uw2*)
5349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5350 if test -n "$kargmax"; then
5351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5353 lt_cv_sys_max_cmd_len=32768
5357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5358 if test -n "$lt_cv_sys_max_cmd_len"; then
5359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5362 # Make teststring a little bigger before we do anything with it.
5363 # a 1K string should be a reasonable start.
5364 for i in 1 2 3 4 5 6 7 8 ; do
5365 teststring=$teststring$teststring
5367 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5368 # If test is not a shell built-in, we'll probably end up computing a
5369 # maximum length that is only half of the actual maximum length, but
5371 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5372 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5373 test $i != 17 # 1/2 MB should be enough
5376 teststring=$teststring$teststring
5378 # Only check the string length outside the loop.
5379 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5381 # Add a significant safety factor because C++ compilers can tack on
5382 # massive amounts of additional arguments before passing them to the
5383 # linker. It appears as though 1/2 is a usable value.
5384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5391 if test -n $lt_cv_sys_max_cmd_len ; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5393 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5396 $as_echo "none" >&6; }
5398 max_cmd_len=$lt_cv_sys_max_cmd_len
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5410 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5411 # Try some XSI features
5414 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5416 && eval 'test $(( 1 + 1 )) -eq 2 \
5417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5420 $as_echo "$xsi_shell" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5424 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5426 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5428 && lt_shell_append=yes
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5430 $as_echo "$lt_shell_append" >&6; }
5433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5443 # test EBCDIC or ASCII
5444 case `echo X|tr X '\101'` in
5445 A) # ASCII based system
5446 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5447 lt_SP2NL='tr \040 \012'
5448 lt_NL2SP='tr \015\012 \040\040'
5450 *) # EBCDIC based system
5451 lt_SP2NL='tr \100 \n'
5452 lt_NL2SP='tr \r\n \100\100'
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5465 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5466 if ${lt_cv_ld_reload_flag+:} false; then :
5467 $as_echo_n "(cached) " >&6
5469 lt_cv_ld_reload_flag='-r'
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5472 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5473 reload_flag=$lt_cv_ld_reload_flag
5474 case $reload_flag in
5476 *) reload_flag=" $reload_flag" ;;
5478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5481 if test "$GCC" = yes; then
5482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5497 if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_OBJDUMP+:} false; then :
5503 $as_echo_n "(cached) " >&6
5505 if test -n "$OBJDUMP"; then
5506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 OBJDUMP=$ac_cv_prog_OBJDUMP
5526 if test -n "$OBJDUMP"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5528 $as_echo "$OBJDUMP" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5536 if test -z "$ac_cv_prog_OBJDUMP"; then
5537 ac_ct_OBJDUMP=$OBJDUMP
5538 # Extract the first word of "objdump", so it can be a program name with args.
5539 set dummy objdump; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 if test -n "$ac_ct_OBJDUMP"; then
5546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5566 if test -n "$ac_ct_OBJDUMP"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5568 $as_echo "$ac_ct_OBJDUMP" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5574 if test "x$ac_ct_OBJDUMP" = x; then
5577 case $cross_compiling:$ac_tool_warned in
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5583 OBJDUMP=$ac_ct_OBJDUMP
5586 OBJDUMP="$ac_cv_prog_OBJDUMP"
5589 test -z "$OBJDUMP" && OBJDUMP=objdump
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5600 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5601 if ${lt_cv_deplibs_check_method+:} false; then :
5602 $as_echo_n "(cached) " >&6
5604 lt_cv_file_magic_cmd='$MAGIC_CMD'
5605 lt_cv_file_magic_test_file=
5606 lt_cv_deplibs_check_method='unknown'
5607 # Need to set the preceding variable on all platforms that support
5608 # interlibrary dependencies.
5609 # 'none' -- dependencies not supported.
5610 # `unknown' -- same as none, but documents that we really don't know.
5611 # 'pass_all' -- all dependencies passed with no checks.
5612 # 'test_compile' -- check by making test program.
5613 # 'file_magic [[regex]]' -- check by looking for files in library path
5614 # which responds to the $file_magic_cmd with a given extended regex.
5615 # If you have `file' or equivalent on your system and you're not sure
5616 # whether `pass_all' will *always* work, you probably want this one.
5620 lt_cv_deplibs_check_method=pass_all
5624 lt_cv_deplibs_check_method=pass_all
5628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5629 lt_cv_file_magic_cmd='/usr/bin/file -L'
5630 lt_cv_file_magic_test_file=/shlib/libc.so
5634 # func_win32_libid is a shell function defined in ltmain.sh
5635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5636 lt_cv_file_magic_cmd='func_win32_libid'
5640 # Base MSYS/MinGW do not provide the 'file' command needed by
5641 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5642 # unless we find 'file', for example because we are cross-compiling.
5643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5644 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5646 lt_cv_file_magic_cmd='func_win32_libid'
5648 # Keep this pattern in sync with the one in func_win32_libid.
5649 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5650 lt_cv_file_magic_cmd='$OBJDUMP -f'
5655 # use the weaker test based on 'objdump'. See mingw*.
5656 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5657 lt_cv_file_magic_cmd='$OBJDUMP -f'
5660 darwin* | rhapsody*)
5661 lt_cv_deplibs_check_method=pass_all
5664 freebsd* | dragonfly*)
5665 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5668 # Not sure whether the presence of OpenBSD here was a mistake.
5669 # Let's accept both of them until this is cleared up.
5670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5671 lt_cv_file_magic_cmd=/usr/bin/file
5672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5676 lt_cv_deplibs_check_method=pass_all
5681 lt_cv_deplibs_check_method=pass_all
5685 lt_cv_deplibs_check_method=pass_all
5688 hpux10.20* | hpux11*)
5689 lt_cv_file_magic_cmd=/usr/bin/file
5692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5693 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5696 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]'
5697 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5701 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5707 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5711 irix5* | irix6* | nonstopux*)
5713 *-32|*"-32 ") libmagic=32-bit;;
5714 *-n32|*"-n32 ") libmagic=N32;;
5715 *-64|*"-64 ") libmagic=64-bit;;
5716 *) libmagic=never-match;;
5718 lt_cv_deplibs_check_method=pass_all
5721 # This must be Linux ELF.
5722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5723 lt_cv_deplibs_check_method=pass_all
5727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5736 lt_cv_file_magic_cmd=/usr/bin/file
5737 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5741 lt_cv_deplibs_check_method=pass_all
5745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5752 osf3* | osf4* | osf5*)
5753 lt_cv_deplibs_check_method=pass_all
5757 lt_cv_deplibs_check_method=pass_all
5761 lt_cv_deplibs_check_method=pass_all
5764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5765 lt_cv_deplibs_check_method=pass_all
5769 case $host_vendor in
5771 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]'
5772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5775 lt_cv_deplibs_check_method=pass_all
5778 lt_cv_file_magic_cmd='/bin/file'
5779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5782 lt_cv_file_magic_cmd='/bin/file'
5783 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5784 lt_cv_file_magic_test_file=/lib/libc.so
5787 lt_cv_deplibs_check_method=pass_all
5790 lt_cv_deplibs_check_method=pass_all
5796 lt_cv_deplibs_check_method=pass_all
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5802 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5803 file_magic_cmd=$lt_cv_file_magic_cmd
5804 deplibs_check_method=$lt_cv_deplibs_check_method
5805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}ar; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_prog_AR+:} false; then :
5824 $as_echo_n "(cached) " >&6
5826 if test -n "$AR"; then
5827 ac_cv_prog_AR="$AR" # Let the user override the test.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_AR="${ac_tool_prefix}ar"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 if test -n "$AR"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5849 $as_echo "$AR" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5857 if test -z "$ac_cv_prog_AR"; then
5859 # Extract the first word of "ar", so it can be a program name with args.
5860 set dummy ar; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5864 $as_echo_n "(cached) " >&6
5866 if test -n "$ac_ct_AR"; then
5867 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_AR="ar"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5887 if test -n "$ac_ct_AR"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5889 $as_echo "$ac_ct_AR" >&6; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5895 if test "x$ac_ct_AR" = x; then
5898 case $cross_compiling:$ac_tool_warned in
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5910 test -z "$AR" && AR=ar
5911 test -z "$AR_FLAGS" && AR_FLAGS=cru
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_STRIP+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 if test -n "$STRIP"; then
5932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 STRIP=$ac_cv_prog_STRIP
5952 if test -n "$STRIP"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5954 $as_echo "$STRIP" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5962 if test -z "$ac_cv_prog_STRIP"; then
5964 # Extract the first word of "strip", so it can be a program name with args.
5965 set dummy strip; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5969 $as_echo_n "(cached) " >&6
5971 if test -n "$ac_ct_STRIP"; then
5972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_prog_ac_ct_STRIP="strip"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5992 if test -n "$ac_ct_STRIP"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5994 $as_echo "$ac_ct_STRIP" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
6000 if test "x$ac_ct_STRIP" = x; then
6003 case $cross_compiling:$ac_tool_warned in
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6012 STRIP="$ac_cv_prog_STRIP"
6015 test -z "$STRIP" && STRIP=:
6022 if test -n "$ac_tool_prefix"; then
6023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_RANLIB+:} false; then :
6028 $as_echo_n "(cached) " >&6
6030 if test -n "$RANLIB"; then
6031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 RANLIB=$ac_cv_prog_RANLIB
6051 if test -n "$RANLIB"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6053 $as_echo "$RANLIB" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6061 if test -z "$ac_cv_prog_RANLIB"; then
6062 ac_ct_RANLIB=$RANLIB
6063 # Extract the first word of "ranlib", so it can be a program name with args.
6064 set dummy ranlib; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6068 $as_echo_n "(cached) " >&6
6070 if test -n "$ac_ct_RANLIB"; then
6071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_prog_ac_ct_RANLIB="ranlib"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6091 if test -n "$ac_ct_RANLIB"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6093 $as_echo "$ac_ct_RANLIB" >&6; }
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6099 if test "x$ac_ct_RANLIB" = x; then
6102 case $cross_compiling:$ac_tool_warned in
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6108 RANLIB=$ac_ct_RANLIB
6111 RANLIB="$ac_cv_prog_RANLIB"
6114 test -z "$RANLIB" && RANLIB=:
6121 # Determine commands to create old-style static archives.
6122 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6123 old_postinstall_cmds='chmod 644 $oldlib'
6124 old_postuninstall_cmds=
6126 if test -n "$RANLIB"; then
6129 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6135 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6140 lock_old_archive_extraction=yes ;;
6142 lock_old_archive_extraction=no ;;
6183 # If no C compiler was specified, use CC.
6186 # If no C compiler flags were specified, use CFLAGS.
6187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6189 # Allow CC to be a program name with arguments.
6193 # Check for command to grab the raw symbol name followed by C symbol from nm.
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6195 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6196 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6197 $as_echo_n "(cached) " >&6
6200 # These are sane defaults that work on at least a few old systems.
6201 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6203 # Character class describing NM global symbol codes.
6204 symcode='[BCDEGRST]'
6206 # Regexp to match symbols that can be accessed directly from C.
6207 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6209 # Define system-specific variables.
6214 cygwin* | mingw* | pw32* | cegcc*)
6215 symcode='[ABCDGISTW]'
6218 if test "$host_cpu" = ia64; then
6219 symcode='[ABCDEGRST]'
6223 symcode='[BCDEGRST]'
6226 symcode='[BCDEGQRST]'
6237 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6245 # If we're using GNU nm, then use its standard symbol codes.
6246 case `$NM -V 2>&1` in
6247 *GNU* | *'with BFD'*)
6248 symcode='[ABCDGIRSTW]' ;;
6251 # Transform an extracted symbol line into a proper C declaration.
6252 # Some systems (esp. on ia64) link data and code symbols differently,
6253 # so use this general approach.
6254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6256 # Transform an extracted symbol line into symbol name and symbol address
6257 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6258 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'"
6260 # Handle CRLF in mingw tool chain
6264 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6268 # Try without a prefix underscore, then with it.
6269 for ac_symprfx in "" "_"; do
6271 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6272 symxfrm="\\1 $ac_symprfx\\2 \\2"
6274 # Write the raw and C identifiers.
6275 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6276 # Fake it for dumpbin and say T for any non-static function
6277 # and D for any global variable.
6278 # Also find C++ and __fastcall symbols from MSVC++,
6279 # which start with @ or ?.
6280 lt_cv_sys_global_symbol_pipe="$AWK '"\
6281 " {last_section=section; section=\$ 3};"\
6282 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6283 " \$ 0!~/External *\|/{next};"\
6284 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6285 " {if(hide[section]) next};"\
6286 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6287 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6288 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6289 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6290 " ' prfx=^$ac_symprfx"
6292 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6295 # Check to see that the pipe works correctly.
6299 cat > conftest.$ac_ext <<_LT_EOF
6304 void nm_test_func(void);
6305 void nm_test_func(void){}
6309 int main(){nm_test_var='a';nm_test_func();return(0);}
6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313 (eval $ac_compile) 2>&5
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }; then
6317 # Now try to grab the symbols.
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6320 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; } && test -s "$nlist"; then
6324 # Try sorting and uniquifying the output.
6325 if sort "$nlist" | uniq > "$nlist"T; then
6326 mv -f "$nlist"T "$nlist"
6331 # Make sure that we snagged all the symbols we need.
6332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6334 cat <<_LT_EOF > conftest.$ac_ext
6340 # Now generate the symbol file.
6341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6343 cat <<_LT_EOF >> conftest.$ac_ext
6345 /* The mapping between symbol names and symbols. */
6350 lt__PROGRAM__LTX_preloaded_symbols[] =
6352 { "@PROGRAM@", (void *) 0 },
6354 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6355 cat <<\_LT_EOF >> conftest.$ac_ext
6359 /* This works around a problem in FreeBSD linker */
6360 #ifdef FREEBSD_WORKAROUND
6361 static const void *lt_preloaded_setup() {
6362 return lt__PROGRAM__LTX_preloaded_symbols;
6370 # Now try linking the two files.
6371 mv conftest.$ac_objext conftstm.$ac_objext
6372 lt_save_LIBS="$LIBS"
6373 lt_save_CFLAGS="$CFLAGS"
6374 LIBS="conftstm.$ac_objext"
6375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6377 (eval $ac_link) 2>&5
6379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6383 LIBS="$lt_save_LIBS"
6384 CFLAGS="$lt_save_CFLAGS"
6386 echo "cannot find nm_test_func in $nlist" >&5
6389 echo "cannot find nm_test_var in $nlist" >&5
6392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6395 echo "$progname: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 rm -rf conftest* conftst*
6400 # Do not use the global_symbol_pipe unless it works.
6401 if test "$pipe_works" = yes; then
6404 lt_cv_sys_global_symbol_pipe=
6410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6411 lt_cv_sys_global_symbol_to_cdecl=
6413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6415 $as_echo "failed" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6418 $as_echo "ok" >&6; }
6442 # Check whether --enable-libtool-lock was given.
6443 if test "${enable_libtool_lock+set}" = set; then :
6444 enableval=$enable_libtool_lock;
6447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6449 # Some flags need to be propagated to the compiler or linker for good
6453 # Find out which ABI we are using.
6454 echo 'int i;' > conftest.$ac_ext
6455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6456 (eval $ac_compile) 2>&5
6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 test $ac_status = 0; }; then
6460 case `/usr/bin/file conftest.$ac_objext` in
6472 # Find out which ABI we are using.
6473 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475 (eval $ac_compile) 2>&5
6477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478 test $ac_status = 0; }; then
6479 if test "$lt_cv_prog_gnu_ld" = yes; then
6480 case `/usr/bin/file conftest.$ac_objext` in
6482 LD="${LD-ld} -melf32bsmip"
6485 LD="${LD-ld} -melf32bmipn32"
6488 LD="${LD-ld} -melf64bmip"
6492 case `/usr/bin/file conftest.$ac_objext` in
6508 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6509 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6510 # Find out which ABI we are using.
6511 echo 'int i;' > conftest.$ac_ext
6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6513 (eval $ac_compile) 2>&5
6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516 test $ac_status = 0; }; then
6517 case `/usr/bin/file conftest.o` in
6520 x86_64-*kfreebsd*-gnu)
6521 LD="${LD-ld} -m elf_i386_fbsd"
6524 LD="${LD-ld} -m elf_i386"
6526 ppc64-*linux*|powerpc64-*linux*)
6527 LD="${LD-ld} -m elf32ppclinux"
6530 LD="${LD-ld} -m elf_s390"
6533 LD="${LD-ld} -m elf32_sparc"
6539 x86_64-*kfreebsd*-gnu)
6540 LD="${LD-ld} -m elf_x86_64_fbsd"
6543 LD="${LD-ld} -m elf_x86_64"
6545 ppc*-*linux*|powerpc*-*linux*)
6546 LD="${LD-ld} -m elf64ppc"
6548 s390*-*linux*|s390*-*tpf*)
6549 LD="${LD-ld} -m elf64_s390"
6552 LD="${LD-ld} -m elf64_sparc"
6562 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6563 SAVE_CFLAGS="$CFLAGS"
6564 CFLAGS="$CFLAGS -belf"
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6566 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6567 if ${lt_cv_cc_needs_belf+:} false; then :
6568 $as_echo_n "(cached) " >&6
6571 ac_cpp='$CPP $CPPFLAGS'
6572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6587 if ac_fn_c_try_link "$LINENO"; then :
6588 lt_cv_cc_needs_belf=yes
6590 lt_cv_cc_needs_belf=no
6592 rm -f core conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext conftest.$ac_ext
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6602 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6603 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6604 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6605 CFLAGS="$SAVE_CFLAGS"
6609 # Find out which ABI we are using.
6610 echo 'int i;' > conftest.$ac_ext
6611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6612 (eval $ac_compile) 2>&5
6614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615 test $ac_status = 0; }; then
6616 case `/usr/bin/file conftest.o` in
6618 case $lt_cv_prog_gnu_ld in
6619 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6621 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6633 need_locks="$enable_libtool_lock"
6637 rhapsody* | darwin*)
6638 if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6644 $as_echo_n "(cached) " >&6
6646 if test -n "$DSYMUTIL"; then
6647 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6667 if test -n "$DSYMUTIL"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6669 $as_echo "$DSYMUTIL" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6677 if test -z "$ac_cv_prog_DSYMUTIL"; then
6678 ac_ct_DSYMUTIL=$DSYMUTIL
6679 # Extract the first word of "dsymutil", so it can be a program name with args.
6680 set dummy dsymutil; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6684 $as_echo_n "(cached) " >&6
6686 if test -n "$ac_ct_DSYMUTIL"; then
6687 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6707 if test -n "$ac_ct_DSYMUTIL"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6709 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6715 if test "x$ac_ct_DSYMUTIL" = x; then
6718 case $cross_compiling:$ac_tool_warned in
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722 ac_tool_warned=yes ;;
6724 DSYMUTIL=$ac_ct_DSYMUTIL
6727 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6730 if test -n "$ac_tool_prefix"; then
6731 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_NMEDIT+:} false; then :
6736 $as_echo_n "(cached) " >&6
6738 if test -n "$NMEDIT"; then
6739 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 NMEDIT=$ac_cv_prog_NMEDIT
6759 if test -n "$NMEDIT"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6761 $as_echo "$NMEDIT" >&6; }
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6769 if test -z "$ac_cv_prog_NMEDIT"; then
6770 ac_ct_NMEDIT=$NMEDIT
6771 # Extract the first word of "nmedit", so it can be a program name with args.
6772 set dummy nmedit; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6776 $as_echo_n "(cached) " >&6
6778 if test -n "$ac_ct_NMEDIT"; then
6779 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6799 if test -n "$ac_ct_NMEDIT"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6801 $as_echo "$ac_ct_NMEDIT" >&6; }
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6807 if test "x$ac_ct_NMEDIT" = x; then
6810 case $cross_compiling:$ac_tool_warned in
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6816 NMEDIT=$ac_ct_NMEDIT
6819 NMEDIT="$ac_cv_prog_NMEDIT"
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_LIPO+:} false; then :
6828 $as_echo_n "(cached) " >&6
6830 if test -n "$LIPO"; then
6831 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 LIPO=$ac_cv_prog_LIPO
6851 if test -n "$LIPO"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6853 $as_echo "$LIPO" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6861 if test -z "$ac_cv_prog_LIPO"; then
6863 # Extract the first word of "lipo", so it can be a program name with args.
6864 set dummy lipo; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 if test -n "$ac_ct_LIPO"; then
6871 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_ac_ct_LIPO="lipo"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6891 if test -n "$ac_ct_LIPO"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6893 $as_echo "$ac_ct_LIPO" >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6899 if test "x$ac_ct_LIPO" = x; then
6902 case $cross_compiling:$ac_tool_warned in
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6911 LIPO="$ac_cv_prog_LIPO"
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}otool; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_OTOOL+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 if test -n "$OTOOL"; then
6923 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 OTOOL=$ac_cv_prog_OTOOL
6943 if test -n "$OTOOL"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6945 $as_echo "$OTOOL" >&6; }
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6953 if test -z "$ac_cv_prog_OTOOL"; then
6955 # Extract the first word of "otool", so it can be a program name with args.
6956 set dummy otool; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6960 $as_echo_n "(cached) " >&6
6962 if test -n "$ac_ct_OTOOL"; then
6963 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_prog_ac_ct_OTOOL="otool"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6983 if test -n "$ac_ct_OTOOL"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6985 $as_echo "$ac_ct_OTOOL" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6991 if test "x$ac_ct_OTOOL" = x; then
6994 case $cross_compiling:$ac_tool_warned in
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
7003 OTOOL="$ac_cv_prog_OTOOL"
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_OTOOL64+:} false; then :
7012 $as_echo_n "(cached) " >&6
7014 if test -n "$OTOOL64"; then
7015 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 OTOOL64=$ac_cv_prog_OTOOL64
7035 if test -n "$OTOOL64"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7037 $as_echo "$OTOOL64" >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7045 if test -z "$ac_cv_prog_OTOOL64"; then
7046 ac_ct_OTOOL64=$OTOOL64
7047 # Extract the first word of "otool64", so it can be a program name with args.
7048 set dummy otool64; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7052 $as_echo_n "(cached) " >&6
7054 if test -n "$ac_ct_OTOOL64"; then
7055 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_OTOOL64="otool64"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7075 if test -n "$ac_ct_OTOOL64"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7077 $as_echo "$ac_ct_OTOOL64" >&6; }
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7083 if test "x$ac_ct_OTOOL64" = x; then
7086 case $cross_compiling:$ac_tool_warned in
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7092 OTOOL64=$ac_ct_OTOOL64
7095 OTOOL64="$ac_cv_prog_OTOOL64"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7125 $as_echo_n "checking for -single_module linker flag... " >&6; }
7126 if ${lt_cv_apple_cc_single_mod+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 lt_cv_apple_cc_single_mod=no
7130 if test -z "${LT_MULTI_MODULE}"; then
7131 # By default we will add the -single_module flag. You can override
7132 # by either setting the environment variable LT_MULTI_MODULE
7133 # non-empty at configure time, or by adding -multi_module to the
7135 rm -rf libconftest.dylib*
7136 echo "int foo(void){return 1;}" > conftest.c
7137 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7138 -dynamiclib -Wl,-single_module conftest.c" >&5
7139 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7140 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7142 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7143 lt_cv_apple_cc_single_mod=yes
7145 cat conftest.err >&5
7147 rm -rf libconftest.dylib*
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7152 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7154 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7155 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7156 $as_echo_n "(cached) " >&6
7158 lt_cv_ld_exported_symbols_list=no
7159 save_LDFLAGS=$LDFLAGS
7160 echo "_main" > conftest.sym
7161 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7173 if ac_fn_c_try_link "$LINENO"; then :
7174 lt_cv_ld_exported_symbols_list=yes
7176 lt_cv_ld_exported_symbols_list=no
7178 rm -f core conftest.err conftest.$ac_objext \
7179 conftest$ac_exeext conftest.$ac_ext
7180 LDFLAGS="$save_LDFLAGS"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7184 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7186 $as_echo_n "checking for -force_load linker flag... " >&6; }
7187 if ${lt_cv_ld_force_load+:} false; then :
7188 $as_echo_n "(cached) " >&6
7190 lt_cv_ld_force_load=no
7191 cat > conftest.c << _LT_EOF
7192 int forced_loaded() { return 2;}
7194 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7195 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7196 echo "$AR cru libconftest.a conftest.o" >&5
7197 $AR cru libconftest.a conftest.o 2>&5
7198 echo "$RANLIB libconftest.a" >&5
7199 $RANLIB libconftest.a 2>&5
7200 cat > conftest.c << _LT_EOF
7201 int main() { return 0;}
7203 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7204 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7206 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7207 lt_cv_ld_force_load=yes
7209 cat conftest.err >&5
7211 rm -f conftest.err libconftest.a conftest conftest.c
7212 rm -rf conftest.dSYM
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7216 $as_echo "$lt_cv_ld_force_load" >&6; }
7218 rhapsody* | darwin1.[012])
7219 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7221 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7222 darwin*) # darwin 5.x on
7223 # if running on 10.5 or later, the deployment target defaults
7224 # to the OS version, if on x86, and 10.4, the deployment
7225 # target defaults to 10.4. Don't you love it?
7226 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7227 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7228 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7230 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7232 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7236 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7237 _lt_dar_single_mod='$single_module'
7239 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7240 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7242 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7244 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7245 _lt_dsymutil='~$DSYMUTIL $lib || :'
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7254 $as_echo_n "checking for ANSI C header files... " >&6; }
7255 if ${ac_cv_header_stdc+:} false; then :
7256 $as_echo_n "(cached) " >&6
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274 ac_cv_header_stdc=yes
7276 ac_cv_header_stdc=no
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 if test $ac_cv_header_stdc = yes; then
7281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7288 $EGREP "memchr" >/dev/null 2>&1; then :
7291 ac_cv_header_stdc=no
7297 if test $ac_cv_header_stdc = yes; then
7298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 $EGREP "free" >/dev/null 2>&1; then :
7308 ac_cv_header_stdc=no
7314 if test $ac_cv_header_stdc = yes; then
7315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7316 if test "$cross_compiling" = yes; then :
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7323 #if ((' ' & 0x0FF) == 0x020)
7324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7327 # define ISLOWER(c) \
7328 (('a' <= (c) && (c) <= 'i') \
7329 || ('j' <= (c) && (c) <= 'r') \
7330 || ('s' <= (c) && (c) <= 'z'))
7331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7339 for (i = 0; i < 256; i++)
7340 if (XOR (islower (i), ISLOWER (i))
7341 || toupper (i) != TOUPPER (i))
7346 if ac_fn_c_try_run "$LINENO"; then :
7349 ac_cv_header_stdc=no
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7358 $as_echo "$ac_cv_header_stdc" >&6; }
7359 if test $ac_cv_header_stdc = yes; then
7361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7367 inttypes.h stdint.h unistd.h
7369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7373 cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7382 for ac_header in dlfcn.h
7384 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7386 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7387 cat >>confdefs.h <<_ACEOF
7388 #define HAVE_DLFCN_H 1
7409 # Check whether --enable-shared was given.
7410 if test "${enable_shared+set}" = set; then :
7411 enableval=$enable_shared; p=${PACKAGE-default}
7413 yes) enable_shared=yes ;;
7414 no) enable_shared=no ;;
7417 # Look at the argument we got. We use all the common list separators.
7418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7419 for pkg in $enableval; do
7421 if test "X$pkg" = "X$p"; then
7442 # Check whether --with-pic was given.
7443 if test "${with_pic+set}" = set; then :
7444 withval=$with_pic; pic_mode="$withval"
7450 test -z "$pic_mode" && pic_mode=default
7458 # Check whether --enable-fast-install was given.
7459 if test "${enable_fast_install+set}" = set; then :
7460 enableval=$enable_fast_install; p=${PACKAGE-default}
7462 yes) enable_fast_install=yes ;;
7463 no) enable_fast_install=no ;;
7465 enable_fast_install=no
7466 # Look at the argument we got. We use all the common list separators.
7467 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7468 for pkg in $enableval; do
7470 if test "X$pkg" = "X$p"; then
7471 enable_fast_install=yes
7478 enable_fast_install=yes
7491 # This can be used to rebuild libtool when needed
7492 LIBTOOL_DEPS="$ltmain"
7494 # Always use our own libtool.
7495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7522 test -z "$LN_S" && LN_S="ln -s"
7537 if test -n "${ZSH_VERSION+set}" ; then
7538 setopt NO_GLOB_SUBST
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7542 $as_echo_n "checking for objdir... " >&6; }
7543 if ${lt_cv_objdir+:} false; then :
7544 $as_echo_n "(cached) " >&6
7546 rm -f .libs 2>/dev/null
7547 mkdir .libs 2>/dev/null
7548 if test -d .libs; then
7551 # MS-DOS does not allow filenames that begin with a dot.
7554 rmdir .libs 2>/dev/null
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7557 $as_echo "$lt_cv_objdir" >&6; }
7558 objdir=$lt_cv_objdir
7564 cat >>confdefs.h <<_ACEOF
7565 #define LT_OBJDIR "$lt_cv_objdir/"
7573 # AIX sometimes has problems with the GCC collect2 program. For some
7574 # reason, if we set the COLLECT_NAMES environment variable, the problems
7575 # vanish in a puff of smoke.
7576 if test "X${COLLECT_NAMES+set}" != Xset; then
7578 export COLLECT_NAMES
7585 can_build_shared=yes
7587 # All known linkers require a `.a' archive for static linking (except MSVC,
7588 # which needs '.lib').
7591 with_gnu_ld="$lt_cv_prog_gnu_ld"
7594 old_CFLAGS="$CFLAGS"
7596 # Set sane defaults for various variables
7597 test -z "$CC" && CC=cc
7598 test -z "$LTCC" && LTCC=$CC
7599 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7600 test -z "$LD" && LD=ld
7601 test -z "$ac_objext" && ac_objext=o
7603 for cc_temp in $compiler""; do
7605 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7606 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7611 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7614 # Only perform the check for file, if the check method requires it
7615 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7616 case $deplibs_check_method in
7618 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7620 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7621 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7622 $as_echo_n "(cached) " >&6
7626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7629 lt_save_MAGIC_CMD="$MAGIC_CMD"
7630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7632 for ac_dir in $ac_dummy; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/${ac_tool_prefix}file; then
7636 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7637 if test -n "$file_magic_test_file"; then
7638 case $deplibs_check_method in
7640 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7643 $EGREP "$file_magic_regex" > /dev/null; then
7648 *** Warning: the command libtool uses to detect shared libraries,
7649 *** $file_magic_cmd, produces output that libtool cannot recognize.
7650 *** The result is that libtool may fail to recognize shared libraries
7651 *** as such. This will affect the creation of libtool libraries that
7652 *** depend on shared libraries, but programs linked with such libtool
7653 *** libraries will work regardless of this problem. Nevertheless, you
7654 *** may want to report the problem to your system manager and/or to
7655 *** bug-libtool@gnu.org
7665 MAGIC_CMD="$lt_save_MAGIC_CMD"
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if test -n "$MAGIC_CMD"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7673 $as_echo "$MAGIC_CMD" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7683 if test -z "$lt_cv_path_MAGIC_CMD"; then
7684 if test -n "$ac_tool_prefix"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7686 $as_echo_n "checking for file... " >&6; }
7687 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7688 $as_echo_n "(cached) " >&6
7692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7695 lt_save_MAGIC_CMD="$MAGIC_CMD"
7696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7698 for ac_dir in $ac_dummy; do
7700 test -z "$ac_dir" && ac_dir=.
7701 if test -f $ac_dir/file; then
7702 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7703 if test -n "$file_magic_test_file"; then
7704 case $deplibs_check_method in
7706 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7709 $EGREP "$file_magic_regex" > /dev/null; then
7714 *** Warning: the command libtool uses to detect shared libraries,
7715 *** $file_magic_cmd, produces output that libtool cannot recognize.
7716 *** The result is that libtool may fail to recognize shared libraries
7717 *** as such. This will affect the creation of libtool libraries that
7718 *** depend on shared libraries, but programs linked with such libtool
7719 *** libraries will work regardless of this problem. Nevertheless, you
7720 *** may want to report the problem to your system manager and/or to
7721 *** bug-libtool@gnu.org
7731 MAGIC_CMD="$lt_save_MAGIC_CMD"
7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7737 if test -n "$MAGIC_CMD"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7739 $as_echo "$MAGIC_CMD" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7755 # Use C for the default configuration in the libtool script
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765 # Source file extension for C test sources.
7768 # Object file extension for compiled C test sources.
7772 # Code to be used in simple compile tests
7773 lt_simple_compile_test_code="int some_variable = 0;"
7775 # Code to be used in simple link tests
7776 lt_simple_link_test_code='int main(){return(0);}'
7784 # If no C compiler was specified, use CC.
7787 # If no C compiler flags were specified, use CFLAGS.
7788 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7790 # Allow CC to be a program name with arguments.
7793 # Save the default compiler, since it gets overwritten when the other
7794 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7795 compiler_DEFAULT=$CC
7797 # save warnings/boilerplate of simple test code
7798 ac_outfile=conftest.$ac_objext
7799 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7800 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7801 _lt_compiler_boilerplate=`cat conftest.err`
7804 ac_outfile=conftest.$ac_objext
7805 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7806 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7807 _lt_linker_boilerplate=`cat conftest.err`
7812 ## There is no encapsulation within the following macros, do not change
7813 ## the running order or otherwise move them around unless you know exactly
7814 ## what you are doing...
7815 if test -n "$compiler"; then
7817 lt_prog_compiler_no_builtin_flag=
7819 if test "$GCC" = yes; then
7820 case $cc_basename in
7822 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7824 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7828 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7829 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7830 $as_echo_n "(cached) " >&6
7832 lt_cv_prog_compiler_rtti_exceptions=no
7833 ac_outfile=conftest.$ac_objext
7834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835 lt_compiler_flag="-fno-rtti -fno-exceptions"
7836 # Insert the option either (1) after the last *FLAGS variable, or
7837 # (2) before a word containing "conftest.", or (3) at the end.
7838 # Note that $ac_compile itself does not contain backslashes and begins
7839 # with a dollar sign (not a hyphen), so the echo should work correctly.
7840 # The option is referenced via a variable to avoid confusing sed.
7841 lt_compile=`echo "$ac_compile" | $SED \
7842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844 -e 's:$: $lt_compiler_flag:'`
7845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7846 (eval "$lt_compile" 2>conftest.err)
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 if (exit $ac_status) && test -s "$ac_outfile"; then
7851 # The compiler can only warn and ignore the option if not recognized
7852 # So say no if there are warnings other than the usual output.
7853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856 lt_cv_prog_compiler_rtti_exceptions=yes
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7863 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7865 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7866 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7878 lt_prog_compiler_wl=
7879 lt_prog_compiler_pic=
7880 lt_prog_compiler_static=
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7883 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7885 if test "$GCC" = yes; then
7886 lt_prog_compiler_wl='-Wl,'
7887 lt_prog_compiler_static='-static'
7891 # All AIX code is PIC.
7892 if test "$host_cpu" = ia64; then
7893 # AIX 5 now supports IA64 processor
7894 lt_prog_compiler_static='-Bstatic'
7901 # see comment about AmigaOS4 .so support
7902 lt_prog_compiler_pic='-fPIC'
7905 # FIXME: we need at least 68020 code to build shared libraries, but
7906 # adding the `-m68020' flag to GCC prevents building anything better,
7908 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7914 # PIC is the default for these OSes.
7917 mingw* | cygwin* | pw32* | os2* | cegcc*)
7918 # This hack is so that the source file can tell whether it is being
7919 # built for inclusion in a dll (and should export symbols for example).
7920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7921 # (--disable-auto-import) libraries
7922 lt_prog_compiler_pic='-DDLL_EXPORT'
7925 darwin* | rhapsody*)
7926 # PIC is the default on this platform
7927 # Common symbols not allowed in MH_DYLIB files
7928 lt_prog_compiler_pic='-fno-common'
7932 # PIC is the default for Haiku.
7933 # The "-static" flag exists, but is broken.
7934 lt_prog_compiler_static=
7938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7940 # sets the default TLS model and affects inlining.
7946 lt_prog_compiler_pic='-fPIC'
7952 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7953 # Instead, we relocate shared libraries at runtime.
7957 # Just because we use GCC doesn't mean we suddenly get shared libraries
7958 # on systems that don't support them.
7959 lt_prog_compiler_can_build_shared=no
7964 # QNX uses GNU C++, but need to define -shared option too, otherwise
7966 lt_prog_compiler_pic='-fPIC -shared'
7970 if test -d /usr/nec; then
7971 lt_prog_compiler_pic=-Kconform_pic
7976 lt_prog_compiler_pic='-fPIC'
7980 case $cc_basename in
7981 nvcc*) # Cuda Compiler Driver 2.2
7982 lt_prog_compiler_wl='-Xlinker '
7983 lt_prog_compiler_pic='-Xcompiler -fPIC'
7987 # PORTME Check for flag to pass linker flags through the system compiler.
7990 lt_prog_compiler_wl='-Wl,'
7991 if test "$host_cpu" = ia64; then
7992 # AIX 5 now supports IA64 processor
7993 lt_prog_compiler_static='-Bstatic'
7995 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7999 mingw* | cygwin* | pw32* | os2* | cegcc*)
8000 # This hack is so that the source file can tell whether it is being
8001 # built for inclusion in a dll (and should export symbols for example).
8002 lt_prog_compiler_pic='-DDLL_EXPORT'
8005 hpux9* | hpux10* | hpux11*)
8006 lt_prog_compiler_wl='-Wl,'
8007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8014 lt_prog_compiler_pic='+Z'
8017 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8018 lt_prog_compiler_static='${wl}-a ${wl}archive'
8021 irix5* | irix6* | nonstopux*)
8022 lt_prog_compiler_wl='-Wl,'
8023 # PIC (with -KPIC) is the default.
8024 lt_prog_compiler_static='-non_shared'
8027 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8028 case $cc_basename in
8029 # old Intel for x86_64 which still supported -KPIC.
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-KPIC'
8033 lt_prog_compiler_static='-static'
8035 # icc used to be incompatible with GCC.
8036 # ICC 10 doesn't accept -KPIC any more.
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_pic='-fPIC'
8040 lt_prog_compiler_static='-static'
8042 # Lahey Fortran 8.1.
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='--shared'
8046 lt_prog_compiler_static='--static'
8048 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8049 # Portland Group compilers (*not* the Pentium gcc compiler,
8050 # which looks to be a dead project)
8051 lt_prog_compiler_wl='-Wl,'
8052 lt_prog_compiler_pic='-fpic'
8053 lt_prog_compiler_static='-Bstatic'
8056 lt_prog_compiler_wl='-Wl,'
8057 # All Alpha code is PIC.
8058 lt_prog_compiler_static='-non_shared'
8060 xl* | bgxl* | bgf* | mpixl*)
8061 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_pic='-qpic'
8064 lt_prog_compiler_static='-qstaticlink'
8067 case `$CC -V 2>&1 | sed 5q` in
8068 *Sun\ F* | *Sun*Fortran*)
8069 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8072 lt_prog_compiler_wl=''
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8078 lt_prog_compiler_wl='-Wl,'
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-Bstatic'
8091 # QNX uses GNU C++, but need to define -shared option too, otherwise
8093 lt_prog_compiler_pic='-fPIC -shared'
8096 osf3* | osf4* | osf5*)
8097 lt_prog_compiler_wl='-Wl,'
8098 # All OSF/1 code is PIC.
8099 lt_prog_compiler_static='-non_shared'
8103 lt_prog_compiler_static='-non_shared'
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 case $cc_basename in
8110 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8111 lt_prog_compiler_wl='-Qoption ld ';;
8113 lt_prog_compiler_wl='-Wl,';;
8118 lt_prog_compiler_wl='-Qoption ld '
8119 lt_prog_compiler_pic='-PIC'
8120 lt_prog_compiler_static='-Bstatic'
8123 sysv4 | sysv4.2uw2* | sysv4.3*)
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8130 if test -d /usr/nec ;then
8131 lt_prog_compiler_pic='-Kconform_pic'
8132 lt_prog_compiler_static='-Bstatic'
8136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8137 lt_prog_compiler_wl='-Wl,'
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_can_build_shared=no
8148 lt_prog_compiler_pic='-pic'
8149 lt_prog_compiler_static='-Bstatic'
8153 lt_prog_compiler_can_build_shared=no
8159 # For platforms which do not support PIC, -DPIC is meaningless:
8161 lt_prog_compiler_pic=
8164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8168 $as_echo "$lt_prog_compiler_pic" >&6; }
8176 # Check to make sure the PIC flag actually works.
8178 if test -n "$lt_prog_compiler_pic"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8181 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8182 $as_echo_n "(cached) " >&6
8184 lt_cv_prog_compiler_pic_works=no
8185 ac_outfile=conftest.$ac_objext
8186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8188 # Insert the option either (1) after the last *FLAGS variable, or
8189 # (2) before a word containing "conftest.", or (3) at the end.
8190 # Note that $ac_compile itself does not contain backslashes and begins
8191 # with a dollar sign (not a hyphen), so the echo should work correctly.
8192 # The option is referenced via a variable to avoid confusing sed.
8193 lt_compile=`echo "$ac_compile" | $SED \
8194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196 -e 's:$: $lt_compiler_flag:'`
8197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8198 (eval "$lt_compile" 2>conftest.err)
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 if (exit $ac_status) && test -s "$ac_outfile"; then
8203 # The compiler can only warn and ignore the option if not recognized
8204 # So say no if there are warnings other than the usual output.
8205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208 lt_cv_prog_compiler_pic_works=yes
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8218 case $lt_prog_compiler_pic in
8220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8223 lt_prog_compiler_pic=
8224 lt_prog_compiler_can_build_shared=no
8235 # Check to make sure the static flag actually works.
8237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8239 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8240 if ${lt_cv_prog_compiler_static_works+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 lt_cv_prog_compiler_static_works=no
8244 save_LDFLAGS="$LDFLAGS"
8245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8248 # The linker can only warn and ignore the option if not recognized
8249 # So say no if there are warnings
8250 if test -s conftest.err; then
8251 # Append any errors to the config.log.
8252 cat conftest.err 1>&5
8253 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255 if diff conftest.exp conftest.er2 >/dev/null; then
8256 lt_cv_prog_compiler_static_works=yes
8259 lt_cv_prog_compiler_static_works=yes
8263 LDFLAGS="$save_LDFLAGS"
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8269 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8272 lt_prog_compiler_static=
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8283 if ${lt_cv_prog_compiler_c_o+:} false; then :
8284 $as_echo_n "(cached) " >&6
8286 lt_cv_prog_compiler_c_o=no
8287 $RM -r conftest 2>/dev/null
8291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8293 lt_compiler_flag="-o out/conftest2.$ac_objext"
8294 # Insert the option either (1) after the last *FLAGS variable, or
8295 # (2) before a word containing "conftest.", or (3) at the end.
8296 # Note that $ac_compile itself does not contain backslashes and begins
8297 # with a dollar sign (not a hyphen), so the echo should work correctly.
8298 lt_compile=`echo "$ac_compile" | $SED \
8299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301 -e 's:$: $lt_compiler_flag:'`
8302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8303 (eval "$lt_compile" 2>out/conftest.err)
8305 cat out/conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8309 # The compiler can only warn and ignore the option if not recognized
8310 # So say no if there are warnings
8311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314 lt_cv_prog_compiler_c_o=yes
8319 # SGI C++ compiler will create directory out/ii_files/ for
8320 # template instantiation
8321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8322 $RM out/* && rmdir out
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8329 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8338 if ${lt_cv_prog_compiler_c_o+:} false; then :
8339 $as_echo_n "(cached) " >&6
8341 lt_cv_prog_compiler_c_o=no
8342 $RM -r conftest 2>/dev/null
8346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348 lt_compiler_flag="-o out/conftest2.$ac_objext"
8349 # Insert the option either (1) after the last *FLAGS variable, or
8350 # (2) before a word containing "conftest.", or (3) at the end.
8351 # Note that $ac_compile itself does not contain backslashes and begins
8352 # with a dollar sign (not a hyphen), so the echo should work correctly.
8353 lt_compile=`echo "$ac_compile" | $SED \
8354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356 -e 's:$: $lt_compiler_flag:'`
8357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8358 (eval "$lt_compile" 2>out/conftest.err)
8360 cat out/conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364 # The compiler can only warn and ignore the option if not recognized
8365 # So say no if there are warnings
8366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8369 lt_cv_prog_compiler_c_o=yes
8374 # SGI C++ compiler will create directory out/ii_files/ for
8375 # template instantiation
8376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8377 $RM out/* && rmdir out
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391 # do not overwrite the value of need_locks provided by the user
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8393 $as_echo_n "checking if we can lock with hard links... " >&6; }
8396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8398 ln conftest.a conftest.b 2>&5 || hard_links=no
8399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8401 $as_echo "$hard_links" >&6; }
8402 if test "$hard_links" = no; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8420 allow_undefined_flag=
8421 always_export_symbols=no
8423 archive_expsym_cmds=
8424 compiler_needs_object=no
8425 enable_shared_with_static_runtimes=no
8426 export_dynamic_flag_spec=
8427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8428 hardcode_automatic=no
8430 hardcode_direct_absolute=no
8431 hardcode_libdir_flag_spec=
8432 hardcode_libdir_flag_spec_ld=
8433 hardcode_libdir_separator=
8435 hardcode_shlibpath_var=unsupported
8437 link_all_deplibs=unknown
8440 old_archive_from_new_cmds=
8441 old_archive_from_expsyms_cmds=
8442 thread_safe_flag_spec=
8443 whole_archive_flag_spec=
8444 # include_expsyms should be a list of space-separated symbols to be *always*
8445 # included in the symbol list
8447 # exclude_expsyms can be an extended regexp of symbols to exclude
8448 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450 # as well as any symbol that contains `d'.
8451 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453 # platforms (ab)use it in PIC code, but their linkers get confused if
8454 # the symbol is explicitly referenced. Since portable code cannot
8455 # rely on this symbol name, it's probably fine to never include it in
8456 # preloaded symbol tables.
8457 # Exclude shared library initialization/finalization symbols.
8458 extract_expsyms_cmds=
8461 cygwin* | mingw* | pw32* | cegcc*)
8462 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463 # When not using gcc, we currently assume that we are using
8464 # Microsoft Visual C++.
8465 if test "$GCC" != yes; then
8470 # we just hope/assume this is gcc and not c89 (= MSVC++)
8480 # On some targets, GNU ld is compatible enough with the native linker
8481 # that we're better off using the native interface for both.
8482 lt_use_gnu_ld_interface=no
8483 if test "$with_gnu_ld" = yes; then
8486 # The AIX port of GNU ld has always aspired to compatibility
8487 # with the native linker. However, as the warning in the GNU ld
8488 # block says, versions before 2.19.5* couldn't really create working
8489 # shared libraries, regardless of the interface used.
8490 case `$LD -v 2>&1` in
8491 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8492 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8493 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8495 lt_use_gnu_ld_interface=yes
8500 lt_use_gnu_ld_interface=yes
8505 if test "$lt_use_gnu_ld_interface" = yes; then
8506 # If archive_cmds runs LD, not CC, wlarc should be empty
8509 # Set some defaults for GNU ld with shared library support. These
8510 # are reset later if shared libraries are not supported. Putting them
8511 # here allows them to be overridden if necessary.
8512 runpath_var=LD_RUN_PATH
8513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514 export_dynamic_flag_spec='${wl}--export-dynamic'
8515 # ancient GNU ld didn't support --whole-archive et. al.
8516 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8517 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8519 whole_archive_flag_spec=
8521 supports_anon_versioning=no
8522 case `$LD -v 2>&1` in
8523 *GNU\ gold*) supports_anon_versioning=yes ;;
8524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8527 *\ 2.11.*) ;; # other 2.11 versions
8528 *) supports_anon_versioning=yes ;;
8531 # See if GNU ld supports shared libraries.
8534 # On AIX/PPC, the GNU linker is very broken
8535 if test "$host_cpu" != ia64; then
8539 *** Warning: the GNU linker, at least up to release 2.19, is reported
8540 *** to be unable to reliably create shared libraries on AIX.
8541 *** Therefore, libtool is disabling shared libraries support. If you
8542 *** really care for shared libraries, you may want to install binutils
8543 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8544 *** You will then need to restart the configuration process.
8553 # see comment about AmigaOS4 .so support
8554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8555 archive_expsym_cmds=''
8558 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)'
8559 hardcode_libdir_flag_spec='-L$libdir'
8560 hardcode_minus_L=yes
8566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567 allow_undefined_flag=unsupported
8568 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8569 # support --undefined. This deserves some investigation. FIXME
8570 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 cygwin* | mingw* | pw32* | cegcc*)
8577 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8578 # as there is no search path for DLLs.
8579 hardcode_libdir_flag_spec='-L$libdir'
8580 export_dynamic_flag_spec='${wl}--export-all-symbols'
8581 allow_undefined_flag=unsupported
8582 always_export_symbols=no
8583 enable_shared_with_static_runtimes=yes
8584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8586 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8588 # If the export-symbols file already is a .def file (1st line
8589 # is EXPORTS), use it as is; otherwise, prepend...
8590 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8591 cp $export_symbols $output_objdir/$soname.def;
8593 echo EXPORTS > $output_objdir/$soname.def;
8594 cat $export_symbols >> $output_objdir/$soname.def;
8596 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604 link_all_deplibs=yes
8609 hardcode_shlibpath_var=no
8610 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8611 export_dynamic_flag_spec='${wl}-E'
8612 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8613 # Instead, shared libraries are loaded at an image base (0x10000000 by
8614 # default) and relocated if they conflict, which is a slow very memory
8615 # consuming and fragmenting process. To avoid this, we pick a random,
8616 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8617 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8618 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8619 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'
8622 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8624 if test "$host_os" = linux-dietlibc; then
8625 case $cc_basename in
8626 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8629 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8630 && test "$tmp_diet" = no
8633 tmp_sharedflag='-shared'
8634 case $cc_basename,$host_cpu in
8635 pgcc*) # Portland Group C compiler
8636 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'
8637 tmp_addflag=' $pic_flag'
8639 pgf77* | pgf90* | pgf95* | pgfortran*)
8640 # Portland Group f77 and f90 compilers
8641 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'
8642 tmp_addflag=' $pic_flag -Mnomain' ;;
8643 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8644 tmp_addflag=' -i_dynamic' ;;
8645 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8646 tmp_addflag=' -i_dynamic -nofor_main' ;;
8647 ifc* | ifort*) # Intel Fortran compiler
8648 tmp_addflag=' -nofor_main' ;;
8649 lf95*) # Lahey Fortran 8.1
8650 whole_archive_flag_spec=
8651 tmp_sharedflag='--shared' ;;
8652 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8653 tmp_sharedflag='-qmkshrobj'
8655 nvcc*) # Cuda Compiler Driver 2.2
8656 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'
8657 compiler_needs_object=yes
8660 case `$CC -V 2>&1 | sed 5q` in
8661 *Sun\ C*) # Sun C 5.9
8662 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'
8663 compiler_needs_object=yes
8664 tmp_sharedflag='-G' ;;
8665 *Sun\ F*) # Sun Fortran 8.3
8666 tmp_sharedflag='-G' ;;
8668 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 if test "x$supports_anon_versioning" = xyes; then
8671 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673 echo "local: *; };" >> $output_objdir/$libname.ver~
8674 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8677 case $cc_basename in
8678 xlf* | bgf* | bgxlf* | mpixlf*)
8679 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8680 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8681 hardcode_libdir_flag_spec=
8682 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8683 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8684 if test "x$supports_anon_versioning" = xyes; then
8685 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687 echo "local: *; };" >> $output_objdir/$libname.ver~
8688 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8699 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems. Therefore, libtool
8714 *** is disabling shared libraries support. We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer. Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8720 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
8728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8729 case `$LD -v 2>&1` in
8730 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems. Therefore, libtool
8736 *** is disabling shared libraries support. We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8744 # For security reasons, it is highly recommended that you always
8745 # use absolute paths for naming shared libraries, and exclude the
8746 # DT_RUNPATH tag from executables and libraries. But doing so
8747 # requires that you compile everything twice, which is a pain.
8748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_shlibpath_var=no
8767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776 if test "$ld_shlibs" = no; then
8778 hardcode_libdir_flag_spec=
8779 export_dynamic_flag_spec=
8780 whole_archive_flag_spec=
8783 # PORTME fill in a description of your system's linker (not GNU ld)
8786 allow_undefined_flag=unsupported
8787 always_export_symbols=yes
8788 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'
8789 # Note: this linker hardcodes the directories in LIBPATH if there
8790 # are no directories specified by -L.
8791 hardcode_minus_L=yes
8792 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793 # Neither direct hardcoding nor static linking is supported with a
8795 hardcode_direct=unsupported
8800 if test "$host_cpu" = ia64; then
8801 # On IA64, the linker does run time linking by default, so we don't
8802 # have to do anything special.
8803 aix_use_runtimelinking=no
8804 exp_sym_flag='-Bexport'
8807 # If we're using GNU nm, then we don't want the "-C" option.
8808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809 # Also, AIX nm treats weak defined symbols like other global
8810 # defined symbols, whereas GNU nm marks them as "W".
8811 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8812 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'
8814 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'
8816 aix_use_runtimelinking=no
8818 # Test if we are trying to use run time linking or normal
8819 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8820 # need to do runtime linking.
8821 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8822 for ld_flag in $LDFLAGS; do
8823 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8824 aix_use_runtimelinking=yes
8831 exp_sym_flag='-bexport'
8832 no_entry_flag='-bnoentry'
8835 # When large executables or shared objects are built, AIX ld can
8836 # have problems creating the table of contents. If linking a library
8837 # or program results in "error TOC overflow" add -mminimal-toc to
8838 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8839 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8843 hardcode_direct_absolute=yes
8844 hardcode_libdir_separator=':'
8845 link_all_deplibs=yes
8846 file_list_spec='${wl}-f,'
8848 if test "$GCC" = yes; then
8849 case $host_os in aix4.[012]|aix4.[012].*)
8850 # We only want to do this on AIX 4.2 and lower, the check
8851 # below for broken collect2 doesn't work under 4.3+
8852 collect2name=`${CC} -print-prog-name=collect2`
8853 if test -f "$collect2name" &&
8854 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8856 # We have reworked collect2
8859 # We have old collect2
8860 hardcode_direct=unsupported
8861 # It fails to find uninstalled libraries when the uninstalled
8862 # path is not listed in the libpath. Setting hardcode_minus_L
8863 # to unsupported forces relinking
8864 hardcode_minus_L=yes
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_libdir_separator=
8870 shared_flag='-shared'
8871 if test "$aix_use_runtimelinking" = yes; then
8872 shared_flag="$shared_flag "'${wl}-G'
8876 if test "$host_cpu" = ia64; then
8877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8878 # chokes on -Wl,-G. The following line is correct:
8881 if test "$aix_use_runtimelinking" = yes; then
8882 shared_flag='${wl}-G'
8884 shared_flag='${wl}-bM:SRE'
8889 export_dynamic_flag_spec='${wl}-bexpall'
8890 # It seems that -bexpall does not export symbols beginning with
8891 # underscore (_), so it is better to generate a list of symbols to export.
8892 always_export_symbols=yes
8893 if test "$aix_use_runtimelinking" = yes; then
8894 # Warning - without using the other runtime loading flags (-brtl),
8895 # -berok will link without error, but may produce a broken library.
8896 allow_undefined_flag='-berok'
8897 # Determine the default libpath from the value encoded in an
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8910 if ac_fn_c_try_link "$LINENO"; then :
8912 lt_aix_libpath_sed='
8913 /Import File Strings/,/^$/ {
8919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8920 # Check for a 64-bit object if we didn't find anything.
8921 if test -z "$aix_libpath"; then
8922 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8925 rm -f core conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8930 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"
8932 if test "$host_cpu" = ia64; then
8933 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8934 allow_undefined_flag="-z nodefs"
8935 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"
8937 # Determine the default libpath from the value encoded in an
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8950 if ac_fn_c_try_link "$LINENO"; 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 rm -f core conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext conftest.$ac_ext
8967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8969 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8970 # Warning - without using the other run time loading flags,
8971 # -berok will link without error, but may produce a broken library.
8972 no_undefined_flag=' ${wl}-bernotok'
8973 allow_undefined_flag=' ${wl}-berok'
8974 if test "$with_gnu_ld" = yes; then
8975 # We only use this code for GNU lds that support --whole-archive.
8976 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8978 # Exported symbols can be pulled into shared objects from archives
8979 whole_archive_flag_spec='$convenience'
8981 archive_cmds_need_lc=yes
8982 # This is similar to how AIX traditionally builds its shared libraries.
8983 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'
8991 # see comment about AmigaOS4 .so support
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993 archive_expsym_cmds=''
8996 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)'
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 hardcode_minus_L=yes
9004 export_dynamic_flag_spec=-rdynamic
9007 cygwin* | mingw* | pw32* | cegcc*)
9008 # When not using gcc, we currently assume that we are using
9009 # Microsoft Visual C++.
9010 # hardcode_libdir_flag_spec is actually meaningless, as there is
9011 # no search path for DLLs.
9012 hardcode_libdir_flag_spec=' '
9013 allow_undefined_flag=unsupported
9014 # Tell ltmain to make .lib files, not .a files.
9016 # Tell ltmain to make .dll files, not .so files.
9018 # FIXME: Setting linknames here is a bad hack.
9019 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9020 # The linker will automatically build a .lib file if we build a DLL.
9021 old_archive_from_new_cmds='true'
9022 # FIXME: Should let the user specify the lib program.
9023 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9024 fix_srcfile_path='`cygpath -w "$srcfile"`'
9025 enable_shared_with_static_runtimes=yes
9028 darwin* | rhapsody*)
9031 archive_cmds_need_lc=no
9033 hardcode_automatic=yes
9034 hardcode_shlibpath_var=unsupported
9035 if test "$lt_cv_ld_force_load" = "yes"; then
9036 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\"`'
9038 whole_archive_flag_spec=''
9040 link_all_deplibs=yes
9041 allow_undefined_flag="$_lt_dar_allow_undefined"
9042 case $cc_basename in
9043 ifort*) _lt_dar_can_shared=yes ;;
9044 *) _lt_dar_can_shared=$GCC ;;
9046 if test "$_lt_dar_can_shared" = "yes"; then
9047 output_verbose_link_cmd=func_echo_all
9048 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9049 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9050 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}"
9051 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}"
9060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_shlibpath_var=no
9069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9070 # support. Future versions do this automatically, but an explicit c++rt0.o
9071 # does not break anything, and helps significantly (at the cost of a little
9074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9075 hardcode_libdir_flag_spec='-R$libdir'
9077 hardcode_shlibpath_var=no
9080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_minus_L=yes
9085 hardcode_shlibpath_var=no
9088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9089 freebsd* | dragonfly*)
9090 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9091 hardcode_libdir_flag_spec='-R$libdir'
9093 hardcode_shlibpath_var=no
9097 if test "$GCC" = yes; then
9098 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'
9100 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'
9102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103 hardcode_libdir_separator=:
9106 # hardcode_minus_L: Not really in the search PATH,
9107 # but as the default location of the library.
9108 hardcode_minus_L=yes
9109 export_dynamic_flag_spec='${wl}-E'
9113 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9116 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9118 if test "$with_gnu_ld" = no; then
9119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9120 hardcode_libdir_flag_spec_ld='+b $libdir'
9121 hardcode_libdir_separator=:
9123 hardcode_direct_absolute=yes
9124 export_dynamic_flag_spec='${wl}-E'
9125 # hardcode_minus_L: Not really in the search PATH,
9126 # but as the default location of the library.
9127 hardcode_minus_L=yes
9132 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9135 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9138 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9141 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9147 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9154 # Older versions of the 11.00 compiler do not understand -b yet
9155 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9157 $as_echo_n "checking if $CC understands -b... " >&6; }
9158 if ${lt_cv_prog_compiler__b+:} false; then :
9159 $as_echo_n "(cached) " >&6
9161 lt_cv_prog_compiler__b=no
9162 save_LDFLAGS="$LDFLAGS"
9163 LDFLAGS="$LDFLAGS -b"
9164 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9166 # The linker can only warn and ignore the option if not recognized
9167 # So say no if there are warnings
9168 if test -s conftest.err; then
9169 # Append any errors to the config.log.
9170 cat conftest.err 1>&5
9171 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173 if diff conftest.exp conftest.er2 >/dev/null; then
9174 lt_cv_prog_compiler__b=yes
9177 lt_cv_prog_compiler__b=yes
9181 LDFLAGS="$save_LDFLAGS"
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9185 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9187 if test x"$lt_cv_prog_compiler__b" = xyes; then
9188 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196 if test "$with_gnu_ld" = no; then
9197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198 hardcode_libdir_separator=:
9203 hardcode_shlibpath_var=no
9207 hardcode_direct_absolute=yes
9208 export_dynamic_flag_spec='${wl}-E'
9210 # hardcode_minus_L: Not really in the search PATH,
9211 # but as the default location of the library.
9212 hardcode_minus_L=yes
9218 irix5* | irix6* | nonstopux*)
9219 if test "$GCC" = yes; then
9220 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'
9221 # Try to use the -exported_symbol ld option, if it does not
9222 # work, assume that -exports_file does not work either and
9223 # implicitly export all symbols.
9224 save_LDFLAGS="$LDFLAGS"
9225 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9230 if ac_fn_c_try_link "$LINENO"; then :
9231 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'
9234 rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 LDFLAGS="$save_LDFLAGS"
9238 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'
9239 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'
9241 archive_cmds_need_lc='no'
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243 hardcode_libdir_separator=:
9245 link_all_deplibs=yes
9249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9252 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9254 hardcode_libdir_flag_spec='-R$libdir'
9256 hardcode_shlibpath_var=no
9260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263 hardcode_libdir_separator=:
9264 hardcode_shlibpath_var=no
9271 if test -f /usr/libexec/ld.so; then
9273 hardcode_shlibpath_var=no
9274 hardcode_direct_absolute=yes
9275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9277 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9279 export_dynamic_flag_spec='${wl}-E'
9282 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9284 hardcode_libdir_flag_spec='-R$libdir'
9287 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_minus_L=yes
9300 allow_undefined_flag=unsupported
9301 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'
9302 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9306 if test "$GCC" = yes; then
9307 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9308 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'
9310 allow_undefined_flag=' -expect_unresolved \*'
9311 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'
9313 archive_cmds_need_lc='no'
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315 hardcode_libdir_separator=:
9318 osf4* | osf5*) # as osf3* with the addition of -msym flag
9319 if test "$GCC" = yes; then
9320 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9321 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'
9322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 allow_undefined_flag=' -expect_unresolved \*'
9325 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'
9326 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~
9327 $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'
9329 # Both c and cxx compiler support -rpath directly
9330 hardcode_libdir_flag_spec='-rpath $libdir'
9332 archive_cmds_need_lc='no'
9333 hardcode_libdir_separator=:
9337 no_undefined_flag=' -z defs'
9338 if test "$GCC" = yes; then
9340 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9342 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9344 case `$CC -V 2>&1` in
9347 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9353 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9355 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9359 hardcode_libdir_flag_spec='-R$libdir'
9360 hardcode_shlibpath_var=no
9362 solaris2.[0-5] | solaris2.[0-5].*) ;;
9364 # The compiler driver will combine and reorder linker options,
9365 # but understands `-z linker_flag'. GCC discards it without `$wl',
9366 # but is careful enough not to reorder.
9367 # Supported since Solaris 2.6 (maybe 2.5.1?)
9368 if test "$GCC" = yes; then
9369 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9371 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9375 link_all_deplibs=yes
9379 if test "x$host_vendor" = xsequent; then
9380 # Use $CC to link under sequent, because it throws in some extra .o
9381 # files that make .init and .fini sections work.
9382 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_minus_L=yes
9389 hardcode_shlibpath_var=no
9393 case $host_vendor in
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_direct=yes # is this really true???
9399 ## LD is ld it makes a PLAMLIB
9400 ## CC just makes a GrossModule.
9401 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9402 reload_cmds='$CC -r -o $output$reload_objs'
9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9410 runpath_var='LD_RUN_PATH'
9411 hardcode_shlibpath_var=no
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_shlibpath_var=no
9417 export_dynamic_flag_spec='-Bexport'
9421 if test -d /usr/nec; then
9422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_shlibpath_var=no
9424 runpath_var=LD_RUN_PATH
9425 hardcode_runpath_var=yes
9430 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9431 no_undefined_flag='${wl}-z,text'
9432 archive_cmds_need_lc=no
9433 hardcode_shlibpath_var=no
9434 runpath_var='LD_RUN_PATH'
9436 if test "$GCC" = yes; then
9437 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 sysv5* | sco3.2v5* | sco5v6*)
9446 # Note: We can NOT use -z defs as we might desire, because we do not
9447 # link with -lc, and that would cause any symbols used from libc to
9448 # always be unresolved, which means just about no library would
9449 # ever link correctly. If we're not using GNU ld we use -z text
9450 # though, which does catch some bad symbols but isn't as heavy-handed
9452 no_undefined_flag='${wl}-z,text'
9453 allow_undefined_flag='${wl}-z,nodefs'
9454 archive_cmds_need_lc=no
9455 hardcode_shlibpath_var=no
9456 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9457 hardcode_libdir_separator=':'
9458 link_all_deplibs=yes
9459 export_dynamic_flag_spec='${wl}-Bexport'
9460 runpath_var='LD_RUN_PATH'
9462 if test "$GCC" = yes; then
9463 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_shlibpath_var=no
9482 if test x$host_vendor = xsni; then
9484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9485 export_dynamic_flag_spec='${wl}-Blargedynsym'
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9492 $as_echo "$ld_shlibs" >&6; }
9493 test "$ld_shlibs" = no && can_build_shared=no
9495 with_gnu_ld=$with_gnu_ld
9512 # Do we need to explicitly link libc?
9514 case "x$archive_cmds_need_lc" in
9516 # Assume -lc should be added
9517 archive_cmds_need_lc=yes
9519 if test "$enable_shared" = yes && test "$GCC" = yes; then
9520 case $archive_cmds in
9522 # FIXME: we may have to deal with multi-command sequences.
9525 # Test whether the compiler implicitly links with -lc since on some
9526 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9527 # to ld, don't add -lc before -lgcc.
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9529 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9530 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9531 $as_echo_n "(cached) " >&6
9534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9537 (eval $ac_compile) 2>&5
9539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9540 test $ac_status = 0; } 2>conftest.err; then
9543 libobjs=conftest.$ac_objext
9545 wl=$lt_prog_compiler_wl
9546 pic_flag=$lt_prog_compiler_pic
9552 lt_save_allow_undefined_flag=$allow_undefined_flag
9553 allow_undefined_flag=
9554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9555 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9558 test $ac_status = 0; }
9560 lt_cv_archive_cmds_need_lc=no
9562 lt_cv_archive_cmds_need_lc=yes
9564 allow_undefined_flag=$lt_save_allow_undefined_flag
9566 cat conftest.err 1>&5
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9572 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9573 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9737 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9739 if test "$GCC" = yes; then
9741 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9742 *) lt_awk_arg="/^libraries:/" ;;
9745 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9746 *) lt_sed_strip_eq="s,=/,/,g" ;;
9748 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9749 case $lt_search_path_spec in
9751 # if the path contains ";" then we assume it to be the separator
9752 # otherwise default to the standard path separator (i.e. ":") - it is
9753 # assumed that no part of a normal pathname contains ";" but that should
9754 # okay in the real world where ";" in dirpaths is itself problematic.
9755 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9758 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9761 # Ok, now we have the path, separated by spaces, we can step through it
9762 # and add multilib dir if necessary.
9763 lt_tmp_lt_search_path_spec=
9764 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9765 for lt_sys_path in $lt_search_path_spec; do
9766 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9767 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9769 test -d "$lt_sys_path" && \
9770 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9773 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9774 BEGIN {RS=" "; FS="/|\n";} {
9777 for (lt_i = NF; lt_i > 0; lt_i--) {
9778 if ($lt_i != "" && $lt_i != ".") {
9779 if ($lt_i == "..") {
9782 if (lt_count == 0) {
9783 lt_foo="/" $lt_i lt_foo;
9790 if (lt_foo != "") { lt_freq[lt_foo]++; }
9791 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9793 # AWK program above erroneously prepends '/' to C:/dos/paths
9796 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9797 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9799 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9804 libname_spec='lib$name'
9812 shlibpath_overrides_runpath=unknown
9814 dynamic_linker="$host_os ld.so"
9815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9816 need_lib_prefix=unknown
9817 hardcode_into_libs=no
9819 # when you set need_version to no, make sure it does not cause -set_version
9820 # flags to be left without arguments
9821 need_version=unknown
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9827 shlibpath_var=LIBPATH
9829 # AIX 3 has no versioning support, so we append a major version to the name.
9830 soname_spec='${libname}${release}${shared_ext}$major'
9837 hardcode_into_libs=yes
9838 if test "$host_cpu" = ia64; then
9839 # AIX 5 supports IA64
9840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9841 shlibpath_var=LD_LIBRARY_PATH
9843 # With GCC up to 2.95.x, collect2 would create an import file
9844 # for dependence libraries. The import file would start with
9845 # the line `#! .'. This would cause the generated library to
9846 # depend on `.', always an invalid library. This was fixed in
9847 # development snapshots of GCC prior to 3.0.
9849 aix4 | aix4.[01] | aix4.[01].*)
9850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9852 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9860 # soname into executable. Probably we can add versioning support to
9861 # collect2, so additional links can be useful in future.
9862 if test "$aix_use_runtimelinking" = yes; then
9863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9864 # instead of lib<name>.a to let people know that these are not
9865 # typical AIX shared libraries.
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 # We preserve .a as extension for shared libraries through AIX4.2
9869 # and later when we are not doing run time linking.
9870 library_names_spec='${libname}${release}.a $libname.a'
9871 soname_spec='${libname}${release}${shared_ext}$major'
9873 shlibpath_var=LIBPATH
9880 # Since July 2007 AmigaOS4 officially supports .so libraries.
9881 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885 library_names_spec='$libname.ixlibrary $libname.a'
9886 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9887 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'
9893 library_names_spec='${libname}${shared_ext}'
9894 dynamic_linker="$host_os ld.so"
9895 shlibpath_var=LIBRARY_PATH
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9907 # the default ld.so.conf also contains /usr/contrib/lib and
9908 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9909 # libtool to hard-code these into programs
9912 cygwin* | mingw* | pw32* | cegcc*)
9913 version_type=windows
9918 case $GCC,$host_os in
9919 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9920 library_names_spec='$libname.dll.a'
9921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9922 postinstall_cmds='base_file=`basename \${file}`~
9923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9924 dldir=$destdir/`dirname \$dlpath`~
9925 test -d \$dldir || mkdir -p \$dldir~
9926 $install_prog $dir/$dlname \$dldir/$dlname~
9927 chmod a+x \$dldir/$dlname~
9928 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9929 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9932 dlpath=$dir/\$dldll~
9934 shlibpath_overrides_runpath=yes
9938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9941 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9944 # MinGW DLLs use traditional 'lib' prefix
9945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9948 # pw32 DLLs use 'pw' prefix rather than 'lib'
9949 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9958 dynamic_linker='Win32 ld.exe'
9959 # FIXME: first we should search . and the directory the executable is in
9963 darwin* | rhapsody*)
9964 dynamic_linker="$host_os dyld"
9968 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9969 soname_spec='${libname}${release}${major}$shared_ext'
9970 shlibpath_overrides_runpath=yes
9971 shlibpath_var=DYLD_LIBRARY_PATH
9972 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9974 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9991 freebsd* | dragonfly*)
9992 # DragonFly does not have aout. When/if they implement a new
9993 # versioning mechanism, adjust this.
9994 if test -x /usr/bin/objformat; then
9995 objformat=`/usr/bin/objformat`
9998 freebsd[123]*) objformat=aout ;;
10002 version_type=freebsd-$objformat
10003 case $version_type in
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10014 shlibpath_var=LD_LIBRARY_PATH
10017 shlibpath_overrides_runpath=yes
10019 freebsd3.[01]* | freebsdelf3.[01]*)
10020 shlibpath_overrides_runpath=yes
10021 hardcode_into_libs=yes
10023 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10024 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10025 shlibpath_overrides_runpath=no
10026 hardcode_into_libs=yes
10028 *) # from 4.6 on, and DragonFly
10029 shlibpath_overrides_runpath=yes
10030 hardcode_into_libs=yes
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 hardcode_into_libs=yes
10049 dynamic_linker="$host_os runtime_loader"
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 shlibpath_var=LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10054 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10055 hardcode_into_libs=yes
10058 hpux9* | hpux10* | hpux11*)
10059 # Give a soname corresponding to the major version so that dld.sl refuses to
10060 # link against other versions.
10067 hardcode_into_libs=yes
10068 dynamic_linker="$host_os dld.so"
10069 shlibpath_var=LD_LIBRARY_PATH
10070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072 soname_spec='${libname}${release}${shared_ext}$major'
10073 if test "X$HPUX_IA64_MODE" = X32; then
10074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10082 hardcode_into_libs=yes
10083 dynamic_linker="$host_os dld.sl"
10084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10093 dynamic_linker="$host_os dld.sl"
10094 shlibpath_var=SHLIB_PATH
10095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10100 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10101 postinstall_cmds='chmod 555 $lib'
10102 # or fails outright, so override atomically:
10103 install_override_mode=555
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 shlibpath_overrides_runpath=no
10115 hardcode_into_libs=yes
10118 irix5* | irix6* | nonstopux*)
10120 nonstopux*) version_type=nonstopux ;;
10122 if test "$lt_cv_prog_gnu_ld" = yes; then
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10133 irix5* | nonstopux*)
10134 libsuff= shlibsuff=
10137 case $LD in # libtool.m4 will add one of these switches to LD
10138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10139 libsuff= shlibsuff= libmagic=32-bit;;
10140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10141 libsuff=32 shlibsuff=N32 libmagic=N32;;
10142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10144 *) libsuff= shlibsuff= libmagic=never-match;;
10148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10149 shlibpath_overrides_runpath=no
10150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10152 hardcode_into_libs=yes
10155 # No shared lib support for Linux oldld, aout, or coff.
10156 linux*oldld* | linux*aout* | linux*coff*)
10160 # This must be Linux ELF.
10161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10168 shlibpath_var=LD_LIBRARY_PATH
10169 shlibpath_overrides_runpath=no
10171 # Some binutils ld are patched to set DT_RUNPATH
10172 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10173 $as_echo_n "(cached) " >&6
10175 lt_cv_shlibpath_overrides_runpath=no
10176 save_LDFLAGS=$LDFLAGS
10177 save_libdir=$libdir
10178 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10179 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10191 if ac_fn_c_try_link "$LINENO"; then :
10192 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10193 lt_cv_shlibpath_overrides_runpath=yes
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 LDFLAGS=$save_LDFLAGS
10199 libdir=$save_libdir
10203 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10205 # This implies no fast_install, which is unacceptable.
10206 # Some rework will be needed to allow for fast_install
10207 # before this can be enabled.
10208 hardcode_into_libs=yes
10210 # Append ld.so.conf contents to the search path
10211 if test -f /etc/ld.so.conf; then
10212 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' ' '`
10213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10216 # We used to test for /lib/ld.so.1 and disable shared libraries on
10217 # powerpc, because MkLinux only supported shared libraries with the
10218 # GNU dynamic linker. Since this was broken with cross compilers,
10219 # most powerpc-linux boxes support dynamic linking these days and
10220 # people can always --disable-shared, the test was removed, and we
10221 # assume the GNU/Linux dynamic linker is in use.
10222 dynamic_linker='GNU/Linux ld.so'
10229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10232 dynamic_linker='NetBSD (a.out) ld.so'
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 dynamic_linker='NetBSD ld.elf_so'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=yes
10240 hardcode_into_libs=yes
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 shlibpath_overrides_runpath=yes
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=no
10258 hardcode_into_libs=yes
10259 dynamic_linker='ldqnx.so'
10264 sys_lib_dlsearch_path_spec="/usr/lib"
10266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10268 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10269 *) need_version=no ;;
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10276 openbsd2.[89] | openbsd2.[89].*)
10277 shlibpath_overrides_runpath=no
10280 shlibpath_overrides_runpath=yes
10284 shlibpath_overrides_runpath=yes
10289 libname_spec='$name'
10292 library_names_spec='$libname${shared_ext} $libname.a'
10293 dynamic_linker='OS/2 ld.exe'
10294 shlibpath_var=LIBPATH
10297 osf3* | osf4* | osf5*)
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 shlibpath_overrides_runpath=yes
10320 hardcode_into_libs=yes
10321 # ldd complains unless libraries are executable
10322 postinstall_cmds='chmod +x $lib'
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 if test "$with_gnu_ld" = yes; then
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 case $host_vendor in
10344 shlibpath_overrides_runpath=no
10346 runpath_var=LD_RUN_PATH
10354 shlibpath_overrides_runpath=no
10355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10361 if test -d /usr/nec ;then
10363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10364 soname_spec='$libname${shared_ext}.$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10370 version_type=freebsd-elf
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 shlibpath_overrides_runpath=yes
10377 hardcode_into_libs=yes
10378 if test "$with_gnu_ld" = yes; then
10379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10388 sys_lib_dlsearch_path_spec='/usr/lib'
10392 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=no
10399 hardcode_into_libs=yes
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10414 $as_echo "$dynamic_linker" >&6; }
10415 test "$dynamic_linker" = no && can_build_shared=no
10417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10418 if test "$GCC" = yes; then
10419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10422 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10423 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10425 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10426 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10521 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10523 if test -n "$hardcode_libdir_flag_spec" ||
10524 test -n "$runpath_var" ||
10525 test "X$hardcode_automatic" = "Xyes" ; then
10527 # We can hardcode non-existent directories.
10528 if test "$hardcode_direct" != no &&
10529 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10530 # have to relink, otherwise we might link with an installed library
10531 # when we should be linking with a yet-to-be-installed one
10532 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10533 test "$hardcode_minus_L" != no; then
10534 # Linking always hardcodes the temporary library directory.
10535 hardcode_action=relink
10537 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10538 hardcode_action=immediate
10541 # We cannot hardcode anything, or else we can only hardcode existing
10543 hardcode_action=unsupported
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10546 $as_echo "$hardcode_action" >&6; }
10548 if test "$hardcode_action" = relink ||
10549 test "$inherit_rpath" = yes; then
10550 # Fast installation is not supported
10551 enable_fast_install=no
10552 elif test "$shlibpath_overrides_runpath" = yes ||
10553 test "$enable_shared" = no; then
10554 # Fast installation is not necessary
10555 enable_fast_install=needless
10563 if test "x$enable_dlopen" != xyes; then
10564 enable_dlopen=unknown
10565 enable_dlopen_self=unknown
10566 enable_dlopen_self_static=unknown
10573 lt_cv_dlopen="load_add_on"
10575 lt_cv_dlopen_self=yes
10578 mingw* | pw32* | cegcc*)
10579 lt_cv_dlopen="LoadLibrary"
10584 lt_cv_dlopen="dlopen"
10589 # if libdl is installed we need to link against it
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10592 if ${ac_cv_lib_dl_dlopen+:} false; then :
10593 $as_echo_n "(cached) " >&6
10595 ac_check_lib_save_LIBS=$LIBS
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10600 /* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10615 if ac_fn_c_try_link "$LINENO"; then :
10616 ac_cv_lib_dl_dlopen=yes
10618 ac_cv_lib_dl_dlopen=no
10620 rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10626 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10630 lt_cv_dlopen="dyld"
10632 lt_cv_dlopen_self=yes
10639 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10640 if test "x$ac_cv_func_shl_load" = xyes; then :
10641 lt_cv_dlopen="shl_load"
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10644 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10645 if ${ac_cv_lib_dld_shl_load+:} false; then :
10646 $as_echo_n "(cached) " >&6
10648 ac_check_lib_save_LIBS=$LIBS
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10663 return shl_load ();
10668 if ac_fn_c_try_link "$LINENO"; then :
10669 ac_cv_lib_dld_shl_load=yes
10671 ac_cv_lib_dld_shl_load=no
10673 rm -f core conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10678 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10679 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10680 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10682 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10683 if test "x$ac_cv_func_dlopen" = xyes; then :
10684 lt_cv_dlopen="dlopen"
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10687 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10688 if ${ac_cv_lib_dl_dlopen+:} false; then :
10689 $as_echo_n "(cached) " >&6
10691 ac_check_lib_save_LIBS=$LIBS
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 ac_cv_lib_dl_dlopen=yes
10714 ac_cv_lib_dl_dlopen=no
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10722 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10726 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10727 if ${ac_cv_lib_svld_dlopen+:} false; then :
10728 $as_echo_n "(cached) " >&6
10730 ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-lsvld $LIBS"
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10735 /* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 ac_cv_lib_svld_dlopen=yes
10753 ac_cv_lib_svld_dlopen=no
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10760 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10761 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10765 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10766 if ${ac_cv_lib_dld_dld_link+:} false; then :
10767 $as_echo_n "(cached) " >&6
10769 ac_check_lib_save_LIBS=$LIBS
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10784 return dld_link ();
10789 if ac_fn_c_try_link "$LINENO"; then :
10790 ac_cv_lib_dld_dld_link=yes
10792 ac_cv_lib_dld_dld_link=no
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LIBS=$ac_check_lib_save_LIBS
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10799 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10800 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10801 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10822 if test "x$lt_cv_dlopen" != xno; then
10828 case $lt_cv_dlopen in
10830 save_CPPFLAGS="$CPPFLAGS"
10831 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10833 save_LDFLAGS="$LDFLAGS"
10834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10837 LIBS="$lt_cv_dlopen_libs $LIBS"
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10840 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10841 if ${lt_cv_dlopen_self+:} false; then :
10842 $as_echo_n "(cached) " >&6
10844 if test "$cross_compiling" = yes; then :
10845 lt_cv_dlopen_self=cross
10847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848 lt_status=$lt_dlunknown
10849 cat > conftest.$ac_ext <<_LT_EOF
10850 #line $LINENO "configure"
10851 #include "confdefs.h"
10860 # define LT_DLGLOBAL RTLD_GLOBAL
10863 # define LT_DLGLOBAL DL_GLOBAL
10865 # define LT_DLGLOBAL 0
10869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10870 find out it does not work in some platform. */
10871 #ifndef LT_DLLAZY_OR_NOW
10873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10876 # define LT_DLLAZY_OR_NOW DL_LAZY
10879 # define LT_DLLAZY_OR_NOW RTLD_NOW
10882 # define LT_DLLAZY_OR_NOW DL_NOW
10884 # define LT_DLLAZY_OR_NOW 0
10891 /* When -fvisbility=hidden is used, assume the code has been annotated
10892 correspondingly for the symbols needed. */
10893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10894 void fnord () __attribute__((visibility("default")));
10897 void fnord () { int i=42; }
10900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901 int status = $lt_dlunknown;
10905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10908 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10909 else puts (dlerror ());
10911 /* dlclose (self); */
10919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10920 (eval $ac_link) 2>&5
10922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10924 (./conftest; exit; ) >&5 2>/dev/null
10926 case x$lt_status in
10927 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10928 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10929 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10932 # compilation failed
10933 lt_cv_dlopen_self=no
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10941 $as_echo "$lt_cv_dlopen_self" >&6; }
10943 if test "x$lt_cv_dlopen_self" = xyes; then
10944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10946 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10947 if ${lt_cv_dlopen_self_static+:} false; then :
10948 $as_echo_n "(cached) " >&6
10950 if test "$cross_compiling" = yes; then :
10951 lt_cv_dlopen_self_static=cross
10953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10954 lt_status=$lt_dlunknown
10955 cat > conftest.$ac_ext <<_LT_EOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10966 # define LT_DLGLOBAL RTLD_GLOBAL
10969 # define LT_DLGLOBAL DL_GLOBAL
10971 # define LT_DLGLOBAL 0
10975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10976 find out it does not work in some platform. */
10977 #ifndef LT_DLLAZY_OR_NOW
10979 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10982 # define LT_DLLAZY_OR_NOW DL_LAZY
10985 # define LT_DLLAZY_OR_NOW RTLD_NOW
10988 # define LT_DLLAZY_OR_NOW DL_NOW
10990 # define LT_DLLAZY_OR_NOW 0
10997 /* When -fvisbility=hidden is used, assume the code has been annotated
10998 correspondingly for the symbols needed. */
10999 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11000 void fnord () __attribute__((visibility("default")));
11003 void fnord () { int i=42; }
11006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11007 int status = $lt_dlunknown;
11011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11014 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11015 else puts (dlerror ());
11017 /* dlclose (self); */
11025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11026 (eval $ac_link) 2>&5
11028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11030 (./conftest; exit; ) >&5 2>/dev/null
11032 case x$lt_status in
11033 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11034 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11035 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11038 # compilation failed
11039 lt_cv_dlopen_self_static=no
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11047 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11050 CPPFLAGS="$save_CPPFLAGS"
11051 LDFLAGS="$save_LDFLAGS"
11056 case $lt_cv_dlopen_self in
11057 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11058 *) enable_dlopen_self=unknown ;;
11061 case $lt_cv_dlopen_self_static in
11062 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11063 *) enable_dlopen_self_static=unknown ;;
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11087 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11088 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11089 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11091 $as_echo "yes" >&6; }
11093 # FIXME - insert some real tests, host_os isn't really good enough
11096 if test -n "$STRIP" ; then
11097 striplib="$STRIP -x"
11098 old_striplib="$STRIP -S"
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11100 $as_echo "yes" >&6; }
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11124 # Report which library types will actually be built
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11128 $as_echo "$can_build_shared" >&6; }
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11131 $as_echo_n "checking whether to build shared libraries... " >&6; }
11132 test "$can_build_shared" = "no" && enable_shared=no
11134 # On AIX, shared libraries and static libraries use the same namespace, and
11135 # are all built from PIC.
11138 test "$enable_shared" = yes && enable_static=no
11139 if test -n "$RANLIB"; then
11140 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11141 postinstall_cmds='$RANLIB $lib'
11146 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11147 test "$enable_shared" = yes && enable_static=no
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11152 $as_echo "$enable_shared" >&6; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11155 $as_echo_n "checking whether to build static libraries... " >&6; }
11156 # Make sure either enable_shared or enable_static is yes.
11157 test "$enable_shared" = yes || enable_static=yes
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11159 $as_echo "$enable_static" >&6; }
11166 ac_cpp='$CPP $CPPFLAGS'
11167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11185 ac_config_commands="$ac_config_commands libtool"
11190 # Only expand once:
11194 target=$save_target
11196 if test "$enable_static" = yes; then
11197 SASL_STATIC_LIBS=libsasl2.a
11202 # Check whether --enable-staticdlopen was given.
11203 if test "${enable_staticdlopen+set}" = set; then :
11204 enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
11206 enable_staticdlopen=no
11210 if test "$enable_staticdlopen" = yes; then
11212 $as_echo "#define TRY_DLOPEN_WHEN_STATIC /**/" >>confdefs.h
11216 if test "$ac_cv_c_compiler_gnu" = yes; then
11217 CFLAGS="-Wall -W ${CFLAGS}"
11221 # Check whether --with-purecov was given.
11222 if test "${with_purecov+set}" = set; then :
11223 withval=$with_purecov;
11226 if test "$with_purecov" = yes; then
11227 for ac_prog in purecov
11229 # Extract the first word of "$ac_prog", so it can be a program name with args.
11230 set dummy $ac_prog; ac_word=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_prog_PURECOV+:} false; then :
11234 $as_echo_n "(cached) " >&6
11236 if test -n "$PURECOV"; then
11237 ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
11239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240 for as_dir in $PATH
11243 test -z "$as_dir" && as_dir=.
11244 for ac_exec_ext in '' $ac_executable_extensions; do
11245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11246 ac_cv_prog_PURECOV="$ac_prog"
11247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 PURECOV=$ac_cv_prog_PURECOV
11257 if test -n "$PURECOV"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURECOV" >&5
11259 $as_echo "$PURECOV" >&6; }
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11266 test -n "$PURECOV" && break
11271 # Check whether --with-purify was given.
11272 if test "${with_purify+set}" = set; then :
11273 withval=$with_purify;
11276 if test "$with_purify" = yes; then
11277 for ac_prog in purify
11279 # Extract the first word of "$ac_prog", so it can be a program name with args.
11280 set dummy $ac_prog; ac_word=$2
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282 $as_echo_n "checking for $ac_word... " >&6; }
11283 if ${ac_cv_prog_PURIFY+:} false; then :
11284 $as_echo_n "(cached) " >&6
11286 if test -n "$PURIFY"; then
11287 ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_prog_PURIFY="$ac_prog"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 PURIFY=$ac_cv_prog_PURIFY
11307 if test -n "$PURIFY"; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURIFY" >&5
11309 $as_echo "$PURIFY" >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11316 test -n "$PURIFY" && break
11321 # Check whether --enable-java was given.
11322 if test "${enable_java+set}" = set; then :
11323 enableval=$enable_java; enable_java=$enableval
11328 if test "$enable_java" = yes; then
11329 # Extract the first word of "javac", so it can be a program name with args.
11330 set dummy javac; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if ${ac_cv_path_JAVAC+:} false; then :
11334 $as_echo_n "(cached) " >&6
11338 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11345 test -z "$as_dir" && as_dir=.
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
11360 JAVAC=$ac_cv_path_JAVAC
11361 if test -n "$JAVAC"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
11363 $as_echo "$JAVAC" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11370 for ac_prog in javah kaffeh
11372 # Extract the first word of "$ac_prog", so it can be a program name with args.
11373 set dummy $ac_prog; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_path_JAVAH+:} false; then :
11377 $as_echo_n "(cached) " >&6
11381 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11391 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 JAVAH=$ac_cv_path_JAVAH
11403 if test -n "$JAVAH"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
11405 $as_echo "$JAVAH" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11412 test -n "$JAVAH" && break
11414 test -n "$JAVAH" || JAVAH="no"
11416 for ac_prog in javadoc
11418 # Extract the first word of "$ac_prog", so it can be a program name with args.
11419 set dummy $ac_prog; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if ${ac_cv_prog_JAVADOC+:} false; then :
11423 $as_echo_n "(cached) " >&6
11425 if test -n "$JAVADOC"; then
11426 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
11428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429 for as_dir in $PATH
11432 test -z "$as_dir" && as_dir=.
11433 for ac_exec_ext in '' $ac_executable_extensions; do
11434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11435 ac_cv_prog_JAVADOC="$ac_prog"
11436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 JAVADOC=$ac_cv_prog_JAVADOC
11446 if test -n "$JAVADOC"; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
11448 $as_echo "$JAVADOC" >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11455 test -n "$JAVADOC" && break
11457 test -n "$JAVADOC" || JAVADOC=":"
11459 if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Java support" >&5
11461 $as_echo "$as_me: WARNING: Disabling Java support" >&2;}
11465 # Make distcheck work
11470 if test "$enable_java" = yes; then
11479 if test "$enable_java" = yes; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JNI cpp flags" >&5
11481 $as_echo_n "checking JNI cpp flags... " >&6; }
11482 if ${sasl_cv_java_includes+:} false; then :
11483 $as_echo_n "(cached) " >&6
11486 if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
11487 sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
11489 java_base=`echo $JAVAC | sed 's,/bin.*,'','`
11492 # Check whether --with-javabase was given.
11493 if test "${with_javabase+set}" = set; then :
11494 withval=$with_javabase; java_base=$withval
11499 sasl_cv_java_includes=''
11500 for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
11501 sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
11505 sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
11509 JAVA_INCLUDES=$sasl_cv_java_includes
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11512 $as_echo "ok" >&6; }
11516 JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
11517 JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
11520 if test "$enable_sample" = yes; then
11532 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
11533 if test "x$ac_cv_func_connect" = xyes; then :
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
11537 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11538 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
11539 $as_echo_n "(cached) " >&6
11541 ac_check_lib_save_LIBS=$LIBS
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11552 char gethostbyname ();
11556 return gethostbyname ();
11561 if ac_fn_c_try_link "$LINENO"; then :
11562 ac_cv_lib_nsl_gethostbyname=yes
11564 ac_cv_lib_nsl_gethostbyname=no
11566 rm -f core conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
11571 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
11572 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
11573 LIB_SOCKET="-lnsl $LIB_SOCKET"
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
11577 $as_echo_n "checking for connect in -lsocket... " >&6; }
11578 if ${ac_cv_lib_socket_connect+:} false; then :
11579 $as_echo_n "(cached) " >&6
11581 ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-lsocket $LIBS"
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11601 if ac_fn_c_try_link "$LINENO"; then :
11602 ac_cv_lib_socket_connect=yes
11604 ac_cv_lib_socket_connect=no
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
11611 $as_echo "$ac_cv_lib_socket_connect" >&6; }
11612 if test "x$ac_cv_lib_socket_connect" = xyes; then :
11613 LIB_SOCKET="-lsocket $LIB_SOCKET"
11619 LIBS="$LIB_SOCKET $save_LIBS"
11620 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
11621 if test "x$ac_cv_func_res_search" = xyes; then :
11624 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11628 #include <sys/types.h>
11629 #include <netinet/in.h>
11630 #include <arpa/nameser.h>
11631 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
11632 #include <arpa/nameser_compat.h>
11634 #include <resolv.h>
11639 const char host[12]="openafs.org";
11641 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
11648 if ac_fn_c_try_link "$LINENO"; then :
11649 LIB_SOCKET="-lresolv $LIB_SOCKET"
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11656 LIBS="$LIB_SOCKET $save_LIBS"
11657 for ac_func in dn_expand dns_lookup
11659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11661 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11662 cat >>confdefs.h <<_ACEOF
11663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11675 # Check whether --with-dbpath was given.
11676 if test "${with_dbpath+set}" = set; then :
11677 withval=$with_dbpath; dbpath=$withval
11679 dbpath=/etc/sasldb2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB path to use" >&5
11683 $as_echo_n "checking DB path to use... " >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbpath" >&5
11685 $as_echo "$dbpath" >&6; }
11687 cat >>confdefs.h <<_ACEOF
11688 #define SASL_DB_PATH "$dbpath"
11692 cmu_save_LIBS="$LIBS"
11694 # Check whether --with-dblib was given.
11695 if test "${with_dblib+set}" = set; then :
11696 withval=$with_dblib; dblib=$withval
11704 # Check whether --with-bdb-libdir was given.
11705 if test "${with_bdb_libdir+set}" = set; then :
11706 withval=$with_bdb_libdir; with_bdb_lib=$withval
11708 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
11712 # Check whether --with-bdb-incdir was given.
11713 if test "${with_bdb_incdir+set}" = set; then :
11714 withval=$with_bdb_incdir; with_bdb_inc=$withval
11716 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
11728 cmu_save_CPPFLAGS=$CPPFLAGS
11730 if test -d $with_bdb_inc; then
11731 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
11732 BDB_INCADD="-I$with_bdb_inc"
11737 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
11738 if test "x$ac_cv_header_db_h" = xyes; then :
11740 BDB_SAVE_LDFLAGS=$LDFLAGS
11742 if test -d $with_bdb_lib; then
11744 # this is CMU ADD LIBPATH TO
11745 if test "$andrew_runpath_switch" = "none" ; then
11746 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
11748 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
11752 # this is CMU ADD LIBPATH TO
11753 if test "$andrew_runpath_switch" = "none" ; then
11754 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
11756 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
11764 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
11766 LIBS="$saved_LIBS -l$dbname"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11773 db_create(NULL, NULL, 0);
11778 if ac_fn_c_try_link "$LINENO"; then :
11779 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 if test "$dblib" = "berkeley"; then break; fi
11787 if test "$dblib" = "no"; then
11788 LIBS="$saved_LIBS -ldb"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11795 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
11800 if ac_fn_c_try_link "$LINENO"; then :
11801 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
11805 rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11810 LDFLAGS=$BDB_SAVE_LDFLAGS
11818 CPPFLAGS=$cmu_save_CPPFLAGS
11820 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
11821 SASL_DB_INC=$BDB_INCADD
11822 SASL_DB_LIB="${BDB_LIBADD}"
11826 # Check whether --with-gdbm was given.
11827 if test "${with_gdbm+set}" = set; then :
11828 withval=$with_gdbm; with_gdbm="${withval}"
11832 case "$with_gdbm" in
11834 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
11835 if test "x$ac_cv_header_gdbm_h" = xyes; then :
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
11838 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
11839 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
11840 $as_echo_n "(cached) " >&6
11842 ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-lgdbm $LIBS"
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11857 return gdbm_open ();
11862 if ac_fn_c_try_link "$LINENO"; then :
11863 ac_cv_lib_gdbm_gdbm_open=yes
11865 ac_cv_lib_gdbm_gdbm_open=no
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
11872 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
11873 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
11874 SASL_DB_LIB="-lgdbm"
11886 if test -d $with_gdbm; then
11887 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
11888 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
11889 SASL_DB_LIB="-lgdbm"
11896 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_ndbm_h" = xyes; then :
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
11900 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
11901 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
11902 $as_echo_n "(cached) " >&6
11904 ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-lndbm $LIBS"
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11909 /* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11919 return dbm_open ();
11924 if ac_fn_c_try_link "$LINENO"; then :
11925 ac_cv_lib_ndbm_dbm_open=yes
11927 ac_cv_lib_ndbm_dbm_open=no
11929 rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
11934 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
11935 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
11936 SASL_DB_LIB="-lndbm"
11939 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
11940 if test "x$ac_cv_func_dbm_open" = xyes; then :
11958 cmu_save_CPPFLAGS=$CPPFLAGS
11960 if test -d $with_bdb_inc; then
11961 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
11962 BDB_INCADD="-I$with_bdb_inc"
11967 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
11968 if test "x$ac_cv_header_db_h" = xyes; then :
11970 BDB_SAVE_LDFLAGS=$LDFLAGS
11972 if test -d $with_bdb_lib; then
11974 # this is CMU ADD LIBPATH TO
11975 if test "$andrew_runpath_switch" = "none" ; then
11976 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
11978 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
11982 # this is CMU ADD LIBPATH TO
11983 if test "$andrew_runpath_switch" = "none" ; then
11984 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
11986 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
11994 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
11996 LIBS="$saved_LIBS -l$dbname"
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
12003 db_create(NULL, NULL, 0);
12008 if ac_fn_c_try_link "$LINENO"; then :
12009 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 if test "$dblib" = "berkeley"; then break; fi
12017 if test "$dblib" = "no"; then
12018 LIBS="$saved_LIBS -ldb"
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12025 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
12030 if ac_fn_c_try_link "$LINENO"; then :
12031 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12040 LDFLAGS=$BDB_SAVE_LDFLAGS
12048 CPPFLAGS=$cmu_save_CPPFLAGS
12050 if test "$dblib" = no; then
12051 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
12052 if test "x$ac_cv_header_ndbm_h" = xyes; then :
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
12055 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
12056 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
12057 $as_echo_n "(cached) " >&6
12059 ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-lndbm $LIBS"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12074 return dbm_open ();
12079 if ac_fn_c_try_link "$LINENO"; then :
12080 ac_cv_lib_ndbm_dbm_open=yes
12082 ac_cv_lib_ndbm_dbm_open=no
12084 rm -f core conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
12089 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
12090 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
12091 dblib="ndbm"; SASL_DB_LIB="-lndbm"
12101 if test "$dblib" = "weird"; then
12102 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
12103 if test "x$ac_cv_func_dbm_open" = xyes; then :
12111 if test "$dblib" = no; then
12112 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_gdbm_h" = xyes; then :
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
12116 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
12117 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
12118 $as_echo_n "(cached) " >&6
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lgdbm $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12135 return gdbm_open ();
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_gdbm_gdbm_open=yes
12143 ac_cv_lib_gdbm_gdbm_open=no
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
12150 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
12151 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
12153 SASL_DB_LIB="-lgdbm"
12165 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
12166 SASL_DB_INC=$BDB_INCADD
12167 SASL_DB_LIB="${BDB_LIBADD}"
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bad DB library implementation specified;" >&5
12176 $as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
12177 as_fn_error $? "Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" "$LINENO" 5
12181 LIBS="$cmu_save_LIBS"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB library to use" >&5
12184 $as_echo_n "checking DB library to use... " >&6; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dblib" >&5
12186 $as_echo "$dblib" >&6; }
12188 SASL_DB_BACKEND="db_${dblib}.lo"
12189 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
12190 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
12191 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
12192 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
12196 SASL_MECHS="$SASL_MECHS libsasldb.la"
12198 $as_echo "#define SASL_GDBM /**/" >>confdefs.h
12202 SASL_MECHS="$SASL_MECHS libsasldb.la"
12204 $as_echo "#define SASL_NDBM /**/" >>confdefs.h
12208 SASL_MECHS="$SASL_MECHS libsasldb.la"
12210 $as_echo "#define SASL_BERKELEYDB /**/" >>confdefs.h
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SASL authentication database support" >&5
12215 $as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
12216 SASL_DB_BACKEND="db_none.lo"
12217 SASL_DB_BACKEND_STATIC="db_none.o"
12218 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
12225 if test "$enable_static" = yes; then
12226 if test "$dblib" != "none"; then
12227 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
12228 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
12230 $as_echo "#define STATIC_SASLDB /**/" >>confdefs.h
12233 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
12234 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
12246 # Do we not install the SASL DB man pages?
12247 if test "x$SASL_DB_MANS" = "x"; then
12248 NO_SASL_DB_MANS_TRUE=
12249 NO_SASL_DB_MANS_FALSE='#'
12251 NO_SASL_DB_MANS_TRUE='#'
12252 NO_SASL_DB_MANS_FALSE=
12256 # Check whether --enable-keep_db_open was given.
12257 if test "${enable_keep_db_open+set}" = set; then :
12258 enableval=$enable_keep_db_open; keep_db_open=$enableval
12264 # Disable if Berkeley DB is not used
12265 if test "$dblib" != berkeley; then
12269 if test "$keep_db_open" = yes; then
12271 $as_echo "#define KEEP_DB_OPEN /**/" >>confdefs.h
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB handle is kept open in SASLDB" >&5
12275 $as_echo_n "checking if Berkeley DB handle is kept open in SASLDB... " >&6; }
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $keep_db_open" >&5
12277 $as_echo "$keep_db_open" >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12281 if ${ac_cv_lib_dl_dlopen+:} false; then :
12282 $as_echo_n "(cached) " >&6
12284 ac_check_lib_save_LIBS=$LIBS
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12289 /* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12304 if ac_fn_c_try_link "$LINENO"; then :
12305 ac_cv_lib_dl_dlopen=yes
12307 ac_cv_lib_dl_dlopen=no
12309 rm -f core conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12315 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12325 # Check whether --with-devrandom was given.
12326 if test "${with_devrandom+set}" = set; then :
12327 withval=$with_devrandom; devrandom=$withval
12329 devrandom=/dev/random
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking /dev/random to use" >&5
12333 $as_echo_n "checking /dev/random to use... " >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
12335 $as_echo "$devrandom" >&6; }
12337 cat >>confdefs.h <<_ACEOF
12338 #define SASL_DEV_RANDOM "$devrandom"
12345 # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy $ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if ${ac_cv_prog_NM+:} false; then :
12350 $as_echo_n "(cached) " >&6
12352 if test -n "$NM"; then
12353 ac_cv_prog_NM="$NM" # Let the user override the test.
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12362 ac_cv_prog_NM="$ac_prog"
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 if test -n "$NM"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12375 $as_echo "$NM" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12382 test -n "$NM" && break
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underscore before symbols" >&5
12387 $as_echo_n "checking for underscore before symbols... " >&6; }
12388 if ${sasl_cv_uscore+:} false; then :
12389 $as_echo_n "(cached) " >&6
12392 echo "main(){int i=1;}
12393 foo(){int i=6;}" > conftest.c
12394 ${CC} -o a.out conftest.c > /dev/null
12395 if (${NM} a.out | grep _foo) > /dev/null; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_uscore" >&5
12403 $as_echo "$sasl_cv_uscore" >&6; }
12404 rm -f conftest.c a.out
12406 if test $sasl_cv_uscore = yes; then
12407 if test $ac_cv_lib_dl_dlopen = yes ; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym adds the underscore for us" >&5
12409 $as_echo_n "checking whether dlsym adds the underscore for us... " >&6; }
12410 cmu_save_LIBS="$LIBS"
12411 LIBS="$LIBS $SASL_DL_LIB"
12412 if ${sasl_cv_dlsym_adds_uscore+:} false; then :
12413 $as_echo_n "(cached) " >&6
12415 if test "$cross_compiling" = yes; then :
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiler" >&5
12417 $as_echo "$as_me: WARNING: cross-compiler" >&2;}
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12425 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
12426 if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
12427 if(ptr1 && !ptr2) exit(0); } exit(1); }
12430 if ac_fn_c_try_run "$LINENO"; then :
12431 sasl_cv_dlsym_adds_uscore=yes
12433 sasl_cv_dlsym_adds_uscore=no
12435 $as_echo "#define DLSYM_NEEDS_UNDERSCORE /**/" >>confdefs.h
12438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12439 conftest.$ac_objext conftest.beam conftest.$ac_ext
12444 LIBS="$cmu_save_LIBS"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_dlsym_adds_uscore" >&5
12446 $as_echo "$sasl_cv_dlsym_adds_uscore" >&6; }
12450 for ac_func in syslog
12452 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
12453 if test "x$ac_cv_func_syslog" = xyes; then :
12454 cat >>confdefs.h <<_ACEOF
12455 #define HAVE_SYSLOG 1
12463 # Check whether --with-pam was given.
12464 if test "${with_pam+set}" = set; then :
12465 withval=$with_pam; with_pam=$withval
12470 if test "$with_pam" != no; then
12471 if test -d $with_pam; then
12472 CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
12473 LDFLAGS="$LDFLAGS -L${with_pam}/lib"
12475 for ac_header in security/pam_appl.h pam/pam_appl.h
12477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12479 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12480 cat >>confdefs.h <<_ACEOF
12481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12488 cmu_save_LIBS="$LIBS"
12489 ac_fn_c_check_func "$LINENO" "pam_start" "ac_cv_func_pam_start"
12490 if test "x$ac_cv_func_pam_start" = xyes; then :
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12497 #include <sys/types.h>
12498 #ifdef HAVE_PAM_PAM_APPL_H
12499 #include <pam/pam_appl.h>
12501 #ifdef HAVE_SECURITY_PAM_H
12502 #include <security/pam_appl.h>
12508 const char *service="foo";
12509 const char *user="bar";
12510 pam_handle_t *pamh;
12511 struct pam_conv *conv;
12513 baz = pam_start(service, user, conv, &pamh);
12520 if ac_fn_c_try_link "$LINENO"; then :
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12528 LIBS="$cmu_save_LIBS $LIBPAM"
12532 # Check whether --with-saslauthd was given.
12533 if test "${with_saslauthd+set}" = set; then :
12534 withval=$with_saslauthd; with_saslauthd=$withval
12539 if test "$with_saslauthd" != no; then
12540 if test "$with_saslauthd" = yes; then
12541 with_saslauthd="/var/state/saslauthd"
12544 $as_echo "#define HAVE_SASLAUTHD /**/" >>confdefs.h
12547 cat >>confdefs.h <<_ACEOF
12548 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
12552 if test "$with_saslauthd" != no; then
12554 SASLAUTHD_FALSE='#'
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include saslauthd" >&5
12561 $as_echo_n "checking if I should include saslauthd... " >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_saslauthd" >&5
12563 $as_echo "$with_saslauthd" >&6; }
12566 # Check whether --with-authdaemond was given.
12567 if test "${with_authdaemond+set}" = set; then :
12568 withval=$with_authdaemond; with_authdaemon=$withval
12570 with_authdaemon=yes
12573 if test "$with_authdaemon" != no; then
12574 if test "$with_authdaemon" = yes; then
12575 with_authdaemon="/dev/null"
12578 $as_echo "#define HAVE_AUTHDAEMON /**/" >>confdefs.h
12581 cat >>confdefs.h <<_ACEOF
12582 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to include Courier authdaemond support" >&5
12587 $as_echo_n "checking to include Courier authdaemond support... " >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_authdaemon" >&5
12589 $as_echo "$with_authdaemon" >&6; }
12592 # Check whether --with-pwcheck was given.
12593 if test "${with_pwcheck+set}" = set; then :
12594 withval=$with_pwcheck; with_pwcheck=$withval
12599 if test "$with_pwcheck" != no; then
12600 if test "$with_pwcheck" = yes; then
12601 with_pwcheck=/var/pwcheck
12604 $as_echo "#define HAVE_PWCHECK /**/" >>confdefs.h
12607 cat >>confdefs.h <<_ACEOF
12608 #define PWCHECKDIR "$with_pwcheck"
12611 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
12612 if test "x$ac_cv_func_getspnam" = xyes; then :
12613 PWCHECKMETH="getspnam"
12615 PWCHECKMETH="getpwnam"
12620 if test "$with_pwcheck" != no; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include pwcheck" >&5
12629 $as_echo_n "checking if I should include pwcheck... " >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pwcheck" >&5
12631 $as_echo "$with_pwcheck" >&6; }
12634 # Check whether --with-ipctype was given.
12635 if test "${with_ipctype+set}" = set; then :
12636 withval=$with_ipctype; with_ipctype=$withval
12638 with_ipctype="unix"
12641 IPCTYPE=$with_ipctype
12644 if test "$with_ipctype" = "doors"; then
12647 $as_echo "#define USE_DOORS /**/" >>confdefs.h
12652 # Check whether --enable-alwaystrue was given.
12653 if test "${enable_alwaystrue+set}" = set; then :
12654 enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
12656 enable_alwaystrue=no
12659 if test "$enable_alwaystrue" = yes; then
12661 $as_echo "#define HAVE_ALWAYSTRUE /**/" >>confdefs.h
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include the alwaystrue verifier" >&5
12665 $as_echo_n "checking if I should include the alwaystrue verifier... " >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alwaystrue" >&5
12667 $as_echo "$enable_alwaystrue" >&6; }
12669 # Check whether --enable-checkapop was given.
12670 if test "${enable_checkapop+set}" = set; then :
12671 enableval=$enable_checkapop; checkapop=$enableval
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable sasl_checkapop" >&5
12678 $as_echo_n "checking if we should enable sasl_checkapop... " >&6; }
12679 if test "$checkapop" != no; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12681 $as_echo "enabled" >&6; }
12683 $as_echo "#define DO_SASL_CHECKAPOP /**/" >>confdefs.h
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12687 $as_echo "disabled" >&6; }
12690 # Check whether --enable-cram was given.
12691 if test "${enable_cram+set}" = set; then :
12692 enableval=$enable_cram; cram=$enableval
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CRAM-MD5" >&5
12699 $as_echo_n "checking CRAM-MD5... " >&6; }
12700 if test "$cram" != no; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12702 $as_echo "enabled" >&6; }
12703 SASL_MECHS="$SASL_MECHS libcrammd5.la"
12704 if test "$enable_static" = yes; then
12705 SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
12706 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/cram.c"
12708 $as_echo "#define STATIC_CRAMMD5 /**/" >>confdefs.h
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12713 $as_echo "disabled" >&6; }
12717 # Check whether --with-lib-subdir was given.
12718 if test "${with_lib_subdir+set}" = set; then :
12719 withval=$with_lib_subdir;
12722 # The cast to long int works around a bug in the HP C Compiler
12723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12725 # This bug is HP SR number 8606223364.
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12727 $as_echo_n "checking size of long... " >&6; }
12728 if ${ac_cv_sizeof_long+:} false; then :
12729 $as_echo_n "(cached) " >&6
12731 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12734 if test "$ac_cv_type_long" = yes; then
12735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12737 as_fn_error 77 "cannot compute sizeof (long)
12738 See \`config.log' for more details" "$LINENO" 5; }
12740 ac_cv_sizeof_long=0
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12746 $as_echo "$ac_cv_sizeof_long" >&6; }
12750 cat >>confdefs.h <<_ACEOF
12751 #define SIZEOF_LONG $ac_cv_sizeof_long
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what directory libraries are found in" >&5
12756 $as_echo_n "checking what directory libraries are found in... " >&6; }
12757 if ${ac_cv_cmu_lib_subdir+:} false; then :
12758 $as_echo_n "(cached) " >&6
12760 test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
12761 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
12762 if test "X$with_lib_subdir" = "X" ; then
12763 ac_cv_cmu_lib_subdir=lib
12764 if test $ac_cv_sizeof_long -eq 4 ; then
12765 test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
12767 if test $ac_cv_sizeof_long -eq 8 ; then
12768 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
12771 ac_cv_cmu_lib_subdir=$with_lib_subdir
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmu_lib_subdir" >&5
12775 $as_echo "$ac_cv_cmu_lib_subdir" >&6; }
12776 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
12782 # Check whether --with-openssl was given.
12783 if test "${with_openssl+set}" = set; then :
12784 withval=$with_openssl; with_openssl=$withval
12790 save_CPPFLAGS=$CPPFLAGS
12791 save_LDFLAGS=$LDFLAGS
12793 if test -d $with_openssl; then
12794 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
12796 # this is CMU ADD LIBPATH
12797 if test "$andrew_runpath_switch" = "none" ; then
12798 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
12800 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
12805 case "$with_openssl" in
12807 with_openssl="no";;
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
12811 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
12812 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
12813 $as_echo_n "(cached) " >&6
12815 ac_check_lib_save_LIBS=$LIBS
12816 LIBS="-lrsaref $LIBS"
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12820 /* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12826 char RSAPublicEncrypt ();
12830 return RSAPublicEncrypt ();
12835 if ac_fn_c_try_link "$LINENO"; then :
12836 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
12838 ac_cv_lib_rsaref_RSAPublicEncrypt=no
12840 rm -f core conftest.err conftest.$ac_objext \
12841 conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
12845 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
12846 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
12847 cmu_have_rsaref=yes;
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lRSAglue" >&5
12849 $as_echo_n "checking for RSAPublicEncrypt in -lRSAglue... " >&6; }
12850 if ${ac_cv_lib_RSAglue_RSAPublicEncrypt+:} false; then :
12851 $as_echo_n "(cached) " >&6
12853 ac_check_lib_save_LIBS=$LIBS
12854 LIBS="-lRSAglue $LIBS"
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12864 char RSAPublicEncrypt ();
12868 return RSAPublicEncrypt ();
12873 if ac_fn_c_try_link "$LINENO"; then :
12874 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
12876 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
12878 rm -f core conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
12883 $as_echo "$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
12884 if test "x$ac_cv_lib_RSAglue_RSAPublicEncrypt" = xyes; then :
12885 LIB_RSAREF="-lRSAglue -lrsaref"
12887 LIB_RSAREF="-lrsaref"
12895 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
12896 if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit in -lcrypto" >&5
12899 $as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; }
12900 if ${ac_cv_lib_crypto_EVP_DigestInit+:} false; then :
12901 $as_echo_n "(cached) " >&6
12903 ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lcrypto $LIB_RSAREF $LIBS"
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12908 /* Override any GCC internal prototype to avoid an error.
12909 Use char because int might match the return type of a GCC
12910 builtin and then its argument prototype would still apply. */
12914 char EVP_DigestInit ();
12918 return EVP_DigestInit ();
12923 if ac_fn_c_try_link "$LINENO"; then :
12924 ac_cv_lib_crypto_EVP_DigestInit=yes
12926 ac_cv_lib_crypto_EVP_DigestInit=no
12928 rm -f core conftest.err conftest.$ac_objext \
12929 conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
12933 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
12934 if test "x$ac_cv_lib_crypto_EVP_DigestInit" = xyes; then :
12948 if test "$with_openssl" != "no"; then
12950 $as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h
12953 CPPFLAGS=$save_CPPFLAGS
12954 LDFLAGS=$save_LDFLAGS
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12958 $as_echo_n "checking for OpenSSL... " >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
12960 $as_echo "$with_openssl" >&6; }
12964 # Check whether --with-des was given.
12965 if test "${with_des+set}" = set; then :
12966 withval=$with_des; with_des=$withval
12973 if test "$with_des" != no; then
12974 if test -d $with_des; then
12975 CPPFLAGS="$CPPFLAGS -I${with_des}/include"
12976 LDFLAGS="$LDFLAGS -L${with_des}/lib"
12979 if test "$with_openssl" != no; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
12981 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
12982 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
12983 $as_echo_n "(cached) " >&6
12985 ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lcrypto $LIB_RSAREF $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12996 char des_cbc_encrypt ();
13000 return des_cbc_encrypt ();
13005 if ac_fn_c_try_link "$LINENO"; then :
13006 ac_cv_lib_crypto_des_cbc_encrypt=yes
13008 ac_cv_lib_crypto_des_cbc_encrypt=no
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 LIBS=$ac_check_lib_save_LIBS
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
13015 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
13016 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
13018 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13019 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13021 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13023 LIB_DES="-lcrypto";
13035 if test "$with_des" = no; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
13037 $as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
13038 if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then :
13039 $as_echo_n "(cached) " >&6
13041 ac_check_lib_save_LIBS=$LIBS
13042 LIBS="-lcrypto $LIB_RSAREF $LIBS"
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13052 char DES_cbc_encrypt ();
13056 return DES_cbc_encrypt ();
13061 if ac_fn_c_try_link "$LINENO"; then :
13062 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13064 ac_cv_lib_crypto_DES_cbc_encrypt=no
13066 rm -f core conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13068 LIBS=$ac_check_lib_save_LIBS
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13071 $as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13072 if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then :
13074 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13075 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13077 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13079 LIB_DES="-lcrypto";
13093 if test "$with_des" = no; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13095 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13096 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
13097 $as_echo_n "(cached) " >&6
13099 ac_check_lib_save_LIBS=$LIBS
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13104 /* Override any GCC internal prototype to avoid an error.
13105 Use char because int might match the return type of a GCC
13106 builtin and then its argument prototype would still apply. */
13110 char des_cbc_encrypt ();
13114 return des_cbc_encrypt ();
13119 if ac_fn_c_try_link "$LINENO"; then :
13120 ac_cv_lib_des_des_cbc_encrypt=yes
13122 ac_cv_lib_des_des_cbc_encrypt=no
13124 rm -f core conftest.err conftest.$ac_objext \
13125 conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13129 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13130 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
13139 if test "$with_des" = no; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13141 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13142 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
13143 $as_echo_n "(cached) " >&6
13145 ac_check_lib_save_LIBS=$LIBS
13146 LIBS="-ldes425 $LIBS"
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13150 /* Override any GCC internal prototype to avoid an error.
13151 Use char because int might match the return type of a GCC
13152 builtin and then its argument prototype would still apply. */
13156 char des_cbc_encrypt ();
13160 return des_cbc_encrypt ();
13165 if ac_fn_c_try_link "$LINENO"; then :
13166 ac_cv_lib_des425_des_cbc_encrypt=yes
13168 ac_cv_lib_des425_des_cbc_encrypt=no
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13175 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13176 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
13177 LIB_DES="-ldes425";
13185 if test "$with_des" = no; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes524" >&5
13187 $as_echo_n "checking for des_cbc_encrypt in -ldes524... " >&6; }
13188 if ${ac_cv_lib_des524_des_cbc_encrypt+:} false; then :
13189 $as_echo_n "(cached) " >&6
13191 ac_check_lib_save_LIBS=$LIBS
13192 LIBS="-ldes524 $LIBS"
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13202 char des_cbc_encrypt ();
13206 return des_cbc_encrypt ();
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 ac_cv_lib_des524_des_cbc_encrypt=yes
13214 ac_cv_lib_des524_des_cbc_encrypt=no
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
13221 $as_echo "$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
13222 if test "x$ac_cv_lib_des524_des_cbc_encrypt" = xyes; then :
13223 LIB_DES="-ldes524";
13231 if test "$with_des" = no; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
13235 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
13236 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
13237 $as_echo_n "(cached) " >&6
13239 ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-lrsaref $LIBS"
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13250 char RSAPublicEncrypt ();
13254 return RSAPublicEncrypt ();
13259 if ac_fn_c_try_link "$LINENO"; then :
13260 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
13262 ac_cv_lib_rsaref_RSAPublicEncrypt=no
13264 rm -f core conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
13269 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
13270 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
13271 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
13278 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
13279 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
13280 $as_echo_n "(cached) " >&6
13282 ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-lcrypto $LIB_RSAREF $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13293 char des_cbc_encrypt ();
13297 return des_cbc_encrypt ();
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 ac_cv_lib_crypto_des_cbc_encrypt=yes
13305 ac_cv_lib_crypto_des_cbc_encrypt=no
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
13312 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
13313 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
13315 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13316 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13318 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13320 LIB_DES="-lcrypto";
13334 if test "$with_des" != no; then
13336 $as_echo "#define WITH_DES /**/" >>confdefs.h
13343 # Check whether --enable-digest was given.
13344 if test "${enable_digest+set}" = set; then :
13345 enableval=$enable_digest; digest=$enableval
13351 if test "$digest" != no; then
13352 if test -d $digest; then
13353 CPPFLAGS="$CPPFLAGS -I$digest/include"
13354 LDFLAGS="$LDFLAGS -L$digest/lib"
13356 if test "$with_des" = no; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES support for DIGEST-MD5" >&5
13358 $as_echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DIGEST-MD5" >&5
13363 $as_echo_n "checking DIGEST-MD5... " >&6; }
13364 if test "$digest" != no; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13366 $as_echo "enabled" >&6; }
13367 SASL_MECHS="$SASL_MECHS libdigestmd5.la"
13368 if test "$enable_static" = yes; then
13369 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/digestmd5.c"
13370 SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
13372 $as_echo "#define STATIC_DIGESTMD5 /**/" >>confdefs.h
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13377 $as_echo "disabled" >&6; }
13380 # Check whether --enable-otp was given.
13381 if test "${enable_otp+set}" = set; then :
13382 enableval=$enable_otp; otp=$enableval
13388 if test "$with_openssl" = no; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- OTP will be disabled" >&5
13390 $as_echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OTP" >&5
13395 $as_echo_n "checking OTP... " >&6; }
13396 if test "$otp" != no; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13398 $as_echo "enabled" >&6; }
13399 OTP_LIBS="-lcrypto $LIB_RSAREF"
13401 SASL_MECHS="$SASL_MECHS libotp.la"
13402 if test "$enable_static" = yes; then
13403 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/otp.c"
13404 SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
13406 $as_echo "#define STATIC_OTP /**/" >>confdefs.h
13411 # Check whether --with-with-opie was given.
13412 if test "${with_with_opie+set}" = set; then :
13413 withval=$with_with_opie; with_opie="${withval}"
13417 case "$with_opie" in
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opiechallenge in -lopie" >&5
13420 $as_echo_n "checking for opiechallenge in -lopie... " >&6; }
13421 if ${ac_cv_lib_opie_opiechallenge+:} false; then :
13422 $as_echo_n "(cached) " >&6
13424 ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-lopie $LIBS"
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13429 /* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
13435 char opiechallenge ();
13439 return opiechallenge ();
13444 if ac_fn_c_try_link "$LINENO"; then :
13445 ac_cv_lib_opie_opiechallenge=yes
13447 ac_cv_lib_opie_opiechallenge=no
13449 rm -f core conftest.err conftest.$ac_objext \
13450 conftest$ac_exeext conftest.$ac_ext
13451 LIBS=$ac_check_lib_save_LIBS
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_opiechallenge" >&5
13454 $as_echo "$ac_cv_lib_opie_opiechallenge" >&6; }
13455 if test "x$ac_cv_lib_opie_opiechallenge" = xyes; then :
13457 ac_fn_c_check_header_mongrel "$LINENO" "opie.h" "ac_cv_header_opie_h" "$ac_includes_default"
13458 if test "x$ac_cv_header_opie_h" = xyes; then :
13471 if test -d $with_opie; then
13472 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
13473 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPIE" >&5
13481 $as_echo_n "checking for OPIE... " >&6; }
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opie" >&5
13483 $as_echo "$with_opie" >&6; }
13485 if test "$with_opie" != no; then
13487 $as_echo "#define HAVE_OPIE /**/" >>confdefs.h
13489 OTP_LIBS="$OTP_LIBS -lopie"
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13496 $as_echo "disabled" >&6; }
13499 # Check whether --enable-srp was given.
13500 if test "${enable_srp+set}" = set; then :
13501 enableval=$enable_srp; srp=$enableval
13507 if test "$with_openssl" = no; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- SRP will be disabled" >&5
13509 $as_echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SRP" >&5
13514 $as_echo_n "checking SRP... " >&6; }
13515 if test "$srp" != no; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13517 $as_echo "enabled" >&6; }
13518 SRP_LIBS="-lcrypto $LIB_RSAREF"
13520 SASL_MECHS="$SASL_MECHS libsrp.la"
13521 if test "$enable_static" = yes; then
13522 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/srp.c"
13523 SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
13525 $as_echo "#define STATIC_SRP /**/" >>confdefs.h
13529 # Check whether --enable-srp_setpass was given.
13530 if test "${enable_srp_setpass+set}" = set; then :
13531 enableval=$enable_srp_setpass; srp_setpass=$enableval
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable setting SRP secrets with saslpasswd" >&5
13538 $as_echo_n "checking if we should enable setting SRP secrets with saslpasswd... " >&6; }
13539 if test "$srp_setpass" != no; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13541 $as_echo "enabled" >&6; }
13543 $as_echo "#define DO_SRP_SETPASS /**/" >>confdefs.h
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13547 $as_echo "disabled" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13553 $as_echo "disabled" >&6; }
13559 # Check whether --enable-krb4 was given.
13560 if test "${enable_krb4+set}" = set; then :
13561 enableval=$enable_krb4; krb4=$enableval
13567 if test "$krb4" != no; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
13569 $as_echo_n "checking for res_search in -lresolv... " >&6; }
13570 if ${ac_cv_lib_resolv_res_search+:} false; then :
13571 $as_echo_n "(cached) " >&6
13573 ac_check_lib_save_LIBS=$LIBS
13574 LIBS="-lresolv $LIBS"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13584 char res_search ();
13588 return res_search ();
13593 if ac_fn_c_try_link "$LINENO"; then :
13594 ac_cv_lib_resolv_res_search=yes
13596 ac_cv_lib_resolv_res_search=no
13598 rm -f core conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
13603 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
13604 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
13605 cat >>confdefs.h <<_ACEOF
13606 #define HAVE_LIBRESOLV 1
13609 LIBS="-lresolv $LIBS"
13614 if test -d ${krb4}; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos includes" >&5
13616 $as_echo_n "checking for Kerberos includes... " >&6; }
13617 if ${cyrus_krbinclude+:} false; then :
13618 $as_echo_n "(cached) " >&6
13621 for krbhloc in include/kerberosIV include/kerberos include
13623 if test -f ${krb4}/${krbhloc}/krb.h ; then
13624 cyrus_krbinclude=${krb4}/${krbhloc}
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_krbinclude" >&5
13631 $as_echo "$cyrus_krbinclude" >&6; }
13633 if test -n "${cyrus_krbinclude}"; then
13634 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
13636 LDFLAGS="$LDFLAGS -L$krb4/lib"
13639 if test "$with_des" != no; then
13640 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13641 if test "x$ac_cv_header_krb_h" = xyes; then :
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13644 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13645 if ${ac_cv_lib_com_err_com_err+:} false; then :
13646 $as_echo_n "(cached) " >&6
13648 ac_check_lib_save_LIBS=$LIBS
13649 LIBS="-lcom_err $LIBS"
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13653 /* Override any GCC internal prototype to avoid an error.
13654 Use char because int might match the return type of a GCC
13655 builtin and then its argument prototype would still apply. */
13668 if ac_fn_c_try_link "$LINENO"; then :
13669 ac_cv_lib_com_err_com_err=yes
13671 ac_cv_lib_com_err_com_err=no
13673 rm -f core conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13675 LIBS=$ac_check_lib_save_LIBS
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13678 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13679 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
13682 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
13683 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
13684 $as_echo_n "(cached) " >&6
13686 ac_check_lib_save_LIBS=$LIBS
13687 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13691 /* Override any GCC internal prototype to avoid an error.
13692 Use char because int might match the return type of a GCC
13693 builtin and then its argument prototype would still apply. */
13697 char krb_mk_priv ();
13701 return krb_mk_priv ();
13706 if ac_fn_c_try_link "$LINENO"; then :
13707 ac_cv_lib_krb_krb_mk_priv=yes
13709 ac_cv_lib_krb_krb_mk_priv=no
13711 rm -f core conftest.err conftest.$ac_objext \
13712 conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
13716 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
13717 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
13718 COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
13726 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
13727 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
13728 $as_echo_n "(cached) " >&6
13730 ac_check_lib_save_LIBS=$LIBS
13731 LIBS="-lkrb $LIB_DES $LIBS"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.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. */
13741 char krb_mk_priv ();
13745 return krb_mk_priv ();
13750 if ac_fn_c_try_link "$LINENO"; then :
13751 ac_cv_lib_krb_krb_mk_priv=yes
13753 ac_cv_lib_krb_krb_mk_priv=no
13755 rm -f core conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
13760 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
13761 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
13762 COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
13775 if test "$krb4" != "no" -a "$krb4lib" = "no"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb4" >&5
13777 $as_echo_n "checking for krb_mk_priv in -lkrb4... " >&6; }
13778 if ${ac_cv_lib_krb4_krb_mk_priv+:} false; then :
13779 $as_echo_n "(cached) " >&6
13781 ac_check_lib_save_LIBS=$LIBS
13782 LIBS="-lkrb4 $LIB_DES $LIBS"
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13792 char krb_mk_priv ();
13796 return krb_mk_priv ();
13801 if ac_fn_c_try_link "$LINENO"; then :
13802 ac_cv_lib_krb4_krb_mk_priv=yes
13804 ac_cv_lib_krb4_krb_mk_priv=no
13806 rm -f core conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
13811 $as_echo "$ac_cv_lib_krb4_krb_mk_priv" >&6; }
13812 if test "x$ac_cv_lib_krb4_krb_mk_priv" = xyes; then :
13813 COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
13819 if test "$krb4" = no; then
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Kerberos V4 found" >&5
13821 $as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES library found for Kerberos V4 support" >&5
13825 $as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
13830 if test "$krb4" != no; then
13831 cmu_save_LIBS="$LIBS"
13832 LIBS="$LIBS $SASL_KRB_LIB"
13833 for ac_func in krb_get_err_text
13835 ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text"
13836 if test "x$ac_cv_func_krb_get_err_text" = xyes; then :
13837 cat >>confdefs.h <<_ACEOF
13838 #define HAVE_KRB_GET_ERR_TEXT 1
13844 LIBS="$cmu_save_LIBS"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KERBEROS_V4" >&5
13848 $as_echo_n "checking KERBEROS_V4... " >&6; }
13849 if test "$krb4" != no; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13851 $as_echo "enabled" >&6; }
13852 SASL_MECHS="$SASL_MECHS libkerberos4.la"
13853 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
13854 SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
13856 $as_echo "#define STATIC_KERBEROS4 /**/" >>confdefs.h
13859 $as_echo "#define HAVE_KRB /**/" >>confdefs.h
13861 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13864 $as_echo "disabled" >&6; }
13868 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13869 if test "x$ac_cv_func_crypt" = xyes; then :
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13873 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
13874 if ${ac_cv_lib_crypt_crypt+:} false; then :
13875 $as_echo_n "(cached) " >&6
13877 ac_check_lib_save_LIBS=$LIBS
13878 LIBS="-lcrypt $LIBS"
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13882 /* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 ac_cv_lib_crypt_crypt=yes
13900 ac_cv_lib_crypt_crypt=no
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13904 LIBS=$ac_check_lib_save_LIBS
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13907 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13908 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13909 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
13920 # Check whether --enable-gssapi was given.
13921 if test "${enable_gssapi+set}" = set; then :
13922 enableval=$enable_gssapi; gssapi=$enableval
13928 # Check whether --with-gss_impl was given.
13929 if test "${with_gss_impl+set}" = set; then :
13930 withval=$with_gss_impl; gss_impl=$withval
13936 if test "$gssapi" != no; then
13949 # When should we use __sunos?
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5
13958 $as_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;}
13959 if test "$gss_impl" = "cybersafe"; then
13960 as_fn_error $? "CyberSafe was forced, cannot continue as platform is not supported" "$LINENO" 5
13965 cmu_saved_CPPFLAGS=$CPPFLAGS
13967 if test -d ${gssapi}; then
13968 CPPFLAGS="$CPPFLAGS -I$gssapi/include"
13969 # We want to keep -I in our CPPFLAGS, but only if we succeed
13970 cmu_saved_CPPFLAGS=$CPPFLAGS
13971 ### I am not sure how useful is this (and whether this is required at all
13972 ### especially when we have to provide two -L flags for new CyberSafe
13973 LDFLAGS="$LDFLAGS -L$gssapi/lib"
13975 if test -n "$platform"; then
13976 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
13977 CPPFLAGS="$CPPFLAGS -D$platform"
13978 if test -d "${gssapi}/appsec-sdk/include"; then
13979 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
13984 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13985 if test "x$ac_cv_header_gssapi_h" = xyes; then :
13987 $as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h
13990 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13991 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no include files found" >&5
13995 $as_echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
14002 for ac_header in gssapi/gssapi_ext.h
14004 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
14005 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes; then :
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_GSSAPI_GSSAPI_EXT_H 1
14014 CPPFLAGS=$cmu_saved_CPPFLAGS
14018 if test "$gssapi" != no; then
14019 # We need to find out which gssapi implementation we are
14020 # using. Supported alternatives are: MIT Kerberos 5,
14021 # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
14022 # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
14023 # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
14025 # The choice is reflected in GSSAPIBASE_LIBS
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
14028 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14029 if ${ac_cv_lib_resolv_res_search+:} false; then :
14030 $as_echo_n "(cached) " >&6
14032 ac_check_lib_save_LIBS=$LIBS
14033 LIBS="-lresolv $LIBS"
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14043 char res_search ();
14047 return res_search ();
14052 if ac_fn_c_try_link "$LINENO"; then :
14053 ac_cv_lib_resolv_res_search=yes
14055 ac_cv_lib_resolv_res_search=no
14057 rm -f core conftest.err conftest.$ac_objext \
14058 conftest$ac_exeext conftest.$ac_ext
14059 LIBS=$ac_check_lib_save_LIBS
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
14062 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14063 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
14064 cat >>confdefs.h <<_ACEOF
14065 #define HAVE_LIBRESOLV 1
14068 LIBS="-lresolv $LIBS"
14072 if test -d ${gssapi}; then
14073 gssapi_dir="${gssapi}/lib"
14074 GSSAPIBASE_LIBS="-L$gssapi_dir"
14075 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
14077 # FIXME: This is only used for building cyrus, and then only as
14078 # a real hack. it needs to be fixed.
14079 gssapi_dir="/usr/local/lib"
14082 # Check a full link against the Heimdal libraries.
14083 # If this fails, check a full link against the MIT libraries.
14084 # If this fails, check a full link against the CyberSafe libraries.
14085 # If this fails, check a full link against the Solaris 8 and up libgss.
14087 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi" >&5
14090 $as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; }
14091 if ${ac_cv_lib_gssapi_gss_unwrap+:} false; then :
14092 $as_echo_n "(cached) " >&6
14094 ac_check_lib_save_LIBS=$LIBS
14095 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14099 /* Override any GCC internal prototype to avoid an error.
14100 Use char because int might match the return type of a GCC
14101 builtin and then its argument prototype would still apply. */
14105 char gss_unwrap ();
14109 return gss_unwrap ();
14114 if ac_fn_c_try_link "$LINENO"; then :
14115 ac_cv_lib_gssapi_gss_unwrap=yes
14117 ac_cv_lib_gssapi_gss_unwrap=no
14119 rm -f core conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
14124 $as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; }
14125 if test "x$ac_cv_lib_gssapi_gss_unwrap" = xyes; then :
14131 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14136 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
14137 # check for libkrb5support first
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
14139 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
14140 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
14141 $as_echo_n "(cached) " >&6
14143 ac_check_lib_save_LIBS=$LIBS
14144 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14154 char krb5int_getspecific ();
14158 return krb5int_getspecific ();
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_lib_krb5support_krb5int_getspecific=yes
14166 ac_cv_lib_krb5support_krb5int_getspecific=no
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170 LIBS=$ac_check_lib_save_LIBS
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
14173 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
14174 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
14175 K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi_krb5" >&5
14181 $as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; }
14182 if ${ac_cv_lib_gssapi_krb5_gss_unwrap+:} false; then :
14183 $as_echo_n "(cached) " >&6
14185 ac_check_lib_save_LIBS=$LIBS
14186 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14196 char gss_unwrap ();
14200 return gss_unwrap ();
14205 if ac_fn_c_try_link "$LINENO"; then :
14206 ac_cv_lib_gssapi_krb5_gss_unwrap=yes
14208 ac_cv_lib_gssapi_krb5_gss_unwrap=no
14210 rm -f core conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14212 LIBS=$ac_check_lib_save_LIBS
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
14215 $as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
14216 if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = xyes; then :
14222 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14227 # For Cybersafe one has to set a platform define in order to make compilation work
14228 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
14230 cmu_saved_CPPFLAGS=$CPPFLAGS
14231 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
14232 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
14233 if test -d "${gssapi}/appsec-rt/lib"; then
14234 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
14236 CPPFLAGS="$CPPFLAGS -D$platform"
14237 if test -d "${gssapi}/appsec-sdk/include"; then
14238 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
14243 # Check for CyberSafe with two libraries first, than fall back to a single
14244 # library (older CyberSafe)
14246 unset ac_cv_lib_gss_csf_gss_acq_user
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
14248 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
14249 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
14250 $as_echo_n "(cached) " >&6
14252 ac_check_lib_save_LIBS=$LIBS
14253 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14257 /* Override any GCC internal prototype to avoid an error.
14258 Use char because int might match the return type of a GCC
14259 builtin and then its argument prototype would still apply. */
14263 char csf_gss_acq_user ();
14267 return csf_gss_acq_user ();
14272 if ac_fn_c_try_link "$LINENO"; then :
14273 ac_cv_lib_gss_csf_gss_acq_user=yes
14275 ac_cv_lib_gss_csf_gss_acq_user=no
14277 rm -f core conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
14279 LIBS=$ac_check_lib_save_LIBS
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
14282 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
14283 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
14284 gss_impl="cybersafe03"
14286 unset ac_cv_lib_gss_csf_gss_acq_user;
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
14288 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
14289 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
14290 $as_echo_n "(cached) " >&6
14292 ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14297 /* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14303 char csf_gss_acq_user ();
14307 return csf_gss_acq_user ();
14312 if ac_fn_c_try_link "$LINENO"; then :
14313 ac_cv_lib_gss_csf_gss_acq_user=yes
14315 ac_cv_lib_gss_csf_gss_acq_user=no
14317 rm -f core conftest.err conftest.$ac_objext \
14318 conftest$ac_exeext conftest.$ac_ext
14319 LIBS=$ac_check_lib_save_LIBS
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
14322 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
14323 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
14324 gss_impl="cybersafe"
14332 if test "$gss_failed" = "1"; then
14333 # Restore variables
14334 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
14335 CPPFLAGS=$cmu_saved_CPPFLAGS
14337 if test "$gss_impl" != "auto"; then
14343 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgss" >&5
14346 $as_echo_n "checking for gss_unwrap in -lgss... " >&6; }
14347 if ${ac_cv_lib_gss_gss_unwrap+:} false; then :
14348 $as_echo_n "(cached) " >&6
14350 ac_check_lib_save_LIBS=$LIBS
14351 LIBS="-lgss -lgss $LIBS"
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14355 /* Override any GCC internal prototype to avoid an error.
14356 Use char because int might match the return type of a GCC
14357 builtin and then its argument prototype would still apply. */
14361 char gss_unwrap ();
14365 return gss_unwrap ();
14370 if ac_fn_c_try_link "$LINENO"; then :
14371 ac_cv_lib_gss_gss_unwrap=yes
14373 ac_cv_lib_gss_gss_unwrap=no
14375 rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext conftest.$ac_ext
14377 LIBS=$ac_check_lib_save_LIBS
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_unwrap" >&5
14380 $as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; }
14381 if test "x$ac_cv_lib_gss_gss_unwrap" = xyes; then :
14387 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14392 if test "$gss_impl" = "mit"; then
14393 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
14394 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
14395 elif test "$gss_impl" = "heimdal"; then
14396 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
14397 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
14398 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}"
14399 elif test "$gss_impl" = "cybersafe03"; then
14400 # Version of CyberSafe with two libraries
14401 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
14402 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
14403 # there is no static libgss for CyberSafe
14404 GSSAPIBASE_STATIC_LIBS=none
14405 elif test "$gss_impl" = "cybersafe"; then
14406 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
14407 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
14408 # there is no static libgss for CyberSafe
14409 GSSAPIBASE_STATIC_LIBS=none
14410 elif test "$gss_impl" = "seam"; then
14411 GSSAPIBASE_LIBS=-lgss
14412 # there is no static libgss on Solaris 8 and up
14413 GSSAPIBASE_STATIC_LIBS=none
14414 elif test "$gss_impl" = "failed"; then
14417 GSSAPIBASE_STATIC_LIBS=
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - specified library not found" >&5
14419 $as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
14423 GSSAPIBASE_STATIC_LIBS=
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no library" >&5
14425 $as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
14430 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
14431 # in gssapi\rfckrb5.h
14433 if test "$gssapi" != "no"; then
14434 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h. */
14437 #include <gssapi/gssapi.h>
14438 #ifdef GSS_C_NT_HOSTBASED_SERVICE
14439 hostbased_service_gss_nt_yes
14442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14443 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then :
14445 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
14449 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
14454 elif test "$ac_cv_header_gssapi_h" = "yes"; then
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457 #include <gssapi.h>
14460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14461 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
14463 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14468 elif test "$ac_cv_header_gssapi_gssapi_h"; then
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471 #include <gssapi/gssapi.h>
14474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14475 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
14477 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14484 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 #include <gssapi/gssapi.h>
14488 #ifdef GSS_C_NT_USER_NAME
14489 user_name_yes_gss_nt
14492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14493 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then :
14495 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
14499 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
14503 elif test "$ac_cv_header_gssapi_h" = "yes"; then
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14506 #include <gssapi.h>
14509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14510 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
14512 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519 #include <gssapi.h>
14522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14523 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
14528 elif test "$ac_cv_header_gssapi_gssapi_h"; then
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 #include <gssapi/gssapi.h>
14534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14535 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
14537 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 #include <gssapi/gssapi.h>
14547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14548 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI" >&5
14558 $as_echo_n "checking GSSAPI... " >&6; }
14559 if test "$gssapi" != no; then
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: with implementation ${gss_impl}" >&5
14561 $as_echo "with implementation ${gss_impl}" >&6; }
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
14563 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14564 if ${ac_cv_lib_resolv_res_search+:} false; then :
14565 $as_echo_n "(cached) " >&6
14567 ac_check_lib_save_LIBS=$LIBS
14568 LIBS="-lresolv $LIBS"
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14572 /* Override any GCC internal prototype to avoid an error.
14573 Use char because int might match the return type of a GCC
14574 builtin and then its argument prototype would still apply. */
14578 char res_search ();
14582 return res_search ();
14587 if ac_fn_c_try_link "$LINENO"; then :
14588 ac_cv_lib_resolv_res_search=yes
14590 ac_cv_lib_resolv_res_search=no
14592 rm -f core conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
14597 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14598 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
14599 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
14602 SASL_MECHS="$SASL_MECHS libgssapiv2.la"
14603 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
14604 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
14605 if test "$rfc5587" = "yes"; then
14606 SASL_MECHS="$SASL_MECHS libgs2.la"
14607 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
14608 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
14610 cmu_save_LIBS="$LIBS"
14611 LIBS="$LIBS $GSSAPIBASE_LIBS"
14612 for ac_func in gsskrb5_register_acceptor_identity
14614 ac_fn_c_check_func "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_func_gsskrb5_register_acceptor_identity"
14615 if test "x$ac_cv_func_gsskrb5_register_acceptor_identity" = xyes; then :
14616 cat >>confdefs.h <<_ACEOF
14617 #define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
14623 for ac_func in gss_decapsulate_token
14625 ac_fn_c_check_func "$LINENO" "gss_decapsulate_token" "ac_cv_func_gss_decapsulate_token"
14626 if test "x$ac_cv_func_gss_decapsulate_token" = xyes; then :
14627 cat >>confdefs.h <<_ACEOF
14628 #define HAVE_GSS_DECAPSULATE_TOKEN 1
14634 for ac_func in gss_encapsulate_token
14636 ac_fn_c_check_func "$LINENO" "gss_encapsulate_token" "ac_cv_func_gss_encapsulate_token"
14637 if test "x$ac_cv_func_gss_encapsulate_token" = xyes; then :
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_GSS_ENCAPSULATE_TOKEN 1
14645 for ac_func in gss_oid_equal
14647 ac_fn_c_check_func "$LINENO" "gss_oid_equal" "ac_cv_func_gss_oid_equal"
14648 if test "x$ac_cv_func_gss_oid_equal" = xyes; then :
14649 cat >>confdefs.h <<_ACEOF
14650 #define HAVE_GSS_OID_EQUAL 1
14656 LIBS="$cmu_save_LIBS"
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14659 $as_echo "disabled" >&6; }
14665 if test "$gssapi" != "no"; then
14667 $as_echo "#define STATIC_GSSAPIV2 /**/" >>confdefs.h
14670 if test "$gss_impl" = "mit"; then
14671 mutex_default="yes"
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to use mutexes aroung GSS calls" >&5
14674 $as_echo_n "checking to use mutexes aroung GSS calls... " >&6; }
14675 # Check whether --enable-gss_mutexes was given.
14676 if test "${enable_gss_mutexes+set}" = set; then :
14677 enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
14679 use_gss_mutexes=$mutex_default
14682 if test $use_gss_mutexes = "yes"; then
14684 $as_echo "#define GSS_USE_MUTEXES /**/" >>confdefs.h
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gss_mutexes" >&5
14688 $as_echo "$use_gss_mutexes" >&6; }
14694 # Check whether --enable-plain was given.
14695 if test "${enable_plain+set}" = set; then :
14696 enableval=$enable_plain; plain=$enableval
14703 if test "$plain" != no; then
14704 if test "$cmu_have_crypt" = yes; then
14705 PLAIN_LIBS=$LIB_CRYPT
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLAIN" >&5
14711 $as_echo_n "checking PLAIN... " >&6; }
14712 if test "$plain" != no; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14714 $as_echo "enabled" >&6; }
14715 SASL_MECHS="$SASL_MECHS libplain.la"
14716 if test "$enable_static" = yes; then
14717 SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
14718 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
14720 $as_echo "#define STATIC_PLAIN /**/" >>confdefs.h
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14725 $as_echo "disabled" >&6; }
14729 # Check whether --enable-anon was given.
14730 if test "${enable_anon+set}" = set; then :
14731 enableval=$enable_anon; anon=$enableval
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ANONYMOUS" >&5
14738 $as_echo_n "checking ANONYMOUS... " >&6; }
14739 if test "$anon" != no; then
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14741 $as_echo "enabled" >&6; }
14742 SASL_MECHS="$SASL_MECHS libanonymous.la"
14743 if test "$enable_static" = yes; then
14744 SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
14745 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
14747 $as_echo "#define STATIC_ANONYMOUS /**/" >>confdefs.h
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14752 $as_echo "disabled" >&6; }
14755 # Check whether --enable-login was given.
14756 if test "${enable_login+set}" = set; then :
14757 enableval=$enable_login; login=$enableval
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LOGIN" >&5
14764 $as_echo_n "checking LOGIN... " >&6; }
14765 if test "$login" != no; then
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14767 $as_echo "enabled" >&6; }
14768 SASL_MECHS="$SASL_MECHS liblogin.la"
14769 if test "$enable_static" = yes; then
14770 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
14771 SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
14773 $as_echo "#define STATIC_LOGIN /**/" >>confdefs.h
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14778 $as_echo "disabled" >&6; }
14781 # Check whether --enable-ntlm was given.
14782 if test "${enable_ntlm+set}" = set; then :
14783 enableval=$enable_ntlm; ntlm=$enableval
14789 if test "$with_openssl" = no; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
14791 $as_echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTLM" >&5
14796 $as_echo_n "checking NTLM... " >&6; }
14797 if test "$ntlm" != no; then
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14799 $as_echo "enabled" >&6; }
14800 NTLM_LIBS="-lcrypto $LIB_RSAREF"
14803 SASL_MECHS="$SASL_MECHS libntlm.la"
14804 if test "$enable_static" = yes; then
14805 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
14806 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
14808 $as_echo "#define STATIC_NTLM /**/" >>confdefs.h
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14813 $as_echo "disabled" >&6; }
14816 # Check whether --enable-passdss was given.
14817 if test "${enable_passdss+set}" = set; then :
14818 enableval=$enable_passdss; passdss=$enableval
14824 if test "$with_openssl" = no; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
14826 $as_echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PASSDSS" >&5
14831 $as_echo_n "checking PASSDSS... " >&6; }
14832 if test "$passdss" != no; then
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14834 $as_echo "enabled" >&6; }
14835 PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
14838 SASL_MECHS="$SASL_MECHS libpassdss.la"
14839 if test "$enable_static" = yes; then
14840 SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
14841 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
14843 $as_echo "#define STATIC_PASSDSS /**/" >>confdefs.h
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14848 $as_echo "disabled" >&6; }
14852 # make the option show up so people don't whine that it is only in the
14853 # saslauthd configure script --help
14855 # Check whether --with-ldap was given.
14856 if test "${with_ldap+set}" = set; then :
14857 withval=$with_ldap;
14865 # Check whether --enable-sql was given.
14866 if test "${enable_sql+set}" = set; then :
14867 enableval=$enable_sql; sql=$enableval
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQL" >&5
14874 $as_echo_n "checking SQL... " >&6; }
14875 if test "$sql" != no; then
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14877 $as_echo "enabled" >&6; }
14878 SASL_MECHS="$SASL_MECHS libsql.la"
14879 if test "$enable_static" = yes; then
14880 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
14881 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
14883 $as_echo "#define STATIC_SQL /**/" >>confdefs.h
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14888 $as_echo "disabled" >&6; }
14892 # Check whether --with-mysql was given.
14893 if test "${with_mysql+set}" = set; then :
14894 withval=$with_mysql; with_mysql=$withval
14900 # find location of library
14901 # presuming if one given then correct
14902 if test "${with_mysql}" = "yes"; then
14903 with_mysql=notfound
14904 for mysqlloc in lib/mysql lib mysql/lib
14906 if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
14907 with_mysql="${prefix}"
14909 elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
14910 with_mysql="/usr/local"
14912 elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
14921 case "$with_mysql" in
14923 notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL Library not found" >&5
14924 $as_echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
14926 if test -d ${with_mysql}/lib/mysql; then
14928 # this is CMU ADD LIBPATH TO
14929 if test "$andrew_runpath_switch" = "none" ; then
14930 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
14932 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
14935 elif test -d ${with_mysql}/mysql/lib; then
14937 # this is CMU ADD LIBPATH TO
14938 if test "$andrew_runpath_switch" = "none" ; then
14939 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
14941 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
14944 elif test -d ${with_mysql}/lib; then
14946 # this is CMU ADD LIBPATH TO
14947 if test "$andrew_runpath_switch" = "none" ; then
14948 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
14950 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
14955 # this is CMU ADD LIBPATH TO
14956 if test "$andrew_runpath_switch" = "none" ; then
14957 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
14959 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
14964 LIB_MYSQL_DIR=$LIB_MYSQL
14965 LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
14967 if test -d ${with_mysql}/include/mysql; then
14968 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
14969 elif test -d ${with_mysql}/mysql/include; then
14970 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
14971 elif test -d ${with_mysql}/include; then
14972 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
14974 CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
14977 save_LDFLAGS=$LDFLAGS
14978 LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_select_db in -lmysqlclient" >&5
14980 $as_echo_n "checking for mysql_select_db in -lmysqlclient... " >&6; }
14981 if ${ac_cv_lib_mysqlclient_mysql_select_db+:} false; then :
14982 $as_echo_n "(cached) " >&6
14984 ac_check_lib_save_LIBS=$LIBS
14985 LIBS="-lmysqlclient $LIBS"
14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987 /* end confdefs.h. */
14989 /* Override any GCC internal prototype to avoid an error.
14990 Use char because int might match the return type of a GCC
14991 builtin and then its argument prototype would still apply. */
14995 char mysql_select_db ();
14999 return mysql_select_db ();
15004 if ac_fn_c_try_link "$LINENO"; then :
15005 ac_cv_lib_mysqlclient_mysql_select_db=yes
15007 ac_cv_lib_mysqlclient_mysql_select_db=no
15009 rm -f core conftest.err conftest.$ac_objext \
15010 conftest$ac_exeext conftest.$ac_ext
15011 LIBS=$ac_check_lib_save_LIBS
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
15014 $as_echo "$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
15015 if test "x$ac_cv_lib_mysqlclient_mysql_select_db" = xyes; then :
15017 $as_echo "#define HAVE_MYSQL /**/" >>confdefs.h
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL library mysqlclient does not work" >&5
15021 $as_echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
15025 LDFLAGS=$save_LDFLAGS;;
15031 # Check whether --with-pgsql was given.
15032 if test "${with_pgsql+set}" = set; then :
15033 withval=$with_pgsql; with_pgsql=$withval
15039 # find location of library
15040 # presuing if one given then correct
15041 if test "${with_pgsql}" = "yes"; then
15042 with_pgsql=notfound
15043 for pgsqlloc in lib/pgsql lib pgsql/lib
15045 if test -f ${prefix}/${pgsqlloc}/libpq.a; then
15046 with_pgsql="${prefix}"
15048 elif test -f /usr/local/${pgsqlloc}/libpq.a; then
15049 with_pgsql="/usr/local"
15051 elif test -f /usr/${pgsqlloc}/libpq.a; then
15060 case "$with_pgsql" in
15062 notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library not found" >&5
15063 $as_echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
15065 if test -d ${with_pgsql}/lib/pgsql; then
15067 # this is CMU ADD LIBPATH TO
15068 if test "$andrew_runpath_switch" = "none" ; then
15069 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
15071 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
15074 elif test -d ${with_pgsql}/pgsql/lib; then
15076 # this is CMU ADD LIBPATH TO
15077 if test "$andrew_runpath_switch" = "none" ; then
15078 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
15080 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
15083 elif test -d ${with_pgsql}/lib; then
15085 # this is CMU ADD LIBPATH TO
15086 if test "$andrew_runpath_switch" = "none" ; then
15087 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
15089 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
15094 # this is CMU ADD LIBPATH TO
15095 if test "$andrew_runpath_switch" = "none" ; then
15096 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
15098 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
15103 LIB_PGSQL_DIR=$LIB_PGSQL
15104 LIB_PGSQL="$LIB_PGSQL -lpq"
15106 if test -d ${with_pgsql}/include/pgsql; then
15107 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
15108 elif test -d ${with_pgsql}/pgsql/include; then
15109 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
15110 elif test -d ${with_pgsql}/include; then
15111 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
15113 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
15117 save_LDFLAGS=$LDFLAGS
15118 LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
15120 $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
15121 if ${ac_cv_lib_pq_PQsetdbLogin+:} false; then :
15122 $as_echo_n "(cached) " >&6
15124 ac_check_lib_save_LIBS=$LIBS
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15129 /* Override any GCC internal prototype to avoid an error.
15130 Use char because int might match the return type of a GCC
15131 builtin and then its argument prototype would still apply. */
15135 char PQsetdbLogin ();
15139 return PQsetdbLogin ();
15144 if ac_fn_c_try_link "$LINENO"; then :
15145 ac_cv_lib_pq_PQsetdbLogin=yes
15147 ac_cv_lib_pq_PQsetdbLogin=no
15149 rm -f core conftest.err conftest.$ac_objext \
15150 conftest$ac_exeext conftest.$ac_ext
15151 LIBS=$ac_check_lib_save_LIBS
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
15154 $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
15155 if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
15157 $as_echo "#define HAVE_PGSQL /**/" >>confdefs.h
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library pq does not work" >&5
15161 $as_echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
15165 LDFLAGS=$save_LDFLAGS;;
15171 # Check whether --with-sqlite was given.
15172 if test "${with_sqlite+set}" = set; then :
15173 withval=$with_sqlite; with_sqlite=$withval
15179 # find location of library
15180 # presuing if one given then correct
15181 if test "${with_sqlite}" = "yes"; then
15182 with_sqlite=notfound
15183 for sqliteloc in lib
15185 if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
15186 with_sqlite="${prefix}"
15188 elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
15189 with_sqlite="/usr/local"
15191 elif test -f /usr/${sqliteloc}/libsqlite.a; then
15200 case "$with_sqlite" in
15202 notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library not found" >&5
15203 $as_echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
15205 if test -d ${with_sqlite}/lib; then
15206 LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
15208 LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
15211 LIB_SQLITE_DIR=$LIB_SQLITE
15212 LIB_SQLITE="$LIB_SQLITE -lsqlite"
15214 if test -d ${with_sqlite}/include; then
15215 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
15217 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5
15220 $as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
15221 if ${ac_cv_lib_sqlite_sqlite_open+:} false; then :
15222 $as_echo_n "(cached) " >&6
15224 ac_check_lib_save_LIBS=$LIBS
15225 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15229 /* Override any GCC internal prototype to avoid an error.
15230 Use char because int might match the return type of a GCC
15231 builtin and then its argument prototype would still apply. */
15235 char sqlite_open ();
15239 return sqlite_open ();
15244 if ac_fn_c_try_link "$LINENO"; then :
15245 ac_cv_lib_sqlite_sqlite_open=yes
15247 ac_cv_lib_sqlite_sqlite_open=no
15249 rm -f core conftest.err conftest.$ac_objext \
15250 conftest$ac_exeext conftest.$ac_ext
15251 LIBS=$ac_check_lib_save_LIBS
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5
15254 $as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
15255 if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then :
15257 $as_echo "#define HAVE_SQLITE /**/" >>confdefs.h
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library sqlite does not work" >&5
15261 $as_echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
15269 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
15270 as_fn_error $? "--enable-sql chosen but neither Postgres nor MySQL nor SQLite found" "$LINENO" 5
15273 if test "$enable_shared" = yes; then
15275 $as_echo "#define DO_DLOPEN /**/" >>confdefs.h
15279 # Check whether --enable-ldapdb was given.
15280 if test "${enable_ldapdb+set}" = set; then :
15281 enableval=$enable_ldapdb; ldapdb=$enableval
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDAPDB" >&5
15287 $as_echo_n "checking LDAPDB... " >&6; }
15288 if test "$ldapdb" != no; then
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
15290 $as_echo "enabled" >&6; }
15292 if test "$with_ldap" = no; then
15293 as_fn_error $? "Cannot enable LDAPDB plugin: You need to specify --with-ldap" "$LINENO" 5
15296 save_CPPFLAGS=$CPPFLAGS
15297 save_LDFLAGS=$LDFLAGS
15299 if test -d $with_ldap; then
15300 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
15302 # this is CMU ADD LIBPATH
15303 if test "$andrew_runpath_switch" = "none" ; then
15304 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
15306 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
15311 for ac_header in ldap.h lber.h
15313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15314 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15316 cat >>confdefs.h <<_ACEOF
15317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15325 if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP api" >&5
15327 $as_echo_n "checking OpenLDAP api... " >&6; }
15328 if ${cmu_cv_openldap_api+:} false; then :
15329 $as_echo_n "(cached) " >&6
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15337 #ifdef LDAP_API_FEATURE_X_OPENLDAP
15338 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
15342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15343 $EGREP "__openldap_api" >/dev/null 2>&1; then :
15344 cmu_cv_openldap_api=yes
15346 cmu_cv_openldap_api=no
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_api" >&5
15352 $as_echo "$cmu_cv_openldap_api" >&6; }
15355 if test "$cmu_cv_openldap_api" = yes; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
15357 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
15358 if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
15359 $as_echo_n "(cached) " >&6
15361 ac_check_lib_save_LIBS=$LIBS
15362 LIBS="-lldap -llber $LIBS"
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15366 /* Override any GCC internal prototype to avoid an error.
15367 Use char because int might match the return type of a GCC
15368 builtin and then its argument prototype would still apply. */
15372 char ldap_initialize ();
15376 return ldap_initialize ();
15381 if ac_fn_c_try_link "$LINENO"; then :
15382 ac_cv_lib_ldap_ldap_initialize=yes
15384 ac_cv_lib_ldap_ldap_initialize=no
15386 rm -f core conftest.err conftest.$ac_objext \
15387 conftest$ac_exeext conftest.$ac_ext
15388 LIBS=$ac_check_lib_save_LIBS
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
15391 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
15392 if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
15393 cmu_link_openldap="-lldap -llber"
15395 cmu_link_openldap=no
15401 if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
15402 as_fn_error $? "Cannot enable LDAPDB plugin: Could not locate OpenLDAP" "$LINENO" 5
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP version" >&5
15405 $as_echo_n "checking OpenLDAP version... " >&6; }
15406 if ${cmu_cv_openldap_compat+:} false; then :
15407 $as_echo_n "(cached) " >&6
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15415 /* Require 2.1.27+ and 2.2.6+ */
15416 #if LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
15417 char *__openldap_compat = "2.1.27 or better okay";
15418 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
15419 char *__openldap_compat = "2.2.6 or better okay";
15420 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR > 2
15421 char *__openldap_compat = "2.3 or better okay"
15425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15426 $EGREP "__openldap_compat" >/dev/null 2>&1; then :
15427 cmu_cv_openldap_compat=yes
15429 cmu_cv_openldap_compat=no
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_compat" >&5
15435 $as_echo "$cmu_cv_openldap_compat" >&6; }
15438 if test "$cmu_cv_openldap_compat" = no; then
15439 as_fn_error $? "Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" "$LINENO" 5
15441 LIB_LDAP=$cmu_link_openldap
15444 SASL_MECHS="$SASL_MECHS libldapdb.la"
15445 if test "$enable_static" = yes; then
15446 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
15447 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
15449 $as_echo "#define STATIC_LDAPDB /**/" >>confdefs.h
15455 if test "$cmu_cv_openldap_compat" != yes; then
15456 CPPFLAGS=$save_CPPFLAGS
15457 LDFLAGS=$save_LDFLAGS
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15461 $as_echo "disabled" >&6; }
15470 # Check whether --with-plugindir was given.
15471 if test "${with_plugindir+set}" = set; then :
15472 withval=$with_plugindir; plugindir=$withval
15474 plugindir=/usr/lib/sasl2
15478 cat >>confdefs.h <<_ACEOF
15479 #define PLUGINDIR "$plugindir"
15485 # Check whether --with-configdir was given.
15486 if test "${with_configdir+set}" = set; then :
15487 withval=$with_configdir; configdir=$withval
15489 configdir=$plugindir:/etc/sasl2
15493 cat >>confdefs.h <<_ACEOF
15494 #define CONFIGDIR "$configdir"
15500 # Check whether --with-rc4 was given.
15501 if test "${with_rc4+set}" = set; then :
15502 withval=$with_rc4; with_rc4=$withval
15508 if test "$with_rc4" != no; then
15510 $as_echo "#define WITH_RC4 /**/" >>confdefs.h
15514 building_for_macosx=no
15517 # Check whether --enable-macos-framework was given.
15518 if test "${enable_macos_framework+set}" = set; then :
15519 enableval=$enable_macos_framework; building_for_macosx=no
15521 building_for_macosx=yes
15526 if test "$building_for_macosx" = yes; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc library" >&5
15536 $as_echo_n "checking for dmalloc library... " >&6; }
15538 # Check whether --with-dmalloc was given.
15539 if test "${with_dmalloc+set}" = set; then :
15540 withval=$with_dmalloc; with_dmalloc=$withval
15548 if test "$with_dmalloc" != "no"; then
15549 if test "$with_dmalloc" = "yes"; then
15550 with_dmalloc="/usr/local"
15553 if test -r "$with_dmalloc/libdmalloc.a"; then
15554 DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
15556 $as_echo "#define WITH_DMALLOC /**/" >>confdefs.h
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15559 $as_echo "yes" >&6; }
15560 elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
15561 DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
15563 $as_echo "#define WITH_DMALLOC /**/" >>confdefs.h
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15566 $as_echo "yes" >&6; }
15568 as_fn_error please check your installation. "cannot find dmalloc library" "$LINENO" 5
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15572 $as_echo "no" >&6; }
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sfio library" >&5
15578 $as_echo_n "checking for sfio library... " >&6; }
15580 # Check whether --with-sfio was given.
15581 if test "${with_sfio+set}" = set; then :
15582 withval=$with_sfio; with_sfio=$withval
15588 if test "$with_sfio" != "no"; then
15589 if test "$with_sfio" = "yes"; then
15590 with_sfio="/usr/local"
15597 if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15598 SFIO_INC_DIR=$with_sfio
15599 elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
15600 SFIO_INC_DIR=$with_sfio/include
15601 elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15602 SFIO_INC_DIR=$with_sfio/include/sfio
15605 if test -z "$SFIO_DIR"; then
15606 as_fn_error Please check your SFIO installation. "Cannot find sfio.h" "$LINENO" 5
15610 str="$SFIO_DIR/lib/libsfio.*"
15611 for i in `echo $str`; do
15612 if test -r $i; then
15613 SFIO_LIBDIR=$SFIO_DIR/lib
15619 str="$SFIO_DIR/lib/sfio/libsfio.*"
15620 for i in `echo $str`; do
15621 if test -r $i; then
15622 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
15628 if test -z "$SFIO_LIBDIR"; then
15629 as_fn_error Please check your SFIO installation. "Cannot find sfio library" "$LINENO" 5
15632 SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
15633 SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
15634 SMTPTEST_PROGRAM="smtptest"
15635 SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
15636 SASL_UTIL_HEADERS_EXTRA=sfsasl.h
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15639 $as_echo "yes" >&6; }
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 $as_echo "no" >&6; }
15645 SMTPTEST_PROGRAM=""
15646 SASL_UTIL_LIBS_EXTRA=""
15647 SASL_UTIL_HEADERS_EXTRA=""
15656 sasl_cv_getsubopt=no
15657 ac_fn_c_check_func "$LINENO" "getsubopt" "ac_cv_func_getsubopt"
15658 if test "x$ac_cv_func_getsubopt" = xyes; then :
15660 $as_echo "#define HAVE_GETSUBOPT /**/" >>confdefs.h
15663 sasl_cv_getsubopt=yes
15666 if test $sasl_cv_getsubopt = yes; then
15667 case " $LIBOBJS " in
15668 *" getsubopt.$ac_objext "* ) ;;
15669 *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
15673 GETSUBOPT="getsubopt.lo"
15677 sasl_cv_snprintf=no
15679 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15680 if test "x$ac_cv_func_snprintf" = xyes; then :
15682 $as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
15685 sasl_cv_snprintf=yes
15688 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
15689 if test "x$ac_cv_func_vsnprintf" = xyes; then :
15691 $as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h
15694 sasl_cv_snprintf=yes
15697 if test $sasl_cv_snprintf = yes; then
15698 case " $LIBOBJS " in
15699 *" snprintf.$ac_objext "* ) ;;
15700 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15704 SNPRINTFOBJS="snprintf.o"
15705 LTSNPRINTFOBJS="snprintf.lo"
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
15711 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
15712 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
15713 $as_echo_n "(cached) " >&6
15715 ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lresolv $LIBS"
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15720 /* Override any GCC internal prototype to avoid an error.
15721 Use char because int might match the return type of a GCC
15722 builtin and then its argument prototype would still apply. */
15730 return inet_aton ();
15735 if ac_fn_c_try_link "$LINENO"; then :
15736 ac_cv_lib_resolv_inet_aton=yes
15738 ac_cv_lib_resolv_inet_aton=no
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 LIBS=$ac_check_lib_save_LIBS
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
15745 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
15746 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
15747 cat >>confdefs.h <<_ACEOF
15748 #define HAVE_LIBRESOLV 1
15751 LIBS="-lresolv $LIBS"
15757 sasl_cv_getaddrinfo=yes
15759 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15760 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
15761 ac_cv_lib_socket_getaddrinfo=no
15762 ac_cv_lib_inet6_getaddrinfo=no
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
15766 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
15767 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
15768 $as_echo_n "(cached) " >&6
15770 ac_check_lib_save_LIBS=$LIBS
15771 LIBS="-lsocket $LIBS"
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15775 /* Override any GCC internal prototype to avoid an error.
15776 Use char because int might match the return type of a GCC
15777 builtin and then its argument prototype would still apply. */
15781 char getaddrinfo ();
15785 return getaddrinfo ();
15790 if ac_fn_c_try_link "$LINENO"; then :
15791 ac_cv_lib_socket_getaddrinfo=yes
15793 ac_cv_lib_socket_getaddrinfo=no
15795 rm -f core conftest.err conftest.$ac_objext \
15796 conftest$ac_exeext conftest.$ac_ext
15797 LIBS=$ac_check_lib_save_LIBS
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
15800 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
15801 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
15802 LIBS="$LIBS -lsocket"
15803 ac_cv_lib_inet6_getaddrinfo=no
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
15807 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
15808 if ${ipv6_cv_dir+:} false; then :
15809 $as_echo_n "(cached) " >&6
15811 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15812 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
15818 $as_echo "$ipv6_cv_dir" >&6; }
15819 if test $ipv6_cv_dir = no; then
15820 ac_cv_lib_inet6_getaddrinfo=no
15822 if test x$ipv6_libinet6 = x; then
15824 SAVELDFLAGS="$LDFLAGS"
15825 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
15828 $as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
15829 if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
15830 $as_echo_n "(cached) " >&6
15832 ac_check_lib_save_LIBS=$LIBS
15833 LIBS="-linet6 $LIBS"
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15837 /* Override any GCC internal prototype to avoid an error.
15838 Use char because int might match the return type of a GCC
15839 builtin and then its argument prototype would still apply. */
15843 char getaddrinfo ();
15847 return getaddrinfo ();
15852 if ac_fn_c_try_link "$LINENO"; then :
15853 ac_cv_lib_inet6_getaddrinfo=yes
15855 ac_cv_lib_inet6_getaddrinfo=no
15857 rm -f core conftest.err conftest.$ac_objext \
15858 conftest$ac_exeext conftest.$ac_ext
15859 LIBS=$ac_check_lib_save_LIBS
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
15862 $as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
15863 if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
15864 if test $ipv6_libinet6 = no; then
15866 LIBS="$LIBS -linet6"
15869 if test $ipv6_libinet6 = no; then
15870 LDFLAGS="$SAVELDFLAGS"
15876 ipv6_cv_getaddrinfo=no
15877 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
15878 -o $ac_cv_lib_inet6_getaddrinfo = yes
15880 ipv6_cv_getaddrinfo=yes
15882 if test $ipv6_cv_getaddrinfo = no; then
15883 if test getaddrinfo = getaddrinfo; then
15884 for ipv6_cv_pfx in o n; do
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15891 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
15892 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
15893 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
15894 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15901 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
15903 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
15905 ipv6_cv_getaddrinfo=yes
15911 if test $ipv6_cv_getaddrinfo = yes; then
15913 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
15914 if test "x$ac_cv_func_gai_strerror" = xyes; then :
15915 ac_cv_lib_socket_gai_strerror=no
15916 ac_cv_lib_inet6_gai_strerror=no
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -lsocket" >&5
15920 $as_echo_n "checking for gai_strerror in -lsocket... " >&6; }
15921 if ${ac_cv_lib_socket_gai_strerror+:} false; then :
15922 $as_echo_n "(cached) " >&6
15924 ac_check_lib_save_LIBS=$LIBS
15925 LIBS="-lsocket $LIBS"
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15929 /* Override any GCC internal prototype to avoid an error.
15930 Use char because int might match the return type of a GCC
15931 builtin and then its argument prototype would still apply. */
15935 char gai_strerror ();
15939 return gai_strerror ();
15944 if ac_fn_c_try_link "$LINENO"; then :
15945 ac_cv_lib_socket_gai_strerror=yes
15947 ac_cv_lib_socket_gai_strerror=no
15949 rm -f core conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
15951 LIBS=$ac_check_lib_save_LIBS
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gai_strerror" >&5
15954 $as_echo "$ac_cv_lib_socket_gai_strerror" >&6; }
15955 if test "x$ac_cv_lib_socket_gai_strerror" = xyes; then :
15956 LIBS="$LIBS -lsocket"
15957 ac_cv_lib_inet6_gai_strerror=no
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
15961 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
15962 if ${ipv6_cv_dir+:} false; then :
15963 $as_echo_n "(cached) " >&6
15965 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15966 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
15972 $as_echo "$ipv6_cv_dir" >&6; }
15973 if test $ipv6_cv_dir = no; then
15974 ac_cv_lib_inet6_gai_strerror=no
15976 if test x$ipv6_libinet6 = x; then
15978 SAVELDFLAGS="$LDFLAGS"
15979 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -linet6" >&5
15982 $as_echo_n "checking for gai_strerror in -linet6... " >&6; }
15983 if ${ac_cv_lib_inet6_gai_strerror+:} false; then :
15984 $as_echo_n "(cached) " >&6
15986 ac_check_lib_save_LIBS=$LIBS
15987 LIBS="-linet6 $LIBS"
15988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h. */
15991 /* Override any GCC internal prototype to avoid an error.
15992 Use char because int might match the return type of a GCC
15993 builtin and then its argument prototype would still apply. */
15997 char gai_strerror ();
16001 return gai_strerror ();
16006 if ac_fn_c_try_link "$LINENO"; then :
16007 ac_cv_lib_inet6_gai_strerror=yes
16009 ac_cv_lib_inet6_gai_strerror=no
16011 rm -f core conftest.err conftest.$ac_objext \
16012 conftest$ac_exeext conftest.$ac_ext
16013 LIBS=$ac_check_lib_save_LIBS
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_gai_strerror" >&5
16016 $as_echo "$ac_cv_lib_inet6_gai_strerror" >&6; }
16017 if test "x$ac_cv_lib_inet6_gai_strerror" = xyes; then :
16018 if test $ipv6_libinet6 = no; then
16020 LIBS="$LIBS -linet6"
16023 if test $ipv6_libinet6 = no; then
16024 LDFLAGS="$SAVELDFLAGS"
16030 ipv6_cv_gai_strerror=no
16031 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
16032 -o $ac_cv_lib_inet6_gai_strerror = yes
16034 ipv6_cv_gai_strerror=yes
16036 if test $ipv6_cv_gai_strerror = no; then
16037 if test gai_strerror = getaddrinfo; then
16038 for ipv6_cv_pfx in o n; do
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16045 $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then :
16046 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
16047 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}gai_strerror" "$as_ac_var"
16048 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16055 if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
16057 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16059 ipv6_cv_gai_strerror=yes
16065 if test $ipv6_cv_gai_strerror = yes; then
16067 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16069 sasl_cv_getaddrinfo=no
16076 if test $sasl_cv_getaddrinfo = yes; then
16077 case " $LIBOBJS " in
16078 *" getaddrinfo.$ac_objext "* ) ;;
16079 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16083 GETADDRINFOOBJS="getaddrinfo.o"
16084 LTGETADDRINFOOBJS="getaddrinfo.lo"
16090 sasl_cv_getnameinfo=no
16092 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
16093 if test "x$ac_cv_func_getnameinfo" = xyes; then :
16094 ac_cv_lib_socket_getnameinfo=no
16095 ac_cv_lib_inet6_getnameinfo=no
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
16099 $as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
16100 if ${ac_cv_lib_socket_getnameinfo+:} false; then :
16101 $as_echo_n "(cached) " >&6
16103 ac_check_lib_save_LIBS=$LIBS
16104 LIBS="-lsocket $LIBS"
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h. */
16108 /* Override any GCC internal prototype to avoid an error.
16109 Use char because int might match the return type of a GCC
16110 builtin and then its argument prototype would still apply. */
16114 char getnameinfo ();
16118 return getnameinfo ();
16123 if ac_fn_c_try_link "$LINENO"; then :
16124 ac_cv_lib_socket_getnameinfo=yes
16126 ac_cv_lib_socket_getnameinfo=no
16128 rm -f core conftest.err conftest.$ac_objext \
16129 conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
16133 $as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
16134 if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then :
16135 LIBS="$LIBS -lsocket"
16136 ac_cv_lib_inet6_getnameinfo=no
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
16140 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
16141 if ${ipv6_cv_dir+:} false; then :
16142 $as_echo_n "(cached) " >&6
16144 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
16145 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
16151 $as_echo "$ipv6_cv_dir" >&6; }
16152 if test $ipv6_cv_dir = no; then
16153 ac_cv_lib_inet6_getnameinfo=no
16155 if test x$ipv6_libinet6 = x; then
16157 SAVELDFLAGS="$LDFLAGS"
16158 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
16161 $as_echo_n "checking for getnameinfo in -linet6... " >&6; }
16162 if ${ac_cv_lib_inet6_getnameinfo+:} false; then :
16163 $as_echo_n "(cached) " >&6
16165 ac_check_lib_save_LIBS=$LIBS
16166 LIBS="-linet6 $LIBS"
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16170 /* Override any GCC internal prototype to avoid an error.
16171 Use char because int might match the return type of a GCC
16172 builtin and then its argument prototype would still apply. */
16176 char getnameinfo ();
16180 return getnameinfo ();
16185 if ac_fn_c_try_link "$LINENO"; then :
16186 ac_cv_lib_inet6_getnameinfo=yes
16188 ac_cv_lib_inet6_getnameinfo=no
16190 rm -f core conftest.err conftest.$ac_objext \
16191 conftest$ac_exeext conftest.$ac_ext
16192 LIBS=$ac_check_lib_save_LIBS
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
16195 $as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
16196 if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then :
16197 if test $ipv6_libinet6 = no; then
16199 LIBS="$LIBS -linet6"
16202 if test $ipv6_libinet6 = no; then
16203 LDFLAGS="$SAVELDFLAGS"
16209 ipv6_cv_getnameinfo=no
16210 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
16211 -o $ac_cv_lib_inet6_getnameinfo = yes
16213 ipv6_cv_getnameinfo=yes
16215 if test $ipv6_cv_getnameinfo = no; then
16216 if test getnameinfo = getaddrinfo; then
16217 for ipv6_cv_pfx in o n; do
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16224 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
16225 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
16226 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
16227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16234 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
16236 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16238 ipv6_cv_getnameinfo=yes
16244 if test $ipv6_cv_getnameinfo = yes; then
16246 $as_echo "#define HAVE_GETNAMEINFO /**/" >>confdefs.h
16249 sasl_cv_getnameinfo=yes
16251 if test $sasl_cv_getnameinfo = yes; then
16252 case " $LIBOBJS " in
16253 *" getnameinfo.$ac_objext "* ) ;;
16254 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
16258 GETNAMEINFOOBJS="getnameinfo.o"
16259 LTGETNAMEINFOOBJS="getnameinfo.lo"
16264 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16268 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16269 if ${ac_cv_c_const+:} false; then :
16270 $as_echo_n "(cached) " >&6
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16278 /* FIXME: Include the comments suggested by Paul. */
16279 #ifndef __cplusplus
16280 /* Ultrix mips cc rejects this. */
16281 typedef int charset[2];
16283 /* SunOS 4.1.1 cc rejects this. */
16284 char const *const *pcpcc;
16286 /* NEC SVR4.0.2 mips cc rejects this. */
16287 struct point {int x, y;};
16288 static struct point const zero = {0,0};
16289 /* AIX XL C 1.02.0.0 rejects this.
16290 It does not let you subtract one const X* pointer from another in
16291 an arm of an if-expression whose if-part is not a constant
16293 const char *g = "string";
16294 pcpcc = &g + (g ? g-g : 0);
16295 /* HPUX 7.0 cc rejects these. */
16297 ppc = (char**) pcpcc;
16298 pcpcc = (char const *const *) ppc;
16299 { /* SCO 3.2v4 cc rejects this. */
16301 char const *s = 0 ? (char *) 0 : (char const *) 0;
16306 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16307 int x[] = {25, 17};
16308 const int *foo = &x[0];
16311 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16312 typedef const int *iptr;
16316 { /* AIX XL C 1.02.0.0 rejects this saying
16317 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16318 struct s { int j; const int *ap[3]; };
16319 struct s *b; b->j = 5;
16321 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16322 const int foo = 10;
16323 if (!foo) return 0;
16325 return !cs[0] && !zero.x;
16332 if ac_fn_c_try_compile "$LINENO"; then :
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16340 $as_echo "$ac_cv_c_const" >&6; }
16341 if test $ac_cv_c_const = no; then
16343 $as_echo "#define const /**/" >>confdefs.h
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16348 $as_echo_n "checking for inline... " >&6; }
16349 if ${ac_cv_c_inline+:} false; then :
16350 $as_echo_n "(cached) " >&6
16353 for ac_kw in inline __inline__ __inline; do
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 #ifndef __cplusplus
16358 static $ac_kw foo_t static_foo () {return 0; }
16359 $ac_kw foo_t foo () {return 0; }
16363 if ac_fn_c_try_compile "$LINENO"; then :
16364 ac_cv_c_inline=$ac_kw
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367 test "$ac_cv_c_inline" != no && break
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16372 $as_echo "$ac_cv_c_inline" >&6; }
16374 case $ac_cv_c_inline in
16377 case $ac_cv_c_inline in
16379 *) ac_val=$ac_cv_c_inline;;
16381 cat >>confdefs.h <<_ACEOF
16382 #ifndef __cplusplus
16383 #define inline $ac_val
16389 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16390 if test "x$ac_cv_type_mode_t" = xyes; then :
16394 cat >>confdefs.h <<_ACEOF
16400 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16401 if test "x$ac_cv_type_pid_t" = xyes; then :
16405 cat >>confdefs.h <<_ACEOF
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16412 $as_echo_n "checking return type of signal handlers... " >&6; }
16413 if ${ac_cv_type_signal+:} false; then :
16414 $as_echo_n "(cached) " >&6
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16418 #include <sys/types.h>
16419 #include <signal.h>
16424 return *(signal (0, 0)) (0) == 1;
16429 if ac_fn_c_try_compile "$LINENO"; then :
16430 ac_cv_type_signal=int
16432 ac_cv_type_signal=void
16434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16437 $as_echo "$ac_cv_type_signal" >&6; }
16439 cat >>confdefs.h <<_ACEOF
16440 #define RETSIGTYPE $ac_cv_type_signal
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16446 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16447 if ${ac_cv_header_time+:} false; then :
16448 $as_echo_n "(cached) " >&6
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452 #include <sys/types.h>
16453 #include <sys/time.h>
16459 if ((struct tm *) 0)
16465 if ac_fn_c_try_compile "$LINENO"; then :
16466 ac_cv_header_time=yes
16468 ac_cv_header_time=no
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16473 $as_echo "$ac_cv_header_time" >&6; }
16474 if test $ac_cv_header_time = yes; then
16476 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16481 $as_echo_n "checking for ANSI C header files... " >&6; }
16482 if ${ac_cv_header_stdc+:} false; then :
16483 $as_echo_n "(cached) " >&6
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16487 #include <stdlib.h>
16488 #include <stdarg.h>
16489 #include <string.h>
16500 if ac_fn_c_try_compile "$LINENO"; then :
16501 ac_cv_header_stdc=yes
16503 ac_cv_header_stdc=no
16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 if test $ac_cv_header_stdc = yes; then
16508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 #include <string.h>
16514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16515 $EGREP "memchr" >/dev/null 2>&1; then :
16518 ac_cv_header_stdc=no
16524 if test $ac_cv_header_stdc = yes; then
16525 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16528 #include <stdlib.h>
16531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16532 $EGREP "free" >/dev/null 2>&1; then :
16535 ac_cv_header_stdc=no
16541 if test $ac_cv_header_stdc = yes; then
16542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16543 if test "$cross_compiling" = yes; then :
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16549 #include <stdlib.h>
16550 #if ((' ' & 0x0FF) == 0x020)
16551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16554 # define ISLOWER(c) \
16555 (('a' <= (c) && (c) <= 'i') \
16556 || ('j' <= (c) && (c) <= 'r') \
16557 || ('s' <= (c) && (c) <= 'z'))
16558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16566 for (i = 0; i < 256; i++)
16567 if (XOR (islower (i), ISLOWER (i))
16568 || toupper (i) != TOUPPER (i))
16573 if ac_fn_c_try_run "$LINENO"; then :
16576 ac_cv_header_stdc=no
16578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16579 conftest.$ac_objext conftest.beam conftest.$ac_ext
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16585 $as_echo "$ac_cv_header_stdc" >&6; }
16586 if test $ac_cv_header_stdc = yes; then
16588 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16592 ac_header_dirent=no
16593 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16594 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16596 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16597 if eval \${$as_ac_Header+:} false; then :
16598 $as_echo_n "(cached) " >&6
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602 #include <sys/types.h>
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615 eval "$as_ac_Header=yes"
16617 eval "$as_ac_Header=no"
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621 eval ac_res=\$$as_ac_Header
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16623 $as_echo "$ac_res" >&6; }
16624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16625 cat >>confdefs.h <<_ACEOF
16626 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16629 ac_header_dirent=$ac_hdr; break
16633 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16634 if test $ac_header_dirent = dirent.h; then
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16636 $as_echo_n "checking for library containing opendir... " >&6; }
16637 if ${ac_cv_search_opendir+:} false; then :
16638 $as_echo_n "(cached) " >&6
16640 ac_func_search_save_LIBS=$LIBS
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16644 /* Override any GCC internal prototype to avoid an error.
16645 Use char because int might match the return type of a GCC
16646 builtin and then its argument prototype would still apply. */
16659 for ac_lib in '' dir; do
16660 if test -z "$ac_lib"; then
16661 ac_res="none required"
16664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16666 if ac_fn_c_try_link "$LINENO"; then :
16667 ac_cv_search_opendir=$ac_res
16669 rm -f core conftest.err conftest.$ac_objext \
16671 if ${ac_cv_search_opendir+:} false; then :
16675 if ${ac_cv_search_opendir+:} false; then :
16678 ac_cv_search_opendir=no
16680 rm conftest.$ac_ext
16681 LIBS=$ac_func_search_save_LIBS
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16684 $as_echo "$ac_cv_search_opendir" >&6; }
16685 ac_res=$ac_cv_search_opendir
16686 if test "$ac_res" != no; then :
16687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16693 $as_echo_n "checking for library containing opendir... " >&6; }
16694 if ${ac_cv_search_opendir+:} false; then :
16695 $as_echo_n "(cached) " >&6
16697 ac_func_search_save_LIBS=$LIBS
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16701 /* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
16703 builtin and then its argument prototype would still apply. */
16716 for ac_lib in '' x; do
16717 if test -z "$ac_lib"; then
16718 ac_res="none required"
16721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16723 if ac_fn_c_try_link "$LINENO"; then :
16724 ac_cv_search_opendir=$ac_res
16726 rm -f core conftest.err conftest.$ac_objext \
16728 if ${ac_cv_search_opendir+:} false; then :
16732 if ${ac_cv_search_opendir+:} false; then :
16735 ac_cv_search_opendir=no
16737 rm conftest.$ac_ext
16738 LIBS=$ac_func_search_save_LIBS
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16741 $as_echo "$ac_cv_search_opendir" >&6; }
16742 ac_res=$ac_cv_search_opendir
16743 if test "$ac_res" != no; then :
16744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16751 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16752 if ${ac_cv_header_sys_wait_h+:} false; then :
16753 $as_echo_n "(cached) " >&6
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757 #include <sys/types.h>
16758 #include <sys/wait.h>
16759 #ifndef WEXITSTATUS
16760 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16763 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16771 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16776 if ac_fn_c_try_compile "$LINENO"; then :
16777 ac_cv_header_sys_wait_h=yes
16779 ac_cv_header_sys_wait_h=no
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16784 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16785 if test $ac_cv_header_sys_wait_h = yes; then
16787 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16791 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
16793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16794 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16796 cat >>confdefs.h <<_ACEOF
16797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have ss_family in struct sockaddr_storage" >&5
16807 $as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; }
16808 if ${ipv6_cv_ss_family+:} false; then :
16809 $as_echo_n "(cached) " >&6
16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h. */
16813 #include <sys/types.h>
16814 #include <sys/socket.h>
16818 struct sockaddr_storage ss; int i = ss.ss_family;
16823 if ac_fn_c_try_compile "$LINENO"; then :
16824 ipv6_cv_ss_family=yes
16826 ipv6_cv_ss_family=no
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830 if test $ipv6_cv_ss_family = yes; then
16832 $as_echo "#define HAVE_SS_FAMILY /**/" >>confdefs.h
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_ss_family" >&5
16838 $as_echo "$ipv6_cv_ss_family" >&6; }
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5
16841 $as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
16842 if ${ipv6_cv_sa_len+:} false; then :
16843 $as_echo_n "(cached) " >&6
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h. */
16847 #include <sys/types.h>
16848 #include <sys/socket.h>
16852 struct sockaddr sa; int i = sa.sa_len;
16857 if ac_fn_c_try_compile "$LINENO"; then :
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 if test $ipv6_cv_sa_len = yes; then
16866 $as_echo "#define HAVE_SOCKADDR_SA_LEN /**/" >>confdefs.h
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_sa_len" >&5
16872 $as_echo "$ipv6_cv_sa_len" >&6; }
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
16875 $as_echo_n "checking for socklen_t... " >&6; }
16876 if ${ipv6_cv_socklen_t+:} false; then :
16877 $as_echo_n "(cached) " >&6
16879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880 /* end confdefs.h. */
16881 #include <sys/types.h>
16882 #include <sys/socket.h>
16891 if ac_fn_c_try_link "$LINENO"; then :
16892 ipv6_cv_socklen_t=yes
16894 ipv6_cv_socklen_t=no
16896 rm -f core conftest.err conftest.$ac_objext \
16897 conftest$ac_exeext conftest.$ac_ext
16899 if test $ipv6_cv_socklen_t = yes; then
16901 $as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_socklen_t" >&5
16907 $as_echo "$ipv6_cv_socklen_t" >&6; }
16911 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
16913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16915 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16916 cat >>confdefs.h <<_ACEOF
16917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16924 if test $enable_cmulocal = yes; then
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling CMU local kludges" >&5
16926 $as_echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
16928 $as_echo "#define KRB4_IGNORE_IP_ADDRESS /**/" >>confdefs.h
16931 cat >>confdefs.h <<_ACEOF
16932 #define PREFER_MECH "KERBEROS_V4"
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16939 #include <sys/socket.h>
16942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16943 $EGREP "sockaddr_storage" >/dev/null 2>&1; then :
16946 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE /**/" >>confdefs.h
16956 subdirs="$subdirs saslauthd"
16963 ac_config_headers="$ac_config_headers config.h"
16966 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"
16968 cat >confcache <<\_ACEOF
16969 # This file is a shell script that caches the results of configure
16970 # tests run on this system so they can be shared between configure
16971 # scripts and configure runs, see configure's option --config-cache.
16972 # It is not useful on other systems. If it contains results you don't
16973 # want to keep, you may remove or edit it.
16975 # config.status only pays attention to the cache file if you give it
16976 # the --recheck option to rerun configure.
16978 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16979 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16980 # following values.
16984 # The following way of writing the cache mishandles newlines in values,
16985 # but we know of no workaround that is simple, portable, and efficient.
16986 # So, we kill variables containing newlines.
16987 # Ultrix sh set writes to stderr and can't be redirected directly,
16988 # and sets the high bit in the cache file unless we assign to the vars.
16990 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16991 eval ac_val=\$$ac_var
16995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16996 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16999 _ | IFS | as_nl) ;; #(
17000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17001 *) { eval $ac_var=; unset $ac_var;} ;;
17007 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17008 *${as_nl}ac_space=\ *)
17009 # `set' does not quote correctly, so add quotes: double-quote
17010 # substitution turns \\\\ into \\, and sed turns \\ into \.
17013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17016 # `set' quotes correctly as required by POSIX, so do not add quotes.
17017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17026 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17028 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17030 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17031 if test -w "$cache_file"; then
17032 if test "x$cache_file" != "x/dev/null"; then
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17034 $as_echo "$as_me: updating cache $cache_file" >&6;}
17035 if test ! -f "$cache_file" || test -h "$cache_file"; then
17036 cat confcache >"$cache_file"
17038 case $cache_file in #(
17040 mv -f confcache "$cache_file"$$ &&
17041 mv -f "$cache_file"$$ "$cache_file" ;; #(
17043 mv -f confcache "$cache_file" ;;
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17055 # Let make expand exec_prefix.
17056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17058 DEFS=-DHAVE_CONFIG_H
17063 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17064 # 1. Remove the extension, and $U if already installed.
17065 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17066 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17067 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17068 # will be set to the directory where LIBOBJS objects are built.
17069 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17070 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17072 LIBOBJS=$ac_libobjs
17074 LTLIBOBJS=$ac_ltlibobjs
17077 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17078 as_fn_error $? "conditional \"AMDEP\" was never defined.
17079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17081 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17082 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17085 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
17086 as_fn_error $? "conditional \"JAVA\" was never defined.
17087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17089 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
17090 as_fn_error $? "conditional \"SAMPLE\" was never defined.
17091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17093 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
17094 as_fn_error $? "conditional \"NO_SASL_DB_MANS\" was never defined.
17095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17097 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
17098 as_fn_error $? "conditional \"SASLAUTHD\" was never defined.
17099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17101 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
17102 as_fn_error $? "conditional \"PWCHECK\" was never defined.
17103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17105 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
17106 as_fn_error $? "conditional \"MACOSX\" was never defined.
17107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17110 : "${CONFIG_STATUS=./config.status}"
17112 ac_clean_files_save=$ac_clean_files
17113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17115 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17117 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17119 # Generated by $as_me.
17120 # Run this file to recreate the current configuration.
17121 # Compiler output produced by configure, useful for debugging
17122 # configure, is in config.log if it exists.
17125 ac_cs_recheck=false
17128 SHELL=\${CONFIG_SHELL-$SHELL}
17131 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17132 ## -------------------- ##
17133 ## M4sh Initialization. ##
17134 ## -------------------- ##
17136 # Be more Bourne compatible
17137 DUALCASE=1; export DUALCASE # for MKS sh
17138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17141 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17142 # is contrary to our usage. Disable this feature.
17143 alias -g '${1+"$@"}'='"$@"'
17144 setopt NO_GLOB_SUBST
17146 case `(set -o) 2>/dev/null` in #(
17158 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17159 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17162 # Prefer a ksh shell builtin over an external printf program on Solaris,
17163 # but without wasting forks for bash or zsh.
17164 if test -z "$BASH_VERSION$ZSH_VERSION" \
17165 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17166 as_echo='print -r --'
17167 as_echo_n='print -rn --'
17168 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17169 as_echo='printf %s\n'
17170 as_echo_n='printf %s'
17172 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17173 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17174 as_echo_n='/usr/ucb/echo -n'
17176 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17177 as_echo_n_body='eval
17181 expr "X$arg" : "X\\(.*\\)$as_nl";
17182 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17184 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17186 export as_echo_n_body
17187 as_echo_n='sh -c $as_echo_n_body as_echo'
17189 export as_echo_body
17190 as_echo='sh -c $as_echo_body as_echo'
17193 # The user is always right.
17194 if test "${PATH_SEPARATOR+set}" != set; then
17196 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17197 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17204 # We need space, tab and new line, in precisely that order. Quoting is
17205 # there to prevent editors from complaining about space-tab.
17206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17207 # splitting by setting IFS to empty value.)
17210 # Find who we are. Look in the path if we contain no directory separator.
17213 *[\\/]* ) as_myself=$0 ;;
17214 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17215 for as_dir in $PATH
17218 test -z "$as_dir" && as_dir=.
17219 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17225 # We did not find ourselves, most probably we were run as `sh COMMAND'
17226 # in which case we are not to be found in the path.
17227 if test "x$as_myself" = x; then
17230 if test ! -f "$as_myself"; then
17231 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17235 # Unset variables that we do not need and which cause bugs (e.g. in
17236 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17237 # suppresses any "Segmentation fault" message there. '((' could
17238 # trigger a bug in pdksh 5.2.14.
17239 for as_var in BASH_ENV ENV MAIL MAILPATH
17240 do eval test x\${$as_var+set} = xset \
17241 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17257 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17258 # ----------------------------------------
17259 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17260 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17261 # script with STATUS, using 1 if that was 0.
17264 as_status=$1; test $as_status -eq 0 && as_status=1
17266 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17267 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17269 $as_echo "$as_me: error: $2" >&2
17270 as_fn_exit $as_status
17274 # as_fn_set_status STATUS
17275 # -----------------------
17276 # Set $? to STATUS, without forking.
17277 as_fn_set_status ()
17280 } # as_fn_set_status
17282 # as_fn_exit STATUS
17283 # -----------------
17284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17288 as_fn_set_status $1
17294 # Portably unset VAR.
17297 { eval $1=; unset $1;}
17299 as_unset=as_fn_unset
17300 # as_fn_append VAR VALUE
17301 # ----------------------
17302 # Append the text in VALUE to the end of the definition contained in VAR. Take
17303 # advantage of any shell optimizations that allow amortized linear growth over
17304 # repeated appends, instead of the typical quadratic growth present in naive
17306 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17307 eval 'as_fn_append ()
17318 # as_fn_arith ARG...
17319 # ------------------
17320 # Perform arithmetic evaluation on the ARGs, and store the result in the
17321 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17322 # must be portable across $(()) and expr.
17323 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17324 eval 'as_fn_arith ()
17331 as_val=`expr "$@" || test $? -eq 1`
17336 if expr a : '\(a\)' >/dev/null 2>&1 &&
17337 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17344 as_basename=basename
17349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17355 as_me=`$as_basename -- "$0" ||
17356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17357 X"$0" : 'X\(//\)$' \| \
17358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17360 sed '/^.*\/\([^/][^/]*\)\/*$/{
17374 # Avoid depending upon Character Ranges.
17375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17378 as_cr_digits='0123456789'
17379 as_cr_alnum=$as_cr_Letters$as_cr_digits
17381 ECHO_C= ECHO_N= ECHO_T=
17382 case `echo -n x` in #(((((
17384 case `echo 'xy\c'` in
17385 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17387 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17394 rm -f conf$$ conf$$.exe conf$$.file
17395 if test -d conf$$.dir; then
17396 rm -f conf$$.dir/conf$$.file
17399 mkdir conf$$.dir 2>/dev/null
17401 if (echo >conf$$.file) 2>/dev/null; then
17402 if ln -s conf$$.file conf$$ 2>/dev/null; then
17404 # ... but there are two gotchas:
17405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17407 # In both cases, we have to default to `cp -p'.
17408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17410 elif ln conf$$.file conf$$ 2>/dev/null; then
17418 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17419 rmdir conf$$.dir 2>/dev/null
17424 # Create "$as_dir" as a directory, including parents if necessary.
17429 -*) as_dir=./$as_dir;;
17431 test -d "$as_dir" || eval $as_mkdir_p || {
17435 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17436 *) as_qdir=$as_dir;;
17438 as_dirs="'$as_qdir' $as_dirs"
17439 as_dir=`$as_dirname -- "$as_dir" ||
17440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17441 X"$as_dir" : 'X\(//\)[^/]' \| \
17442 X"$as_dir" : 'X\(//\)$' \| \
17443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17444 $as_echo X"$as_dir" |
17445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17449 /^X\(\/\/\)[^/].*/{
17462 test -d "$as_dir" && break
17464 test -z "$as_dirs" || eval "mkdir $as_dirs"
17465 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17469 if mkdir -p . 2>/dev/null; then
17470 as_mkdir_p='mkdir -p "$as_dir"'
17472 test -d ./-p && rmdir ./-p
17476 if test -x / >/dev/null 2>&1; then
17477 as_test_x='test -x'
17479 if ls -dL / >/dev/null 2>&1; then
17486 if test -d "$1"; then
17492 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17493 ???[sx]*):;;*)false;;esac;fi
17497 as_executable_p=$as_test_x
17499 # Sed expression to map a string onto a valid CPP name.
17500 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17502 # Sed expression to map a string onto a valid variable name.
17503 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17507 ## ----------------------------------- ##
17508 ## Main body of $CONFIG_STATUS script. ##
17509 ## ----------------------------------- ##
17511 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17514 # Save the log message, to keep $0 and so on meaningful, and to
17515 # report actual input values of CONFIG_FILES etc. instead of their
17516 # values after options handling.
17518 This file was extended by $as_me, which was
17519 generated by GNU Autoconf 2.68. Invocation command line was
17521 CONFIG_FILES = $CONFIG_FILES
17522 CONFIG_HEADERS = $CONFIG_HEADERS
17523 CONFIG_LINKS = $CONFIG_LINKS
17524 CONFIG_COMMANDS = $CONFIG_COMMANDS
17527 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17532 case $ac_config_files in *"
17533 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17536 case $ac_config_headers in *"
17537 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17542 # Files that config.status was made for.
17543 config_files="$ac_config_files"
17544 config_headers="$ac_config_headers"
17545 config_commands="$ac_config_commands"
17549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17551 \`$as_me' instantiates files and other configuration actions
17552 from templates according to the current configuration. Unless the files
17553 and actions are specified as TAGs, all are instantiated by default.
17555 Usage: $0 [OPTION]... [TAG]...
17557 -h, --help print this help, then exit
17558 -V, --version print version number and configuration settings, then exit
17559 --config print configuration, then exit
17560 -q, --quiet, --silent
17561 do not print progress messages
17562 -d, --debug don't remove temporary files
17563 --recheck update $as_me by reconfiguring in the same conditions
17564 --file=FILE[:TEMPLATE]
17565 instantiate the configuration file FILE
17566 --header=FILE[:TEMPLATE]
17567 instantiate the configuration header FILE
17569 Configuration files:
17572 Configuration headers:
17575 Configuration commands:
17578 Report bugs to the package provider."
17581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17582 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17585 configured by $0, generated by GNU Autoconf 2.68,
17586 with options \\"\$ac_cs_config\\"
17588 Copyright (C) 2010 Free Software Foundation, Inc.
17589 This config.status script is free software; the Free Software Foundation
17590 gives unlimited permission to copy, distribute and modify it."
17597 test -n "\$AWK" || AWK=awk
17600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17601 # The default lists apply if the user does not specify any file.
17607 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17608 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17624 # Handling of the options.
17625 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17627 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17628 $as_echo "$ac_cs_version"; exit ;;
17629 --config | --confi | --conf | --con | --co | --c )
17630 $as_echo "$ac_cs_config"; exit ;;
17631 --debug | --debu | --deb | --de | --d | -d )
17633 --file | --fil | --fi | --f )
17636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17637 '') as_fn_error $? "missing file argument" ;;
17639 as_fn_append CONFIG_FILES " '$ac_optarg'"
17640 ac_need_defaults=false;;
17641 --header | --heade | --head | --hea )
17644 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17646 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17647 ac_need_defaults=false;;
17649 # Conflict between --help and --header
17650 as_fn_error $? "ambiguous option: \`$1'
17651 Try \`$0 --help' for more information.";;
17652 --help | --hel | -h )
17653 $as_echo "$ac_cs_usage"; exit ;;
17654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17658 # This is an error.
17659 -*) as_fn_error $? "unrecognized option: \`$1'
17660 Try \`$0 --help' for more information." ;;
17662 *) as_fn_append ac_config_targets " $1"
17663 ac_need_defaults=false ;;
17669 ac_configure_extra_args=
17671 if $ac_cs_silent; then
17673 ac_configure_extra_args="$ac_configure_extra_args --silent"
17677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17678 if \$ac_cs_recheck; then
17679 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17681 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17682 CONFIG_SHELL='$SHELL'
17683 export CONFIG_SHELL
17688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17693 ## Running $as_me. ##
17699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17703 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17706 # The HP-UX ksh and POSIX shell print the target directory to stdout
17707 # if CDPATH is set.
17708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17710 sed_quote_subst='$sed_quote_subst'
17711 double_quote_subst='$double_quote_subst'
17712 delay_variable_subst='$delay_variable_subst'
17713 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17714 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17715 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17716 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17717 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17718 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17719 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17720 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17721 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17722 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17723 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17724 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17725 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17726 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17727 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17728 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17729 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17730 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17731 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17732 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17733 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17734 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17735 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17736 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17737 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17738 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17739 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17740 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17741 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17742 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17743 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17744 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17745 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17746 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17747 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17748 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17749 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17750 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17751 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17752 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17753 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17754 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17755 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17756 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17757 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17758 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17759 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17760 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17761 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"`'
17762 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17763 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17764 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17765 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17766 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17767 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17768 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17769 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17770 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17771 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17772 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17773 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17774 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17775 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17776 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17777 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17778 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17779 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17780 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17781 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17782 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17783 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17784 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17785 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17786 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17787 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17788 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17789 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17790 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17791 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17792 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17793 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17794 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17795 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17796 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17797 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17798 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17799 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17800 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17801 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17802 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17803 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17804 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17805 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17806 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17807 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17808 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17809 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17810 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17811 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17812 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17813 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17814 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17815 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17816 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17817 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17818 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17819 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17820 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17821 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17822 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17823 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17824 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17825 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17826 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17827 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17828 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17829 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17830 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17831 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17832 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17835 LTCFLAGS='$LTCFLAGS'
17836 compiler='$compiler_DEFAULT'
17838 # A function that is used when there is no print builtin or printf.
17839 func_fallback_echo ()
17841 eval 'cat <<_LTECHO_EOF
17846 # Quote evaled strings.
17860 deplibs_check_method \
17869 lt_cv_sys_global_symbol_pipe \
17870 lt_cv_sys_global_symbol_to_cdecl \
17871 lt_cv_sys_global_symbol_to_c_name_address \
17872 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17873 lt_prog_compiler_no_builtin_flag \
17874 lt_prog_compiler_wl \
17875 lt_prog_compiler_pic \
17876 lt_prog_compiler_static \
17877 lt_cv_prog_compiler_c_o \
17885 export_dynamic_flag_spec \
17886 whole_archive_flag_spec \
17887 compiler_needs_object \
17889 allow_undefined_flag \
17890 no_undefined_flag \
17891 hardcode_libdir_flag_spec \
17892 hardcode_libdir_flag_spec_ld \
17893 hardcode_libdir_separator \
17898 variables_saved_for_relink \
17900 library_names_spec \
17902 install_override_mode \
17906 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17907 *[\\\\\\\`\\"\\\$]*)
17908 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17911 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17916 # Double-quote double-evaled strings.
17917 for var in reload_cmds \
17918 old_postinstall_cmds \
17919 old_postuninstall_cmds \
17921 extract_expsyms_cmds \
17922 old_archive_from_new_cmds \
17923 old_archive_from_expsyms_cmds \
17925 archive_expsym_cmds \
17927 module_expsym_cmds \
17928 export_symbols_cmds \
17931 postuninstall_cmds \
17933 sys_lib_search_path_spec \
17934 sys_lib_dlsearch_path_spec; do
17935 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17936 *[\\\\\\\`\\"\\\$]*)
17937 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17940 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17945 ac_aux_dir='$ac_aux_dir'
17946 xsi_shell='$xsi_shell'
17947 lt_shell_append='$lt_shell_append'
17949 # See if we are running on zsh, and set the options which allow our
17950 # commands through without removal of \ escapes INIT.
17951 if test -n "\${ZSH_VERSION+set}" ; then
17952 setopt NO_GLOB_SUBST
17958 TIMESTAMP='$TIMESTAMP'
17967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17969 # Handling of arguments.
17970 for ac_config_target in $ac_config_targets
17972 case $ac_config_target in
17973 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17974 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17975 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17976 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17977 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17978 "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
17979 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
17980 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17981 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17982 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17983 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
17984 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
17985 "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
17986 "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
17987 "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
17988 "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
17989 "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
17990 "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
17991 "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
17992 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17994 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17999 # If the user did not use the arguments to specify the items to instantiate,
18000 # then the envvar interface is used. Set only those that are not.
18001 # We use the long form for the default assignment because of an extremely
18002 # bizarre bug on SunOS 4.1.3.
18003 if $ac_need_defaults; then
18004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18009 # Have a temporary directory for convenience. Make it in the build tree
18010 # simply because there is no reason against having it here, and in addition,
18011 # creating and moving files from /tmp can sometimes cause problems.
18012 # Hook for its removal unless debugging.
18013 # Note that there is a small window in which the directory will not be cleaned:
18014 # after its creation but before its name has been assigned to `$tmp'.
18018 trap 'exit_status=$?
18019 : "${ac_tmp:=$tmp}"
18020 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18022 trap 'as_fn_exit 1' 1 2 13 15
18024 # Create a (secure) tmp directory for tmp files.
18027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18031 tmp=./conf$$-$RANDOM
18032 (umask 077 && mkdir "$tmp")
18033 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18036 # Set up the scripts for CONFIG_FILES section.
18037 # No need to generate them if there are no CONFIG_FILES.
18038 # This happens for instance with `./config.status config.h'.
18039 if test -n "$CONFIG_FILES"; then
18042 ac_cr=`echo X | tr X '\015'`
18043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18044 # But we know of no other shell where ac_cr would be empty at this
18045 # point, so we can use a bashism as a fallback.
18046 if test "x$ac_cr" = x; then
18047 eval ac_cr=\$\'\\r\'
18049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18053 ac_cs_awk_cr=$ac_cr
18056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18061 echo "cat >conf$$subs.awk <<_ACEOF" &&
18062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18064 } >conf$$subs.sh ||
18065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18068 for ac_last_try in false false false false false :; do
18069 . ./conf$$subs.sh ||
18070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18073 if test $ac_delim_n = $ac_delim_num; then
18075 elif $ac_last_try; then
18076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18081 rm -f conf$$subs.sh
18083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18088 s/^/S["/; s/!.*/"]=/
18098 s/\(.\{148\}\)..*/\1/
18100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18112 s/\(.\{148\}\)..*/\1/
18114 s/["\\]/\\&/g; s/^/"/; s/$/"/
18118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18123 ' <conf$$subs.awk | sed '
18128 ' >>$CONFIG_STATUS || ac_write_fail=1
18129 rm -f conf$$subs.awk
18130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18133 for (key in S) S_is_set[key] = 1
18139 nfields = split(line, field, "@")
18141 len = length(field[1])
18142 for (i = 2; i < nfields; i++) {
18144 keylen = length(key)
18145 if (S_is_set[key]) {
18147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18148 len += length(value) + length(field[++i])
18159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18161 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18164 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18165 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18170 # trailing colons and then remove the whole line if VPATH becomes empty
18171 # (actually we leave an empty line to preserve line numbers).
18172 if test "x$srcdir" = x.; then
18173 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18192 fi # test -n "$CONFIG_FILES"
18194 # Set up the scripts for CONFIG_HEADERS section.
18195 # No need to generate them if there are no CONFIG_HEADERS.
18196 # This happens for instance with `./config.status Makefile'.
18197 if test -n "$CONFIG_HEADERS"; then
18198 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18202 # Transform confdefs.h into an awk script `defines.awk', embedded as
18203 # here-document in config.status, that substitutes the proper values into
18204 # config.h.in to produce config.h.
18206 # Create a delimiter string that does not exist in confdefs.h, to ease
18207 # handling of long lines.
18209 for ac_last_try in false false :; do
18210 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18211 if test -z "$ac_tt"; then
18213 elif $ac_last_try; then
18214 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18220 # For the awk script, D is an array of macro values keyed by name,
18221 # likewise P contains macro parameters if any. Preserve backslash
18222 # newline sequences.
18224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18226 s/.\{148\}/&'"$ac_delim"'/g
18229 s/^[ ]*#[ ]*define[ ][ ]*/ /
18236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18238 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18243 D["\1"]=" \3\\\\\\n"\\/p
18245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18250 s/.\{148\}/&'"$ac_delim"'/g
18255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18260 ' <confdefs.h | sed '
18261 s/'"$ac_delim"'/"\\\
18262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18265 for (key in D) D_is_set[key] = 1
18268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18270 split(line, arg, " ")
18271 if (arg[1] == "#") {
18275 defundef = substr(arg[1], 2)
18278 split(mac1, mac2, "(") #)
18280 prefix = substr(line, 1, index(line, defundef) - 1)
18281 if (D_is_set[macro]) {
18282 # Preserve the white space surrounding the "#".
18283 print prefix "define", macro P[macro] D[macro]
18286 # Replace #undef with comments. This is necessary, for example,
18287 # in the case of _POSIX_SOURCE, which is predefined and required
18288 # on some systems where configure will not decide to define it.
18289 if (defundef == "undef") {
18290 print "/*", prefix defundef, macro, "*/"
18298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18299 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18300 fi # test -n "$CONFIG_HEADERS"
18303 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18308 :[FHLC]) ac_mode=$ac_tag; continue;;
18310 case $ac_mode$ac_tag in
18312 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18313 :[FH]-) ac_tag=-:-;;
18314 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18331 -) ac_f="$ac_tmp/stdin";;
18332 *) # Look for the file first in the build tree, then in the source tree
18333 # (if the path is not absolute). The absolute path cannot be DOS-style,
18334 # because $ac_f cannot contain `:'.
18338 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18340 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18343 as_fn_append ac_file_inputs " '$ac_f'"
18346 # Let's still pretend it is `configure' which instantiates (i.e., don't
18347 # use $as_me), people would be surprised to read:
18348 # /* config.h. Generated by config.status. */
18349 configure_input='Generated from '`
18350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18352 if test x"$ac_file" != x-; then
18353 configure_input="$ac_file. $configure_input"
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18355 $as_echo "$as_me: creating $ac_file" >&6;}
18357 # Neutralize special characters interpreted by sed in replacement strings.
18358 case $configure_input in #(
18359 *\&* | *\|* | *\\* )
18360 ac_sed_conf_input=`$as_echo "$configure_input" |
18361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18362 *) ac_sed_conf_input=$configure_input;;
18366 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18372 ac_dir=`$as_dirname -- "$ac_file" ||
18373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18374 X"$ac_file" : 'X\(//\)[^/]' \| \
18375 X"$ac_file" : 'X\(//\)$' \| \
18376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18377 $as_echo X"$ac_file" |
18378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18382 /^X\(\/\/\)[^/].*/{
18395 as_dir="$ac_dir"; as_fn_mkdir_p
18399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18402 # A ".." for each directory in $ac_dir_suffix.
18403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18404 case $ac_top_builddir_sub in
18405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18409 ac_abs_top_builddir=$ac_pwd
18410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18411 # for backward compatibility:
18412 ac_top_builddir=$ac_top_build_prefix
18415 .) # We are building in place.
18417 ac_top_srcdir=$ac_top_builddir_sub
18418 ac_abs_top_srcdir=$ac_pwd ;;
18419 [\\/]* | ?:[\\/]* ) # Absolute name.
18420 ac_srcdir=$srcdir$ac_dir_suffix;
18421 ac_top_srcdir=$srcdir
18422 ac_abs_top_srcdir=$srcdir ;;
18423 *) # Relative name.
18424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18425 ac_top_srcdir=$ac_top_build_prefix$srcdir
18426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18438 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18439 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18441 ac_MKDIR_P=$MKDIR_P
18443 [\\/$]* | ?:[\\/]* ) ;;
18444 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18449 # If the template does not know about datarootdir, expand it.
18450 # FIXME: This hack should be removed a few years after 2.60.
18451 ac_datarootdir_hack=; ac_datarootdir_seen=
18462 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18463 *datarootdir*) ac_datarootdir_seen=yes;;
18464 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18466 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18469 ac_datarootdir_hack='
18470 s&@datadir@&$datadir&g
18471 s&@docdir@&$docdir&g
18472 s&@infodir@&$infodir&g
18473 s&@localedir@&$localedir&g
18474 s&@mandir@&$mandir&g
18475 s&\\\${datarootdir}&$datarootdir&g' ;;
18479 # Neutralize VPATH when `$srcdir' = `.'.
18480 # Shell code in configure.ac might set extrasub.
18481 # FIXME: do we really want to maintain this feature?
18482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18483 ac_sed_extra="$ac_vpsub
18486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18489 s|@configure_input@|$ac_sed_conf_input|;t t
18490 s&@top_builddir@&$ac_top_builddir_sub&;t t
18491 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18492 s&@srcdir@&$ac_srcdir&;t t
18493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18494 s&@top_srcdir@&$ac_top_srcdir&;t t
18495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18496 s&@builddir@&$ac_builddir&;t t
18497 s&@abs_builddir@&$ac_abs_builddir&;t t
18498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18499 s&@INSTALL@&$ac_INSTALL&;t t
18500 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18501 $ac_datarootdir_hack
18503 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18504 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18507 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18509 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18511 which seems to be undefined. Please make sure it is defined" >&5
18512 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18513 which seems to be undefined. Please make sure it is defined" >&2;}
18515 rm -f "$ac_tmp/stdin"
18517 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18518 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18526 if test x"$ac_file" != x-; then
18528 $as_echo "/* $configure_input */" \
18529 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18530 } >"$ac_tmp/config.h" \
18531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18532 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18537 mv "$ac_tmp/config.h" "$ac_file" \
18538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18541 $as_echo "/* $configure_input */" \
18542 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18543 || as_fn_error $? "could not create -" "$LINENO" 5
18545 # Compute "$ac_file"'s index in $config_headers.
18548 for _am_header in $config_headers :; do
18549 case $_am_header in
18550 $_am_arg | $_am_arg:* )
18553 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18558 X"$_am_arg" : 'X\(//\)[^/]' \| \
18559 X"$_am_arg" : 'X\(//\)$' \| \
18560 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18561 $as_echo X"$_am_arg" |
18562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18566 /^X\(\/\/\)[^/].*/{
18578 s/.*/./; q'`/stamp-h$_am_stamp_count
18581 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18582 $as_echo "$as_me: executing $ac_file commands" >&6;}
18587 case $ac_file$ac_mode in
18588 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18589 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18590 # are listed without --file. Let's play safe and only enable the eval
18591 # if we detect the quoting.
18592 case $CONFIG_FILES in
18593 *\'*) eval set x "$CONFIG_FILES" ;;
18594 *) set x $CONFIG_FILES ;;
18599 # Strip MF so we end up with the name of the file.
18600 mf=`echo "$mf" | sed -e 's/:.*$//'`
18601 # Check whether this is an Automake generated Makefile or not.
18602 # We used to match only the files named `Makefile.in', but
18603 # some people rename them; so instead we look at the file content.
18604 # Grep'ing the first line is not enough: some people post-process
18605 # each Makefile.in and add a new line on top of each file to say so.
18606 # Grep'ing the whole file is not good either: AIX grep has a line
18607 # limit of 2048, but all sed's we know have understand at least 4000.
18608 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18609 dirpart=`$as_dirname -- "$mf" ||
18610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18611 X"$mf" : 'X\(//\)[^/]' \| \
18612 X"$mf" : 'X\(//\)$' \| \
18613 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18619 /^X\(\/\/\)[^/].*/{
18635 # Extract the definition of DEPDIR, am__include, and am__quote
18636 # from the Makefile without running `make'.
18637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18638 test -z "$DEPDIR" && continue
18639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18640 test -z "am__include" && continue
18641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18642 # When using ansi2knr, U may be empty or an underscore; expand it
18643 U=`sed -n 's/^U = //p' < "$mf"`
18644 # Find all dependency output files, they are included files with
18645 # $(DEPDIR) in their names. We invoke sed twice because it is the
18646 # simplest approach to changing $(DEPDIR) to its actual value in the
18648 for file in `sed -n "
18649 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18650 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18651 # Make sure the directory exists.
18652 test -f "$dirpart/$file" && continue
18653 fdir=`$as_dirname -- "$file" ||
18654 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18655 X"$file" : 'X\(//\)[^/]' \| \
18656 X"$file" : 'X\(//\)$' \| \
18657 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18658 $as_echo X"$file" |
18659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18663 /^X\(\/\/\)[^/].*/{
18676 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18677 # echo "creating $dirpart/$file"
18678 echo '# dummy' > "$dirpart/$file"
18685 # See if we are running on zsh, and set the options which allow our
18686 # commands through without removal of \ escapes.
18687 if test -n "${ZSH_VERSION+set}" ; then
18688 setopt NO_GLOB_SUBST
18691 cfgfile="${ofile}T"
18692 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18695 cat <<_LT_EOF >> "$cfgfile"
18698 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18699 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18701 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18703 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18704 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18706 # Written by Gordon Matzigkeit, 1996
18708 # This file is part of GNU Libtool.
18710 # GNU Libtool is free software; you can redistribute it and/or
18711 # modify it under the terms of the GNU General Public License as
18712 # published by the Free Software Foundation; either version 2 of
18713 # the License, or (at your option) any later version.
18715 # As a special exception to the GNU General Public License,
18716 # if you distribute this file as part of a program or library that
18717 # is built using GNU Libtool, you may include this file under the
18718 # same distribution terms that you use for the rest of that program.
18720 # GNU Libtool is distributed in the hope that it will be useful,
18721 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18722 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18723 # GNU General Public License for more details.
18725 # You should have received a copy of the GNU General Public License
18726 # along with GNU Libtool; see the file COPYING. If not, a copy
18727 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18728 # obtained by writing to the Free Software Foundation, Inc.,
18729 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18732 # The names of the tagged configurations supported by this script.
18735 # ### BEGIN LIBTOOL CONFIG
18737 # Whether or not to build static libraries.
18738 build_old_libs=$enable_static
18740 # Which release of libtool.m4 was used?
18741 macro_version=$macro_version
18742 macro_revision=$macro_revision
18744 # Whether or not to build shared libraries.
18745 build_libtool_libs=$enable_shared
18747 # What type of objects to build.
18750 # Whether or not to optimize for fast installation.
18751 fast_install=$enable_fast_install
18753 # Shell to use when invoking shell scripts.
18756 # An echo program that protects backslashes.
18760 host_alias=$host_alias
18764 # The build system.
18765 build_alias=$build_alias
18769 # A sed program that does not truncate output.
18772 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18773 Xsed="\$SED -e 1s/^X//"
18775 # A grep program that handles long lines.
18781 # A literal string matcher.
18784 # A BSD- or MS-compatible name lister.
18787 # Whether we need soft or hard links.
18790 # What is the maximum length of a command?
18791 max_cmd_len=$max_cmd_len
18793 # Object file suffix (normally "o").
18796 # Executable file suffix (normally "").
18799 # whether the shell understands "unset".
18802 # turn spaces into newlines.
18805 # turn newlines into spaces.
18808 # An object symbol dumper.
18809 OBJDUMP=$lt_OBJDUMP
18811 # Method to check whether dependent libraries are shared objects.
18812 deplibs_check_method=$lt_deplibs_check_method
18814 # Command to use when deplibs_check_method == "file_magic".
18815 file_magic_cmd=$lt_file_magic_cmd
18819 AR_FLAGS=$lt_AR_FLAGS
18821 # A symbol stripping program.
18824 # Commands used to install an old-style archive.
18826 old_postinstall_cmds=$lt_old_postinstall_cmds
18827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18829 # Whether to use a lock for old archive extraction.
18830 lock_old_archive_extraction=$lock_old_archive_extraction
18835 # LTCC compiler flags.
18836 LTCFLAGS=$lt_CFLAGS
18838 # Take the output of nm and produce a listing of raw symbols and C names.
18839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18841 # Transform the output of nm in a proper C declaration.
18842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18844 # Transform the output of nm in a C name address pair.
18845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18847 # Transform the output of nm in a C name address pair when lib prefix is needed.
18848 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18850 # The name of the directory that contains temporary libtool files.
18853 # Used to examine libraries when file_magic_cmd begins with "file".
18854 MAGIC_CMD=$MAGIC_CMD
18856 # Must we lock files when doing compilation?
18857 need_locks=$lt_need_locks
18859 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18860 DSYMUTIL=$lt_DSYMUTIL
18862 # Tool to change global to local symbols on Mac OS X.
18865 # Tool to manipulate fat objects and archives on Mac OS X.
18868 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18871 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18872 OTOOL64=$lt_OTOOL64
18874 # Old archive suffix (normally "a").
18877 # Shared library suffix (normally ".so").
18878 shrext_cmds=$lt_shrext_cmds
18880 # The commands to extract the exported symbol list from a shared archive.
18881 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18883 # Variables whose values should be saved in libtool wrapper scripts and
18884 # restored at link time.
18885 variables_saved_for_relink=$lt_variables_saved_for_relink
18887 # Do we need the "lib" prefix for modules?
18888 need_lib_prefix=$need_lib_prefix
18890 # Do we need a version for libraries?
18891 need_version=$need_version
18893 # Library versioning type.
18894 version_type=$version_type
18896 # Shared library runtime path variable.
18897 runpath_var=$runpath_var
18899 # Shared library path variable.
18900 shlibpath_var=$shlibpath_var
18902 # Is shlibpath searched before the hard-coded library search path?
18903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18905 # Format of library name prefix.
18906 libname_spec=$lt_libname_spec
18908 # List of archive names. First name is the real one, the rest are links.
18909 # The last name is the one that the linker finds with -lNAME
18910 library_names_spec=$lt_library_names_spec
18912 # The coded name of the library, if different from the real name.
18913 soname_spec=$lt_soname_spec
18915 # Permission mode override for installation of shared libraries.
18916 install_override_mode=$lt_install_override_mode
18918 # Command to use after installation of a shared archive.
18919 postinstall_cmds=$lt_postinstall_cmds
18921 # Command to use after uninstallation of a shared archive.
18922 postuninstall_cmds=$lt_postuninstall_cmds
18924 # Commands used to finish a libtool library installation in a directory.
18925 finish_cmds=$lt_finish_cmds
18927 # As "finish_cmds", except a single script fragment to be evaled but
18929 finish_eval=$lt_finish_eval
18931 # Whether we should hardcode library paths into libraries.
18932 hardcode_into_libs=$hardcode_into_libs
18934 # Compile-time system search path for libraries.
18935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18937 # Run-time system search path for libraries.
18938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18940 # Whether dlopen is supported.
18941 dlopen_support=$enable_dlopen
18943 # Whether dlopen of programs is supported.
18944 dlopen_self=$enable_dlopen_self
18946 # Whether dlopen of statically linked programs is supported.
18947 dlopen_self_static=$enable_dlopen_self_static
18949 # Commands to strip libraries.
18950 old_striplib=$lt_old_striplib
18951 striplib=$lt_striplib
18954 # The linker used to build libraries.
18957 # How to create reloadable object files.
18958 reload_flag=$lt_reload_flag
18959 reload_cmds=$lt_reload_cmds
18961 # Commands used to build an old-style archive.
18962 old_archive_cmds=$lt_old_archive_cmds
18964 # A language specific compiler.
18967 # Is the compiler the GNU compiler?
18970 # Compiler flag to turn off builtin functions.
18971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18973 # How to pass a linker flag through the compiler.
18974 wl=$lt_lt_prog_compiler_wl
18976 # Additional compiler flags for building library objects.
18977 pic_flag=$lt_lt_prog_compiler_pic
18979 # Compiler flag to prevent dynamic linking.
18980 link_static_flag=$lt_lt_prog_compiler_static
18982 # Does compiler simultaneously support -c and -o options?
18983 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18985 # Whether or not to add -lc for building shared libraries.
18986 build_libtool_need_lc=$archive_cmds_need_lc
18988 # Whether or not to disallow shared libs when runtime libs are static.
18989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18991 # Compiler flag to allow reflexive dlopens.
18992 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18994 # Compiler flag to generate shared objects directly from archives.
18995 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18997 # Whether the compiler copes with passing no objects directly.
18998 compiler_needs_object=$lt_compiler_needs_object
19000 # Create an old-style archive from a shared archive.
19001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19003 # Create a temporary old-style archive to link instead of a shared archive.
19004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19006 # Commands used to build a shared archive.
19007 archive_cmds=$lt_archive_cmds
19008 archive_expsym_cmds=$lt_archive_expsym_cmds
19010 # Commands used to build a loadable module if different from building
19011 # a shared archive.
19012 module_cmds=$lt_module_cmds
19013 module_expsym_cmds=$lt_module_expsym_cmds
19015 # Whether we are building with GNU ld or not.
19016 with_gnu_ld=$lt_with_gnu_ld
19018 # Flag that allows shared libraries with undefined symbols to be built.
19019 allow_undefined_flag=$lt_allow_undefined_flag
19021 # Flag that enforces no undefined symbols.
19022 no_undefined_flag=$lt_no_undefined_flag
19024 # Flag to hardcode \$libdir into a binary during linking.
19025 # This must work even if \$libdir does not exist
19026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19028 # If ld is used when linking, flag to hardcode \$libdir into a binary
19029 # during linking. This must work even if \$libdir does not exist.
19030 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19032 # Whether we need a single "-rpath" flag with a separated argument.
19033 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19035 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19036 # DIR into the resulting binary.
19037 hardcode_direct=$hardcode_direct
19039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19040 # DIR into the resulting binary and the resulting library dependency is
19041 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19042 # library is relocated.
19043 hardcode_direct_absolute=$hardcode_direct_absolute
19045 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19046 # into the resulting binary.
19047 hardcode_minus_L=$hardcode_minus_L
19049 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19050 # into the resulting binary.
19051 hardcode_shlibpath_var=$hardcode_shlibpath_var
19053 # Set to "yes" if building a shared library automatically hardcodes DIR
19054 # into the library and all subsequent libraries and executables linked
19056 hardcode_automatic=$hardcode_automatic
19058 # Set to yes if linker adds runtime paths of dependent libraries
19059 # to runtime path list.
19060 inherit_rpath=$inherit_rpath
19062 # Whether libtool must link a program against all its dependency libraries.
19063 link_all_deplibs=$link_all_deplibs
19065 # Fix the shell variable \$srcfile for the compiler.
19066 fix_srcfile_path=$lt_fix_srcfile_path
19068 # Set to "yes" if exported symbols are required.
19069 always_export_symbols=$always_export_symbols
19071 # The commands to list exported symbols.
19072 export_symbols_cmds=$lt_export_symbols_cmds
19074 # Symbols that should not be listed in the preloaded symbols.
19075 exclude_expsyms=$lt_exclude_expsyms
19077 # Symbols that must always be exported.
19078 include_expsyms=$lt_include_expsyms
19080 # Commands necessary for linking programs (against libraries) with templates.
19081 prelink_cmds=$lt_prelink_cmds
19083 # Specify filename containing input files.
19084 file_list_spec=$lt_file_list_spec
19086 # How to hardcode a shared library path into an executable.
19087 hardcode_action=$hardcode_action
19089 # ### END LIBTOOL CONFIG
19095 cat <<\_LT_EOF >> "$cfgfile"
19096 # AIX sometimes has problems with the GCC collect2 program. For some
19097 # reason, if we set the COLLECT_NAMES environment variable, the problems
19098 # vanish in a puff of smoke.
19099 if test "X${COLLECT_NAMES+set}" != Xset; then
19101 export COLLECT_NAMES
19108 ltmain="$ac_aux_dir/ltmain.sh"
19111 # We use sed instead of cat because bash on DJGPP gets confused if
19112 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19113 # text mode, it properly converts lines to CR/LF. This bash problem
19114 # is reportedly fixed, but why not run on old versions too?
19115 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19116 || (rm -f "$cfgfile"; exit 1)
19120 cat << \_LT_EOF >> "$cfgfile"
19122 # func_dirname file append nondir_replacement
19123 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19124 # otherwise set result to NONDIR_REPLACEMENT.
19128 */*) func_dirname_result="${1%/*}${2}" ;;
19129 * ) func_dirname_result="${3}" ;;
19133 # func_basename file
19136 func_basename_result="${1##*/}"
19139 # func_dirname_and_basename file append nondir_replacement
19140 # perform func_basename and func_dirname in a single function
19142 # dirname: Compute the dirname of FILE. If nonempty,
19143 # add APPEND to the result, otherwise set result
19144 # to NONDIR_REPLACEMENT.
19145 # value returned in "$func_dirname_result"
19146 # basename: Compute filename of FILE.
19147 # value retuned in "$func_basename_result"
19148 # Implementation must be kept synchronized with func_dirname
19149 # and func_basename. For efficiency, we do not delegate to
19150 # those functions but instead duplicate the functionality here.
19151 func_dirname_and_basename ()
19154 */*) func_dirname_result="${1%/*}${2}" ;;
19155 * ) func_dirname_result="${3}" ;;
19157 func_basename_result="${1##*/}"
19160 # func_stripname prefix suffix name
19161 # strip PREFIX and SUFFIX off of NAME.
19162 # PREFIX and SUFFIX must not contain globbing or regex special
19163 # characters, hashes, percent signs, but SUFFIX may contain a leading
19164 # dot (in which case that matches only a dot).
19167 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19168 # positional parameters, so assign one to ordinary parameter first.
19169 func_stripname_result=${3}
19170 func_stripname_result=${func_stripname_result#"${1}"}
19171 func_stripname_result=${func_stripname_result%"${2}"}
19177 func_opt_split_opt=${1%%=*}
19178 func_opt_split_arg=${1#*=}
19185 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19186 *) func_lo2o_result=${1} ;;
19190 # func_xform libobj-or-source
19193 func_xform_result=${1%.*}.lo
19196 # func_arith arithmetic-term...
19199 func_arith_result=$(( $* ))
19203 # STRING may not start with a hyphen.
19206 func_len_result=${#1}
19211 *) # Bourne compatible functions.
19212 cat << \_LT_EOF >> "$cfgfile"
19214 # func_dirname file append nondir_replacement
19215 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19216 # otherwise set result to NONDIR_REPLACEMENT.
19219 # Extract subdirectory from the argument.
19220 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19221 if test "X$func_dirname_result" = "X${1}"; then
19222 func_dirname_result="${3}"
19224 func_dirname_result="$func_dirname_result${2}"
19228 # func_basename file
19231 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19235 # func_stripname prefix suffix name
19236 # strip PREFIX and SUFFIX off of NAME.
19237 # PREFIX and SUFFIX must not contain globbing or regex special
19238 # characters, hashes, percent signs, but SUFFIX may contain a leading
19239 # dot (in which case that matches only a dot).
19240 # func_strip_suffix prefix name
19244 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19245 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19250 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19251 my_sed_long_arg='1s/^-[^=]*=//'
19256 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19257 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19263 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19266 # func_xform libobj-or-source
19269 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19272 # func_arith arithmetic-term...
19275 func_arith_result=`expr "$@"`
19279 # STRING may not start with a hyphen.
19282 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19288 case $lt_shell_append in
19290 cat << \_LT_EOF >> "$cfgfile"
19292 # func_append var value
19293 # Append VALUE to the end of shell variable VAR.
19301 cat << \_LT_EOF >> "$cfgfile"
19303 # func_append var value
19304 # Append VALUE to the end of shell variable VAR.
19315 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19316 || (rm -f "$cfgfile"; exit 1)
19318 mv -f "$cfgfile" "$ofile" ||
19319 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19330 ac_clean_files=$ac_clean_files_save
19332 test $ac_write_fail = 0 ||
19333 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19336 # configure is writing to config.log, and then calls config.status.
19337 # config.status does its own redirection, appending to config.log.
19338 # Unfortunately, on DOS this fails, as config.log is still kept open
19339 # by configure, so config.status won't be able to write to it; its
19340 # output is simply discarded. So we exec the FD to /dev/null,
19341 # effectively closing config.log, so it can be properly (re)opened and
19342 # appended to by config.status. When coming back to configure, we
19343 # need to make the FD available again.
19344 if test "$no_create" != yes; then
19346 ac_config_status_args=
19347 test "$silent" = yes &&
19348 ac_config_status_args="$ac_config_status_args --quiet"
19350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19353 # would make configure fail if this is the last instruction.
19354 $ac_cs_success || as_fn_exit 1
19358 # CONFIG_SUBDIRS section.
19360 if test "$no_recursion" != yes; then
19362 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19363 # so they do not pile up.
19364 ac_sub_configure_args=
19366 eval "set x $ac_configure_args"
19370 if test -n "$ac_prev"; then
19375 -cache-file | --cache-file | --cache-fil | --cache-fi \
19376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19377 ac_prev=cache_file ;;
19378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19382 --config-cache | -C)
19384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19388 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19390 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19392 --disable-option-checking)
19396 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19398 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19402 # Always prepend --prefix to ensure using the same prefix
19403 # in subdir configurations.
19404 ac_arg="--prefix=$prefix"
19406 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19408 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19411 if test "$silent" = yes; then
19412 ac_sub_configure_args="--silent $ac_sub_configure_args"
19415 # Always prepend --disable-option-checking to silence warnings, since
19416 # different subdirs can have different --enable and --with options.
19417 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19420 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19422 # Do not complain, so a configure script can configure whichever
19423 # parts of a large source tree are present.
19424 test -d "$srcdir/$ac_dir" || continue
19426 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19427 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19428 $as_echo "$ac_msg" >&6
19429 as_dir="$ac_dir"; as_fn_mkdir_p
19433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19436 # A ".." for each directory in $ac_dir_suffix.
19437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19438 case $ac_top_builddir_sub in
19439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19443 ac_abs_top_builddir=$ac_pwd
19444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19445 # for backward compatibility:
19446 ac_top_builddir=$ac_top_build_prefix
19449 .) # We are building in place.
19451 ac_top_srcdir=$ac_top_builddir_sub
19452 ac_abs_top_srcdir=$ac_pwd ;;
19453 [\\/]* | ?:[\\/]* ) # Absolute name.
19454 ac_srcdir=$srcdir$ac_dir_suffix;
19455 ac_top_srcdir=$srcdir
19456 ac_abs_top_srcdir=$srcdir ;;
19457 *) # Relative name.
19458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19459 ac_top_srcdir=$ac_top_build_prefix$srcdir
19460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19467 # Check for guested configure; otherwise get Cygnus style configure.
19468 if test -f "$ac_srcdir/configure.gnu"; then
19469 ac_sub_configure=$ac_srcdir/configure.gnu
19470 elif test -f "$ac_srcdir/configure"; then
19471 ac_sub_configure=$ac_srcdir/configure
19472 elif test -f "$ac_srcdir/configure.in"; then
19473 # This should be Cygnus configure.
19474 ac_sub_configure=$ac_aux_dir/configure
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19481 # The recursion is here.
19482 if test -n "$ac_sub_configure"; then
19483 # Make the cache file name correct relative to the subdirectory.
19484 case $cache_file in
19485 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19486 *) # Relative name.
19487 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19491 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19492 # The eval makes quoting arguments work.
19493 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19494 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19495 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19501 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19503 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19507 echo Configuration Complete. Type \'make\' to build.