2 # From configure.in Id: 9a6b25c794bb8f0aa9697d73b7b082c759e4de1a .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65.
6 # Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
10 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
15 # This configure script is free software; the Free Software Foundation
16 # gives unlimited permission to copy, distribute and modify it.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
31 case `(set -o) 2>/dev/null` in #(
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59 as_echo_n='/usr/ucb/echo -n'
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72 as_echo_n='sh -c $as_echo_n_body as_echo'
75 as_echo='sh -c $as_echo_body as_echo'
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
95 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir=.
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 if test x$as_have_required = xno; then :
229 $as_echo "$0: This script requires a shell more modern than all"
230 $as_echo "$0: the shells that I found on your system."
231 if test x${ZSH_VERSION+set} = xset ; then
232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
235 $as_echo "$0: Please tell bug-autoconf@gnu.org and
236 $0: <http://www.openldap.org/its/> about your system,
237 $0: including any error possibly output before this
238 $0: message. Then install a modern shell, or manually run
239 $0: the script under such a shell if you do have one."
245 SHELL=${CONFIG_SHELL-/bin/sh}
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE= GREP_OPTIONS=
249 unset CLICOLOR_FORCE GREP_OPTIONS
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
256 # Portably unset VAR.
259 { eval $1=; unset $1;}
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
283 # Create "$as_dir" as a directory, including parents if necessary.
288 -*) as_dir=./$as_dir;;
290 test -d "$as_dir" || eval $as_mkdir_p || {
294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
297 as_dirs="'$as_qdir' $as_dirs"
298 as_dir=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300 X"$as_dir" : 'X\(//\)[^/]' \| \
301 X"$as_dir" : 'X\(//\)$' \| \
302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
321 test -d "$as_dir" && break
323 test -z "$as_dirs" || eval "mkdir $as_dirs"
324 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335 eval 'as_fn_append ()
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 as_val=`expr "$@" || test $? -eq 1`
364 # as_fn_error ERROR [LINENO LOG_FD]
365 # ---------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with status $?, using 1 if that was 0.
371 as_status=$?; test $as_status -eq 0 && as_status=1
373 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 $as_echo "$as_me: error: $1" >&2
377 as_fn_exit $as_status
380 if expr a : '\(a\)' >/dev/null 2>&1 &&
381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_me=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401 X"$0" : 'X\(//\)$' \| \
402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 sed '/^.*\/\([^/][^/]*\)\/*$/{
418 # Avoid depending upon Character Ranges.
419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits='0123456789'
423 as_cr_alnum=$as_cr_Letters$as_cr_digits
426 as_lineno_1=$LINENO as_lineno_1a=$LINENO
427 as_lineno_2=$LINENO as_lineno_2a=$LINENO
428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 chmod +x "$as_me.lineno" ||
447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449 # Don't try to exec as it changes $[0], causing all sort of problems
450 # (the dirname of $[0] is not the place where we might find the
451 # original and so on. Autoconf is especially sensitive to this).
453 # Exit status is that of the last command.
457 ECHO_C= ECHO_N= ECHO_T=
458 case `echo -n x` in #(((((
460 case `echo 'xy\c'` in
461 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 rm -f conf$$ conf$$.exe conf$$.file
471 if test -d conf$$.dir; then
472 rm -f conf$$.dir/conf$$.file
475 mkdir conf$$.dir 2>/dev/null
477 if (echo >conf$$.file) 2>/dev/null; then
478 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 # ... but there are two gotchas:
481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483 # In both cases, we have to default to `cp -p'.
484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 elif ln conf$$.file conf$$ 2>/dev/null; then
494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495 rmdir conf$$.dir 2>/dev/null
497 if mkdir -p . 2>/dev/null; then
498 as_mkdir_p='mkdir -p "$as_dir"'
500 test -d ./-p && rmdir ./-p
504 if test -x / >/dev/null 2>&1; then
507 if ls -dL / >/dev/null 2>&1; then
514 if test -d "$1"; then
520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521 ???[sx]*):;;*)false;;esac;fi
525 as_executable_p=$as_test_x
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 # Check that we are running under the correct shell.
536 SHELL=${CONFIG_SHELL-/bin/sh}
540 # Remove one level of quotation (which was required for Make).
541 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
546 if test "X$1" = X--no-reexec; then
547 # Discard the --no-reexec flag, and continue.
549 elif test "X$1" = X--fallback-echo; then
550 # Avoid inline document here, it may be left over
552 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
553 # Yippee, $echo works!
556 # Restart under the correct shell.
557 exec $SHELL "$0" --no-reexec ${1+"$@"}
560 if test "X$1" = X--fallback-echo; then
561 # used as fallback echo
569 # The HP-UX ksh and POSIX shell print the target directory to stdout
571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
573 if test -z "$ECHO"; then
574 if test "X${echo_test_string+set}" != Xset; then
575 # find a string as large as possible, as long as the shell can cope with it
576 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
577 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
578 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
579 echo_test_string=`eval $cmd` &&
580 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
587 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
588 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
589 test "X$echo_testing_string" = "X$echo_test_string"; then
592 # The Solaris, AIX, and Digital Unix default echo programs unquote
593 # backslashes. This makes it impossible to quote backslashes using
594 # echo "$something" | sed 's/\\/\\\\/g'
596 # So, first we look for a working echo in the user's PATH.
598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
599 for dir in $PATH /usr/ucb; do
601 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
602 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
603 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
604 test "X$echo_testing_string" = "X$echo_test_string"; then
611 if test "X$echo" = Xecho; then
612 # We didn't find a better echo, so look for alternatives.
613 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
616 # This shell has a builtin print -r that does the trick.
618 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
619 test "X$CONFIG_SHELL" != X/bin/ksh; then
620 # If we have ksh, try running configure again with it.
621 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
622 export ORIGINAL_CONFIG_SHELL
623 CONFIG_SHELL=/bin/ksh
625 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
635 test "X$echo_testing_string" = 'X\t' &&
636 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
640 SHELL="$CONFIG_SHELL"
642 echo="$CONFIG_SHELL $0 --fallback-echo"
643 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
644 test "X$echo_testing_string" = 'X\t' &&
645 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$CONFIG_SHELL $0 --fallback-echo"
649 # maybe with a smaller string...
652 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
653 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
660 if test "$prev" != 'sed 50q "$0"'; then
661 echo_test_string=`eval $prev`
662 export echo_test_string
663 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
665 # Oops. We lost completely, so just stick with echo.
674 # Copy echo and quote the copy suitably for passing to libtool from
675 # the Makefile, instead of quoting the original, which is used later.
677 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
678 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 test -n "$DJDIR" || exec 7<&0 </dev/null
688 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
689 # so uname gets run too.
690 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695 ac_default_prefix=/usr/local
697 ac_config_libobj_dir=.
704 # Identity of this package.
712 ac_unique_file="OpenLDAP"
713 ac_unique_file="build/version.sh"
714 ac_default_prefix=/usr/local
715 # Factoring default headers for most tests.
716 ac_includes_default="\
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
728 # ifdef HAVE_STDLIB_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
751 ac_subst_vars='LTLIBOBJS
769 SLAPD_DYNAMIC_OVERLAYS
770 SLAPD_STATIC_OVERLAYS
771 SLAPD_DYNAMIC_BACKENDS
772 SLAPD_STATIC_BACKENDS
774 SLAPD_MODULES_LDFLAGS
775 SLAPD_MODULES_CPPFLAGS
866 OPENLDAP_RELEASE_DATE
876 INSTALL_STRIP_PROGRAM
929 program_transform_name
942 enable_option_checking
957 enable_xxslapdoptions
971 enable_xxslapbackends
987 enable_xxslapoverlays
1013 enable_dependency_tracking
1020 ac_precious_vars='build_alias
1031 # Initialize some variables set by options.
1033 ac_init_version=false
1034 ac_unrecognized_opts=
1035 ac_unrecognized_sep=
1036 # The variables have the same names as the options, with
1037 # dashes changed to underlines.
1038 cache_file=/dev/null
1045 program_transform_name=s,x,x,
1053 # Installation directory options.
1054 # These are left unexpanded so users can "make install exec_prefix=/foo"
1055 # and all the variables that are supposed to be based on exec_prefix
1056 # by default will actually change.
1057 # Use braces instead of parens because sh, perl, etc. also accept them.
1058 # (The list follows the same order as the GNU Coding Standards.)
1059 bindir='${exec_prefix}/bin'
1060 sbindir='${exec_prefix}/sbin'
1061 libexecdir='${exec_prefix}/libexec'
1062 datarootdir='${prefix}/share'
1063 datadir='${datarootdir}'
1064 sysconfdir='${prefix}/etc'
1065 sharedstatedir='${prefix}/com'
1066 localstatedir='${prefix}/var'
1067 includedir='${prefix}/include'
1068 oldincludedir='/usr/include'
1069 docdir='${datarootdir}/doc/${PACKAGE}'
1070 infodir='${datarootdir}/info'
1075 libdir='${exec_prefix}/lib'
1076 localedir='${datarootdir}/locale'
1077 mandir='${datarootdir}/man'
1083 # If the previous option needs an argument, assign it.
1084 if test -n "$ac_prev"; then
1085 eval $ac_prev=\$ac_option
1091 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1095 # Accept the important Cygnus configure options, so we can diagnose typos.
1097 case $ac_dashdash$ac_option in
1101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1104 bindir=$ac_optarg ;;
1106 -build | --build | --buil | --bui | --bu)
1107 ac_prev=build_alias ;;
1108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1109 build_alias=$ac_optarg ;;
1111 -cache-file | --cache-file | --cache-fil | --cache-fi \
1112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1113 ac_prev=cache_file ;;
1114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1116 cache_file=$ac_optarg ;;
1118 --config-cache | -C)
1119 cache_file=config.cache ;;
1121 -datadir | --datadir | --datadi | --datad)
1123 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1124 datadir=$ac_optarg ;;
1126 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1127 | --dataroo | --dataro | --datar)
1128 ac_prev=datarootdir ;;
1129 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1130 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1131 datarootdir=$ac_optarg ;;
1133 -disable-* | --disable-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid feature name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1142 "enable_$ac_useropt"
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval enable_$ac_useropt=no ;;
1149 -docdir | --docdir | --docdi | --doc | --do)
1151 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1152 docdir=$ac_optarg ;;
1154 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1156 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1157 dvidir=$ac_optarg ;;
1159 -enable-* | --enable-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid feature name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "enable_$ac_useropt"
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1173 eval enable_$ac_useropt=\$ac_optarg ;;
1175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1177 | --exec | --exe | --ex)
1178 ac_prev=exec_prefix ;;
1179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1181 | --exec=* | --exe=* | --ex=*)
1182 exec_prefix=$ac_optarg ;;
1184 -gas | --gas | --ga | --g)
1185 # Obsolete; use --with-gas.
1188 -help | --help | --hel | --he | -h)
1189 ac_init_help=long ;;
1190 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1191 ac_init_help=recursive ;;
1192 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1193 ac_init_help=short ;;
1195 -host | --host | --hos | --ho)
1196 ac_prev=host_alias ;;
1197 -host=* | --host=* | --hos=* | --ho=*)
1198 host_alias=$ac_optarg ;;
1200 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1202 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1204 htmldir=$ac_optarg ;;
1206 -includedir | --includedir | --includedi | --included | --include \
1207 | --includ | --inclu | --incl | --inc)
1208 ac_prev=includedir ;;
1209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1210 | --includ=* | --inclu=* | --incl=* | --inc=*)
1211 includedir=$ac_optarg ;;
1213 -infodir | --infodir | --infodi | --infod | --info | --inf)
1215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1216 infodir=$ac_optarg ;;
1218 -libdir | --libdir | --libdi | --libd)
1220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1221 libdir=$ac_optarg ;;
1223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1224 | --libexe | --libex | --libe)
1225 ac_prev=libexecdir ;;
1226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1227 | --libexe=* | --libex=* | --libe=*)
1228 libexecdir=$ac_optarg ;;
1230 -localedir | --localedir | --localedi | --localed | --locale)
1231 ac_prev=localedir ;;
1232 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1233 localedir=$ac_optarg ;;
1235 -localstatedir | --localstatedir | --localstatedi | --localstated \
1236 | --localstate | --localstat | --localsta | --localst | --locals)
1237 ac_prev=localstatedir ;;
1238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1239 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1240 localstatedir=$ac_optarg ;;
1242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1245 mandir=$ac_optarg ;;
1247 -nfp | --nfp | --nf)
1248 # Obsolete; use --without-fp.
1251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1252 | --no-cr | --no-c | -n)
1255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1261 | --oldin | --oldi | --old | --ol | --o)
1262 ac_prev=oldincludedir ;;
1263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1266 oldincludedir=$ac_optarg ;;
1268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1271 prefix=$ac_optarg ;;
1273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1274 | --program-pre | --program-pr | --program-p)
1275 ac_prev=program_prefix ;;
1276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1278 program_prefix=$ac_optarg ;;
1280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1281 | --program-suf | --program-su | --program-s)
1282 ac_prev=program_suffix ;;
1283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1285 program_suffix=$ac_optarg ;;
1287 -program-transform-name | --program-transform-name \
1288 | --program-transform-nam | --program-transform-na \
1289 | --program-transform-n | --program-transform- \
1290 | --program-transform | --program-transfor \
1291 | --program-transfo | --program-transf \
1292 | --program-trans | --program-tran \
1293 | --progr-tra | --program-tr | --program-t)
1294 ac_prev=program_transform_name ;;
1295 -program-transform-name=* | --program-transform-name=* \
1296 | --program-transform-nam=* | --program-transform-na=* \
1297 | --program-transform-n=* | --program-transform-=* \
1298 | --program-transform=* | --program-transfor=* \
1299 | --program-transfo=* | --program-transf=* \
1300 | --program-trans=* | --program-tran=* \
1301 | --progr-tra=* | --program-tr=* | --program-t=*)
1302 program_transform_name=$ac_optarg ;;
1304 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1306 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1307 pdfdir=$ac_optarg ;;
1309 -psdir | --psdir | --psdi | --psd | --ps)
1311 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1315 | -silent | --silent | --silen | --sile | --sil)
1318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1322 sbindir=$ac_optarg ;;
1324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1326 | --sharedst | --shareds | --shared | --share | --shar \
1328 ac_prev=sharedstatedir ;;
1329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1333 sharedstatedir=$ac_optarg ;;
1335 -site | --site | --sit)
1337 -site=* | --site=* | --sit=*)
1340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1343 srcdir=$ac_optarg ;;
1345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1346 | --syscon | --sysco | --sysc | --sys | --sy)
1347 ac_prev=sysconfdir ;;
1348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1350 sysconfdir=$ac_optarg ;;
1352 -target | --target | --targe | --targ | --tar | --ta | --t)
1353 ac_prev=target_alias ;;
1354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1355 target_alias=$ac_optarg ;;
1357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1360 -version | --version | --versio | --versi | --vers | -V)
1361 ac_init_version=: ;;
1364 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1365 # Reject names that are not valid shell variable names.
1366 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1367 as_fn_error "invalid package name: $ac_useropt"
1368 ac_useropt_orig=$ac_useropt
1369 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1370 case $ac_user_opts in
1374 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1375 ac_unrecognized_sep=', ';;
1377 eval with_$ac_useropt=\$ac_optarg ;;
1379 -without-* | --without-*)
1380 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1383 as_fn_error "invalid package name: $ac_useropt"
1384 ac_useropt_orig=$ac_useropt
1385 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1386 case $ac_user_opts in
1390 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1391 ac_unrecognized_sep=', ';;
1393 eval with_$ac_useropt=no ;;
1396 # Obsolete; use --with-x.
1399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1400 | --x-incl | --x-inc | --x-in | --x-i)
1401 ac_prev=x_includes ;;
1402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1404 x_includes=$ac_optarg ;;
1406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1408 ac_prev=x_libraries ;;
1409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1411 x_libraries=$ac_optarg ;;
1413 -*) as_fn_error "unrecognized option: \`$ac_option'
1414 Try \`$0 --help' for more information."
1418 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1419 # Reject names that are not valid shell variable names.
1420 case $ac_envvar in #(
1421 '' | [0-9]* | *[!_$as_cr_alnum]* )
1422 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1424 eval $ac_envvar=\$ac_optarg
1425 export $ac_envvar ;;
1428 # FIXME: should be removed in autoconf 3.0.
1429 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1430 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1431 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1432 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1438 if test -n "$ac_prev"; then
1439 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1440 as_fn_error "missing argument to $ac_option"
1443 if test -n "$ac_unrecognized_opts"; then
1444 case $enable_option_checking in
1446 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1447 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1451 # Check all directory arguments for consistency.
1452 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453 datadir sysconfdir sharedstatedir localstatedir includedir \
1454 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455 libdir localedir mandir
1457 eval ac_val=\$$ac_var
1458 # Remove trailing slashes.
1461 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1462 eval $ac_var=\$ac_val;;
1464 # Be sure to have absolute directory names.
1466 [\\/$]* | ?:[\\/]* ) continue;;
1467 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1469 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1472 # There might be people who depend on the old broken behavior: `$host'
1473 # used to hold the argument of --host etc.
1474 # FIXME: To remove some day.
1477 target=$target_alias
1479 # FIXME: To remove some day.
1480 if test "x$host_alias" != x; then
1481 if test "x$build_alias" = x; then
1482 cross_compiling=maybe
1483 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1484 If a cross compiler is detected then cross compile mode will be used." >&2
1485 elif test "x$build_alias" != "x$host_alias"; then
1491 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1493 test "$silent" = yes && exec 6>/dev/null
1496 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1497 ac_ls_di=`ls -di .` &&
1498 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1499 as_fn_error "working directory cannot be determined"
1500 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1501 as_fn_error "pwd does not report name of working directory"
1504 # Find the source files, if location was not specified.
1505 if test -z "$srcdir"; then
1506 ac_srcdir_defaulted=yes
1507 # Try the directory containing this script, then the parent directory.
1508 ac_confdir=`$as_dirname -- "$as_myself" ||
1509 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1510 X"$as_myself" : 'X\(//\)[^/]' \| \
1511 X"$as_myself" : 'X\(//\)$' \| \
1512 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1513 $as_echo X"$as_myself" |
1514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1532 if test ! -r "$srcdir/$ac_unique_file"; then
1536 ac_srcdir_defaulted=no
1538 if test ! -r "$srcdir/$ac_unique_file"; then
1539 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1540 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1542 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1544 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1546 # When building in place, set srcdir=.
1547 if test "$ac_abs_confdir" = "$ac_pwd"; then
1550 # Remove unnecessary trailing slashes from srcdir.
1551 # Double slashes in file names in object file debugging info
1552 # mess up M-x gdb in Emacs.
1554 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1556 for ac_var in $ac_precious_vars; do
1557 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1558 eval ac_env_${ac_var}_value=\$${ac_var}
1559 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1560 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1564 # Report the --help message.
1566 if test "$ac_init_help" = "long"; then
1567 # Omit some internal or obsolete options to make the list less imposing.
1568 # This message is too long to be a string in the A/UX 3.1 sh.
1570 \`configure' configures this package to adapt to many kinds of systems.
1572 Usage: $0 [OPTION]... [VAR=VALUE]...
1574 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1575 VAR=VALUE. See below for descriptions of some of the useful variables.
1577 Defaults for the options are specified in brackets.
1580 -h, --help display this help and exit
1581 --help=short display options specific to this package
1582 --help=recursive display the short help of all the included packages
1583 -V, --version display version information and exit
1584 -q, --quiet, --silent do not print \`checking...' messages
1585 --cache-file=FILE cache test results in FILE [disabled]
1586 -C, --config-cache alias for \`--cache-file=config.cache'
1587 -n, --no-create do not create output files
1588 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1590 Installation directories:
1591 --prefix=PREFIX install architecture-independent files in PREFIX
1592 [$ac_default_prefix]
1593 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1596 By default, \`make install' will install all the files in
1597 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1598 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1599 for instance \`--prefix=\$HOME'.
1601 For better control, use the options below.
1603 Fine tuning of the installation directories:
1604 --bindir=DIR user executables [EPREFIX/bin]
1605 --sbindir=DIR system admin executables [EPREFIX/sbin]
1606 --libexecdir=DIR program executables [EPREFIX/libexec]
1607 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1608 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1609 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1610 --libdir=DIR object code libraries [EPREFIX/lib]
1611 --includedir=DIR C header files [PREFIX/include]
1612 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1613 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1614 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1615 --infodir=DIR info documentation [DATAROOTDIR/info]
1616 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1617 --mandir=DIR man documentation [DATAROOTDIR/man]
1618 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1619 --htmldir=DIR html documentation [DOCDIR]
1620 --dvidir=DIR dvi documentation [DOCDIR]
1621 --pdfdir=DIR pdf documentation [DOCDIR]
1622 --psdir=DIR ps documentation [DOCDIR]
1628 --program-prefix=PREFIX prepend PREFIX to installed program names
1629 --program-suffix=SUFFIX append SUFFIX to installed program names
1630 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1633 --build=BUILD configure for building on BUILD [guessed]
1634 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1635 --target=TARGET configure for building compilers for TARGET [HOST]
1639 if test -n "$ac_init_help"; then
1644 --disable-option-checking ignore unrecognized --enable/--with options
1645 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1646 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1647 --enable-debug enable debugging no|yes|traditional [yes]
1648 --enable-dynamic enable linking built binaries with dynamic libs [no]
1649 --enable-syslog enable syslog support [auto]
1650 --enable-proctitle enable proctitle support [yes]
1651 --enable-ipv6 enable IPv6 support [auto]
1652 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1654 SLAPD (Standalone LDAP Daemon) Options:
1655 --enable-slapd enable building slapd [yes]
1656 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1657 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1658 --enable-cleartext enable cleartext passwords [yes]
1659 --enable-crypt enable crypt(3) passwords [no]
1660 --enable-lmpasswd enable LAN Manager passwords [no]
1661 --enable-spasswd enable (Cyrus) SASL password verification [no]
1662 --enable-modules enable dynamic module support [no]
1663 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1664 --enable-rlookups enable reverse lookups of client hostnames [no]
1665 --enable-slapi enable SLAPI support (experimental) [no]
1666 --enable-slp enable SLPv2 support [no]
1667 --enable-wrappers enable tcp wrapper support [no]
1669 SLAPD Backend Options:
1670 --enable-backends enable all available backends no|yes|mod
1671 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1672 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1673 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1674 --enable-ldap enable ldap backend no|yes|mod [no]
1675 --enable-meta enable metadirectory backend no|yes|mod [no]
1676 --enable-monitor enable monitor backend no|yes|mod [yes]
1677 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1678 --enable-null enable null backend no|yes|mod [no]
1679 --enable-passwd enable passwd backend no|yes|mod [no]
1680 --enable-perl enable perl backend no|yes|mod [no]
1681 --enable-relay enable relay backend no|yes|mod [yes]
1682 --enable-shell enable shell backend no|yes|mod [no]
1683 --enable-sock enable sock backend no|yes|mod [no]
1684 --enable-sql enable sql backend no|yes|mod [no]
1686 SLAPD Overlay Options:
1687 --enable-overlays enable all available overlays no|yes|mod
1688 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1689 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1690 --enable-collect Collect overlay no|yes|mod [no]
1691 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1692 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1693 --enable-deref Dereference overlay no|yes|mod [no]
1694 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1695 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1696 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1697 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1698 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1699 --enable-refint Referential Integrity overlay no|yes|mod [no]
1700 --enable-retcode Return Code testing overlay no|yes|mod [no]
1701 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1702 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1703 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1704 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1705 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1706 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1707 --enable-valsort Value Sorting overlay no|yes|mod [no]
1709 Library Generation & Linking Options
1710 --enable-static[=PKGS] build static libraries [default=yes]
1711 --enable-shared[=PKGS] build shared libraries [default=yes]
1712 --enable-fast-install[=PKGS]
1713 optimize for fast installation [default=yes]
1714 --disable-dependency-tracking speeds up one-time build
1715 --enable-dependency-tracking do not reject slow dependency extractors
1716 --disable-libtool-lock avoid locking (might break parallel builds)
1719 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1720 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1721 --with-subdir=DIR change default subdirectory used for installs
1722 --with-cyrus-sasl with Cyrus SASL support [auto]
1723 --with-fetch with fetch(3) URL support [auto]
1724 --with-threads with threads [auto]
1725 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1726 --with-yielding-select with implicitly yielding select [auto]
1727 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1728 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1729 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1730 --with-pic try to use only PIC/non-PIC objects [default=use
1732 --with-tags[=TAGS] include additional configurations [automatic]
1734 See INSTALL file for further details.
1736 Some influential environment variables:
1737 CC C compiler command
1738 CFLAGS C compiler flags
1739 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1740 nonstandard directory <lib dir>
1741 LIBS libraries to pass to the linker, e.g. -l<library>
1742 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1743 you have headers in a nonstandard directory <include dir>
1746 Use these variables to override the choices made by `configure' or to help
1747 it to find libraries and programs with nonstandard names/locations.
1749 Report bugs to the package provider.
1754 if test "$ac_init_help" = "recursive"; then
1755 # If there are subdirs, report their specific --help.
1756 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1757 test -d "$ac_dir" ||
1758 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1766 # A ".." for each directory in $ac_dir_suffix.
1767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1768 case $ac_top_builddir_sub in
1769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1773 ac_abs_top_builddir=$ac_pwd
1774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1775 # for backward compatibility:
1776 ac_top_builddir=$ac_top_build_prefix
1779 .) # We are building in place.
1781 ac_top_srcdir=$ac_top_builddir_sub
1782 ac_abs_top_srcdir=$ac_pwd ;;
1783 [\\/]* | ?:[\\/]* ) # Absolute name.
1784 ac_srcdir=$srcdir$ac_dir_suffix;
1785 ac_top_srcdir=$srcdir
1786 ac_abs_top_srcdir=$srcdir ;;
1788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1789 ac_top_srcdir=$ac_top_build_prefix$srcdir
1790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1794 cd "$ac_dir" || { ac_status=$?; continue; }
1795 # Check for guested configure.
1796 if test -f "$ac_srcdir/configure.gnu"; then
1798 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1799 elif test -f "$ac_srcdir/configure"; then
1801 $SHELL "$ac_srcdir/configure" --help=recursive
1803 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1805 cd "$ac_pwd" || { ac_status=$?; break; }
1809 test -n "$ac_init_help" && exit $ac_status
1810 if $ac_init_version; then
1813 generated by GNU Autoconf 2.65
1815 Copyright (C) 2009 Free Software Foundation, Inc.
1816 This configure script is free software; the Free Software Foundation
1817 gives unlimited permission to copy, distribute and modify it.
1819 Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
1820 Restrictions apply, see COPYRIGHT and LICENSE files.
1825 ## ------------------------ ##
1826 ## Autoconf initialization. ##
1827 ## ------------------------ ##
1829 # ac_fn_c_try_compile LINENO
1830 # --------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_c_try_compile
1867 # ac_fn_c_try_link LINENO
1868 # -----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 $as_test_x conftest$ac_exeext
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 as_fn_set_status $ac_retval
1911 } # ac_fn_c_try_link
1913 # ac_fn_c_try_cpp LINENO
1914 # ----------------------
1915 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_cpp conftest.$ac_ext"
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } >/dev/null && {
1935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1936 test ! -s conftest.err
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 as_fn_set_status $ac_retval
1950 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1951 # -------------------------------------------------------
1952 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1953 # the include files in INCLUDES and setting the cache variable VAR
1955 ac_fn_c_check_header_mongrel ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1968 # Is the header compilable?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1970 $as_echo_n "checking $2 usability... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_header_compiler=yes
1979 ac_header_compiler=no
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1983 $as_echo "$ac_header_compiler" >&6; }
1985 # Is the header present?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1987 $as_echo_n "checking $2 presence... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1992 if ac_fn_c_try_cpp "$LINENO"; then :
1993 ac_header_preproc=yes
1995 ac_header_preproc=no
1997 rm -f conftest.err conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1999 $as_echo "$ac_header_preproc" >&6; }
2001 # So? What about this header?
2002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2005 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2011 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2013 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2015 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2017 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021 ## --------------------------------------------- ##
2022 ## Report this to <http://www.openldap.org/its/> ##
2023 ## --------------------------------------------- ##
2025 ) | sed "s/^/$as_me: WARNING: /" >&2
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031 $as_echo_n "(cached) " >&6
2033 eval "$3=\$ac_header_compiler"
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2041 } # ac_fn_c_check_header_mongrel
2043 # ac_fn_c_try_run LINENO
2044 # ----------------------
2045 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2046 # that executables *can* be run.
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 if { { ac_try="$ac_link"
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_link") 2>&5
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2061 { { case "(($ac_try" in
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_try") 2>&5
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; }; }; then :
2073 $as_echo "$as_me: program exited with status $ac_status" >&5
2074 $as_echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2077 ac_retval=$ac_status
2079 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081 as_fn_set_status $ac_retval
2085 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2086 # -------------------------------------------------------
2087 # Tests whether HEADER exists and can be compiled using the include files in
2088 # INCLUDES, setting the cache variable VAR accordingly.
2089 ac_fn_c_check_header_compile ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2095 $as_echo_n "(cached) " >&6
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2102 if ac_fn_c_try_compile "$LINENO"; then :
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 } # ac_fn_c_check_header_compile
2116 # ac_fn_c_check_func LINENO FUNC VAR
2117 # ----------------------------------
2118 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2119 ac_fn_c_check_func ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2125 $as_echo_n "(cached) " >&6
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2131 #define $2 innocuous_$2
2133 /* System header to define __stub macros and hopefully few prototypes,
2134 which can conflict with char $2 (); below.
2135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2136 <limits.h> exists even on freestanding compilers. */
2139 # include <limits.h>
2141 # include <assert.h>
2146 /* Override any GCC internal prototype to avoid an error.
2147 Use char because int might match the return type of a GCC
2148 builtin and then its argument prototype would still apply. */
2153 /* The GNU C library defines this for functions which it implements
2154 to always fail with ENOSYS. Some functions are actually named
2155 something starting with __ and the normal name is an alias. */
2156 #if defined __stub_$2 || defined __stub___$2
2168 if ac_fn_c_try_link "$LINENO"; then :
2173 rm -f core conftest.err conftest.$ac_objext \
2174 conftest$ac_exeext conftest.$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181 } # ac_fn_c_check_func
2183 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2184 # -------------------------------------------
2185 # Tests whether TYPE exists after having included INCLUDES, setting cache
2186 # variable VAR accordingly.
2187 ac_fn_c_check_type ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2193 $as_echo_n "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2221 if ac_fn_c_try_compile "$LINENO"; then :
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235 } # ac_fn_c_check_type
2237 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2238 # ----------------------------------------------------
2239 # Tries to find if the field MEMBER exists in type AGGR, after including
2240 # INCLUDES, setting cache variable VAR accordingly.
2241 ac_fn_c_check_member ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2245 $as_echo_n "checking for $2.$3... " >&6; }
2246 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2247 $as_echo_n "(cached) " >&6
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2262 if ac_fn_c_try_compile "$LINENO"; then :
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2272 if (sizeof ac_aggr.$3)
2278 if ac_fn_c_try_compile "$LINENO"; then :
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2292 } # ac_fn_c_check_member
2294 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2295 # --------------------------------------------
2296 # Tries to find the compile-time value of EXPR in a program that includes
2297 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2299 ac_fn_c_compute_int ()
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 if test "$cross_compiling" = yes; then
2303 # Depending upon the size, compute the lo and hi bounds.
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2310 static int test_array [1 - 2 * !(($2) >= 0)];
2317 if ac_fn_c_try_compile "$LINENO"; then :
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2326 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334 ac_hi=$ac_mid; break
2336 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2337 if test $ac_lo -le $ac_mid; then
2341 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2352 static int test_array [1 - 2 * !(($2) < 0)];
2359 if ac_fn_c_try_compile "$LINENO"; then :
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2368 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2375 if ac_fn_c_try_compile "$LINENO"; then :
2376 ac_lo=$ac_mid; break
2378 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2379 if test $ac_mid -le $ac_hi; then
2383 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 # Binary search between lo and hi bounds.
2394 while test "x$ac_lo" != "x$ac_hi"; do
2395 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2402 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2409 if ac_fn_c_try_compile "$LINENO"; then :
2412 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2424 static long int longval () { return $2; }
2425 static unsigned long int ulongval () { return $2; }
2432 FILE *f = fopen ("conftest.val", "w");
2437 long int i = longval ();
2440 fprintf (f, "%ld", i);
2444 unsigned long int i = ulongval ();
2447 fprintf (f, "%lu", i);
2449 /* Do not output a trailing newline, as this causes \r\n confusion
2450 on some platforms. */
2451 return ferror (f) || fclose (f) != 0;
2457 if ac_fn_c_try_run "$LINENO"; then :
2458 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2463 conftest.$ac_objext conftest.beam conftest.$ac_ext
2467 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2468 as_fn_set_status $ac_retval
2470 } # ac_fn_c_compute_int
2471 cat >config.log <<_ACEOF
2472 This file contains any messages produced by compilers while
2473 running configure, to aid debugging if configure makes a mistake.
2475 It was created by $as_me, which was
2476 generated by GNU Autoconf 2.65. Invocation command line was
2488 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2489 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2490 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2491 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2492 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2494 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2495 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2497 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2498 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2499 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2500 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2501 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2502 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2503 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 $as_echo "PATH: $as_dir"
2528 # Keep a trace of the command line.
2529 # Strip out --no-create and --no-recursion so they do not pile up.
2530 # Strip out --silent because we don't want to record it for future runs.
2531 # Also quote any args containing shell meta-characters.
2532 # Make two passes to allow for proper duplicate-argument suppression.
2536 ac_must_keep_next=false
2542 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2544 | -silent | --silent | --silen | --sile | --sil)
2547 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2550 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2552 as_fn_append ac_configure_args1 " '$ac_arg'"
2553 if test $ac_must_keep_next = true; then
2554 ac_must_keep_next=false # Got value, back to normal.
2557 *=* | --config-cache | -C | -disable-* | --disable-* \
2558 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2559 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2560 | -with-* | --with-* | -without-* | --without-* | --x)
2561 case "$ac_configure_args0 " in
2562 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2565 -* ) ac_must_keep_next=true ;;
2568 as_fn_append ac_configure_args " '$ac_arg'"
2573 { ac_configure_args0=; unset ac_configure_args0;}
2574 { ac_configure_args1=; unset ac_configure_args1;}
2576 # When interrupted or exit'd, cleanup temporary files, and complete
2577 # config.log. We remove comments because anyway the quotes in there
2578 # would cause problems or look ugly.
2579 # WARNING: Use '\'' to represent an apostrophe within the trap.
2580 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2581 trap 'exit_status=$?
2582 # Save into config.log some information that might help in debugging.
2587 ## ---------------- ##
2588 ## Cache variables. ##
2589 ## ---------------- ##
2592 # The following way of writing the cache mishandles newlines in values,
2594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2595 eval ac_val=\$$ac_var
2599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2600 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2603 _ | IFS | as_nl) ;; #(
2604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2605 *) { eval $ac_var=; unset $ac_var;} ;;
2610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2611 *${as_nl}ac_space=\ *)
2613 "s/'\''/'\''\\\\'\'''\''/g;
2614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2625 ## ----------------- ##
2626 ## Output variables. ##
2627 ## ----------------- ##
2630 for ac_var in $ac_subst_vars
2632 eval ac_val=\$$ac_var
2634 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2636 $as_echo "$ac_var='\''$ac_val'\''"
2640 if test -n "$ac_subst_files"; then
2642 ## ------------------- ##
2643 ## File substitutions. ##
2644 ## ------------------- ##
2647 for ac_var in $ac_subst_files
2649 eval ac_val=\$$ac_var
2651 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2653 $as_echo "$ac_var='\''$ac_val'\''"
2658 if test -s confdefs.h; then
2668 test "$ac_signal" != 0 &&
2669 $as_echo "$as_me: caught signal $ac_signal"
2670 $as_echo "$as_me: exit $exit_status"
2672 rm -f core *.core core.conftest.* &&
2673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2676 for ac_signal in 1 2 13 15; do
2677 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2682 rm -f -r conftest* confdefs.h
2684 $as_echo "/* confdefs.h */" > confdefs.h
2686 # Predefined preprocessor variables.
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_NAME "$PACKAGE_NAME"
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_STRING "$PACKAGE_STRING"
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_URL "$PACKAGE_URL"
2713 # Let the site file select an alternate cache file if it wants to.
2714 # Prefer an explicitly selected file to automatically selected ones.
2717 if test -n "$CONFIG_SITE"; then
2718 ac_site_file1=$CONFIG_SITE
2719 elif test "x$prefix" != xNONE; then
2720 ac_site_file1=$prefix/share/config.site
2721 ac_site_file2=$prefix/etc/config.site
2723 ac_site_file1=$ac_default_prefix/share/config.site
2724 ac_site_file2=$ac_default_prefix/etc/config.site
2726 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2728 test "x$ac_site_file" = xNONE && continue
2729 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2731 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2732 sed 's/^/| /' "$ac_site_file" >&5
2738 # Check that the precious variables saved in the cache have kept the same
2740 ac_cache_corrupted=false
2741 for ac_var in $ac_precious_vars; do
2742 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2743 eval ac_new_set=\$ac_env_${ac_var}_set
2744 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2745 eval ac_new_val=\$ac_env_${ac_var}_value
2746 case $ac_old_set,$ac_new_set in
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2749 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2750 ac_cache_corrupted=: ;;
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2753 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2754 ac_cache_corrupted=: ;;
2757 if test "x$ac_old_val" != "x$ac_new_val"; then
2758 # differences in whitespace do not lead to failure.
2759 ac_old_val_w=`echo x $ac_old_val`
2760 ac_new_val_w=`echo x $ac_new_val`
2761 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2763 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2764 ac_cache_corrupted=:
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2767 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2768 eval $ac_var=\$ac_old_val
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2771 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2773 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2776 # Pass precious variables to config.status.
2777 if test "$ac_new_set" = set; then
2779 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2780 *) ac_arg=$ac_var=$ac_new_val ;;
2782 case " $ac_configure_args " in
2783 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2784 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2788 if $ac_cache_corrupted; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2792 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2793 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2795 ## -------------------- ##
2796 ## Main body of script. ##
2797 ## -------------------- ##
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 for ac_dir in build "$srcdir"/build; do
2834 for ac_t in install-sh install.sh shtool; do
2835 if test -f "$ac_dir/$ac_t"; then
2837 ac_install_sh="$ac_aux_dir/$ac_t -c"
2842 if test -z "$ac_aux_dir"; then
2843 as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2846 # These three variables are undocumented and unsupported,
2847 # and are intended to be withdrawn in a future Autoconf release.
2848 # They can cause serious problems if a builder's source tree is in a directory
2849 # whose full name contains unusual characters.
2850 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2851 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2852 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2855 eval `$ac_aux_dir/version.sh`
2856 if test -z "$OL_STRING"; then
2857 as_fn_error "could not determine version" "$LINENO" 5
2860 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2861 ac_cv_shtool="$ac_aux_dir/shtool"
2863 as_fn_error "no shtool found in $ac_aux_dir" "$LINENO" 5
2866 SHTOOL="$ac_cv_shtool"
2870 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2871 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2875 if test -d $ac_aux_dir/../.git; then
2876 OPENLDAP_REPO="(from Git clone) "
2877 elif test -d $ac_aux_dir/CVS; then
2878 OPENLDAP_REPO="(from CVS checkout) "
2881 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2883 # Make sure we can run config.sub.
2884 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2885 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2888 $as_echo_n "checking build system type... " >&6; }
2889 if test "${ac_cv_build+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2892 ac_build_alias=$build_alias
2893 test "x$ac_build_alias" = x &&
2894 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2895 test "x$ac_build_alias" = x &&
2896 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2897 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2898 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2902 $as_echo "$ac_cv_build" >&6; }
2903 case $ac_cv_build in
2905 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2908 ac_save_IFS=$IFS; IFS='-'
2914 # Remember, the first character of IFS is used to create $*,
2915 # except with old shells:
2918 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2922 $as_echo_n "checking host system type... " >&6; }
2923 if test "${ac_cv_host+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2926 if test "x$host_alias" = x; then
2927 ac_cv_host=$ac_cv_build
2929 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2930 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2935 $as_echo "$ac_cv_host" >&6; }
2938 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2941 ac_save_IFS=$IFS; IFS='-'
2947 # Remember, the first character of IFS is used to create $*,
2948 # except with old shells:
2951 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2955 $as_echo_n "checking target system type... " >&6; }
2956 if test "${ac_cv_target+set}" = set; then :
2957 $as_echo_n "(cached) " >&6
2959 if test "x$target_alias" = x; then
2960 ac_cv_target=$ac_cv_host
2962 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2963 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2968 $as_echo "$ac_cv_target" >&6; }
2969 case $ac_cv_target in
2971 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2973 target=$ac_cv_target
2974 ac_save_IFS=$IFS; IFS='-'
2980 # Remember, the first character of IFS is used to create $*,
2981 # except with old shells:
2984 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2987 # The aliases save the names the user supplied, while $host etc.
2988 # will get canonicalized.
2989 test -n "$target_alias" &&
2990 test "$program_prefix$program_suffix$program_transform_name" = \
2992 program_prefix=${target_alias}-
2994 am__api_version="1.9"
2995 # Find a good install program. We prefer a C program (faster),
2996 # so one script is as good as another. But avoid the broken or
2997 # incompatible versions:
2998 # SysV /etc/install, /usr/sbin/install
2999 # SunOS /usr/etc/install
3000 # IRIX /sbin/install
3002 # AmigaOS /C/install, which installs bootblocks on floppy discs
3003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3006 # OS/2's system install, which has a completely different semantic
3007 # ./install, which can be erroneously created by make from ./install.sh.
3008 # Reject install programs that cannot install multiple files.
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3010 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3011 if test -z "$INSTALL"; then
3012 if test "${ac_cv_path_install+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 # Account for people who put trailing slashes in PATH elements.
3021 case $as_dir/ in #((
3022 ./ | .// | /[cC]/* | \
3023 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3024 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3027 # OSF1 and SCO ODT 3.0 have their own names for install.
3028 # Don't use installbsd from OSF since it installs stuff as root
3030 for ac_prog in ginstall scoinst install; do
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3033 if test $ac_prog = install &&
3034 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3035 # AIX install. It has an incompatible calling convention.
3037 elif test $ac_prog = install &&
3038 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3039 # program-specific install script used by HP pwplus--don't use.
3042 rm -rf conftest.one conftest.two conftest.dir
3043 echo one > conftest.one
3044 echo two > conftest.two
3046 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3047 test -s conftest.one && test -s conftest.two &&
3048 test -s conftest.dir/conftest.one &&
3049 test -s conftest.dir/conftest.two
3051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3064 rm -rf conftest.one conftest.two conftest.dir
3067 if test "${ac_cv_path_install+set}" = set; then
3068 INSTALL=$ac_cv_path_install
3070 # As a last resort, use the slow shell script. Don't cache a
3071 # value for INSTALL within a source directory, because that will
3072 # break other packages using the cache if that directory is
3073 # removed, or if the value is a relative name.
3074 INSTALL=$ac_install_sh
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3078 $as_echo "$INSTALL" >&6; }
3080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3081 # It thinks the first close brace ends the variable substitution.
3082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3089 $as_echo_n "checking whether build environment is sane... " >&6; }
3092 echo timestamp > conftest.file
3093 # Do `set' in a subshell so we don't clobber the current shell's
3094 # arguments. Must try -L first in case configure is actually a
3095 # symlink; some systems play weird games with the mod time of symlinks
3096 # (eg FreeBSD returns the mod time of the symlink's containing
3099 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3100 if test "$*" = "X"; then
3102 set X `ls -t $srcdir/configure conftest.file`
3105 if test "$*" != "X $srcdir/configure conftest.file" \
3106 && test "$*" != "X conftest.file $srcdir/configure"; then
3108 # If neither matched, then we have a broken ls. This can happen
3109 # if, for instance, CONFIG_SHELL is bash and it inherits a
3110 # broken ls alias from the environment. This has actually
3111 # happened. Such a system could not be considered "sane".
3112 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3113 alias in your environment" "$LINENO" 5
3116 test "$2" = conftest.file
3122 as_fn_error "newly created file is older than distributed files!
3123 Check your system clock" "$LINENO" 5
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126 $as_echo "yes" >&6; }
3127 test "$program_prefix" != NONE &&
3128 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3129 # Use a double $ so make ignores it.
3130 test "$program_suffix" != NONE &&
3131 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3132 # Double any \ or $.
3133 # By default was `s,x,x', remove it if useless.
3134 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3135 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3137 # expand $ac_aux_dir to an absolute path
3138 am_aux_dir=`cd $ac_aux_dir && pwd`
3140 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3141 # Use eval to expand $SHELL
3142 if eval "$MISSING --run true"; then
3143 am_missing_run="$MISSING --run "
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3147 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3150 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3151 # We used to keeping the `.' as first argument, in order to
3152 # allow $(mkdir_p) to be used without argument. As in
3153 # $(mkdir_p) $(somedir)
3154 # where $(somedir) is conditionally defined. However this is wrong
3156 # 1. if the package is installed by a user who cannot write `.'
3157 # make install will fail,
3158 # 2. the above comment should most certainly read
3159 # $(mkdir_p) $(DESTDIR)$(somedir)
3160 # so it does not work when $(somedir) is undefined and
3161 # $(DESTDIR) is not.
3162 # To support the latter case, we have to write
3163 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3164 # so the `.' trick is pointless.
3165 mkdir_p='mkdir -p --'
3167 # On NextStep and OpenStep, the `mkdir' command does not
3168 # recognize any option. It will interpret all options as
3169 # directories to create, and then abort because `.' already
3171 for d in ./-p ./--version;
3173 test -d $d && rmdir $d
3175 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3176 if test -f "$ac_aux_dir/mkinstalldirs"; then
3177 mkdir_p='$(mkinstalldirs)'
3179 mkdir_p='$(install_sh) -d'
3183 for ac_prog in gawk mawk nawk awk
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186 set dummy $ac_prog; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_AWK+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3192 if test -n "$AWK"; then
3193 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_AWK="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 if test -n "$AWK"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3215 $as_echo "$AWK" >&6; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3222 test -n "$AWK" && break
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3226 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3228 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3229 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3230 $as_echo_n "(cached) " >&6
3232 cat >conftest.make <<\_ACEOF
3235 @echo '@@@%%%=$(MAKE)=@@@%%%'
3237 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3238 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3240 eval ac_cv_prog_make_${ac_make}_set=yes;;
3242 eval ac_cv_prog_make_${ac_make}_set=no;;
3246 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 $as_echo "yes" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 SET_MAKE="MAKE=${MAKE-make}"
3256 rm -rf .tst 2>/dev/null
3257 mkdir .tst 2>/dev/null
3258 if test -d .tst; then
3263 rmdir .tst 2>/dev/null
3265 # test to see if srcdir already configured
3266 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3267 test -f $srcdir/config.status; then
3268 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3271 # test whether we have cygpath
3272 if test -z "$CYGPATH_W"; then
3273 if (cygpath --version) >/dev/null 2>/dev/null; then
3274 CYGPATH_W='cygpath -w'
3281 # Define the identity of the package.
3286 # Some tools Automake needs.
3288 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3291 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3294 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3297 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3300 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3302 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3304 # Installed binaries are usually stripped using `strip' when the user
3305 # run `make install-strip'. However `strip' might not be the right
3306 # tool to use in cross-compilation environments, therefore Automake
3307 # will honor the `STRIP' environment variable to overrule this program.
3308 if test "$cross_compiling" != no; then
3309 if test -n "$ac_tool_prefix"; then
3310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3311 set dummy ${ac_tool_prefix}strip; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if test "${ac_cv_prog_STRIP+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
3317 if test -n "$STRIP"; then
3318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 STRIP=$ac_cv_prog_STRIP
3338 if test -n "$STRIP"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3340 $as_echo "$STRIP" >&6; }
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3348 if test -z "$ac_cv_prog_STRIP"; then
3350 # Extract the first word of "strip", so it can be a program name with args.
3351 set dummy strip; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3355 $as_echo_n "(cached) " >&6
3357 if test -n "$ac_ct_STRIP"; then
3358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 ac_cv_prog_ac_ct_STRIP="strip"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3378 if test -n "$ac_ct_STRIP"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3380 $as_echo "$ac_ct_STRIP" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3386 if test "x$ac_ct_STRIP" = x; then
3389 case $cross_compiling:$ac_tool_warned in
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3393 ac_tool_warned=yes ;;
3398 STRIP="$ac_cv_prog_STRIP"
3402 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3404 # We need awk for the "check" target. The system "awk" is bad on
3406 # Always define AMTAR for backward compatibility.
3408 AMTAR=${AMTAR-"${am_missing_run}tar"}
3410 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3416 cat >>confdefs.h <<_ACEOF
3417 #define OPENLDAP_PACKAGE "$PACKAGE"
3421 cat >>confdefs.h <<_ACEOF
3422 #define OPENLDAP_VERSION "$VERSION"
3427 cat >>confdefs.h <<_ACEOF
3428 #define LDAP_VENDOR_VERSION $OL_API_INC
3432 cat >>confdefs.h <<_ACEOF
3433 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
3437 cat >>confdefs.h <<_ACEOF
3438 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
3442 cat >>confdefs.h <<_ACEOF
3443 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
3447 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
3449 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
3451 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
3457 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
3459 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
3461 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
3465 $as_echo_n "checking configure arguments... " >&6; }
3470 ldap_subdir="/openldap"
3473 # Check whether --with-subdir was given.
3474 if test "${with_subdir+set}" = set; then :
3475 withval=$with_subdir; case "$withval" in
3481 ldap_subdir="$withval"
3484 ldap_subdir="/$withval"
3491 # OpenLDAP --enable-debug
3493 # Check whether --enable-debug was given.
3494 if test "${enable_debug+set}" = set; then :
3495 enableval=$enable_debug;
3497 for ol_val in no yes traditional ; do
3498 if test "$enableval" = "$ol_val" ; then
3502 if test "$ol_arg" = "invalid" ; then
3503 as_fn_error "bad value $enableval for --enable-debug" "$LINENO" 5
3505 ol_enable_debug="$ol_arg"
3511 # end --enable-debug
3512 # OpenLDAP --enable-dynamic
3514 # Check whether --enable-dynamic was given.
3515 if test "${enable_dynamic+set}" = set; then :
3516 enableval=$enable_dynamic;
3518 for ol_val in auto yes no ; do
3519 if test "$enableval" = "$ol_val" ; then
3523 if test "$ol_arg" = "invalid" ; then
3524 as_fn_error "bad value $enableval for --enable-dynamic" "$LINENO" 5
3526 ol_enable_dynamic="$ol_arg"
3529 ol_enable_dynamic=no
3532 # end --enable-dynamic
3533 # OpenLDAP --enable-syslog
3535 # Check whether --enable-syslog was given.
3536 if test "${enable_syslog+set}" = set; then :
3537 enableval=$enable_syslog;
3539 for ol_val in auto yes no ; do
3540 if test "$enableval" = "$ol_val" ; then
3544 if test "$ol_arg" = "invalid" ; then
3545 as_fn_error "bad value $enableval for --enable-syslog" "$LINENO" 5
3547 ol_enable_syslog="$ol_arg"
3550 ol_enable_syslog=auto
3553 # end --enable-syslog
3554 # OpenLDAP --enable-proctitle
3556 # Check whether --enable-proctitle was given.
3557 if test "${enable_proctitle+set}" = set; then :
3558 enableval=$enable_proctitle;
3560 for ol_val in auto yes no ; do
3561 if test "$enableval" = "$ol_val" ; then
3565 if test "$ol_arg" = "invalid" ; then
3566 as_fn_error "bad value $enableval for --enable-proctitle" "$LINENO" 5
3568 ol_enable_proctitle="$ol_arg"
3571 ol_enable_proctitle=yes
3574 # end --enable-proctitle
3575 ol_enable_referrals=${ol_enable_referrals-no}
3576 # OpenLDAP --enable-ipv6
3578 # Check whether --enable-ipv6 was given.
3579 if test "${enable_ipv6+set}" = set; then :
3580 enableval=$enable_ipv6;
3582 for ol_val in auto yes no ; do
3583 if test "$enableval" = "$ol_val" ; then
3587 if test "$ol_arg" = "invalid" ; then
3588 as_fn_error "bad value $enableval for --enable-ipv6" "$LINENO" 5
3590 ol_enable_ipv6="$ol_arg"
3597 # OpenLDAP --enable-local
3599 # Check whether --enable-local was given.
3600 if test "${enable_local+set}" = set; then :
3601 enableval=$enable_local;
3603 for ol_val in auto yes no ; do
3604 if test "$enableval" = "$ol_val" ; then
3608 if test "$ol_arg" = "invalid" ; then
3609 as_fn_error "bad value $enableval for --enable-local" "$LINENO" 5
3611 ol_enable_local="$ol_arg"
3614 ol_enable_local=auto
3617 # end --enable-local
3619 # OpenLDAP --with-cyrus_sasl
3621 # Check whether --with-cyrus_sasl was given.
3622 if test "${with_cyrus_sasl+set}" = set; then :
3623 withval=$with_cyrus_sasl;
3625 for ol_val in auto yes no ; do
3626 if test "$withval" = "$ol_val" ; then
3630 if test "$ol_arg" = "invalid" ; then
3631 as_fn_error "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3633 ol_with_cyrus_sasl="$ol_arg"
3636 ol_with_cyrus_sasl="auto"
3638 # end --with-cyrus_sasl
3640 # OpenLDAP --with-fetch
3642 # Check whether --with-fetch was given.
3643 if test "${with_fetch+set}" = set; then :
3644 withval=$with_fetch;
3646 for ol_val in auto yes no ; do
3647 if test "$withval" = "$ol_val" ; then
3651 if test "$ol_arg" = "invalid" ; then
3652 as_fn_error "bad value $withval for --with-fetch" "$LINENO" 5
3654 ol_with_fetch="$ol_arg"
3657 ol_with_fetch="auto"
3661 # OpenLDAP --with-threads
3663 # Check whether --with-threads was given.
3664 if test "${with_threads+set}" = set; then :
3665 withval=$with_threads;
3667 for ol_val in auto nt posix mach pth lwp yes no manual ; do
3668 if test "$withval" = "$ol_val" ; then
3672 if test "$ol_arg" = "invalid" ; then
3673 as_fn_error "bad value $withval for --with-threads" "$LINENO" 5
3675 ol_with_threads="$ol_arg"
3678 ol_with_threads="auto"
3680 # end --with-threads
3682 # OpenLDAP --with-tls
3684 # Check whether --with-tls was given.
3685 if test "${with_tls+set}" = set; then :
3688 for ol_val in auto openssl gnutls moznss yes no ; do
3689 if test "$withval" = "$ol_val" ; then
3693 if test "$ol_arg" = "invalid" ; then
3694 as_fn_error "bad value $withval for --with-tls" "$LINENO" 5
3696 ol_with_tls="$ol_arg"
3703 # OpenLDAP --with-yielding_select
3705 # Check whether --with-yielding_select was given.
3706 if test "${with_yielding_select+set}" = set; then :
3707 withval=$with_yielding_select;
3709 for ol_val in auto yes no manual ; do
3710 if test "$withval" = "$ol_val" ; then
3714 if test "$ol_arg" = "invalid" ; then
3715 as_fn_error "bad value $withval for --with-yielding_select" "$LINENO" 5
3717 ol_with_yielding_select="$ol_arg"
3720 ol_with_yielding_select="auto"
3722 # end --with-yielding_select
3724 # OpenLDAP --with-mp
3726 # Check whether --with-mp was given.
3727 if test "${with_mp+set}" = set; then :
3730 for ol_val in auto longlong long bignum gmp yes no ; do
3731 if test "$withval" = "$ol_val" ; then
3735 if test "$ol_arg" = "invalid" ; then
3736 as_fn_error "bad value $withval for --with-mp" "$LINENO" 5
3738 ol_with_mp="$ol_arg"
3745 # OpenLDAP --with-odbc
3747 # Check whether --with-odbc was given.
3748 if test "${with_odbc+set}" = set; then :
3751 for ol_val in auto iodbc unixodbc odbc32 ; do
3752 if test "$withval" = "$ol_val" ; then
3756 if test "$ol_arg" = "invalid" ; then
3757 as_fn_error "bad value $withval for --with-odbc" "$LINENO" 5
3759 ol_with_odbc="$ol_arg"
3768 # Check whether --enable-xxslapdoptions was given.
3769 if test "${enable_xxslapdoptions+set}" = set; then :
3770 enableval=$enable_xxslapdoptions;
3773 # OpenLDAP --enable-slapd
3775 # Check whether --enable-slapd was given.
3776 if test "${enable_slapd+set}" = set; then :
3777 enableval=$enable_slapd;
3779 for ol_val in auto yes no ; do
3780 if test "$enableval" = "$ol_val" ; then
3784 if test "$ol_arg" = "invalid" ; then
3785 as_fn_error "bad value $enableval for --enable-slapd" "$LINENO" 5
3787 ol_enable_slapd="$ol_arg"
3793 # end --enable-slapd
3794 # OpenLDAP --enable-dynacl
3796 # Check whether --enable-dynacl was given.
3797 if test "${enable_dynacl+set}" = set; then :
3798 enableval=$enable_dynacl;
3800 for ol_val in auto yes no ; do
3801 if test "$enableval" = "$ol_val" ; then
3805 if test "$ol_arg" = "invalid" ; then
3806 as_fn_error "bad value $enableval for --enable-dynacl" "$LINENO" 5
3808 ol_enable_dynacl="$ol_arg"
3814 # end --enable-dynacl
3815 # OpenLDAP --enable-aci
3817 # Check whether --enable-aci was given.
3818 if test "${enable_aci+set}" = set; then :
3819 enableval=$enable_aci;
3821 for ol_val in no yes mod ; do
3822 if test "$enableval" = "$ol_val" ; then
3826 if test "$ol_arg" = "invalid" ; then
3827 as_fn_error "bad value $enableval for --enable-aci" "$LINENO" 5
3829 ol_enable_aci="$ol_arg"
3836 # OpenLDAP --enable-cleartext
3838 # Check whether --enable-cleartext was given.
3839 if test "${enable_cleartext+set}" = set; then :
3840 enableval=$enable_cleartext;
3842 for ol_val in auto yes no ; do
3843 if test "$enableval" = "$ol_val" ; then
3847 if test "$ol_arg" = "invalid" ; then
3848 as_fn_error "bad value $enableval for --enable-cleartext" "$LINENO" 5
3850 ol_enable_cleartext="$ol_arg"
3853 ol_enable_cleartext=yes
3856 # end --enable-cleartext
3857 # OpenLDAP --enable-crypt
3859 # Check whether --enable-crypt was given.
3860 if test "${enable_crypt+set}" = set; then :
3861 enableval=$enable_crypt;
3863 for ol_val in auto yes no ; do
3864 if test "$enableval" = "$ol_val" ; then
3868 if test "$ol_arg" = "invalid" ; then
3869 as_fn_error "bad value $enableval for --enable-crypt" "$LINENO" 5
3871 ol_enable_crypt="$ol_arg"
3877 # end --enable-crypt
3878 # OpenLDAP --enable-lmpasswd
3880 # Check whether --enable-lmpasswd was given.
3881 if test "${enable_lmpasswd+set}" = set; then :
3882 enableval=$enable_lmpasswd;
3884 for ol_val in auto yes no ; do
3885 if test "$enableval" = "$ol_val" ; then
3889 if test "$ol_arg" = "invalid" ; then
3890 as_fn_error "bad value $enableval for --enable-lmpasswd" "$LINENO" 5
3892 ol_enable_lmpasswd="$ol_arg"
3895 ol_enable_lmpasswd=no
3898 # end --enable-lmpasswd
3899 # OpenLDAP --enable-spasswd
3901 # Check whether --enable-spasswd was given.
3902 if test "${enable_spasswd+set}" = set; then :
3903 enableval=$enable_spasswd;
3905 for ol_val in auto yes no ; do
3906 if test "$enableval" = "$ol_val" ; then
3910 if test "$ol_arg" = "invalid" ; then
3911 as_fn_error "bad value $enableval for --enable-spasswd" "$LINENO" 5
3913 ol_enable_spasswd="$ol_arg"
3916 ol_enable_spasswd=no
3919 # end --enable-spasswd
3920 # OpenLDAP --enable-modules
3922 # Check whether --enable-modules was given.
3923 if test "${enable_modules+set}" = set; then :
3924 enableval=$enable_modules;
3926 for ol_val in auto yes no ; do
3927 if test "$enableval" = "$ol_val" ; then
3931 if test "$ol_arg" = "invalid" ; then
3932 as_fn_error "bad value $enableval for --enable-modules" "$LINENO" 5
3934 ol_enable_modules="$ol_arg"
3937 ol_enable_modules=no
3940 # end --enable-modules
3941 # OpenLDAP --enable-rewrite
3943 # Check whether --enable-rewrite was given.
3944 if test "${enable_rewrite+set}" = set; then :
3945 enableval=$enable_rewrite;
3947 for ol_val in auto yes no ; do
3948 if test "$enableval" = "$ol_val" ; then
3952 if test "$ol_arg" = "invalid" ; then
3953 as_fn_error "bad value $enableval for --enable-rewrite" "$LINENO" 5
3955 ol_enable_rewrite="$ol_arg"
3958 ol_enable_rewrite=auto
3961 # end --enable-rewrite
3962 # OpenLDAP --enable-rlookups
3964 # Check whether --enable-rlookups was given.
3965 if test "${enable_rlookups+set}" = set; then :
3966 enableval=$enable_rlookups;
3968 for ol_val in auto yes no ; do
3969 if test "$enableval" = "$ol_val" ; then
3973 if test "$ol_arg" = "invalid" ; then
3974 as_fn_error "bad value $enableval for --enable-rlookups" "$LINENO" 5
3976 ol_enable_rlookups="$ol_arg"
3979 ol_enable_rlookups=no
3982 # end --enable-rlookups
3983 # OpenLDAP --enable-slapi
3985 # Check whether --enable-slapi was given.
3986 if test "${enable_slapi+set}" = set; then :
3987 enableval=$enable_slapi;
3989 for ol_val in auto yes no ; do
3990 if test "$enableval" = "$ol_val" ; then
3994 if test "$ol_arg" = "invalid" ; then
3995 as_fn_error "bad value $enableval for --enable-slapi" "$LINENO" 5
3997 ol_enable_slapi="$ol_arg"
4003 # end --enable-slapi
4004 # OpenLDAP --enable-slp
4006 # Check whether --enable-slp was given.
4007 if test "${enable_slp+set}" = set; then :
4008 enableval=$enable_slp;
4010 for ol_val in auto yes no ; do
4011 if test "$enableval" = "$ol_val" ; then
4015 if test "$ol_arg" = "invalid" ; then
4016 as_fn_error "bad value $enableval for --enable-slp" "$LINENO" 5
4018 ol_enable_slp="$ol_arg"
4025 # OpenLDAP --enable-wrappers
4027 # Check whether --enable-wrappers was given.
4028 if test "${enable_wrappers+set}" = set; then :
4029 enableval=$enable_wrappers;
4031 for ol_val in auto yes no ; do
4032 if test "$enableval" = "$ol_val" ; then
4036 if test "$ol_arg" = "invalid" ; then
4037 as_fn_error "bad value $enableval for --enable-wrappers" "$LINENO" 5
4039 ol_enable_wrappers="$ol_arg"
4042 ol_enable_wrappers=no
4045 # end --enable-wrappers
4062 # Check whether --enable-xxslapbackends was given.
4063 if test "${enable_xxslapbackends+set}" = set; then :
4064 enableval=$enable_xxslapbackends;
4068 # OpenLDAP --enable-backends
4070 # Check whether --enable-backends was given.
4071 if test "${enable_backends+set}" = set; then :
4072 enableval=$enable_backends;
4074 for ol_val in no yes mod ; do
4075 if test "$enableval" = "$ol_val" ; then
4079 if test "$ol_arg" = "invalid" ; then
4080 as_fn_error "bad value $enableval for --enable-backends" "$LINENO" 5
4082 ol_enable_backends="$ol_arg"
4086 # end --enable-backends
4087 # OpenLDAP --enable-bdb
4089 # Check whether --enable-bdb was given.
4090 if test "${enable_bdb+set}" = set; then :
4091 enableval=$enable_bdb;
4093 for ol_val in no yes mod ; do
4094 if test "$enableval" = "$ol_val" ; then
4098 if test "$ol_arg" = "invalid" ; then
4099 as_fn_error "bad value $enableval for --enable-bdb" "$LINENO" 5
4101 ol_enable_bdb="$ol_arg"
4104 ol_enable_bdb=${ol_enable_backends:-no}
4108 # OpenLDAP --enable-dnssrv
4110 # Check whether --enable-dnssrv was given.
4111 if test "${enable_dnssrv+set}" = set; then :
4112 enableval=$enable_dnssrv;
4114 for ol_val in no yes mod ; do
4115 if test "$enableval" = "$ol_val" ; then
4119 if test "$ol_arg" = "invalid" ; then
4120 as_fn_error "bad value $enableval for --enable-dnssrv" "$LINENO" 5
4122 ol_enable_dnssrv="$ol_arg"
4125 ol_enable_dnssrv=${ol_enable_backends:-no}
4128 # end --enable-dnssrv
4129 # OpenLDAP --enable-hdb
4131 # Check whether --enable-hdb was given.
4132 if test "${enable_hdb+set}" = set; then :
4133 enableval=$enable_hdb;
4135 for ol_val in no yes mod ; do
4136 if test "$enableval" = "$ol_val" ; then
4140 if test "$ol_arg" = "invalid" ; then
4141 as_fn_error "bad value $enableval for --enable-hdb" "$LINENO" 5
4143 ol_enable_hdb="$ol_arg"
4146 ol_enable_hdb=${ol_enable_backends:-yes}
4150 # OpenLDAP --enable-ldap
4152 # Check whether --enable-ldap was given.
4153 if test "${enable_ldap+set}" = set; then :
4154 enableval=$enable_ldap;
4156 for ol_val in no yes mod ; do
4157 if test "$enableval" = "$ol_val" ; then
4161 if test "$ol_arg" = "invalid" ; then
4162 as_fn_error "bad value $enableval for --enable-ldap" "$LINENO" 5
4164 ol_enable_ldap="$ol_arg"
4167 ol_enable_ldap=${ol_enable_backends:-no}
4171 # OpenLDAP --enable-meta
4173 # Check whether --enable-meta was given.
4174 if test "${enable_meta+set}" = set; then :
4175 enableval=$enable_meta;
4177 for ol_val in no yes mod ; do
4178 if test "$enableval" = "$ol_val" ; then
4182 if test "$ol_arg" = "invalid" ; then
4183 as_fn_error "bad value $enableval for --enable-meta" "$LINENO" 5
4185 ol_enable_meta="$ol_arg"
4188 ol_enable_meta=${ol_enable_backends:-no}
4192 # OpenLDAP --enable-monitor
4194 # Check whether --enable-monitor was given.
4195 if test "${enable_monitor+set}" = set; then :
4196 enableval=$enable_monitor;
4198 for ol_val in no yes mod ; do
4199 if test "$enableval" = "$ol_val" ; then
4203 if test "$ol_arg" = "invalid" ; then
4204 as_fn_error "bad value $enableval for --enable-monitor" "$LINENO" 5
4206 ol_enable_monitor="$ol_arg"
4209 ol_enable_monitor=${ol_enable_backends:-yes}
4212 # end --enable-monitor
4213 # OpenLDAP --enable-ndb
4215 # Check whether --enable-ndb was given.
4216 if test "${enable_ndb+set}" = set; then :
4217 enableval=$enable_ndb;
4219 for ol_val in no yes mod ; do
4220 if test "$enableval" = "$ol_val" ; then
4224 if test "$ol_arg" = "invalid" ; then
4225 as_fn_error "bad value $enableval for --enable-ndb" "$LINENO" 5
4227 ol_enable_ndb="$ol_arg"
4230 ol_enable_ndb=${ol_enable_backends:-no}
4234 # OpenLDAP --enable-null
4236 # Check whether --enable-null was given.
4237 if test "${enable_null+set}" = set; then :
4238 enableval=$enable_null;
4240 for ol_val in no yes mod ; do
4241 if test "$enableval" = "$ol_val" ; then
4245 if test "$ol_arg" = "invalid" ; then
4246 as_fn_error "bad value $enableval for --enable-null" "$LINENO" 5
4248 ol_enable_null="$ol_arg"
4251 ol_enable_null=${ol_enable_backends:-no}
4255 # OpenLDAP --enable-passwd
4257 # Check whether --enable-passwd was given.
4258 if test "${enable_passwd+set}" = set; then :
4259 enableval=$enable_passwd;
4261 for ol_val in no yes mod ; do
4262 if test "$enableval" = "$ol_val" ; then
4266 if test "$ol_arg" = "invalid" ; then
4267 as_fn_error "bad value $enableval for --enable-passwd" "$LINENO" 5
4269 ol_enable_passwd="$ol_arg"
4272 ol_enable_passwd=${ol_enable_backends:-no}
4275 # end --enable-passwd
4276 # OpenLDAP --enable-perl
4278 # Check whether --enable-perl was given.
4279 if test "${enable_perl+set}" = set; then :
4280 enableval=$enable_perl;
4282 for ol_val in no yes mod ; do
4283 if test "$enableval" = "$ol_val" ; then
4287 if test "$ol_arg" = "invalid" ; then
4288 as_fn_error "bad value $enableval for --enable-perl" "$LINENO" 5
4290 ol_enable_perl="$ol_arg"
4293 ol_enable_perl=${ol_enable_backends:-no}
4297 # OpenLDAP --enable-relay
4299 # Check whether --enable-relay was given.
4300 if test "${enable_relay+set}" = set; then :
4301 enableval=$enable_relay;
4303 for ol_val in no yes mod ; do
4304 if test "$enableval" = "$ol_val" ; then
4308 if test "$ol_arg" = "invalid" ; then
4309 as_fn_error "bad value $enableval for --enable-relay" "$LINENO" 5
4311 ol_enable_relay="$ol_arg"
4314 ol_enable_relay=${ol_enable_backends:-yes}
4317 # end --enable-relay
4318 # OpenLDAP --enable-shell
4320 # Check whether --enable-shell was given.
4321 if test "${enable_shell+set}" = set; then :
4322 enableval=$enable_shell;
4324 for ol_val in no yes mod ; do
4325 if test "$enableval" = "$ol_val" ; then
4329 if test "$ol_arg" = "invalid" ; then
4330 as_fn_error "bad value $enableval for --enable-shell" "$LINENO" 5
4332 ol_enable_shell="$ol_arg"
4335 ol_enable_shell=${ol_enable_backends:-no}
4338 # end --enable-shell
4339 # OpenLDAP --enable-sock
4341 # Check whether --enable-sock was given.
4342 if test "${enable_sock+set}" = set; then :
4343 enableval=$enable_sock;
4345 for ol_val in no yes mod ; do
4346 if test "$enableval" = "$ol_val" ; then
4350 if test "$ol_arg" = "invalid" ; then
4351 as_fn_error "bad value $enableval for --enable-sock" "$LINENO" 5
4353 ol_enable_sock="$ol_arg"
4356 ol_enable_sock=${ol_enable_backends:-no}
4360 # OpenLDAP --enable-sql
4362 # Check whether --enable-sql was given.
4363 if test "${enable_sql+set}" = set; then :
4364 enableval=$enable_sql;
4366 for ol_val in no yes mod ; do
4367 if test "$enableval" = "$ol_val" ; then
4371 if test "$ol_arg" = "invalid" ; then
4372 as_fn_error "bad value $enableval for --enable-sql" "$LINENO" 5
4374 ol_enable_sql="$ol_arg"
4377 ol_enable_sql=${ol_enable_backends:-no}
4382 Overlays="accesslog \
4403 # Check whether --enable-xxslapoverlays was given.
4404 if test "${enable_xxslapoverlays+set}" = set; then :
4405 enableval=$enable_xxslapoverlays;
4409 # OpenLDAP --enable-overlays
4411 # Check whether --enable-overlays was given.
4412 if test "${enable_overlays+set}" = set; then :
4413 enableval=$enable_overlays;
4415 for ol_val in no yes mod ; do
4416 if test "$enableval" = "$ol_val" ; then
4420 if test "$ol_arg" = "invalid" ; then
4421 as_fn_error "bad value $enableval for --enable-overlays" "$LINENO" 5
4423 ol_enable_overlays="$ol_arg"
4427 # end --enable-overlays
4428 # OpenLDAP --enable-accesslog
4430 # Check whether --enable-accesslog was given.
4431 if test "${enable_accesslog+set}" = set; then :
4432 enableval=$enable_accesslog;
4434 for ol_val in no yes mod ; do
4435 if test "$enableval" = "$ol_val" ; then
4439 if test "$ol_arg" = "invalid" ; then
4440 as_fn_error "bad value $enableval for --enable-accesslog" "$LINENO" 5
4442 ol_enable_accesslog="$ol_arg"
4445 ol_enable_accesslog=${ol_enable_overlays:-no}
4448 # end --enable-accesslog
4450 # OpenLDAP --enable-auditlog
4452 # Check whether --enable-auditlog was given.
4453 if test "${enable_auditlog+set}" = set; then :
4454 enableval=$enable_auditlog;
4456 for ol_val in no yes mod ; do
4457 if test "$enableval" = "$ol_val" ; then
4461 if test "$ol_arg" = "invalid" ; then
4462 as_fn_error "bad value $enableval for --enable-auditlog" "$LINENO" 5
4464 ol_enable_auditlog="$ol_arg"
4467 ol_enable_auditlog=${ol_enable_overlays:-no}
4470 # end --enable-auditlog
4472 # OpenLDAP --enable-collect
4474 # Check whether --enable-collect was given.
4475 if test "${enable_collect+set}" = set; then :
4476 enableval=$enable_collect;
4478 for ol_val in no yes mod ; do
4479 if test "$enableval" = "$ol_val" ; then
4483 if test "$ol_arg" = "invalid" ; then
4484 as_fn_error "bad value $enableval for --enable-collect" "$LINENO" 5
4486 ol_enable_collect="$ol_arg"
4489 ol_enable_collect=${ol_enable_overlays:-no}
4492 # end --enable-collect
4494 # OpenLDAP --enable-constraint
4496 # Check whether --enable-constraint was given.
4497 if test "${enable_constraint+set}" = set; then :
4498 enableval=$enable_constraint;
4500 for ol_val in no yes mod ; do
4501 if test "$enableval" = "$ol_val" ; then
4505 if test "$ol_arg" = "invalid" ; then
4506 as_fn_error "bad value $enableval for --enable-constraint" "$LINENO" 5
4508 ol_enable_constraint="$ol_arg"
4511 ol_enable_constraint=${ol_enable_overlays:-no}
4514 # end --enable-constraint
4516 # OpenLDAP --enable-dds
4518 # Check whether --enable-dds was given.
4519 if test "${enable_dds+set}" = set; then :
4520 enableval=$enable_dds;
4522 for ol_val in no yes mod ; do
4523 if test "$enableval" = "$ol_val" ; then
4527 if test "$ol_arg" = "invalid" ; then
4528 as_fn_error "bad value $enableval for --enable-dds" "$LINENO" 5
4530 ol_enable_dds="$ol_arg"
4533 ol_enable_dds=${ol_enable_overlays:-no}
4538 # OpenLDAP --enable-deref
4540 # Check whether --enable-deref was given.
4541 if test "${enable_deref+set}" = set; then :
4542 enableval=$enable_deref;
4544 for ol_val in no yes mod ; do
4545 if test "$enableval" = "$ol_val" ; then
4549 if test "$ol_arg" = "invalid" ; then
4550 as_fn_error "bad value $enableval for --enable-deref" "$LINENO" 5
4552 ol_enable_deref="$ol_arg"
4555 ol_enable_deref=${ol_enable_overlays:-no}
4558 # end --enable-deref
4560 # OpenLDAP --enable-dyngroup
4562 # Check whether --enable-dyngroup was given.
4563 if test "${enable_dyngroup+set}" = set; then :
4564 enableval=$enable_dyngroup;
4566 for ol_val in no yes mod ; do
4567 if test "$enableval" = "$ol_val" ; then
4571 if test "$ol_arg" = "invalid" ; then
4572 as_fn_error "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4574 ol_enable_dyngroup="$ol_arg"
4577 ol_enable_dyngroup=${ol_enable_overlays:-no}
4580 # end --enable-dyngroup
4582 # OpenLDAP --enable-dynlist
4584 # Check whether --enable-dynlist was given.
4585 if test "${enable_dynlist+set}" = set; then :
4586 enableval=$enable_dynlist;
4588 for ol_val in no yes mod ; do
4589 if test "$enableval" = "$ol_val" ; then
4593 if test "$ol_arg" = "invalid" ; then
4594 as_fn_error "bad value $enableval for --enable-dynlist" "$LINENO" 5
4596 ol_enable_dynlist="$ol_arg"
4599 ol_enable_dynlist=${ol_enable_overlays:-no}
4602 # end --enable-dynlist
4604 # OpenLDAP --enable-memberof
4606 # Check whether --enable-memberof was given.
4607 if test "${enable_memberof+set}" = set; then :
4608 enableval=$enable_memberof;
4610 for ol_val in no yes mod ; do
4611 if test "$enableval" = "$ol_val" ; then
4615 if test "$ol_arg" = "invalid" ; then
4616 as_fn_error "bad value $enableval for --enable-memberof" "$LINENO" 5
4618 ol_enable_memberof="$ol_arg"
4621 ol_enable_memberof=${ol_enable_overlays:-no}
4624 # end --enable-memberof
4626 # OpenLDAP --enable-ppolicy
4628 # Check whether --enable-ppolicy was given.
4629 if test "${enable_ppolicy+set}" = set; then :
4630 enableval=$enable_ppolicy;
4632 for ol_val in no yes mod ; do
4633 if test "$enableval" = "$ol_val" ; then
4637 if test "$ol_arg" = "invalid" ; then
4638 as_fn_error "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4640 ol_enable_ppolicy="$ol_arg"
4643 ol_enable_ppolicy=${ol_enable_overlays:-no}
4646 # end --enable-ppolicy
4648 # OpenLDAP --enable-proxycache
4650 # Check whether --enable-proxycache was given.
4651 if test "${enable_proxycache+set}" = set; then :
4652 enableval=$enable_proxycache;
4654 for ol_val in no yes mod ; do
4655 if test "$enableval" = "$ol_val" ; then
4659 if test "$ol_arg" = "invalid" ; then
4660 as_fn_error "bad value $enableval for --enable-proxycache" "$LINENO" 5
4662 ol_enable_proxycache="$ol_arg"
4665 ol_enable_proxycache=${ol_enable_overlays:-no}
4668 # end --enable-proxycache
4670 # OpenLDAP --enable-refint
4672 # Check whether --enable-refint was given.
4673 if test "${enable_refint+set}" = set; then :
4674 enableval=$enable_refint;
4676 for ol_val in no yes mod ; do
4677 if test "$enableval" = "$ol_val" ; then
4681 if test "$ol_arg" = "invalid" ; then
4682 as_fn_error "bad value $enableval for --enable-refint" "$LINENO" 5
4684 ol_enable_refint="$ol_arg"
4687 ol_enable_refint=${ol_enable_overlays:-no}
4690 # end --enable-refint
4692 # OpenLDAP --enable-retcode
4694 # Check whether --enable-retcode was given.
4695 if test "${enable_retcode+set}" = set; then :
4696 enableval=$enable_retcode;
4698 for ol_val in no yes mod ; do
4699 if test "$enableval" = "$ol_val" ; then
4703 if test "$ol_arg" = "invalid" ; then
4704 as_fn_error "bad value $enableval for --enable-retcode" "$LINENO" 5
4706 ol_enable_retcode="$ol_arg"
4709 ol_enable_retcode=${ol_enable_overlays:-no}
4712 # end --enable-retcode
4714 # OpenLDAP --enable-rwm
4716 # Check whether --enable-rwm was given.
4717 if test "${enable_rwm+set}" = set; then :
4718 enableval=$enable_rwm;
4720 for ol_val in no yes mod ; do
4721 if test "$enableval" = "$ol_val" ; then
4725 if test "$ol_arg" = "invalid" ; then
4726 as_fn_error "bad value $enableval for --enable-rwm" "$LINENO" 5
4728 ol_enable_rwm="$ol_arg"
4731 ol_enable_rwm=${ol_enable_overlays:-no}
4736 # OpenLDAP --enable-seqmod
4738 # Check whether --enable-seqmod was given.
4739 if test "${enable_seqmod+set}" = set; then :
4740 enableval=$enable_seqmod;
4742 for ol_val in no yes mod ; do
4743 if test "$enableval" = "$ol_val" ; then
4747 if test "$ol_arg" = "invalid" ; then
4748 as_fn_error "bad value $enableval for --enable-seqmod" "$LINENO" 5
4750 ol_enable_seqmod="$ol_arg"
4753 ol_enable_seqmod=${ol_enable_overlays:-no}
4756 # end --enable-seqmod
4758 # OpenLDAP --enable-sssvlv
4760 # Check whether --enable-sssvlv was given.
4761 if test "${enable_sssvlv+set}" = set; then :
4762 enableval=$enable_sssvlv;
4764 for ol_val in no yes mod ; do
4765 if test "$enableval" = "$ol_val" ; then
4769 if test "$ol_arg" = "invalid" ; then
4770 as_fn_error "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4772 ol_enable_sssvlv="$ol_arg"
4775 ol_enable_sssvlv=${ol_enable_overlays:-no}
4778 # end --enable-sssvlv
4780 # OpenLDAP --enable-syncprov
4782 # Check whether --enable-syncprov was given.
4783 if test "${enable_syncprov+set}" = set; then :
4784 enableval=$enable_syncprov;
4786 for ol_val in no yes mod ; do
4787 if test "$enableval" = "$ol_val" ; then
4791 if test "$ol_arg" = "invalid" ; then
4792 as_fn_error "bad value $enableval for --enable-syncprov" "$LINENO" 5
4794 ol_enable_syncprov="$ol_arg"
4797 ol_enable_syncprov=${ol_enable_overlays:-yes}
4800 # end --enable-syncprov
4802 # OpenLDAP --enable-translucent
4804 # Check whether --enable-translucent was given.
4805 if test "${enable_translucent+set}" = set; then :
4806 enableval=$enable_translucent;
4808 for ol_val in no yes mod ; do
4809 if test "$enableval" = "$ol_val" ; then
4813 if test "$ol_arg" = "invalid" ; then
4814 as_fn_error "bad value $enableval for --enable-translucent" "$LINENO" 5
4816 ol_enable_translucent="$ol_arg"
4819 ol_enable_translucent=${ol_enable_overlays:-no}
4822 # end --enable-translucent
4824 # OpenLDAP --enable-unique
4826 # Check whether --enable-unique was given.
4827 if test "${enable_unique+set}" = set; then :
4828 enableval=$enable_unique;
4830 for ol_val in no yes mod ; do
4831 if test "$enableval" = "$ol_val" ; then
4835 if test "$ol_arg" = "invalid" ; then
4836 as_fn_error "bad value $enableval for --enable-unique" "$LINENO" 5
4838 ol_enable_unique="$ol_arg"
4841 ol_enable_unique=${ol_enable_overlays:-no}
4844 # end --enable-unique
4846 # OpenLDAP --enable-valsort
4848 # Check whether --enable-valsort was given.
4849 if test "${enable_valsort+set}" = set; then :
4850 enableval=$enable_valsort;
4852 for ol_val in no yes mod ; do
4853 if test "$enableval" = "$ol_val" ; then
4857 if test "$ol_arg" = "invalid" ; then
4858 as_fn_error "bad value $enableval for --enable-valsort" "$LINENO" 5
4860 ol_enable_valsort="$ol_arg"
4863 ol_enable_valsort=${ol_enable_overlays:-no}
4866 # end --enable-valsort
4869 # Check whether --enable-xxliboptions was given.
4870 if test "${enable_xxliboptions+set}" = set; then :
4871 enableval=$enable_xxliboptions;
4874 # Check whether --enable-static was given.
4875 if test "${enable_static+set}" = set; then :
4876 enableval=$enable_static; p=${PACKAGE-default}
4878 yes) enable_static=yes ;;
4879 no) enable_static=no ;;
4882 # Look at the argument we got. We use all the common list separators.
4883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4884 for pkg in $enableval; do
4886 if test "X$pkg" = "X$p"; then
4898 # Check whether --enable-shared was given.
4899 if test "${enable_shared+set}" = set; then :
4900 enableval=$enable_shared; p=${PACKAGE-default}
4902 yes) enable_shared=yes ;;
4903 no) enable_shared=no ;;
4906 # Look at the argument we got. We use all the common list separators.
4907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4908 for pkg in $enableval; do
4910 if test "X$pkg" = "X$p"; then
4925 if test $ol_enable_slapd = no ; then
4926 if test $ol_enable_slapi = yes ; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4928 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4930 case "$ol_enable_backends" in yes | mod)
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4932 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4934 for i in $Backends; do
4935 eval "ol_tmp=\$ol_enable_$i"
4936 if test $ol_tmp != no ; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4938 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4939 eval "ol_enable_$i=no"
4942 if test $ol_enable_modules = yes ; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4944 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4946 if test $ol_enable_wrappers = yes ; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4948 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4950 if test $ol_enable_rlookups = yes ; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4952 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4954 if test $ol_enable_dynacl = yes ; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4956 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4958 if test $ol_enable_aci != no ; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4960 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4962 if test $ol_enable_rewrite = yes ; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4964 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4966 case "$ol_enable_overlays" in yes | mod)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4968 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4970 for i in $Overlays; do
4971 eval "ol_tmp=\$ol_enable_$i"
4972 if test $ol_tmp != no ; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4974 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4975 eval "ol_enable_$i=no"
4979 # force settings to no
4984 ol_enable_modules=no
4985 ol_enable_rlookups=no
4988 ol_enable_wrappers=no
4990 ol_enable_rewrite=no
4992 elif test $ol_enable_modules != yes &&
4993 test $ol_enable_bdb = no &&
4994 test $ol_enable_dnssrv = no &&
4995 test $ol_enable_hdb = no &&
4996 test $ol_enable_ldap = no &&
4997 test $ol_enable_meta = no &&
4998 test $ol_enable_monitor = no &&
4999 test $ol_enable_ndb = no &&
5000 test $ol_enable_null = no &&
5001 test $ol_enable_passwd = no &&
5002 test $ol_enable_perl = no &&
5003 test $ol_enable_relay = no &&
5004 test $ol_enable_shell = no &&
5005 test $ol_enable_sock = no &&
5006 test $ol_enable_sql = no ; then
5008 if test $ol_enable_slapd = yes ; then
5009 as_fn_error "slapd requires a backend" "$LINENO" 5
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping slapd, no backend specified" >&5
5012 $as_echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
5017 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
5018 as_fn_error "--enable-meta requires --enable-ldap" "$LINENO" 5
5021 if test $ol_enable_lmpasswd = yes ; then
5022 if test $ol_with_tls = no ; then
5023 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
5027 if test $ol_enable_spasswd = yes ; then
5028 if test $ol_with_cyrus_sasl = no ; then
5029 as_fn_error "options require --with-cyrus-sasl" "$LINENO" 5
5031 ol_with_cyrus_sasl=yes
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5035 $as_echo "done" >&6; }
5086 BUILD_TRANSLUCENT=no
5090 SLAPD_STATIC_OVERLAYS=
5091 SLAPD_DYNAMIC_OVERLAYS=
5093 SLAPD_MODULES_LDFLAGS=
5094 SLAPD_MODULES_CPPFLAGS=
5096 SLAPD_STATIC_BACKENDS=back-ldif
5097 SLAPD_DYNAMIC_BACKENDS=
5122 $as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
5129 *-*-aix*) if test -z "$CC" ; then
5130 case "$ol_with_threads" in
5131 auto | yes | posix) ol_aix_threads=yes ;;
5137 if test $ol_aix_threads = yes ; then
5138 if test -z "${CC}" ; then
5139 for ac_prog in cc_r xlc_r cc
5141 # Extract the first word of "$ac_prog", so it can be a program name with args.
5142 set dummy $ac_prog; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_prog_CC+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5148 if test -n "$CC"; then
5149 ac_cv_prog_CC="$CC" # Let the user override the test.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_prog_CC="$ac_prog"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 if test -n "$CC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5171 $as_echo "$CC" >&6; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5178 test -n "$CC" && break
5182 if test "$CC" = cc ; then
5183 if test $ol_with_threads != auto ; then
5184 as_fn_error "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
5187 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
5193 case ${CC} in cc_r | xlc_r)
5194 ol_with_threads=posix
5195 ol_cv_pthread_create=yes
5200 if test -z "${CC}"; then
5201 for ac_prog in cc gcc
5203 # Extract the first word of "$ac_prog", so it can be a program name with args.
5204 set dummy $ac_prog; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_prog_CC+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5210 if test -n "$CC"; then
5211 ac_cv_prog_CC="$CC" # Let the user override the test.
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_CC="$ac_prog"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 if test -n "$CC"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5233 $as_echo "$CC" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5240 test -n "$CC" && break
5242 test -n "$CC" || CC="missing"
5245 if test "${CC}" = "missing" ; then
5246 as_fn_error "Unable to locate cc(1) or suitable replacement. Check PATH or set CC." "$LINENO" 5
5250 if test -z "${AR}"; then
5251 for ac_prog in ar gar
5253 # Extract the first word of "$ac_prog", so it can be a program name with args.
5254 set dummy $ac_prog; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if test "${ac_cv_prog_AR+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5260 if test -n "$AR"; then
5261 ac_cv_prog_AR="$AR" # Let the user override the test.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_prog_AR="$ac_prog"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 if test -n "$AR"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5283 $as_echo "$AR" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5290 test -n "$AR" && break
5292 test -n "$AR" || AR="missing"
5295 if test "${AR}" = "missing" ; then
5296 as_fn_error "Unable to locate ar(1) or suitable replacement. Check PATH or set AR." "$LINENO" 5
5304 # Check whether --enable-fast-install was given.
5305 if test "${enable_fast_install+set}" = set; then :
5306 enableval=$enable_fast_install; p=${PACKAGE-default}
5308 yes) enable_fast_install=yes ;;
5309 no) enable_fast_install=no ;;
5311 enable_fast_install=no
5312 # Look at the argument we got. We use all the common list separators.
5313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5314 for pkg in $enableval; do
5316 if test "X$pkg" = "X$p"; then
5317 enable_fast_install=yes
5324 enable_fast_install=yes
5328 DEPDIR="${am__leading_dot}deps"
5330 ac_config_commands="$ac_config_commands depfiles"
5333 am_make=${MAKE-make}
5334 cat > confinc << 'END'
5339 # If we don't find an include directive, just comment out the code.
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5341 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5345 # First try GNU make style include.
5346 echo "include confinc" > confmf
5347 # We grep out `Entering directory' and `Leaving directory'
5348 # messages which can occur if `w' ends up in MAKEFLAGS.
5349 # In particular we don't look at `^make:' because GNU make might
5350 # be invoked under some other name (usually "gmake"), in which
5351 # case it prints its new name instead of `make'.
5352 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5357 # Now try BSD make style include.
5358 if test "$am__include" = "#"; then
5359 echo '.include "confinc"' > confmf
5360 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5361 am__include=.include
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5369 $as_echo "$_am_result" >&6; }
5370 rm -f confinc confmf
5372 # Check whether --enable-dependency-tracking was given.
5373 if test "${enable_dependency_tracking+set}" = set; then :
5374 enableval=$enable_dependency_tracking;
5377 if test "x$enable_dependency_tracking" != xno; then
5378 am_depcomp="$ac_aux_dir/depcomp"
5383 if test "x$enable_dependency_tracking" != xno; then
5394 ac_cpp='$CPP $CPPFLAGS'
5395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398 if test -n "$ac_tool_prefix"; then
5399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if test "${ac_cv_prog_CC+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5406 if test -n "$CC"; then
5407 ac_cv_prog_CC="$CC" # Let the user override the test.
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 if test -n "$CC"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5429 $as_echo "$CC" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5437 if test -z "$ac_cv_prog_CC"; then
5439 # Extract the first word of "gcc", so it can be a program name with args.
5440 set dummy gcc; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5446 if test -n "$ac_ct_CC"; then
5447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456 ac_cv_prog_ac_ct_CC="gcc"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5467 if test -n "$ac_ct_CC"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5469 $as_echo "$ac_ct_CC" >&6; }
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5475 if test "x$ac_ct_CC" = x; then
5478 case $cross_compiling:$ac_tool_warned in
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5482 ac_tool_warned=yes ;;
5490 if test -z "$CC"; then
5491 if test -n "$ac_tool_prefix"; then
5492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5493 set dummy ${ac_tool_prefix}cc; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if test "${ac_cv_prog_CC+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$CC"; then
5500 ac_cv_prog_CC="$CC" # Let the user override the test.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509 ac_cv_prog_CC="${ac_tool_prefix}cc"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 if test -n "$CC"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5522 $as_echo "$CC" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5531 if test -z "$CC"; then
5532 # Extract the first word of "cc", so it can be a program name with args.
5533 set dummy cc; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if test "${ac_cv_prog_CC+set}" = set; then :
5537 $as_echo_n "(cached) " >&6
5539 if test -n "$CC"; then
5540 ac_cv_prog_CC="$CC" # Let the user override the test.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5551 ac_prog_rejected=yes
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 if test $ac_prog_rejected = yes; then
5563 # We found a bogon in the path, so make sure we never use it.
5564 set dummy $ac_cv_prog_CC
5566 if test $# != 0; then
5567 # We chose a different compiler from the bogus one.
5568 # However, it has the same basename, so the bogon will be chosen
5569 # first if we set CC to just the basename; use the full file name.
5571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5577 if test -n "$CC"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5579 $as_echo "$CC" >&6; }
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5587 if test -z "$CC"; then
5588 if test -n "$ac_tool_prefix"; then
5589 for ac_prog in cl.exe
5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if test "${ac_cv_prog_CC+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5598 if test -n "$CC"; then
5599 ac_cv_prog_CC="$CC" # Let the user override the test.
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 if test -n "$CC"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5621 $as_echo "$CC" >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5628 test -n "$CC" && break
5631 if test -z "$CC"; then
5633 for ac_prog in cl.exe
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5640 $as_echo_n "(cached) " >&6
5642 if test -n "$ac_ct_CC"; then
5643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5652 ac_cv_prog_ac_ct_CC="$ac_prog"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5663 if test -n "$ac_ct_CC"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5665 $as_echo "$ac_ct_CC" >&6; }
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5672 test -n "$ac_ct_CC" && break
5675 if test "x$ac_ct_CC" = x; then
5678 case $cross_compiling:$ac_tool_warned in
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5693 as_fn_error "no acceptable C compiler found in \$PATH
5694 See \`config.log' for more details." "$LINENO" 5; }
5696 # Provide some information about the compiler.
5697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5700 for ac_option in --version -v -V -qversion; do
5701 { { ac_try="$ac_compiler $ac_option >&5"
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5707 $as_echo "$ac_try_echo"; } >&5
5708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5710 if test -s conftest.err; then
5712 ... rest of stderr output deleted ...
5713 10q' conftest.err >conftest.er1
5714 cat conftest.er1 >&5
5716 rm -f conftest.er1 conftest.err
5717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718 test $ac_status = 0; }
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5732 ac_clean_files_save=$ac_clean_files
5733 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5734 # Try to create an executable without -o first, disregard a.out.
5735 # It will help us diagnose broken compilers, and finding out an intuition
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5738 $as_echo_n "checking whether the C compiler works... " >&6; }
5739 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5741 # The possible output files:
5742 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5745 for ac_file in $ac_files
5748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5749 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5754 if { { ac_try="$ac_link_default"
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5760 $as_echo "$ac_try_echo"; } >&5
5761 (eval "$ac_link_default") 2>&5
5763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764 test $ac_status = 0; }; then :
5765 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5766 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5767 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5768 # so that the user can short-circuit this test for compilers unknown to
5770 for ac_file in $ac_files ''
5772 test -f "$ac_file" || continue
5774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5777 # We found the default executable, but exeext='' is most
5781 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5783 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5785 # We set ac_cv_exeext here because the later test for it is not
5786 # safe: cross compilers may not add the suffix if given an `-o'
5787 # argument, so we may need to know it at that point already.
5788 # Even if this section looks crufty: it has the advantage of
5795 test "$ac_cv_exeext" = no && ac_cv_exeext=
5800 if test -z "$ac_file"; then :
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5803 $as_echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5808 { as_fn_set_status 77
5809 as_fn_error "C compiler cannot create executables
5810 See \`config.log' for more details." "$LINENO" 5; }; }
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5813 $as_echo "yes" >&6; }
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5816 $as_echo_n "checking for C compiler default output file name... " >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5818 $as_echo "$ac_file" >&6; }
5819 ac_exeext=$ac_cv_exeext
5821 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5822 ac_clean_files=$ac_clean_files_save
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5824 $as_echo_n "checking for suffix of executables... " >&6; }
5825 if { { ac_try="$ac_link"
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5831 $as_echo "$ac_try_echo"; } >&5
5832 (eval "$ac_link") 2>&5
5834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5835 test $ac_status = 0; }; then :
5836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5837 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5838 # work properly (i.e., refer to `conftest.exe'), while it won't with
5840 for ac_file in conftest.exe conftest conftest.*; do
5841 test -f "$ac_file" || continue
5843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 as_fn_error "cannot compute suffix of executables: cannot compile and link
5853 See \`config.log' for more details." "$LINENO" 5; }
5855 rm -f conftest conftest$ac_cv_exeext
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5857 $as_echo "$ac_cv_exeext" >&6; }
5859 rm -f conftest.$ac_ext
5860 EXEEXT=$ac_cv_exeext
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5868 FILE *f = fopen ("conftest.out", "w");
5869 return ferror (f) || fclose (f) != 0;
5875 ac_clean_files="$ac_clean_files conftest.out"
5876 # Check that the compiler produces executables we can run. If not, either
5877 # the compiler is broken, or we cross compile.
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5879 $as_echo_n "checking whether we are cross compiling... " >&6; }
5880 if test "$cross_compiling" != yes; then
5881 { { ac_try="$ac_link"
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5887 $as_echo "$ac_try_echo"; } >&5
5888 (eval "$ac_link") 2>&5
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }
5892 if { ac_try='./conftest$ac_cv_exeext'
5893 { { case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5898 $as_echo "$ac_try_echo"; } >&5
5899 (eval "$ac_try") 2>&5
5901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902 test $ac_status = 0; }; }; then
5905 if test "$cross_compiling" = maybe; then
5908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5910 as_fn_error "cannot run C compiled programs.
5911 If you meant to cross compile, use \`--host'.
5912 See \`config.log' for more details." "$LINENO" 5; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5917 $as_echo "$cross_compiling" >&6; }
5919 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5920 ac_clean_files=$ac_clean_files_save
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5922 $as_echo_n "checking for suffix of object files... " >&6; }
5923 if test "${ac_cv_objext+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5937 rm -f conftest.o conftest.obj
5938 if { { ac_try="$ac_compile"
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5944 $as_echo "$ac_try_echo"; } >&5
5945 (eval "$ac_compile") 2>&5
5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948 test $ac_status = 0; }; then :
5949 for ac_file in conftest.o conftest.obj conftest.*; do
5950 test -f "$ac_file" || continue;
5952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5963 as_fn_error "cannot compute suffix of object files: cannot compile
5964 See \`config.log' for more details." "$LINENO" 5; }
5966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5969 $as_echo "$ac_cv_objext" >&6; }
5970 OBJEXT=$ac_cv_objext
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5973 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5974 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5991 if ac_fn_c_try_compile "$LINENO"; then :
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6001 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6002 if test $ac_compiler_gnu = yes; then
6007 ac_test_CFLAGS=${CFLAGS+set}
6008 ac_save_CFLAGS=$CFLAGS
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6010 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6011 if test "${ac_cv_prog_cc_g+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6014 ac_save_c_werror_flag=$ac_c_werror_flag
6015 ac_c_werror_flag=yes
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6029 if ac_fn_c_try_compile "$LINENO"; then :
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6044 if ac_fn_c_try_compile "$LINENO"; then :
6047 ac_c_werror_flag=$ac_save_c_werror_flag
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6060 if ac_fn_c_try_compile "$LINENO"; then :
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 ac_c_werror_flag=$ac_save_c_werror_flag
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6071 $as_echo "$ac_cv_prog_cc_g" >&6; }
6072 if test "$ac_test_CFLAGS" = set; then
6073 CFLAGS=$ac_save_CFLAGS
6074 elif test $ac_cv_prog_cc_g = yes; then
6075 if test "$GCC" = yes; then
6081 if test "$GCC" = yes; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6088 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6089 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6090 $as_echo_n "(cached) " >&6
6092 ac_cv_prog_cc_c89=no
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6098 #include <sys/types.h>
6099 #include <sys/stat.h>
6100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6101 struct buf { int x; };
6102 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6103 static char *e (p, i)
6109 static char *f (char * (*g) (char **, int), char **p, ...)
6114 s = g (p, va_arg (v,int));
6119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6120 function prototypes and stuff, but not '\xHH' hex character constants.
6121 These don't provoke an error unfortunately, instead are silently treated
6122 as 'x'. The following induces an error, until -std is added to get
6123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6124 array size at least. It's necessary to write '\x00'==0 to get something
6125 that's true only with -std. */
6126 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6128 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6129 inside strings and character constants. */
6131 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6133 int test (int i, double x);
6134 struct s1 {int (*f) (int a);};
6135 struct s2 {int (*f) (double a);};
6136 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6142 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6147 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6148 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6150 CC="$ac_save_CC $ac_arg"
6151 if ac_fn_c_try_compile "$LINENO"; then :
6152 ac_cv_prog_cc_c89=$ac_arg
6154 rm -f core conftest.err conftest.$ac_objext
6155 test "x$ac_cv_prog_cc_c89" != "xno" && break
6157 rm -f conftest.$ac_ext
6162 case "x$ac_cv_prog_cc_c89" in
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6165 $as_echo "none needed" >&6; } ;;
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6168 $as_echo "unsupported" >&6; } ;;
6170 CC="$CC $ac_cv_prog_cc_c89"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6172 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6174 if test "x$ac_cv_prog_cc_c89" != xno; then :
6179 ac_cpp='$CPP $CPPFLAGS'
6180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6184 depcc="$CC" am_compiler_list=
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6187 $as_echo_n "checking dependency style of $depcc... " >&6; }
6188 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6191 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6192 # We make a subdir and do the tests there. Otherwise we can end up
6193 # making bogus files that we don't know about and never remove. For
6194 # instance it was reported that on HP-UX the gcc test will end up
6195 # making a dummy file named `D' -- because `-MD' means `put the output
6198 # Copy depcomp to subdir because otherwise we won't find it if we're
6199 # using a relative directory.
6200 cp "$am_depcomp" conftest.dir
6202 # We will build objects and dependencies in a subdirectory because
6203 # it helps to detect inapplicable dependency modes. For instance
6204 # both Tru64's cc and ICC support -MD to output dependencies as a
6205 # side effect of compilation, but ICC will put the dependencies in
6206 # the current directory while Tru64 will put them in the object
6210 am_cv_CC_dependencies_compiler_type=none
6211 if test "$am_compiler_list" = ""; then
6212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6214 for depmode in $am_compiler_list; do
6215 # Setup a source with many dependencies, because some compilers
6216 # like to wrap large dependency lists on column 80 (with \), and
6217 # we should not choose a depcomp mode which is confused by this.
6219 # We need to recreate these files for each test, as the compiler may
6220 # overwrite some of them when testing with obscure command lines.
6221 # This happens at least with the AIX C compiler.
6223 for i in 1 2 3 4 5 6; do
6224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6226 # Solaris 8's {/usr,}/bin/sh.
6227 touch sub/conftst$i.h
6229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6233 # after this tag, mechanisms are not by side-effect, so they'll
6234 # only be used when explicitly requested
6235 if test "x$enable_dependency_tracking" = xyes; then
6243 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6244 # mode. It turns out that the SunPro C++ compiler does not properly
6245 # handle `-M -o', and we need to detect this.
6246 if depmode=$depmode \
6247 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6248 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6249 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6250 >/dev/null 2>conftest.err &&
6251 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6252 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6253 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6254 # icc doesn't choke on unknown options, it will just issue warnings
6255 # or remarks (even with -Werror). So we grep stderr for any message
6256 # that says an option was ignored or not supported.
6257 # When given -MP, icc 7.0 and 7.1 complain thusly:
6258 # icc: Command line warning: ignoring option '-M'; no argument required
6259 # The diagnosis changed in icc 8.0:
6260 # icc: Command line remark: option '-MP' not supported
6261 if (grep 'ignoring option' conftest.err ||
6262 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6263 am_cv_CC_dependencies_compiler_type=$depmode
6272 am_cv_CC_dependencies_compiler_type=none
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6277 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6278 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6283 test "x$enable_dependency_tracking" != xno \
6284 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6286 am__fastdepCC_FALSE='#'
6288 am__fastdepCC_TRUE='#'
6289 am__fastdepCC_FALSE=
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6294 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6295 if test "${lt_cv_path_SED+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6298 # Loop through the user's path and test for sed and gsed.
6299 # Then use that list of sed's as ones to test for truncation.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for lt_ac_prog in sed gsed; do
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6308 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6315 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6316 # along with /bin/sed that truncates output.
6317 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6318 test ! -f $lt_ac_sed && continue
6319 cat /dev/null > conftest.in
6321 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6322 # Check for GNU sed and select it if it is found.
6323 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6324 lt_cv_path_SED=$lt_ac_sed
6328 cat conftest.in conftest.in >conftest.tmp
6329 mv conftest.tmp conftest.in
6330 cp conftest.in conftest.nl
6332 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6333 cmp -s conftest.out conftest.nl || break
6334 # 10000 chars as input seems more than enough
6335 test $lt_ac_count -gt 10 && break
6336 lt_ac_count=`expr $lt_ac_count + 1`
6337 if test $lt_ac_count -gt $lt_ac_max; then
6338 lt_ac_max=$lt_ac_count
6339 lt_cv_path_SED=$lt_ac_sed
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6348 $as_echo "$SED" >&6; }
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6351 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6352 if test "${ac_cv_path_GREP+set}" = set; then :
6353 $as_echo_n "(cached) " >&6
6355 if test -z "$GREP"; then
6356 ac_path_GREP_found=false
6357 # Loop through the user's path and test for each of PROGNAME-LIST
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6362 test -z "$as_dir" && as_dir=.
6363 for ac_prog in grep ggrep; do
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6366 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6367 # Check for GNU ac_path_GREP and select it if it is found.
6368 # Check for GNU $ac_path_GREP
6369 case `"$ac_path_GREP" --version 2>&1` in
6371 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6374 $as_echo_n 0123456789 >"conftest.in"
6377 cat "conftest.in" "conftest.in" >"conftest.tmp"
6378 mv "conftest.tmp" "conftest.in"
6379 cp "conftest.in" "conftest.nl"
6380 $as_echo 'GREP' >> "conftest.nl"
6381 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6383 as_fn_arith $ac_count + 1 && ac_count=$as_val
6384 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6385 # Best one so far, save it but keep looking for a better one
6386 ac_cv_path_GREP="$ac_path_GREP"
6387 ac_path_GREP_max=$ac_count
6389 # 10*(2^10) chars as input seems more than enough
6390 test $ac_count -gt 10 && break
6392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6395 $ac_path_GREP_found && break 3
6400 if test -z "$ac_cv_path_GREP"; then
6401 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6404 ac_cv_path_GREP=$GREP
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6409 $as_echo "$ac_cv_path_GREP" >&6; }
6410 GREP="$ac_cv_path_GREP"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6414 $as_echo_n "checking for egrep... " >&6; }
6415 if test "${ac_cv_path_EGREP+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
6418 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6419 then ac_cv_path_EGREP="$GREP -E"
6421 if test -z "$EGREP"; then
6422 ac_path_EGREP_found=false
6423 # Loop through the user's path and test for each of PROGNAME-LIST
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6428 test -z "$as_dir" && as_dir=.
6429 for ac_prog in egrep; do
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6432 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6433 # Check for GNU ac_path_EGREP and select it if it is found.
6434 # Check for GNU $ac_path_EGREP
6435 case `"$ac_path_EGREP" --version 2>&1` in
6437 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6440 $as_echo_n 0123456789 >"conftest.in"
6443 cat "conftest.in" "conftest.in" >"conftest.tmp"
6444 mv "conftest.tmp" "conftest.in"
6445 cp "conftest.in" "conftest.nl"
6446 $as_echo 'EGREP' >> "conftest.nl"
6447 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6449 as_fn_arith $ac_count + 1 && ac_count=$as_val
6450 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6451 # Best one so far, save it but keep looking for a better one
6452 ac_cv_path_EGREP="$ac_path_EGREP"
6453 ac_path_EGREP_max=$ac_count
6455 # 10*(2^10) chars as input seems more than enough
6456 test $ac_count -gt 10 && break
6458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6461 $ac_path_EGREP_found && break 3
6466 if test -z "$ac_cv_path_EGREP"; then
6467 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6470 ac_cv_path_EGREP=$EGREP
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6476 $as_echo "$ac_cv_path_EGREP" >&6; }
6477 EGREP="$ac_cv_path_EGREP"
6481 # Check whether --with-gnu-ld was given.
6482 if test "${with_gnu_ld+set}" = set; then :
6483 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6489 if test "$GCC" = yes; then
6490 # Check if gcc -print-prog-name=ld gives a path.
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6492 $as_echo_n "checking for ld used by $CC... " >&6; }
6495 # gcc leaves a trailing carriage return which upsets mingw
6496 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6498 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6501 # Accept absolute paths.
6503 re_direlt='/[^/][^/]*/\.\./'
6504 # Canonicalize the pathname of ld
6505 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6506 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6507 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6509 test -z "$LD" && LD="$ac_prog"
6512 # If it fails, then pretend we aren't using GCC.
6516 # If it is relative, then search for the first ld in PATH.
6520 elif test "$with_gnu_ld" = yes; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6522 $as_echo_n "checking for GNU ld... " >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6525 $as_echo_n "checking for non-GNU ld... " >&6; }
6527 if test "${lt_cv_path_LD+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6530 if test -z "$LD"; then
6531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6532 for ac_dir in $PATH; do
6534 test -z "$ac_dir" && ac_dir=.
6535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6536 lt_cv_path_LD="$ac_dir/$ac_prog"
6537 # Check to see if the program is GNU ld. I'd rather use --version,
6538 # but apparently some variants of GNU ld only accept -v.
6539 # Break only if it was the GNU/non-GNU ld that we prefer.
6540 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6541 *GNU* | *'with BFD'*)
6542 test "$with_gnu_ld" != no && break
6545 test "$with_gnu_ld" != yes && break
6552 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6557 if test -n "$LD"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6559 $as_echo "$LD" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6564 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6567 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6570 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6571 case `$LD -v 2>&1 </dev/null` in
6572 *GNU* | *'with BFD'*)
6573 lt_cv_prog_gnu_ld=yes
6576 lt_cv_prog_gnu_ld=no
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6582 with_gnu_ld=$lt_cv_prog_gnu_ld
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6586 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6587 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6590 lt_cv_ld_reload_flag='-r'
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6593 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6594 reload_flag=$lt_cv_ld_reload_flag
6595 case $reload_flag in
6597 *) reload_flag=" $reload_flag" ;;
6599 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6602 if test "$GCC" = yes; then
6603 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6605 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6611 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6612 if test "${lt_cv_path_NM+set}" = set; then :
6613 $as_echo_n "(cached) " >&6
6615 if test -n "$NM"; then
6616 # Let the user override the test.
6619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6620 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6622 test -z "$ac_dir" && ac_dir=.
6623 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6624 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6625 # Check to see if the nm accepts a BSD-compat flag.
6626 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6627 # nm: unknown option "B" ignored
6628 # Tru64's nm complains that /dev/null is an invalid object file
6629 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6630 */dev/null* | *'Invalid file or object type'*)
6631 lt_cv_path_NM="$tmp_nm -B"
6635 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6637 lt_cv_path_NM="$tmp_nm -p"
6641 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6642 continue # so that we can try to find one that supports BSD flags
6649 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6653 $as_echo "$lt_cv_path_NM" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6657 $as_echo_n "checking whether ln -s works... " >&6; }
6659 if test "$LN_S" = "ln -s"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6661 $as_echo "yes" >&6; }
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6664 $as_echo "no, using $LN_S" >&6; }
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
6668 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
6669 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6672 lt_cv_file_magic_cmd='$MAGIC_CMD'
6673 lt_cv_file_magic_test_file=
6674 lt_cv_deplibs_check_method='unknown'
6675 # Need to set the preceding variable on all platforms that support
6676 # interlibrary dependencies.
6677 # 'none' -- dependencies not supported.
6678 # `unknown' -- same as none, but documents that we really don't know.
6679 # 'pass_all' -- all dependencies passed with no checks.
6680 # 'test_compile' -- check by making test program.
6681 # 'file_magic [[regex]]' -- check by looking for files in library path
6682 # which responds to the $file_magic_cmd with a given extended regex.
6683 # If you have `file' or equivalent on your system and you're not sure
6684 # whether `pass_all' will *always* work, you probably want this one.
6688 lt_cv_deplibs_check_method=pass_all
6692 lt_cv_deplibs_check_method=pass_all
6696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6697 lt_cv_file_magic_cmd='/usr/bin/file -L'
6698 lt_cv_file_magic_test_file=/shlib/libc.so
6702 # func_win32_libid is a shell function defined in ltmain.sh
6703 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6704 lt_cv_file_magic_cmd='func_win32_libid'
6708 # Base MSYS/MinGW do not provide the 'file' command needed by
6709 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6710 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6711 lt_cv_file_magic_cmd='$OBJDUMP -f'
6714 darwin* | rhapsody*)
6715 lt_cv_deplibs_check_method=pass_all
6718 freebsd* | kfreebsd*-gnu | dragonfly*)
6719 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6722 # Not sure whether the presence of OpenBSD here was a mistake.
6723 # Let's accept both of them until this is cleared up.
6724 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6725 lt_cv_file_magic_cmd=/usr/bin/file
6726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6730 lt_cv_deplibs_check_method=pass_all
6735 lt_cv_deplibs_check_method=pass_all
6738 hpux10.20* | hpux11*)
6739 lt_cv_file_magic_cmd=/usr/bin/file
6742 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6743 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6747 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6750 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6751 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6756 irix5* | irix6* | nonstopux*)
6758 *-32|*"-32 ") libmagic=32-bit;;
6759 *-n32|*"-n32 ") libmagic=N32;;
6760 *-64|*"-64 ") libmagic=64-bit;;
6761 *) libmagic=never-match;;
6763 lt_cv_deplibs_check_method=pass_all
6766 # This must be Linux ELF.
6768 lt_cv_deplibs_check_method=pass_all
6772 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6781 lt_cv_file_magic_cmd=/usr/bin/file
6782 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6786 lt_cv_deplibs_check_method=unknown
6790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6797 osf3* | osf4* | osf5*)
6798 lt_cv_deplibs_check_method=pass_all
6802 lt_cv_deplibs_check_method=pass_all
6806 lt_cv_deplibs_check_method=pass_all
6809 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6810 case $host_vendor in
6812 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]'
6813 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6816 lt_cv_deplibs_check_method=pass_all
6819 lt_cv_file_magic_cmd='/bin/file'
6820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6823 lt_cv_file_magic_cmd='/bin/file'
6824 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6825 lt_cv_file_magic_test_file=/lib/libc.so
6828 lt_cv_deplibs_check_method=pass_all
6833 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6834 lt_cv_deplibs_check_method=pass_all
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6840 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6841 file_magic_cmd=$lt_cv_file_magic_cmd
6842 deplibs_check_method=$lt_cv_deplibs_check_method
6843 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6848 # If no C compiler was specified, use CC.
6851 # Allow CC to be a program name with arguments.
6855 # Check whether --enable-libtool-lock was given.
6856 if test "${enable_libtool_lock+set}" = set; then :
6857 enableval=$enable_libtool_lock;
6860 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6862 # Some flags need to be propagated to the compiler or linker for good
6866 # Find out which ABI we are using.
6867 echo 'int i;' > conftest.$ac_ext
6868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869 (eval $ac_compile) 2>&5
6871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872 test $ac_status = 0; }; then
6873 case `/usr/bin/file conftest.$ac_objext` in
6885 # Find out which ABI we are using.
6886 echo '#line 6886 "configure"' > conftest.$ac_ext
6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888 (eval $ac_compile) 2>&5
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }; then
6892 if test "$lt_cv_prog_gnu_ld" = yes; then
6893 case `/usr/bin/file conftest.$ac_objext` in
6895 LD="${LD-ld} -melf32bsmip"
6898 LD="${LD-ld} -melf32bmipn32"
6901 LD="${LD-ld} -melf64bmip"
6905 case `/usr/bin/file conftest.$ac_objext` in
6921 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6922 # Find out which ABI we are using.
6923 echo 'int i;' > conftest.$ac_ext
6924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6925 (eval $ac_compile) 2>&5
6927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928 test $ac_status = 0; }; then
6929 case `/usr/bin/file conftest.o` in
6933 LD="${LD-ld} -m elf_i386"
6935 ppc64-*linux*|powerpc64-*linux*)
6936 LD="${LD-ld} -m elf32ppclinux"
6939 LD="${LD-ld} -m elf_s390"
6942 LD="${LD-ld} -m elf32_sparc"
6949 LD="${LD-ld} -m elf_x86_64"
6951 ppc*-*linux*|powerpc*-*linux*)
6952 LD="${LD-ld} -m elf64ppc"
6955 LD="${LD-ld} -m elf64_s390"
6958 LD="${LD-ld} -m elf64_sparc"
6968 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6969 SAVE_CFLAGS="$CFLAGS"
6970 CFLAGS="$CFLAGS -belf"
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6972 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6973 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6974 $as_echo_n "(cached) " >&6
6977 ac_cpp='$CPP $CPPFLAGS'
6978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6993 if ac_fn_c_try_link "$LINENO"; then :
6994 lt_cv_cc_needs_belf=yes
6996 lt_cv_cc_needs_belf=no
6998 rm -f core conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7008 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7011 CFLAGS="$SAVE_CFLAGS"
7014 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7023 if test -n "$DLLTOOL"; then
7024 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 DLLTOOL=$ac_cv_prog_DLLTOOL
7044 if test -n "$DLLTOOL"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7046 $as_echo "$DLLTOOL" >&6; }
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7054 if test -z "$ac_cv_prog_DLLTOOL"; then
7055 ac_ct_DLLTOOL=$DLLTOOL
7056 # Extract the first word of "dlltool", so it can be a program name with args.
7057 set dummy dlltool; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7063 if test -n "$ac_ct_DLLTOOL"; then
7064 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7084 if test -n "$ac_ct_DLLTOOL"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7086 $as_echo "$ac_ct_DLLTOOL" >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7092 if test "x$ac_ct_DLLTOOL" = x; then
7095 case $cross_compiling:$ac_tool_warned in
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099 ac_tool_warned=yes ;;
7101 DLLTOOL=$ac_ct_DLLTOOL
7104 DLLTOOL="$ac_cv_prog_DLLTOOL"
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}as; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if test "${ac_cv_prog_AS+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7115 if test -n "$AS"; then
7116 ac_cv_prog_AS="$AS" # Let the user override the test.
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_AS="${ac_tool_prefix}as"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 if test -n "$AS"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7138 $as_echo "$AS" >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7146 if test -z "$ac_cv_prog_AS"; then
7148 # Extract the first word of "as", so it can be a program name with args.
7149 set dummy as; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7155 if test -n "$ac_ct_AS"; then
7156 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_ac_ct_AS="as"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7176 if test -n "$ac_ct_AS"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7178 $as_echo "$ac_ct_AS" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7184 if test "x$ac_ct_AS" = x; then
7187 case $cross_compiling:$ac_tool_warned in
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7191 ac_tool_warned=yes ;;
7199 if test -n "$ac_tool_prefix"; then
7200 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7205 $as_echo_n "(cached) " >&6
7207 if test -n "$OBJDUMP"; then
7208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 OBJDUMP=$ac_cv_prog_OBJDUMP
7228 if test -n "$OBJDUMP"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7230 $as_echo "$OBJDUMP" >&6; }
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7238 if test -z "$ac_cv_prog_OBJDUMP"; then
7239 ac_ct_OBJDUMP=$OBJDUMP
7240 # Extract the first word of "objdump", so it can be a program name with args.
7241 set dummy objdump; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7247 if test -n "$ac_ct_OBJDUMP"; then
7248 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7268 if test -n "$ac_ct_OBJDUMP"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7270 $as_echo "$ac_ct_OBJDUMP" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7276 if test "x$ac_ct_OBJDUMP" = x; then
7279 case $cross_compiling:$ac_tool_warned in
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7285 OBJDUMP=$ac_ct_OBJDUMP
7288 OBJDUMP="$ac_cv_prog_OBJDUMP"
7295 need_locks="$enable_libtool_lock"
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7305 # On Suns, sometimes $CPP names a directory.
7306 if test -n "$CPP" && test -d "$CPP"; then
7309 if test -z "$CPP"; then
7310 if test "${ac_cv_prog_CPP+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7313 # Double quotes because CPP needs to be expanded
7314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7317 for ac_c_preproc_warn_flag in '' yes
7319 # Use a header file that comes with gcc, so configuring glibc
7320 # with a fresh cross-compiler works.
7321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7322 # <limits.h> exists even on freestanding compilers.
7323 # On the NeXT, cc -E runs the code through the compiler's parser,
7324 # not just through cpp. "Syntax error" is here to catch this case.
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7328 # include <limits.h>
7330 # include <assert.h>
7334 if ac_fn_c_try_cpp "$LINENO"; then :
7337 # Broken: fails on valid input.
7340 rm -f conftest.err conftest.$ac_ext
7342 # OK, works on sane cases. Now check whether nonexistent headers
7343 # can be detected and how.
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 #include <ac_nonexistent.h>
7348 if ac_fn_c_try_cpp "$LINENO"; then :
7349 # Broken: success on invalid input.
7352 # Passes both tests.
7356 rm -f conftest.err conftest.$ac_ext
7359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7360 rm -f conftest.err conftest.$ac_ext
7361 if $ac_preproc_ok; then :
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7374 $as_echo "$CPP" >&6; }
7376 for ac_c_preproc_warn_flag in '' yes
7378 # Use a header file that comes with gcc, so configuring glibc
7379 # with a fresh cross-compiler works.
7380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7381 # <limits.h> exists even on freestanding compilers.
7382 # On the NeXT, cc -E runs the code through the compiler's parser,
7383 # not just through cpp. "Syntax error" is here to catch this case.
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7387 # include <limits.h>
7389 # include <assert.h>
7393 if ac_fn_c_try_cpp "$LINENO"; then :
7396 # Broken: fails on valid input.
7399 rm -f conftest.err conftest.$ac_ext
7401 # OK, works on sane cases. Now check whether nonexistent headers
7402 # can be detected and how.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #include <ac_nonexistent.h>
7407 if ac_fn_c_try_cpp "$LINENO"; then :
7408 # Broken: success on invalid input.
7411 # Passes both tests.
7415 rm -f conftest.err conftest.$ac_ext
7418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7419 rm -f conftest.err conftest.$ac_ext
7420 if $ac_preproc_ok; then :
7423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7425 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7426 See \`config.log' for more details." "$LINENO" 5; }
7430 ac_cpp='$CPP $CPPFLAGS'
7431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7437 $as_echo_n "checking for ANSI C header files... " >&6; }
7438 if test "${ac_cv_header_stdc+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 ac_cv_header_stdc=yes
7459 ac_cv_header_stdc=no
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 if test $ac_cv_header_stdc = yes; then
7464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7471 $EGREP "memchr" >/dev/null 2>&1; then :
7474 ac_cv_header_stdc=no
7480 if test $ac_cv_header_stdc = yes; then
7481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7488 $EGREP "free" >/dev/null 2>&1; then :
7491 ac_cv_header_stdc=no
7497 if test $ac_cv_header_stdc = yes; then
7498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7499 if test "$cross_compiling" = yes; then :
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7506 #if ((' ' & 0x0FF) == 0x020)
7507 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7508 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7510 # define ISLOWER(c) \
7511 (('a' <= (c) && (c) <= 'i') \
7512 || ('j' <= (c) && (c) <= 'r') \
7513 || ('s' <= (c) && (c) <= 'z'))
7514 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7522 for (i = 0; i < 256; i++)
7523 if (XOR (islower (i), ISLOWER (i))
7524 || toupper (i) != TOUPPER (i))
7529 if ac_fn_c_try_run "$LINENO"; then :
7532 ac_cv_header_stdc=no
7534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7535 conftest.$ac_objext conftest.beam conftest.$ac_ext
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7541 $as_echo "$ac_cv_header_stdc" >&6; }
7542 if test $ac_cv_header_stdc = yes; then
7544 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7550 inttypes.h stdint.h unistd.h
7552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7553 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7555 eval as_val=\$$as_ac_Header
7556 if test "x$as_val" = x""yes; then :
7557 cat >>confdefs.h <<_ACEOF
7558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566 for ac_header in dlfcn.h
7568 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7569 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7570 cat >>confdefs.h <<_ACEOF
7571 #define HAVE_DLFCN_H 1
7579 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7581 # find the maximum length of command line arguments
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7583 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7584 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7592 # On DJGPP, this test can blow up pretty badly due to problems in libc
7593 # (any single argument exceeding 2000 bytes causes a buffer overrun
7594 # during glob expansion). Even if it were fixed, the result of this
7595 # check would be larger than it should be.
7596 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7600 # Under GNU Hurd, this test is not required because there is
7601 # no limit to the length of command line arguments.
7602 # Libtool will interpret -1 as no limit whatsoever
7603 lt_cv_sys_max_cmd_len=-1;
7607 # On Win9x/ME, this test blows up -- it succeeds, but takes
7608 # about 5 minutes as the teststring grows exponentially.
7609 # Worse, since 9x/ME are not pre-emptively multitasking,
7610 # you end up with a "frozen" computer, even though with patience
7611 # the test eventually succeeds (with a max line length of 256k).
7612 # Instead, let's just punt: use the minimum linelength reported by
7613 # all of the supported platforms: 8192 (on NT/2K/XP).
7614 lt_cv_sys_max_cmd_len=8192;
7618 # On AmigaOS with pdksh, this test takes hours, literally.
7619 # So we just punt and use a minimum line length of 8192.
7620 lt_cv_sys_max_cmd_len=8192;
7623 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7624 # This has been around since 386BSD, at least. Likely further.
7625 if test -x /sbin/sysctl; then
7626 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7627 elif test -x /usr/sbin/sysctl; then
7628 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7630 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7632 # And add a safety zone
7633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7637 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7638 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7639 # nice to cause kernel panics so lets avoid the loop below.
7640 # First set a reasonable default.
7641 lt_cv_sys_max_cmd_len=16384
7643 if test -x /sbin/sysconfig; then
7644 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7645 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7650 # If test is not a shell built-in, we'll probably end up computing a
7651 # maximum length that is only half of the actual maximum length, but
7653 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7654 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7655 = "XX$teststring") >/dev/null 2>&1 &&
7656 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7657 lt_cv_sys_max_cmd_len=$new_result &&
7658 test $i != 17 # 1/2 MB should be enough
7661 teststring=$teststring$teststring
7664 # Add a significant safety factor because C++ compilers can tack on massive
7665 # amounts of additional arguments before passing them to the linker.
7666 # It appears as though 1/2 is a usable value.
7667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7673 if test -n $lt_cv_sys_max_cmd_len ; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7675 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7678 $as_echo "none" >&6; }
7684 # Check for command to grab the raw symbol name followed by C symbol from nm.
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7686 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7687 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7691 # These are sane defaults that work on at least a few old systems.
7692 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7694 # Character class describing NM global symbol codes.
7695 symcode='[BCDEGRST]'
7697 # Regexp to match symbols that can be accessed directly from C.
7698 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7700 # Transform an extracted symbol line into a proper C declaration
7701 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7703 # Transform an extracted symbol line into symbol name and symbol address
7704 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7706 # Define system-specific variables.
7711 cygwin* | mingw* | pw32*)
7712 symcode='[ABCDGISTW]'
7714 hpux*) # Its linker distinguishes data from code symbols
7715 if test "$host_cpu" = ia64; then
7716 symcode='[ABCDEGRST]'
7718 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7719 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7722 if test "$host_cpu" = ia64; then
7723 symcode='[ABCDGIRSTW]'
7724 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7725 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7729 symcode='[BCDEGRST]'
7732 symcode='[BCDEGQRST]'
7742 # Handle CRLF in mingw tool chain
7746 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7750 # If we're using GNU nm, then use its standard symbol codes.
7751 case `$NM -V 2>&1` in
7752 *GNU* | *'with BFD'*)
7753 symcode='[ABCDGIRSTW]' ;;
7756 # Try without a prefix undercore, then with it.
7757 for ac_symprfx in "" "_"; do
7759 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7760 symxfrm="\\1 $ac_symprfx\\2 \\2"
7762 # Write the raw and C identifiers.
7763 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7765 # Check to see that the pipe works correctly.
7769 cat > conftest.$ac_ext <<EOF
7774 void nm_test_func(){}
7778 int main(){nm_test_var='a';nm_test_func();return(0);}
7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782 (eval $ac_compile) 2>&5
7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 # Now try to grab the symbols.
7788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7789 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792 test $ac_status = 0; } && test -s "$nlist"; then
7793 # Try sorting and uniquifying the output.
7794 if sort "$nlist" | uniq > "$nlist"T; then
7795 mv -f "$nlist"T "$nlist"
7800 # Make sure that we snagged all the symbols we need.
7801 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7802 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7803 cat <<EOF > conftest.$ac_ext
7809 # Now generate the symbol file.
7810 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7812 cat <<EOF >> conftest.$ac_ext
7813 #if defined (__STDC__) && __STDC__
7814 # define lt_ptr_t void *
7816 # define lt_ptr_t char *
7820 /* The mapping between symbol names and symbols. */
7825 lt_preloaded_symbols[] =
7828 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7829 cat <<\EOF >> conftest.$ac_ext
7837 # Now try linking the two files.
7838 mv conftest.$ac_objext conftstm.$ac_objext
7839 lt_save_LIBS="$LIBS"
7840 lt_save_CFLAGS="$CFLAGS"
7841 LIBS="conftstm.$ac_objext"
7842 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7844 (eval $ac_link) 2>&5
7846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7850 LIBS="$lt_save_LIBS"
7851 CFLAGS="$lt_save_CFLAGS"
7853 echo "cannot find nm_test_func in $nlist" >&5
7856 echo "cannot find nm_test_var in $nlist" >&5
7859 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7862 echo "$progname: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7865 rm -f conftest* conftst*
7867 # Do not use the global_symbol_pipe unless it works.
7868 if test "$pipe_works" = yes; then
7871 lt_cv_sys_global_symbol_pipe=
7877 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7878 lt_cv_sys_global_symbol_to_cdecl=
7880 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7882 $as_echo "failed" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7885 $as_echo "ok" >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7889 $as_echo_n "checking for objdir... " >&6; }
7890 if test "${lt_cv_objdir+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7893 rm -f .libs 2>/dev/null
7894 mkdir .libs 2>/dev/null
7895 if test -d .libs; then
7898 # MS-DOS does not allow filenames that begin with a dot.
7901 rmdir .libs 2>/dev/null
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7904 $as_echo "$lt_cv_objdir" >&6; }
7905 objdir=$lt_cv_objdir
7913 # AIX sometimes has problems with the GCC collect2 program. For some
7914 # reason, if we set the COLLECT_NAMES environment variable, the problems
7915 # vanish in a puff of smoke.
7916 if test "X${COLLECT_NAMES+set}" != Xset; then
7918 export COLLECT_NAMES
7923 # Sed substitution that helps us do robust quoting. It backslashifies
7924 # metacharacters that are still active within double-quoted strings.
7925 Xsed='sed -e 1s/^X//'
7926 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7928 # Same as above, but do not quote variable references.
7929 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7931 # Sed substitution to delay expansion of an escaped shell variable in a
7932 # double_quote_subst'ed string.
7933 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7935 # Sed substitution to avoid accidental globbing in evaled expressions
7936 no_glob_subst='s/\*/\\\*/g'
7942 default_ofile=libtool
7943 can_build_shared=yes
7945 # All known linkers require a `.a' archive for static linking (except MSVC,
7946 # which needs '.lib').
7948 ltmain="$ac_aux_dir/ltmain.sh"
7949 ofile="$default_ofile"
7950 with_gnu_ld="$lt_cv_prog_gnu_ld"
7952 if test -n "$ac_tool_prefix"; then
7953 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7954 set dummy ${ac_tool_prefix}ar; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if test "${ac_cv_prog_AR+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7960 if test -n "$AR"; then
7961 ac_cv_prog_AR="$AR" # Let the user override the test.
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 ac_cv_prog_AR="${ac_tool_prefix}ar"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 if test -n "$AR"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7983 $as_echo "$AR" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7991 if test -z "$ac_cv_prog_AR"; then
7993 # Extract the first word of "ar", so it can be a program name with args.
7994 set dummy ar; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
8000 if test -n "$ac_ct_AR"; then
8001 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010 ac_cv_prog_ac_ct_AR="ar"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8021 if test -n "$ac_ct_AR"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8023 $as_echo "$ac_ct_AR" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8029 if test "x$ac_ct_AR" = x; then
8032 case $cross_compiling:$ac_tool_warned in
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8036 ac_tool_warned=yes ;;
8044 if test -n "$ac_tool_prefix"; then
8045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
8052 if test -n "$RANLIB"; then
8053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 test -z "$as_dir" && as_dir=.
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 RANLIB=$ac_cv_prog_RANLIB
8073 if test -n "$RANLIB"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8075 $as_echo "$RANLIB" >&6; }
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8083 if test -z "$ac_cv_prog_RANLIB"; then
8084 ac_ct_RANLIB=$RANLIB
8085 # Extract the first word of "ranlib", so it can be a program name with args.
8086 set dummy ranlib; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -n "$ac_ct_RANLIB"; then
8093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_ac_ct_RANLIB="ranlib"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8113 if test -n "$ac_ct_RANLIB"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8115 $as_echo "$ac_ct_RANLIB" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8121 if test "x$ac_ct_RANLIB" = x; then
8124 case $cross_compiling:$ac_tool_warned in
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8128 ac_tool_warned=yes ;;
8130 RANLIB=$ac_ct_RANLIB
8133 RANLIB="$ac_cv_prog_RANLIB"
8136 if test -n "$ac_tool_prefix"; then
8137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8138 set dummy ${ac_tool_prefix}strip; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if test "${ac_cv_prog_STRIP+set}" = set; then :
8142 $as_echo_n "(cached) " >&6
8144 if test -n "$STRIP"; then
8145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 STRIP=$ac_cv_prog_STRIP
8165 if test -n "$STRIP"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8167 $as_echo "$STRIP" >&6; }
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8175 if test -z "$ac_cv_prog_STRIP"; then
8177 # Extract the first word of "strip", so it can be a program name with args.
8178 set dummy strip; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8184 if test -n "$ac_ct_STRIP"; then
8185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_prog_ac_ct_STRIP="strip"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8205 if test -n "$ac_ct_STRIP"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8207 $as_echo "$ac_ct_STRIP" >&6; }
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8213 if test "x$ac_ct_STRIP" = x; then
8216 case $cross_compiling:$ac_tool_warned in
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8220 ac_tool_warned=yes ;;
8225 STRIP="$ac_cv_prog_STRIP"
8230 old_CFLAGS="$CFLAGS"
8232 # Set sane defaults for various variables
8233 test -z "$AR" && AR=ar
8234 test -z "$AR_FLAGS" && AR_FLAGS=cru
8235 test -z "$AS" && AS=as
8236 test -z "$CC" && CC=cc
8237 test -z "$LTCC" && LTCC=$CC
8238 test -z "$DLLTOOL" && DLLTOOL=dlltool
8239 test -z "$LD" && LD=ld
8240 test -z "$LN_S" && LN_S="ln -s"
8241 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8242 test -z "$NM" && NM=nm
8243 test -z "$SED" && SED=sed
8244 test -z "$OBJDUMP" && OBJDUMP=objdump
8245 test -z "$RANLIB" && RANLIB=:
8246 test -z "$STRIP" && STRIP=:
8247 test -z "$ac_objext" && ac_objext=o
8249 # Determine commands to create old-style static archives.
8250 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8251 old_postinstall_cmds='chmod 644 $oldlib'
8252 old_postuninstall_cmds=
8254 if test -n "$RANLIB"; then
8257 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8260 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8263 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8266 for cc_temp in $compiler""; do
8268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8277 # Only perform the check for file, if the check method requires it
8278 case $deplibs_check_method in
8280 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8282 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8291 lt_save_MAGIC_CMD="$MAGIC_CMD"
8292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8294 for ac_dir in $ac_dummy; do
8296 test -z "$ac_dir" && ac_dir=.
8297 if test -f $ac_dir/${ac_tool_prefix}file; then
8298 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8299 if test -n "$file_magic_test_file"; then
8300 case $deplibs_check_method in
8302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8305 $EGREP "$file_magic_regex" > /dev/null; then
8310 *** Warning: the command libtool uses to detect shared libraries,
8311 *** $file_magic_cmd, produces output that libtool cannot recognize.
8312 *** The result is that libtool may fail to recognize shared libraries
8313 *** as such. This will affect the creation of libtool libraries that
8314 *** depend on shared libraries, but programs linked with such libtool
8315 *** libraries will work regardless of this problem. Nevertheless, you
8316 *** may want to report the problem to your system manager and/or to
8317 *** bug-libtool@gnu.org
8327 MAGIC_CMD="$lt_save_MAGIC_CMD"
8332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333 if test -n "$MAGIC_CMD"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8335 $as_echo "$MAGIC_CMD" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8341 if test -z "$lt_cv_path_MAGIC_CMD"; then
8342 if test -n "$ac_tool_prefix"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8344 $as_echo_n "checking for file... " >&6; }
8345 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8353 lt_save_MAGIC_CMD="$MAGIC_CMD"
8354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8355 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8356 for ac_dir in $ac_dummy; do
8358 test -z "$ac_dir" && ac_dir=.
8359 if test -f $ac_dir/file; then
8360 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8361 if test -n "$file_magic_test_file"; then
8362 case $deplibs_check_method in
8364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8367 $EGREP "$file_magic_regex" > /dev/null; then
8372 *** Warning: the command libtool uses to detect shared libraries,
8373 *** $file_magic_cmd, produces output that libtool cannot recognize.
8374 *** The result is that libtool may fail to recognize shared libraries
8375 *** as such. This will affect the creation of libtool libraries that
8376 *** depend on shared libraries, but programs linked with such libtool
8377 *** libraries will work regardless of this problem. Nevertheless, you
8378 *** may want to report the problem to your system manager and/or to
8379 *** bug-libtool@gnu.org
8389 MAGIC_CMD="$lt_save_MAGIC_CMD"
8394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8395 if test -n "$MAGIC_CMD"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8397 $as_echo "$MAGIC_CMD" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8413 enable_win32_dll=yes
8415 # Check whether --enable-libtool-lock was given.
8416 if test "${enable_libtool_lock+set}" = set; then :
8417 enableval=$enable_libtool_lock;
8420 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8423 # Check whether --with-pic was given.
8424 if test "${with_pic+set}" = set; then :
8425 withval=$with_pic; pic_mode="$withval"
8430 test -z "$pic_mode" && pic_mode=default
8432 # Use C for the default configuration in the libtool script
8436 ac_cpp='$CPP $CPPFLAGS'
8437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8442 # Source file extension for C test sources.
8445 # Object file extension for compiled C test sources.
8449 # Code to be used in simple compile tests
8450 lt_simple_compile_test_code="int some_variable = 0;\n"
8452 # Code to be used in simple link tests
8453 lt_simple_link_test_code='int main(){return(0);}\n'
8456 # If no C compiler was specified, use CC.
8459 # Allow CC to be a program name with arguments.
8463 # save warnings/boilerplate of simple test code
8464 ac_outfile=conftest.$ac_objext
8465 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8467 _lt_compiler_boilerplate=`cat conftest.err`
8470 ac_outfile=conftest.$ac_objext
8471 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8473 _lt_linker_boilerplate=`cat conftest.err`
8478 # Check for any special shared library compilation flags.
8481 if test "$GCC" = no; then
8484 lt_prog_cc_shlib='-belf'
8488 if test -n "$lt_prog_cc_shlib"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8490 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8491 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8494 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8495 lt_cv_prog_cc_can_build_shared=no
8501 # Check to make sure the static flag actually works.
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8504 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
8505 if test "${lt_prog_compiler_static_works+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
8508 lt_prog_compiler_static_works=no
8509 save_LDFLAGS="$LDFLAGS"
8510 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8511 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8513 # The linker can only warn and ignore the option if not recognized
8514 # So say no if there are warnings
8515 if test -s conftest.err; then
8516 # Append any errors to the config.log.
8517 cat conftest.err 1>&5
8518 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8519 $SED '/^$/d' conftest.err >conftest.er2
8520 if diff conftest.exp conftest.er2 >/dev/null; then
8521 lt_prog_compiler_static_works=yes
8524 lt_prog_compiler_static_works=yes
8528 LDFLAGS="$save_LDFLAGS"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8532 $as_echo "$lt_prog_compiler_static_works" >&6; }
8534 if test x"$lt_prog_compiler_static_works" = xyes; then
8537 lt_prog_compiler_static=
8543 lt_prog_compiler_no_builtin_flag=
8545 if test "$GCC" = yes; then
8546 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8550 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8551 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
8554 lt_cv_prog_compiler_rtti_exceptions=no
8555 ac_outfile=conftest.$ac_objext
8556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8557 lt_compiler_flag="-fno-rtti -fno-exceptions"
8558 # Insert the option either (1) after the last *FLAGS variable, or
8559 # (2) before a word containing "conftest.", or (3) at the end.
8560 # Note that $ac_compile itself does not contain backslashes and begins
8561 # with a dollar sign (not a hyphen), so the echo should work correctly.
8562 # The option is referenced via a variable to avoid confusing sed.
8563 lt_compile=`echo "$ac_compile" | $SED \
8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8566 -e 's:$: $lt_compiler_flag:'`
8567 (eval echo "\"\$as_me:8567: $lt_compile\"" >&5)
8568 (eval "$lt_compile" 2>conftest.err)
8570 cat conftest.err >&5
8571 echo "$as_me:8571: \$? = $ac_status" >&5
8572 if (exit $ac_status) && test -s "$ac_outfile"; then
8573 # The compiler can only warn and ignore the option if not recognized
8574 # So say no if there are warnings other than the usual output.
8575 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8576 $SED '/^$/d' conftest.err >conftest.er2
8577 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8578 lt_cv_prog_compiler_rtti_exceptions=yes
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8585 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8587 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8588 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8595 lt_prog_compiler_wl=
8596 lt_prog_compiler_pic=
8597 lt_prog_compiler_static=
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8600 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8602 if test "$GCC" = yes; then
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_static='-static'
8608 # All AIX code is PIC.
8609 if test "$host_cpu" = ia64; then
8610 # AIX 5 now supports IA64 processor
8611 lt_prog_compiler_static='-Bstatic'
8616 # FIXME: we need at least 68020 code to build shared libraries, but
8617 # adding the `-m68020' flag to GCC prevents building anything better,
8619 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8622 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8623 # PIC is the default for these OSes.
8626 mingw* | pw32* | os2*)
8627 # This hack is so that the source file can tell whether it is being
8628 # built for inclusion in a dll (and should export symbols for example).
8629 lt_prog_compiler_pic='-DDLL_EXPORT'
8632 darwin* | rhapsody*)
8633 # PIC is the default on this platform
8634 # Common symbols not allowed in MH_DYLIB files
8635 lt_prog_compiler_pic='-fno-common'
8639 # Just because we use GCC doesn't mean we suddenly get shared libraries
8640 # on systems that don't support them.
8641 lt_prog_compiler_can_build_shared=no
8646 if test -d /usr/nec; then
8647 lt_prog_compiler_pic=-Kconform_pic
8652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8659 lt_prog_compiler_pic='-fPIC'
8665 lt_prog_compiler_pic='-fPIC'
8669 # PORTME Check for flag to pass linker flags through the system compiler.
8672 lt_prog_compiler_wl='-Wl,'
8673 if test "$host_cpu" = ia64; then
8674 # AIX 5 now supports IA64 processor
8675 lt_prog_compiler_static='-Bstatic'
8677 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8681 # PIC is the default on this platform
8682 # Common symbols not allowed in MH_DYLIB files
8683 case $cc_basename in
8685 lt_prog_compiler_pic='-qnocommon'
8686 lt_prog_compiler_wl='-Wl,'
8691 mingw* | pw32* | os2*)
8692 # This hack is so that the source file can tell whether it is being
8693 # built for inclusion in a dll (and should export symbols for example).
8694 lt_prog_compiler_pic='-DDLL_EXPORT'
8697 hpux9* | hpux10* | hpux11*)
8698 lt_prog_compiler_wl='-Wl,'
8699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8706 lt_prog_compiler_pic='+Z'
8709 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8710 lt_prog_compiler_static='${wl}-a ${wl}archive'
8713 irix5* | irix6* | nonstopux*)
8714 lt_prog_compiler_wl='-Wl,'
8715 # PIC (with -KPIC) is the default.
8716 lt_prog_compiler_static='-non_shared'
8720 lt_prog_compiler_pic='-KPIC'
8721 lt_prog_compiler_static='-Bstatic'
8725 case $cc_basename in
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-static'
8731 pgcc* | pgf77* | pgf90* | pgf95*)
8732 # Portland Group compilers (*not* the Pentium gcc compiler,
8733 # which looks to be a dead project)
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-fpic'
8736 lt_prog_compiler_static='-Bstatic'
8739 lt_prog_compiler_wl='-Wl,'
8740 # All Alpha code is PIC.
8741 lt_prog_compiler_static='-non_shared'
8746 osf3* | osf4* | osf5*)
8747 lt_prog_compiler_wl='-Wl,'
8748 # All OSF/1 code is PIC.
8749 lt_prog_compiler_static='-non_shared'
8753 lt_prog_compiler_pic='-Kpic'
8754 lt_prog_compiler_static='-dn'
8758 lt_prog_compiler_pic='-KPIC'
8759 lt_prog_compiler_static='-Bstatic'
8760 case $cc_basename in
8762 lt_prog_compiler_wl='-Qoption ld ';;
8764 lt_prog_compiler_wl='-Wl,';;
8769 lt_prog_compiler_wl='-Qoption ld '
8770 lt_prog_compiler_pic='-PIC'
8771 lt_prog_compiler_static='-Bstatic'
8774 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-KPIC'
8777 lt_prog_compiler_static='-Bstatic'
8781 if test -d /usr/nec ;then
8782 lt_prog_compiler_pic='-Kconform_pic'
8783 lt_prog_compiler_static='-Bstatic'
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_can_build_shared=no
8793 lt_prog_compiler_pic='-pic'
8794 lt_prog_compiler_static='-Bstatic'
8798 lt_prog_compiler_can_build_shared=no
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8804 $as_echo "$lt_prog_compiler_pic" >&6; }
8807 # Check to make sure the PIC flag actually works.
8809 if test -n "$lt_prog_compiler_pic"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8812 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8813 if test "${lt_prog_compiler_pic_works+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8816 lt_prog_compiler_pic_works=no
8817 ac_outfile=conftest.$ac_objext
8818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8819 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8820 # Insert the option either (1) after the last *FLAGS variable, or
8821 # (2) before a word containing "conftest.", or (3) at the end.
8822 # Note that $ac_compile itself does not contain backslashes and begins
8823 # with a dollar sign (not a hyphen), so the echo should work correctly.
8824 # The option is referenced via a variable to avoid confusing sed.
8825 lt_compile=`echo "$ac_compile" | $SED \
8826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8828 -e 's:$: $lt_compiler_flag:'`
8829 (eval echo "\"\$as_me:8829: $lt_compile\"" >&5)
8830 (eval "$lt_compile" 2>conftest.err)
8832 cat conftest.err >&5
8833 echo "$as_me:8833: \$? = $ac_status" >&5
8834 if (exit $ac_status) && test -s "$ac_outfile"; then
8835 # The compiler can only warn and ignore the option if not recognized
8836 # So say no if there are warnings other than the usual output.
8837 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8838 $SED '/^$/d' conftest.err >conftest.er2
8839 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8840 lt_prog_compiler_pic_works=yes
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8847 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8849 if test x"$lt_prog_compiler_pic_works" = xyes; then
8850 case $lt_prog_compiler_pic in
8852 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8855 lt_prog_compiler_pic=
8856 lt_prog_compiler_can_build_shared=no
8861 # For platforms which do not support PIC, -DPIC is meaningless:
8863 lt_prog_compiler_pic=
8866 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8871 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8872 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8873 $as_echo_n "(cached) " >&6
8875 lt_cv_prog_compiler_c_o=no
8876 $rm -r conftest 2>/dev/null
8880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8882 lt_compiler_flag="-o out/conftest2.$ac_objext"
8883 # Insert the option either (1) after the last *FLAGS variable, or
8884 # (2) before a word containing "conftest.", or (3) at the end.
8885 # Note that $ac_compile itself does not contain backslashes and begins
8886 # with a dollar sign (not a hyphen), so the echo should work correctly.
8887 lt_compile=`echo "$ac_compile" | $SED \
8888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8890 -e 's:$: $lt_compiler_flag:'`
8891 (eval echo "\"\$as_me:8891: $lt_compile\"" >&5)
8892 (eval "$lt_compile" 2>out/conftest.err)
8894 cat out/conftest.err >&5
8895 echo "$as_me:8895: \$? = $ac_status" >&5
8896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898 # The compiler can only warn and ignore the option if not recognized
8899 # So say no if there are warnings
8900 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8901 $SED '/^$/d' out/conftest.err >out/conftest.er2
8902 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8903 lt_cv_prog_compiler_c_o=yes
8908 # SGI C++ compiler will create directory out/ii_files/ for
8909 # template instantiation
8910 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8911 $rm out/* && rmdir out
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8918 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8921 hard_links="nottested"
8922 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8923 # do not overwrite the value of need_locks provided by the user
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8925 $as_echo_n "checking if we can lock with hard links... " >&6; }
8928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8930 ln conftest.a conftest.b 2>&5 || hard_links=no
8931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8933 $as_echo "$hard_links" >&6; }
8934 if test "$hard_links" = no; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8936 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8944 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8947 allow_undefined_flag=
8948 enable_shared_with_static_runtimes=no
8950 archive_expsym_cmds=
8951 old_archive_From_new_cmds=
8952 old_archive_from_expsyms_cmds=
8953 export_dynamic_flag_spec=
8954 whole_archive_flag_spec=
8955 thread_safe_flag_spec=
8956 hardcode_libdir_flag_spec=
8957 hardcode_libdir_flag_spec_ld=
8958 hardcode_libdir_separator=
8961 hardcode_shlibpath_var=unsupported
8962 link_all_deplibs=unknown
8963 hardcode_automatic=no
8966 always_export_symbols=no
8967 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8968 # include_expsyms should be a list of space-separated symbols to be *always*
8969 # included in the symbol list
8971 # exclude_expsyms can be an extended regexp of symbols to exclude
8972 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8973 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8974 # as well as any symbol that contains `d'.
8975 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8976 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8977 # platforms (ab)use it in PIC code, but their linkers get confused if
8978 # the symbol is explicitly referenced. Since portable code cannot
8979 # rely on this symbol name, it's probably fine to never include it in
8980 # preloaded symbol tables.
8981 extract_expsyms_cmds=
8982 # Just being paranoid about ensuring that cc_basename is set.
8983 for cc_temp in $compiler""; do
8985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8991 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8994 cygwin* | mingw* | pw32*)
8995 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8996 # When not using gcc, we currently assume that we are using
8997 # Microsoft Visual C++.
8998 if test "$GCC" != yes; then
9008 if test "$with_gnu_ld" = yes; then
9009 # If archive_cmds runs LD, not CC, wlarc should be empty
9012 # Set some defaults for GNU ld with shared library support. These
9013 # are reset later if shared libraries are not supported. Putting them
9014 # here allows them to be overridden if necessary.
9015 runpath_var=LD_RUN_PATH
9016 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9017 export_dynamic_flag_spec='${wl}--export-dynamic'
9018 # ancient GNU ld didn't support --whole-archive et. al.
9019 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9020 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9022 whole_archive_flag_spec=
9024 supports_anon_versioning=no
9025 case `$LD -v 2>/dev/null` in
9026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9029 *\ 2.11.*) ;; # other 2.11 versions
9030 *) supports_anon_versioning=yes ;;
9033 # See if GNU ld supports shared libraries.
9035 aix3* | aix4* | aix5*)
9036 # On AIX/PPC, the GNU linker is very broken
9037 if test "$host_cpu" != ia64; then
9041 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9042 *** to be unable to reliably create shared libraries on AIX.
9043 *** Therefore, libtool is disabling shared libraries support. If you
9044 *** really care for shared libraries, you may want to modify your PATH
9045 *** so that a non-GNU linker is found, and then restart.
9052 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)'
9053 hardcode_libdir_flag_spec='-L$libdir'
9054 hardcode_minus_L=yes
9056 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9057 # that the semantics of dynamic libraries on AmigaOS, at least up
9058 # to version 4, is to share data among multiple programs linked
9059 # with the same dynamic library. Since this doesn't match the
9060 # behavior of shared libraries on other platforms, we can't use
9066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9067 allow_undefined_flag=unsupported
9068 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9069 # support --undefined. This deserves some investigation. FIXME
9070 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076 cygwin* | mingw* | pw32*)
9077 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9078 # as there is no search path for DLLs.
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 allow_undefined_flag=unsupported
9081 always_export_symbols=no
9082 enable_shared_with_static_runtimes=yes
9083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9085 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9087 # If the export-symbols file already is a .def file (1st line
9088 # is EXPORTS), use it as is; otherwise, prepend...
9089 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9090 cp $export_symbols $output_objdir/$soname.def;
9092 echo EXPORTS > $output_objdir/$soname.def;
9093 cat $export_symbols >> $output_objdir/$soname.def;
9095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9104 case $cc_basename,$host_cpu in
9105 pgcc*) # Portland Group C compiler
9106 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9107 tmp_addflag=' $pic_flag'
9109 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9110 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9111 tmp_addflag=' $pic_flag -Mnomain' ;;
9112 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9113 tmp_addflag=' -i_dynamic' ;;
9114 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9115 tmp_addflag=' -i_dynamic -nofor_main' ;;
9116 ifc* | ifort*) # Intel Fortran compiler
9117 tmp_addflag=' -nofor_main' ;;
9119 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9121 if test $supports_anon_versioning = yes; then
9122 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9123 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9124 $echo "local: *; };" >> $output_objdir/$libname.ver~
9125 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9134 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9143 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9147 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9148 *** create shared libraries on Solaris systems. Therefore, libtool
9149 *** is disabling shared libraries support. We urge you to upgrade GNU
9150 *** binutils to release 2.9.1 or newer. Another option is to modify
9151 *** your PATH or compiler configuration so that the native linker is
9152 *** used, and then restart.
9155 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9164 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9167 hardcode_shlibpath_var=no
9171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9180 if test "$ld_shlibs" = no; then
9182 hardcode_libdir_flag_spec=
9183 export_dynamic_flag_spec=
9184 whole_archive_flag_spec=
9187 # PORTME fill in a description of your system's linker (not GNU ld)
9190 allow_undefined_flag=unsupported
9191 always_export_symbols=yes
9192 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'
9193 # Note: this linker hardcodes the directories in LIBPATH if there
9194 # are no directories specified by -L.
9195 hardcode_minus_L=yes
9196 if test "$GCC" = yes && test -z "$link_static_flag"; then
9197 # Neither direct hardcoding nor static linking is supported with a
9199 hardcode_direct=unsupported
9204 if test "$host_cpu" = ia64; then
9205 # On IA64, the linker does run time linking by default, so we don't
9206 # have to do anything special.
9207 aix_use_runtimelinking=no
9208 exp_sym_flag='-Bexport'
9211 # If we're using GNU nm, then we don't want the "-C" option.
9212 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9213 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9214 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9216 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'
9218 aix_use_runtimelinking=no
9220 # Test if we are trying to use run time linking or normal
9221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9222 # need to do runtime linking.
9223 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9224 for ld_flag in $LDFLAGS; do
9225 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9226 aix_use_runtimelinking=yes
9232 exp_sym_flag='-bexport'
9233 no_entry_flag='-bnoentry'
9236 # When large executables or shared objects are built, AIX ld can
9237 # have problems creating the table of contents. If linking a library
9238 # or program results in "error TOC overflow" add -mminimal-toc to
9239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9244 hardcode_libdir_separator=':'
9245 link_all_deplibs=yes
9247 if test "$GCC" = yes; then
9248 case $host_os in aix4.[012]|aix4.[012].*)
9249 # We only want to do this on AIX 4.2 and lower, the check
9250 # below for broken collect2 doesn't work under 4.3+
9251 collect2name=`${CC} -print-prog-name=collect2`
9252 if test -f "$collect2name" && \
9253 strings "$collect2name" | grep resolve_lib_name >/dev/null
9255 # We have reworked collect2
9258 # We have old collect2
9259 hardcode_direct=unsupported
9260 # It fails to find uninstalled libraries when the uninstalled
9261 # path is not listed in the libpath. Setting hardcode_minus_L
9262 # to unsupported forces relinking
9263 hardcode_minus_L=yes
9264 hardcode_libdir_flag_spec='-L$libdir'
9265 hardcode_libdir_separator=
9268 shared_flag='-shared'
9269 if test "$aix_use_runtimelinking" = yes; then
9270 shared_flag="$shared_flag "'${wl}-G'
9274 if test "$host_cpu" = ia64; then
9275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9276 # chokes on -Wl,-G. The following line is correct:
9279 if test "$aix_use_runtimelinking" = yes; then
9280 shared_flag='${wl}-G'
9282 shared_flag='${wl}-bM:SRE'
9287 # It seems that -bexpall does not export symbols beginning with
9288 # underscore (_), so it is better to generate a list of symbols to export.
9289 always_export_symbols=yes
9290 if test "$aix_use_runtimelinking" = yes; then
9291 # Warning - without using the other runtime loading flags (-brtl),
9292 # -berok will link without error, but may produce a broken library.
9293 allow_undefined_flag='-berok'
9294 # Determine the default libpath from the value encoded in an empty executable.
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9306 if ac_fn_c_try_link "$LINENO"; then :
9308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9310 # Check for a 64-bit object if we didn't find anything.
9311 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9314 rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9318 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9319 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9321 if test "$host_cpu" = ia64; then
9322 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9323 allow_undefined_flag="-z nodefs"
9324 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9326 # Determine the default libpath from the value encoded in an empty executable.
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9338 if ac_fn_c_try_link "$LINENO"; then :
9340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9342 # Check for a 64-bit object if we didn't find anything.
9343 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9350 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9351 # Warning - without using the other run time loading flags,
9352 # -berok will link without error, but may produce a broken library.
9353 no_undefined_flag=' ${wl}-bernotok'
9354 allow_undefined_flag=' ${wl}-berok'
9355 # -bexpall does not export symbols beginning with underscore (_)
9356 always_export_symbols=yes
9357 # Exported symbols can be pulled into shared objects from archives
9358 whole_archive_flag_spec=' '
9359 archive_cmds_need_lc=yes
9360 # This is similar to how AIX traditionally builds its shared libraries.
9361 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9367 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)'
9368 hardcode_libdir_flag_spec='-L$libdir'
9369 hardcode_minus_L=yes
9370 # see comment about different semantics on the GNU ld section
9375 export_dynamic_flag_spec=-rdynamic
9378 cygwin* | mingw* | pw32*)
9379 # When not using gcc, we currently assume that we are using
9380 # Microsoft Visual C++.
9381 # hardcode_libdir_flag_spec is actually meaningless, as there is
9382 # no search path for DLLs.
9383 hardcode_libdir_flag_spec=' '
9384 allow_undefined_flag=unsupported
9385 # Tell ltmain to make .lib files, not .a files.
9387 # Tell ltmain to make .dll files, not .so files.
9389 # FIXME: Setting linknames here is a bad hack.
9390 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9391 # The linker will automatically build a .lib file if we build a DLL.
9392 old_archive_From_new_cmds='true'
9393 # FIXME: Should let the user specify the lib program.
9394 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9395 fix_srcfile_path='`cygpath -w "$srcfile"`'
9396 enable_shared_with_static_runtimes=yes
9399 darwin* | rhapsody*)
9401 rhapsody* | darwin1.[012])
9402 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9405 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9406 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9408 case ${MACOSX_DEPLOYMENT_TARGET} in
9410 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9413 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9419 archive_cmds_need_lc=no
9421 hardcode_automatic=yes
9422 hardcode_shlibpath_var=unsupported
9423 whole_archive_flag_spec=''
9424 link_all_deplibs=yes
9425 if test "$GCC" = yes ; then
9426 output_verbose_link_cmd='echo'
9427 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9428 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9430 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9431 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9433 case $cc_basename in
9435 output_verbose_link_cmd='echo'
9436 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9437 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9439 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9440 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_libdir_flag_spec='-L$libdir'
9452 hardcode_shlibpath_var=no
9459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9460 # support. Future versions do this automatically, but an explicit c++rt0.o
9461 # does not break anything, and helps significantly (at the cost of a little
9464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9465 hardcode_libdir_flag_spec='-R$libdir'
9467 hardcode_shlibpath_var=no
9470 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_minus_L=yes
9475 hardcode_shlibpath_var=no
9478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9479 freebsd* | kfreebsd*-gnu | dragonfly*)
9480 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9481 hardcode_libdir_flag_spec='-R$libdir'
9483 hardcode_shlibpath_var=no
9487 if test "$GCC" = yes; then
9488 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'
9490 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'
9492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9493 hardcode_libdir_separator=:
9496 # hardcode_minus_L: Not really in the search PATH,
9497 # but as the default location of the library.
9498 hardcode_minus_L=yes
9499 export_dynamic_flag_spec='${wl}-E'
9503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9506 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9515 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9518 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9522 if test "$with_gnu_ld" = no; then
9525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9526 hardcode_libdir_flag_spec_ld='+b $libdir'
9527 hardcode_libdir_separator=:
9529 hardcode_shlibpath_var=no
9532 hardcode_libdir_flag_spec='-L$libdir'
9534 hardcode_shlibpath_var=no
9536 # hardcode_minus_L: Not really in the search PATH,
9537 # but as the default location of the library.
9538 hardcode_minus_L=yes
9541 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9542 hardcode_libdir_separator=:
9544 export_dynamic_flag_spec='${wl}-E'
9546 # hardcode_minus_L: Not really in the search PATH,
9547 # but as the default location of the library.
9548 hardcode_minus_L=yes
9554 irix5* | irix6* | nonstopux*)
9555 if test "$GCC" = yes; then
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9558 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9559 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9562 hardcode_libdir_separator=:
9563 link_all_deplibs=yes
9567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9570 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9572 hardcode_libdir_flag_spec='-R$libdir'
9574 hardcode_shlibpath_var=no
9578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581 hardcode_libdir_separator=:
9582 hardcode_shlibpath_var=no
9587 hardcode_shlibpath_var=no
9588 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9590 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9592 export_dynamic_flag_spec='${wl}-E'
9595 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9597 hardcode_libdir_flag_spec='-R$libdir'
9600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_minus_L=yes
9610 allow_undefined_flag=unsupported
9611 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'
9612 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9616 if test "$GCC" = yes; then
9617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9618 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9620 allow_undefined_flag=' -expect_unresolved \*'
9621 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9624 hardcode_libdir_separator=:
9627 osf4* | osf5*) # as osf3* with the addition of -msym flag
9628 if test "$GCC" = yes; then
9629 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9630 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9633 allow_undefined_flag=' -expect_unresolved \*'
9634 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9635 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9636 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9638 # Both c and cxx compiler support -rpath directly
9639 hardcode_libdir_flag_spec='-rpath $libdir'
9641 hardcode_libdir_separator=:
9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_shlibpath_var=no
9647 export_dynamic_flag_spec='${wl}-Bexport'
9648 runpath_var=LD_RUN_PATH
9649 hardcode_runpath_var=yes
9653 no_undefined_flag=' -z text'
9654 if test "$GCC" = yes; then
9656 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9658 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9661 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9665 hardcode_libdir_flag_spec='-R$libdir'
9666 hardcode_shlibpath_var=no
9668 solaris2.[0-5] | solaris2.[0-5].*) ;;
9670 # The compiler driver will combine linker options so we
9671 # cannot just pass the convience library names through
9672 # without $wl, iff we do not link with $LD.
9673 # Luckily, gcc supports the same syntax we need for Sun Studio.
9674 # Supported since Solaris 2.6 (maybe 2.5.1?)
9677 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9679 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9682 link_all_deplibs=yes
9686 if test "x$host_vendor" = xsequent; then
9687 # Use $CC to link under sequent, because it throws in some extra .o
9688 # files that make .init and .fini sections work.
9689 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9691 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_minus_L=yes
9696 hardcode_shlibpath_var=no
9700 case $host_vendor in
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_direct=yes # is this really true???
9706 ## LD is ld it makes a PLAMLIB
9707 ## CC just makes a GrossModule.
9708 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9709 reload_cmds='$CC -r -o $output$reload_objs'
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9717 runpath_var='LD_RUN_PATH'
9718 hardcode_shlibpath_var=no
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_shlibpath_var=no
9724 export_dynamic_flag_spec='-Bexport'
9728 if test -d /usr/nec; then
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_shlibpath_var=no
9731 runpath_var=LD_RUN_PATH
9732 hardcode_runpath_var=yes
9738 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_shlibpath_var=no
9742 hardcode_runpath_var=yes
9743 runpath_var=LD_RUN_PATH
9746 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9747 no_undefined_flag='${wl}-z ${wl}text'
9748 if test "$GCC" = yes; then
9749 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 runpath_var='LD_RUN_PATH'
9754 hardcode_shlibpath_var=no
9758 no_undefined_flag=' -z text'
9759 # $CC -shared without GNU ld will not create a library from C++
9760 # object files and a static libstdc++, better avoid it by now
9761 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9764 hardcode_libdir_flag_spec=
9765 hardcode_shlibpath_var=no
9766 runpath_var='LD_RUN_PATH'
9770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771 hardcode_libdir_flag_spec='-L$libdir'
9772 hardcode_shlibpath_var=no
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9782 $as_echo "$ld_shlibs" >&6; }
9783 test "$ld_shlibs" = no && can_build_shared=no
9785 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9786 if test "$GCC" = yes; then
9787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9791 # Do we need to explicitly link libc?
9793 case "x$archive_cmds_need_lc" in
9795 # Assume -lc should be added
9796 archive_cmds_need_lc=yes
9798 if test "$enable_shared" = yes && test "$GCC" = yes; then
9799 case $archive_cmds in
9801 # FIXME: we may have to deal with multi-command sequences.
9804 # Test whether the compiler implicitly links with -lc since on some
9805 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9806 # to ld, don't add -lc before -lgcc.
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9808 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9813 (eval $ac_compile) 2>&5
9815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9816 test $ac_status = 0; } 2>conftest.err; then
9819 libobjs=conftest.$ac_objext
9821 wl=$lt_prog_compiler_wl
9827 lt_save_allow_undefined_flag=$allow_undefined_flag
9828 allow_undefined_flag=
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9830 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; }
9835 archive_cmds_need_lc=no
9837 archive_cmds_need_lc=yes
9839 allow_undefined_flag=$lt_save_allow_undefined_flag
9841 cat conftest.err 1>&5
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9845 $as_echo "$archive_cmds_need_lc" >&6; }
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9853 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9855 libname_spec='lib$name'
9863 shlibpath_overrides_runpath=unknown
9865 dynamic_linker="$host_os ld.so"
9866 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9867 if test "$GCC" = yes; then
9868 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9869 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9870 # if the path contains ";" then we assume it to be the separator
9871 # otherwise default to the standard path separator (i.e. ":") - it is
9872 # assumed that no part of a normal pathname contains ";" but that should
9873 # okay in the real world where ";" in dirpaths is itself problematic.
9874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9881 need_lib_prefix=unknown
9882 hardcode_into_libs=no
9884 # when you set need_version to no, make sure it does not cause -set_version
9885 # flags to be left without arguments
9886 need_version=unknown
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9892 shlibpath_var=LIBPATH
9894 # AIX 3 has no versioning support, so we append a major version to the name.
9895 soname_spec='${libname}${release}${shared_ext}$major'
9902 hardcode_into_libs=yes
9903 if test "$host_cpu" = ia64; then
9904 # AIX 5 supports IA64
9905 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9906 shlibpath_var=LD_LIBRARY_PATH
9908 # With GCC up to 2.95.x, collect2 would create an import file
9909 # for dependence libraries. The import file would start with
9910 # the line `#! .'. This would cause the generated library to
9911 # depend on `.', always an invalid library. This was fixed in
9912 # development snapshots of GCC prior to 3.0.
9914 aix4 | aix4.[01] | aix4.[01].*)
9915 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9917 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9924 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9925 # soname into executable. Probably we can add versioning support to
9926 # collect2, so additional links can be useful in future.
9927 if test "$aix_use_runtimelinking" = yes; then
9928 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9929 # instead of lib<name>.a to let people know that these are not
9930 # typical AIX shared libraries.
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933 # We preserve .a as extension for shared libraries through AIX4.2
9934 # and later when we are not doing run time linking.
9935 library_names_spec='${libname}${release}.a $libname.a'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9938 shlibpath_var=LIBPATH
9943 library_names_spec='$libname.ixlibrary $libname.a'
9944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9945 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
9949 library_names_spec='${libname}${shared_ext}'
9950 dynamic_linker="$host_os ld.so"
9951 shlibpath_var=LIBRARY_PATH
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9962 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9963 # the default ld.so.conf also contains /usr/contrib/lib and
9964 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9965 # libtool to hard-code these into programs
9968 cygwin* | mingw* | pw32*)
9969 version_type=windows
9974 case $GCC,$host_os in
9975 yes,cygwin* | yes,mingw* | yes,pw32*)
9976 library_names_spec='$libname.dll.a'
9977 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9978 postinstall_cmds='base_file=`basename \${file}`~
9979 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9980 dldir=$destdir/`dirname \$dlpath`~
9981 test -d \$dldir || mkdir -p \$dldir~
9982 $install_prog $dir/$dlname \$dldir/$dlname~
9983 chmod a+x \$dldir/$dlname'
9984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9985 dlpath=$dir/\$dldll~
9987 shlibpath_overrides_runpath=yes
9991 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9992 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9996 # MinGW DLLs use traditional 'lib' prefix
9997 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9999 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10000 # It is most probably a Windows format PATH printed by
10001 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10002 # path with ; separators, and with drive letters. We can handle the
10003 # drive letters (cygwin fileutils understands them), so leave them,
10004 # especially as we might pass files found there to a mingw objdump,
10005 # which wouldn't understand a cygwinified path. Ahh.
10006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10012 # pw32 DLLs use 'pw' prefix rather than 'lib'
10013 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10022 dynamic_linker='Win32 ld.exe'
10023 # FIXME: first we should search . and the directory the executable is in
10027 darwin* | rhapsody*)
10028 dynamic_linker="$host_os dyld"
10029 version_type=darwin
10032 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10033 soname_spec='${libname}${release}${major}$shared_ext'
10034 shlibpath_overrides_runpath=yes
10035 shlibpath_var=DYLD_LIBRARY_PATH
10036 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10037 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10038 if test "$GCC" = yes; then
10039 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10041 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10043 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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=LD_LIBRARY_PATH
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 shlibpath_overrides_runpath=no
10067 hardcode_into_libs=yes
10068 dynamic_linker='GNU ld.so'
10071 freebsd* | dragonfly*)
10072 # DragonFly does not have aout. When/if they implement a new
10073 # versioning mechanism, adjust this.
10074 if test -x /usr/bin/objformat; then
10075 objformat=`/usr/bin/objformat`
10078 freebsd[123]*) objformat=aout ;;
10079 *) objformat=elf ;;
10082 version_type=freebsd-$objformat
10083 case $version_type in
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10094 shlibpath_var=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath=yes
10099 freebsd3.[01]* | freebsdelf3.[01]*)
10100 shlibpath_overrides_runpath=yes
10101 hardcode_into_libs=yes
10104 shlibpath_overrides_runpath=no
10105 hardcode_into_libs=yes
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 hardcode_into_libs=yes
10120 hpux9* | hpux10* | hpux11*)
10121 # Give a soname corresponding to the major version so that dld.sl refuses to
10122 # link against other versions.
10129 hardcode_into_libs=yes
10130 dynamic_linker="$host_os dld.so"
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 if test "X$HPUX_IA64_MODE" = X32; then
10136 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10144 hardcode_into_libs=yes
10145 dynamic_linker="$host_os dld.sl"
10146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10155 dynamic_linker="$host_os dld.sl"
10156 shlibpath_var=SHLIB_PATH
10157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10162 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10163 postinstall_cmds='chmod 555 $lib'
10166 irix5* | irix6* | nonstopux*)
10168 nonstopux*) version_type=nonstopux ;;
10170 if test "$lt_cv_prog_gnu_ld" = yes; then
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10181 irix5* | nonstopux*)
10182 libsuff= shlibsuff=
10185 case $LD in # libtool.m4 will add one of these switches to LD
10186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10187 libsuff= shlibsuff= libmagic=32-bit;;
10188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10189 libsuff=32 shlibsuff=N32 libmagic=N32;;
10190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10192 *) libsuff= shlibsuff= libmagic=never-match;;
10196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10197 shlibpath_overrides_runpath=no
10198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10200 hardcode_into_libs=yes
10203 # No shared lib support for Linux oldld, aout, or coff.
10204 linux*oldld* | linux*aout* | linux*coff*)
10208 # This must be Linux ELF.
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=no
10218 # This implies no fast_install, which is unacceptable.
10219 # Some rework will be needed to allow for fast_install
10220 # before this can be enabled.
10221 hardcode_into_libs=yes
10223 # Append ld.so.conf contents to the search path
10224 if test -f /etc/ld.so.conf; then
10225 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10229 # We used to test for /lib/ld.so.1 and disable shared libraries on
10230 # powerpc, because MkLinux only supported shared libraries with the
10231 # GNU dynamic linker. Since this was broken with cross compilers,
10232 # most powerpc-linux boxes support dynamic linking these days and
10233 # people can always --disable-shared, the test was removed, and we
10234 # assume the GNU/Linux dynamic linker is in use.
10235 dynamic_linker='GNU/Linux ld.so'
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 dynamic_linker='GNU ld.so'
10254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10257 dynamic_linker='NetBSD (a.out) ld.so'
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 dynamic_linker='NetBSD ld.elf_so'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10291 *) need_version=no ;;
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10298 openbsd2.[89] | openbsd2.[89].*)
10299 shlibpath_overrides_runpath=no
10302 shlibpath_overrides_runpath=yes
10306 shlibpath_overrides_runpath=yes
10311 libname_spec='$name'
10314 library_names_spec='$libname${shared_ext} $libname.a'
10315 dynamic_linker='OS/2 ld.exe'
10316 shlibpath_var=LIBPATH
10319 osf3* | osf4* | osf5*)
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 shlibpath_var=LD_LIBRARY_PATH
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 shlibpath_overrides_runpath=yes
10345 hardcode_into_libs=yes
10346 # ldd complains unless libraries are executable
10347 postinstall_cmds='chmod +x $lib'
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=yes
10356 if test "$with_gnu_ld" = yes; then
10362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 case $host_vendor in
10369 shlibpath_overrides_runpath=no
10371 export_dynamic_flag_spec='${wl}-Blargedynsym'
10372 runpath_var=LD_RUN_PATH
10380 shlibpath_overrides_runpath=no
10381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10387 if test -d /usr/nec ;then
10389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10390 soname_spec='$libname${shared_ext}.$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 shlibpath_var=LD_LIBRARY_PATH
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10407 $as_echo "$dynamic_linker" >&6; }
10408 test "$dynamic_linker" = no && can_build_shared=no
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10411 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10413 if test -n "$hardcode_libdir_flag_spec" || \
10414 test -n "$runpath_var" || \
10415 test "X$hardcode_automatic" = "Xyes" ; then
10417 # We can hardcode non-existant directories.
10418 if test "$hardcode_direct" != no &&
10419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10420 # have to relink, otherwise we might link with an installed library
10421 # when we should be linking with a yet-to-be-installed one
10422 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10423 test "$hardcode_minus_L" != no; then
10424 # Linking always hardcodes the temporary library directory.
10425 hardcode_action=relink
10427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10428 hardcode_action=immediate
10431 # We cannot hardcode anything, or else we can only hardcode existing
10433 hardcode_action=unsupported
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10436 $as_echo "$hardcode_action" >&6; }
10438 if test "$hardcode_action" = relink; then
10439 # Fast installation is not supported
10440 enable_fast_install=no
10441 elif test "$shlibpath_overrides_runpath" = yes ||
10442 test "$enable_shared" = no; then
10443 # Fast installation is not necessary
10444 enable_fast_install=needless
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10450 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10451 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10452 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10453 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10455 $as_echo "yes" >&6; }
10457 # FIXME - insert some real tests, host_os isn't really good enough
10460 if test -n "$STRIP" ; then
10461 striplib="$STRIP -x"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10463 $as_echo "yes" >&6; }
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10476 if test "x$enable_dlopen" != xyes; then
10477 enable_dlopen=unknown
10478 enable_dlopen_self=unknown
10479 enable_dlopen_self_static=unknown
10486 lt_cv_dlopen="load_add_on"
10488 lt_cv_dlopen_self=yes
10492 lt_cv_dlopen="LoadLibrary"
10497 lt_cv_dlopen="dlopen"
10502 # if libdl is installed we need to link against it
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10504 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10508 ac_check_lib_save_LIBS=$LIBS
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10513 /* Override any GCC internal prototype to avoid an error.
10514 Use char because int might match the return type of a GCC
10515 builtin and then its argument prototype would still apply. */
10528 if ac_fn_c_try_link "$LINENO"; then :
10529 ac_cv_lib_dl_dlopen=yes
10531 ac_cv_lib_dl_dlopen=no
10533 rm -f core conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10535 LIBS=$ac_check_lib_save_LIBS
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10538 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10539 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10543 lt_cv_dlopen="dyld"
10545 lt_cv_dlopen_self=yes
10552 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10553 if test "x$ac_cv_func_shl_load" = x""yes; then :
10554 lt_cv_dlopen="shl_load"
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10557 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10558 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10559 $as_echo_n "(cached) " >&6
10561 ac_check_lib_save_LIBS=$LIBS
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10566 /* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10576 return shl_load ();
10581 if ac_fn_c_try_link "$LINENO"; then :
10582 ac_cv_lib_dld_shl_load=yes
10584 ac_cv_lib_dld_shl_load=no
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10591 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10592 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10593 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10595 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10596 if test "x$ac_cv_func_dlopen" = x""yes; then :
10597 lt_cv_dlopen="dlopen"
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10600 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10601 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10604 ac_check_lib_save_LIBS=$LIBS
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 /* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 ac_cv_lib_dl_dlopen=yes
10627 ac_cv_lib_dl_dlopen=no
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10634 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10635 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10639 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10640 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10643 ac_check_lib_save_LIBS=$LIBS
10644 LIBS="-lsvld $LIBS"
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10663 if ac_fn_c_try_link "$LINENO"; then :
10664 ac_cv_lib_svld_dlopen=yes
10666 ac_cv_lib_svld_dlopen=no
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 LIBS=$ac_check_lib_save_LIBS
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10673 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10674 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10678 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10679 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
10682 ac_check_lib_save_LIBS=$LIBS
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10687 /* Override any GCC internal prototype to avoid an error.
10688 Use char because int might match the return type of a GCC
10689 builtin and then its argument prototype would still apply. */
10697 return dld_link ();
10702 if ac_fn_c_try_link "$LINENO"; then :
10703 ac_cv_lib_dld_dld_link=yes
10705 ac_cv_lib_dld_dld_link=no
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10712 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10713 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10714 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10735 if test "x$lt_cv_dlopen" != xno; then
10741 case $lt_cv_dlopen in
10743 save_CPPFLAGS="$CPPFLAGS"
10744 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10746 save_LDFLAGS="$LDFLAGS"
10747 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10750 LIBS="$lt_cv_dlopen_libs $LIBS"
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10753 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10754 if test "${lt_cv_dlopen_self+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
10757 if test "$cross_compiling" = yes; then :
10758 lt_cv_dlopen_self=cross
10760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10761 lt_status=$lt_dlunknown
10762 cat > conftest.$ac_ext <<EOF
10763 #line 10763 "configure"
10764 #include "confdefs.h"
10773 # define LT_DLGLOBAL RTLD_GLOBAL
10776 # define LT_DLGLOBAL DL_GLOBAL
10778 # define LT_DLGLOBAL 0
10782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10783 find out it does not work in some platform. */
10784 #ifndef LT_DLLAZY_OR_NOW
10786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10789 # define LT_DLLAZY_OR_NOW DL_LAZY
10792 # define LT_DLLAZY_OR_NOW RTLD_NOW
10795 # define LT_DLLAZY_OR_NOW DL_NOW
10797 # define LT_DLLAZY_OR_NOW 0
10805 extern "C" void exit (int);
10808 void fnord() { int i=42;}
10811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10812 int status = $lt_dlunknown;
10816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10817 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10818 /* dlclose (self); */
10824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10825 (eval $ac_link) 2>&5
10827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10828 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10829 (./conftest; exit; ) >&5 2>/dev/null
10831 case x$lt_status in
10832 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10833 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10834 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10837 # compilation failed
10838 lt_cv_dlopen_self=no
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10846 $as_echo "$lt_cv_dlopen_self" >&6; }
10848 if test "x$lt_cv_dlopen_self" = xyes; then
10849 LDFLAGS="$LDFLAGS $link_static_flag"
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10851 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10852 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10855 if test "$cross_compiling" = yes; then :
10856 lt_cv_dlopen_self_static=cross
10858 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10859 lt_status=$lt_dlunknown
10860 cat > conftest.$ac_ext <<EOF
10861 #line 10861 "configure"
10862 #include "confdefs.h"
10871 # define LT_DLGLOBAL RTLD_GLOBAL
10874 # define LT_DLGLOBAL DL_GLOBAL
10876 # define LT_DLGLOBAL 0
10880 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10881 find out it does not work in some platform. */
10882 #ifndef LT_DLLAZY_OR_NOW
10884 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10887 # define LT_DLLAZY_OR_NOW DL_LAZY
10890 # define LT_DLLAZY_OR_NOW RTLD_NOW
10893 # define LT_DLLAZY_OR_NOW DL_NOW
10895 # define LT_DLLAZY_OR_NOW 0
10903 extern "C" void exit (int);
10906 void fnord() { int i=42;}
10909 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10910 int status = $lt_dlunknown;
10914 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10915 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10916 /* dlclose (self); */
10922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10923 (eval $ac_link) 2>&5
10925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10926 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10927 (./conftest; exit; ) >&5 2>/dev/null
10929 case x$lt_status in
10930 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10931 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10932 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10935 # compilation failed
10936 lt_cv_dlopen_self_static=no
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10944 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10947 CPPFLAGS="$save_CPPFLAGS"
10948 LDFLAGS="$save_LDFLAGS"
10953 case $lt_cv_dlopen_self in
10954 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10955 *) enable_dlopen_self=unknown ;;
10958 case $lt_cv_dlopen_self_static in
10959 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10960 *) enable_dlopen_self_static=unknown ;;
10965 # Report which librarie types wil actually be built
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10967 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10969 $as_echo "$can_build_shared" >&6; }
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10972 $as_echo_n "checking whether to build shared libraries... " >&6; }
10973 test "$can_build_shared" = "no" && enable_shared=no
10975 # On AIX, shared libraries and static libraries use the same namespace, and
10976 # are all built from PIC.
10979 test "$enable_shared" = yes && enable_static=no
10980 if test -n "$RANLIB"; then
10981 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10982 postinstall_cmds='$RANLIB $lib'
10987 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10988 test "$enable_shared" = yes && enable_static=no
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10993 $as_echo "$enable_shared" >&6; }
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10996 $as_echo_n "checking whether to build static libraries... " >&6; }
10997 # Make sure either enable_shared or enable_static is yes.
10998 test "$enable_shared" = yes || enable_static=yes
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11000 $as_echo "$enable_static" >&6; }
11002 # The else clause should only fire when bootstrapping the
11003 # libtool distribution, otherwise you forgot to ship ltmain.sh
11004 # with your package, and you will get complaints that there are
11005 # no rules to generate ltmain.sh.
11006 if test -f "$ltmain"; then
11007 # See if we are running on zsh, and set the options which allow our commands through
11008 # without removal of \ escapes.
11009 if test -n "${ZSH_VERSION+set}" ; then
11010 setopt NO_GLOB_SUBST
11012 # Now quote all the things that may contain metacharacters while being
11013 # careful not to overquote the AC_SUBSTed values. We take copies of the
11014 # variables and quote the copies for generation of the libtool script.
11015 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11017 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11018 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11019 deplibs_check_method reload_flag reload_cmds need_locks \
11020 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11021 lt_cv_sys_global_symbol_to_c_name_address \
11022 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11023 old_postinstall_cmds old_postuninstall_cmds \
11027 lt_prog_compiler_wl \
11028 lt_prog_compiler_pic \
11029 lt_prog_compiler_static \
11030 lt_prog_compiler_no_builtin_flag \
11031 export_dynamic_flag_spec \
11032 thread_safe_flag_spec \
11033 whole_archive_flag_spec \
11034 enable_shared_with_static_runtimes \
11036 old_archive_from_new_cmds \
11041 compiler_lib_search_path \
11043 archive_expsym_cmds \
11045 postuninstall_cmds \
11046 old_archive_from_expsyms_cmds \
11047 allow_undefined_flag \
11048 no_undefined_flag \
11049 export_symbols_cmds \
11050 hardcode_libdir_flag_spec \
11051 hardcode_libdir_flag_spec_ld \
11052 hardcode_libdir_separator \
11053 hardcode_automatic \
11055 module_expsym_cmds \
11056 lt_cv_prog_compiler_c_o \
11058 include_expsyms; do
11061 old_archive_cmds | \
11062 old_archive_from_new_cmds | \
11064 archive_expsym_cmds | \
11066 module_expsym_cmds | \
11067 old_archive_from_expsyms_cmds | \
11068 export_symbols_cmds | \
11069 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11070 postinstall_cmds | postuninstall_cmds | \
11071 old_postinstall_cmds | old_postuninstall_cmds | \
11072 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11073 # Double-quote double-evaled strings.
11074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11083 *'\$0 --fallback-echo"')
11084 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11088 cfgfile="${ofile}T"
11089 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11092 $as_echo "$as_me: creating $ofile" >&6;}
11094 cat <<__EOF__ >> "$cfgfile"
11097 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11098 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11099 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11101 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11102 # Free Software Foundation, Inc.
11104 # This file is part of GNU Libtool:
11105 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11107 # This program is free software; you can redistribute it and/or modify
11108 # it under the terms of the GNU General Public License as published by
11109 # the Free Software Foundation; either version 2 of the License, or
11110 # (at your option) any later version.
11112 # This program is distributed in the hope that it will be useful, but
11113 # WITHOUT ANY WARRANTY; without even the implied warranty of
11114 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11115 # General Public License for more details.
11117 # You should have received a copy of the GNU General Public License
11118 # along with this program; if not, write to the Free Software
11119 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11121 # As a special exception to the GNU General Public License, if you
11122 # distribute this file as part of a program that contains a
11123 # configuration script generated by Autoconf, you may include it under
11124 # the same distribution terms that you use for the rest of that program.
11126 # A sed program that does not truncate output.
11129 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11130 Xsed="$SED -e 1s/^X//"
11132 # The HP-UX ksh and POSIX shell print the target directory to stdout
11133 # if CDPATH is set.
11134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11136 # The names of the tagged configurations supported by this script.
11139 # ### BEGIN LIBTOOL CONFIG
11141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11143 # Shell to use when invoking shell scripts.
11146 # Whether or not to build shared libraries.
11147 build_libtool_libs=$enable_shared
11149 # Whether or not to build static libraries.
11150 build_old_libs=$enable_static
11152 # Whether or not to add -lc for building shared libraries.
11153 build_libtool_need_lc=$archive_cmds_need_lc
11155 # Whether or not to disallow shared libs when runtime libs are static
11156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11158 # Whether or not to optimize for fast installation.
11159 fast_install=$enable_fast_install
11162 host_alias=$host_alias
11166 # The build system.
11167 build_alias=$build_alias
11171 # An echo program that does not interpret backslashes.
11176 AR_FLAGS=$lt_AR_FLAGS
11181 # A language-specific compiler.
11184 # Is the compiler the GNU C compiler?
11190 # The linker used to build libraries.
11193 # Whether we need hard or soft links.
11196 # A BSD-compatible nm program.
11199 # A symbol stripping program
11202 # Used to examine libraries when file_magic_cmd begins "file"
11203 MAGIC_CMD=$MAGIC_CMD
11205 # Used on cygwin: DLL creation program.
11208 # Used on cygwin: object dumper.
11211 # Used on cygwin: assembler.
11214 # The name of the directory that contains temporary libtool files.
11217 # How to create reloadable object files.
11218 reload_flag=$lt_reload_flag
11219 reload_cmds=$lt_reload_cmds
11221 # How to pass a linker flag through the compiler.
11222 wl=$lt_lt_prog_compiler_wl
11224 # Object file suffix (normally "o").
11225 objext="$ac_objext"
11227 # Old archive suffix (normally "a").
11230 # Shared library suffix (normally ".so").
11231 shrext_cmds='$shrext_cmds'
11233 # Executable file suffix (normally "").
11236 # Additional compiler flags for building library objects.
11237 pic_flag=$lt_lt_prog_compiler_pic
11240 # What is the maximum length of a command?
11241 max_cmd_len=$lt_cv_sys_max_cmd_len
11243 # Does compiler simultaneously support -c and -o options?
11244 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11246 # Must we lock files when doing compilation?
11247 need_locks=$lt_need_locks
11249 # Do we need the lib prefix for modules?
11250 need_lib_prefix=$need_lib_prefix
11252 # Do we need a version for libraries?
11253 need_version=$need_version
11255 # Whether dlopen is supported.
11256 dlopen_support=$enable_dlopen
11258 # Whether dlopen of programs is supported.
11259 dlopen_self=$enable_dlopen_self
11261 # Whether dlopen of statically linked programs is supported.
11262 dlopen_self_static=$enable_dlopen_self_static
11264 # Compiler flag to prevent dynamic linking.
11265 link_static_flag=$lt_lt_prog_compiler_static
11267 # Compiler flag to turn off builtin functions.
11268 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11270 # Compiler flag to allow reflexive dlopens.
11271 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11273 # Compiler flag to generate shared objects directly from archives.
11274 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11276 # Compiler flag to generate thread-safe objects.
11277 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11279 # Library versioning type.
11280 version_type=$version_type
11282 # Format of library name prefix.
11283 libname_spec=$lt_libname_spec
11285 # List of archive names. First name is the real one, the rest are links.
11286 # The last name is the one that the linker finds with -lNAME.
11287 library_names_spec=$lt_library_names_spec
11289 # The coded name of the library, if different from the real name.
11290 soname_spec=$lt_soname_spec
11292 # Commands used to build and install an old-style archive.
11294 old_archive_cmds=$lt_old_archive_cmds
11295 old_postinstall_cmds=$lt_old_postinstall_cmds
11296 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11298 # Create an old-style archive from a shared archive.
11299 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11301 # Create a temporary old-style archive to link instead of a shared archive.
11302 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11304 # Commands used to build and install a shared archive.
11305 archive_cmds=$lt_archive_cmds
11306 archive_expsym_cmds=$lt_archive_expsym_cmds
11307 postinstall_cmds=$lt_postinstall_cmds
11308 postuninstall_cmds=$lt_postuninstall_cmds
11310 # Commands used to build a loadable module (assumed same as above if empty)
11311 module_cmds=$lt_module_cmds
11312 module_expsym_cmds=$lt_module_expsym_cmds
11314 # Commands to strip libraries.
11315 old_striplib=$lt_old_striplib
11316 striplib=$lt_striplib
11318 # Dependencies to place before the objects being linked to create a
11320 predep_objects=$lt_predep_objects
11322 # Dependencies to place after the objects being linked to create a
11324 postdep_objects=$lt_postdep_objects
11326 # Dependencies to place before the objects being linked to create a
11328 predeps=$lt_predeps
11330 # Dependencies to place after the objects being linked to create a
11332 postdeps=$lt_postdeps
11334 # The library search path used internally by the compiler when linking
11335 # a shared library.
11336 compiler_lib_search_path=$lt_compiler_lib_search_path
11338 # Method to check whether dependent libraries are shared objects.
11339 deplibs_check_method=$lt_deplibs_check_method
11341 # Command to use when deplibs_check_method == file_magic.
11342 file_magic_cmd=$lt_file_magic_cmd
11344 # Flag that allows shared libraries with undefined symbols to be built.
11345 allow_undefined_flag=$lt_allow_undefined_flag
11347 # Flag that forces no undefined symbols.
11348 no_undefined_flag=$lt_no_undefined_flag
11350 # Commands used to finish a libtool library installation in a directory.
11351 finish_cmds=$lt_finish_cmds
11353 # Same as above, but a single script fragment to be evaled but not shown.
11354 finish_eval=$lt_finish_eval
11356 # Take the output of nm and produce a listing of raw symbols and C names.
11357 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11359 # Transform the output of nm in a proper C declaration
11360 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11362 # Transform the output of nm in a C name address pair
11363 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11365 # This is the shared library runtime path variable.
11366 runpath_var=$runpath_var
11368 # This is the shared library path variable.
11369 shlibpath_var=$shlibpath_var
11371 # Is shlibpath searched before the hard-coded library search path?
11372 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11374 # How to hardcode a shared library path into an executable.
11375 hardcode_action=$hardcode_action
11377 # Whether we should hardcode library paths into libraries.
11378 hardcode_into_libs=$hardcode_into_libs
11380 # Flag to hardcode \$libdir into a binary during linking.
11381 # This must work even if \$libdir does not exist.
11382 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11384 # If ld is used when linking, flag to hardcode \$libdir into
11385 # a binary during linking. This must work even if \$libdir does
11387 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11389 # Whether we need a single -rpath flag with a separated argument.
11390 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11392 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11393 # resulting binary.
11394 hardcode_direct=$hardcode_direct
11396 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11397 # resulting binary.
11398 hardcode_minus_L=$hardcode_minus_L
11400 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11401 # the resulting binary.
11402 hardcode_shlibpath_var=$hardcode_shlibpath_var
11404 # Set to yes if building a shared library automatically hardcodes DIR into the library
11405 # and all subsequent libraries and executables linked against it.
11406 hardcode_automatic=$hardcode_automatic
11408 # Variables whose values should be saved in libtool wrapper scripts and
11409 # restored at relink time.
11410 variables_saved_for_relink="$variables_saved_for_relink"
11412 # Whether libtool must link a program against all its dependency libraries.
11413 link_all_deplibs=$link_all_deplibs
11415 # Compile-time system search path for libraries
11416 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11418 # Run-time system search path for libraries
11419 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11421 # Fix the shell variable \$srcfile for the compiler.
11422 fix_srcfile_path="$fix_srcfile_path"
11424 # Set to yes if exported symbols are required.
11425 always_export_symbols=$always_export_symbols
11427 # The commands to list exported symbols.
11428 export_symbols_cmds=$lt_export_symbols_cmds
11430 # The commands to extract the exported symbol list from a shared archive.
11431 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11433 # Symbols that should not be listed in the preloaded symbols.
11434 exclude_expsyms=$lt_exclude_expsyms
11436 # Symbols that must always be exported.
11437 include_expsyms=$lt_include_expsyms
11439 # ### END LIBTOOL CONFIG
11446 cat <<\EOF >> "$cfgfile"
11448 # AIX sometimes has problems with the GCC collect2 program. For some
11449 # reason, if we set the COLLECT_NAMES environment variable, the problems
11450 # vanish in a puff of smoke.
11451 if test "X${COLLECT_NAMES+set}" != Xset; then
11453 export COLLECT_NAMES
11459 # We use sed instead of cat because bash on DJGPP gets confused if
11460 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11461 # text mode, it properly converts lines to CR/LF. This bash problem
11462 # is reportedly fixed, but why not run on old versions too?
11463 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11465 mv -f "$cfgfile" "$ofile" || \
11466 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11470 # If there is no Makefile yet, we rely on a make rule to execute
11471 # `config.status --recheck' to rerun these tests and create the
11472 # libtool script then.
11473 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11474 if test -f "$ltmain_in"; then
11475 test -f Makefile && make "$ltmain"
11481 ac_cpp='$CPP $CPPFLAGS'
11482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11489 # Check whether --with-tags was given.
11490 if test "${with_tags+set}" = set; then :
11491 withval=$with_tags; tagnames="$withval"
11495 if test -f "$ltmain" && test -n "$tagnames"; then
11496 if test ! -f "${ofile}"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11498 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11501 if test -z "$LTCC"; then
11502 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11503 if test -z "$LTCC"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11505 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11508 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11512 # Extract list of available tagged configurations in $ofile.
11513 # Note that this assumes the entire list is on one line.
11514 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11517 for tagname in $tagnames; do
11519 # Check whether tagname contains only valid characters
11520 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11522 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
11526 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11528 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
11531 # Update the list of available tags.
11532 if test -n "$tagname"; then
11533 echo appending configuration tag \"$tagname\" to $ofile
11537 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11538 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11539 (test "X$CXX" != "Xg++"))) ; then
11547 if test -n "$F77" && test "X$F77" != "Xno"; then
11555 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11565 # Source file extension for RC test sources.
11568 # Object file extension for compiled RC test sources.
11572 # Code to be used in simple compile tests
11573 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11575 # Code to be used in simple link tests
11576 lt_simple_link_test_code="$lt_simple_compile_test_code"
11578 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11580 # If no C compiler was specified, use CC.
11583 # Allow CC to be a program name with arguments.
11587 # save warnings/boilerplate of simple test code
11588 ac_outfile=conftest.$ac_objext
11589 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11590 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11591 _lt_compiler_boilerplate=`cat conftest.err`
11594 ac_outfile=conftest.$ac_objext
11595 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11596 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11597 _lt_linker_boilerplate=`cat conftest.err`
11601 # Allow CC to be a program name with arguments.
11606 for cc_temp in $compiler""; do
11608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11614 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11616 lt_cv_prog_compiler_c_o_RC=yes
11618 # The else clause should only fire when bootstrapping the
11619 # libtool distribution, otherwise you forgot to ship ltmain.sh
11620 # with your package, and you will get complaints that there are
11621 # no rules to generate ltmain.sh.
11622 if test -f "$ltmain"; then
11623 # See if we are running on zsh, and set the options which allow our commands through
11624 # without removal of \ escapes.
11625 if test -n "${ZSH_VERSION+set}" ; then
11626 setopt NO_GLOB_SUBST
11628 # Now quote all the things that may contain metacharacters while being
11629 # careful not to overquote the AC_SUBSTed values. We take copies of the
11630 # variables and quote the copies for generation of the libtool script.
11631 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11635 deplibs_check_method reload_flag reload_cmds need_locks \
11636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11637 lt_cv_sys_global_symbol_to_c_name_address \
11638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11639 old_postinstall_cmds old_postuninstall_cmds \
11643 lt_prog_compiler_wl_RC \
11644 lt_prog_compiler_pic_RC \
11645 lt_prog_compiler_static_RC \
11646 lt_prog_compiler_no_builtin_flag_RC \
11647 export_dynamic_flag_spec_RC \
11648 thread_safe_flag_spec_RC \
11649 whole_archive_flag_spec_RC \
11650 enable_shared_with_static_runtimes_RC \
11651 old_archive_cmds_RC \
11652 old_archive_from_new_cmds_RC \
11653 predep_objects_RC \
11654 postdep_objects_RC \
11657 compiler_lib_search_path_RC \
11659 archive_expsym_cmds_RC \
11660 postinstall_cmds_RC \
11661 postuninstall_cmds_RC \
11662 old_archive_from_expsyms_cmds_RC \
11663 allow_undefined_flag_RC \
11664 no_undefined_flag_RC \
11665 export_symbols_cmds_RC \
11666 hardcode_libdir_flag_spec_RC \
11667 hardcode_libdir_flag_spec_ld_RC \
11668 hardcode_libdir_separator_RC \
11669 hardcode_automatic_RC \
11671 module_expsym_cmds_RC \
11672 lt_cv_prog_compiler_c_o_RC \
11673 exclude_expsyms_RC \
11674 include_expsyms_RC; do
11677 old_archive_cmds_RC | \
11678 old_archive_from_new_cmds_RC | \
11679 archive_cmds_RC | \
11680 archive_expsym_cmds_RC | \
11682 module_expsym_cmds_RC | \
11683 old_archive_from_expsyms_cmds_RC | \
11684 export_symbols_cmds_RC | \
11685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11686 postinstall_cmds | postuninstall_cmds | \
11687 old_postinstall_cmds | old_postuninstall_cmds | \
11688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11689 # Double-quote double-evaled strings.
11690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11699 *'\$0 --fallback-echo"')
11700 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11706 cat <<__EOF__ >> "$cfgfile"
11707 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11711 # Shell to use when invoking shell scripts.
11714 # Whether or not to build shared libraries.
11715 build_libtool_libs=$enable_shared
11717 # Whether or not to build static libraries.
11718 build_old_libs=$enable_static
11720 # Whether or not to add -lc for building shared libraries.
11721 build_libtool_need_lc=$archive_cmds_need_lc_RC
11723 # Whether or not to disallow shared libs when runtime libs are static
11724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11726 # Whether or not to optimize for fast installation.
11727 fast_install=$enable_fast_install
11730 host_alias=$host_alias
11734 # The build system.
11735 build_alias=$build_alias
11739 # An echo program that does not interpret backslashes.
11744 AR_FLAGS=$lt_AR_FLAGS
11749 # A language-specific compiler.
11752 # Is the compiler the GNU C compiler?
11758 # The linker used to build libraries.
11761 # Whether we need hard or soft links.
11764 # A BSD-compatible nm program.
11767 # A symbol stripping program
11770 # Used to examine libraries when file_magic_cmd begins "file"
11771 MAGIC_CMD=$MAGIC_CMD
11773 # Used on cygwin: DLL creation program.
11776 # Used on cygwin: object dumper.
11779 # Used on cygwin: assembler.
11782 # The name of the directory that contains temporary libtool files.
11785 # How to create reloadable object files.
11786 reload_flag=$lt_reload_flag
11787 reload_cmds=$lt_reload_cmds
11789 # How to pass a linker flag through the compiler.
11790 wl=$lt_lt_prog_compiler_wl_RC
11792 # Object file suffix (normally "o").
11793 objext="$ac_objext"
11795 # Old archive suffix (normally "a").
11798 # Shared library suffix (normally ".so").
11799 shrext_cmds='$shrext_cmds'
11801 # Executable file suffix (normally "").
11804 # Additional compiler flags for building library objects.
11805 pic_flag=$lt_lt_prog_compiler_pic_RC
11808 # What is the maximum length of a command?
11809 max_cmd_len=$lt_cv_sys_max_cmd_len
11811 # Does compiler simultaneously support -c and -o options?
11812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11814 # Must we lock files when doing compilation?
11815 need_locks=$lt_need_locks
11817 # Do we need the lib prefix for modules?
11818 need_lib_prefix=$need_lib_prefix
11820 # Do we need a version for libraries?
11821 need_version=$need_version
11823 # Whether dlopen is supported.
11824 dlopen_support=$enable_dlopen
11826 # Whether dlopen of programs is supported.
11827 dlopen_self=$enable_dlopen_self
11829 # Whether dlopen of statically linked programs is supported.
11830 dlopen_self_static=$enable_dlopen_self_static
11832 # Compiler flag to prevent dynamic linking.
11833 link_static_flag=$lt_lt_prog_compiler_static_RC
11835 # Compiler flag to turn off builtin functions.
11836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11838 # Compiler flag to allow reflexive dlopens.
11839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11841 # Compiler flag to generate shared objects directly from archives.
11842 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11844 # Compiler flag to generate thread-safe objects.
11845 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11847 # Library versioning type.
11848 version_type=$version_type
11850 # Format of library name prefix.
11851 libname_spec=$lt_libname_spec
11853 # List of archive names. First name is the real one, the rest are links.
11854 # The last name is the one that the linker finds with -lNAME.
11855 library_names_spec=$lt_library_names_spec
11857 # The coded name of the library, if different from the real name.
11858 soname_spec=$lt_soname_spec
11860 # Commands used to build and install an old-style archive.
11862 old_archive_cmds=$lt_old_archive_cmds_RC
11863 old_postinstall_cmds=$lt_old_postinstall_cmds
11864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11866 # Create an old-style archive from a shared archive.
11867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11869 # Create a temporary old-style archive to link instead of a shared archive.
11870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11872 # Commands used to build and install a shared archive.
11873 archive_cmds=$lt_archive_cmds_RC
11874 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11875 postinstall_cmds=$lt_postinstall_cmds
11876 postuninstall_cmds=$lt_postuninstall_cmds
11878 # Commands used to build a loadable module (assumed same as above if empty)
11879 module_cmds=$lt_module_cmds_RC
11880 module_expsym_cmds=$lt_module_expsym_cmds_RC
11882 # Commands to strip libraries.
11883 old_striplib=$lt_old_striplib
11884 striplib=$lt_striplib
11886 # Dependencies to place before the objects being linked to create a
11888 predep_objects=$lt_predep_objects_RC
11890 # Dependencies to place after the objects being linked to create a
11892 postdep_objects=$lt_postdep_objects_RC
11894 # Dependencies to place before the objects being linked to create a
11896 predeps=$lt_predeps_RC
11898 # Dependencies to place after the objects being linked to create a
11900 postdeps=$lt_postdeps_RC
11902 # The library search path used internally by the compiler when linking
11903 # a shared library.
11904 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11906 # Method to check whether dependent libraries are shared objects.
11907 deplibs_check_method=$lt_deplibs_check_method
11909 # Command to use when deplibs_check_method == file_magic.
11910 file_magic_cmd=$lt_file_magic_cmd
11912 # Flag that allows shared libraries with undefined symbols to be built.
11913 allow_undefined_flag=$lt_allow_undefined_flag_RC
11915 # Flag that forces no undefined symbols.
11916 no_undefined_flag=$lt_no_undefined_flag_RC
11918 # Commands used to finish a libtool library installation in a directory.
11919 finish_cmds=$lt_finish_cmds
11921 # Same as above, but a single script fragment to be evaled but not shown.
11922 finish_eval=$lt_finish_eval
11924 # Take the output of nm and produce a listing of raw symbols and C names.
11925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11927 # Transform the output of nm in a proper C declaration
11928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11930 # Transform the output of nm in a C name address pair
11931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11933 # This is the shared library runtime path variable.
11934 runpath_var=$runpath_var
11936 # This is the shared library path variable.
11937 shlibpath_var=$shlibpath_var
11939 # Is shlibpath searched before the hard-coded library search path?
11940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11942 # How to hardcode a shared library path into an executable.
11943 hardcode_action=$hardcode_action_RC
11945 # Whether we should hardcode library paths into libraries.
11946 hardcode_into_libs=$hardcode_into_libs
11948 # Flag to hardcode \$libdir into a binary during linking.
11949 # This must work even if \$libdir does not exist.
11950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11952 # If ld is used when linking, flag to hardcode \$libdir into
11953 # a binary during linking. This must work even if \$libdir does
11955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11957 # Whether we need a single -rpath flag with a separated argument.
11958 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11960 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11961 # resulting binary.
11962 hardcode_direct=$hardcode_direct_RC
11964 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11965 # resulting binary.
11966 hardcode_minus_L=$hardcode_minus_L_RC
11968 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11969 # the resulting binary.
11970 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11972 # Set to yes if building a shared library automatically hardcodes DIR into the library
11973 # and all subsequent libraries and executables linked against it.
11974 hardcode_automatic=$hardcode_automatic_RC
11976 # Variables whose values should be saved in libtool wrapper scripts and
11977 # restored at relink time.
11978 variables_saved_for_relink="$variables_saved_for_relink"
11980 # Whether libtool must link a program against all its dependency libraries.
11981 link_all_deplibs=$link_all_deplibs_RC
11983 # Compile-time system search path for libraries
11984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11986 # Run-time system search path for libraries
11987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11989 # Fix the shell variable \$srcfile for the compiler.
11990 fix_srcfile_path="$fix_srcfile_path_RC"
11992 # Set to yes if exported symbols are required.
11993 always_export_symbols=$always_export_symbols_RC
11995 # The commands to list exported symbols.
11996 export_symbols_cmds=$lt_export_symbols_cmds_RC
11998 # The commands to extract the exported symbol list from a shared archive.
11999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12001 # Symbols that should not be listed in the preloaded symbols.
12002 exclude_expsyms=$lt_exclude_expsyms_RC
12004 # Symbols that must always be exported.
12005 include_expsyms=$lt_include_expsyms_RC
12007 # ### END LIBTOOL TAG CONFIG: $tagname
12013 # If there is no Makefile yet, we rely on a make rule to execute
12014 # `config.status --recheck' to rerun these tests and create the
12015 # libtool script then.
12016 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12017 if test -f "$ltmain_in"; then
12018 test -f Makefile && make "$ltmain"
12024 ac_cpp='$CPP $CPPFLAGS'
12025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12034 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
12038 # Append the new tag name to the list of available tags.
12039 if test -n "$tagname" ; then
12040 available_tags="$available_tags $tagname"
12046 # Now substitute the updated list of available tags.
12047 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12048 mv "${ofile}T" "$ofile"
12052 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
12058 # This can be used to rebuild libtool when needed
12059 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12061 # Always use our own libtool.
12062 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12064 # Prevent multiple expansion
12076 if test $ol_enable_perl != no ; then
12077 # Extract the first word of "perl", so it can be a program name with args.
12078 set dummy perl; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if test "${ac_cv_path_PERLBIN+set}" = set; then :
12082 $as_echo_n "(cached) " >&6
12086 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090 for as_dir in $PATH
12093 test -z "$as_dir" && as_dir=.
12094 for ac_exec_ext in '' $ac_executable_extensions; do
12095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12096 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12108 PERLBIN=$ac_cv_path_PERLBIN
12109 if test -n "$PERLBIN"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
12111 $as_echo "$PERLBIN" >&6; }
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12119 if test "no$PERLBIN" = "no" ; then
12120 if test $ol_enable_perl = yes ; then
12121 as_fn_error "could not locate perl" "$LINENO" 5
12125 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12126 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12128 if test x"$ol_enable_perl" = "xyes" ; then
12129 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12131 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12138 ac_cpp='$CPP $CPPFLAGS'
12139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12143 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12144 # On Suns, sometimes $CPP names a directory.
12145 if test -n "$CPP" && test -d "$CPP"; then
12148 if test -z "$CPP"; then
12149 if test "${ac_cv_prog_CPP+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12152 # Double quotes because CPP needs to be expanded
12153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12155 ac_preproc_ok=false
12156 for ac_c_preproc_warn_flag in '' yes
12158 # Use a header file that comes with gcc, so configuring glibc
12159 # with a fresh cross-compiler works.
12160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12161 # <limits.h> exists even on freestanding compilers.
12162 # On the NeXT, cc -E runs the code through the compiler's parser,
12163 # not just through cpp. "Syntax error" is here to catch this case.
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 # include <limits.h>
12169 # include <assert.h>
12173 if ac_fn_c_try_cpp "$LINENO"; then :
12176 # Broken: fails on valid input.
12179 rm -f conftest.err conftest.$ac_ext
12181 # OK, works on sane cases. Now check whether nonexistent headers
12182 # can be detected and how.
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12185 #include <ac_nonexistent.h>
12187 if ac_fn_c_try_cpp "$LINENO"; then :
12188 # Broken: success on invalid input.
12191 # Passes both tests.
12195 rm -f conftest.err conftest.$ac_ext
12198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12199 rm -f conftest.err conftest.$ac_ext
12200 if $ac_preproc_ok; then :
12205 ac_cv_prog_CPP=$CPP
12208 CPP=$ac_cv_prog_CPP
12210 ac_cv_prog_CPP=$CPP
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12213 $as_echo "$CPP" >&6; }
12214 ac_preproc_ok=false
12215 for ac_c_preproc_warn_flag in '' yes
12217 # Use a header file that comes with gcc, so configuring glibc
12218 # with a fresh cross-compiler works.
12219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12220 # <limits.h> exists even on freestanding compilers.
12221 # On the NeXT, cc -E runs the code through the compiler's parser,
12222 # not just through cpp. "Syntax error" is here to catch this case.
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12226 # include <limits.h>
12228 # include <assert.h>
12232 if ac_fn_c_try_cpp "$LINENO"; then :
12235 # Broken: fails on valid input.
12238 rm -f conftest.err conftest.$ac_ext
12240 # OK, works on sane cases. Now check whether nonexistent headers
12241 # can be detected and how.
12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12244 #include <ac_nonexistent.h>
12246 if ac_fn_c_try_cpp "$LINENO"; then :
12247 # Broken: success on invalid input.
12250 # Passes both tests.
12254 rm -f conftest.err conftest.$ac_ext
12257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12258 rm -f conftest.err conftest.$ac_ext
12259 if $ac_preproc_ok; then :
12262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12264 as_fn_error "C preprocessor \"$CPP\" fails sanity check
12265 See \`config.log' for more details." "$LINENO" 5; }
12269 ac_cpp='$CPP $CPPFLAGS'
12270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
12275 $as_echo_n "checking whether we are using MS Visual C++... " >&6; }
12276 if test "${ol_cv_msvc+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12283 #include <__FOO__/generate_error.h>
12287 if ac_fn_c_try_cpp "$LINENO"; then :
12292 rm -f conftest.err conftest.$ac_ext
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
12295 $as_echo "$ol_cv_msvc" >&6; }
12298 *mingw32* ) ac_cv_mingw32=yes ;;
12299 *cygwin* ) ac_cv_cygwin=yes ;;
12300 *interix* ) ac_cv_interix=yes ;;
12306 cat >>confdefs.h <<_ACEOF
12307 #define EXEEXT "${EXEEXT}"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
12312 $as_echo_n "checking for be_app in -lbe... " >&6; }
12313 if test "${ac_cv_lib_be_be_app+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12316 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-lbe -lroot -lnet $LIBS"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12336 if ac_fn_c_try_link "$LINENO"; then :
12337 ac_cv_lib_be_be_app=yes
12339 ac_cv_lib_be_be_app=no
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
12346 $as_echo "$ac_cv_lib_be_be_app" >&6; }
12347 if test "x$ac_cv_lib_be_be_app" = x""yes; then :
12348 LIBS="$LIBS -lbe -lroot -lnet"
12355 ac_cpp='$CPP $CPPFLAGS'
12356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12359 if test -n "$ac_tool_prefix"; then
12360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12363 $as_echo_n "checking for $ac_word... " >&6; }
12364 if test "${ac_cv_prog_CC+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
12367 if test -n "$CC"; then
12368 ac_cv_prog_CC="$CC" # Let the user override the test.
12370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12374 test -z "$as_dir" && as_dir=.
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 if test -n "$CC"; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12390 $as_echo "$CC" >&6; }
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12398 if test -z "$ac_cv_prog_CC"; then
12400 # Extract the first word of "gcc", so it can be a program name with args.
12401 set dummy gcc; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12407 if test -n "$ac_ct_CC"; then
12408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12414 test -z "$as_dir" && as_dir=.
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12417 ac_cv_prog_ac_ct_CC="gcc"
12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12428 if test -n "$ac_ct_CC"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12430 $as_echo "$ac_ct_CC" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12436 if test "x$ac_ct_CC" = x; then
12439 case $cross_compiling:$ac_tool_warned in
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12443 ac_tool_warned=yes ;;
12448 CC="$ac_cv_prog_CC"
12451 if test -z "$CC"; then
12452 if test -n "$ac_tool_prefix"; then
12453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12454 set dummy ${ac_tool_prefix}cc; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if test "${ac_cv_prog_CC+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12460 if test -n "$CC"; then
12461 ac_cv_prog_CC="$CC" # Let the user override the test.
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470 ac_cv_prog_CC="${ac_tool_prefix}cc"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 if test -n "$CC"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12483 $as_echo "$CC" >&6; }
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12492 if test -z "$CC"; then
12493 # Extract the first word of "cc", so it can be a program name with args.
12494 set dummy cc; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if test "${ac_cv_prog_CC+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12500 if test -n "$CC"; then
12501 ac_cv_prog_CC="$CC" # Let the user override the test.
12503 ac_prog_rejected=no
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12512 ac_prog_rejected=yes
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 if test $ac_prog_rejected = yes; then
12524 # We found a bogon in the path, so make sure we never use it.
12525 set dummy $ac_cv_prog_CC
12527 if test $# != 0; then
12528 # We chose a different compiler from the bogus one.
12529 # However, it has the same basename, so the bogon will be chosen
12530 # first if we set CC to just the basename; use the full file name.
12532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12538 if test -n "$CC"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12540 $as_echo "$CC" >&6; }
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 $as_echo "no" >&6; }
12548 if test -z "$CC"; then
12549 if test -n "$ac_tool_prefix"; then
12550 for ac_prog in cl.exe
12552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if test "${ac_cv_prog_CC+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12559 if test -n "$CC"; then
12560 ac_cv_prog_CC="$CC" # Let the user override the test.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 if test -n "$CC"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12582 $as_echo "$CC" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12589 test -n "$CC" && break
12592 if test -z "$CC"; then
12594 for ac_prog in cl.exe
12596 # Extract the first word of "$ac_prog", so it can be a program name with args.
12597 set dummy $ac_prog; ac_word=$2
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599 $as_echo_n "checking for $ac_word... " >&6; }
12600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12601 $as_echo_n "(cached) " >&6
12603 if test -n "$ac_ct_CC"; then
12604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613 ac_cv_prog_ac_ct_CC="$ac_prog"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12624 if test -n "$ac_ct_CC"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12626 $as_echo "$ac_ct_CC" >&6; }
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12633 test -n "$ac_ct_CC" && break
12636 if test "x$ac_ct_CC" = x; then
12639 case $cross_compiling:$ac_tool_warned in
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12643 ac_tool_warned=yes ;;
12652 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12654 as_fn_error "no acceptable C compiler found in \$PATH
12655 See \`config.log' for more details." "$LINENO" 5; }
12657 # Provide some information about the compiler.
12658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12661 for ac_option in --version -v -V -qversion; do
12662 { { ac_try="$ac_compiler $ac_option >&5"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12668 $as_echo "$ac_try_echo"; } >&5
12669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12671 if test -s conftest.err; then
12673 ... rest of stderr output deleted ...
12674 10q' conftest.err >conftest.er1
12675 cat conftest.er1 >&5
12677 rm -f conftest.er1 conftest.err
12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12679 test $ac_status = 0; }
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12683 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12684 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12685 $as_echo_n "(cached) " >&6
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12701 if ac_fn_c_try_compile "$LINENO"; then :
12702 ac_compiler_gnu=yes
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12711 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12712 if test $ac_compiler_gnu = yes; then
12717 ac_test_CFLAGS=${CFLAGS+set}
12718 ac_save_CFLAGS=$CFLAGS
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12720 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12721 if test "${ac_cv_prog_cc_g+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
12724 ac_save_c_werror_flag=$ac_c_werror_flag
12725 ac_c_werror_flag=yes
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12739 if ac_fn_c_try_compile "$LINENO"; then :
12740 ac_cv_prog_cc_g=yes
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12754 if ac_fn_c_try_compile "$LINENO"; then :
12757 ac_c_werror_flag=$ac_save_c_werror_flag
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12770 if ac_fn_c_try_compile "$LINENO"; then :
12771 ac_cv_prog_cc_g=yes
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 ac_c_werror_flag=$ac_save_c_werror_flag
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12781 $as_echo "$ac_cv_prog_cc_g" >&6; }
12782 if test "$ac_test_CFLAGS" = set; then
12783 CFLAGS=$ac_save_CFLAGS
12784 elif test $ac_cv_prog_cc_g = yes; then
12785 if test "$GCC" = yes; then
12791 if test "$GCC" = yes; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12798 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12799 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12802 ac_cv_prog_cc_c89=no
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12806 #include <stdarg.h>
12808 #include <sys/types.h>
12809 #include <sys/stat.h>
12810 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12811 struct buf { int x; };
12812 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12813 static char *e (p, i)
12819 static char *f (char * (*g) (char **, int), char **p, ...)
12824 s = g (p, va_arg (v,int));
12829 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12830 function prototypes and stuff, but not '\xHH' hex character constants.
12831 These don't provoke an error unfortunately, instead are silently treated
12832 as 'x'. The following induces an error, until -std is added to get
12833 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12834 array size at least. It's necessary to write '\x00'==0 to get something
12835 that's true only with -std. */
12836 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12838 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12839 inside strings and character constants. */
12841 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12843 int test (int i, double x);
12844 struct s1 {int (*f) (int a);};
12845 struct s2 {int (*f) (double a);};
12846 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12852 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12857 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12858 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12860 CC="$ac_save_CC $ac_arg"
12861 if ac_fn_c_try_compile "$LINENO"; then :
12862 ac_cv_prog_cc_c89=$ac_arg
12864 rm -f core conftest.err conftest.$ac_objext
12865 test "x$ac_cv_prog_cc_c89" != "xno" && break
12867 rm -f conftest.$ac_ext
12872 case "x$ac_cv_prog_cc_c89" in
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12875 $as_echo "none needed" >&6; } ;;
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12878 $as_echo "unsupported" >&6; } ;;
12880 CC="$CC $ac_cv_prog_cc_c89"
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12882 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12884 if test "x$ac_cv_prog_cc_c89" != xno; then :
12889 ac_cpp='$CPP $CPPFLAGS'
12890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12894 depcc="$CC" am_compiler_list=
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12897 $as_echo_n "checking dependency style of $depcc... " >&6; }
12898 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12902 # We make a subdir and do the tests there. Otherwise we can end up
12903 # making bogus files that we don't know about and never remove. For
12904 # instance it was reported that on HP-UX the gcc test will end up
12905 # making a dummy file named `D' -- because `-MD' means `put the output
12908 # Copy depcomp to subdir because otherwise we won't find it if we're
12909 # using a relative directory.
12910 cp "$am_depcomp" conftest.dir
12912 # We will build objects and dependencies in a subdirectory because
12913 # it helps to detect inapplicable dependency modes. For instance
12914 # both Tru64's cc and ICC support -MD to output dependencies as a
12915 # side effect of compilation, but ICC will put the dependencies in
12916 # the current directory while Tru64 will put them in the object
12920 am_cv_CC_dependencies_compiler_type=none
12921 if test "$am_compiler_list" = ""; then
12922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12924 for depmode in $am_compiler_list; do
12925 # Setup a source with many dependencies, because some compilers
12926 # like to wrap large dependency lists on column 80 (with \), and
12927 # we should not choose a depcomp mode which is confused by this.
12929 # We need to recreate these files for each test, as the compiler may
12930 # overwrite some of them when testing with obscure command lines.
12931 # This happens at least with the AIX C compiler.
12933 for i in 1 2 3 4 5 6; do
12934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12935 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12936 # Solaris 8's {/usr,}/bin/sh.
12937 touch sub/conftst$i.h
12939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12943 # after this tag, mechanisms are not by side-effect, so they'll
12944 # only be used when explicitly requested
12945 if test "x$enable_dependency_tracking" = xyes; then
12953 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12954 # mode. It turns out that the SunPro C++ compiler does not properly
12955 # handle `-M -o', and we need to detect this.
12956 if depmode=$depmode \
12957 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12959 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12960 >/dev/null 2>conftest.err &&
12961 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12962 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12963 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12964 # icc doesn't choke on unknown options, it will just issue warnings
12965 # or remarks (even with -Werror). So we grep stderr for any message
12966 # that says an option was ignored or not supported.
12967 # When given -MP, icc 7.0 and 7.1 complain thusly:
12968 # icc: Command line warning: ignoring option '-M'; no argument required
12969 # The diagnosis changed in icc 8.0:
12970 # icc: Command line remark: option '-MP' not supported
12971 if (grep 'ignoring option' conftest.err ||
12972 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12973 am_cv_CC_dependencies_compiler_type=$depmode
12980 rm -rf conftest.dir
12982 am_cv_CC_dependencies_compiler_type=none
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12987 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12988 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12993 test "x$enable_dependency_tracking" != xno \
12994 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12995 am__fastdepCC_TRUE=
12996 am__fastdepCC_FALSE='#'
12998 am__fastdepCC_TRUE='#'
12999 am__fastdepCC_FALSE=
13003 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13004 as_fn_error "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
13007 # test for make depend flag
13010 if test -z "${MKDEP}"; then
13011 OL_MKDEP="${CC-cc}"
13012 if test -z "${MKDEP_FLAGS}"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
13014 $as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
13015 if test "${ol_cv_mkdep+set}" = set; then :
13016 $as_echo_n "(cached) " >&6
13020 for flag in "-M" "-xM"; do
13021 cat > conftest.c <<EOF
13024 if { ac_try='$OL_MKDEP $flag conftest.c'
13025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13026 (eval $ac_try) 2>&5
13028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13029 test $ac_status = 0; }; } \
13030 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13032 if test ! -f conftest."${ac_object}" ; then
13034 OL_MKDEP_FLAGS="$flag"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
13043 $as_echo "$ol_cv_mkdep" >&6; }
13044 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13047 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13051 OL_MKDEP="${MKDEP}"
13052 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13057 if test "${ol_cv_mkdep}" = no ; then
13058 # this will soon become an error
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
13060 $as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
13064 $as_echo_n "checking for afopen in -ls... " >&6; }
13065 if test "${ac_cv_lib_s_afopen+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
13068 ac_check_lib_save_LIBS=$LIBS
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13073 /* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13088 if ac_fn_c_try_link "$LINENO"; then :
13089 ac_cv_lib_s_afopen=yes
13091 ac_cv_lib_s_afopen=no
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095 LIBS=$ac_check_lib_save_LIBS
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
13098 $as_echo "$ac_cv_lib_s_afopen" >&6; }
13099 if test "x$ac_cv_lib_s_afopen" = x""yes; then :
13103 $as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
13111 ac_cv_func_getopt=no
13113 $as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
13119 WITH_MODULES_ENABLED=no
13120 if test $ol_enable_modules != no ; then
13121 for ac_header in ltdl.h
13123 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13124 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
13125 cat >>confdefs.h <<_ACEOF
13126 #define HAVE_LTDL_H 1
13134 if test $ac_cv_header_ltdl_h = no ; then
13135 as_fn_error "could not locate libtool ltdl.h" "$LINENO" 5
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
13139 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
13140 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
13141 $as_echo_n "(cached) " >&6
13143 ac_check_lib_save_LIBS=$LIBS
13144 LIBS="-lltdl $LIBS"
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13158 return lt_dlinit ();
13163 if ac_fn_c_try_link "$LINENO"; then :
13164 ac_cv_lib_ltdl_lt_dlinit=yes
13166 ac_cv_lib_ltdl_lt_dlinit=no
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13173 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13174 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
13176 MODULES_LIBS=-lltdl
13178 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
13184 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13185 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
13187 ol_link_modules=yes
13188 WITH_MODULES_ENABLED=yes
13191 for i in $Backends; do
13192 eval "ol_tmp=\$ol_enable_$i"
13193 if test $ol_tmp = mod ; then
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i backend" >&5
13195 $as_echo "$as_me: WARNING: building static $i backend" >&2;}
13196 eval "ol_enable_$i=yes"
13199 for i in $Overlays; do
13200 eval "ol_tmp=\$ol_enable_$i"
13201 if test $ol_tmp = mod ; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i overlay" >&5
13203 $as_echo "$as_me: WARNING: building static $i overlay" >&2;}
13204 eval "ol_enable_$i=yes"
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
13211 $as_echo_n "checking for EBCDIC... " >&6; }
13212 if test "${ol_cv_cpp_ebcdic+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13220 #include <__ASCII__/generate_error.h>
13224 if ac_fn_c_try_cpp "$LINENO"; then :
13225 ol_cv_cpp_ebcdic=yes
13227 ol_cv_cpp_ebcdic=no
13229 rm -f conftest.err conftest.$ac_ext
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
13232 $as_echo "$ol_cv_cpp_ebcdic" >&6; }
13233 if test $ol_cv_cpp_ebcdic = yes ; then
13235 $as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13240 $as_echo_n "checking for ANSI C header files... " >&6; }
13241 if test "${ol_cv_header_stdc+set}" = set; then :
13242 $as_echo_n "(cached) " >&6
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13246 #include <stdlib.h>
13247 #include <stdarg.h>
13248 #include <string.h>
13251 if ac_fn_c_try_cpp "$LINENO"; then :
13252 ol_cv_header_stdc=yes
13254 ol_cv_header_stdc=no
13256 rm -f conftest.err conftest.$ac_ext
13258 if test $ol_cv_header_stdc = yes; then
13259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include <string.h>
13265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13266 $EGREP "memchr" >/dev/null 2>&1; then :
13269 ol_cv_header_stdc=no
13275 if test $ol_cv_header_stdc = yes; then
13276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <stdlib.h>
13282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13283 $EGREP "free" >/dev/null 2>&1; then :
13286 ol_cv_header_stdc=no
13292 if test $ol_cv_header_stdc = yes; then
13293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13294 if test "$cross_compiling" = yes; then :
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13300 #ifndef HAVE_EBCDIC
13301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13304 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13305 || ('j' <= (c) && (c) <= 'r') \
13306 || ('s' <= (c) && (c) <= 'z'))
13307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13310 int main () { int i; for (i = 0; i < 256; i++)
13311 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13315 if ac_fn_c_try_run "$LINENO"; then :
13318 ol_cv_header_stdc=no
13320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13321 conftest.$ac_objext conftest.beam conftest.$ac_ext
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
13327 $as_echo "$ol_cv_header_stdc" >&6; }
13328 if test $ol_cv_header_stdc = yes; then
13329 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13332 ac_cv_header_stdc=disable
13335 if test $ol_cv_header_stdc != yes; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
13337 $as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13340 ac_header_dirent=no
13341 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13342 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13344 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13346 $as_echo_n "(cached) " >&6
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13350 #include <sys/types.h>
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363 eval "$as_ac_Header=yes"
13365 eval "$as_ac_Header=no"
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 eval ac_res=\$$as_ac_Header
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13371 $as_echo "$ac_res" >&6; }
13372 eval as_val=\$$as_ac_Header
13373 if test "x$as_val" = x""yes; then :
13374 cat >>confdefs.h <<_ACEOF
13375 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13378 ac_header_dirent=$ac_hdr; break
13382 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13383 if test $ac_header_dirent = dirent.h; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13385 $as_echo_n "checking for library containing opendir... " >&6; }
13386 if test "${ac_cv_search_opendir+set}" = set; then :
13387 $as_echo_n "(cached) " >&6
13389 ac_func_search_save_LIBS=$LIBS
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13408 for ac_lib in '' dir; do
13409 if test -z "$ac_lib"; then
13410 ac_res="none required"
13413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 ac_cv_search_opendir=$ac_res
13418 rm -f core conftest.err conftest.$ac_objext \
13420 if test "${ac_cv_search_opendir+set}" = set; then :
13424 if test "${ac_cv_search_opendir+set}" = set; then :
13427 ac_cv_search_opendir=no
13429 rm conftest.$ac_ext
13430 LIBS=$ac_func_search_save_LIBS
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13433 $as_echo "$ac_cv_search_opendir" >&6; }
13434 ac_res=$ac_cv_search_opendir
13435 if test "$ac_res" != no; then :
13436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13442 $as_echo_n "checking for library containing opendir... " >&6; }
13443 if test "${ac_cv_search_opendir+set}" = set; then :
13444 $as_echo_n "(cached) " >&6
13446 ac_func_search_save_LIBS=$LIBS
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13450 /* Override any GCC internal prototype to avoid an error.
13451 Use char because int might match the return type of a GCC
13452 builtin and then its argument prototype would still apply. */
13465 for ac_lib in '' x; do
13466 if test -z "$ac_lib"; then
13467 ac_res="none required"
13470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13472 if ac_fn_c_try_link "$LINENO"; then :
13473 ac_cv_search_opendir=$ac_res
13475 rm -f core conftest.err conftest.$ac_objext \
13477 if test "${ac_cv_search_opendir+set}" = set; then :
13481 if test "${ac_cv_search_opendir+set}" = set; then :
13484 ac_cv_search_opendir=no
13486 rm conftest.$ac_ext
13487 LIBS=$ac_func_search_save_LIBS
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13490 $as_echo "$ac_cv_search_opendir" >&6; }
13491 ac_res=$ac_cv_search_opendir
13492 if test "$ac_res" != no; then :
13493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13500 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13501 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506 #include <sys/types.h>
13507 #include <sys/wait.h>
13508 #ifndef WEXITSTATUS
13509 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13512 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13520 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13525 if ac_fn_c_try_compile "$LINENO"; then :
13526 ac_cv_header_sys_wait_h=yes
13528 ac_cv_header_sys_wait_h=no
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13533 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13534 if test $ac_cv_header_sys_wait_h = yes; then
13536 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13541 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13542 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
13543 $as_echo_n "(cached) " >&6
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547 #include <sys/types.h>
13548 #include <termios.h>
13554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13555 $EGREP "yes" >/dev/null 2>&1; then :
13556 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13558 ac_cv_sys_tiocgwinsz_in_termios_h=no
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13564 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13566 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13568 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13569 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 #include <sys/types.h>
13575 #include <sys/ioctl.h>
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582 $EGREP "yes" >/dev/null 2>&1; then :
13583 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13585 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13591 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13593 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13595 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13652 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13653 eval as_val=\$$as_ac_Header
13654 if test "x$as_val" = x""yes; then :
13655 cat >>confdefs.h <<_ACEOF
13656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13664 if test "$ac_cv_mingw32" = yes \
13665 -o "$ac_cv_interix" = yes \
13666 -o "$ol_cv_msvc" = yes
13668 for ac_header in winsock.h winsock2.h
13670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13671 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13672 eval as_val=\$$as_ac_Header
13673 if test "x$as_val" = x""yes; then :
13674 cat >>confdefs.h <<_ACEOF
13675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684 for ac_header in resolv.h
13686 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
13687 #include <netinet/in.h>
13690 if test "x$ac_cv_header_resolv_h" = x""yes; then :
13691 cat >>confdefs.h <<_ACEOF
13692 #define HAVE_RESOLV_H 1
13700 for ac_header in netinet/tcp.h
13702 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13703 #include <netinet/in.h>
13706 if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
13707 cat >>confdefs.h <<_ACEOF
13708 #define HAVE_NETINET_TCP_H 1
13716 for ac_header in sys/ucred.h
13718 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13719 #ifdef HAVE_SYS_PARAM_H
13720 #include <sys/param.h>
13724 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_SYS_UCRED_H 1
13735 for ac_func in sigaction sigset
13737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13738 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13739 eval as_val=\$$as_ac_var
13740 if test "x$as_val" = x""yes; then :
13741 cat >>confdefs.h <<_ACEOF
13742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13749 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
13751 $as_echo_n "checking for sigset in -lV3... " >&6; }
13752 if test "${ac_cv_lib_V3_sigset+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13755 ac_check_lib_save_LIBS=$LIBS
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13760 /* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13775 if ac_fn_c_try_link "$LINENO"; then :
13776 ac_cv_lib_V3_sigset=yes
13778 ac_cv_lib_V3_sigset=no
13780 rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13782 LIBS=$ac_check_lib_save_LIBS
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
13785 $as_echo "$ac_cv_lib_V3_sigset" >&6; }
13786 if test "x$ac_cv_lib_V3_sigset" = x""yes; then :
13787 cat >>confdefs.h <<_ACEOF
13788 #define HAVE_LIBV3 1
13797 if test $ol_cv_msvc = yes ; then
13801 if test "$ac_cv_header_winsock_h" = yes; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
13803 $as_echo_n "checking for winsock... " >&6; }
13804 if test "${ol_cv_winsock+set}" = set; then :
13805 $as_echo_n "(cached) " >&6
13809 for curlib in none ws2_32 wsock32; do
13810 if test $curlib != none ; then
13811 LIBS="$save_LIBS -l$curlib"
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13815 #include <winsock.h>
13822 select(0,NULL,NULL,NULL,NULL);
13824 gethostname(NULL,0);
13830 if ac_fn_c_try_link "$LINENO"; then :
13831 ol_cv_winsock=$curlib
13835 rm -f core conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13838 test "$ol_cv_winsock" != no && break
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
13844 $as_echo "$ol_cv_winsock" >&6; }
13846 if test $ol_cv_winsock != no ; then
13848 $as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
13850 ac_cv_func_socket=yes
13851 ac_cv_func_select=yes
13852 ac_cv_func_closesocket=yes
13853 ac_cv_func_gethostname=yes
13855 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
13856 LIBS="$LIBS -l$ol_cv_winsock"
13859 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
13861 $as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
13868 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13869 if test "x$ac_cv_func_socket" = x""yes; then :
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13874 $as_echo_n "checking for main in -lsocket... " >&6; }
13875 if test "${ac_cv_lib_socket_main+set}" = set; then :
13876 $as_echo_n "(cached) " >&6
13878 ac_check_lib_save_LIBS=$LIBS
13879 LIBS="-lsocket $LIBS"
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 ac_cv_lib_socket_main=yes
13895 ac_cv_lib_socket_main=no
13897 rm -f core conftest.err conftest.$ac_objext \
13898 conftest$ac_exeext conftest.$ac_ext
13899 LIBS=$ac_check_lib_save_LIBS
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13902 $as_echo "$ac_cv_lib_socket_main" >&6; }
13903 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13904 cat >>confdefs.h <<_ACEOF
13905 #define HAVE_LIBSOCKET 1
13908 LIBS="-lsocket $LIBS"
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnet" >&5
13913 $as_echo_n "checking for main in -lnet... " >&6; }
13914 if test "${ac_cv_lib_net_main+set}" = set; then :
13915 $as_echo_n "(cached) " >&6
13917 ac_check_lib_save_LIBS=$LIBS
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13931 if ac_fn_c_try_link "$LINENO"; then :
13932 ac_cv_lib_net_main=yes
13934 ac_cv_lib_net_main=no
13936 rm -f core conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_main" >&5
13941 $as_echo "$ac_cv_lib_net_main" >&6; }
13942 if test "x$ac_cv_lib_net_main" = x""yes; then :
13943 cat >>confdefs.h <<_ACEOF
13944 #define HAVE_LIBNET 1
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
13952 $as_echo_n "checking for main in -lnsl_s... " >&6; }
13953 if test "${ac_cv_lib_nsl_s_main+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13956 ac_check_lib_save_LIBS=$LIBS
13957 LIBS="-lnsl_s $LIBS"
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13970 if ac_fn_c_try_link "$LINENO"; then :
13971 ac_cv_lib_nsl_s_main=yes
13973 ac_cv_lib_nsl_s_main=no
13975 rm -f core conftest.err conftest.$ac_objext \
13976 conftest$ac_exeext conftest.$ac_ext
13977 LIBS=$ac_check_lib_save_LIBS
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
13980 $as_echo "$ac_cv_lib_nsl_s_main" >&6; }
13981 if test "x$ac_cv_lib_nsl_s_main" = x""yes; then :
13982 cat >>confdefs.h <<_ACEOF
13983 #define HAVE_LIBNSL_S 1
13986 LIBS="-lnsl_s $LIBS"
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13991 $as_echo_n "checking for main in -lnsl... " >&6; }
13992 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13995 ac_check_lib_save_LIBS=$LIBS
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14009 if ac_fn_c_try_link "$LINENO"; then :
14010 ac_cv_lib_nsl_main=yes
14012 ac_cv_lib_nsl_main=no
14014 rm -f core conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
14016 LIBS=$ac_check_lib_save_LIBS
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14019 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14020 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14021 cat >>confdefs.h <<_ACEOF
14022 #define HAVE_LIBNSL 1
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
14030 $as_echo_n "checking for socket in -linet... " >&6; }
14031 if test "${ac_cv_lib_inet_socket+set}" = set; then :
14032 $as_echo_n "(cached) " >&6
14034 ac_check_lib_save_LIBS=$LIBS
14035 LIBS="-linet $LIBS"
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14039 /* Override any GCC internal prototype to avoid an error.
14040 Use char because int might match the return type of a GCC
14041 builtin and then its argument prototype would still apply. */
14054 if ac_fn_c_try_link "$LINENO"; then :
14055 ac_cv_lib_inet_socket=yes
14057 ac_cv_lib_inet_socket=no
14059 rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14061 LIBS=$ac_check_lib_save_LIBS
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
14064 $as_echo "$ac_cv_lib_inet_socket" >&6; }
14065 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
14066 cat >>confdefs.h <<_ACEOF
14067 #define HAVE_LIBINET 1
14070 LIBS="-linet $LIBS"
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
14075 $as_echo_n "checking for main in -lgen... " >&6; }
14076 if test "${ac_cv_lib_gen_main+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14079 ac_check_lib_save_LIBS=$LIBS
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14093 if ac_fn_c_try_link "$LINENO"; then :
14094 ac_cv_lib_gen_main=yes
14096 ac_cv_lib_gen_main=no
14098 rm -f core conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
14103 $as_echo "$ac_cv_lib_gen_main" >&6; }
14104 if test "x$ac_cv_lib_gen_main" = x""yes; then :
14105 cat >>confdefs.h <<_ACEOF
14106 #define HAVE_LIBGEN 1
14117 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14118 if test "x$ac_cv_func_select" = x""yes; then :
14121 as_fn_error "select() required." "$LINENO" 5
14125 if test "${ac_cv_header_winsock_h}" != yes; then
14126 for ac_header in sys/select.h sys/socket.h
14128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14129 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14130 eval as_val=\$$as_ac_Header
14131 if test "x$as_val" = x""yes; then :
14132 cat >>confdefs.h <<_ACEOF
14133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14141 $as_echo_n "checking types of arguments for select... " >&6; }
14142 if test "${ac_cv_func_select_args+set}" = set; then :
14143 $as_echo_n "(cached) " >&6
14145 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14146 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14147 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 $ac_includes_default
14151 #ifdef HAVE_SYS_SELECT_H
14152 # include <sys/select.h>
14154 #ifdef HAVE_SYS_SOCKET_H
14155 # include <sys/socket.h>
14161 extern int select ($ac_arg1,
14162 $ac_arg234, $ac_arg234, $ac_arg234,
14168 if ac_fn_c_try_compile "$LINENO"; then :
14169 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 # Provide a safe default value.
14176 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14180 $as_echo "$ac_cv_func_select_args" >&6; }
14181 ac_save_IFS=$IFS; IFS=','
14182 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14186 cat >>confdefs.h <<_ACEOF
14187 #define SELECT_TYPE_ARG1 $1
14191 cat >>confdefs.h <<_ACEOF
14192 #define SELECT_TYPE_ARG234 ($2)
14196 cat >>confdefs.h <<_ACEOF
14197 #define SELECT_TYPE_ARG5 ($3)
14205 for ac_func in poll
14207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14209 eval as_val=\$$as_ac_var
14210 if test "x$as_val" = x""yes; then :
14211 cat >>confdefs.h <<_ACEOF
14212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14218 if test $ac_cv_func_poll = yes; then
14219 for ac_header in poll.h sys/poll.h
14221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14222 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14223 eval as_val=\$$as_ac_Header
14224 if test "x$as_val" = x""yes; then :
14225 cat >>confdefs.h <<_ACEOF
14226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14235 for ac_header in sys/epoll.h
14237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14238 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14239 eval as_val=\$$as_ac_Header
14240 if test "x$as_val" = x""yes; then :
14241 cat >>confdefs.h <<_ACEOF
14242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14249 if test "${ac_cv_header_sys_epoll_h}" = yes; then
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14251 $as_echo_n "checking for epoll system call... " >&6; }
14252 if test "$cross_compiling" = yes; then :
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254 $as_echo "no" >&6; }
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14258 int main(int argc, char **argv)
14260 int epfd = epoll_create(256);
14261 exit (epfd == -1 ? 1 : 0);
14264 if ac_fn_c_try_run "$LINENO"; then :
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14266 $as_echo "yes" >&6; }
14268 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14275 conftest.$ac_objext conftest.beam conftest.$ac_ext
14280 for ac_header in sys/devpoll.h
14282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14283 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14284 eval as_val=\$$as_ac_Header
14285 if test "x$as_val" = x""yes; then :
14286 cat >>confdefs.h <<_ACEOF
14287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14294 if test "${ac_cv_header_sys_devpoll_h}" = yes \
14295 -a "${ac_cv_header_poll_h}" = yes ; \
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14298 $as_echo_n "checking for /dev/poll... " >&6; }
14299 if test "$cross_compiling" = yes; then :
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301 $as_echo "no" >&6; }
14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14305 int main(int argc, char **argv)
14307 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
14308 exit (devpollfd == -1 ? 1 : 0);
14311 if ac_fn_c_try_run "$LINENO"; then :
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14313 $as_echo "yes" >&6; }
14315 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14322 conftest.$ac_objext conftest.beam conftest.$ac_ext
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14328 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14329 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14330 $as_echo_n "(cached) " >&6
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14337 #include <sys/types.h>
14340 #include <stdlib.h>
14345 char *c = (char *) *sys_errlist
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351 ol_cv_dcl_sys_errlist=yes
14352 ol_cv_have_sys_errlist=yes
14354 ol_cv_dcl_sys_errlist=no
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14359 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14361 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14362 if test $ol_cv_dcl_sys_errlist = no ; then
14364 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14368 $as_echo_n "checking existence of sys_errlist... " >&6; }
14369 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14370 $as_echo_n "(cached) " >&6
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14379 char *c = (char *) *sys_errlist
14384 if ac_fn_c_try_link "$LINENO"; then :
14385 ol_cv_have_sys_errlist=yes
14387 ol_cv_have_sys_errlist=no
14389 rm -f core conftest.err conftest.$ac_objext \
14390 conftest$ac_exeext conftest.$ac_ext
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14393 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14395 if test $ol_cv_have_sys_errlist = yes ; then
14397 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14400 for ac_func in strerror strerror_r
14402 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14403 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14404 eval as_val=\$$as_ac_var
14405 if test "x$as_val" = x""yes; then :
14406 cat >>confdefs.h <<_ACEOF
14407 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14413 ol_cv_func_strerror_r=no
14414 if test "${ac_cv_func_strerror_r}" = yes ; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
14416 $as_echo_n "checking non-posix strerror_r... " >&6; }
14417 if test "${ol_cv_nonposix_strerror_r+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423 #include <string.h>
14425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14426 $EGREP "strerror_r" >/dev/null 2>&1; then :
14427 ol_decl_strerror_r=yes
14429 ol_decl_strerror_r=no
14433 if test $ol_decl_strerror_r = yes ; then
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14436 #include <string.h>
14440 /* from autoconf 2.59 */
14442 char x = *strerror_r (0, buf, sizeof buf);
14443 char *p = strerror_r (0, buf, sizeof buf);
14449 if ac_fn_c_try_compile "$LINENO"; then :
14450 ol_cv_nonposix_strerror_r=yes
14452 ol_cv_nonposix_strerror_r=no
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456 if test "$cross_compiling" = yes; then :
14457 ol_cv_nonposix_strerror=no
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14465 strerror_r( 1, buf, sizeof buf );
14466 exit( buf[0] == 0 );
14470 if ac_fn_c_try_run "$LINENO"; then :
14471 ol_cv_nonposix_strerror_r=yes
14473 ol_cv_nonposix_strerror=no
14475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14476 conftest.$ac_objext conftest.beam conftest.$ac_ext
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
14483 $as_echo "$ol_cv_nonposix_strerror_r" >&6; }
14484 if test $ol_cv_nonposix_strerror_r = yes ; then
14486 $as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
14490 elif test "${ac_cv_func_strerror}" = no ; then
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14492 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14493 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14494 $as_echo_n "(cached) " >&6
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14501 #include <sys/types.h>
14504 #include <stdlib.h>
14509 char *c = (char *) *sys_errlist
14514 if ac_fn_c_try_compile "$LINENO"; then :
14515 ol_cv_dcl_sys_errlist=yes
14516 ol_cv_have_sys_errlist=yes
14518 ol_cv_dcl_sys_errlist=no
14520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14523 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14525 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14526 if test $ol_cv_dcl_sys_errlist = no ; then
14528 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14532 $as_echo_n "checking existence of sys_errlist... " >&6; }
14533 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14534 $as_echo_n "(cached) " >&6
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14543 char *c = (char *) *sys_errlist
14548 if ac_fn_c_try_link "$LINENO"; then :
14549 ol_cv_have_sys_errlist=yes
14551 ol_cv_have_sys_errlist=no
14553 rm -f core conftest.err conftest.$ac_objext \
14554 conftest$ac_exeext conftest.$ac_ext
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14557 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14559 if test $ol_cv_have_sys_errlist = yes ; then
14561 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14568 for ac_header in regex.h
14570 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
14571 #ifdef HAVE_SYS_TYPES_H
14572 #include <sys/types.h>
14576 if test "x$ac_cv_header_regex_h" = x""yes; then :
14577 cat >>confdefs.h <<_ACEOF
14578 #define HAVE_REGEX_H 1
14586 if test "$ac_cv_header_regex_h" != yes ; then
14587 as_fn_error "POSIX regex.h required." "$LINENO" 5
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
14590 $as_echo_n "checking for library containing regfree... " >&6; }
14591 if test "${ac_cv_search_regfree+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14594 ac_func_search_save_LIBS=$LIBS
14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14598 /* Override any GCC internal prototype to avoid an error.
14599 Use char because int might match the return type of a GCC
14600 builtin and then its argument prototype would still apply. */
14613 for ac_lib in '' regex gnuregex; do
14614 if test -z "$ac_lib"; then
14615 ac_res="none required"
14618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14620 if ac_fn_c_try_link "$LINENO"; then :
14621 ac_cv_search_regfree=$ac_res
14623 rm -f core conftest.err conftest.$ac_objext \
14625 if test "${ac_cv_search_regfree+set}" = set; then :
14629 if test "${ac_cv_search_regfree+set}" = set; then :
14632 ac_cv_search_regfree=no
14634 rm conftest.$ac_ext
14635 LIBS=$ac_func_search_save_LIBS
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
14638 $as_echo "$ac_cv_search_regfree" >&6; }
14639 ac_res=$ac_cv_search_regfree
14640 if test "$ac_res" != no; then :
14641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14644 as_fn_error "POSIX regex required." "$LINENO" 5
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
14650 $as_echo_n "checking for compatible POSIX regex... " >&6; }
14651 if test "${ol_cv_c_posix_regex+set}" = set; then :
14652 $as_echo_n "(cached) " >&6
14655 if test "$cross_compiling" = yes; then :
14656 ol_cv_c_posix_regex=cross
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14661 #include <sys/types.h>
14663 static char *pattern, *string;
14671 if(regcomp(&re, pattern, 0)) {
14675 string = "ALL MATCH";
14677 rc = regexec(&re, string, 0, (void*)0, 0);
14684 if ac_fn_c_try_run "$LINENO"; then :
14685 ol_cv_c_posix_regex=yes
14687 ol_cv_c_posix_regex=no
14689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14690 conftest.$ac_objext conftest.beam conftest.$ac_ext
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
14695 $as_echo "$ol_cv_c_posix_regex" >&6; }
14697 if test "$ol_cv_c_posix_regex" = no ; then
14698 as_fn_error "broken POSIX regex!" "$LINENO" 5
14703 for ac_header in sys/uuid.h
14705 ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
14706 if test "x$ac_cv_header_sys_uuid_h" = x""yes; then :
14707 cat >>confdefs.h <<_ACEOF
14708 #define HAVE_SYS_UUID_H 1
14715 if test $ac_cv_header_sys_uuid_h = yes ; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
14718 $as_echo_n "checking for library containing uuid_to_str... " >&6; }
14719 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14720 $as_echo_n "(cached) " >&6
14722 ac_func_search_save_LIBS=$LIBS
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14726 /* Override any GCC internal prototype to avoid an error.
14727 Use char because int might match the return type of a GCC
14728 builtin and then its argument prototype would still apply. */
14732 char uuid_to_str ();
14736 return uuid_to_str ();
14741 for ac_lib in '' uuid; do
14742 if test -z "$ac_lib"; then
14743 ac_res="none required"
14746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14748 if ac_fn_c_try_link "$LINENO"; then :
14749 ac_cv_search_uuid_to_str=$ac_res
14751 rm -f core conftest.err conftest.$ac_objext \
14753 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14757 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14760 ac_cv_search_uuid_to_str=no
14762 rm conftest.$ac_ext
14763 LIBS=$ac_func_search_save_LIBS
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
14766 $as_echo "$ac_cv_search_uuid_to_str" >&6; }
14767 ac_res=$ac_cv_search_uuid_to_str
14768 if test "$ac_res" != no; then :
14769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
14776 $as_echo_n "checking for library containing uuid_create... " >&6; }
14777 if test "${ac_cv_search_uuid_create+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14780 ac_func_search_save_LIBS=$LIBS
14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14784 /* Override any GCC internal prototype to avoid an error.
14785 Use char because int might match the return type of a GCC
14786 builtin and then its argument prototype would still apply. */
14790 char uuid_create ();
14794 return uuid_create ();
14799 for ac_lib in '' uuid; do
14800 if test -z "$ac_lib"; then
14801 ac_res="none required"
14804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14806 if ac_fn_c_try_link "$LINENO"; then :
14807 ac_cv_search_uuid_create=$ac_res
14809 rm -f core conftest.err conftest.$ac_objext \
14811 if test "${ac_cv_search_uuid_create+set}" = set; then :
14815 if test "${ac_cv_search_uuid_create+set}" = set; then :
14818 ac_cv_search_uuid_create=no
14820 rm conftest.$ac_ext
14821 LIBS=$ac_func_search_save_LIBS
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
14824 $as_echo "$ac_cv_search_uuid_create" >&6; }
14825 ac_res=$ac_cv_search_uuid_create
14826 if test "$ac_res" != no; then :
14827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14835 if test $have_uuid = yes ; then
14837 $as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
14840 test "$ac_cv_search_uuid_to_str" = "none required" || \
14841 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
14845 if test $have_uuid = no ; then
14846 for ac_header in uuid/uuid.h
14848 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14849 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_UUID_UUID_H 1
14858 if test $ac_cv_header_uuid_uuid_h = yes ; then
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
14861 $as_echo_n "checking for library containing uuid_generate... " >&6; }
14862 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14865 ac_func_search_save_LIBS=$LIBS
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14869 /* Override any GCC internal prototype to avoid an error.
14870 Use char because int might match the return type of a GCC
14871 builtin and then its argument prototype would still apply. */
14875 char uuid_generate ();
14879 return uuid_generate ();
14884 for ac_lib in '' uuid; do
14885 if test -z "$ac_lib"; then
14886 ac_res="none required"
14889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14891 if ac_fn_c_try_link "$LINENO"; then :
14892 ac_cv_search_uuid_generate=$ac_res
14894 rm -f core conftest.err conftest.$ac_objext \
14896 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14900 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14903 ac_cv_search_uuid_generate=no
14905 rm conftest.$ac_ext
14906 LIBS=$ac_func_search_save_LIBS
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
14909 $as_echo "$ac_cv_search_uuid_generate" >&6; }
14910 ac_res=$ac_cv_search_uuid_generate
14911 if test "$ac_res" != no; then :
14912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
14919 $as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
14920 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
14921 $as_echo_n "(cached) " >&6
14923 ac_func_search_save_LIBS=$LIBS
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14927 /* Override any GCC internal prototype to avoid an error.
14928 Use char because int might match the return type of a GCC
14929 builtin and then its argument prototype would still apply. */
14933 char uuid_unparse_lower ();
14937 return uuid_unparse_lower ();
14942 for ac_lib in '' uuid; do
14943 if test -z "$ac_lib"; then
14944 ac_res="none required"
14947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14949 if ac_fn_c_try_link "$LINENO"; then :
14950 ac_cv_search_uuid_unparse_lower=$ac_res
14952 rm -f core conftest.err conftest.$ac_objext \
14954 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
14958 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
14961 ac_cv_search_uuid_unparse_lower=no
14963 rm conftest.$ac_ext
14964 LIBS=$ac_func_search_save_LIBS
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
14967 $as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
14968 ac_res=$ac_cv_search_uuid_unparse_lower
14969 if test "$ac_res" != no; then :
14970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14978 if test $have_uuid = yes ; then
14980 $as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
14983 test "$ac_cv_search_uuid_generate" = "none required" || \
14984 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
14989 if test $have_uuid = no ; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
14991 $as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
14993 LIBS="$LIBS -lrpcrt4"
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14997 int __stdcall UuidCreate(void *);
14998 int __stdcall UuidToStringA(void *,void **);
15005 UuidToStringA(0,0);
15011 if ac_fn_c_try_link "$LINENO"; then :
15016 rm -f core conftest.err conftest.$ac_objext \
15017 conftest$ac_exeext conftest.$ac_ext
15018 if test $need_rpcrt = yes; then
15019 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
15023 $as_echo "$need_rpcrt" >&6; }
15026 ol_cv_lib_resolver=no
15027 if test $ol_cv_lib_resolver = no ; then
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
15029 $as_echo_n "checking for resolver link (default)... " >&6; }
15030 if test "${ol_cv_resolver_none+set}" = set; then :
15031 $as_echo_n "(cached) " >&6
15036 LIBS="$ol_RESOLVER_LIB $LIBS"
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15041 #ifdef HAVE_SYS_TYPES_H
15042 # include <sys/types.h>
15044 #include <netinet/in.h>
15045 #ifdef HAVE_ARPA_NAMESER_H
15046 # include <arpa/nameser.h>
15048 #ifdef HAVE_RESOLV_H
15049 # include <resolv.h>
15057 char *request = NULL;
15058 unsigned char reply[64*1024];
15059 unsigned char host[64*1024];
15063 /* Bind 8/9 interface */
15064 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15066 /* Bind 4 interface */
15070 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15074 /* Bind 8/9 interface */
15076 #elif defined(HFIXEDSZ)
15077 /* Bind 4 interface w/ HFIXEDSZ */
15080 /* Bind 4 interface w/o HFIXEDSZ */
15081 p += sizeof(HEADER);
15083 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15089 if ac_fn_c_try_link "$LINENO"; then :
15090 ol_cv_resolver_none=yes
15092 ol_cv_resolver_none=no
15094 rm -f core conftest.err conftest.$ac_objext \
15095 conftest$ac_exeext conftest.$ac_ext
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
15101 $as_echo "$ol_cv_resolver_none" >&6; }
15103 if test $ol_cv_resolver_none = yes ; then
15104 ol_cv_lib_resolver=yes
15108 if test $ol_cv_lib_resolver = no ; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
15110 $as_echo_n "checking for resolver link (-lresolv)... " >&6; }
15111 if test "${ol_cv_resolver_resolv+set}" = set; then :
15112 $as_echo_n "(cached) " >&6
15115 ol_RESOLVER_LIB=-lresolv
15117 LIBS="$ol_RESOLVER_LIB $LIBS"
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15122 #ifdef HAVE_SYS_TYPES_H
15123 # include <sys/types.h>
15125 #include <netinet/in.h>
15126 #ifdef HAVE_ARPA_NAMESER_H
15127 # include <arpa/nameser.h>
15129 #ifdef HAVE_RESOLV_H
15130 # include <resolv.h>
15138 char *request = NULL;
15139 unsigned char reply[64*1024];
15140 unsigned char host[64*1024];
15144 /* Bind 8/9 interface */
15145 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15147 /* Bind 4 interface */
15151 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15155 /* Bind 8/9 interface */
15157 #elif defined(HFIXEDSZ)
15158 /* Bind 4 interface w/ HFIXEDSZ */
15161 /* Bind 4 interface w/o HFIXEDSZ */
15162 p += sizeof(HEADER);
15164 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15170 if ac_fn_c_try_link "$LINENO"; then :
15171 ol_cv_resolver_resolv=yes
15173 ol_cv_resolver_resolv=no
15175 rm -f core conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext conftest.$ac_ext
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
15182 $as_echo "$ol_cv_resolver_resolv" >&6; }
15184 if test $ol_cv_resolver_resolv = yes ; then
15185 ol_cv_lib_resolver=-lresolv
15189 if test $ol_cv_lib_resolver = no ; then
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
15191 $as_echo_n "checking for resolver link (-lbind)... " >&6; }
15192 if test "${ol_cv_resolver_bind+set}" = set; then :
15193 $as_echo_n "(cached) " >&6
15196 ol_RESOLVER_LIB=-lbind
15198 LIBS="$ol_RESOLVER_LIB $LIBS"
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15203 #ifdef HAVE_SYS_TYPES_H
15204 # include <sys/types.h>
15206 #include <netinet/in.h>
15207 #ifdef HAVE_ARPA_NAMESER_H
15208 # include <arpa/nameser.h>
15210 #ifdef HAVE_RESOLV_H
15211 # include <resolv.h>
15219 char *request = NULL;
15220 unsigned char reply[64*1024];
15221 unsigned char host[64*1024];
15225 /* Bind 8/9 interface */
15226 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15228 /* Bind 4 interface */
15232 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15236 /* Bind 8/9 interface */
15238 #elif defined(HFIXEDSZ)
15239 /* Bind 4 interface w/ HFIXEDSZ */
15242 /* Bind 4 interface w/o HFIXEDSZ */
15243 p += sizeof(HEADER);
15245 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15251 if ac_fn_c_try_link "$LINENO"; then :
15252 ol_cv_resolver_bind=yes
15254 ol_cv_resolver_bind=no
15256 rm -f core conftest.err conftest.$ac_objext \
15257 conftest$ac_exeext conftest.$ac_ext
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
15263 $as_echo "$ol_cv_resolver_bind" >&6; }
15265 if test $ol_cv_resolver_bind = yes ; then
15266 ol_cv_lib_resolver=-lbind
15273 if test "$ol_cv_lib_resolver" != no ; then
15275 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
15278 if test "$ol_enable_dnssrv" != no ; then
15282 if test "$ol_cv_lib_resolver" != yes ; then
15283 LIBS="$ol_cv_lib_resolver $LIBS"
15287 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
15288 if test "$ol_link_dnssrv" = no ; then
15289 as_fn_error "DNSSRV requires res_query()" "$LINENO" 5
15292 ol_enable_dnssrv=no
15295 for ac_func in hstrerror
15297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15299 eval as_val=\$$as_ac_var
15300 if test "x$as_val" = x""yes; then :
15301 cat >>confdefs.h <<_ACEOF
15302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15309 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
15311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15312 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15313 eval as_val=\$$as_ac_var
15314 if test "x$as_val" = x""yes; then :
15315 cat >>confdefs.h <<_ACEOF
15316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15324 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
15325 if test $ol_enable_ipv6 = yes ; then
15326 as_fn_error "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
15328 elif test $ol_enable_ipv6 != no ; then
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
15330 $as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
15331 if test "${ol_cv_inet6_addrstrlen+set}" = set; then :
15332 $as_echo_n "(cached) " >&6
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15338 # include <netinet/in.h>
15339 # ifdef INET6_ADDRSTRLEN
15340 __has_inet6_addrstrlen__;
15344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15345 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
15346 ol_cv_inet6_addrstrlen=yes
15348 ol_cv_inet6_addrstrlen=no
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
15354 $as_echo "$ol_cv_inet6_addrstrlen" >&6; }
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
15358 $as_echo_n "checking struct sockaddr_storage... " >&6; }
15359 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then :
15360 $as_echo_n "(cached) " >&6
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15366 #include <sys/types.h>
15367 #include <sys/socket.h>
15373 struct sockaddr_storage ss;
15379 if ac_fn_c_try_compile "$LINENO"; then :
15380 ol_cv_struct_sockaddr_storage=yes
15382 ol_cv_struct_sockaddr_storage=no
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
15387 $as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
15389 if test $ol_cv_inet6_addrstrlen = yes &&
15390 test $ol_cv_struct_sockaddr_storage = yes ; then
15392 elif test $ol_enable_ipv6 = yes &&
15393 test $ol_cv_inet6_addrstrlen = no ; then
15394 as_fn_error "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
15395 elif test $ol_enable_ipv6 = yes &&
15396 test $ol_cv_struct_sockaddr_storage = no ; then
15397 as_fn_error "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
15401 if test $ol_enable_local != no ; then
15402 for ac_header in sys/un.h
15404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15405 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15406 eval as_val=\$$as_ac_Header
15407 if test "x$as_val" = x""yes; then :
15408 cat >>confdefs.h <<_ACEOF
15409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15417 if test $ol_enable_local = auto ; then
15418 ol_enable_local=$ac_cv_header_sys_un_h
15419 elif test $ac_cv_header_sys_un_h = no ; then
15420 as_fn_error "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
15425 if test $ol_with_tls = yes ; then
15430 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
15431 for ac_header in openssl/ssl.h
15433 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15434 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
15435 cat >>confdefs.h <<_ACEOF
15436 #define HAVE_OPENSSL_SSL_H 1
15444 if test $ac_cv_header_openssl_ssl_h = yes ; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
15446 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
15447 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
15448 $as_echo_n "(cached) " >&6
15450 ac_check_lib_save_LIBS=$LIBS
15451 LIBS="-lssl -lcrypto $LIBS"
15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h. */
15455 /* Override any GCC internal prototype to avoid an error.
15456 Use char because int might match the return type of a GCC
15457 builtin and then its argument prototype would still apply. */
15461 char SSL_library_init ();
15465 return SSL_library_init ();
15470 if ac_fn_c_try_link "$LINENO"; then :
15471 ac_cv_lib_ssl_SSL_library_init=yes
15473 ac_cv_lib_ssl_SSL_library_init=no
15475 rm -f core conftest.err conftest.$ac_objext \
15476 conftest$ac_exeext conftest.$ac_ext
15477 LIBS=$ac_check_lib_save_LIBS
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
15480 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
15481 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
15489 if test $have_openssl = no ; then
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl3_accept in -lssl" >&5
15491 $as_echo_n "checking for ssl3_accept in -lssl... " >&6; }
15492 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then :
15493 $as_echo_n "(cached) " >&6
15495 ac_check_lib_save_LIBS=$LIBS
15496 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15500 /* Override any GCC internal prototype to avoid an error.
15501 Use char because int might match the return type of a GCC
15502 builtin and then its argument prototype would still apply. */
15506 char ssl3_accept ();
15510 return ssl3_accept ();
15515 if ac_fn_c_try_link "$LINENO"; then :
15516 ac_cv_lib_ssl_ssl3_accept=yes
15518 ac_cv_lib_ssl_ssl3_accept=no
15520 rm -f core conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15522 LIBS=$ac_check_lib_save_LIBS
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15525 $as_echo "$ac_cv_lib_ssl_ssl3_accept" >&6; }
15526 if test "x$ac_cv_lib_ssl_ssl3_accept" = x""yes; then :
15535 if test $have_openssl = yes ; then
15536 ol_with_tls=openssl
15540 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15543 if test $need_rsaref = yes; then
15545 $as_echo "#define HAVE_RSAREF 1" >>confdefs.h
15548 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15550 TLS_LIBS="-lssl -lcrypto"
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version (CRL checking capability)" >&5
15554 $as_echo_n "checking OpenSSL library version (CRL checking capability)... " >&6; }
15555 if test "${ol_cv_ssl_crl_compat+set}" = set; then :
15556 $as_echo_n "(cached) " >&6
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15562 #ifdef HAVE_OPENSSL_SSL_H
15563 #include <openssl/ssl.h>
15566 /* Require 0.9.7d+ */
15567 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
15568 char *__ssl_compat = "0.9.7d";
15572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15573 $EGREP "__ssl_compat" >/dev/null 2>&1; then :
15574 ol_cv_ssl_crl_compat=yes
15576 ol_cv_ssl_crl_compat=no
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_ssl_crl_compat" >&5
15582 $as_echo "$ol_cv_ssl_crl_compat" >&6; }
15584 if test $ol_cv_ssl_crl_compat = yes ; then
15586 $as_echo "#define HAVE_OPENSSL_CRL 1" >>confdefs.h
15593 if test $ol_link_tls = no ; then
15594 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
15595 for ac_header in gnutls/gnutls.h
15597 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
15598 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
15599 cat >>confdefs.h <<_ACEOF
15600 #define HAVE_GNUTLS_GNUTLS_H 1
15608 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
15610 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
15611 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then :
15612 $as_echo_n "(cached) " >&6
15614 ac_check_lib_save_LIBS=$LIBS
15615 LIBS="-lgnutls $LIBS"
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15619 /* Override any GCC internal prototype to avoid an error.
15620 Use char because int might match the return type of a GCC
15621 builtin and then its argument prototype would still apply. */
15625 char gnutls_init ();
15629 return gnutls_init ();
15634 if ac_fn_c_try_link "$LINENO"; then :
15635 ac_cv_lib_gnutls_gnutls_init=yes
15637 ac_cv_lib_gnutls_gnutls_init=no
15639 rm -f core conftest.err conftest.$ac_objext \
15640 conftest$ac_exeext conftest.$ac_ext
15641 LIBS=$ac_check_lib_save_LIBS
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
15644 $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
15645 if test "x$ac_cv_lib_gnutls_gnutls_init" = x""yes; then :
15652 if test $have_gnutls = yes ; then
15656 TLS_LIBS="-lgnutls"
15659 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15666 if test $ol_link_tls = no ; then
15667 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
15669 for ac_header in nssutil.h
15671 ac_fn_c_check_header_mongrel "$LINENO" "nssutil.h" "ac_cv_header_nssutil_h" "$ac_includes_default"
15672 if test "x$ac_cv_header_nssutil_h" = x""yes; then :
15673 cat >>confdefs.h <<_ACEOF
15674 #define HAVE_NSSUTIL_H 1
15681 if test "$ac_cv_header_nssutil_h" = yes ; then
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
15683 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
15684 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then :
15685 $as_echo_n "(cached) " >&6
15687 ac_check_lib_save_LIBS=$LIBS
15688 LIBS="-lnss3 $LIBS"
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15692 /* Override any GCC internal prototype to avoid an error.
15693 Use char because int might match the return type of a GCC
15694 builtin and then its argument prototype would still apply. */
15698 char NSS_Initialize ();
15702 return NSS_Initialize ();
15707 if ac_fn_c_try_link "$LINENO"; then :
15708 ac_cv_lib_nss3_NSS_Initialize=yes
15710 ac_cv_lib_nss3_NSS_Initialize=no
15712 rm -f core conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
15717 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
15718 if test "x$ac_cv_lib_nss3_NSS_Initialize" = x""yes; then :
15726 if test "$have_moznss" = yes ; then
15730 $as_echo "#define HAVE_MOZNSS 1" >>confdefs.h
15732 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
15734 as_fn_error "MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" "$LINENO" 5
15740 if test $ol_link_tls = yes ; then
15742 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15745 elif test $ol_with_tls = auto ; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
15747 $as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15749 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15750 elif test $ol_with_tls != no ; then
15751 as_fn_error "Could not locate TLS/SSL package" "$LINENO" 5
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15754 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15757 if test $ol_enable_lmpasswd != no; then
15758 if test $ol_link_tls != yes ; then
15759 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
15763 $as_echo "#define SLAPD_LMHASH 1" >>confdefs.h
15769 case $ol_with_threads in auto | yes | nt)
15772 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
15773 if test "x$ac_cv_func__beginthread" = x""yes; then :
15778 if test $ac_cv_func__beginthread = yes ; then
15780 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
15782 ol_cv_nt_threads=yes
15786 if test "$ol_cv_nt_threads" = yes ; then
15788 ol_with_threads=found
15789 ol_with_yielding_select=yes
15792 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
15795 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
15799 if test $ol_with_threads = nt ; then
15800 as_fn_error "could not locate NT Threads" "$LINENO" 5
15805 case $ol_with_threads in auto | yes | posix)
15807 for ac_header in pthread.h
15809 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15810 if test "x$ac_cv_header_pthread_h" = x""yes; then :
15811 cat >>confdefs.h <<_ACEOF
15812 #define HAVE_PTHREAD_H 1
15820 if test $ac_cv_header_pthread_h = yes ; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
15822 $as_echo_n "checking POSIX thread version... " >&6; }
15823 if test "${ol_cv_pthread_version+set}" = set; then :
15824 $as_echo_n "(cached) " >&6
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15830 # include <pthread.h>
15836 int i = PTHREAD_CREATE_JOINABLE;
15842 if ac_fn_c_try_compile "$LINENO"; then :
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15846 #include <pthread.h>
15849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15850 $EGREP "pthread_detach" >/dev/null 2>&1; then :
15851 ol_cv_pthread_version=10
15853 ol_cv_pthread_version=8
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15862 # include <pthread.h>
15863 # ifdef PTHREAD_CREATE_UNDETACHED
15868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15869 $EGREP "draft7" >/dev/null 2>&1; then :
15870 ol_cv_pthread_version=7
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h. */
15875 #include <pthread.h>
15878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15879 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
15880 ol_cv_pthread_version=6
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15886 # include <pthread.h>
15887 #ifdef PTHREAD_MUTEX_INITIALIZER
15892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15893 $EGREP "draft5" >/dev/null 2>&1; then :
15894 ol_cv_pthread_version=5
15896 ol_cv_pthread_version=4
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
15911 $as_echo "$ol_cv_pthread_version" >&6; }
15914 if test $ol_cv_pthread_version != 0 ; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define HAVE_PTHREADS $ol_cv_pthread_version
15921 as_fn_error "unknown pthread version" "$LINENO" 5
15924 # consider threads found
15925 ol_with_threads=found
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
15929 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
15930 if test "${ol_cv_header_linux_threads+set}" = set; then :
15931 $as_echo_n "(cached) " >&6
15933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h. */
15935 #include <pthread.h>
15937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15938 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
15939 ol_cv_header_linux_threads=yes
15941 ol_cv_header_linux_threads=no
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
15948 $as_echo "$ol_cv_header_linux_threads" >&6; }
15949 if test $ol_cv_header_linux_threads = yes; then
15951 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
15957 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
15958 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then :
15959 $as_echo_n "(cached) " >&6
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15963 #include <pthread.h>
15964 #ifdef _POSIX_THREAD_IS_GNU_PTH
15969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15970 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
15971 ol_cv_header_gnu_pth_pthread_h=yes
15973 ol_cv_header_gnu_pth_pthread_h=no
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
15980 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
15983 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
15984 for ac_header in sched.h
15986 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15987 if test "x$ac_cv_header_sched_h" = x""yes; then :
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_SCHED_H 1
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
16000 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
16001 if test "${ol_cv_pthread_create+set}" = set; then :
16002 $as_echo_n "(cached) " >&6
16005 if test "$cross_compiling" = yes; then :
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16009 /* pthread test headers */
16010 #include <pthread.h>
16011 #if HAVE_PTHREADS < 7
16015 #define NULL (void*)0
16018 static void *task(p)
16021 return (void *) (p == NULL);
16028 /* pthread test function */
16029 #ifndef PTHREAD_CREATE_DETACHED
16030 #define PTHREAD_CREATE_DETACHED 1
16034 int detach = PTHREAD_CREATE_DETACHED;
16036 #if HAVE_PTHREADS > 4
16037 /* Final pthreads */
16038 pthread_attr_t attr;
16040 status = pthread_attr_init(&attr);
16041 if( status ) return status;
16043 #if HAVE_PTHREADS < 7
16044 status = pthread_attr_setdetachstate(&attr, &detach);
16045 if( status < 0 ) status = errno;
16047 status = pthread_attr_setdetachstate(&attr, detach);
16049 if( status ) return status;
16050 status = pthread_create( &t, &attr, task, NULL );
16051 #if HAVE_PTHREADS < 7
16052 if( status < 0 ) status = errno;
16054 if( status ) return status;
16056 /* Draft 4 pthreads */
16057 status = pthread_create( &t, pthread_attr_default, task, NULL );
16058 if( status ) return errno;
16060 /* give thread a chance to complete */
16061 /* it should remain joinable and hence detachable */
16064 status = pthread_detach( &t );
16065 if( status ) return errno;
16068 #ifdef HAVE_LINUX_THREADS
16069 pthread_kill_other_threads_np();
16078 if ac_fn_c_try_link "$LINENO"; then :
16079 ol_cv_pthread_create=yes
16081 ol_cv_pthread_create=no
16083 rm -f core conftest.err conftest.$ac_objext \
16084 conftest$ac_exeext conftest.$ac_ext
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16089 /* pthread test headers */
16090 #include <pthread.h>
16091 #if HAVE_PTHREADS < 7
16095 #define NULL (void*)0
16098 static void *task(p)
16101 return (void *) (p == NULL);
16105 int main(argc, argv)
16110 /* pthread test function */
16111 #ifndef PTHREAD_CREATE_DETACHED
16112 #define PTHREAD_CREATE_DETACHED 1
16116 int detach = PTHREAD_CREATE_DETACHED;
16118 #if HAVE_PTHREADS > 4
16119 /* Final pthreads */
16120 pthread_attr_t attr;
16122 status = pthread_attr_init(&attr);
16123 if( status ) return status;
16125 #if HAVE_PTHREADS < 7
16126 status = pthread_attr_setdetachstate(&attr, &detach);
16127 if( status < 0 ) status = errno;
16129 status = pthread_attr_setdetachstate(&attr, detach);
16131 if( status ) return status;
16132 status = pthread_create( &t, &attr, task, NULL );
16133 #if HAVE_PTHREADS < 7
16134 if( status < 0 ) status = errno;
16136 if( status ) return status;
16138 /* Draft 4 pthreads */
16139 status = pthread_create( &t, pthread_attr_default, task, NULL );
16140 if( status ) return errno;
16142 /* give thread a chance to complete */
16143 /* it should remain joinable and hence detachable */
16146 status = pthread_detach( &t );
16147 if( status ) return errno;
16150 #ifdef HAVE_LINUX_THREADS
16151 pthread_kill_other_threads_np();
16159 if ac_fn_c_try_run "$LINENO"; then :
16160 ol_cv_pthread_create=yes
16162 ol_cv_pthread_create=no
16164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16165 conftest.$ac_objext conftest.beam conftest.$ac_ext
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
16170 $as_echo "$ol_cv_pthread_create" >&6; }
16172 if test $ol_cv_pthread_create != no ; then
16173 ol_link_threads=posix
16174 ol_link_pthreads=""
16177 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16178 if test "$ol_link_threads" = no ; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
16181 $as_echo_n "checking for pthread link with -kthread... " >&6; }
16182 if test "${ol_cv_pthread_kthread+set}" = set; then :
16183 $as_echo_n "(cached) " >&6
16188 LIBS="-kthread $LIBS"
16190 if test "$cross_compiling" = yes; then :
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16194 /* pthread test headers */
16195 #include <pthread.h>
16196 #if HAVE_PTHREADS < 7
16200 #define NULL (void*)0
16203 static void *task(p)
16206 return (void *) (p == NULL);
16213 /* pthread test function */
16214 #ifndef PTHREAD_CREATE_DETACHED
16215 #define PTHREAD_CREATE_DETACHED 1
16219 int detach = PTHREAD_CREATE_DETACHED;
16221 #if HAVE_PTHREADS > 4
16222 /* Final pthreads */
16223 pthread_attr_t attr;
16225 status = pthread_attr_init(&attr);
16226 if( status ) return status;
16228 #if HAVE_PTHREADS < 7
16229 status = pthread_attr_setdetachstate(&attr, &detach);
16230 if( status < 0 ) status = errno;
16232 status = pthread_attr_setdetachstate(&attr, detach);
16234 if( status ) return status;
16235 status = pthread_create( &t, &attr, task, NULL );
16236 #if HAVE_PTHREADS < 7
16237 if( status < 0 ) status = errno;
16239 if( status ) return status;
16241 /* Draft 4 pthreads */
16242 status = pthread_create( &t, pthread_attr_default, task, NULL );
16243 if( status ) return errno;
16245 /* give thread a chance to complete */
16246 /* it should remain joinable and hence detachable */
16249 status = pthread_detach( &t );
16250 if( status ) return errno;
16253 #ifdef HAVE_LINUX_THREADS
16254 pthread_kill_other_threads_np();
16263 if ac_fn_c_try_link "$LINENO"; then :
16264 ol_cv_pthread_kthread=yes
16266 ol_cv_pthread_kthread=no
16268 rm -f core conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272 /* end confdefs.h. */
16274 /* pthread test headers */
16275 #include <pthread.h>
16276 #if HAVE_PTHREADS < 7
16280 #define NULL (void*)0
16283 static void *task(p)
16286 return (void *) (p == NULL);
16290 int main(argc, argv)
16295 /* pthread test function */
16296 #ifndef PTHREAD_CREATE_DETACHED
16297 #define PTHREAD_CREATE_DETACHED 1
16301 int detach = PTHREAD_CREATE_DETACHED;
16303 #if HAVE_PTHREADS > 4
16304 /* Final pthreads */
16305 pthread_attr_t attr;
16307 status = pthread_attr_init(&attr);
16308 if( status ) return status;
16310 #if HAVE_PTHREADS < 7
16311 status = pthread_attr_setdetachstate(&attr, &detach);
16312 if( status < 0 ) status = errno;
16314 status = pthread_attr_setdetachstate(&attr, detach);
16316 if( status ) return status;
16317 status = pthread_create( &t, &attr, task, NULL );
16318 #if HAVE_PTHREADS < 7
16319 if( status < 0 ) status = errno;
16321 if( status ) return status;
16323 /* Draft 4 pthreads */
16324 status = pthread_create( &t, pthread_attr_default, task, NULL );
16325 if( status ) return errno;
16327 /* give thread a chance to complete */
16328 /* it should remain joinable and hence detachable */
16331 status = pthread_detach( &t );
16332 if( status ) return errno;
16335 #ifdef HAVE_LINUX_THREADS
16336 pthread_kill_other_threads_np();
16344 if ac_fn_c_try_run "$LINENO"; then :
16345 ol_cv_pthread_kthread=yes
16347 ol_cv_pthread_kthread=no
16349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16350 conftest.$ac_objext conftest.beam conftest.$ac_ext
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
16359 $as_echo "$ol_cv_pthread_kthread" >&6; }
16361 if test $ol_cv_pthread_kthread = yes ; then
16362 ol_link_pthreads="-kthread"
16363 ol_link_threads=posix
16367 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16368 if test "$ol_link_threads" = no ; then
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
16371 $as_echo_n "checking for pthread link with -pthread... " >&6; }
16372 if test "${ol_cv_pthread_pthread+set}" = set; then :
16373 $as_echo_n "(cached) " >&6
16378 LIBS="-pthread $LIBS"
16380 if test "$cross_compiling" = yes; then :
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h. */
16384 /* pthread test headers */
16385 #include <pthread.h>
16386 #if HAVE_PTHREADS < 7
16390 #define NULL (void*)0
16393 static void *task(p)
16396 return (void *) (p == NULL);
16403 /* pthread test function */
16404 #ifndef PTHREAD_CREATE_DETACHED
16405 #define PTHREAD_CREATE_DETACHED 1
16409 int detach = PTHREAD_CREATE_DETACHED;
16411 #if HAVE_PTHREADS > 4
16412 /* Final pthreads */
16413 pthread_attr_t attr;
16415 status = pthread_attr_init(&attr);
16416 if( status ) return status;
16418 #if HAVE_PTHREADS < 7
16419 status = pthread_attr_setdetachstate(&attr, &detach);
16420 if( status < 0 ) status = errno;
16422 status = pthread_attr_setdetachstate(&attr, detach);
16424 if( status ) return status;
16425 status = pthread_create( &t, &attr, task, NULL );
16426 #if HAVE_PTHREADS < 7
16427 if( status < 0 ) status = errno;
16429 if( status ) return status;
16431 /* Draft 4 pthreads */
16432 status = pthread_create( &t, pthread_attr_default, task, NULL );
16433 if( status ) return errno;
16435 /* give thread a chance to complete */
16436 /* it should remain joinable and hence detachable */
16439 status = pthread_detach( &t );
16440 if( status ) return errno;
16443 #ifdef HAVE_LINUX_THREADS
16444 pthread_kill_other_threads_np();
16453 if ac_fn_c_try_link "$LINENO"; then :
16454 ol_cv_pthread_pthread=yes
16456 ol_cv_pthread_pthread=no
16458 rm -f core conftest.err conftest.$ac_objext \
16459 conftest$ac_exeext conftest.$ac_ext
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16464 /* pthread test headers */
16465 #include <pthread.h>
16466 #if HAVE_PTHREADS < 7
16470 #define NULL (void*)0
16473 static void *task(p)
16476 return (void *) (p == NULL);
16480 int main(argc, argv)
16485 /* pthread test function */
16486 #ifndef PTHREAD_CREATE_DETACHED
16487 #define PTHREAD_CREATE_DETACHED 1
16491 int detach = PTHREAD_CREATE_DETACHED;
16493 #if HAVE_PTHREADS > 4
16494 /* Final pthreads */
16495 pthread_attr_t attr;
16497 status = pthread_attr_init(&attr);
16498 if( status ) return status;
16500 #if HAVE_PTHREADS < 7
16501 status = pthread_attr_setdetachstate(&attr, &detach);
16502 if( status < 0 ) status = errno;
16504 status = pthread_attr_setdetachstate(&attr, detach);
16506 if( status ) return status;
16507 status = pthread_create( &t, &attr, task, NULL );
16508 #if HAVE_PTHREADS < 7
16509 if( status < 0 ) status = errno;
16511 if( status ) return status;
16513 /* Draft 4 pthreads */
16514 status = pthread_create( &t, pthread_attr_default, task, NULL );
16515 if( status ) return errno;
16517 /* give thread a chance to complete */
16518 /* it should remain joinable and hence detachable */
16521 status = pthread_detach( &t );
16522 if( status ) return errno;
16525 #ifdef HAVE_LINUX_THREADS
16526 pthread_kill_other_threads_np();
16534 if ac_fn_c_try_run "$LINENO"; then :
16535 ol_cv_pthread_pthread=yes
16537 ol_cv_pthread_pthread=no
16539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16540 conftest.$ac_objext conftest.beam conftest.$ac_ext
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
16549 $as_echo "$ol_cv_pthread_pthread" >&6; }
16551 if test $ol_cv_pthread_pthread = yes ; then
16552 ol_link_pthreads="-pthread"
16553 ol_link_threads=posix
16557 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16558 if test "$ol_link_threads" = no ; then
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
16561 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
16562 if test "${ol_cv_pthread_pthreads+set}" = set; then :
16563 $as_echo_n "(cached) " >&6
16568 LIBS="-pthreads $LIBS"
16570 if test "$cross_compiling" = yes; then :
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16574 /* pthread test headers */
16575 #include <pthread.h>
16576 #if HAVE_PTHREADS < 7
16580 #define NULL (void*)0
16583 static void *task(p)
16586 return (void *) (p == NULL);
16593 /* pthread test function */
16594 #ifndef PTHREAD_CREATE_DETACHED
16595 #define PTHREAD_CREATE_DETACHED 1
16599 int detach = PTHREAD_CREATE_DETACHED;
16601 #if HAVE_PTHREADS > 4
16602 /* Final pthreads */
16603 pthread_attr_t attr;
16605 status = pthread_attr_init(&attr);
16606 if( status ) return status;
16608 #if HAVE_PTHREADS < 7
16609 status = pthread_attr_setdetachstate(&attr, &detach);
16610 if( status < 0 ) status = errno;
16612 status = pthread_attr_setdetachstate(&attr, detach);
16614 if( status ) return status;
16615 status = pthread_create( &t, &attr, task, NULL );
16616 #if HAVE_PTHREADS < 7
16617 if( status < 0 ) status = errno;
16619 if( status ) return status;
16621 /* Draft 4 pthreads */
16622 status = pthread_create( &t, pthread_attr_default, task, NULL );
16623 if( status ) return errno;
16625 /* give thread a chance to complete */
16626 /* it should remain joinable and hence detachable */
16629 status = pthread_detach( &t );
16630 if( status ) return errno;
16633 #ifdef HAVE_LINUX_THREADS
16634 pthread_kill_other_threads_np();
16643 if ac_fn_c_try_link "$LINENO"; then :
16644 ol_cv_pthread_pthreads=yes
16646 ol_cv_pthread_pthreads=no
16648 rm -f core conftest.err conftest.$ac_objext \
16649 conftest$ac_exeext conftest.$ac_ext
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16654 /* pthread test headers */
16655 #include <pthread.h>
16656 #if HAVE_PTHREADS < 7
16660 #define NULL (void*)0
16663 static void *task(p)
16666 return (void *) (p == NULL);
16670 int main(argc, argv)
16675 /* pthread test function */
16676 #ifndef PTHREAD_CREATE_DETACHED
16677 #define PTHREAD_CREATE_DETACHED 1
16681 int detach = PTHREAD_CREATE_DETACHED;
16683 #if HAVE_PTHREADS > 4
16684 /* Final pthreads */
16685 pthread_attr_t attr;
16687 status = pthread_attr_init(&attr);
16688 if( status ) return status;
16690 #if HAVE_PTHREADS < 7
16691 status = pthread_attr_setdetachstate(&attr, &detach);
16692 if( status < 0 ) status = errno;
16694 status = pthread_attr_setdetachstate(&attr, detach);
16696 if( status ) return status;
16697 status = pthread_create( &t, &attr, task, NULL );
16698 #if HAVE_PTHREADS < 7
16699 if( status < 0 ) status = errno;
16701 if( status ) return status;
16703 /* Draft 4 pthreads */
16704 status = pthread_create( &t, pthread_attr_default, task, NULL );
16705 if( status ) return errno;
16707 /* give thread a chance to complete */
16708 /* it should remain joinable and hence detachable */
16711 status = pthread_detach( &t );
16712 if( status ) return errno;
16715 #ifdef HAVE_LINUX_THREADS
16716 pthread_kill_other_threads_np();
16724 if ac_fn_c_try_run "$LINENO"; then :
16725 ol_cv_pthread_pthreads=yes
16727 ol_cv_pthread_pthreads=no
16729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16730 conftest.$ac_objext conftest.beam conftest.$ac_ext
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
16739 $as_echo "$ol_cv_pthread_pthreads" >&6; }
16741 if test $ol_cv_pthread_pthreads = yes ; then
16742 ol_link_pthreads="-pthreads"
16743 ol_link_threads=posix
16747 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16748 if test "$ol_link_threads" = no ; then
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
16751 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
16752 if test "${ol_cv_pthread_mthreads+set}" = set; then :
16753 $as_echo_n "(cached) " >&6
16758 LIBS="-mthreads $LIBS"
16760 if test "$cross_compiling" = yes; then :
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16764 /* pthread test headers */
16765 #include <pthread.h>
16766 #if HAVE_PTHREADS < 7
16770 #define NULL (void*)0
16773 static void *task(p)
16776 return (void *) (p == NULL);
16783 /* pthread test function */
16784 #ifndef PTHREAD_CREATE_DETACHED
16785 #define PTHREAD_CREATE_DETACHED 1
16789 int detach = PTHREAD_CREATE_DETACHED;
16791 #if HAVE_PTHREADS > 4
16792 /* Final pthreads */
16793 pthread_attr_t attr;
16795 status = pthread_attr_init(&attr);
16796 if( status ) return status;
16798 #if HAVE_PTHREADS < 7
16799 status = pthread_attr_setdetachstate(&attr, &detach);
16800 if( status < 0 ) status = errno;
16802 status = pthread_attr_setdetachstate(&attr, detach);
16804 if( status ) return status;
16805 status = pthread_create( &t, &attr, task, NULL );
16806 #if HAVE_PTHREADS < 7
16807 if( status < 0 ) status = errno;
16809 if( status ) return status;
16811 /* Draft 4 pthreads */
16812 status = pthread_create( &t, pthread_attr_default, task, NULL );
16813 if( status ) return errno;
16815 /* give thread a chance to complete */
16816 /* it should remain joinable and hence detachable */
16819 status = pthread_detach( &t );
16820 if( status ) return errno;
16823 #ifdef HAVE_LINUX_THREADS
16824 pthread_kill_other_threads_np();
16833 if ac_fn_c_try_link "$LINENO"; then :
16834 ol_cv_pthread_mthreads=yes
16836 ol_cv_pthread_mthreads=no
16838 rm -f core conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16842 /* end confdefs.h. */
16844 /* pthread test headers */
16845 #include <pthread.h>
16846 #if HAVE_PTHREADS < 7
16850 #define NULL (void*)0
16853 static void *task(p)
16856 return (void *) (p == NULL);
16860 int main(argc, argv)
16865 /* pthread test function */
16866 #ifndef PTHREAD_CREATE_DETACHED
16867 #define PTHREAD_CREATE_DETACHED 1
16871 int detach = PTHREAD_CREATE_DETACHED;
16873 #if HAVE_PTHREADS > 4
16874 /* Final pthreads */
16875 pthread_attr_t attr;
16877 status = pthread_attr_init(&attr);
16878 if( status ) return status;
16880 #if HAVE_PTHREADS < 7
16881 status = pthread_attr_setdetachstate(&attr, &detach);
16882 if( status < 0 ) status = errno;
16884 status = pthread_attr_setdetachstate(&attr, detach);
16886 if( status ) return status;
16887 status = pthread_create( &t, &attr, task, NULL );
16888 #if HAVE_PTHREADS < 7
16889 if( status < 0 ) status = errno;
16891 if( status ) return status;
16893 /* Draft 4 pthreads */
16894 status = pthread_create( &t, pthread_attr_default, task, NULL );
16895 if( status ) return errno;
16897 /* give thread a chance to complete */
16898 /* it should remain joinable and hence detachable */
16901 status = pthread_detach( &t );
16902 if( status ) return errno;
16905 #ifdef HAVE_LINUX_THREADS
16906 pthread_kill_other_threads_np();
16914 if ac_fn_c_try_run "$LINENO"; then :
16915 ol_cv_pthread_mthreads=yes
16917 ol_cv_pthread_mthreads=no
16919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16920 conftest.$ac_objext conftest.beam conftest.$ac_ext
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
16929 $as_echo "$ol_cv_pthread_mthreads" >&6; }
16931 if test $ol_cv_pthread_mthreads = yes ; then
16932 ol_link_pthreads="-mthreads"
16933 ol_link_threads=posix
16937 # Pthread try link: -thread (ol_cv_pthread_thread)
16938 if test "$ol_link_threads" = no ; then
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
16941 $as_echo_n "checking for pthread link with -thread... " >&6; }
16942 if test "${ol_cv_pthread_thread+set}" = set; then :
16943 $as_echo_n "(cached) " >&6
16948 LIBS="-thread $LIBS"
16950 if test "$cross_compiling" = yes; then :
16951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952 /* end confdefs.h. */
16954 /* pthread test headers */
16955 #include <pthread.h>
16956 #if HAVE_PTHREADS < 7
16960 #define NULL (void*)0
16963 static void *task(p)
16966 return (void *) (p == NULL);
16973 /* pthread test function */
16974 #ifndef PTHREAD_CREATE_DETACHED
16975 #define PTHREAD_CREATE_DETACHED 1
16979 int detach = PTHREAD_CREATE_DETACHED;
16981 #if HAVE_PTHREADS > 4
16982 /* Final pthreads */
16983 pthread_attr_t attr;
16985 status = pthread_attr_init(&attr);
16986 if( status ) return status;
16988 #if HAVE_PTHREADS < 7
16989 status = pthread_attr_setdetachstate(&attr, &detach);
16990 if( status < 0 ) status = errno;
16992 status = pthread_attr_setdetachstate(&attr, detach);
16994 if( status ) return status;
16995 status = pthread_create( &t, &attr, task, NULL );
16996 #if HAVE_PTHREADS < 7
16997 if( status < 0 ) status = errno;
16999 if( status ) return status;
17001 /* Draft 4 pthreads */
17002 status = pthread_create( &t, pthread_attr_default, task, NULL );
17003 if( status ) return errno;
17005 /* give thread a chance to complete */
17006 /* it should remain joinable and hence detachable */
17009 status = pthread_detach( &t );
17010 if( status ) return errno;
17013 #ifdef HAVE_LINUX_THREADS
17014 pthread_kill_other_threads_np();
17023 if ac_fn_c_try_link "$LINENO"; then :
17024 ol_cv_pthread_thread=yes
17026 ol_cv_pthread_thread=no
17028 rm -f core conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17034 /* pthread test headers */
17035 #include <pthread.h>
17036 #if HAVE_PTHREADS < 7
17040 #define NULL (void*)0
17043 static void *task(p)
17046 return (void *) (p == NULL);
17050 int main(argc, argv)
17055 /* pthread test function */
17056 #ifndef PTHREAD_CREATE_DETACHED
17057 #define PTHREAD_CREATE_DETACHED 1
17061 int detach = PTHREAD_CREATE_DETACHED;
17063 #if HAVE_PTHREADS > 4
17064 /* Final pthreads */
17065 pthread_attr_t attr;
17067 status = pthread_attr_init(&attr);
17068 if( status ) return status;
17070 #if HAVE_PTHREADS < 7
17071 status = pthread_attr_setdetachstate(&attr, &detach);
17072 if( status < 0 ) status = errno;
17074 status = pthread_attr_setdetachstate(&attr, detach);
17076 if( status ) return status;
17077 status = pthread_create( &t, &attr, task, NULL );
17078 #if HAVE_PTHREADS < 7
17079 if( status < 0 ) status = errno;
17081 if( status ) return status;
17083 /* Draft 4 pthreads */
17084 status = pthread_create( &t, pthread_attr_default, task, NULL );
17085 if( status ) return errno;
17087 /* give thread a chance to complete */
17088 /* it should remain joinable and hence detachable */
17091 status = pthread_detach( &t );
17092 if( status ) return errno;
17095 #ifdef HAVE_LINUX_THREADS
17096 pthread_kill_other_threads_np();
17104 if ac_fn_c_try_run "$LINENO"; then :
17105 ol_cv_pthread_thread=yes
17107 ol_cv_pthread_thread=no
17109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17110 conftest.$ac_objext conftest.beam conftest.$ac_ext
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
17119 $as_echo "$ol_cv_pthread_thread" >&6; }
17121 if test $ol_cv_pthread_thread = yes ; then
17122 ol_link_pthreads="-thread"
17123 ol_link_threads=posix
17128 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17129 if test "$ol_link_threads" = no ; then
17130 # try -lpthread -lmach -lexc -lc_r
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17132 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
17133 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then :
17134 $as_echo_n "(cached) " >&6
17139 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17141 if test "$cross_compiling" = yes; then :
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143 /* end confdefs.h. */
17145 /* pthread test headers */
17146 #include <pthread.h>
17147 #if HAVE_PTHREADS < 7
17151 #define NULL (void*)0
17154 static void *task(p)
17157 return (void *) (p == NULL);
17164 /* pthread test function */
17165 #ifndef PTHREAD_CREATE_DETACHED
17166 #define PTHREAD_CREATE_DETACHED 1
17170 int detach = PTHREAD_CREATE_DETACHED;
17172 #if HAVE_PTHREADS > 4
17173 /* Final pthreads */
17174 pthread_attr_t attr;
17176 status = pthread_attr_init(&attr);
17177 if( status ) return status;
17179 #if HAVE_PTHREADS < 7
17180 status = pthread_attr_setdetachstate(&attr, &detach);
17181 if( status < 0 ) status = errno;
17183 status = pthread_attr_setdetachstate(&attr, detach);
17185 if( status ) return status;
17186 status = pthread_create( &t, &attr, task, NULL );
17187 #if HAVE_PTHREADS < 7
17188 if( status < 0 ) status = errno;
17190 if( status ) return status;
17192 /* Draft 4 pthreads */
17193 status = pthread_create( &t, pthread_attr_default, task, NULL );
17194 if( status ) return errno;
17196 /* give thread a chance to complete */
17197 /* it should remain joinable and hence detachable */
17200 status = pthread_detach( &t );
17201 if( status ) return errno;
17204 #ifdef HAVE_LINUX_THREADS
17205 pthread_kill_other_threads_np();
17214 if ac_fn_c_try_link "$LINENO"; then :
17215 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17217 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17219 rm -f core conftest.err conftest.$ac_objext \
17220 conftest$ac_exeext conftest.$ac_ext
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17225 /* pthread test headers */
17226 #include <pthread.h>
17227 #if HAVE_PTHREADS < 7
17231 #define NULL (void*)0
17234 static void *task(p)
17237 return (void *) (p == NULL);
17241 int main(argc, argv)
17246 /* pthread test function */
17247 #ifndef PTHREAD_CREATE_DETACHED
17248 #define PTHREAD_CREATE_DETACHED 1
17252 int detach = PTHREAD_CREATE_DETACHED;
17254 #if HAVE_PTHREADS > 4
17255 /* Final pthreads */
17256 pthread_attr_t attr;
17258 status = pthread_attr_init(&attr);
17259 if( status ) return status;
17261 #if HAVE_PTHREADS < 7
17262 status = pthread_attr_setdetachstate(&attr, &detach);
17263 if( status < 0 ) status = errno;
17265 status = pthread_attr_setdetachstate(&attr, detach);
17267 if( status ) return status;
17268 status = pthread_create( &t, &attr, task, NULL );
17269 #if HAVE_PTHREADS < 7
17270 if( status < 0 ) status = errno;
17272 if( status ) return status;
17274 /* Draft 4 pthreads */
17275 status = pthread_create( &t, pthread_attr_default, task, NULL );
17276 if( status ) return errno;
17278 /* give thread a chance to complete */
17279 /* it should remain joinable and hence detachable */
17282 status = pthread_detach( &t );
17283 if( status ) return errno;
17286 #ifdef HAVE_LINUX_THREADS
17287 pthread_kill_other_threads_np();
17295 if ac_fn_c_try_run "$LINENO"; then :
17296 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17298 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17301 conftest.$ac_objext conftest.beam conftest.$ac_ext
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17310 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
17312 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17313 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17314 ol_link_threads=posix
17318 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17319 if test "$ol_link_threads" = no ; then
17320 # try -lpthread -lmach -lexc
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
17322 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
17323 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17329 LIBS="-lpthread -lmach -lexc $LIBS"
17331 if test "$cross_compiling" = yes; then :
17332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17335 /* pthread test headers */
17336 #include <pthread.h>
17337 #if HAVE_PTHREADS < 7
17341 #define NULL (void*)0
17344 static void *task(p)
17347 return (void *) (p == NULL);
17354 /* pthread test function */
17355 #ifndef PTHREAD_CREATE_DETACHED
17356 #define PTHREAD_CREATE_DETACHED 1
17360 int detach = PTHREAD_CREATE_DETACHED;
17362 #if HAVE_PTHREADS > 4
17363 /* Final pthreads */
17364 pthread_attr_t attr;
17366 status = pthread_attr_init(&attr);
17367 if( status ) return status;
17369 #if HAVE_PTHREADS < 7
17370 status = pthread_attr_setdetachstate(&attr, &detach);
17371 if( status < 0 ) status = errno;
17373 status = pthread_attr_setdetachstate(&attr, detach);
17375 if( status ) return status;
17376 status = pthread_create( &t, &attr, task, NULL );
17377 #if HAVE_PTHREADS < 7
17378 if( status < 0 ) status = errno;
17380 if( status ) return status;
17382 /* Draft 4 pthreads */
17383 status = pthread_create( &t, pthread_attr_default, task, NULL );
17384 if( status ) return errno;
17386 /* give thread a chance to complete */
17387 /* it should remain joinable and hence detachable */
17390 status = pthread_detach( &t );
17391 if( status ) return errno;
17394 #ifdef HAVE_LINUX_THREADS
17395 pthread_kill_other_threads_np();
17404 if ac_fn_c_try_link "$LINENO"; then :
17405 ol_cv_pthread_lpthread_lmach_lexc=yes
17407 ol_cv_pthread_lpthread_lmach_lexc=no
17409 rm -f core conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17415 /* pthread test headers */
17416 #include <pthread.h>
17417 #if HAVE_PTHREADS < 7
17421 #define NULL (void*)0
17424 static void *task(p)
17427 return (void *) (p == NULL);
17431 int main(argc, argv)
17436 /* pthread test function */
17437 #ifndef PTHREAD_CREATE_DETACHED
17438 #define PTHREAD_CREATE_DETACHED 1
17442 int detach = PTHREAD_CREATE_DETACHED;
17444 #if HAVE_PTHREADS > 4
17445 /* Final pthreads */
17446 pthread_attr_t attr;
17448 status = pthread_attr_init(&attr);
17449 if( status ) return status;
17451 #if HAVE_PTHREADS < 7
17452 status = pthread_attr_setdetachstate(&attr, &detach);
17453 if( status < 0 ) status = errno;
17455 status = pthread_attr_setdetachstate(&attr, detach);
17457 if( status ) return status;
17458 status = pthread_create( &t, &attr, task, NULL );
17459 #if HAVE_PTHREADS < 7
17460 if( status < 0 ) status = errno;
17462 if( status ) return status;
17464 /* Draft 4 pthreads */
17465 status = pthread_create( &t, pthread_attr_default, task, NULL );
17466 if( status ) return errno;
17468 /* give thread a chance to complete */
17469 /* it should remain joinable and hence detachable */
17472 status = pthread_detach( &t );
17473 if( status ) return errno;
17476 #ifdef HAVE_LINUX_THREADS
17477 pthread_kill_other_threads_np();
17485 if ac_fn_c_try_run "$LINENO"; then :
17486 ol_cv_pthread_lpthread_lmach_lexc=yes
17488 ol_cv_pthread_lpthread_lmach_lexc=no
17490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17491 conftest.$ac_objext conftest.beam conftest.$ac_ext
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17500 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
17502 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17503 ol_link_pthreads="-lpthread -lmach -lexc"
17504 ol_link_threads=posix
17509 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17510 if test "$ol_link_threads" = no ; then
17511 # try -lpthread -Wl,-woff,85
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17513 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
17514 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then :
17515 $as_echo_n "(cached) " >&6
17520 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17522 if test "$cross_compiling" = yes; then :
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17526 /* pthread test headers */
17527 #include <pthread.h>
17528 #if HAVE_PTHREADS < 7
17532 #define NULL (void*)0
17535 static void *task(p)
17538 return (void *) (p == NULL);
17545 /* pthread test function */
17546 #ifndef PTHREAD_CREATE_DETACHED
17547 #define PTHREAD_CREATE_DETACHED 1
17551 int detach = PTHREAD_CREATE_DETACHED;
17553 #if HAVE_PTHREADS > 4
17554 /* Final pthreads */
17555 pthread_attr_t attr;
17557 status = pthread_attr_init(&attr);
17558 if( status ) return status;
17560 #if HAVE_PTHREADS < 7
17561 status = pthread_attr_setdetachstate(&attr, &detach);
17562 if( status < 0 ) status = errno;
17564 status = pthread_attr_setdetachstate(&attr, detach);
17566 if( status ) return status;
17567 status = pthread_create( &t, &attr, task, NULL );
17568 #if HAVE_PTHREADS < 7
17569 if( status < 0 ) status = errno;
17571 if( status ) return status;
17573 /* Draft 4 pthreads */
17574 status = pthread_create( &t, pthread_attr_default, task, NULL );
17575 if( status ) return errno;
17577 /* give thread a chance to complete */
17578 /* it should remain joinable and hence detachable */
17581 status = pthread_detach( &t );
17582 if( status ) return errno;
17585 #ifdef HAVE_LINUX_THREADS
17586 pthread_kill_other_threads_np();
17595 if ac_fn_c_try_link "$LINENO"; then :
17596 ol_cv_pthread_lib_lpthread_woff=yes
17598 ol_cv_pthread_lib_lpthread_woff=no
17600 rm -f core conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h. */
17606 /* pthread test headers */
17607 #include <pthread.h>
17608 #if HAVE_PTHREADS < 7
17612 #define NULL (void*)0
17615 static void *task(p)
17618 return (void *) (p == NULL);
17622 int main(argc, argv)
17627 /* pthread test function */
17628 #ifndef PTHREAD_CREATE_DETACHED
17629 #define PTHREAD_CREATE_DETACHED 1
17633 int detach = PTHREAD_CREATE_DETACHED;
17635 #if HAVE_PTHREADS > 4
17636 /* Final pthreads */
17637 pthread_attr_t attr;
17639 status = pthread_attr_init(&attr);
17640 if( status ) return status;
17642 #if HAVE_PTHREADS < 7
17643 status = pthread_attr_setdetachstate(&attr, &detach);
17644 if( status < 0 ) status = errno;
17646 status = pthread_attr_setdetachstate(&attr, detach);
17648 if( status ) return status;
17649 status = pthread_create( &t, &attr, task, NULL );
17650 #if HAVE_PTHREADS < 7
17651 if( status < 0 ) status = errno;
17653 if( status ) return status;
17655 /* Draft 4 pthreads */
17656 status = pthread_create( &t, pthread_attr_default, task, NULL );
17657 if( status ) return errno;
17659 /* give thread a chance to complete */
17660 /* it should remain joinable and hence detachable */
17663 status = pthread_detach( &t );
17664 if( status ) return errno;
17667 #ifdef HAVE_LINUX_THREADS
17668 pthread_kill_other_threads_np();
17676 if ac_fn_c_try_run "$LINENO"; then :
17677 ol_cv_pthread_lib_lpthread_woff=yes
17679 ol_cv_pthread_lib_lpthread_woff=no
17681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17682 conftest.$ac_objext conftest.beam conftest.$ac_ext
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17691 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
17693 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17694 ol_link_pthreads="-lpthread -Wl,-woff,85"
17695 ol_link_threads=posix
17700 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17701 if test "$ol_link_threads" = no ; then
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
17704 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
17705 if test "${ol_cv_pthread_lpthread+set}" = set; then :
17706 $as_echo_n "(cached) " >&6
17711 LIBS="-lpthread $LIBS"
17713 if test "$cross_compiling" = yes; then :
17714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17715 /* end confdefs.h. */
17717 /* pthread test headers */
17718 #include <pthread.h>
17719 #if HAVE_PTHREADS < 7
17723 #define NULL (void*)0
17726 static void *task(p)
17729 return (void *) (p == NULL);
17736 /* pthread test function */
17737 #ifndef PTHREAD_CREATE_DETACHED
17738 #define PTHREAD_CREATE_DETACHED 1
17742 int detach = PTHREAD_CREATE_DETACHED;
17744 #if HAVE_PTHREADS > 4
17745 /* Final pthreads */
17746 pthread_attr_t attr;
17748 status = pthread_attr_init(&attr);
17749 if( status ) return status;
17751 #if HAVE_PTHREADS < 7
17752 status = pthread_attr_setdetachstate(&attr, &detach);
17753 if( status < 0 ) status = errno;
17755 status = pthread_attr_setdetachstate(&attr, detach);
17757 if( status ) return status;
17758 status = pthread_create( &t, &attr, task, NULL );
17759 #if HAVE_PTHREADS < 7
17760 if( status < 0 ) status = errno;
17762 if( status ) return status;
17764 /* Draft 4 pthreads */
17765 status = pthread_create( &t, pthread_attr_default, task, NULL );
17766 if( status ) return errno;
17768 /* give thread a chance to complete */
17769 /* it should remain joinable and hence detachable */
17772 status = pthread_detach( &t );
17773 if( status ) return errno;
17776 #ifdef HAVE_LINUX_THREADS
17777 pthread_kill_other_threads_np();
17786 if ac_fn_c_try_link "$LINENO"; then :
17787 ol_cv_pthread_lpthread=yes
17789 ol_cv_pthread_lpthread=no
17791 rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17797 /* pthread test headers */
17798 #include <pthread.h>
17799 #if HAVE_PTHREADS < 7
17803 #define NULL (void*)0
17806 static void *task(p)
17809 return (void *) (p == NULL);
17813 int main(argc, argv)
17818 /* pthread test function */
17819 #ifndef PTHREAD_CREATE_DETACHED
17820 #define PTHREAD_CREATE_DETACHED 1
17824 int detach = PTHREAD_CREATE_DETACHED;
17826 #if HAVE_PTHREADS > 4
17827 /* Final pthreads */
17828 pthread_attr_t attr;
17830 status = pthread_attr_init(&attr);
17831 if( status ) return status;
17833 #if HAVE_PTHREADS < 7
17834 status = pthread_attr_setdetachstate(&attr, &detach);
17835 if( status < 0 ) status = errno;
17837 status = pthread_attr_setdetachstate(&attr, detach);
17839 if( status ) return status;
17840 status = pthread_create( &t, &attr, task, NULL );
17841 #if HAVE_PTHREADS < 7
17842 if( status < 0 ) status = errno;
17844 if( status ) return status;
17846 /* Draft 4 pthreads */
17847 status = pthread_create( &t, pthread_attr_default, task, NULL );
17848 if( status ) return errno;
17850 /* give thread a chance to complete */
17851 /* it should remain joinable and hence detachable */
17854 status = pthread_detach( &t );
17855 if( status ) return errno;
17858 #ifdef HAVE_LINUX_THREADS
17859 pthread_kill_other_threads_np();
17867 if ac_fn_c_try_run "$LINENO"; then :
17868 ol_cv_pthread_lpthread=yes
17870 ol_cv_pthread_lpthread=no
17872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17873 conftest.$ac_objext conftest.beam conftest.$ac_ext
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
17882 $as_echo "$ol_cv_pthread_lpthread" >&6; }
17884 if test $ol_cv_pthread_lpthread = yes ; then
17885 ol_link_pthreads="-lpthread"
17886 ol_link_threads=posix
17890 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
17891 if test "$ol_link_threads" = no ; then
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
17894 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
17895 if test "${ol_cv_pthread_lc_r+set}" = set; then :
17896 $as_echo_n "(cached) " >&6
17903 if test "$cross_compiling" = yes; then :
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17907 /* pthread test headers */
17908 #include <pthread.h>
17909 #if HAVE_PTHREADS < 7
17913 #define NULL (void*)0
17916 static void *task(p)
17919 return (void *) (p == NULL);
17926 /* pthread test function */
17927 #ifndef PTHREAD_CREATE_DETACHED
17928 #define PTHREAD_CREATE_DETACHED 1
17932 int detach = PTHREAD_CREATE_DETACHED;
17934 #if HAVE_PTHREADS > 4
17935 /* Final pthreads */
17936 pthread_attr_t attr;
17938 status = pthread_attr_init(&attr);
17939 if( status ) return status;
17941 #if HAVE_PTHREADS < 7
17942 status = pthread_attr_setdetachstate(&attr, &detach);
17943 if( status < 0 ) status = errno;
17945 status = pthread_attr_setdetachstate(&attr, detach);
17947 if( status ) return status;
17948 status = pthread_create( &t, &attr, task, NULL );
17949 #if HAVE_PTHREADS < 7
17950 if( status < 0 ) status = errno;
17952 if( status ) return status;
17954 /* Draft 4 pthreads */
17955 status = pthread_create( &t, pthread_attr_default, task, NULL );
17956 if( status ) return errno;
17958 /* give thread a chance to complete */
17959 /* it should remain joinable and hence detachable */
17962 status = pthread_detach( &t );
17963 if( status ) return errno;
17966 #ifdef HAVE_LINUX_THREADS
17967 pthread_kill_other_threads_np();
17976 if ac_fn_c_try_link "$LINENO"; then :
17977 ol_cv_pthread_lc_r=yes
17979 ol_cv_pthread_lc_r=no
17981 rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985 /* end confdefs.h. */
17987 /* pthread test headers */
17988 #include <pthread.h>
17989 #if HAVE_PTHREADS < 7
17993 #define NULL (void*)0
17996 static void *task(p)
17999 return (void *) (p == NULL);
18003 int main(argc, argv)
18008 /* pthread test function */
18009 #ifndef PTHREAD_CREATE_DETACHED
18010 #define PTHREAD_CREATE_DETACHED 1
18014 int detach = PTHREAD_CREATE_DETACHED;
18016 #if HAVE_PTHREADS > 4
18017 /* Final pthreads */
18018 pthread_attr_t attr;
18020 status = pthread_attr_init(&attr);
18021 if( status ) return status;
18023 #if HAVE_PTHREADS < 7
18024 status = pthread_attr_setdetachstate(&attr, &detach);
18025 if( status < 0 ) status = errno;
18027 status = pthread_attr_setdetachstate(&attr, detach);
18029 if( status ) return status;
18030 status = pthread_create( &t, &attr, task, NULL );
18031 #if HAVE_PTHREADS < 7
18032 if( status < 0 ) status = errno;
18034 if( status ) return status;
18036 /* Draft 4 pthreads */
18037 status = pthread_create( &t, pthread_attr_default, task, NULL );
18038 if( status ) return errno;
18040 /* give thread a chance to complete */
18041 /* it should remain joinable and hence detachable */
18044 status = pthread_detach( &t );
18045 if( status ) return errno;
18048 #ifdef HAVE_LINUX_THREADS
18049 pthread_kill_other_threads_np();
18057 if ac_fn_c_try_run "$LINENO"; then :
18058 ol_cv_pthread_lc_r=yes
18060 ol_cv_pthread_lc_r=no
18062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18063 conftest.$ac_objext conftest.beam conftest.$ac_ext
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
18072 $as_echo "$ol_cv_pthread_lc_r" >&6; }
18074 if test $ol_cv_pthread_lc_r = yes ; then
18075 ol_link_pthreads="-lc_r"
18076 ol_link_threads=posix
18081 # Pthread try link: -threads (ol_cv_pthread_threads)
18082 if test "$ol_link_threads" = no ; then
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
18085 $as_echo_n "checking for pthread link with -threads... " >&6; }
18086 if test "${ol_cv_pthread_threads+set}" = set; then :
18087 $as_echo_n "(cached) " >&6
18092 LIBS="-threads $LIBS"
18094 if test "$cross_compiling" = yes; then :
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18098 /* pthread test headers */
18099 #include <pthread.h>
18100 #if HAVE_PTHREADS < 7
18104 #define NULL (void*)0
18107 static void *task(p)
18110 return (void *) (p == NULL);
18117 /* pthread test function */
18118 #ifndef PTHREAD_CREATE_DETACHED
18119 #define PTHREAD_CREATE_DETACHED 1
18123 int detach = PTHREAD_CREATE_DETACHED;
18125 #if HAVE_PTHREADS > 4
18126 /* Final pthreads */
18127 pthread_attr_t attr;
18129 status = pthread_attr_init(&attr);
18130 if( status ) return status;
18132 #if HAVE_PTHREADS < 7
18133 status = pthread_attr_setdetachstate(&attr, &detach);
18134 if( status < 0 ) status = errno;
18136 status = pthread_attr_setdetachstate(&attr, detach);
18138 if( status ) return status;
18139 status = pthread_create( &t, &attr, task, NULL );
18140 #if HAVE_PTHREADS < 7
18141 if( status < 0 ) status = errno;
18143 if( status ) return status;
18145 /* Draft 4 pthreads */
18146 status = pthread_create( &t, pthread_attr_default, task, NULL );
18147 if( status ) return errno;
18149 /* give thread a chance to complete */
18150 /* it should remain joinable and hence detachable */
18153 status = pthread_detach( &t );
18154 if( status ) return errno;
18157 #ifdef HAVE_LINUX_THREADS
18158 pthread_kill_other_threads_np();
18167 if ac_fn_c_try_link "$LINENO"; then :
18168 ol_cv_pthread_threads=yes
18170 ol_cv_pthread_threads=no
18172 rm -f core conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18178 /* pthread test headers */
18179 #include <pthread.h>
18180 #if HAVE_PTHREADS < 7
18184 #define NULL (void*)0
18187 static void *task(p)
18190 return (void *) (p == NULL);
18194 int main(argc, argv)
18199 /* pthread test function */
18200 #ifndef PTHREAD_CREATE_DETACHED
18201 #define PTHREAD_CREATE_DETACHED 1
18205 int detach = PTHREAD_CREATE_DETACHED;
18207 #if HAVE_PTHREADS > 4
18208 /* Final pthreads */
18209 pthread_attr_t attr;
18211 status = pthread_attr_init(&attr);
18212 if( status ) return status;
18214 #if HAVE_PTHREADS < 7
18215 status = pthread_attr_setdetachstate(&attr, &detach);
18216 if( status < 0 ) status = errno;
18218 status = pthread_attr_setdetachstate(&attr, detach);
18220 if( status ) return status;
18221 status = pthread_create( &t, &attr, task, NULL );
18222 #if HAVE_PTHREADS < 7
18223 if( status < 0 ) status = errno;
18225 if( status ) return status;
18227 /* Draft 4 pthreads */
18228 status = pthread_create( &t, pthread_attr_default, task, NULL );
18229 if( status ) return errno;
18231 /* give thread a chance to complete */
18232 /* it should remain joinable and hence detachable */
18235 status = pthread_detach( &t );
18236 if( status ) return errno;
18239 #ifdef HAVE_LINUX_THREADS
18240 pthread_kill_other_threads_np();
18248 if ac_fn_c_try_run "$LINENO"; then :
18249 ol_cv_pthread_threads=yes
18251 ol_cv_pthread_threads=no
18253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18254 conftest.$ac_objext conftest.beam conftest.$ac_ext
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
18263 $as_echo "$ol_cv_pthread_threads" >&6; }
18265 if test $ol_cv_pthread_threads = yes ; then
18266 ol_link_pthreads="-threads"
18267 ol_link_threads=posix
18272 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18273 if test "$ol_link_threads" = no ; then
18274 # try -lpthreads -lmach -lexc -lc_r
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18276 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
18277 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then :
18278 $as_echo_n "(cached) " >&6
18283 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18285 if test "$cross_compiling" = yes; then :
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18289 /* pthread test headers */
18290 #include <pthread.h>
18291 #if HAVE_PTHREADS < 7
18295 #define NULL (void*)0
18298 static void *task(p)
18301 return (void *) (p == NULL);
18308 /* pthread test function */
18309 #ifndef PTHREAD_CREATE_DETACHED
18310 #define PTHREAD_CREATE_DETACHED 1
18314 int detach = PTHREAD_CREATE_DETACHED;
18316 #if HAVE_PTHREADS > 4
18317 /* Final pthreads */
18318 pthread_attr_t attr;
18320 status = pthread_attr_init(&attr);
18321 if( status ) return status;
18323 #if HAVE_PTHREADS < 7
18324 status = pthread_attr_setdetachstate(&attr, &detach);
18325 if( status < 0 ) status = errno;
18327 status = pthread_attr_setdetachstate(&attr, detach);
18329 if( status ) return status;
18330 status = pthread_create( &t, &attr, task, NULL );
18331 #if HAVE_PTHREADS < 7
18332 if( status < 0 ) status = errno;
18334 if( status ) return status;
18336 /* Draft 4 pthreads */
18337 status = pthread_create( &t, pthread_attr_default, task, NULL );
18338 if( status ) return errno;
18340 /* give thread a chance to complete */
18341 /* it should remain joinable and hence detachable */
18344 status = pthread_detach( &t );
18345 if( status ) return errno;
18348 #ifdef HAVE_LINUX_THREADS
18349 pthread_kill_other_threads_np();
18358 if ac_fn_c_try_link "$LINENO"; then :
18359 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18361 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18363 rm -f core conftest.err conftest.$ac_objext \
18364 conftest$ac_exeext conftest.$ac_ext
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18369 /* pthread test headers */
18370 #include <pthread.h>
18371 #if HAVE_PTHREADS < 7
18375 #define NULL (void*)0
18378 static void *task(p)
18381 return (void *) (p == NULL);
18385 int main(argc, argv)
18390 /* pthread test function */
18391 #ifndef PTHREAD_CREATE_DETACHED
18392 #define PTHREAD_CREATE_DETACHED 1
18396 int detach = PTHREAD_CREATE_DETACHED;
18398 #if HAVE_PTHREADS > 4
18399 /* Final pthreads */
18400 pthread_attr_t attr;
18402 status = pthread_attr_init(&attr);
18403 if( status ) return status;
18405 #if HAVE_PTHREADS < 7
18406 status = pthread_attr_setdetachstate(&attr, &detach);
18407 if( status < 0 ) status = errno;
18409 status = pthread_attr_setdetachstate(&attr, detach);
18411 if( status ) return status;
18412 status = pthread_create( &t, &attr, task, NULL );
18413 #if HAVE_PTHREADS < 7
18414 if( status < 0 ) status = errno;
18416 if( status ) return status;
18418 /* Draft 4 pthreads */
18419 status = pthread_create( &t, pthread_attr_default, task, NULL );
18420 if( status ) return errno;
18422 /* give thread a chance to complete */
18423 /* it should remain joinable and hence detachable */
18426 status = pthread_detach( &t );
18427 if( status ) return errno;
18430 #ifdef HAVE_LINUX_THREADS
18431 pthread_kill_other_threads_np();
18439 if ac_fn_c_try_run "$LINENO"; then :
18440 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18442 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18445 conftest.$ac_objext conftest.beam conftest.$ac_ext
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18454 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
18456 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18457 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18458 ol_link_threads=posix
18462 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18463 if test "$ol_link_threads" = no ; then
18464 # try -lpthreads -lmach -lexc
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
18466 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
18467 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then :
18468 $as_echo_n "(cached) " >&6
18473 LIBS="-lpthreads -lmach -lexc $LIBS"
18475 if test "$cross_compiling" = yes; then :
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18479 /* pthread test headers */
18480 #include <pthread.h>
18481 #if HAVE_PTHREADS < 7
18485 #define NULL (void*)0
18488 static void *task(p)
18491 return (void *) (p == NULL);
18498 /* pthread test function */
18499 #ifndef PTHREAD_CREATE_DETACHED
18500 #define PTHREAD_CREATE_DETACHED 1
18504 int detach = PTHREAD_CREATE_DETACHED;
18506 #if HAVE_PTHREADS > 4
18507 /* Final pthreads */
18508 pthread_attr_t attr;
18510 status = pthread_attr_init(&attr);
18511 if( status ) return status;
18513 #if HAVE_PTHREADS < 7
18514 status = pthread_attr_setdetachstate(&attr, &detach);
18515 if( status < 0 ) status = errno;
18517 status = pthread_attr_setdetachstate(&attr, detach);
18519 if( status ) return status;
18520 status = pthread_create( &t, &attr, task, NULL );
18521 #if HAVE_PTHREADS < 7
18522 if( status < 0 ) status = errno;
18524 if( status ) return status;
18526 /* Draft 4 pthreads */
18527 status = pthread_create( &t, pthread_attr_default, task, NULL );
18528 if( status ) return errno;
18530 /* give thread a chance to complete */
18531 /* it should remain joinable and hence detachable */
18534 status = pthread_detach( &t );
18535 if( status ) return errno;
18538 #ifdef HAVE_LINUX_THREADS
18539 pthread_kill_other_threads_np();
18548 if ac_fn_c_try_link "$LINENO"; then :
18549 ol_cv_pthread_lpthreads_lmach_lexc=yes
18551 ol_cv_pthread_lpthreads_lmach_lexc=no
18553 rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h. */
18559 /* pthread test headers */
18560 #include <pthread.h>
18561 #if HAVE_PTHREADS < 7
18565 #define NULL (void*)0
18568 static void *task(p)
18571 return (void *) (p == NULL);
18575 int main(argc, argv)
18580 /* pthread test function */
18581 #ifndef PTHREAD_CREATE_DETACHED
18582 #define PTHREAD_CREATE_DETACHED 1
18586 int detach = PTHREAD_CREATE_DETACHED;
18588 #if HAVE_PTHREADS > 4
18589 /* Final pthreads */
18590 pthread_attr_t attr;
18592 status = pthread_attr_init(&attr);
18593 if( status ) return status;
18595 #if HAVE_PTHREADS < 7
18596 status = pthread_attr_setdetachstate(&attr, &detach);
18597 if( status < 0 ) status = errno;
18599 status = pthread_attr_setdetachstate(&attr, detach);
18601 if( status ) return status;
18602 status = pthread_create( &t, &attr, task, NULL );
18603 #if HAVE_PTHREADS < 7
18604 if( status < 0 ) status = errno;
18606 if( status ) return status;
18608 /* Draft 4 pthreads */
18609 status = pthread_create( &t, pthread_attr_default, task, NULL );
18610 if( status ) return errno;
18612 /* give thread a chance to complete */
18613 /* it should remain joinable and hence detachable */
18616 status = pthread_detach( &t );
18617 if( status ) return errno;
18620 #ifdef HAVE_LINUX_THREADS
18621 pthread_kill_other_threads_np();
18629 if ac_fn_c_try_run "$LINENO"; then :
18630 ol_cv_pthread_lpthreads_lmach_lexc=yes
18632 ol_cv_pthread_lpthreads_lmach_lexc=no
18634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18635 conftest.$ac_objext conftest.beam conftest.$ac_ext
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
18644 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
18646 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
18647 ol_link_pthreads="-lpthreads -lmach -lexc"
18648 ol_link_threads=posix
18652 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
18653 if test "$ol_link_threads" = no ; then
18654 # try -lpthreads -lexc
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
18656 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
18657 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then :
18658 $as_echo_n "(cached) " >&6
18663 LIBS="-lpthreads -lexc $LIBS"
18665 if test "$cross_compiling" = yes; then :
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18669 /* pthread test headers */
18670 #include <pthread.h>
18671 #if HAVE_PTHREADS < 7
18675 #define NULL (void*)0
18678 static void *task(p)
18681 return (void *) (p == NULL);
18688 /* pthread test function */
18689 #ifndef PTHREAD_CREATE_DETACHED
18690 #define PTHREAD_CREATE_DETACHED 1
18694 int detach = PTHREAD_CREATE_DETACHED;
18696 #if HAVE_PTHREADS > 4
18697 /* Final pthreads */
18698 pthread_attr_t attr;
18700 status = pthread_attr_init(&attr);
18701 if( status ) return status;
18703 #if HAVE_PTHREADS < 7
18704 status = pthread_attr_setdetachstate(&attr, &detach);
18705 if( status < 0 ) status = errno;
18707 status = pthread_attr_setdetachstate(&attr, detach);
18709 if( status ) return status;
18710 status = pthread_create( &t, &attr, task, NULL );
18711 #if HAVE_PTHREADS < 7
18712 if( status < 0 ) status = errno;
18714 if( status ) return status;
18716 /* Draft 4 pthreads */
18717 status = pthread_create( &t, pthread_attr_default, task, NULL );
18718 if( status ) return errno;
18720 /* give thread a chance to complete */
18721 /* it should remain joinable and hence detachable */
18724 status = pthread_detach( &t );
18725 if( status ) return errno;
18728 #ifdef HAVE_LINUX_THREADS
18729 pthread_kill_other_threads_np();
18738 if ac_fn_c_try_link "$LINENO"; then :
18739 ol_cv_pthread_lpthreads_lexc=yes
18741 ol_cv_pthread_lpthreads_lexc=no
18743 rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18747 /* end confdefs.h. */
18749 /* pthread test headers */
18750 #include <pthread.h>
18751 #if HAVE_PTHREADS < 7
18755 #define NULL (void*)0
18758 static void *task(p)
18761 return (void *) (p == NULL);
18765 int main(argc, argv)
18770 /* pthread test function */
18771 #ifndef PTHREAD_CREATE_DETACHED
18772 #define PTHREAD_CREATE_DETACHED 1
18776 int detach = PTHREAD_CREATE_DETACHED;
18778 #if HAVE_PTHREADS > 4
18779 /* Final pthreads */
18780 pthread_attr_t attr;
18782 status = pthread_attr_init(&attr);
18783 if( status ) return status;
18785 #if HAVE_PTHREADS < 7
18786 status = pthread_attr_setdetachstate(&attr, &detach);
18787 if( status < 0 ) status = errno;
18789 status = pthread_attr_setdetachstate(&attr, detach);
18791 if( status ) return status;
18792 status = pthread_create( &t, &attr, task, NULL );
18793 #if HAVE_PTHREADS < 7
18794 if( status < 0 ) status = errno;
18796 if( status ) return status;
18798 /* Draft 4 pthreads */
18799 status = pthread_create( &t, pthread_attr_default, task, NULL );
18800 if( status ) return errno;
18802 /* give thread a chance to complete */
18803 /* it should remain joinable and hence detachable */
18806 status = pthread_detach( &t );
18807 if( status ) return errno;
18810 #ifdef HAVE_LINUX_THREADS
18811 pthread_kill_other_threads_np();
18819 if ac_fn_c_try_run "$LINENO"; then :
18820 ol_cv_pthread_lpthreads_lexc=yes
18822 ol_cv_pthread_lpthreads_lexc=no
18824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18825 conftest.$ac_objext conftest.beam conftest.$ac_ext
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
18834 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18836 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18837 ol_link_pthreads="-lpthreads -lexc"
18838 ol_link_threads=posix
18843 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18844 if test "$ol_link_threads" = no ; then
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18847 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18848 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then :
18849 $as_echo_n "(cached) " >&6
18854 LIBS="-lpthreads $LIBS"
18856 if test "$cross_compiling" = yes; then :
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18860 /* pthread test headers */
18861 #include <pthread.h>
18862 #if HAVE_PTHREADS < 7
18866 #define NULL (void*)0
18869 static void *task(p)
18872 return (void *) (p == NULL);
18879 /* pthread test function */
18880 #ifndef PTHREAD_CREATE_DETACHED
18881 #define PTHREAD_CREATE_DETACHED 1
18885 int detach = PTHREAD_CREATE_DETACHED;
18887 #if HAVE_PTHREADS > 4
18888 /* Final pthreads */
18889 pthread_attr_t attr;
18891 status = pthread_attr_init(&attr);
18892 if( status ) return status;
18894 #if HAVE_PTHREADS < 7
18895 status = pthread_attr_setdetachstate(&attr, &detach);
18896 if( status < 0 ) status = errno;
18898 status = pthread_attr_setdetachstate(&attr, detach);
18900 if( status ) return status;
18901 status = pthread_create( &t, &attr, task, NULL );
18902 #if HAVE_PTHREADS < 7
18903 if( status < 0 ) status = errno;
18905 if( status ) return status;
18907 /* Draft 4 pthreads */
18908 status = pthread_create( &t, pthread_attr_default, task, NULL );
18909 if( status ) return errno;
18911 /* give thread a chance to complete */
18912 /* it should remain joinable and hence detachable */
18915 status = pthread_detach( &t );
18916 if( status ) return errno;
18919 #ifdef HAVE_LINUX_THREADS
18920 pthread_kill_other_threads_np();
18929 if ac_fn_c_try_link "$LINENO"; then :
18930 ol_cv_pthread_lib_lpthreads=yes
18932 ol_cv_pthread_lib_lpthreads=no
18934 rm -f core conftest.err conftest.$ac_objext \
18935 conftest$ac_exeext conftest.$ac_ext
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18940 /* pthread test headers */
18941 #include <pthread.h>
18942 #if HAVE_PTHREADS < 7
18946 #define NULL (void*)0
18949 static void *task(p)
18952 return (void *) (p == NULL);
18956 int main(argc, argv)
18961 /* pthread test function */
18962 #ifndef PTHREAD_CREATE_DETACHED
18963 #define PTHREAD_CREATE_DETACHED 1
18967 int detach = PTHREAD_CREATE_DETACHED;
18969 #if HAVE_PTHREADS > 4
18970 /* Final pthreads */
18971 pthread_attr_t attr;
18973 status = pthread_attr_init(&attr);
18974 if( status ) return status;
18976 #if HAVE_PTHREADS < 7
18977 status = pthread_attr_setdetachstate(&attr, &detach);
18978 if( status < 0 ) status = errno;
18980 status = pthread_attr_setdetachstate(&attr, detach);
18982 if( status ) return status;
18983 status = pthread_create( &t, &attr, task, NULL );
18984 #if HAVE_PTHREADS < 7
18985 if( status < 0 ) status = errno;
18987 if( status ) return status;
18989 /* Draft 4 pthreads */
18990 status = pthread_create( &t, pthread_attr_default, task, NULL );
18991 if( status ) return errno;
18993 /* give thread a chance to complete */
18994 /* it should remain joinable and hence detachable */
18997 status = pthread_detach( &t );
18998 if( status ) return errno;
19001 #ifdef HAVE_LINUX_THREADS
19002 pthread_kill_other_threads_np();
19010 if ac_fn_c_try_run "$LINENO"; then :
19011 ol_cv_pthread_lib_lpthreads=yes
19013 ol_cv_pthread_lib_lpthreads=no
19015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19016 conftest.$ac_objext conftest.beam conftest.$ac_ext
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
19025 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
19027 if test $ol_cv_pthread_lib_lpthreads = yes ; then
19028 ol_link_pthreads="-lpthreads"
19029 ol_link_threads=posix
19034 if test $ol_link_threads != no ; then
19035 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19037 save_CPPFLAGS="$CPPFLAGS"
19039 LIBS="$LTHREAD_LIBS $LIBS"
19041 for ac_func in sched_yield pthread_yield thr_yield
19043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19044 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19045 eval as_val=\$$as_ac_var
19046 if test "x$as_val" = x""yes; then :
19047 cat >>confdefs.h <<_ACEOF
19048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19055 if test $ac_cv_func_sched_yield = no &&
19056 test $ac_cv_func_pthread_yield = no &&
19057 test $ac_cv_func_thr_yield = no ; then
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19059 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19060 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19063 ac_check_lib_save_LIBS=$LIBS
19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19068 /* Override any GCC internal prototype to avoid an error.
19069 Use char because int might match the return type of a GCC
19070 builtin and then its argument prototype would still apply. */
19074 char sched_yield ();
19078 return sched_yield ();
19083 if ac_fn_c_try_link "$LINENO"; then :
19084 ac_cv_lib_rt_sched_yield=yes
19086 ac_cv_lib_rt_sched_yield=no
19088 rm -f core conftest.err conftest.$ac_objext \
19089 conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_check_lib_save_LIBS
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19093 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19094 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
19095 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19097 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19099 ac_cv_func_sched_yield=yes
19101 ac_cv_func_sched_yield=no
19105 if test $ac_cv_func_sched_yield = no &&
19106 test $ac_cv_func_pthread_yield = no &&
19107 test "$ac_cv_func_thr_yield" = no ; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19109 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19112 for ac_func in pthread_kill
19114 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19115 if test "x$ac_cv_func_pthread_kill" = x""yes; then :
19116 cat >>confdefs.h <<_ACEOF
19117 #define HAVE_PTHREAD_KILL 1
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
19125 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
19126 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then :
19127 $as_echo_n "(cached) " >&6
19130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19131 /* end confdefs.h. */
19133 #include <pthread.h>
19134 pthread_rwlock_t rwlock;
19139 pthread_rwlock_destroy(&rwlock);
19144 if ac_fn_c_try_link "$LINENO"; then :
19145 ol_cv_func_pthread_rwlock_destroy=yes
19147 ol_cv_func_pthread_rwlock_destroy=no
19149 rm -f core conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
19154 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
19155 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
19157 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
19162 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
19163 if test "${ol_cv_func_pthread_detach+set}" = set; then :
19164 $as_echo_n "(cached) " >&6
19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h. */
19170 #include <pthread.h>
19172 #define NULL (void*)0
19178 pthread_detach(NULL);
19183 if ac_fn_c_try_link "$LINENO"; then :
19184 ol_cv_func_pthread_detach=yes
19186 ol_cv_func_pthread_detach=no
19188 rm -f core conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
19193 $as_echo "$ol_cv_func_pthread_detach" >&6; }
19195 if test $ol_cv_func_pthread_detach = no ; then
19196 as_fn_error "could not locate pthread_detach()" "$LINENO" 5
19200 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
19204 pthread_setconcurrency \
19205 pthread_getconcurrency \
19206 thr_setconcurrency \
19207 thr_getconcurrency \
19210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19212 eval as_val=\$$as_ac_var
19213 if test "x$as_val" = x""yes; then :
19214 cat >>confdefs.h <<_ACEOF
19215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19223 for ac_func in pthread_kill_other_threads_np
19225 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
19226 if test "x$ac_cv_func_pthread_kill_other_threads_np" = x""yes; then :
19227 cat >>confdefs.h <<_ACEOF
19228 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
19235 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
19236 if test "${ol_cv_sys_linux_threads+set}" = set; then :
19237 $as_echo_n "(cached) " >&6
19239 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
19242 $as_echo "$ol_cv_sys_linux_threads" >&6; }
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
19248 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
19249 if test "${ol_cv_linux_threads+set}" = set; then :
19250 $as_echo_n "(cached) " >&6
19253 if test $ol_cv_header_linux_threads = yes &&
19254 test $ol_cv_sys_linux_threads = yes; then
19255 ol_cv_linux_threads=yes
19256 elif test $ol_cv_header_linux_threads = no &&
19257 test $ol_cv_sys_linux_threads = no; then
19258 ol_cv_linux_threads=no
19260 ol_cv_linux_threads=error
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
19265 $as_echo "$ol_cv_linux_threads" >&6; }
19268 if test $ol_cv_linux_threads = error; then
19269 as_fn_error "LinuxThreads header/library mismatch" "$LINENO" 5;
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
19273 $as_echo_n "checking if pthread_create() works... " >&6; }
19274 if test "${ol_cv_pthread_create_works+set}" = set; then :
19275 $as_echo_n "(cached) " >&6
19278 if test "$cross_compiling" = yes; then :
19279 ol_cv_pthread_create_works=yes
19281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19282 /* end confdefs.h. */
19284 /* pthread test headers */
19285 #include <pthread.h>
19286 #if HAVE_PTHREADS < 7
19290 #define NULL (void*)0
19293 static void *task(p)
19296 return (void *) (p == NULL);
19300 int main(argc, argv)
19305 /* pthread test function */
19306 #ifndef PTHREAD_CREATE_DETACHED
19307 #define PTHREAD_CREATE_DETACHED 1
19311 int detach = PTHREAD_CREATE_DETACHED;
19313 #if HAVE_PTHREADS > 4
19314 /* Final pthreads */
19315 pthread_attr_t attr;
19317 status = pthread_attr_init(&attr);
19318 if( status ) return status;
19320 #if HAVE_PTHREADS < 7
19321 status = pthread_attr_setdetachstate(&attr, &detach);
19322 if( status < 0 ) status = errno;
19324 status = pthread_attr_setdetachstate(&attr, detach);
19326 if( status ) return status;
19327 status = pthread_create( &t, &attr, task, NULL );
19328 #if HAVE_PTHREADS < 7
19329 if( status < 0 ) status = errno;
19331 if( status ) return status;
19333 /* Draft 4 pthreads */
19334 status = pthread_create( &t, pthread_attr_default, task, NULL );
19335 if( status ) return errno;
19337 /* give thread a chance to complete */
19338 /* it should remain joinable and hence detachable */
19341 status = pthread_detach( &t );
19342 if( status ) return errno;
19345 #ifdef HAVE_LINUX_THREADS
19346 pthread_kill_other_threads_np();
19354 if ac_fn_c_try_run "$LINENO"; then :
19355 ol_cv_pthread_create_works=yes
19357 ol_cv_pthread_create_works=no
19359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19360 conftest.$ac_objext conftest.beam conftest.$ac_ext
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
19365 $as_echo "$ol_cv_pthread_create_works" >&6; }
19367 if test $ol_cv_pthread_create_works = no ; then
19368 as_fn_error "pthread_create is not usable, check environment settings" "$LINENO" 5
19371 ol_replace_broken_yield=no
19373 if test $ol_replace_broken_yield = yes ; then
19375 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
19379 if test $ol_with_yielding_select = auto ; then
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
19381 $as_echo_n "checking if select yields when using pthreads... " >&6; }
19382 if test "${ol_cv_pthread_select_yields+set}" = set; then :
19383 $as_echo_n "(cached) " >&6
19386 if test "$cross_compiling" = yes; then :
19387 ol_cv_pthread_select_yields=cross
19389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19392 #include <sys/types.h>
19393 #include <sys/time.h>
19394 #include <unistd.h>
19395 #include <pthread.h>
19397 #define NULL (void*) 0
19400 static int fildes[2];
19402 static void *task(p)
19414 FD_SET(fildes[0], &rfds);
19416 /* we're not interested in any fds */
19417 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
19424 exit(0); /* if we exit here, the select blocked the whole process */
19427 int main(argc, argv)
19433 /* create a pipe to select */
19434 if(pipe(&fildes[0])) {
19439 #ifdef HAVE_PTHREAD_SETCONCURRENCY
19440 (void) pthread_setconcurrency(2);
19442 #ifdef HAVE_THR_SETCONCURRENCY
19443 /* Set Solaris LWP concurrency to 2 */
19444 thr_setconcurrency(2);
19448 #if HAVE_PTHREADS < 6
19449 pthread_create(&t, pthread_attr_default, task, NULL);
19451 pthread_create(&t, NULL, task, NULL);
19454 /* make sure task runs first */
19455 #ifdef HAVE_THR_YIELD
19457 #elif defined( HAVE_SCHED_YIELD )
19459 #elif defined( HAVE_PTHREAD_YIELD )
19466 if ac_fn_c_try_run "$LINENO"; then :
19467 ol_cv_pthread_select_yields=no
19469 ol_cv_pthread_select_yields=yes
19471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19472 conftest.$ac_objext conftest.beam conftest.$ac_ext
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
19477 $as_echo "$ol_cv_pthread_select_yields" >&6; }
19479 if test $ol_cv_pthread_select_yields = cross ; then
19480 as_fn_error "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
19483 if test $ol_cv_pthread_select_yields = yes ; then
19484 ol_with_yielding_select=yes
19488 CPPFLAGS="$save_CPPFLAGS"
19491 as_fn_error "could not locate usable POSIX Threads" "$LINENO" 5
19495 if test $ol_with_threads = posix ; then
19496 as_fn_error "could not locate POSIX Threads" "$LINENO" 5
19501 case $ol_with_threads in auto | yes | mach)
19503 for ac_header in mach/cthreads.h cthreads.h
19505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19506 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19507 eval as_val=\$$as_ac_Header
19508 if test "x$as_val" = x""yes; then :
19509 cat >>confdefs.h <<_ACEOF
19510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19517 if test $ac_cv_header_mach_cthreads_h = yes ; then
19518 ol_with_threads=found
19520 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19521 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19522 ol_link_threads=yes
19526 if test $ol_link_threads = no ; then
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
19528 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
19529 if test "${ol_cv_cthread_all_load+set}" = set; then :
19530 $as_echo_n "(cached) " >&6
19534 LIBS="-all_load $LIBS"
19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19537 #include <mach/cthreads.h>
19542 cthread_fork((void *)0, (void *)0);
19548 if ac_fn_c_try_link "$LINENO"; then :
19549 ol_cv_cthread_all_load=yes
19551 ol_cv_cthread_all_load=no
19553 rm -f core conftest.err conftest.$ac_objext \
19554 conftest$ac_exeext conftest.$ac_ext
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
19559 $as_echo "$ol_cv_cthread_all_load" >&6; }
19561 if test $ol_cv_cthread_all_load = yes ; then
19562 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
19563 ol_link_threads=mach
19564 ol_with_threads=found
19568 elif test $ac_cv_header_cthreads_h = yes ; then
19570 ol_with_threads=found
19573 LIBS="$LIBS -lthreads"
19574 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19575 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19576 ol_link_threads=yes
19581 if test $ol_link_threads = yes ; then
19582 LTHREAD_LIBS="-lthreads"
19583 ol_link_threads=mach
19584 ol_with_threads=found
19586 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19589 elif test $ol_with_threads = mach ; then
19590 as_fn_error "could not locate Mach CThreads" "$LINENO" 5
19593 if test $ol_link_threads = mach ; then
19595 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
19597 elif test $ol_with_threads = found ; then
19598 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19603 case $ol_with_threads in auto | yes | pth)
19605 for ac_header in pth.h
19607 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
19608 if test "x$ac_cv_header_pth_h" = x""yes; then :
19609 cat >>confdefs.h <<_ACEOF
19610 #define HAVE_PTH_H 1
19618 if test $ac_cv_header_pth_h = yes ; then
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
19620 $as_echo_n "checking for pth_version in -lpth... " >&6; }
19621 if test "${ac_cv_lib_pth_pth_version+set}" = set; then :
19622 $as_echo_n "(cached) " >&6
19624 ac_check_lib_save_LIBS=$LIBS
19626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19627 /* end confdefs.h. */
19629 /* Override any GCC internal prototype to avoid an error.
19630 Use char because int might match the return type of a GCC
19631 builtin and then its argument prototype would still apply. */
19635 char pth_version ();
19639 return pth_version ();
19644 if ac_fn_c_try_link "$LINENO"; then :
19645 ac_cv_lib_pth_pth_version=yes
19647 ac_cv_lib_pth_pth_version=no
19649 rm -f core conftest.err conftest.$ac_objext \
19650 conftest$ac_exeext conftest.$ac_ext
19651 LIBS=$ac_check_lib_save_LIBS
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
19654 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
19655 if test "x$ac_cv_lib_pth_pth_version" = x""yes; then :
19662 if test $have_pth = yes ; then
19664 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
19666 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
19667 ol_link_threads=pth
19668 ol_with_threads=found
19670 if test $ol_with_yielding_select = auto ; then
19671 ol_with_yielding_select=yes
19678 case $ol_with_threads in auto | yes | lwp)
19680 for ac_header in thread.h synch.h
19682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19683 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19684 eval as_val=\$$as_ac_Header
19685 if test "x$as_val" = x""yes; then :
19686 cat >>confdefs.h <<_ACEOF
19687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19694 if test $ac_cv_header_thread_h = yes &&
19695 test $ac_cv_header_synch_h = yes ; then
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19697 $as_echo_n "checking for thr_create in -lthread... " >&6; }
19698 if test "${ac_cv_lib_thread_thr_create+set}" = set; then :
19699 $as_echo_n "(cached) " >&6
19701 ac_check_lib_save_LIBS=$LIBS
19702 LIBS="-lthread $LIBS"
19703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h. */
19706 /* Override any GCC internal prototype to avoid an error.
19707 Use char because int might match the return type of a GCC
19708 builtin and then its argument prototype would still apply. */
19712 char thr_create ();
19716 return thr_create ();
19721 if ac_fn_c_try_link "$LINENO"; then :
19722 ac_cv_lib_thread_thr_create=yes
19724 ac_cv_lib_thread_thr_create=no
19726 rm -f core conftest.err conftest.$ac_objext \
19727 conftest$ac_exeext conftest.$ac_ext
19728 LIBS=$ac_check_lib_save_LIBS
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19731 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19732 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then :
19739 if test $have_thr = yes ; then
19741 $as_echo "#define HAVE_THR 1" >>confdefs.h
19743 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
19744 ol_link_threads=thr
19746 if test $ol_with_yielding_select = auto ; then
19747 ol_with_yielding_select=yes
19751 thr_setconcurrency \
19752 thr_getconcurrency \
19755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19757 eval as_val=\$$as_ac_var
19758 if test "x$as_val" = x""yes; then :
19759 cat >>confdefs.h <<_ACEOF
19760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19771 if test $ol_with_yielding_select = yes ; then
19773 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19777 if test $ol_with_threads = manual ; then
19778 ol_link_threads=yes
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19781 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19783 for ac_header in pthread.h sched.h
19785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19786 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19787 eval as_val=\$$as_ac_Header
19788 if test "x$as_val" = x""yes; then :
19789 cat >>confdefs.h <<_ACEOF
19790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19797 for ac_func in sched_yield pthread_yield
19799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19801 eval as_val=\$$as_ac_var
19802 if test "x$as_val" = x""yes; then :
19803 cat >>confdefs.h <<_ACEOF
19804 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19812 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19813 if test "${ol_cv_header_linux_threads+set}" = set; then :
19814 $as_echo_n "(cached) " >&6
19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h. */
19818 #include <pthread.h>
19820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19821 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19822 ol_cv_header_linux_threads=yes
19824 ol_cv_header_linux_threads=no
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19831 $as_echo "$ol_cv_header_linux_threads" >&6; }
19832 if test $ol_cv_header_linux_threads = yes; then
19834 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19839 for ac_header in mach/cthreads.h
19841 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
19842 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then :
19843 cat >>confdefs.h <<_ACEOF
19844 #define HAVE_MACH_CTHREADS_H 1
19851 for ac_header in thread.h synch.h
19853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19854 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19855 eval as_val=\$$as_ac_Header
19856 if test "x$as_val" = x""yes; then :
19857 cat >>confdefs.h <<_ACEOF
19858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19867 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
19868 $as_echo "#define REENTRANT 1" >>confdefs.h
19870 $as_echo "#define _REENTRANT 1" >>confdefs.h
19872 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
19874 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
19876 $as_echo "#define THREADSAFE 1" >>confdefs.h
19878 $as_echo "#define _THREADSAFE 1" >>confdefs.h
19880 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
19884 $as_echo_n "checking for thread specific errno... " >&6; }
19885 if test "${ol_cv_errno_thread_specific+set}" = set; then :
19886 $as_echo_n "(cached) " >&6
19889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19890 /* end confdefs.h. */
19900 if ac_fn_c_try_link "$LINENO"; then :
19901 ol_cv_errno_thread_specific=yes
19903 ol_cv_errno_thread_specific=no
19905 rm -f core conftest.err conftest.$ac_objext \
19906 conftest$ac_exeext conftest.$ac_ext
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
19910 $as_echo "$ol_cv_errno_thread_specific" >&6; }
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
19913 $as_echo_n "checking for thread specific h_errno... " >&6; }
19914 if test "${ol_cv_h_errno_thread_specific+set}" = set; then :
19915 $as_echo_n "(cached) " >&6
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19929 if ac_fn_c_try_link "$LINENO"; then :
19930 ol_cv_h_errno_thread_specific=yes
19932 ol_cv_h_errno_thread_specific=no
19934 rm -f core conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
19939 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
19941 if test $ol_cv_errno_thread_specific != yes ||
19942 test $ol_cv_h_errno_thread_specific != yes ; then
19943 LIBS="$LTHREAD_LIBS $LIBS"
19949 if test $ol_link_threads = no ; then
19950 if test $ol_with_threads = yes ; then
19951 as_fn_error "no suitable thread support" "$LINENO" 5
19954 if test $ol_with_threads = auto ; then
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
19956 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
19961 $as_echo "#define NO_THREADS 1" >>confdefs.h
19969 if test $ol_link_threads != no ; then
19971 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
19977 gmtime_r localtime_r \
19978 gethostbyname_r gethostbyaddr_r \
19981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19982 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19983 eval as_val=\$$as_ac_var
19984 if test "x$as_val" = x""yes; then :
19985 cat >>confdefs.h <<_ACEOF
19986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19993 if test "$ac_cv_func_ctime_r" = no ; then
19994 ol_cv_func_ctime_r_nargs=0
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
19997 $as_echo_n "checking number of arguments of ctime_r... " >&6; }
19998 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then :
19999 $as_echo_n "(cached) " >&6
20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20007 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
20012 if ac_fn_c_try_compile "$LINENO"; then :
20013 ol_cv_func_ctime_r_nargs3=yes
20015 ol_cv_func_ctime_r_nargs3=no
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020 /* end confdefs.h. */
20025 time_t ti; char *buffer; ctime_r(&ti,buffer);
20030 if ac_fn_c_try_compile "$LINENO"; then :
20031 ol_cv_func_ctime_r_nargs2=yes
20033 ol_cv_func_ctime_r_nargs2=no
20035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 if test $ol_cv_func_ctime_r_nargs3 = yes &&
20038 test $ol_cv_func_ctime_r_nargs2 = no ; then
20040 ol_cv_func_ctime_r_nargs=3
20042 elif test $ol_cv_func_ctime_r_nargs3 = no &&
20043 test $ol_cv_func_ctime_r_nargs2 = yes ; then
20045 ol_cv_func_ctime_r_nargs=2
20048 ol_cv_func_ctime_r_nargs=0
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
20053 $as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
20055 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
20057 cat >>confdefs.h <<_ACEOF
20058 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
20065 if test "$ac_cv_func_gethostbyname_r" = yes ; then
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
20067 $as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
20068 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then :
20069 $as_echo_n "(cached) " >&6
20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h. */
20073 #include <sys/types.h>
20074 #include <sys/socket.h>
20075 #include <netinet/in.h>
20077 #define BUFSIZE (sizeof(struct hostent)+10)
20081 struct hostent hent; char buffer[BUFSIZE];
20082 int bufsize=BUFSIZE;int h_errno;
20083 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
20084 buffer, bufsize, &h_errno);
20089 if ac_fn_c_try_compile "$LINENO"; then :
20090 ol_cv_func_gethostbyname_r_nargs5=yes
20092 ol_cv_func_gethostbyname_r_nargs5=no
20094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h. */
20098 #include <sys/types.h>
20099 #include <sys/socket.h>
20100 #include <netinet/in.h>
20102 #define BUFSIZE (sizeof(struct hostent)+10)
20106 struct hostent hent;struct hostent *rhent;
20107 char buffer[BUFSIZE];
20108 int bufsize=BUFSIZE;int h_errno;
20109 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
20115 if ac_fn_c_try_compile "$LINENO"; then :
20116 ol_cv_func_gethostbyname_r_nargs6=yes
20118 ol_cv_func_gethostbyname_r_nargs6=no
20120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
20123 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
20125 ol_cv_func_gethostbyname_r_nargs=5
20127 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
20128 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
20130 ol_cv_func_gethostbyname_r_nargs=6
20133 ol_cv_func_gethostbyname_r_nargs=0
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
20138 $as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
20139 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
20141 cat >>confdefs.h <<_ACEOF
20142 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
20148 ol_cv_func_gethostbyname_r_nargs=0
20151 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
20153 $as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
20154 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then :
20155 $as_echo_n "(cached) " >&6
20157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20158 /* end confdefs.h. */
20159 #include <sys/types.h>
20160 #include <sys/socket.h>
20161 #include <netinet/in.h>
20163 #define BUFSIZE (sizeof(struct hostent)+10)
20167 struct hostent hent; char buffer[BUFSIZE];
20168 struct in_addr add;
20169 size_t alen=sizeof(struct in_addr);
20170 int bufsize=BUFSIZE;int h_errno;
20171 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20172 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
20177 if ac_fn_c_try_compile "$LINENO"; then :
20178 ol_cv_func_gethostbyaddr_r_nargs7=yes
20180 ol_cv_func_gethostbyaddr_r_nargs7=no
20182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h. */
20186 #include <sys/types.h>
20187 #include <sys/socket.h>
20188 #include <netinet/in.h>
20190 #define BUFSIZE (sizeof(struct hostent)+10)
20194 struct hostent hent;
20195 struct hostent *rhent; char buffer[BUFSIZE];
20196 struct in_addr add;
20197 size_t alen=sizeof(struct in_addr);
20198 int bufsize=BUFSIZE;int h_errno;
20199 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20200 alen, AF_INET, &hent, buffer, bufsize,
20206 if ac_fn_c_try_compile "$LINENO"; then :
20207 ol_cv_func_gethostbyaddr_r_nargs8=yes
20209 ol_cv_func_gethostbyaddr_r_nargs8=no
20211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20213 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
20214 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
20216 ol_cv_func_gethostbyaddr_r_nargs=7
20218 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
20219 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
20221 ol_cv_func_gethostbyaddr_r_nargs=8
20224 ol_cv_func_gethostbyaddr_r_nargs=0
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
20229 $as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
20230 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
20239 ol_cv_func_gethostbyaddr_r_nargs=0
20244 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
20245 ol_cv_berkeley_db=no
20246 for ac_header in db.h
20248 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
20249 if test "x$ac_cv_header_db_h" = x""yes; then :
20250 cat >>confdefs.h <<_ACEOF
20251 #define HAVE_DB_H 1
20258 if test $ac_cv_header_db_h = yes; then
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB major version in db.h" >&5
20260 $as_echo_n "checking for Berkeley DB major version in db.h... " >&6; }
20261 if test "${ol_cv_bdb_major+set}" = set; then :
20262 $as_echo_n "(cached) " >&6
20265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h. */
20269 #ifndef DB_VERSION_MAJOR
20270 # define DB_VERSION_MAJOR 1
20272 __db_version DB_VERSION_MAJOR
20275 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20276 ol_cv_bdb_major=${3}
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_major" >&5
20280 $as_echo "$ol_cv_bdb_major" >&6; }
20281 case $ol_cv_bdb_major in [1-9]*) : ;; *)
20282 as_fn_error "Unknown Berkeley DB major version in db.h" "$LINENO" 5 ;;
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB minor version in db.h" >&5
20286 $as_echo_n "checking for Berkeley DB minor version in db.h... " >&6; }
20287 if test "${ol_cv_bdb_minor+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20292 /* end confdefs.h. */
20295 #ifndef DB_VERSION_MINOR
20296 # define DB_VERSION_MINOR 0
20298 __db_version DB_VERSION_MINOR
20301 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20302 ol_cv_bdb_minor=${3}
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_minor" >&5
20306 $as_echo "$ol_cv_bdb_minor" >&6; }
20307 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
20308 as_fn_error "Unknown Berkeley DB minor version in db.h" "$LINENO" 5 ;;
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB version supported by BDB/HDB backends" >&5
20312 $as_echo_n "checking if Berkeley DB version supported by BDB/HDB backends... " >&6; }
20313 if test "${ol_cv_bdb_compat+set}" = set; then :
20314 $as_echo_n "(cached) " >&6
20317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20318 /* end confdefs.h. */
20322 /* this check could be improved */
20323 #ifndef DB_VERSION_MAJOR
20324 # define DB_VERSION_MAJOR 1
20326 #ifndef DB_VERSION_MINOR
20327 # define DB_VERSION_MINOR 0
20330 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
20332 /* require 4.4 or later */
20333 #if DB_VERSION_MM >= 0x0404
20334 __db_version_compat
20338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20339 $EGREP "__db_version_compat" >/dev/null 2>&1; then :
20340 ol_cv_bdb_compat=yes
20342 ol_cv_bdb_compat=no
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5
20348 $as_echo "$ol_cv_bdb_compat" >&6; }
20351 if test $ol_cv_bdb_compat != yes ; then
20352 as_fn_error "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5
20357 if test $ol_cv_bdb_major = 5 ; then
20358 if test $ol_cv_lib_db = no ; then
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
20360 $as_echo_n "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... " >&6; }
20361 if test "${ol_cv_db_db_5_dot_m+set}" = set; then :
20362 $as_echo_n "(cached) " >&6
20365 ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
20367 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 /* end confdefs.h. */
20372 #ifdef HAVE_DB_185_H
20373 # include <db_185.h>
20378 #ifndef DB_VERSION_MAJOR
20379 # define DB_VERSION_MAJOR 1
20383 #define NULL ((void*)0)
20390 #if DB_VERSION_MAJOR > 2
20391 db_env_create( NULL, 0 );
20392 #elif DB_VERSION_MAJOR > 1
20393 db_appexit( NULL );
20395 (void) dbopen( NULL, 0, 0, 0, NULL);
20402 if ac_fn_c_try_link "$LINENO"; then :
20403 ol_cv_db_db_5_dot_m=yes
20405 ol_cv_db_db_5_dot_m=no
20407 rm -f core conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_dot_m" >&5
20414 $as_echo "$ol_cv_db_db_5_dot_m" >&6; }
20416 if test $ol_cv_db_db_5_dot_m = yes ; then
20417 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
20421 if test $ol_cv_lib_db = no ; then
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
20423 $as_echo_n "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... " >&6; }
20424 if test "${ol_cv_db_db5m+set}" = set; then :
20425 $as_echo_n "(cached) " >&6
20428 ol_DB_LIB=-ldb5$ol_cv_bdb_minor
20430 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20433 /* end confdefs.h. */
20435 #ifdef HAVE_DB_185_H
20436 # include <db_185.h>
20441 #ifndef DB_VERSION_MAJOR
20442 # define DB_VERSION_MAJOR 1
20446 #define NULL ((void*)0)
20453 #if DB_VERSION_MAJOR > 2
20454 db_env_create( NULL, 0 );
20455 #elif DB_VERSION_MAJOR > 1
20456 db_appexit( NULL );
20458 (void) dbopen( NULL, 0, 0, 0, NULL);
20465 if ac_fn_c_try_link "$LINENO"; then :
20470 rm -f core conftest.err conftest.$ac_objext \
20471 conftest$ac_exeext conftest.$ac_ext
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5m" >&5
20477 $as_echo "$ol_cv_db_db5m" >&6; }
20479 if test $ol_cv_db_db5m = yes ; then
20480 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
20484 if test $ol_cv_lib_db = no ; then
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
20486 $as_echo_n "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... " >&6; }
20487 if test "${ol_cv_db_db_5m+set}" = set; then :
20488 $as_echo_n "(cached) " >&6
20491 ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
20493 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h. */
20498 #ifdef HAVE_DB_185_H
20499 # include <db_185.h>
20504 #ifndef DB_VERSION_MAJOR
20505 # define DB_VERSION_MAJOR 1
20509 #define NULL ((void*)0)
20516 #if DB_VERSION_MAJOR > 2
20517 db_env_create( NULL, 0 );
20518 #elif DB_VERSION_MAJOR > 1
20519 db_appexit( NULL );
20521 (void) dbopen( NULL, 0, 0, 0, NULL);
20528 if ac_fn_c_try_link "$LINENO"; then :
20533 rm -f core conftest.err conftest.$ac_objext \
20534 conftest$ac_exeext conftest.$ac_ext
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5m" >&5
20540 $as_echo "$ol_cv_db_db_5m" >&6; }
20542 if test $ol_cv_db_db_5m = yes ; then
20543 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
20547 if test $ol_cv_lib_db = no ; then
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
20549 $as_echo_n "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... " >&6; }
20550 if test "${ol_cv_db_db_5_m+set}" = set; then :
20551 $as_echo_n "(cached) " >&6
20554 ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
20556 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h. */
20561 #ifdef HAVE_DB_185_H
20562 # include <db_185.h>
20567 #ifndef DB_VERSION_MAJOR
20568 # define DB_VERSION_MAJOR 1
20572 #define NULL ((void*)0)
20579 #if DB_VERSION_MAJOR > 2
20580 db_env_create( NULL, 0 );
20581 #elif DB_VERSION_MAJOR > 1
20582 db_appexit( NULL );
20584 (void) dbopen( NULL, 0, 0, 0, NULL);
20591 if ac_fn_c_try_link "$LINENO"; then :
20592 ol_cv_db_db_5_m=yes
20596 rm -f core conftest.err conftest.$ac_objext \
20597 conftest$ac_exeext conftest.$ac_ext
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_m" >&5
20603 $as_echo "$ol_cv_db_db_5_m" >&6; }
20605 if test $ol_cv_db_db_5_m = yes ; then
20606 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
20610 if test $ol_cv_lib_db = no ; then
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5)" >&5
20612 $as_echo_n "checking for Berkeley DB link (-ldb-5)... " >&6; }
20613 if test "${ol_cv_db_db_5+set}" = set; then :
20614 $as_echo_n "(cached) " >&6
20619 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622 /* end confdefs.h. */
20624 #ifdef HAVE_DB_185_H
20625 # include <db_185.h>
20630 #ifndef DB_VERSION_MAJOR
20631 # define DB_VERSION_MAJOR 1
20635 #define NULL ((void*)0)
20642 #if DB_VERSION_MAJOR > 2
20643 db_env_create( NULL, 0 );
20644 #elif DB_VERSION_MAJOR > 1
20645 db_appexit( NULL );
20647 (void) dbopen( NULL, 0, 0, 0, NULL);
20654 if ac_fn_c_try_link "$LINENO"; then :
20659 rm -f core conftest.err conftest.$ac_objext \
20660 conftest$ac_exeext conftest.$ac_ext
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5" >&5
20666 $as_echo "$ol_cv_db_db_5" >&6; }
20668 if test $ol_cv_db_db_5 = yes ; then
20669 ol_cv_lib_db=-ldb-5
20673 if test $ol_cv_lib_db = no ; then
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5)" >&5
20675 $as_echo_n "checking for Berkeley DB link (-ldb5)... " >&6; }
20676 if test "${ol_cv_db_db5+set}" = set; then :
20677 $as_echo_n "(cached) " >&6
20682 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20687 #ifdef HAVE_DB_185_H
20688 # include <db_185.h>
20693 #ifndef DB_VERSION_MAJOR
20694 # define DB_VERSION_MAJOR 1
20698 #define NULL ((void*)0)
20705 #if DB_VERSION_MAJOR > 2
20706 db_env_create( NULL, 0 );
20707 #elif DB_VERSION_MAJOR > 1
20708 db_appexit( NULL );
20710 (void) dbopen( NULL, 0, 0, 0, NULL);
20717 if ac_fn_c_try_link "$LINENO"; then :
20722 rm -f core conftest.err conftest.$ac_objext \
20723 conftest$ac_exeext conftest.$ac_ext
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5" >&5
20729 $as_echo "$ol_cv_db_db5" >&6; }
20731 if test $ol_cv_db_db5 = yes ; then
20736 elif test $ol_cv_bdb_major = 4 ; then
20737 if test $ol_cv_lib_db = no ; then
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
20739 $as_echo_n "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... " >&6; }
20740 if test "${ol_cv_db_db_4_dot_m+set}" = set; then :
20741 $as_echo_n "(cached) " >&6
20744 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
20746 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20749 /* end confdefs.h. */
20751 #ifdef HAVE_DB_185_H
20752 # include <db_185.h>
20757 #ifndef DB_VERSION_MAJOR
20758 # define DB_VERSION_MAJOR 1
20762 #define NULL ((void*)0)
20769 #if DB_VERSION_MAJOR > 2
20770 db_env_create( NULL, 0 );
20771 #elif DB_VERSION_MAJOR > 1
20772 db_appexit( NULL );
20774 (void) dbopen( NULL, 0, 0, 0, NULL);
20781 if ac_fn_c_try_link "$LINENO"; then :
20782 ol_cv_db_db_4_dot_m=yes
20784 ol_cv_db_db_4_dot_m=no
20786 rm -f core conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_dot_m" >&5
20793 $as_echo "$ol_cv_db_db_4_dot_m" >&6; }
20795 if test $ol_cv_db_db_4_dot_m = yes ; then
20796 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
20800 if test $ol_cv_lib_db = no ; then
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
20802 $as_echo_n "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... " >&6; }
20803 if test "${ol_cv_db_db4m+set}" = set; then :
20804 $as_echo_n "(cached) " >&6
20807 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
20809 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h. */
20814 #ifdef HAVE_DB_185_H
20815 # include <db_185.h>
20820 #ifndef DB_VERSION_MAJOR
20821 # define DB_VERSION_MAJOR 1
20825 #define NULL ((void*)0)
20832 #if DB_VERSION_MAJOR > 2
20833 db_env_create( NULL, 0 );
20834 #elif DB_VERSION_MAJOR > 1
20835 db_appexit( NULL );
20837 (void) dbopen( NULL, 0, 0, 0, NULL);
20844 if ac_fn_c_try_link "$LINENO"; then :
20849 rm -f core conftest.err conftest.$ac_objext \
20850 conftest$ac_exeext conftest.$ac_ext
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4m" >&5
20856 $as_echo "$ol_cv_db_db4m" >&6; }
20858 if test $ol_cv_db_db4m = yes ; then
20859 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
20863 if test $ol_cv_lib_db = no ; then
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
20865 $as_echo_n "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... " >&6; }
20866 if test "${ol_cv_db_db_4m+set}" = set; then :
20867 $as_echo_n "(cached) " >&6
20870 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
20872 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20875 /* end confdefs.h. */
20877 #ifdef HAVE_DB_185_H
20878 # include <db_185.h>
20883 #ifndef DB_VERSION_MAJOR
20884 # define DB_VERSION_MAJOR 1
20888 #define NULL ((void*)0)
20895 #if DB_VERSION_MAJOR > 2
20896 db_env_create( NULL, 0 );
20897 #elif DB_VERSION_MAJOR > 1
20898 db_appexit( NULL );
20900 (void) dbopen( NULL, 0, 0, 0, NULL);
20907 if ac_fn_c_try_link "$LINENO"; then :
20912 rm -f core conftest.err conftest.$ac_objext \
20913 conftest$ac_exeext conftest.$ac_ext
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4m" >&5
20919 $as_echo "$ol_cv_db_db_4m" >&6; }
20921 if test $ol_cv_db_db_4m = yes ; then
20922 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
20926 if test $ol_cv_lib_db = no ; then
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
20928 $as_echo_n "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... " >&6; }
20929 if test "${ol_cv_db_db_4_m+set}" = set; then :
20930 $as_echo_n "(cached) " >&6
20933 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
20935 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20938 /* end confdefs.h. */
20940 #ifdef HAVE_DB_185_H
20941 # include <db_185.h>
20946 #ifndef DB_VERSION_MAJOR
20947 # define DB_VERSION_MAJOR 1
20951 #define NULL ((void*)0)
20958 #if DB_VERSION_MAJOR > 2
20959 db_env_create( NULL, 0 );
20960 #elif DB_VERSION_MAJOR > 1
20961 db_appexit( NULL );
20963 (void) dbopen( NULL, 0, 0, 0, NULL);
20970 if ac_fn_c_try_link "$LINENO"; then :
20971 ol_cv_db_db_4_m=yes
20975 rm -f core conftest.err conftest.$ac_objext \
20976 conftest$ac_exeext conftest.$ac_ext
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_m" >&5
20982 $as_echo "$ol_cv_db_db_4_m" >&6; }
20984 if test $ol_cv_db_db_4_m = yes ; then
20985 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
20989 if test $ol_cv_lib_db = no ; then
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4)" >&5
20991 $as_echo_n "checking for Berkeley DB link (-ldb-4)... " >&6; }
20992 if test "${ol_cv_db_db_4+set}" = set; then :
20993 $as_echo_n "(cached) " >&6
20998 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21001 /* end confdefs.h. */
21003 #ifdef HAVE_DB_185_H
21004 # include <db_185.h>
21009 #ifndef DB_VERSION_MAJOR
21010 # define DB_VERSION_MAJOR 1
21014 #define NULL ((void*)0)
21021 #if DB_VERSION_MAJOR > 2
21022 db_env_create( NULL, 0 );
21023 #elif DB_VERSION_MAJOR > 1
21024 db_appexit( NULL );
21026 (void) dbopen( NULL, 0, 0, 0, NULL);
21033 if ac_fn_c_try_link "$LINENO"; then :
21038 rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4" >&5
21045 $as_echo "$ol_cv_db_db_4" >&6; }
21047 if test $ol_cv_db_db_4 = yes ; then
21048 ol_cv_lib_db=-ldb-4
21052 if test $ol_cv_lib_db = no ; then
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4)" >&5
21054 $as_echo_n "checking for Berkeley DB link (-ldb4)... " >&6; }
21055 if test "${ol_cv_db_db4+set}" = set; then :
21056 $as_echo_n "(cached) " >&6
21061 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21064 /* end confdefs.h. */
21066 #ifdef HAVE_DB_185_H
21067 # include <db_185.h>
21072 #ifndef DB_VERSION_MAJOR
21073 # define DB_VERSION_MAJOR 1
21077 #define NULL ((void*)0)
21084 #if DB_VERSION_MAJOR > 2
21085 db_env_create( NULL, 0 );
21086 #elif DB_VERSION_MAJOR > 1
21087 db_appexit( NULL );
21089 (void) dbopen( NULL, 0, 0, 0, NULL);
21096 if ac_fn_c_try_link "$LINENO"; then :
21101 rm -f core conftest.err conftest.$ac_objext \
21102 conftest$ac_exeext conftest.$ac_ext
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4" >&5
21108 $as_echo "$ol_cv_db_db4" >&6; }
21110 if test $ol_cv_db_db4 = yes ; then
21116 if test $ol_cv_lib_db = no ; then
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb)" >&5
21118 $as_echo_n "checking for Berkeley DB link (-ldb)... " >&6; }
21119 if test "${ol_cv_db_db+set}" = set; then :
21120 $as_echo_n "(cached) " >&6
21125 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21128 /* end confdefs.h. */
21130 #ifdef HAVE_DB_185_H
21131 # include <db_185.h>
21136 #ifndef DB_VERSION_MAJOR
21137 # define DB_VERSION_MAJOR 1
21141 #define NULL ((void*)0)
21148 #if DB_VERSION_MAJOR > 2
21149 db_env_create( NULL, 0 );
21150 #elif DB_VERSION_MAJOR > 1
21151 db_appexit( NULL );
21153 (void) dbopen( NULL, 0, 0, 0, NULL);
21160 if ac_fn_c_try_link "$LINENO"; then :
21165 rm -f core conftest.err conftest.$ac_objext \
21166 conftest$ac_exeext conftest.$ac_ext
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db" >&5
21172 $as_echo "$ol_cv_db_db" >&6; }
21174 if test $ol_cv_db_db = yes ; then
21179 if test $ol_cv_lib_db = no ; then
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (default)" >&5
21181 $as_echo_n "checking for Berkeley DB link (default)... " >&6; }
21182 if test "${ol_cv_db_none+set}" = set; then :
21183 $as_echo_n "(cached) " >&6
21188 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21191 /* end confdefs.h. */
21193 #ifdef HAVE_DB_185_H
21194 # include <db_185.h>
21199 #ifndef DB_VERSION_MAJOR
21200 # define DB_VERSION_MAJOR 1
21204 #define NULL ((void*)0)
21211 #if DB_VERSION_MAJOR > 2
21212 db_env_create( NULL, 0 );
21213 #elif DB_VERSION_MAJOR > 1
21214 db_appexit( NULL );
21216 (void) dbopen( NULL, 0, 0, 0, NULL);
21223 if ac_fn_c_try_link "$LINENO"; then :
21228 rm -f core conftest.err conftest.$ac_objext \
21229 conftest$ac_exeext conftest.$ac_ext
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_none" >&5
21235 $as_echo "$ol_cv_db_none" >&6; }
21237 if test $ol_cv_db_none = yes ; then
21243 if test "$ol_cv_lib_db" != no ; then
21244 ol_cv_berkeley_db=yes
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library and header version match" >&5
21246 $as_echo_n "checking for Berkeley DB library and header version match... " >&6; }
21247 if test "${ol_cv_berkeley_db_version+set}" = set; then :
21248 $as_echo_n "(cached) " >&6
21252 LIBS="$LTHREAD_LIBS $LIBS"
21253 if test $ol_cv_lib_db != yes ; then
21254 LIBS="$ol_cv_lib_db $LIBS"
21257 if test "$cross_compiling" = yes; then :
21258 ol_cv_berkeley_db_version=cross
21260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21261 /* end confdefs.h. */
21263 #ifdef HAVE_DB_185_H
21268 #ifndef DB_VERSION_MAJOR
21269 # define DB_VERSION_MAJOR 1
21272 #define NULL ((void *)0)
21276 #if DB_VERSION_MAJOR > 1
21278 int major, minor, patch;
21280 version = db_version( &major, &minor, &patch );
21282 if( major != DB_VERSION_MAJOR ||
21283 minor != DB_VERSION_MINOR ||
21284 patch != DB_VERSION_PATCH )
21286 printf("Berkeley DB version mismatch\n"
21287 "\theader: %s\n\tlibrary: %s\n",
21288 DB_VERSION_STRING, version);
21296 if ac_fn_c_try_run "$LINENO"; then :
21297 ol_cv_berkeley_db_version=yes
21299 ol_cv_berkeley_db_version=no
21301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21302 conftest.$ac_objext conftest.beam conftest.$ac_ext
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_version" >&5
21310 $as_echo "$ol_cv_berkeley_db_version" >&6; }
21312 if test $ol_cv_berkeley_db_version = no ; then
21313 as_fn_error "Berkeley DB version mismatch" "$LINENO" 5
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB thread support" >&5
21317 $as_echo_n "checking for Berkeley DB thread support... " >&6; }
21318 if test "${ol_cv_berkeley_db_thread+set}" = set; then :
21319 $as_echo_n "(cached) " >&6
21323 LIBS="$LTHREAD_LIBS $LIBS"
21324 if test $ol_cv_lib_db != yes ; then
21325 LIBS="$ol_cv_lib_db $LIBS"
21328 if test "$cross_compiling" = yes; then :
21329 ol_cv_berkeley_db_thread=cross
21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332 /* end confdefs.h. */
21334 #ifdef HAVE_DB_185_H
21340 #define NULL ((void *)0)
21345 u_int32_t flags = DB_CREATE |
21351 #if DB_VERSION_MAJOR > 2
21352 DB_ENV *env = NULL;
21354 rc = db_env_create( &env, 0 );
21356 flags |= DB_INIT_MPOOL;
21357 #ifdef DB_MPOOL_PRIVATE
21358 flags |= DB_MPOOL_PRIVATE;
21362 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21366 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
21367 rc = (env->open)( env, NULL, flags, 0 );
21369 rc = (env->open)( env, NULL, NULL, flags, 0 );
21373 rc = env->close( env, 0 );
21377 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21383 memset( &env, '\0', sizeof(env) );
21385 rc = db_appinit( NULL, NULL, &env, flags );
21388 db_appexit( &env );
21391 unlink("__db_mpool.share");
21392 unlink("__db_lock.share");
21398 if ac_fn_c_try_run "$LINENO"; then :
21399 ol_cv_berkeley_db_thread=yes
21401 ol_cv_berkeley_db_thread=no
21403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21404 conftest.$ac_objext conftest.beam conftest.$ac_ext
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_thread" >&5
21412 $as_echo "$ol_cv_berkeley_db_thread" >&6; }
21414 if test $ol_cv_berkeley_db_thread != no ; then
21416 $as_echo "#define HAVE_BERKELEY_DB_THREAD 1" >>confdefs.h
21424 if test $ol_cv_berkeley_db = no ; then
21425 as_fn_error "BDB/HDB: BerkeleyDB not available" "$LINENO" 5
21429 $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h
21432 if test $ol_cv_lib_db != yes ; then
21433 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
21436 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
21442 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21443 BUILD_LIBS_DYNAMIC=shared
21445 $as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21449 BUILD_LIBS_DYNAMIC=static
21453 if test $ol_enable_wrappers != no ; then
21454 for ac_header in tcpd.h
21456 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21457 if test "x$ac_cv_header_tcpd_h" = x""yes; then :
21458 cat >>confdefs.h <<_ACEOF
21459 #define HAVE_TCPD_H 1
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21463 $as_echo_n "checking for TCP wrappers library... " >&6; }
21465 LIBS="$LIBS -lwrap"
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21470 int allow_severity = 0;
21471 int deny_severity = 0;
21473 struct request_info *req;
21485 if ac_fn_c_try_link "$LINENO"; then :
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21487 $as_echo "-lwrap" >&6; }
21493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21494 /* end confdefs.h. */
21497 int allow_severity = 0;
21498 int deny_severity = 0;
21500 struct request_info *req;
21512 if ac_fn_c_try_link "$LINENO"; then :
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21514 $as_echo "-lwrap -lnsl" >&6; }
21516 LIBS="$save_LIBS -lnsl"
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21520 $as_echo "no" >&6; }
21524 rm -f core conftest.err conftest.$ac_objext \
21525 conftest$ac_exeext conftest.$ac_ext
21527 rm -f core conftest.err conftest.$ac_objext \
21528 conftest$ac_exeext conftest.$ac_ext
21536 if test $have_wrappers = yes ; then
21538 $as_echo "#define HAVE_TCPD 1" >>confdefs.h
21541 elif test $ol_enable_wrappers = yes ; then
21542 as_fn_error "could not find TCP wrappers, select apppropriate options or disable" "$LINENO" 5
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21545 $as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21550 if test $ol_enable_syslog != no ; then
21551 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21552 if test "x$ac_cv_func_openlog" = x""yes; then :
21556 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21557 { as_fn_set_status select appropriate options or disable
21558 as_fn_error "could not find syslog" "$LINENO" 5; }
21560 ol_enable_syslog=$ac_cv_func_openlog
21564 if test $ol_enable_sql != no ; then
21565 for ac_header in sql.h sqlext.h
21567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21568 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21569 eval as_val=\$$as_ac_Header
21570 if test "x$as_val" = x""yes; then :
21571 cat >>confdefs.h <<_ACEOF
21572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21577 as_fn_error "could not locate SQL headers" "$LINENO" 5
21585 LIBS="$LTHREAD_LIBS"
21587 if test $ol_with_odbc = auto ; then
21588 ol_with_odbc="iodbc unixodbc odbc32"
21591 for odbc in $ol_with_odbc ; do
21592 if test $ol_link_sql = no ; then
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21596 $as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21597 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then :
21598 $as_echo_n "(cached) " >&6
21600 ac_check_lib_save_LIBS=$LIBS
21601 LIBS="-liodbc $LIBS"
21602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21603 /* end confdefs.h. */
21605 /* Override any GCC internal prototype to avoid an error.
21606 Use char because int might match the return type of a GCC
21607 builtin and then its argument prototype would still apply. */
21611 char SQLDriverConnect ();
21615 return SQLDriverConnect ();
21620 if ac_fn_c_try_link "$LINENO"; then :
21621 ac_cv_lib_iodbc_SQLDriverConnect=yes
21623 ac_cv_lib_iodbc_SQLDriverConnect=no
21625 rm -f core conftest.err conftest.$ac_objext \
21626 conftest$ac_exeext conftest.$ac_ext
21627 LIBS=$ac_check_lib_save_LIBS
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21630 $as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21631 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = x""yes; then :
21637 if test $have_iodbc = yes ; then
21638 ol_link_sql="-liodbc"
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21644 $as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21645 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then :
21646 $as_echo_n "(cached) " >&6
21648 ac_check_lib_save_LIBS=$LIBS
21649 LIBS="-lodbc $LIBS"
21650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21651 /* end confdefs.h. */
21653 /* Override any GCC internal prototype to avoid an error.
21654 Use char because int might match the return type of a GCC
21655 builtin and then its argument prototype would still apply. */
21659 char SQLDriverConnect ();
21663 return SQLDriverConnect ();
21668 if ac_fn_c_try_link "$LINENO"; then :
21669 ac_cv_lib_odbc_SQLDriverConnect=yes
21671 ac_cv_lib_odbc_SQLDriverConnect=no
21673 rm -f core conftest.err conftest.$ac_objext \
21674 conftest$ac_exeext conftest.$ac_ext
21675 LIBS=$ac_check_lib_save_LIBS
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21678 $as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21679 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = x""yes; then :
21685 if test $have_odbc = yes ; then
21686 ol_link_sql="-lodbc"
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21692 $as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21693 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then :
21694 $as_echo_n "(cached) " >&6
21696 ac_check_lib_save_LIBS=$LIBS
21697 LIBS="-lodbc32 $LIBS"
21698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21699 /* end confdefs.h. */
21701 /* Override any GCC internal prototype to avoid an error.
21702 Use char because int might match the return type of a GCC
21703 builtin and then its argument prototype would still apply. */
21707 char SQLDriverConnect ();
21711 return SQLDriverConnect ();
21716 if ac_fn_c_try_link "$LINENO"; then :
21717 ac_cv_lib_odbc32_SQLDriverConnect=yes
21719 ac_cv_lib_odbc32_SQLDriverConnect=no
21721 rm -f core conftest.err conftest.$ac_objext \
21722 conftest$ac_exeext conftest.$ac_ext
21723 LIBS=$ac_check_lib_save_LIBS
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21726 $as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21727 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = x""yes; then :
21734 if test $have_odbc32 = no ; then
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21736 $as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21738 LIBS="$LIBS -lodbc32"
21739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21740 /* end confdefs.h. */
21741 #include <windows.h>
21742 #include <sqlext.h>
21748 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21754 if ac_fn_c_try_link "$LINENO"; then :
21759 rm -f core conftest.err conftest.$ac_objext \
21760 conftest$ac_exeext conftest.$ac_ext
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21763 $as_echo "$have_odbc32" >&6; }
21766 if test $have_odbc32 = yes ; then
21767 ol_link_sql="-lodbc32"
21772 as_fn_error "unknown ODBC library" "$LINENO" 5
21780 if test $ol_link_sql != no ; then
21781 SLAPD_SQL_LIBS="$ol_link_sql"
21783 elif test $ol_enable_sql != auto ; then
21784 as_fn_error "could not locate suitable ODBC library" "$LINENO" 5
21789 if test $ol_enable_ndb != no ; then
21790 # Extract the first word of "mysql_config", so it can be a program name with args.
21791 set dummy mysql_config; ac_word=$2
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21793 $as_echo_n "checking for $ac_word... " >&6; }
21794 if test "${ac_cv_prog_MYSQL+set}" = set; then :
21795 $as_echo_n "(cached) " >&6
21797 if test -n "$MYSQL"; then
21798 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
21800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801 for as_dir in $PATH
21804 test -z "$as_dir" && as_dir=.
21805 for ac_exec_ext in '' $ac_executable_extensions; do
21806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21807 ac_cv_prog_MYSQL="yes"
21808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21817 MYSQL=$ac_cv_prog_MYSQL
21818 if test -n "$MYSQL"; then
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
21820 $as_echo "$MYSQL" >&6; }
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21823 $as_echo "no" >&6; }
21827 if test "$MYSQL" != yes ; then
21828 as_fn_error "could not locate mysql_config" "$LINENO" 5
21831 SQL_INC=`mysql_config --include`
21832 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
21834 save_CPPFLAGS="$CPPFLAGS"
21835 CPPFLAGS="$SLAPD_NDB_INCS"
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
21837 $as_echo_n "checking for NdbApi.hpp... " >&6; }
21838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21839 /* end confdefs.h. */
21840 #include <NdbApi.hpp>
21842 if ac_fn_c_try_cpp "$LINENO"; then :
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21844 $as_echo "yes" >&6; }
21846 as_fn_error "could not locate NdbApi headers" "$LINENO" 5
21849 rm -f conftest.err conftest.$ac_ext
21850 CPPFLAGS="$save_CPPFLAGS"
21852 SQL_LIB=`mysql_config --libs_r`
21853 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
21855 save_LDFLAGS="$LDFLAGS"
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
21859 $as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
21860 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then :
21861 $as_echo_n "(cached) " >&6
21863 ac_check_lib_save_LIBS=$LIBS
21864 LIBS="-lndbclient -lstdc++ $LIBS"
21865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21866 /* end confdefs.h. */
21868 /* Override any GCC internal prototype to avoid an error.
21869 Use char because int might match the return type of a GCC
21870 builtin and then its argument prototype would still apply. */
21878 return ndb_init ();
21883 if ac_fn_c_try_link "$LINENO"; then :
21884 ac_cv_lib_ndbclient_ndb_init=yes
21886 ac_cv_lib_ndbclient_ndb_init=no
21888 rm -f core conftest.err conftest.$ac_objext \
21889 conftest$ac_exeext conftest.$ac_ext
21890 LIBS=$ac_check_lib_save_LIBS
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
21893 $as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
21894 if test "x$ac_cv_lib_ndbclient_ndb_init" = x""yes; then :
21898 as_fn_error "could not locate ndbclient library" "$LINENO" 5
21903 LDFLAGS="$save_LDFLAGS"
21905 if test "$ol_enable_ndb" = yes ; then
21906 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
21911 for ac_header in unicode/utypes.h
21913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21914 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21915 eval as_val=\$$as_ac_Header
21916 if test "x$as_val" = x""yes; then :
21917 cat >>confdefs.h <<_ACEOF
21918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21925 if test $ac_cv_header_unicode_utypes_h = yes ; then
21926 OL_ICULIBS="-licuuc -licudata"
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU libraries" >&5
21929 $as_echo_n "checking for ICU libraries... " >&6; }
21930 if test "${ol_cv_lib_icu+set}" = set; then :
21931 $as_echo_n "(cached) " >&6
21935 LIBS="$OL_ICULIBS $LIBS"
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h. */
21939 #include <unicode/utypes.h>
21945 (void) u_errorName(0);
21951 if ac_fn_c_try_link "$LINENO"; then :
21956 rm -f core conftest.err conftest.$ac_objext \
21957 conftest$ac_exeext conftest.$ac_ext
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_icu" >&5
21962 $as_echo "$ol_cv_lib_icu" >&6; }
21964 if test $ol_cv_lib_icu != no ; then
21965 ol_icu="$OL_ICULIBS"
21967 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21972 if test "$ol_icu" = no ; then
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ICU not available" >&5
21974 $as_echo "$as_me: WARNING: ICU not available" >&2;}
21981 if test $ol_with_cyrus_sasl != no ; then
21982 for ac_header in sasl/sasl.h sasl.h
21984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21986 eval as_val=\$$as_ac_Header
21987 if test "x$as_val" = x""yes; then :
21988 cat >>confdefs.h <<_ACEOF
21989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21997 if test $ac_cv_header_sasl_sasl_h = yes ||
21998 test $ac_cv_header_sasl_h = yes; then
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22000 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22001 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then :
22002 $as_echo_n "(cached) " >&6
22004 ac_check_lib_save_LIBS=$LIBS
22005 LIBS="-lsasl2 $LIBS"
22006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22007 /* end confdefs.h. */
22009 /* Override any GCC internal prototype to avoid an error.
22010 Use char because int might match the return type of a GCC
22011 builtin and then its argument prototype would still apply. */
22015 char sasl_client_init ();
22019 return sasl_client_init ();
22024 if ac_fn_c_try_link "$LINENO"; then :
22025 ac_cv_lib_sasl2_sasl_client_init=yes
22027 ac_cv_lib_sasl2_sasl_client_init=no
22029 rm -f core conftest.err conftest.$ac_objext \
22030 conftest$ac_exeext conftest.$ac_ext
22031 LIBS=$ac_check_lib_save_LIBS
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22034 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22035 if test "x$ac_cv_lib_sasl2_sasl_client_init" = x""yes; then :
22036 ol_link_sasl="-lsasl2"
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22039 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22040 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then :
22041 $as_echo_n "(cached) " >&6
22043 ac_check_lib_save_LIBS=$LIBS
22044 LIBS="-lsasl $LIBS"
22045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22046 /* end confdefs.h. */
22048 /* Override any GCC internal prototype to avoid an error.
22049 Use char because int might match the return type of a GCC
22050 builtin and then its argument prototype would still apply. */
22054 char sasl_client_init ();
22058 return sasl_client_init ();
22063 if ac_fn_c_try_link "$LINENO"; then :
22064 ac_cv_lib_sasl_sasl_client_init=yes
22066 ac_cv_lib_sasl_sasl_client_init=no
22068 rm -f core conftest.err conftest.$ac_objext \
22069 conftest$ac_exeext conftest.$ac_ext
22070 LIBS=$ac_check_lib_save_LIBS
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22073 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22074 if test "x$ac_cv_lib_sasl_sasl_client_init" = x""yes; then :
22075 ol_link_sasl="-lsasl"
22082 if test $ol_link_sasl = no ; then
22083 if test $ol_with_cyrus_sasl != auto ; then
22084 as_fn_error "Could not locate Cyrus SASL" "$LINENO" 5
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22087 $as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22089 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22090 if test $ol_link_tls = no ; then
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22092 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22097 $as_echo_n "checking Cyrus SASL library version... " >&6; }
22098 if test "${ol_cv_sasl_compat+set}" = set; then :
22099 $as_echo_n "(cached) " >&6
22102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22103 /* end confdefs.h. */
22105 #ifdef HAVE_SASL_SASL_H
22106 #include <sasl/sasl.h>
22111 /* Require 2.1.15+ */
22112 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22113 char *__sasl_compat = "2.2+ or better okay (we guess)";
22114 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22115 && SASL_VERSION_STEP >=15
22116 char *__sasl_compat = "2.1.15+ or better okay";
22120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22121 $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22122 ol_cv_sasl_compat=yes
22124 ol_cv_sasl_compat=no
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22130 $as_echo "$ol_cv_sasl_compat" >&6; }
22132 if test $ol_cv_sasl_compat = no ; then
22134 as_fn_error "Cyrus SASL library located but is incompatible" "$LINENO" 5
22138 $as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22140 SASL_LIBS="$ol_link_sasl"
22141 if test $ol_enable_spasswd != no ; then
22142 ol_link_spasswd=yes
22145 ac_save_LIBS="$LIBS"
22146 LIBS="$LIBS $ol_link_sasl"
22147 ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22148 if test "x$ac_cv_func_sasl_version" = x""yes; then :
22150 $as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22154 LIBS="$ac_save_LIBS"
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22161 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22162 if test $ol_link_tls = no ; then
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22164 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22168 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22170 if test -r /dev/urandom ; then
22171 dev="/dev/urandom";
22172 elif test -r /idev/urandom ; then
22173 dev="/idev/urandom";
22174 elif test -r /dev/srandom ; then
22175 dev="/dev/srandom";
22176 elif test -r /dev/random ; then
22178 elif test -r /idev/random ; then
22179 dev="/idev/random";
22182 if test $dev != no ; then
22184 cat >>confdefs.h <<_ACEOF
22185 #define URANDOM_DEVICE "$dev"
22192 if test $ol_with_fetch != no ; then
22194 LIBS="-lfetch -lcom_err $LIBS"
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22196 $as_echo_n "checking fetch(3) library... " >&6; }
22197 if test "${ol_cv_lib_fetch+set}" = set; then :
22198 $as_echo_n "(cached) " >&6
22201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22202 /* end confdefs.h. */
22204 #ifdef HAVE_SYS_PARAM_H
22205 #include <sys/param.h>
22212 struct url *u = fetchParseURL("file:///");
22217 if ac_fn_c_try_link "$LINENO"; then :
22218 ol_cv_lib_fetch=yes
22222 rm -f core conftest.err conftest.$ac_objext \
22223 conftest$ac_exeext conftest.$ac_ext
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22226 $as_echo "$ol_cv_lib_fetch" >&6; }
22228 if test $ol_cv_lib_fetch != no ; then
22229 ol_link_fetch="-lfetch -lcom_err"
22231 $as_echo "#define HAVE_FETCH 1" >>confdefs.h
22236 if test $ol_cv_lib_fetch != no ; then
22237 LIBS="$LIBS $ol_link_fetch"
22238 ol_link_fetch=freebsd
22240 elif test $ol_with_fetch != auto ; then
22241 as_fn_error "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22245 if test $ol_enable_crypt != no ; then
22247 LIBS="$TLS_LIBS $LIBS"
22249 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22250 if test "x$ac_cv_func_crypt" = x""yes; then :
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22256 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22257 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22258 $as_echo_n "(cached) " >&6
22260 ac_check_lib_save_LIBS=$LIBS
22261 LIBS="-lcrypt $LIBS"
22262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22263 /* end confdefs.h. */
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22280 if ac_fn_c_try_link "$LINENO"; then :
22281 ac_cv_lib_crypt_crypt=yes
22283 ac_cv_lib_crypt_crypt=no
22285 rm -f core conftest.err conftest.$ac_objext \
22286 conftest$ac_exeext conftest.$ac_ext
22287 LIBS=$ac_check_lib_save_LIBS
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22290 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22291 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22292 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22303 if test $have_crypt = yes ; then
22305 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22309 $as_echo "$as_me: WARNING: could not find crypt" >&2;}
22310 if test $ol_enable_crypt = yes ; then
22311 as_fn_error "could not find crypt, select appropriate options or disable" "$LINENO" 5
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22315 $as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22320 if test $ol_enable_proctitle != no ; then
22321 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
22322 if test "x$ac_cv_func_setproctitle" = x""yes; then :
22323 have_setproctitle=yes
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
22327 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
22328 if test "${ac_cv_lib_util_setproctitle+set}" = set; then :
22329 $as_echo_n "(cached) " >&6
22331 ac_check_lib_save_LIBS=$LIBS
22332 LIBS="-lutil $LIBS"
22333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h. */
22336 /* Override any GCC internal prototype to avoid an error.
22337 Use char because int might match the return type of a GCC
22338 builtin and then its argument prototype would still apply. */
22342 char setproctitle ();
22346 return setproctitle ();
22351 if ac_fn_c_try_link "$LINENO"; then :
22352 ac_cv_lib_util_setproctitle=yes
22354 ac_cv_lib_util_setproctitle=no
22356 rm -f core conftest.err conftest.$ac_objext \
22357 conftest$ac_exeext conftest.$ac_ext
22358 LIBS=$ac_check_lib_save_LIBS
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
22361 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
22362 if test "x$ac_cv_lib_util_setproctitle" = x""yes; then :
22363 have_setproctitle=yes
22364 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22366 have_setproctitle=no
22367 case " $LIBOBJS " in
22368 *" setproctitle.$ac_objext "* ) ;;
22369 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
22373 LIBSRCS="$LIBSRCS setproctitle.c"
22379 if test $have_setproctitle = yes ; then
22381 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
22386 if test $ol_enable_slp != no ; then
22387 for ac_header in slp.h
22389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22390 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22391 eval as_val=\$$as_ac_Header
22392 if test "x$as_val" = x""yes; then :
22393 cat >>confdefs.h <<_ACEOF
22394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22402 if test $ac_cv_header_slp_h = yes ; then
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22404 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22405 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then :
22406 $as_echo_n "(cached) " >&6
22408 ac_check_lib_save_LIBS=$LIBS
22410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22411 /* end confdefs.h. */
22413 /* Override any GCC internal prototype to avoid an error.
22414 Use char because int might match the return type of a GCC
22415 builtin and then its argument prototype would still apply. */
22428 if ac_fn_c_try_link "$LINENO"; then :
22429 ac_cv_lib_slp_SLPOpen=yes
22431 ac_cv_lib_slp_SLPOpen=no
22433 rm -f core conftest.err conftest.$ac_objext \
22434 conftest$ac_exeext conftest.$ac_ext
22435 LIBS=$ac_check_lib_save_LIBS
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22438 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22439 if test "x$ac_cv_lib_slp_SLPOpen" = x""yes; then :
22445 if test $have_slp = yes ; then
22447 $as_echo "#define HAVE_SLP 1" >>confdefs.h
22449 SLAPD_SLP_LIBS=-lslp
22452 elif test $ol_enable_slp = yes ; then
22453 as_fn_error "SLP not found" "$LINENO" 5
22458 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22459 if test "x$ac_cv_type_mode_t" = x""yes; then :
22463 cat >>confdefs.h <<_ACEOF
22469 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22470 if test "x$ac_cv_type_off_t" = x""yes; then :
22474 cat >>confdefs.h <<_ACEOF
22480 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22481 if test "x$ac_cv_type_pid_t" = x""yes; then :
22485 cat >>confdefs.h <<_ACEOF
22491 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22492 if test "x$ac_cv_type_ssize_t" = x""yes; then :
22496 cat >>confdefs.h <<_ACEOF
22497 #define ssize_t signed int
22502 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22503 if test "x$ac_cv_type_caddr_t" = x""yes; then :
22507 cat >>confdefs.h <<_ACEOF
22508 #define caddr_t char *
22513 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22514 if test "x$ac_cv_type_size_t" = x""yes; then :
22518 cat >>confdefs.h <<_ACEOF
22519 #define size_t unsigned
22525 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22526 if test "x$ac_cv_type_long_long" = x""yes; then :
22528 cat >>confdefs.h <<_ACEOF
22529 #define HAVE_LONG_LONG 1
22535 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22536 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
22538 cat >>confdefs.h <<_ACEOF
22539 #define HAVE_PTRDIFF_T 1
22547 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
22548 #ifdef HAVE_SYS_SOCKET_H
22549 #include <sys/socket.h>
22552 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
22558 $as_echo_n "checking the type of arg 3 to accept()... " >&6; }
22559 if test "${ol_cv_type_ber_socklen_t+set}" = set; then :
22560 $as_echo_n "(cached) " >&6
22563 set socklen_t int unsigned "unsigned long" long size_t
22564 test "$ac_cv_type_socklen_t" = yes || shift
22565 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
22566 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
22567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568 /* end confdefs.h. */
22569 $ac_includes_default
22570 #ifdef HAVE_SYS_SOCKET_H
22571 #include <sys/socket.h>
22573 extern int accept(int s, $addrtype *ap, $lentype *lp);
22579 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
22585 if ac_fn_c_try_compile "$LINENO"; then :
22586 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
22588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
22593 $as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
22595 cat >>confdefs.h <<_ACEOF
22596 #define ber_socklen_t $ol_cv_type_ber_socklen_t
22600 if test "$ac_cv_type_socklen_t" != yes; then
22602 cat >>confdefs.h <<_ACEOF
22603 #define socklen_t $ol_cv_type_ber_socklen_t
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22610 $as_echo_n "checking return type of signal handlers... " >&6; }
22611 if test "${ac_cv_type_signal+set}" = set; then :
22612 $as_echo_n "(cached) " >&6
22614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22615 /* end confdefs.h. */
22616 #include <sys/types.h>
22617 #include <signal.h>
22622 return *(signal (0, 0)) (0) == 1;
22627 if ac_fn_c_try_compile "$LINENO"; then :
22628 ac_cv_type_signal=int
22630 ac_cv_type_signal=void
22632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22635 $as_echo "$ac_cv_type_signal" >&6; }
22637 cat >>confdefs.h <<_ACEOF
22638 #define RETSIGTYPE $ac_cv_type_signal
22643 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
22644 #include <signal.h>
22647 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
22651 cat >>confdefs.h <<_ACEOF
22652 #define sig_atomic_t int
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22659 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22660 if test "${ac_cv_type_uid_t+set}" = set; then :
22661 $as_echo_n "(cached) " >&6
22663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22664 /* end confdefs.h. */
22665 #include <sys/types.h>
22668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22669 $EGREP "uid_t" >/dev/null 2>&1; then :
22670 ac_cv_type_uid_t=yes
22672 ac_cv_type_uid_t=no
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22678 $as_echo "$ac_cv_type_uid_t" >&6; }
22679 if test $ac_cv_type_uid_t = no; then
22681 $as_echo "#define uid_t int" >>confdefs.h
22684 $as_echo "#define gid_t int" >>confdefs.h
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22690 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22691 if test "${ac_cv_header_time+set}" = set; then :
22692 $as_echo_n "(cached) " >&6
22694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22695 /* end confdefs.h. */
22696 #include <sys/types.h>
22697 #include <sys/time.h>
22703 if ((struct tm *) 0)
22709 if ac_fn_c_try_compile "$LINENO"; then :
22710 ac_cv_header_time=yes
22712 ac_cv_header_time=no
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22717 $as_echo "$ac_cv_header_time" >&6; }
22718 if test $ac_cv_header_time = yes; then
22720 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22725 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22726 if test "${ac_cv_struct_tm+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h. */
22731 #include <sys/types.h>
22738 int *p = &tm.tm_sec;
22744 if ac_fn_c_try_compile "$LINENO"; then :
22745 ac_cv_struct_tm=time.h
22747 ac_cv_struct_tm=sys/time.h
22749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22752 $as_echo "$ac_cv_struct_tm" >&6; }
22753 if test $ac_cv_struct_tm = sys/time.h; then
22755 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22759 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22760 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
22762 cat >>confdefs.h <<_ACEOF
22763 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22769 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
22772 if test "x$ac_cv_member_struct_passwd_pw_gecos" = x""yes; then :
22774 cat >>confdefs.h <<_ACEOF
22775 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
22781 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
22784 if test "x$ac_cv_member_struct_passwd_pw_passwd" = x""yes; then :
22786 cat >>confdefs.h <<_ACEOF
22787 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
22795 $as_echo_n "checking if toupper() requires islower()... " >&6; }
22796 if test "${ol_cv_c_upper_lower+set}" = set; then :
22797 $as_echo_n "(cached) " >&6
22800 if test "$cross_compiling" = yes; then :
22801 ol_cv_c_upper_lower=safe
22803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22804 /* end confdefs.h. */
22809 if ('C' == toupper('C'))
22815 if ac_fn_c_try_run "$LINENO"; then :
22816 ol_cv_c_upper_lower=no
22818 ol_cv_c_upper_lower=yes
22820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22821 conftest.$ac_objext conftest.beam conftest.$ac_ext
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
22826 $as_echo "$ol_cv_c_upper_lower" >&6; }
22827 if test $ol_cv_c_upper_lower != no ; then
22829 $as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22834 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22835 if test "${ac_cv_c_const+set}" = set; then :
22836 $as_echo_n "(cached) " >&6
22838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22839 /* end confdefs.h. */
22844 /* FIXME: Include the comments suggested by Paul. */
22845 #ifndef __cplusplus
22846 /* Ultrix mips cc rejects this. */
22847 typedef int charset[2];
22849 /* SunOS 4.1.1 cc rejects this. */
22850 char const *const *pcpcc;
22852 /* NEC SVR4.0.2 mips cc rejects this. */
22853 struct point {int x, y;};
22854 static struct point const zero = {0,0};
22855 /* AIX XL C 1.02.0.0 rejects this.
22856 It does not let you subtract one const X* pointer from another in
22857 an arm of an if-expression whose if-part is not a constant
22859 const char *g = "string";
22860 pcpcc = &g + (g ? g-g : 0);
22861 /* HPUX 7.0 cc rejects these. */
22863 ppc = (char**) pcpcc;
22864 pcpcc = (char const *const *) ppc;
22865 { /* SCO 3.2v4 cc rejects this. */
22867 char const *s = 0 ? (char *) 0 : (char const *) 0;
22872 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22873 int x[] = {25, 17};
22874 const int *foo = &x[0];
22877 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22878 typedef const int *iptr;
22882 { /* AIX XL C 1.02.0.0 rejects this saying
22883 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22884 struct s { int j; const int *ap[3]; };
22885 struct s *b; b->j = 5;
22887 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22888 const int foo = 10;
22889 if (!foo) return 0;
22891 return !cs[0] && !zero.x;
22898 if ac_fn_c_try_compile "$LINENO"; then :
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22906 $as_echo "$ac_cv_c_const" >&6; }
22907 if test $ac_cv_c_const = no; then
22909 $as_echo "#define const /**/" >>confdefs.h
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
22914 $as_echo_n "checking if compiler understands volatile... " >&6; }
22915 if test "${ol_cv_c_volatile+set}" = set; then :
22916 $as_echo_n "(cached) " >&6
22918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22919 /* end confdefs.h. */
22924 volatile int a; int * volatile b = x ? &y : &z;
22925 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22931 if ac_fn_c_try_compile "$LINENO"; then :
22932 ol_cv_c_volatile=yes
22934 ol_cv_c_volatile=no
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
22939 $as_echo "$ol_cv_c_volatile" >&6; }
22940 if test $ol_cv_c_volatile = yes; then
22944 $as_echo "#define volatile /**/" >>confdefs.h
22949 if test $cross_compiling = yes ; then
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
22951 $as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
22953 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22957 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22958 if test "${ac_cv_c_bigendian+set}" = set; then :
22959 $as_echo_n "(cached) " >&6
22961 ac_cv_c_bigendian=unknown
22962 # See if we're dealing with a universal compiler.
22963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22964 /* end confdefs.h. */
22965 #ifndef __APPLE_CC__
22966 not a universal capable compiler
22971 if ac_fn_c_try_compile "$LINENO"; then :
22973 # Check for potential -arch flags. It is not universal unless
22974 # there are at least two -arch flags with different values.
22977 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22978 if test -n "$ac_prev"; then
22980 i?86 | x86_64 | ppc | ppc64)
22981 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22984 ac_cv_c_bigendian=universal
22990 elif test "x$ac_word" = "x-arch"; then
22995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22996 if test $ac_cv_c_bigendian = unknown; then
22997 # See if sys/param.h defines the BYTE_ORDER macro.
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h. */
23000 #include <sys/types.h>
23001 #include <sys/param.h>
23006 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23007 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23009 bogus endian macros
23016 if ac_fn_c_try_compile "$LINENO"; then :
23017 # It does; now see whether it defined to BIG_ENDIAN or not.
23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019 /* end confdefs.h. */
23020 #include <sys/types.h>
23021 #include <sys/param.h>
23026 #if BYTE_ORDER != BIG_ENDIAN
23034 if ac_fn_c_try_compile "$LINENO"; then :
23035 ac_cv_c_bigendian=yes
23037 ac_cv_c_bigendian=no
23039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23043 if test $ac_cv_c_bigendian = unknown; then
23044 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h. */
23047 #include <limits.h>
23052 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23053 bogus endian macros
23060 if ac_fn_c_try_compile "$LINENO"; then :
23061 # It does; now see whether it defined to _BIG_ENDIAN or not.
23062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23063 /* end confdefs.h. */
23064 #include <limits.h>
23069 #ifndef _BIG_ENDIAN
23077 if ac_fn_c_try_compile "$LINENO"; then :
23078 ac_cv_c_bigendian=yes
23080 ac_cv_c_bigendian=no
23082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23086 if test $ac_cv_c_bigendian = unknown; then
23087 # Compile a test program.
23088 if test "$cross_compiling" = yes; then :
23089 # Try to guess by grepping values from an object file.
23090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h. */
23092 short int ascii_mm[] =
23093 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23094 short int ascii_ii[] =
23095 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23096 int use_ascii (int i) {
23097 return ascii_mm[i] + ascii_ii[i];
23099 short int ebcdic_ii[] =
23100 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23101 short int ebcdic_mm[] =
23102 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23103 int use_ebcdic (int i) {
23104 return ebcdic_mm[i] + ebcdic_ii[i];
23111 return use_ascii (foo) == use_ebcdic (foo);
23116 if ac_fn_c_try_compile "$LINENO"; then :
23117 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23118 ac_cv_c_bigendian=yes
23120 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23121 if test "$ac_cv_c_bigendian" = unknown; then
23122 ac_cv_c_bigendian=no
23124 # finding both strings is unlikely to happen, but who knows?
23125 ac_cv_c_bigendian=unknown
23129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23132 /* end confdefs.h. */
23133 $ac_includes_default
23138 /* Are we little or big endian? From Harbison&Steele. */
23142 char c[sizeof (long int)];
23145 return u.c[sizeof (long int) - 1] == 1;
23151 if ac_fn_c_try_run "$LINENO"; then :
23152 ac_cv_c_bigendian=no
23154 ac_cv_c_bigendian=yes
23156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23157 conftest.$ac_objext conftest.beam conftest.$ac_ext
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23163 $as_echo "$ac_cv_c_bigendian" >&6; }
23164 case $ac_cv_c_bigendian in #(
23166 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23172 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23176 as_fn_error "unknown endianness
23177 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23182 # The cast to long int works around a bug in the HP C Compiler
23183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23185 # This bug is HP SR number 8606223364.
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23187 $as_echo_n "checking size of short... " >&6; }
23188 if test "${ac_cv_sizeof_short+set}" = set; then :
23189 $as_echo_n "(cached) " >&6
23191 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23194 if test "$ac_cv_type_short" = yes; then
23195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23197 { as_fn_set_status 77
23198 as_fn_error "cannot compute sizeof (short)
23199 See \`config.log' for more details." "$LINENO" 5; }; }
23201 ac_cv_sizeof_short=0
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23207 $as_echo "$ac_cv_sizeof_short" >&6; }
23211 cat >>confdefs.h <<_ACEOF
23212 #define SIZEOF_SHORT $ac_cv_sizeof_short
23216 # The cast to long int works around a bug in the HP C Compiler
23217 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23218 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23219 # This bug is HP SR number 8606223364.
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23221 $as_echo_n "checking size of int... " >&6; }
23222 if test "${ac_cv_sizeof_int+set}" = set; then :
23223 $as_echo_n "(cached) " >&6
23225 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23228 if test "$ac_cv_type_int" = yes; then
23229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23231 { as_fn_set_status 77
23232 as_fn_error "cannot compute sizeof (int)
23233 See \`config.log' for more details." "$LINENO" 5; }; }
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23241 $as_echo "$ac_cv_sizeof_int" >&6; }
23245 cat >>confdefs.h <<_ACEOF
23246 #define SIZEOF_INT $ac_cv_sizeof_int
23250 # The cast to long int works around a bug in the HP C Compiler
23251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23253 # This bug is HP SR number 8606223364.
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23255 $as_echo_n "checking size of long... " >&6; }
23256 if test "${ac_cv_sizeof_long+set}" = set; then :
23257 $as_echo_n "(cached) " >&6
23259 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23262 if test "$ac_cv_type_long" = yes; then
23263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23265 { as_fn_set_status 77
23266 as_fn_error "cannot compute sizeof (long)
23267 See \`config.log' for more details." "$LINENO" 5; }; }
23269 ac_cv_sizeof_long=0
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23275 $as_echo "$ac_cv_sizeof_long" >&6; }
23279 cat >>confdefs.h <<_ACEOF
23280 #define SIZEOF_LONG $ac_cv_sizeof_long
23284 # The cast to long int works around a bug in the HP C Compiler
23285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23287 # This bug is HP SR number 8606223364.
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23289 $as_echo_n "checking size of long long... " >&6; }
23290 if test "${ac_cv_sizeof_long_long+set}" = set; then :
23291 $as_echo_n "(cached) " >&6
23293 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23296 if test "$ac_cv_type_long_long" = yes; then
23297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23299 { as_fn_set_status 77
23300 as_fn_error "cannot compute sizeof (long long)
23301 See \`config.log' for more details." "$LINENO" 5; }; }
23303 ac_cv_sizeof_long_long=0
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23309 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23313 cat >>confdefs.h <<_ACEOF
23314 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23318 # The cast to long int works around a bug in the HP C Compiler
23319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23321 # This bug is HP SR number 8606223364.
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23323 $as_echo_n "checking size of wchar_t... " >&6; }
23324 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
23325 $as_echo_n "(cached) " >&6
23327 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
23330 if test "$ac_cv_type_wchar_t" = yes; then
23331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23333 { as_fn_set_status 77
23334 as_fn_error "cannot compute sizeof (wchar_t)
23335 See \`config.log' for more details." "$LINENO" 5; }; }
23337 ac_cv_sizeof_wchar_t=0
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23343 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23347 cat >>confdefs.h <<_ACEOF
23348 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23353 if test "$ac_cv_sizeof_int" -lt 4 ; then
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23355 $as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23358 $as_echo "#define LBER_INT_T long" >>confdefs.h
23362 $as_echo "#define LBER_INT_T int" >>confdefs.h
23367 $as_echo "#define LBER_LEN_T long" >>confdefs.h
23370 $as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23373 $as_echo "#define LBER_TAG_T long" >>confdefs.h
23376 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23377 if test $ac_cv_sizeof_long_long -gt 4 ; then
23378 ol_with_mp=longlong
23380 $as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23382 elif test $ol_with_mp = longlong ; then
23383 as_fn_error "long long unusable for multiple precision" "$LINENO" 5
23386 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23387 if test $ac_cv_sizeof_long -gt 4 ; then
23390 $as_echo "#define USE_MP_LONG 1" >>confdefs.h
23392 elif test $ol_with_mp = long ; then
23393 as_fn_error "long unusable for multiple precision" "$LINENO" 5
23396 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23397 for ac_header in openssl/bn.h
23399 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23400 if test "x$ac_cv_header_openssl_bn_h" = x""yes; then :
23401 cat >>confdefs.h <<_ACEOF
23402 #define HAVE_OPENSSL_BN_H 1
23409 for ac_header in openssl/crypto.h
23411 ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23412 if test "x$ac_cv_header_openssl_crypto_h" = x""yes; then :
23413 cat >>confdefs.h <<_ACEOF
23414 #define HAVE_OPENSSL_CRYPTO_H 1
23421 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23422 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23423 test "$ol_with_tls" = "found" ; then
23426 $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23428 elif test $ol_with_mp = bignum ; then
23429 as_fn_error "bignum not available" "$LINENO" 5
23432 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23433 for ac_header in gmp.h
23435 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23436 if test "x$ac_cv_header_gmp_h" = x""yes; then :
23437 cat >>confdefs.h <<_ACEOF
23438 #define HAVE_GMP_H 1
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23446 $as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23447 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then :
23448 $as_echo_n "(cached) " >&6
23450 ac_check_lib_save_LIBS=$LIBS
23452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23453 /* end confdefs.h. */
23455 /* Override any GCC internal prototype to avoid an error.
23456 Use char because int might match the return type of a GCC
23457 builtin and then its argument prototype would still apply. */
23461 char __gmpz_add_ui ();
23465 return __gmpz_add_ui ();
23470 if ac_fn_c_try_link "$LINENO"; then :
23471 ac_cv_lib_gmp___gmpz_add_ui=yes
23473 ac_cv_lib_gmp___gmpz_add_ui=no
23475 rm -f core conftest.err conftest.$ac_objext \
23476 conftest$ac_exeext conftest.$ac_ext
23477 LIBS=$ac_check_lib_save_LIBS
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23480 $as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23481 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = x""yes; then :
23482 cat >>confdefs.h <<_ACEOF
23483 #define HAVE_LIBGMP 1
23490 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23492 $as_echo "#define USE_MP_GMP 1" >>confdefs.h
23495 elif test $ol_with_mp = gmp ; then
23496 as_fn_error "gmp not available" "$LINENO" 5
23499 if test $ol_with_mp = auto ; then
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23504 $as_echo_n "checking for working memcmp... " >&6; }
23505 if test "${ac_cv_func_memcmp_working+set}" = set; then :
23506 $as_echo_n "(cached) " >&6
23508 if test "$cross_compiling" = yes; then :
23509 ac_cv_func_memcmp_working=no
23511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23512 /* end confdefs.h. */
23513 $ac_includes_default
23518 /* Some versions of memcmp are not 8-bit clean. */
23519 char c0 = '\100', c1 = '\200', c2 = '\201';
23520 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23523 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23524 or more and with at least one buffer not starting on a 4-byte boundary.
23525 William Lewis provided this test program. */
23530 for (i = 0; i < 4; i++)
23534 strcpy (a, "--------01111111");
23535 strcpy (b, "--------10000000");
23536 if (memcmp (a, b, 16) >= 0)
23546 if ac_fn_c_try_run "$LINENO"; then :
23547 ac_cv_func_memcmp_working=yes
23549 ac_cv_func_memcmp_working=no
23551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23552 conftest.$ac_objext conftest.beam conftest.$ac_ext
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23557 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23558 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23559 *" memcmp.$ac_objext "* ) ;;
23560 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23566 if test $ac_cv_func_memcmp_working = no ; then
23568 $as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23572 for ac_func in strftime
23574 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
23575 if test "x$ac_cv_func_strftime" = x""yes; then :
23576 cat >>confdefs.h <<_ACEOF
23577 #define HAVE_STRFTIME 1
23581 # strftime is in -lintl on SCO UNIX.
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
23583 $as_echo_n "checking for strftime in -lintl... " >&6; }
23584 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
23585 $as_echo_n "(cached) " >&6
23587 ac_check_lib_save_LIBS=$LIBS
23588 LIBS="-lintl $LIBS"
23589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23590 /* end confdefs.h. */
23592 /* Override any GCC internal prototype to avoid an error.
23593 Use char because int might match the return type of a GCC
23594 builtin and then its argument prototype would still apply. */
23602 return strftime ();
23607 if ac_fn_c_try_link "$LINENO"; then :
23608 ac_cv_lib_intl_strftime=yes
23610 ac_cv_lib_intl_strftime=no
23612 rm -f core conftest.err conftest.$ac_objext \
23613 conftest$ac_exeext conftest.$ac_ext
23614 LIBS=$ac_check_lib_save_LIBS
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
23617 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23618 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
23619 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
23621 LIBS="-lintl $LIBS"
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
23629 $as_echo_n "checking for inet_aton()... " >&6; }
23630 if test "${ol_cv_func_inet_aton+set}" = set; then :
23631 $as_echo_n "(cached) " >&6
23633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23634 /* end confdefs.h. */
23636 #ifdef HAVE_SYS_TYPES_H
23637 # include <sys/types.h>
23639 #ifdef HAVE_SYS_SOCKET_H
23640 # include <sys/socket.h>
23641 # ifdef HAVE_SYS_SELECT_H
23642 # include <sys/select.h>
23644 # include <netinet/in.h>
23645 # ifdef HAVE_ARPA_INET_H
23646 # include <arpa/inet.h>
23654 int rc = inet_aton( "255.255.255.255", &in );
23659 if ac_fn_c_try_link "$LINENO"; then :
23660 ol_cv_func_inet_aton=yes
23662 ol_cv_func_inet_aton=no
23664 rm -f core conftest.err conftest.$ac_objext \
23665 conftest$ac_exeext conftest.$ac_ext
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
23668 $as_echo "$ol_cv_func_inet_aton" >&6; }
23669 if test $ol_cv_func_inet_aton != no; then
23671 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
23676 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
23677 if test "x$ac_cv_func__spawnlp" = x""yes; then :
23679 $as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
23684 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
23685 if test "x$ac_cv_func__snprintf" = x""yes; then :
23686 ac_cv_func_snprintf=yes
23688 $as_echo "#define snprintf _snprintf" >>confdefs.h
23694 for ac_func in vsnprintf _vsnprintf
23696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23698 eval as_val=\$$as_ac_var
23699 if test "x$as_val" = x""yes; then :
23700 cat >>confdefs.h <<_ACEOF
23701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23708 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
23709 ac_cv_func_vsnprintf=yes
23711 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
23715 for ac_func in vprintf
23717 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23718 if test "x$ac_cv_func_vprintf" = x""yes; then :
23719 cat >>confdefs.h <<_ACEOF
23720 #define HAVE_VPRINTF 1
23723 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23724 if test "x$ac_cv_func__doprnt" = x""yes; then :
23726 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23735 if test $ac_cv_func_vprintf = yes ; then
23736 for ac_func in snprintf vsnprintf
23738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23739 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23740 eval as_val=\$$as_ac_var
23741 if test "x$as_val" = x""yes; then :
23742 cat >>confdefs.h <<_ACEOF
23743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23812 eval as_val=\$$as_ac_var
23813 if test "x$as_val" = x""yes; then :
23814 cat >>confdefs.h <<_ACEOF
23815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23822 for ac_func in getopt getpeereid
23824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23825 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23826 eval as_val=\$$as_ac_var
23827 if test "x$as_val" = x""yes; then :
23828 cat >>confdefs.h <<_ACEOF
23829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23833 case " $LIBOBJS " in
23834 *" $ac_func.$ac_objext "* ) ;;
23835 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23844 if test "$ac_cv_func_getopt" != yes; then
23845 LIBSRCS="$LIBSRCS getopt.c"
23848 if test "$ac_cv_func_getpeereid" != yes; then
23849 for ac_func in getpeerucred
23851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23853 eval as_val=\$$as_ac_var
23854 if test "x$as_val" = x""yes; then :
23855 cat >>confdefs.h <<_ACEOF
23856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23862 if test "$ac_cv_func_getpeerucred" != yes ; then
23863 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
23864 #ifdef HAVE_SYS_SOCKET_H
23865 #include <sys/socket.h>
23868 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = x""yes; then :
23870 cat >>confdefs.h <<_ACEOF
23871 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
23877 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
23878 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
23879 #ifdef HAVE_SYS_SOCKET_H
23880 #include <sys/socket.h>
23883 if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
23885 cat >>confdefs.h <<_ACEOF
23886 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
23893 ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
23894 if test "x$ac_cv_member_struct_stat_st_fstype" = x""yes; then :
23896 cat >>confdefs.h <<_ACEOF
23897 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
23902 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
23903 if test "x$ac_cv_member_struct_stat_st_vfstype" = x""yes; then :
23905 cat >>confdefs.h <<_ACEOF
23906 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
23912 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
23913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23914 /* end confdefs.h. */
23915 struct stat st; char *ptr=st.st_fstype;
23917 if ac_fn_c_try_compile "$LINENO"; then :
23919 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
23923 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
23926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23929 LIBSRCS="$LIBSRCS getpeereid.c"
23932 if test "$ac_cv_func_snprintf" != yes ||
23933 test "$ac_cv_func_vsnprintf" != yes; then
23934 if test "$ac_cv_func_snprintf" != yes; then
23936 $as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
23939 if test "$ac_cv_func_vsnprintf" != yes; then
23941 $as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
23947 if test "$ol_enable_slapi" != no ; then
23948 for ac_header in ltdl.h
23950 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
23951 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
23952 cat >>confdefs.h <<_ACEOF
23953 #define HAVE_LTDL_H 1
23961 if test $ac_cv_header_ltdl_h != yes ; then
23962 as_fn_error "could not locate <ltdl.h>" "$LINENO" 5
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
23965 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
23966 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
23967 $as_echo_n "(cached) " >&6
23969 ac_check_lib_save_LIBS=$LIBS
23970 LIBS="-lltdl $LIBS"
23971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972 /* end confdefs.h. */
23974 /* Override any GCC internal prototype to avoid an error.
23975 Use char because int might match the return type of a GCC
23976 builtin and then its argument prototype would still apply. */
23984 return lt_dlinit ();
23989 if ac_fn_c_try_link "$LINENO"; then :
23990 ac_cv_lib_ltdl_lt_dlinit=yes
23992 ac_cv_lib_ltdl_lt_dlinit=no
23994 rm -f core conftest.err conftest.$ac_objext \
23995 conftest$ac_exeext conftest.$ac_ext
23996 LIBS=$ac_check_lib_save_LIBS
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23999 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24000 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
24003 LIBSLAPI=slapi/libslapi.la
24005 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24009 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
24014 $as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24018 if test "$ol_enable_debug" != no ; then
24019 if test "$ol_enable_debug" = traditional; then
24021 $as_echo "#define OLD_DEBUG 1" >>confdefs.h
24025 $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24028 if test "$ol_enable_syslog" = yes ; then
24030 $as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24033 if test "$ol_enable_proctitle" != no ; then
24035 $as_echo "#define LDAP_PROCTITLE 1" >>confdefs.h
24038 if test "$ol_enable_referrals" != no ; then
24040 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24043 if test "$ol_enable_local" != no; then
24045 $as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24048 if test "$ol_link_ipv6" != no; then
24050 $as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24053 if test "$ol_enable_cleartext" != no ; then
24055 $as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24058 if test "$ol_enable_crypt" != no ; then
24060 $as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24063 if test "$ol_link_spasswd" != no ; then
24065 $as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24068 if test "$ol_enable_rlookups" != no ; then
24070 $as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24073 if test "$ol_enable_aci" != no ; then
24074 if test $ol_enable_dynacl = no ; then
24075 ol_enable_dynacl=yes
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ACIs need dynacl" >&5
24077 $as_echo "$as_me: WARNING: ACIs need dynacl" >&2;}
24079 if test "$ol_enable_aci" = mod ; then
24080 MFLAG=SLAPD_MOD_DYNAMIC
24081 as_fn_error "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24083 MFLAG=SLAPD_MOD_STATIC
24085 WITH_ACI_ENABLED=$ol_enable_aci
24087 cat >>confdefs.h <<_ACEOF
24088 #define SLAPD_ACI_ENABLED $MFLAG
24092 WITH_ACI_ENABLED=no
24094 if test "$ol_enable_dynacl" != no ; then
24096 $as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24100 if test "$ol_link_modules" != no ; then
24102 $as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24105 SLAPD_MODULES_LDFLAGS="-dlopen self"
24109 $as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24112 $as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24115 if test "$ol_enable_monitor" != no ; then
24117 BUILD_MONITOR=$ol_enable_monitor
24118 if test "$ol_enable_monitor" = mod ; then
24119 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24120 MFLAG=SLAPD_MOD_DYNAMIC
24122 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24123 MFLAG=SLAPD_MOD_STATIC
24126 cat >>confdefs.h <<_ACEOF
24127 #define SLAPD_MONITOR $MFLAG
24132 if test "$ol_enable_bdb" != no ; then
24134 BUILD_BDB=$ol_enable_bdb
24135 if test "$ol_enable_bdb" = mod ; then
24136 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24137 MFLAG=SLAPD_MOD_DYNAMIC
24139 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24140 MFLAG=SLAPD_MOD_STATIC
24143 cat >>confdefs.h <<_ACEOF
24144 #define SLAPD_BDB $MFLAG
24149 if test "$ol_enable_dnssrv" != no ; then
24151 BUILD_DNSSRV=$ol_enable_dnssrv
24152 if test "$ol_enable_dnssrv" = mod ; then
24153 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24154 MFLAG=SLAPD_MOD_DYNAMIC
24156 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24157 MFLAG=SLAPD_MOD_STATIC
24160 cat >>confdefs.h <<_ACEOF
24161 #define SLAPD_DNSSRV $MFLAG
24166 if test "$ol_enable_hdb" != no ; then
24168 BUILD_HDB=$ol_enable_hdb
24169 if test "$ol_enable_hdb" = mod ; then
24170 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24171 MFLAG=SLAPD_MOD_DYNAMIC
24173 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24174 MFLAG=SLAPD_MOD_STATIC
24177 cat >>confdefs.h <<_ACEOF
24178 #define SLAPD_HDB $MFLAG
24183 if test "$ol_enable_ldap" != no ; then
24185 BUILD_LDAP=$ol_enable_ldap
24186 if test "$ol_enable_ldap" = mod ; then
24187 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24188 MFLAG=SLAPD_MOD_DYNAMIC
24190 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24191 MFLAG=SLAPD_MOD_STATIC
24194 cat >>confdefs.h <<_ACEOF
24195 #define SLAPD_LDAP $MFLAG
24200 if test "$ol_enable_meta" != no ; then
24202 BUILD_META=$ol_enable_meta
24204 if test "$ol_enable_meta" = mod ; then
24205 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24206 MFLAG=SLAPD_MOD_DYNAMIC
24208 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24209 MFLAG=SLAPD_MOD_STATIC
24212 cat >>confdefs.h <<_ACEOF
24213 #define SLAPD_META $MFLAG
24218 if test "$ol_enable_ndb" != no ; then
24220 BUILD_NDB=$ol_enable_ndb
24221 if test "$ol_enable_ndb" = mod ; then
24222 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
24223 MFLAG=SLAPD_MOD_DYNAMIC
24225 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
24226 MFLAG=SLAPD_MOD_STATIC
24229 cat >>confdefs.h <<_ACEOF
24230 #define SLAPD_NDB $MFLAG
24235 if test "$ol_enable_null" != no ; then
24237 BUILD_NULL=$ol_enable_null
24238 if test "$ol_enable_null" = mod ; then
24239 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24240 MFLAG=SLAPD_MOD_DYNAMIC
24242 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24243 MFLAG=SLAPD_MOD_STATIC
24246 cat >>confdefs.h <<_ACEOF
24247 #define SLAPD_NULL $MFLAG
24252 if test "$ol_enable_passwd" != no ; then
24254 BUILD_PASSWD=$ol_enable_passwd
24255 if test "$ol_enable_passwd" = mod ; then
24256 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24257 MFLAG=SLAPD_MOD_DYNAMIC
24259 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24260 MFLAG=SLAPD_MOD_STATIC
24263 cat >>confdefs.h <<_ACEOF
24264 #define SLAPD_PASSWD $MFLAG
24269 if test "$ol_link_perl" != no ; then
24271 BUILD_PERL=$ol_enable_perl
24272 if test "$ol_enable_perl" = mod ; then
24273 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24274 MFLAG=SLAPD_MOD_DYNAMIC
24276 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24277 MFLAG=SLAPD_MOD_STATIC
24280 cat >>confdefs.h <<_ACEOF
24281 #define SLAPD_PERL $MFLAG
24286 if test "$ol_enable_relay" != no ; then
24288 BUILD_RELAY=$ol_enable_relay
24289 if test "$ol_enable_relay" = mod ; then
24290 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24291 MFLAG=SLAPD_MOD_DYNAMIC
24293 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24294 MFLAG=SLAPD_MOD_STATIC
24297 cat >>confdefs.h <<_ACEOF
24298 #define SLAPD_RELAY $MFLAG
24303 if test "$ol_enable_shell" != no ; then
24304 if test "$ol_link_threads" != no ; then
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of --without-threads is recommended with back-shell" >&5
24306 $as_echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
24309 BUILD_SHELL=$ol_enable_shell
24310 if test "$ol_enable_shell" = mod ; then
24311 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24312 MFLAG=SLAPD_MOD_DYNAMIC
24314 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24315 MFLAG=SLAPD_MOD_STATIC
24318 cat >>confdefs.h <<_ACEOF
24319 #define SLAPD_SHELL $MFLAG
24324 if test "$ol_enable_sock" != no ; then
24326 BUILD_SOCK=$ol_enable_sock
24327 if test "$ol_enable_sock" = mod ; then
24328 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24329 MFLAG=SLAPD_MOD_DYNAMIC
24331 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24332 MFLAG=SLAPD_MOD_STATIC
24335 cat >>confdefs.h <<_ACEOF
24336 #define SLAPD_SOCK $MFLAG
24341 if test "$ol_link_sql" != no ; then
24343 BUILD_SQL=$ol_enable_sql
24344 if test "$ol_enable_sql" = mod; then
24345 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24346 MFLAG=SLAPD_MOD_DYNAMIC
24348 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24349 MFLAG=SLAPD_MOD_STATIC
24352 cat >>confdefs.h <<_ACEOF
24353 #define SLAPD_SQL $MFLAG
24358 if test "$ol_enable_accesslog" != no ; then
24359 BUILD_ACCESSLOG=$ol_enable_accesslog
24360 if test "$ol_enable_accesslog" = mod ; then
24361 MFLAG=SLAPD_MOD_DYNAMIC
24362 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24364 MFLAG=SLAPD_MOD_STATIC
24365 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24368 cat >>confdefs.h <<_ACEOF
24369 #define SLAPD_OVER_ACCESSLOG $MFLAG
24374 if test "$ol_enable_auditlog" != no ; then
24375 BUILD_AUDITLOG=$ol_enable_auditlog
24376 if test "$ol_enable_auditlog" = mod ; then
24377 MFLAG=SLAPD_MOD_DYNAMIC
24378 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24380 MFLAG=SLAPD_MOD_STATIC
24381 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24384 cat >>confdefs.h <<_ACEOF
24385 #define SLAPD_OVER_AUDITLOG $MFLAG
24390 if test "$ol_enable_collect" != no ; then
24391 BUILD_COLLECT=$ol_enable_collect
24392 if test "$ol_enable_collect" = mod ; then
24393 MFLAG=SLAPD_MOD_DYNAMIC
24394 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24396 MFLAG=SLAPD_MOD_STATIC
24397 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24400 cat >>confdefs.h <<_ACEOF
24401 #define SLAPD_OVER_COLLECT $MFLAG
24406 if test "$ol_enable_constraint" != no ; then
24407 BUILD_CONSTRAINT=$ol_enable_constraint
24408 if test "$ol_enable_constraint" = mod ; then
24409 MFLAG=SLAPD_MOD_DYNAMIC
24410 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24412 MFLAG=SLAPD_MOD_STATIC
24413 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24416 cat >>confdefs.h <<_ACEOF
24417 #define SLAPD_OVER_CONSTRAINT $MFLAG
24422 if test "$ol_enable_dds" != no ; then
24423 BUILD_DDS=$ol_enable_dds
24424 if test "$ol_enable_dds" = mod ; then
24425 MFLAG=SLAPD_MOD_DYNAMIC
24426 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24428 MFLAG=SLAPD_MOD_STATIC
24429 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24432 cat >>confdefs.h <<_ACEOF
24433 #define SLAPD_OVER_DDS $MFLAG
24438 if test "$ol_enable_deref" != no ; then
24439 BUILD_DEREF=$ol_enable_deref
24440 if test "$ol_enable_deref" = mod ; then
24441 MFLAG=SLAPD_MOD_DYNAMIC
24442 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24444 MFLAG=SLAPD_MOD_STATIC
24445 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24448 cat >>confdefs.h <<_ACEOF
24449 #define SLAPD_OVER_DEREF $MFLAG
24454 if test "$ol_enable_dyngroup" != no ; then
24455 BUILD_DYNGROUP=$ol_enable_dyngroup
24456 if test "$ol_enable_dyngroup" = mod ; then
24457 MFLAG=SLAPD_MOD_DYNAMIC
24458 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24460 MFLAG=SLAPD_MOD_STATIC
24461 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24464 cat >>confdefs.h <<_ACEOF
24465 #define SLAPD_OVER_DYNGROUP $MFLAG
24470 if test "$ol_enable_dynlist" != no ; then
24471 BUILD_DYNLIST=$ol_enable_dynlist
24472 if test "$ol_enable_dynlist" = mod ; then
24473 MFLAG=SLAPD_MOD_DYNAMIC
24474 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24476 MFLAG=SLAPD_MOD_STATIC
24477 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24480 cat >>confdefs.h <<_ACEOF
24481 #define SLAPD_OVER_DYNLIST $MFLAG
24486 if test "$ol_enable_memberof" != no ; then
24487 BUILD_MEMBEROF=$ol_enable_memberof
24488 if test "$ol_enable_memberof" = mod ; then
24489 MFLAG=SLAPD_MOD_DYNAMIC
24490 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24492 MFLAG=SLAPD_MOD_STATIC
24493 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24496 cat >>confdefs.h <<_ACEOF
24497 #define SLAPD_OVER_MEMBEROF $MFLAG
24502 if test "$ol_enable_ppolicy" != no ; then
24503 BUILD_PPOLICY=$ol_enable_ppolicy
24504 if test "$ol_enable_ppolicy" = mod ; then
24505 MFLAG=SLAPD_MOD_DYNAMIC
24506 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24508 MFLAG=SLAPD_MOD_STATIC
24509 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24512 cat >>confdefs.h <<_ACEOF
24513 #define SLAPD_OVER_PPOLICY $MFLAG
24518 if test "$ol_enable_proxycache" != no ; then
24519 BUILD_PROXYCACHE=$ol_enable_proxycache
24520 if test "$ol_enable_proxycache" = mod ; then
24521 MFLAG=SLAPD_MOD_DYNAMIC
24522 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24524 MFLAG=SLAPD_MOD_STATIC
24525 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24528 cat >>confdefs.h <<_ACEOF
24529 #define SLAPD_OVER_PROXYCACHE $MFLAG
24534 if test "$ol_enable_refint" != no ; then
24535 BUILD_REFINT=$ol_enable_refint
24536 if test "$ol_enable_refint" = mod ; then
24537 MFLAG=SLAPD_MOD_DYNAMIC
24538 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24540 MFLAG=SLAPD_MOD_STATIC
24541 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24544 cat >>confdefs.h <<_ACEOF
24545 #define SLAPD_OVER_REFINT $MFLAG
24550 if test "$ol_enable_retcode" != no ; then
24551 BUILD_RETCODE=$ol_enable_retcode
24552 if test "$ol_enable_retcode" = mod ; then
24553 MFLAG=SLAPD_MOD_DYNAMIC
24554 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
24556 MFLAG=SLAPD_MOD_STATIC
24557 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
24560 cat >>confdefs.h <<_ACEOF
24561 #define SLAPD_OVER_RETCODE $MFLAG
24566 if test "$ol_enable_rwm" != no ; then
24568 BUILD_RWM=$ol_enable_rwm
24569 if test "$ol_enable_rwm" = mod ; then
24570 MFLAG=SLAPD_MOD_DYNAMIC
24571 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24573 MFLAG=SLAPD_MOD_STATIC
24574 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
24577 cat >>confdefs.h <<_ACEOF
24578 #define SLAPD_OVER_RWM $MFLAG
24583 if test "$ol_enable_seqmod" != no ; then
24584 BUILD_SEQMOD=$ol_enable_seqmod
24585 if test "$ol_enable_seqmod" = mod ; then
24586 MFLAG=SLAPD_MOD_DYNAMIC
24587 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
24589 MFLAG=SLAPD_MOD_STATIC
24590 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
24593 cat >>confdefs.h <<_ACEOF
24594 #define SLAPD_OVER_SEQMOD $MFLAG
24599 if test "$ol_enable_sssvlv" != no ; then
24600 BUILD_SSSVLV=$ol_enable_sssvlv
24601 if test "$ol_enable_sssvlv" = mod ; then
24602 MFLAG=SLAPD_MOD_DYNAMIC
24603 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
24605 MFLAG=SLAPD_MOD_STATIC
24606 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
24609 cat >>confdefs.h <<_ACEOF
24610 #define SLAPD_OVER_SSSVLV $MFLAG
24615 if test "$ol_enable_syncprov" != no ; then
24616 BUILD_SYNCPROV=$ol_enable_syncprov
24617 if test "$ol_enable_syncprov" = mod ; then
24618 MFLAG=SLAPD_MOD_DYNAMIC
24619 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
24621 MFLAG=SLAPD_MOD_STATIC
24622 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
24625 cat >>confdefs.h <<_ACEOF
24626 #define SLAPD_OVER_SYNCPROV $MFLAG
24631 if test "$ol_enable_translucent" != no ; then
24632 BUILD_TRANSLUCENT=$ol_enable_translucent
24633 if test "$ol_enable_translucent" = mod ; then
24634 MFLAG=SLAPD_MOD_DYNAMIC
24635 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
24637 MFLAG=SLAPD_MOD_STATIC
24638 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
24641 cat >>confdefs.h <<_ACEOF
24642 #define SLAPD_OVER_TRANSLUCENT $MFLAG
24647 if test "$ol_enable_unique" != no ; then
24648 BUILD_UNIQUE=$ol_enable_unique
24649 if test "$ol_enable_unique" = mod ; then
24650 MFLAG=SLAPD_MOD_DYNAMIC
24651 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24653 MFLAG=SLAPD_MOD_STATIC
24654 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
24657 cat >>confdefs.h <<_ACEOF
24658 #define SLAPD_OVER_UNIQUE $MFLAG
24663 if test "$ol_enable_valsort" != no ; then
24664 BUILD_VALSORT=$ol_enable_valsort
24665 if test "$ol_enable_valsort" = mod ; then
24666 MFLAG=SLAPD_MOD_DYNAMIC
24667 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
24669 MFLAG=SLAPD_MOD_STATIC
24670 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
24673 cat >>confdefs.h <<_ACEOF
24674 #define SLAPD_OVER_VALSORT $MFLAG
24679 if test "$ol_enable_rewrite" != no ; then
24681 $as_echo "#define ENABLE_REWRITE 1" >>confdefs.h
24686 if test "$ol_enable_slapi" != no ; then
24688 $as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
24691 SLAPD_SLAPI_DEPEND=libslapi.a
24696 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
24698 SLAPD_MODULES_LDFLAGS=
24792 # Check whether --with-xxinstall was given.
24793 if test "${with_xxinstall+set}" = set; then :
24794 withval=$with_xxinstall;
24799 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
24802 ac_config_commands="$ac_config_commands default"
24806 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24807 # Let make expand exec_prefix.
24808 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24810 DEFS=-DHAVE_CONFIG_H
24814 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24815 # 1. Remove the extension, and $U if already installed.
24816 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24817 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24818 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24819 # will be set to the directory where LIBOBJS objects are built.
24820 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24821 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24823 LIBOBJS=$ac_libobjs
24825 LTLIBOBJS=$ac_ltlibobjs
24828 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24829 as_fn_error "conditional \"AMDEP\" was never defined.
24830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24832 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24833 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24836 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24837 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24842 : ${CONFIG_STATUS=./config.status}
24844 ac_clean_files_save=$ac_clean_files
24845 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24847 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24849 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24851 # Generated by $as_me.
24852 # Run this file to recreate the current configuration.
24853 # Compiler output produced by configure, useful for debugging
24854 # configure, is in config.log if it exists.
24857 ac_cs_recheck=false
24860 SHELL=\${CONFIG_SHELL-$SHELL}
24863 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24864 ## -------------------- ##
24865 ## M4sh Initialization. ##
24866 ## -------------------- ##
24868 # Be more Bourne compatible
24869 DUALCASE=1; export DUALCASE # for MKS sh
24870 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24873 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24874 # is contrary to our usage. Disable this feature.
24875 alias -g '${1+"$@"}'='"$@"'
24876 setopt NO_GLOB_SUBST
24878 case `(set -o) 2>/dev/null` in #(
24890 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24891 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24894 # Prefer a ksh shell builtin over an external printf program on Solaris,
24895 # but without wasting forks for bash or zsh.
24896 if test -z "$BASH_VERSION$ZSH_VERSION" \
24897 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24898 as_echo='print -r --'
24899 as_echo_n='print -rn --'
24900 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24901 as_echo='printf %s\n'
24902 as_echo_n='printf %s'
24904 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24905 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24906 as_echo_n='/usr/ucb/echo -n'
24908 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24909 as_echo_n_body='eval
24913 expr "X$arg" : "X\\(.*\\)$as_nl";
24914 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24916 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24918 export as_echo_n_body
24919 as_echo_n='sh -c $as_echo_n_body as_echo'
24921 export as_echo_body
24922 as_echo='sh -c $as_echo_body as_echo'
24925 # The user is always right.
24926 if test "${PATH_SEPARATOR+set}" != set; then
24928 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24929 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24936 # We need space, tab and new line, in precisely that order. Quoting is
24937 # there to prevent editors from complaining about space-tab.
24938 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24939 # splitting by setting IFS to empty value.)
24942 # Find who we are. Look in the path if we contain no directory separator.
24944 *[\\/]* ) as_myself=$0 ;;
24945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24946 for as_dir in $PATH
24949 test -z "$as_dir" && as_dir=.
24950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24956 # We did not find ourselves, most probably we were run as `sh COMMAND'
24957 # in which case we are not to be found in the path.
24958 if test "x$as_myself" = x; then
24961 if test ! -f "$as_myself"; then
24962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24966 # Unset variables that we do not need and which cause bugs (e.g. in
24967 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24968 # suppresses any "Segmentation fault" message there. '((' could
24969 # trigger a bug in pdksh 5.2.14.
24970 for as_var in BASH_ENV ENV MAIL MAILPATH
24971 do eval test x\${$as_var+set} = xset \
24972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24985 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24988 # as_fn_error ERROR [LINENO LOG_FD]
24989 # ---------------------------------
24990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24992 # script with status $?, using 1 if that was 0.
24995 as_status=$?; test $as_status -eq 0 && as_status=1
24997 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25000 $as_echo "$as_me: error: $1" >&2
25001 as_fn_exit $as_status
25005 # as_fn_set_status STATUS
25006 # -----------------------
25007 # Set $? to STATUS, without forking.
25008 as_fn_set_status ()
25011 } # as_fn_set_status
25013 # as_fn_exit STATUS
25014 # -----------------
25015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25019 as_fn_set_status $1
25025 # Portably unset VAR.
25028 { eval $1=; unset $1;}
25030 as_unset=as_fn_unset
25031 # as_fn_append VAR VALUE
25032 # ----------------------
25033 # Append the text in VALUE to the end of the definition contained in VAR. Take
25034 # advantage of any shell optimizations that allow amortized linear growth over
25035 # repeated appends, instead of the typical quadratic growth present in naive
25037 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25038 eval 'as_fn_append ()
25049 # as_fn_arith ARG...
25050 # ------------------
25051 # Perform arithmetic evaluation on the ARGs, and store the result in the
25052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25053 # must be portable across $(()) and expr.
25054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25055 eval 'as_fn_arith ()
25062 as_val=`expr "$@" || test $? -eq 1`
25067 if expr a : '\(a\)' >/dev/null 2>&1 &&
25068 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25074 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25075 as_basename=basename
25080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25086 as_me=`$as_basename -- "$0" ||
25087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25088 X"$0" : 'X\(//\)$' \| \
25089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25091 sed '/^.*\/\([^/][^/]*\)\/*$/{
25105 # Avoid depending upon Character Ranges.
25106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25109 as_cr_digits='0123456789'
25110 as_cr_alnum=$as_cr_Letters$as_cr_digits
25112 ECHO_C= ECHO_N= ECHO_T=
25113 case `echo -n x` in #(((((
25115 case `echo 'xy\c'` in
25116 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25118 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25125 rm -f conf$$ conf$$.exe conf$$.file
25126 if test -d conf$$.dir; then
25127 rm -f conf$$.dir/conf$$.file
25130 mkdir conf$$.dir 2>/dev/null
25132 if (echo >conf$$.file) 2>/dev/null; then
25133 if ln -s conf$$.file conf$$ 2>/dev/null; then
25135 # ... but there are two gotchas:
25136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25138 # In both cases, we have to default to `cp -p'.
25139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25141 elif ln conf$$.file conf$$ 2>/dev/null; then
25149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25150 rmdir conf$$.dir 2>/dev/null
25155 # Create "$as_dir" as a directory, including parents if necessary.
25160 -*) as_dir=./$as_dir;;
25162 test -d "$as_dir" || eval $as_mkdir_p || {
25166 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25167 *) as_qdir=$as_dir;;
25169 as_dirs="'$as_qdir' $as_dirs"
25170 as_dir=`$as_dirname -- "$as_dir" ||
25171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25172 X"$as_dir" : 'X\(//\)[^/]' \| \
25173 X"$as_dir" : 'X\(//\)$' \| \
25174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25175 $as_echo X"$as_dir" |
25176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25180 /^X\(\/\/\)[^/].*/{
25193 test -d "$as_dir" && break
25195 test -z "$as_dirs" || eval "mkdir $as_dirs"
25196 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25200 if mkdir -p . 2>/dev/null; then
25201 as_mkdir_p='mkdir -p "$as_dir"'
25203 test -d ./-p && rmdir ./-p
25207 if test -x / >/dev/null 2>&1; then
25208 as_test_x='test -x'
25210 if ls -dL / >/dev/null 2>&1; then
25217 if test -d "$1"; then
25223 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25224 ???[sx]*):;;*)false;;esac;fi
25228 as_executable_p=$as_test_x
25230 # Sed expression to map a string onto a valid CPP name.
25231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25233 # Sed expression to map a string onto a valid variable name.
25234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25238 ## ----------------------------------- ##
25239 ## Main body of $CONFIG_STATUS script. ##
25240 ## ----------------------------------- ##
25242 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25245 # Save the log message, to keep $0 and so on meaningful, and to
25246 # report actual input values of CONFIG_FILES etc. instead of their
25247 # values after options handling.
25249 This file was extended by $as_me, which was
25250 generated by GNU Autoconf 2.65. Invocation command line was
25252 CONFIG_FILES = $CONFIG_FILES
25253 CONFIG_HEADERS = $CONFIG_HEADERS
25254 CONFIG_LINKS = $CONFIG_LINKS
25255 CONFIG_COMMANDS = $CONFIG_COMMANDS
25258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25263 case $ac_config_files in *"
25264 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25267 case $ac_config_headers in *"
25268 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25273 # Files that config.status was made for.
25274 config_files="$ac_config_files"
25275 config_headers="$ac_config_headers"
25276 config_commands="$ac_config_commands"
25280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25282 \`$as_me' instantiates files and other configuration actions
25283 from templates according to the current configuration. Unless the files
25284 and actions are specified as TAGs, all are instantiated by default.
25286 Usage: $0 [OPTION]... [TAG]...
25288 -h, --help print this help, then exit
25289 -V, --version print version number and configuration settings, then exit
25290 --config print configuration, then exit
25291 -q, --quiet, --silent
25292 do not print progress messages
25293 -d, --debug don't remove temporary files
25294 --recheck update $as_me by reconfiguring in the same conditions
25295 --file=FILE[:TEMPLATE]
25296 instantiate the configuration file FILE
25297 --header=FILE[:TEMPLATE]
25298 instantiate the configuration header FILE
25300 Configuration files:
25303 Configuration headers:
25306 Configuration commands:
25309 Report bugs to <<http://www.openldap.org/its/>>."
25312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25313 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25316 configured by $0, generated by GNU Autoconf 2.65,
25317 with options \\"\$ac_cs_config\\"
25319 Copyright (C) 2009 Free Software Foundation, Inc.
25320 This config.status script is free software; the Free Software Foundation
25321 gives unlimited permission to copy, distribute and modify it."
25327 test -n "\$AWK" || AWK=awk
25330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25331 # The default lists apply if the user does not specify any file.
25337 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25338 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25349 # Handling of the options.
25350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25352 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25353 $as_echo "$ac_cs_version"; exit ;;
25354 --config | --confi | --conf | --con | --co | --c )
25355 $as_echo "$ac_cs_config"; exit ;;
25356 --debug | --debu | --deb | --de | --d | -d )
25358 --file | --fil | --fi | --f )
25361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25363 as_fn_append CONFIG_FILES " '$ac_optarg'"
25364 ac_need_defaults=false;;
25365 --header | --heade | --head | --hea )
25368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25370 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25371 ac_need_defaults=false;;
25373 # Conflict between --help and --header
25374 as_fn_error "ambiguous option: \`$1'
25375 Try \`$0 --help' for more information.";;
25376 --help | --hel | -h )
25377 $as_echo "$ac_cs_usage"; exit ;;
25378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25379 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25382 # This is an error.
25383 -*) as_fn_error "unrecognized option: \`$1'
25384 Try \`$0 --help' for more information." ;;
25386 *) as_fn_append ac_config_targets " $1"
25387 ac_need_defaults=false ;;
25393 ac_configure_extra_args=
25395 if $ac_cs_silent; then
25397 ac_configure_extra_args="$ac_configure_extra_args --silent"
25401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25402 if \$ac_cs_recheck; then
25403 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25405 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25406 CONFIG_SHELL='$SHELL'
25407 export CONFIG_SHELL
25412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25417 ## Running $as_me. ##
25423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25427 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25429 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25430 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
25435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25437 # Handling of arguments.
25438 for ac_config_target in $ac_config_targets
25440 case $ac_config_target in
25441 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
25442 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
25443 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
25444 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25445 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
25446 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
25447 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
25448 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
25449 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
25450 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
25451 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
25452 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
25453 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
25454 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
25455 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
25456 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25457 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25458 "libraries/libldap_r/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25459 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25460 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25461 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25462 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
25463 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
25464 "servers/slapd/back-bdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
25465 "servers/slapd/back-dnssrv/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
25466 "servers/slapd/back-hdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
25467 "servers/slapd/back-ldap/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
25468 "servers/slapd/back-ldif/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
25469 "servers/slapd/back-meta/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
25470 "servers/slapd/back-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
25471 "servers/slapd/back-ndb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
25472 "servers/slapd/back-null/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
25473 "servers/slapd/back-passwd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
25474 "servers/slapd/back-perl/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
25475 "servers/slapd/back-relay/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
25476 "servers/slapd/back-shell/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
25477 "servers/slapd/back-sock/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
25478 "servers/slapd/back-sql/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
25479 "servers/slapd/shell-backends/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
25480 "servers/slapd/slapi/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25481 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
25482 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
25483 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
25484 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
25485 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25487 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25492 # If the user did not use the arguments to specify the items to instantiate,
25493 # then the envvar interface is used. Set only those that are not.
25494 # We use the long form for the default assignment because of an extremely
25495 # bizarre bug on SunOS 4.1.3.
25496 if $ac_need_defaults; then
25497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25502 # Have a temporary directory for convenience. Make it in the build tree
25503 # simply because there is no reason against having it here, and in addition,
25504 # creating and moving files from /tmp can sometimes cause problems.
25505 # Hook for its removal unless debugging.
25506 # Note that there is a small window in which the directory will not be cleaned:
25507 # after its creation but before its name has been assigned to `$tmp'.
25511 trap 'exit_status=$?
25512 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25514 trap 'as_fn_exit 1' 1 2 13 15
25516 # Create a (secure) tmp directory for tmp files.
25519 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25520 test -n "$tmp" && test -d "$tmp"
25523 tmp=./conf$$-$RANDOM
25524 (umask 077 && mkdir "$tmp")
25525 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25527 # Set up the scripts for CONFIG_FILES section.
25528 # No need to generate them if there are no CONFIG_FILES.
25529 # This happens for instance with `./config.status config.h'.
25530 if test -n "$CONFIG_FILES"; then
25533 ac_cr=`echo X | tr X '\015'`
25534 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25535 # But we know of no other shell where ac_cr would be empty at this
25536 # point, so we can use a bashism as a fallback.
25537 if test "x$ac_cr" = x; then
25538 eval ac_cr=\$\'\\r\'
25540 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25541 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25544 ac_cs_awk_cr=$ac_cr
25547 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25552 echo "cat >conf$$subs.awk <<_ACEOF" &&
25553 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25555 } >conf$$subs.sh ||
25556 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25557 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25559 for ac_last_try in false false false false false :; do
25560 . ./conf$$subs.sh ||
25561 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25563 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25564 if test $ac_delim_n = $ac_delim_num; then
25566 elif $ac_last_try; then
25567 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25572 rm -f conf$$subs.sh
25574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25575 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25579 s/^/S["/; s/!.*/"]=/
25589 s/\(.\{148\}\)..*/\1/
25591 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25596 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25603 s/\(.\{148\}\)..*/\1/
25605 s/["\\]/\\&/g; s/^/"/; s/$/"/
25609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25614 ' <conf$$subs.awk | sed '
25619 ' >>$CONFIG_STATUS || ac_write_fail=1
25620 rm -f conf$$subs.awk
25621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25623 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25624 for (key in S) S_is_set[key] = 1
25630 nfields = split(line, field, "@")
25632 len = length(field[1])
25633 for (i = 2; i < nfields; i++) {
25635 keylen = length(key)
25636 if (S_is_set[key]) {
25638 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25639 len += length(value) + length(field[++i])
25650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25651 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25652 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25655 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25656 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25661 # trailing colons and then remove the whole line if VPATH becomes empty
25662 # (actually we leave an empty line to preserve line numbers).
25663 if test "x$srcdir" = x.; then
25664 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25665 s/:*\$(srcdir):*/:/
25666 s/:*\${srcdir}:*/:/
25668 s/^\([^=]*=[ ]*\):*/\1/
25674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25675 fi # test -n "$CONFIG_FILES"
25677 # Set up the scripts for CONFIG_HEADERS section.
25678 # No need to generate them if there are no CONFIG_HEADERS.
25679 # This happens for instance with `./config.status Makefile'.
25680 if test -n "$CONFIG_HEADERS"; then
25681 cat >"$tmp/defines.awk" <<\_ACAWK ||
25685 # Transform confdefs.h into an awk script `defines.awk', embedded as
25686 # here-document in config.status, that substitutes the proper values into
25687 # config.h.in to produce config.h.
25689 # Create a delimiter string that does not exist in confdefs.h, to ease
25690 # handling of long lines.
25692 for ac_last_try in false false :; do
25693 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25694 if test -z "$ac_t"; then
25696 elif $ac_last_try; then
25697 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25703 # For the awk script, D is an array of macro values keyed by name,
25704 # likewise P contains macro parameters if any. Preserve backslash
25705 # newline sequences.
25707 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25709 s/.\{148\}/&'"$ac_delim"'/g
25712 s/^[ ]*#[ ]*define[ ][ ]*/ /
25719 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25721 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25726 D["\1"]=" \3\\\\\\n"\\/p
25728 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25733 s/.\{148\}/&'"$ac_delim"'/g
25738 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25741 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25743 ' <confdefs.h | sed '
25744 s/'"$ac_delim"'/"\\\
25745 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25748 for (key in D) D_is_set[key] = 1
25751 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25753 split(line, arg, " ")
25754 if (arg[1] == "#") {
25758 defundef = substr(arg[1], 2)
25761 split(mac1, mac2, "(") #)
25763 prefix = substr(line, 1, index(line, defundef) - 1)
25764 if (D_is_set[macro]) {
25765 # Preserve the white space surrounding the "#".
25766 print prefix "define", macro P[macro] D[macro]
25769 # Replace #undef with comments. This is necessary, for example,
25770 # in the case of _POSIX_SOURCE, which is predefined and required
25771 # on some systems where configure will not decide to define it.
25772 if (defundef == "undef") {
25773 print "/*", prefix defundef, macro, "*/"
25781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25782 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25783 fi # test -n "$CONFIG_HEADERS"
25786 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25791 :[FHLC]) ac_mode=$ac_tag; continue;;
25793 case $ac_mode$ac_tag in
25795 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25796 :[FH]-) ac_tag=-:-;;
25797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25814 -) ac_f="$tmp/stdin";;
25815 *) # Look for the file first in the build tree, then in the source tree
25816 # (if the path is not absolute). The absolute path cannot be DOS-style,
25817 # because $ac_f cannot contain `:'.
25821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25823 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25825 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25826 as_fn_append ac_file_inputs " '$ac_f'"
25829 # Let's still pretend it is `configure' which instantiates (i.e., don't
25830 # use $as_me), people would be surprised to read:
25831 # /* config.h. Generated by config.status. */
25832 configure_input='Generated from '`
25833 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25835 if test x"$ac_file" != x-; then
25836 configure_input="$ac_file. $configure_input"
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25838 $as_echo "$as_me: creating $ac_file" >&6;}
25840 # Neutralize special characters interpreted by sed in replacement strings.
25841 case $configure_input in #(
25842 *\&* | *\|* | *\\* )
25843 ac_sed_conf_input=`$as_echo "$configure_input" |
25844 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25845 *) ac_sed_conf_input=$configure_input;;
25849 *:-:* | *:-) cat >"$tmp/stdin" \
25850 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25855 ac_dir=`$as_dirname -- "$ac_file" ||
25856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25857 X"$ac_file" : 'X\(//\)[^/]' \| \
25858 X"$ac_file" : 'X\(//\)$' \| \
25859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25860 $as_echo X"$ac_file" |
25861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25865 /^X\(\/\/\)[^/].*/{
25878 as_dir="$ac_dir"; as_fn_mkdir_p
25882 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25884 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25885 # A ".." for each directory in $ac_dir_suffix.
25886 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25887 case $ac_top_builddir_sub in
25888 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25889 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25892 ac_abs_top_builddir=$ac_pwd
25893 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25894 # for backward compatibility:
25895 ac_top_builddir=$ac_top_build_prefix
25898 .) # We are building in place.
25900 ac_top_srcdir=$ac_top_builddir_sub
25901 ac_abs_top_srcdir=$ac_pwd ;;
25902 [\\/]* | ?:[\\/]* ) # Absolute name.
25903 ac_srcdir=$srcdir$ac_dir_suffix;
25904 ac_top_srcdir=$srcdir
25905 ac_abs_top_srcdir=$srcdir ;;
25906 *) # Relative name.
25907 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25908 ac_top_srcdir=$ac_top_build_prefix$srcdir
25909 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25911 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25922 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25927 # If the template does not know about datarootdir, expand it.
25928 # FIXME: This hack should be removed a few years after 2.60.
25929 ac_datarootdir_hack=; ac_datarootdir_seen=
25940 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25941 *datarootdir*) ac_datarootdir_seen=yes;;
25942 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25944 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25947 ac_datarootdir_hack='
25948 s&@datadir@&$datadir&g
25949 s&@docdir@&$docdir&g
25950 s&@infodir@&$infodir&g
25951 s&@localedir@&$localedir&g
25952 s&@mandir@&$mandir&g
25953 s&\\\${datarootdir}&$datarootdir&g' ;;
25957 # Neutralize VPATH when `$srcdir' = `.'.
25958 # Shell code in configure.ac might set extrasub.
25959 # FIXME: do we really want to maintain this feature?
25960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25961 ac_sed_extra="$ac_vpsub
25964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25967 s|@configure_input@|$ac_sed_conf_input|;t t
25968 s&@top_builddir@&$ac_top_builddir_sub&;t t
25969 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25970 s&@srcdir@&$ac_srcdir&;t t
25971 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25972 s&@top_srcdir@&$ac_top_srcdir&;t t
25973 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25974 s&@builddir@&$ac_builddir&;t t
25975 s&@abs_builddir@&$ac_abs_builddir&;t t
25976 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25977 s&@INSTALL@&$ac_INSTALL&;t t
25978 $ac_datarootdir_hack
25980 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25981 || as_fn_error "could not create $ac_file" "$LINENO" 5
25983 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25984 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25985 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25987 which seems to be undefined. Please make sure it is defined." >&5
25988 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25989 which seems to be undefined. Please make sure it is defined." >&2;}
25993 -) cat "$tmp/out" && rm -f "$tmp/out";;
25994 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25996 || as_fn_error "could not create $ac_file" "$LINENO" 5
26002 if test x"$ac_file" != x-; then
26004 $as_echo "/* $configure_input */" \
26005 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26006 } >"$tmp/config.h" \
26007 || as_fn_error "could not create $ac_file" "$LINENO" 5
26008 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26010 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26013 mv "$tmp/config.h" "$ac_file" \
26014 || as_fn_error "could not create $ac_file" "$LINENO" 5
26017 $as_echo "/* $configure_input */" \
26018 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26019 || as_fn_error "could not create -" "$LINENO" 5
26021 # Compute "$ac_file"'s index in $config_headers.
26023 for _am_header in $config_headers :; do
26024 case $_am_header in
26025 "$ac_file" | "$ac_file":* )
26028 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26031 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
26032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26033 X"$ac_file" : 'X\(//\)[^/]' \| \
26034 X"$ac_file" : 'X\(//\)$' \| \
26035 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26036 $as_echo X"$ac_file" |
26037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26041 /^X\(\/\/\)[^/].*/{
26053 s/.*/./; q'`/stamp-h$_am_stamp_count
26056 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26057 $as_echo "$as_me: executing $ac_file commands" >&6;}
26062 case $ac_file$ac_mode in
26063 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26064 # Strip MF so we end up with the name of the file.
26065 mf=`echo "$mf" | sed -e 's/:.*$//'`
26066 # Check whether this is an Automake generated Makefile or not.
26067 # We used to match only the files named `Makefile.in', but
26068 # some people rename them; so instead we look at the file content.
26069 # Grep'ing the first line is not enough: some people post-process
26070 # each Makefile.in and add a new line on top of each file to say so.
26071 # So let's grep whole file.
26072 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26073 dirpart=`$as_dirname -- "$mf" ||
26074 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26075 X"$mf" : 'X\(//\)[^/]' \| \
26076 X"$mf" : 'X\(//\)$' \| \
26077 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26083 /^X\(\/\/\)[^/].*/{
26099 # Extract the definition of DEPDIR, am__include, and am__quote
26100 # from the Makefile without running `make'.
26101 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26102 test -z "$DEPDIR" && continue
26103 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26104 test -z "am__include" && continue
26105 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26106 # When using ansi2knr, U may be empty or an underscore; expand it
26107 U=`sed -n 's/^U = //p' < "$mf"`
26108 # Find all dependency output files, they are included files with
26109 # $(DEPDIR) in their names. We invoke sed twice because it is the
26110 # simplest approach to changing $(DEPDIR) to its actual value in the
26112 for file in `sed -n "
26113 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26114 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26115 # Make sure the directory exists.
26116 test -f "$dirpart/$file" && continue
26117 fdir=`$as_dirname -- "$file" ||
26118 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26119 X"$file" : 'X\(//\)[^/]' \| \
26120 X"$file" : 'X\(//\)$' \| \
26121 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26122 $as_echo X"$file" |
26123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26127 /^X\(\/\/\)[^/].*/{
26140 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26141 # echo "creating $dirpart/$file"
26142 echo '# dummy' > "$dirpart/$file"
26149 BACKENDSC="servers/slapd/backends.c"
26150 echo "Making $BACKENDSC"
26152 cat > $BACKENDSC << ENDX
26153 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26155 * Copyright 1998-2011 The OpenLDAP Foundation.
26156 * All rights reserved.
26158 * Redistribution and use in source and binary forms, with or without
26159 * modification, are permitted only as authorized by the OpenLDAP
26162 * A copy of this license is available in the file LICENSE in the
26163 * top-level directory of the distribution or, alternatively, at
26164 * <http://www.OpenLDAP.org/license.html>.
26166 /* This file is automatically generated by configure; please do not edit. */
26168 #include "portable.h"
26172 if test "${STATIC_BACKENDS}"; then
26173 for b in config ${STATIC_BACKENDS}; do
26174 bb=`echo "${b}" | sed -e 's/back-//'`
26175 cat >> $BACKENDSC << ENDX
26176 extern BI_init ${bb}_back_initialize;
26180 cat >> $BACKENDSC << ENDX
26182 BackendInfo slap_binfo[] = {
26185 for b in config ${STATIC_BACKENDS}; do
26186 bb=`echo "${b}" | sed -e 's/back-//'`
26187 echo " Add ${bb} ..."
26188 cat >> $BACKENDSC << ENDX
26189 { "${bb}", ${bb}_back_initialize },
26193 cat >> $BACKENDSC << ENDX
26197 /* end of generated file */
26200 OVERLAYSC="servers/slapd/overlays/statover.c"
26201 echo "Making $OVERLAYSC"
26203 cat > $OVERLAYSC << ENDX
26204 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26206 * Copyright 1998-2011 The OpenLDAP Foundation.
26207 * All rights reserved.
26209 * Redistribution and use in source and binary forms, with or without
26210 * modification, are permitted only as authorized by the OpenLDAP
26213 * A copy of this license is available in the file LICENSE in the
26214 * top-level directory of the distribution or, alternatively, at
26215 * <http://www.OpenLDAP.org/license.html>.
26217 /* This file is automatically generated by configure; please do not edit. */
26219 #include "portable.h"
26223 if test "${STATIC_OVERLAYS}"; then
26224 for o in ${STATIC_OVERLAYS}; do
26225 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26226 cat >> $OVERLAYSC << ENDX
26227 extern OV_init ${oo}_initialize;
26232 cat >> $OVERLAYSC << ENDX
26234 OverlayInit slap_oinfo[] = {
26237 if test "${STATIC_OVERLAYS}"; then
26238 for o in ${STATIC_OVERLAYS}; do
26239 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26240 echo " Add ${oo} ..."
26241 cat >> $OVERLAYSC << ENDX
26242 { "${oo}", ${oo}_initialize },
26247 cat >> $OVERLAYSC << ENDX
26251 /* end of generated file */
26254 if test "${ol_cv_mkdep}" = no; then
26255 echo '(Do not "make depend"; we do not know how to build dependencies)'
26257 echo 'Please run "make depend" to build dependencies'
26267 ac_clean_files=$ac_clean_files_save
26269 test $ac_write_fail = 0 ||
26270 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26273 # configure is writing to config.log, and then calls config.status.
26274 # config.status does its own redirection, appending to config.log.
26275 # Unfortunately, on DOS this fails, as config.log is still kept open
26276 # by configure, so config.status won't be able to write to it; its
26277 # output is simply discarded. So we exec the FD to /dev/null,
26278 # effectively closing config.log, so it can be properly (re)opened and
26279 # appended to by config.status. When coming back to configure, we
26280 # need to make the FD available again.
26281 if test "$no_create" != yes; then
26283 ac_config_status_args=
26284 test "$silent" = yes &&
26285 ac_config_status_args="$ac_config_status_args --quiet"
26287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26290 # would make configure fail if this is the last instruction.
26291 $ac_cs_success || as_fn_exit $?
26293 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26295 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}