2 # From configure.in Id: 41cd0a5df892091d70e4deae4b86a9d022f4302b .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65.
6 # Copyright 1998-2017 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
771 SLAPD_DYNAMIC_OVERLAYS
772 SLAPD_STATIC_OVERLAYS
773 SLAPD_DYNAMIC_BACKENDS
774 SLAPD_STATIC_BACKENDS
776 SLAPD_MODULES_LDFLAGS
777 SLAPD_MODULES_CPPFLAGS
873 OPENLDAP_RELEASE_DATE
883 INSTALL_STRIP_PROGRAM
936 program_transform_name
949 enable_option_checking
964 enable_xxslapdoptions
978 enable_xxslapbackends
997 enable_xxslapoverlays
1024 enable_dependency_tracking
1031 ac_precious_vars='build_alias
1042 # Initialize some variables set by options.
1044 ac_init_version=false
1045 ac_unrecognized_opts=
1046 ac_unrecognized_sep=
1047 # The variables have the same names as the options, with
1048 # dashes changed to underlines.
1049 cache_file=/dev/null
1056 program_transform_name=s,x,x,
1064 # Installation directory options.
1065 # These are left unexpanded so users can "make install exec_prefix=/foo"
1066 # and all the variables that are supposed to be based on exec_prefix
1067 # by default will actually change.
1068 # Use braces instead of parens because sh, perl, etc. also accept them.
1069 # (The list follows the same order as the GNU Coding Standards.)
1070 bindir='${exec_prefix}/bin'
1071 sbindir='${exec_prefix}/sbin'
1072 libexecdir='${exec_prefix}/libexec'
1073 datarootdir='${prefix}/share'
1074 datadir='${datarootdir}'
1075 sysconfdir='${prefix}/etc'
1076 sharedstatedir='${prefix}/com'
1077 localstatedir='${prefix}/var'
1078 includedir='${prefix}/include'
1079 oldincludedir='/usr/include'
1080 docdir='${datarootdir}/doc/${PACKAGE}'
1081 infodir='${datarootdir}/info'
1086 libdir='${exec_prefix}/lib'
1087 localedir='${datarootdir}/locale'
1088 mandir='${datarootdir}/man'
1094 # If the previous option needs an argument, assign it.
1095 if test -n "$ac_prev"; then
1096 eval $ac_prev=\$ac_option
1102 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 # Accept the important Cygnus configure options, so we can diagnose typos.
1108 case $ac_dashdash$ac_option in
1112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1115 bindir=$ac_optarg ;;
1117 -build | --build | --buil | --bui | --bu)
1118 ac_prev=build_alias ;;
1119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1120 build_alias=$ac_optarg ;;
1122 -cache-file | --cache-file | --cache-fil | --cache-fi \
1123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1124 ac_prev=cache_file ;;
1125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1127 cache_file=$ac_optarg ;;
1129 --config-cache | -C)
1130 cache_file=config.cache ;;
1132 -datadir | --datadir | --datadi | --datad)
1134 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1135 datadir=$ac_optarg ;;
1137 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1138 | --dataroo | --dataro | --datar)
1139 ac_prev=datarootdir ;;
1140 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1141 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1142 datarootdir=$ac_optarg ;;
1144 -disable-* | --disable-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid feature name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "enable_$ac_useropt"
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval enable_$ac_useropt=no ;;
1160 -docdir | --docdir | --docdi | --doc | --do)
1162 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1163 docdir=$ac_optarg ;;
1165 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1167 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1168 dvidir=$ac_optarg ;;
1170 -enable-* | --enable-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid feature name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "enable_$ac_useropt"
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1184 eval enable_$ac_useropt=\$ac_optarg ;;
1186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1188 | --exec | --exe | --ex)
1189 ac_prev=exec_prefix ;;
1190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1192 | --exec=* | --exe=* | --ex=*)
1193 exec_prefix=$ac_optarg ;;
1195 -gas | --gas | --ga | --g)
1196 # Obsolete; use --with-gas.
1199 -help | --help | --hel | --he | -h)
1200 ac_init_help=long ;;
1201 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1202 ac_init_help=recursive ;;
1203 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1204 ac_init_help=short ;;
1206 -host | --host | --hos | --ho)
1207 ac_prev=host_alias ;;
1208 -host=* | --host=* | --hos=* | --ho=*)
1209 host_alias=$ac_optarg ;;
1211 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215 htmldir=$ac_optarg ;;
1217 -includedir | --includedir | --includedi | --included | --include \
1218 | --includ | --inclu | --incl | --inc)
1219 ac_prev=includedir ;;
1220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1221 | --includ=* | --inclu=* | --incl=* | --inc=*)
1222 includedir=$ac_optarg ;;
1224 -infodir | --infodir | --infodi | --infod | --info | --inf)
1226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1227 infodir=$ac_optarg ;;
1229 -libdir | --libdir | --libdi | --libd)
1231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1232 libdir=$ac_optarg ;;
1234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1235 | --libexe | --libex | --libe)
1236 ac_prev=libexecdir ;;
1237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1238 | --libexe=* | --libex=* | --libe=*)
1239 libexecdir=$ac_optarg ;;
1241 -localedir | --localedir | --localedi | --localed | --locale)
1242 ac_prev=localedir ;;
1243 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1244 localedir=$ac_optarg ;;
1246 -localstatedir | --localstatedir | --localstatedi | --localstated \
1247 | --localstate | --localstat | --localsta | --localst | --locals)
1248 ac_prev=localstatedir ;;
1249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1250 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1251 localstatedir=$ac_optarg ;;
1253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1256 mandir=$ac_optarg ;;
1258 -nfp | --nfp | --nf)
1259 # Obsolete; use --without-fp.
1262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1263 | --no-cr | --no-c | -n)
1266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1272 | --oldin | --oldi | --old | --ol | --o)
1273 ac_prev=oldincludedir ;;
1274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1277 oldincludedir=$ac_optarg ;;
1279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1282 prefix=$ac_optarg ;;
1284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1285 | --program-pre | --program-pr | --program-p)
1286 ac_prev=program_prefix ;;
1287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1289 program_prefix=$ac_optarg ;;
1291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1292 | --program-suf | --program-su | --program-s)
1293 ac_prev=program_suffix ;;
1294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1296 program_suffix=$ac_optarg ;;
1298 -program-transform-name | --program-transform-name \
1299 | --program-transform-nam | --program-transform-na \
1300 | --program-transform-n | --program-transform- \
1301 | --program-transform | --program-transfor \
1302 | --program-transfo | --program-transf \
1303 | --program-trans | --program-tran \
1304 | --progr-tra | --program-tr | --program-t)
1305 ac_prev=program_transform_name ;;
1306 -program-transform-name=* | --program-transform-name=* \
1307 | --program-transform-nam=* | --program-transform-na=* \
1308 | --program-transform-n=* | --program-transform-=* \
1309 | --program-transform=* | --program-transfor=* \
1310 | --program-transfo=* | --program-transf=* \
1311 | --program-trans=* | --program-tran=* \
1312 | --progr-tra=* | --program-tr=* | --program-t=*)
1313 program_transform_name=$ac_optarg ;;
1315 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1318 pdfdir=$ac_optarg ;;
1320 -psdir | --psdir | --psdi | --psd | --ps)
1322 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1326 | -silent | --silent | --silen | --sile | --sil)
1329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333 sbindir=$ac_optarg ;;
1335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1337 | --sharedst | --shareds | --shared | --share | --shar \
1339 ac_prev=sharedstatedir ;;
1340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344 sharedstatedir=$ac_optarg ;;
1346 -site | --site | --sit)
1348 -site=* | --site=* | --sit=*)
1351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1354 srcdir=$ac_optarg ;;
1356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1357 | --syscon | --sysco | --sysc | --sys | --sy)
1358 ac_prev=sysconfdir ;;
1359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1361 sysconfdir=$ac_optarg ;;
1363 -target | --target | --targe | --targ | --tar | --ta | --t)
1364 ac_prev=target_alias ;;
1365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1366 target_alias=$ac_optarg ;;
1368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1371 -version | --version | --versio | --versi | --vers | -V)
1372 ac_init_version=: ;;
1375 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378 as_fn_error "invalid package name: $ac_useropt"
1379 ac_useropt_orig=$ac_useropt
1380 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1386 ac_unrecognized_sep=', ';;
1388 eval with_$ac_useropt=\$ac_optarg ;;
1390 -without-* | --without-*)
1391 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1394 as_fn_error "invalid package name: $ac_useropt"
1395 ac_useropt_orig=$ac_useropt
1396 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397 case $ac_user_opts in
1401 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1402 ac_unrecognized_sep=', ';;
1404 eval with_$ac_useropt=no ;;
1407 # Obsolete; use --with-x.
1410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1411 | --x-incl | --x-inc | --x-in | --x-i)
1412 ac_prev=x_includes ;;
1413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1415 x_includes=$ac_optarg ;;
1417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1419 ac_prev=x_libraries ;;
1420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1422 x_libraries=$ac_optarg ;;
1424 -*) as_fn_error "unrecognized option: \`$ac_option'
1425 Try \`$0 --help' for more information."
1429 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430 # Reject names that are not valid shell variable names.
1431 case $ac_envvar in #(
1432 '' | [0-9]* | *[!_$as_cr_alnum]* )
1433 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1435 eval $ac_envvar=\$ac_optarg
1436 export $ac_envvar ;;
1439 # FIXME: should be removed in autoconf 3.0.
1440 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1441 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1442 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1443 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1449 if test -n "$ac_prev"; then
1450 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1451 as_fn_error "missing argument to $ac_option"
1454 if test -n "$ac_unrecognized_opts"; then
1455 case $enable_option_checking in
1457 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1458 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1462 # Check all directory arguments for consistency.
1463 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1464 datadir sysconfdir sharedstatedir localstatedir includedir \
1465 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1466 libdir localedir mandir
1468 eval ac_val=\$$ac_var
1469 # Remove trailing slashes.
1472 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1473 eval $ac_var=\$ac_val;;
1475 # Be sure to have absolute directory names.
1477 [\\/$]* | ?:[\\/]* ) continue;;
1478 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1480 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1483 # There might be people who depend on the old broken behavior: `$host'
1484 # used to hold the argument of --host etc.
1485 # FIXME: To remove some day.
1488 target=$target_alias
1490 # FIXME: To remove some day.
1491 if test "x$host_alias" != x; then
1492 if test "x$build_alias" = x; then
1493 cross_compiling=maybe
1494 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1495 If a cross compiler is detected then cross compile mode will be used." >&2
1496 elif test "x$build_alias" != "x$host_alias"; then
1502 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1504 test "$silent" = yes && exec 6>/dev/null
1507 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1508 ac_ls_di=`ls -di .` &&
1509 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1510 as_fn_error "working directory cannot be determined"
1511 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1512 as_fn_error "pwd does not report name of working directory"
1515 # Find the source files, if location was not specified.
1516 if test -z "$srcdir"; then
1517 ac_srcdir_defaulted=yes
1518 # Try the directory containing this script, then the parent directory.
1519 ac_confdir=`$as_dirname -- "$as_myself" ||
1520 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521 X"$as_myself" : 'X\(//\)[^/]' \| \
1522 X"$as_myself" : 'X\(//\)$' \| \
1523 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1524 $as_echo X"$as_myself" |
1525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1543 if test ! -r "$srcdir/$ac_unique_file"; then
1547 ac_srcdir_defaulted=no
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1550 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1551 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1565 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567 for ac_var in $ac_precious_vars; do
1568 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1569 eval ac_env_${ac_var}_value=\$${ac_var}
1570 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1571 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1575 # Report the --help message.
1577 if test "$ac_init_help" = "long"; then
1578 # Omit some internal or obsolete options to make the list less imposing.
1579 # This message is too long to be a string in the A/UX 3.1 sh.
1581 \`configure' configures this package to adapt to many kinds of systems.
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE. See below for descriptions of some of the useful variables.
1588 Defaults for the options are specified in brackets.
1591 -h, --help display this help and exit
1592 --help=short display options specific to this package
1593 --help=recursive display the short help of all the included packages
1594 -V, --version display version information and exit
1595 -q, --quiet, --silent do not print \`checking...' messages
1596 --cache-file=FILE cache test results in FILE [disabled]
1597 -C, --config-cache alias for \`--cache-file=config.cache'
1598 -n, --no-create do not create output files
1599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1601 Installation directories:
1602 --prefix=PREFIX install architecture-independent files in PREFIX
1603 [$ac_default_prefix]
1604 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1612 For better control, use the options below.
1614 Fine tuning of the installation directories:
1615 --bindir=DIR user executables [EPREFIX/bin]
1616 --sbindir=DIR system admin executables [EPREFIX/sbin]
1617 --libexecdir=DIR program executables [EPREFIX/libexec]
1618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1621 --libdir=DIR object code libraries [EPREFIX/lib]
1622 --includedir=DIR C header files [PREFIX/include]
1623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1624 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1625 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1626 --infodir=DIR info documentation [DATAROOTDIR/info]
1627 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1628 --mandir=DIR man documentation [DATAROOTDIR/man]
1629 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1630 --htmldir=DIR html documentation [DOCDIR]
1631 --dvidir=DIR dvi documentation [DOCDIR]
1632 --pdfdir=DIR pdf documentation [DOCDIR]
1633 --psdir=DIR ps documentation [DOCDIR]
1639 --program-prefix=PREFIX prepend PREFIX to installed program names
1640 --program-suffix=SUFFIX append SUFFIX to installed program names
1641 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1644 --build=BUILD configure for building on BUILD [guessed]
1645 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1646 --target=TARGET configure for building compilers for TARGET [HOST]
1650 if test -n "$ac_init_help"; then
1655 --disable-option-checking ignore unrecognized --enable/--with options
1656 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1657 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1658 --enable-debug enable debugging no|yes|traditional [yes]
1659 --enable-dynamic enable linking built binaries with dynamic libs [no]
1660 --enable-syslog enable syslog support [auto]
1661 --enable-proctitle enable proctitle support [yes]
1662 --enable-ipv6 enable IPv6 support [auto]
1663 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1665 SLAPD (Standalone LDAP Daemon) Options:
1666 --enable-slapd enable building slapd [yes]
1667 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1668 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1669 --enable-cleartext enable cleartext passwords [yes]
1670 --enable-crypt enable crypt(3) passwords [no]
1671 --enable-lmpasswd enable LAN Manager passwords [no]
1672 --enable-spasswd enable (Cyrus) SASL password verification [no]
1673 --enable-modules enable dynamic module support [no]
1674 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1675 --enable-rlookups enable reverse lookups of client hostnames [no]
1676 --enable-slapi enable SLAPI support (experimental) [no]
1677 --enable-slp enable SLPv2 support [no]
1678 --enable-wrappers enable tcp wrapper support [no]
1680 SLAPD Backend Options:
1681 --enable-backends enable all available backends no|yes|mod
1682 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1683 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1684 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]
1685 --enable-ldap enable ldap backend no|yes|mod [no]
1686 --enable-mdb enable mdb database backend no|yes|mod [yes]
1687 --enable-meta enable metadirectory backend no|yes|mod [no]
1688 --enable-asyncmeta enable asynchronous metadirectory backend no|yes|mod [no]
1689 --enable-monitor enable monitor backend no|yes|mod [yes]
1690 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1691 --enable-null enable null backend no|yes|mod [no]
1692 --enable-passwd enable passwd backend no|yes|mod [no]
1693 --enable-perl enable perl backend no|yes|mod [no]
1694 --enable-relay enable relay backend no|yes|mod [yes]
1695 --enable-shell enable shell backend no|yes|mod [no]
1696 --enable-sock enable sock backend no|yes|mod [no]
1697 --enable-sql enable sql backend no|yes|mod [no]
1698 --enable-wt enable WiredTiger backend no|yes|mod [no]
1700 SLAPD Overlay Options:
1701 --enable-overlays enable all available overlays no|yes|mod
1702 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1703 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1704 --enable-autoca Automatic Certificate Authority overlay no|yes|mod [no]
1705 --enable-collect Collect overlay no|yes|mod [no]
1706 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1707 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1708 --enable-deref Dereference overlay no|yes|mod [no]
1709 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1710 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1711 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1712 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1713 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1714 --enable-refint Referential Integrity overlay no|yes|mod [no]
1715 --enable-retcode Return Code testing overlay no|yes|mod [no]
1716 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1717 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1718 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1719 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1720 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1721 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1722 --enable-valsort Value Sorting overlay no|yes|mod [no]
1724 Library Generation & Linking Options
1725 --enable-static[=PKGS] build static libraries [default=yes]
1726 --enable-shared[=PKGS] build shared libraries [default=yes]
1727 --enable-fast-install[=PKGS]
1728 optimize for fast installation [default=yes]
1729 --disable-dependency-tracking speeds up one-time build
1730 --enable-dependency-tracking do not reject slow dependency extractors
1731 --disable-libtool-lock avoid locking (might break parallel builds)
1734 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1735 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1736 --with-subdir=DIR change default subdirectory used for installs
1737 --with-cyrus-sasl with Cyrus SASL support [auto]
1738 --with-fetch with fetch(3) URL support [auto]
1739 --with-threads with threads [auto]
1740 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1741 --with-yielding-select with implicitly yielding select [auto]
1742 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1743 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1744 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1745 --with-pic try to use only PIC/non-PIC objects [default=use
1747 --with-tags[=TAGS] include additional configurations [automatic]
1749 See INSTALL file for further details.
1751 Some influential environment variables:
1752 CC C compiler command
1753 CFLAGS C compiler flags
1754 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1755 nonstandard directory <lib dir>
1756 LIBS libraries to pass to the linker, e.g. -l<library>
1757 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1758 you have headers in a nonstandard directory <include dir>
1761 Use these variables to override the choices made by `configure' or to help
1762 it to find libraries and programs with nonstandard names/locations.
1764 Report bugs to the package provider.
1769 if test "$ac_init_help" = "recursive"; then
1770 # If there are subdirs, report their specific --help.
1771 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1772 test -d "$ac_dir" ||
1773 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1781 # A ".." for each directory in $ac_dir_suffix.
1782 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1783 case $ac_top_builddir_sub in
1784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788 ac_abs_top_builddir=$ac_pwd
1789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1790 # for backward compatibility:
1791 ac_top_builddir=$ac_top_build_prefix
1794 .) # We are building in place.
1796 ac_top_srcdir=$ac_top_builddir_sub
1797 ac_abs_top_srcdir=$ac_pwd ;;
1798 [\\/]* | ?:[\\/]* ) # Absolute name.
1799 ac_srcdir=$srcdir$ac_dir_suffix;
1800 ac_top_srcdir=$srcdir
1801 ac_abs_top_srcdir=$srcdir ;;
1803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1804 ac_top_srcdir=$ac_top_build_prefix$srcdir
1805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1809 cd "$ac_dir" || { ac_status=$?; continue; }
1810 # Check for guested configure.
1811 if test -f "$ac_srcdir/configure.gnu"; then
1813 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1814 elif test -f "$ac_srcdir/configure"; then
1816 $SHELL "$ac_srcdir/configure" --help=recursive
1818 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1820 cd "$ac_pwd" || { ac_status=$?; break; }
1824 test -n "$ac_init_help" && exit $ac_status
1825 if $ac_init_version; then
1828 generated by GNU Autoconf 2.65
1830 Copyright (C) 2009 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1834 Copyright 1998-2017 The OpenLDAP Foundation. All rights reserved.
1835 Restrictions apply, see COPYRIGHT and LICENSE files.
1840 ## ------------------------ ##
1841 ## Autoconf initialization. ##
1842 ## ------------------------ ##
1844 # ac_fn_c_try_compile LINENO
1845 # --------------------------
1846 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_c_try_compile ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext
1851 if { { ac_try="$ac_compile"
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_compile") 2>conftest.err
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest.$ac_objext; then :
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 as_fn_set_status $ac_retval
1880 } # ac_fn_c_try_compile
1882 # ac_fn_c_try_link LINENO
1883 # -----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext conftest$ac_exeext
1889 if { { ac_try="$ac_link"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>conftest.err
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest$ac_exeext && {
1908 test "$cross_compiling" = yes ||
1909 $as_test_x conftest$ac_exeext
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920 # interfere with the next link command; also delete a directory that is
1921 # left behind by Apple's compiler. We do this before executing the actions.
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 as_fn_set_status $ac_retval
1926 } # ac_fn_c_try_link
1928 # ac_fn_c_try_cpp LINENO
1929 # ----------------------
1930 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if { { ac_try="$ac_cpp conftest.$ac_ext"
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1943 if test -s conftest.err; then
1944 grep -v '^ *+' conftest.err >conftest.er1
1945 cat conftest.er1 >&5
1946 mv -f conftest.er1 conftest.err
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } >/dev/null && {
1950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1951 test ! -s conftest.err
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961 as_fn_set_status $ac_retval
1965 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # -------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1970 ac_fn_c_check_header_mongrel ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_header_compiler=yes
1994 ac_header_compiler=no
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 if ac_fn_c_try_cpp "$LINENO"; then :
2008 ac_header_preproc=yes
2010 ac_header_preproc=no
2012 rm -f conftest.err conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2016 # So? What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 ## --------------------------------------------- ##
2037 ## Report this to <http://www.openldap.org/its/> ##
2038 ## --------------------------------------------- ##
2040 ) | sed "s/^/$as_me: WARNING: /" >&2
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2046 $as_echo_n "(cached) " >&6
2048 eval "$3=\$ac_header_compiler"
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 } # ac_fn_c_check_header_mongrel
2058 # ac_fn_c_try_run LINENO
2059 # ----------------------
2060 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2061 # that executables *can* be run.
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if { { ac_try="$ac_link"
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>&5
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2076 { { case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_try") 2>&5
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; }; }; then :
2088 $as_echo "$as_me: program exited with status $ac_status" >&5
2089 $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2092 ac_retval=$ac_status
2094 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2096 as_fn_set_status $ac_retval
2100 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2101 # -------------------------------------------------------
2102 # Tests whether HEADER exists and can be compiled using the include files in
2103 # INCLUDES, setting the cache variable VAR accordingly.
2104 ac_fn_c_check_header_compile ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2110 $as_echo_n "(cached) " >&6
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2117 if ac_fn_c_try_compile "$LINENO"; then :
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 } # ac_fn_c_check_header_compile
2131 # ac_fn_c_check_func LINENO FUNC VAR
2132 # ----------------------------------
2133 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2134 ac_fn_c_check_func ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 $as_echo_n "(cached) " >&6
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2146 #define $2 innocuous_$2
2148 /* System header to define __stub macros and hopefully few prototypes,
2149 which can conflict with char $2 (); below.
2150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2151 <limits.h> exists even on freestanding compilers. */
2154 # include <limits.h>
2156 # include <assert.h>
2161 /* Override any GCC internal prototype to avoid an error.
2162 Use char because int might match the return type of a GCC
2163 builtin and then its argument prototype would still apply. */
2168 /* The GNU C library defines this for functions which it implements
2169 to always fail with ENOSYS. Some functions are actually named
2170 something starting with __ and the normal name is an alias. */
2171 #if defined __stub_$2 || defined __stub___$2
2183 if ac_fn_c_try_link "$LINENO"; then :
2188 rm -f core conftest.err conftest.$ac_objext \
2189 conftest$ac_exeext conftest.$ac_ext
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 } # ac_fn_c_check_func
2198 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2199 # -------------------------------------------
2200 # Tests whether TYPE exists after having included INCLUDES, setting cache
2201 # variable VAR accordingly.
2202 ac_fn_c_check_type ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206 $as_echo_n "checking for $2... " >&6; }
2207 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 $as_echo_n "(cached) " >&6
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2236 if ac_fn_c_try_compile "$LINENO"; then :
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 } # ac_fn_c_check_type
2252 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2253 # ----------------------------------------------------
2254 # Tries to find if the field MEMBER exists in type AGGR, after including
2255 # INCLUDES, setting cache variable VAR accordingly.
2256 ac_fn_c_check_member ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2260 $as_echo_n "checking for $2.$3... " >&6; }
2261 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2262 $as_echo_n "(cached) " >&6
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2277 if ac_fn_c_try_compile "$LINENO"; then :
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2287 if (sizeof ac_aggr.$3)
2293 if ac_fn_c_try_compile "$LINENO"; then :
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307 } # ac_fn_c_check_member
2309 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2310 # --------------------------------------------
2311 # Tries to find the compile-time value of EXPR in a program that includes
2312 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2314 ac_fn_c_compute_int ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 if test "$cross_compiling" = yes; then
2318 # Depending upon the size, compute the lo and hi bounds.
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2325 static int test_array [1 - 2 * !(($2) >= 0)];
2332 if ac_fn_c_try_compile "$LINENO"; then :
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2341 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 ac_hi=$ac_mid; break
2351 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2352 if test $ac_lo -le $ac_mid; then
2356 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2367 static int test_array [1 - 2 * !(($2) < 0)];
2374 if ac_fn_c_try_compile "$LINENO"; then :
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2383 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 ac_lo=$ac_mid; break
2393 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2394 if test $ac_mid -le $ac_hi; then
2398 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 # Binary search between lo and hi bounds.
2409 while test "x$ac_lo" != "x$ac_hi"; do
2410 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2417 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2424 if ac_fn_c_try_compile "$LINENO"; then :
2427 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2439 static long int longval () { return $2; }
2440 static unsigned long int ulongval () { return $2; }
2447 FILE *f = fopen ("conftest.val", "w");
2452 long int i = longval ();
2455 fprintf (f, "%ld", i);
2459 unsigned long int i = ulongval ();
2462 fprintf (f, "%lu", i);
2464 /* Do not output a trailing newline, as this causes \r\n confusion
2465 on some platforms. */
2466 return ferror (f) || fclose (f) != 0;
2472 if ac_fn_c_try_run "$LINENO"; then :
2473 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2478 conftest.$ac_objext conftest.beam conftest.$ac_ext
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 as_fn_set_status $ac_retval
2485 } # ac_fn_c_compute_int
2486 cat >config.log <<_ACEOF
2487 This file contains any messages produced by compilers while
2488 running configure, to aid debugging if configure makes a mistake.
2490 It was created by $as_me, which was
2491 generated by GNU Autoconf 2.65. Invocation command line was
2503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2512 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2513 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2515 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2516 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2517 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2518 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 $as_echo "PATH: $as_dir"
2543 # Keep a trace of the command line.
2544 # Strip out --no-create and --no-recursion so they do not pile up.
2545 # Strip out --silent because we don't want to record it for future runs.
2546 # Also quote any args containing shell meta-characters.
2547 # Make two passes to allow for proper duplicate-argument suppression.
2551 ac_must_keep_next=false
2557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2559 | -silent | --silent | --silen | --sile | --sil)
2562 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2565 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2567 as_fn_append ac_configure_args1 " '$ac_arg'"
2568 if test $ac_must_keep_next = true; then
2569 ac_must_keep_next=false # Got value, back to normal.
2572 *=* | --config-cache | -C | -disable-* | --disable-* \
2573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2575 | -with-* | --with-* | -without-* | --without-* | --x)
2576 case "$ac_configure_args0 " in
2577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2580 -* ) ac_must_keep_next=true ;;
2583 as_fn_append ac_configure_args " '$ac_arg'"
2588 { ac_configure_args0=; unset ac_configure_args0;}
2589 { ac_configure_args1=; unset ac_configure_args1;}
2591 # When interrupted or exit'd, cleanup temporary files, and complete
2592 # config.log. We remove comments because anyway the quotes in there
2593 # would cause problems or look ugly.
2594 # WARNING: Use '\'' to represent an apostrophe within the trap.
2595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2596 trap 'exit_status=$?
2597 # Save into config.log some information that might help in debugging.
2602 ## ---------------- ##
2603 ## Cache variables. ##
2604 ## ---------------- ##
2607 # The following way of writing the cache mishandles newlines in values,
2609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2610 eval ac_val=\$$ac_var
2614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2618 _ | IFS | as_nl) ;; #(
2619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2620 *) { eval $ac_var=; unset $ac_var;} ;;
2625 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2626 *${as_nl}ac_space=\ *)
2628 "s/'\''/'\''\\\\'\'''\''/g;
2629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2640 ## ----------------- ##
2641 ## Output variables. ##
2642 ## ----------------- ##
2645 for ac_var in $ac_subst_vars
2647 eval ac_val=\$$ac_var
2649 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2651 $as_echo "$ac_var='\''$ac_val'\''"
2655 if test -n "$ac_subst_files"; then
2657 ## ------------------- ##
2658 ## File substitutions. ##
2659 ## ------------------- ##
2662 for ac_var in $ac_subst_files
2664 eval ac_val=\$$ac_var
2666 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2668 $as_echo "$ac_var='\''$ac_val'\''"
2673 if test -s confdefs.h; then
2683 test "$ac_signal" != 0 &&
2684 $as_echo "$as_me: caught signal $ac_signal"
2685 $as_echo "$as_me: exit $exit_status"
2687 rm -f core *.core core.conftest.* &&
2688 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2691 for ac_signal in 1 2 13 15; do
2692 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2696 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2697 rm -f -r conftest* confdefs.h
2699 $as_echo "/* confdefs.h */" > confdefs.h
2701 # Predefined preprocessor variables.
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_NAME "$PACKAGE_NAME"
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_STRING "$PACKAGE_STRING"
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_URL "$PACKAGE_URL"
2728 # Let the site file select an alternate cache file if it wants to.
2729 # Prefer an explicitly selected file to automatically selected ones.
2732 if test -n "$CONFIG_SITE"; then
2733 ac_site_file1=$CONFIG_SITE
2734 elif test "x$prefix" != xNONE; then
2735 ac_site_file1=$prefix/share/config.site
2736 ac_site_file2=$prefix/etc/config.site
2738 ac_site_file1=$ac_default_prefix/share/config.site
2739 ac_site_file2=$ac_default_prefix/etc/config.site
2741 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2743 test "x$ac_site_file" = xNONE && continue
2744 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2746 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2747 sed 's/^/| /' "$ac_site_file" >&5
2753 # Check that the precious variables saved in the cache have kept the same
2755 ac_cache_corrupted=false
2756 for ac_var in $ac_precious_vars; do
2757 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2758 eval ac_new_set=\$ac_env_${ac_var}_set
2759 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2760 eval ac_new_val=\$ac_env_${ac_var}_value
2761 case $ac_old_set,$ac_new_set in
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2764 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2765 ac_cache_corrupted=: ;;
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2768 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2769 ac_cache_corrupted=: ;;
2772 if test "x$ac_old_val" != "x$ac_new_val"; then
2773 # differences in whitespace do not lead to failure.
2774 ac_old_val_w=`echo x $ac_old_val`
2775 ac_new_val_w=`echo x $ac_new_val`
2776 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2778 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2779 ac_cache_corrupted=:
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2782 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2783 eval $ac_var=\$ac_old_val
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2786 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2788 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2791 # Pass precious variables to config.status.
2792 if test "$ac_new_set" = set; then
2794 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2795 *) ac_arg=$ac_var=$ac_new_val ;;
2797 case " $ac_configure_args " in
2798 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2799 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2803 if $ac_cache_corrupted; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2807 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2808 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2810 ## -------------------- ##
2811 ## Main body of script. ##
2812 ## -------------------- ##
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848 for ac_dir in build "$srcdir"/build; do
2849 for ac_t in install-sh install.sh shtool; do
2850 if test -f "$ac_dir/$ac_t"; then
2852 ac_install_sh="$ac_aux_dir/$ac_t -c"
2857 if test -z "$ac_aux_dir"; then
2858 as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2861 # These three variables are undocumented and unsupported,
2862 # and are intended to be withdrawn in a future Autoconf release.
2863 # They can cause serious problems if a builder's source tree is in a directory
2864 # whose full name contains unusual characters.
2865 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2866 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2867 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2870 eval `$ac_aux_dir/version.sh`
2871 if test -z "$OL_STRING"; then
2872 as_fn_error "could not determine version" "$LINENO" 5
2875 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2876 ac_cv_shtool="$ac_aux_dir/shtool"
2878 as_fn_error "no shtool found in $ac_aux_dir" "$LINENO" 5
2881 SHTOOL="$ac_cv_shtool"
2885 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2886 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2890 if test -d $ac_aux_dir/../.git; then
2891 OPENLDAP_REPO="(from Git clone) "
2892 elif test -d $ac_aux_dir/CVS; then
2893 OPENLDAP_REPO="(from CVS checkout) "
2896 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2898 # Make sure we can run config.sub.
2899 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2900 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2903 $as_echo_n "checking build system type... " >&6; }
2904 if test "${ac_cv_build+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
2907 ac_build_alias=$build_alias
2908 test "x$ac_build_alias" = x &&
2909 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2910 test "x$ac_build_alias" = x &&
2911 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2912 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2913 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2917 $as_echo "$ac_cv_build" >&6; }
2918 case $ac_cv_build in
2920 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2923 ac_save_IFS=$IFS; IFS='-'
2929 # Remember, the first character of IFS is used to create $*,
2930 # except with old shells:
2933 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2937 $as_echo_n "checking host system type... " >&6; }
2938 if test "${ac_cv_host+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
2941 if test "x$host_alias" = x; then
2942 ac_cv_host=$ac_cv_build
2944 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2945 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2950 $as_echo "$ac_cv_host" >&6; }
2953 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2956 ac_save_IFS=$IFS; IFS='-'
2962 # Remember, the first character of IFS is used to create $*,
2963 # except with old shells:
2966 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2970 $as_echo_n "checking target system type... " >&6; }
2971 if test "${ac_cv_target+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2974 if test "x$target_alias" = x; then
2975 ac_cv_target=$ac_cv_host
2977 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2978 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2983 $as_echo "$ac_cv_target" >&6; }
2984 case $ac_cv_target in
2986 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2988 target=$ac_cv_target
2989 ac_save_IFS=$IFS; IFS='-'
2995 # Remember, the first character of IFS is used to create $*,
2996 # except with old shells:
2999 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3002 # The aliases save the names the user supplied, while $host etc.
3003 # will get canonicalized.
3004 test -n "$target_alias" &&
3005 test "$program_prefix$program_suffix$program_transform_name" = \
3007 program_prefix=${target_alias}-
3009 am__api_version="1.9"
3010 # Find a good install program. We prefer a C program (faster),
3011 # so one script is as good as another. But avoid the broken or
3012 # incompatible versions:
3013 # SysV /etc/install, /usr/sbin/install
3014 # SunOS /usr/etc/install
3015 # IRIX /sbin/install
3017 # AmigaOS /C/install, which installs bootblocks on floppy discs
3018 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3021 # OS/2's system install, which has a completely different semantic
3022 # ./install, which can be erroneously created by make from ./install.sh.
3023 # Reject install programs that cannot install multiple files.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3025 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3026 if test -z "$INSTALL"; then
3027 if test "${ac_cv_path_install+set}" = set; then :
3028 $as_echo_n "(cached) " >&6
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 # Account for people who put trailing slashes in PATH elements.
3036 case $as_dir/ in #((
3037 ./ | .// | /[cC]/* | \
3038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3039 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3042 # OSF1 and SCO ODT 3.0 have their own names for install.
3043 # Don't use installbsd from OSF since it installs stuff as root
3045 for ac_prog in ginstall scoinst install; do
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3048 if test $ac_prog = install &&
3049 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3050 # AIX install. It has an incompatible calling convention.
3052 elif test $ac_prog = install &&
3053 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3054 # program-specific install script used by HP pwplus--don't use.
3057 rm -rf conftest.one conftest.two conftest.dir
3058 echo one > conftest.one
3059 echo two > conftest.two
3061 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3062 test -s conftest.one && test -s conftest.two &&
3063 test -s conftest.dir/conftest.one &&
3064 test -s conftest.dir/conftest.two
3066 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3079 rm -rf conftest.one conftest.two conftest.dir
3082 if test "${ac_cv_path_install+set}" = set; then
3083 INSTALL=$ac_cv_path_install
3085 # As a last resort, use the slow shell script. Don't cache a
3086 # value for INSTALL within a source directory, because that will
3087 # break other packages using the cache if that directory is
3088 # removed, or if the value is a relative name.
3089 INSTALL=$ac_install_sh
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3093 $as_echo "$INSTALL" >&6; }
3095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3096 # It thinks the first close brace ends the variable substitution.
3097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3104 $as_echo_n "checking whether build environment is sane... " >&6; }
3107 echo timestamp > conftest.file
3108 # Do `set' in a subshell so we don't clobber the current shell's
3109 # arguments. Must try -L first in case configure is actually a
3110 # symlink; some systems play weird games with the mod time of symlinks
3111 # (eg FreeBSD returns the mod time of the symlink's containing
3114 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3115 if test "$*" = "X"; then
3117 set X `ls -t $srcdir/configure conftest.file`
3120 if test "$*" != "X $srcdir/configure conftest.file" \
3121 && test "$*" != "X conftest.file $srcdir/configure"; then
3123 # If neither matched, then we have a broken ls. This can happen
3124 # if, for instance, CONFIG_SHELL is bash and it inherits a
3125 # broken ls alias from the environment. This has actually
3126 # happened. Such a system could not be considered "sane".
3127 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3128 alias in your environment" "$LINENO" 5
3131 test "$2" = conftest.file
3137 as_fn_error "newly created file is older than distributed files!
3138 Check your system clock" "$LINENO" 5
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141 $as_echo "yes" >&6; }
3142 test "$program_prefix" != NONE &&
3143 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3144 # Use a double $ so make ignores it.
3145 test "$program_suffix" != NONE &&
3146 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3147 # Double any \ or $.
3148 # By default was `s,x,x', remove it if useless.
3149 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3150 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3152 # expand $ac_aux_dir to an absolute path
3153 am_aux_dir=`cd $ac_aux_dir && pwd`
3155 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3156 # Use eval to expand $SHELL
3157 if eval "$MISSING --run true"; then
3158 am_missing_run="$MISSING --run "
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3162 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3165 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3166 # We used to keeping the `.' as first argument, in order to
3167 # allow $(mkdir_p) to be used without argument. As in
3168 # $(mkdir_p) $(somedir)
3169 # where $(somedir) is conditionally defined. However this is wrong
3171 # 1. if the package is installed by a user who cannot write `.'
3172 # make install will fail,
3173 # 2. the above comment should most certainly read
3174 # $(mkdir_p) $(DESTDIR)$(somedir)
3175 # so it does not work when $(somedir) is undefined and
3176 # $(DESTDIR) is not.
3177 # To support the latter case, we have to write
3178 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3179 # so the `.' trick is pointless.
3180 mkdir_p='mkdir -p --'
3182 # On NextStep and OpenStep, the `mkdir' command does not
3183 # recognize any option. It will interpret all options as
3184 # directories to create, and then abort because `.' already
3186 for d in ./-p ./--version;
3188 test -d $d && rmdir $d
3190 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3191 if test -f "$ac_aux_dir/mkinstalldirs"; then
3192 mkdir_p='$(mkinstalldirs)'
3194 mkdir_p='$(install_sh) -d'
3198 for ac_prog in gawk mawk nawk awk
3200 # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if test "${ac_cv_prog_AWK+set}" = set; then :
3205 $as_echo_n "(cached) " >&6
3207 if test -n "$AWK"; then
3208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_AWK="$ac_prog"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 if test -n "$AWK"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3230 $as_echo "$AWK" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3237 test -n "$AWK" && break
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3241 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3243 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3244 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3245 $as_echo_n "(cached) " >&6
3247 cat >conftest.make <<\_ACEOF
3250 @echo '@@@%%%=$(MAKE)=@@@%%%'
3252 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3253 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3255 eval ac_cv_prog_make_${ac_make}_set=yes;;
3257 eval ac_cv_prog_make_${ac_make}_set=no;;
3261 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 SET_MAKE="MAKE=${MAKE-make}"
3271 rm -rf .tst 2>/dev/null
3272 mkdir .tst 2>/dev/null
3273 if test -d .tst; then
3278 rmdir .tst 2>/dev/null
3280 # test to see if srcdir already configured
3281 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3282 test -f $srcdir/config.status; then
3283 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3286 # test whether we have cygpath
3287 if test -z "$CYGPATH_W"; then
3288 if (cygpath --version) >/dev/null 2>/dev/null; then
3289 CYGPATH_W='cygpath -w'
3296 # Define the identity of the package.
3301 # Some tools Automake needs.
3303 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3306 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3309 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3312 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3315 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3317 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3319 # Installed binaries are usually stripped using `strip' when the user
3320 # run `make install-strip'. However `strip' might not be the right
3321 # tool to use in cross-compilation environments, therefore Automake
3322 # will honor the `STRIP' environment variable to overrule this program.
3323 if test "$cross_compiling" != no; then
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}strip; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if test "${ac_cv_prog_STRIP+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3332 if test -n "$STRIP"; then
3333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 STRIP=$ac_cv_prog_STRIP
3353 if test -n "$STRIP"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3355 $as_echo "$STRIP" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3363 if test -z "$ac_cv_prog_STRIP"; then
3365 # Extract the first word of "strip", so it can be a program name with args.
3366 set dummy strip; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
3372 if test -n "$ac_ct_STRIP"; then
3373 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_ac_ct_STRIP="strip"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3393 if test -n "$ac_ct_STRIP"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3395 $as_echo "$ac_ct_STRIP" >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3401 if test "x$ac_ct_STRIP" = x; then
3404 case $cross_compiling:$ac_tool_warned in
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3413 STRIP="$ac_cv_prog_STRIP"
3417 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3419 # We need awk for the "check" target. The system "awk" is bad on
3421 # Always define AMTAR for backward compatibility.
3423 AMTAR=${AMTAR-"${am_missing_run}tar"}
3425 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3431 cat >>confdefs.h <<_ACEOF
3432 #define OPENLDAP_PACKAGE "$PACKAGE"
3436 cat >>confdefs.h <<_ACEOF
3437 #define OPENLDAP_VERSION "$VERSION"
3442 cat >>confdefs.h <<_ACEOF
3443 #define LDAP_VENDOR_VERSION $OL_API_INC
3447 cat >>confdefs.h <<_ACEOF
3448 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
3452 cat >>confdefs.h <<_ACEOF
3453 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
3457 cat >>confdefs.h <<_ACEOF
3458 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
3462 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
3464 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
3466 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
3472 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
3474 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
3476 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
3480 $as_echo_n "checking configure arguments... " >&6; }
3485 ldap_subdir="/openldap"
3488 # Check whether --with-subdir was given.
3489 if test "${with_subdir+set}" = set; then :
3490 withval=$with_subdir; case "$withval" in
3496 ldap_subdir="$withval"
3499 ldap_subdir="/$withval"
3506 # OpenLDAP --enable-debug
3508 # Check whether --enable-debug was given.
3509 if test "${enable_debug+set}" = set; then :
3510 enableval=$enable_debug;
3512 for ol_val in no yes traditional ; do
3513 if test "$enableval" = "$ol_val" ; then
3517 if test "$ol_arg" = "invalid" ; then
3518 as_fn_error "bad value $enableval for --enable-debug" "$LINENO" 5
3520 ol_enable_debug="$ol_arg"
3526 # end --enable-debug
3527 # OpenLDAP --enable-dynamic
3529 # Check whether --enable-dynamic was given.
3530 if test "${enable_dynamic+set}" = set; then :
3531 enableval=$enable_dynamic;
3533 for ol_val in auto yes no ; do
3534 if test "$enableval" = "$ol_val" ; then
3538 if test "$ol_arg" = "invalid" ; then
3539 as_fn_error "bad value $enableval for --enable-dynamic" "$LINENO" 5
3541 ol_enable_dynamic="$ol_arg"
3544 ol_enable_dynamic=no
3547 # end --enable-dynamic
3548 # OpenLDAP --enable-syslog
3550 # Check whether --enable-syslog was given.
3551 if test "${enable_syslog+set}" = set; then :
3552 enableval=$enable_syslog;
3554 for ol_val in auto yes no ; do
3555 if test "$enableval" = "$ol_val" ; then
3559 if test "$ol_arg" = "invalid" ; then
3560 as_fn_error "bad value $enableval for --enable-syslog" "$LINENO" 5
3562 ol_enable_syslog="$ol_arg"
3565 ol_enable_syslog=auto
3568 # end --enable-syslog
3569 # OpenLDAP --enable-proctitle
3571 # Check whether --enable-proctitle was given.
3572 if test "${enable_proctitle+set}" = set; then :
3573 enableval=$enable_proctitle;
3575 for ol_val in auto yes no ; do
3576 if test "$enableval" = "$ol_val" ; then
3580 if test "$ol_arg" = "invalid" ; then
3581 as_fn_error "bad value $enableval for --enable-proctitle" "$LINENO" 5
3583 ol_enable_proctitle="$ol_arg"
3586 ol_enable_proctitle=yes
3589 # end --enable-proctitle
3590 ol_enable_referrals=${ol_enable_referrals-no}
3591 # OpenLDAP --enable-ipv6
3593 # Check whether --enable-ipv6 was given.
3594 if test "${enable_ipv6+set}" = set; then :
3595 enableval=$enable_ipv6;
3597 for ol_val in auto yes no ; do
3598 if test "$enableval" = "$ol_val" ; then
3602 if test "$ol_arg" = "invalid" ; then
3603 as_fn_error "bad value $enableval for --enable-ipv6" "$LINENO" 5
3605 ol_enable_ipv6="$ol_arg"
3612 # OpenLDAP --enable-local
3614 # Check whether --enable-local was given.
3615 if test "${enable_local+set}" = set; then :
3616 enableval=$enable_local;
3618 for ol_val in auto yes no ; do
3619 if test "$enableval" = "$ol_val" ; then
3623 if test "$ol_arg" = "invalid" ; then
3624 as_fn_error "bad value $enableval for --enable-local" "$LINENO" 5
3626 ol_enable_local="$ol_arg"
3629 ol_enable_local=auto
3632 # end --enable-local
3634 # OpenLDAP --with-cyrus_sasl
3636 # Check whether --with-cyrus_sasl was given.
3637 if test "${with_cyrus_sasl+set}" = set; then :
3638 withval=$with_cyrus_sasl;
3640 for ol_val in auto yes no ; do
3641 if test "$withval" = "$ol_val" ; then
3645 if test "$ol_arg" = "invalid" ; then
3646 as_fn_error "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3648 ol_with_cyrus_sasl="$ol_arg"
3651 ol_with_cyrus_sasl="auto"
3653 # end --with-cyrus_sasl
3655 # OpenLDAP --with-fetch
3657 # Check whether --with-fetch was given.
3658 if test "${with_fetch+set}" = set; then :
3659 withval=$with_fetch;
3661 for ol_val in auto yes no ; do
3662 if test "$withval" = "$ol_val" ; then
3666 if test "$ol_arg" = "invalid" ; then
3667 as_fn_error "bad value $withval for --with-fetch" "$LINENO" 5
3669 ol_with_fetch="$ol_arg"
3672 ol_with_fetch="auto"
3676 # OpenLDAP --with-threads
3678 # Check whether --with-threads was given.
3679 if test "${with_threads+set}" = set; then :
3680 withval=$with_threads;
3682 for ol_val in auto nt posix mach pth lwp yes no manual ; do
3683 if test "$withval" = "$ol_val" ; then
3687 if test "$ol_arg" = "invalid" ; then
3688 as_fn_error "bad value $withval for --with-threads" "$LINENO" 5
3690 ol_with_threads="$ol_arg"
3693 ol_with_threads="auto"
3695 # end --with-threads
3697 # OpenLDAP --with-tls
3699 # Check whether --with-tls was given.
3700 if test "${with_tls+set}" = set; then :
3703 for ol_val in auto openssl gnutls moznss yes no ; do
3704 if test "$withval" = "$ol_val" ; then
3708 if test "$ol_arg" = "invalid" ; then
3709 as_fn_error "bad value $withval for --with-tls" "$LINENO" 5
3711 ol_with_tls="$ol_arg"
3718 # OpenLDAP --with-yielding_select
3720 # Check whether --with-yielding_select was given.
3721 if test "${with_yielding_select+set}" = set; then :
3722 withval=$with_yielding_select;
3724 for ol_val in auto yes no manual ; do
3725 if test "$withval" = "$ol_val" ; then
3729 if test "$ol_arg" = "invalid" ; then
3730 as_fn_error "bad value $withval for --with-yielding_select" "$LINENO" 5
3732 ol_with_yielding_select="$ol_arg"
3735 ol_with_yielding_select="auto"
3737 # end --with-yielding_select
3739 # OpenLDAP --with-mp
3741 # Check whether --with-mp was given.
3742 if test "${with_mp+set}" = set; then :
3745 for ol_val in auto longlong long bignum gmp yes no ; do
3746 if test "$withval" = "$ol_val" ; then
3750 if test "$ol_arg" = "invalid" ; then
3751 as_fn_error "bad value $withval for --with-mp" "$LINENO" 5
3753 ol_with_mp="$ol_arg"
3760 # OpenLDAP --with-odbc
3762 # Check whether --with-odbc was given.
3763 if test "${with_odbc+set}" = set; then :
3766 for ol_val in auto iodbc unixodbc odbc32 ; do
3767 if test "$withval" = "$ol_val" ; then
3771 if test "$ol_arg" = "invalid" ; then
3772 as_fn_error "bad value $withval for --with-odbc" "$LINENO" 5
3774 ol_with_odbc="$ol_arg"
3783 # Check whether --enable-xxslapdoptions was given.
3784 if test "${enable_xxslapdoptions+set}" = set; then :
3785 enableval=$enable_xxslapdoptions;
3788 # OpenLDAP --enable-slapd
3790 # Check whether --enable-slapd was given.
3791 if test "${enable_slapd+set}" = set; then :
3792 enableval=$enable_slapd;
3794 for ol_val in auto yes no ; do
3795 if test "$enableval" = "$ol_val" ; then
3799 if test "$ol_arg" = "invalid" ; then
3800 as_fn_error "bad value $enableval for --enable-slapd" "$LINENO" 5
3802 ol_enable_slapd="$ol_arg"
3808 # end --enable-slapd
3809 # OpenLDAP --enable-dynacl
3811 # Check whether --enable-dynacl was given.
3812 if test "${enable_dynacl+set}" = set; then :
3813 enableval=$enable_dynacl;
3815 for ol_val in auto yes no ; do
3816 if test "$enableval" = "$ol_val" ; then
3820 if test "$ol_arg" = "invalid" ; then
3821 as_fn_error "bad value $enableval for --enable-dynacl" "$LINENO" 5
3823 ol_enable_dynacl="$ol_arg"
3829 # end --enable-dynacl
3830 # OpenLDAP --enable-aci
3832 # Check whether --enable-aci was given.
3833 if test "${enable_aci+set}" = set; then :
3834 enableval=$enable_aci;
3836 for ol_val in no yes mod ; do
3837 if test "$enableval" = "$ol_val" ; then
3841 if test "$ol_arg" = "invalid" ; then
3842 as_fn_error "bad value $enableval for --enable-aci" "$LINENO" 5
3844 ol_enable_aci="$ol_arg"
3851 # OpenLDAP --enable-cleartext
3853 # Check whether --enable-cleartext was given.
3854 if test "${enable_cleartext+set}" = set; then :
3855 enableval=$enable_cleartext;
3857 for ol_val in auto yes no ; do
3858 if test "$enableval" = "$ol_val" ; then
3862 if test "$ol_arg" = "invalid" ; then
3863 as_fn_error "bad value $enableval for --enable-cleartext" "$LINENO" 5
3865 ol_enable_cleartext="$ol_arg"
3868 ol_enable_cleartext=yes
3871 # end --enable-cleartext
3872 # OpenLDAP --enable-crypt
3874 # Check whether --enable-crypt was given.
3875 if test "${enable_crypt+set}" = set; then :
3876 enableval=$enable_crypt;
3878 for ol_val in auto yes no ; do
3879 if test "$enableval" = "$ol_val" ; then
3883 if test "$ol_arg" = "invalid" ; then
3884 as_fn_error "bad value $enableval for --enable-crypt" "$LINENO" 5
3886 ol_enable_crypt="$ol_arg"
3892 # end --enable-crypt
3893 # OpenLDAP --enable-lmpasswd
3895 # Check whether --enable-lmpasswd was given.
3896 if test "${enable_lmpasswd+set}" = set; then :
3897 enableval=$enable_lmpasswd;
3899 for ol_val in auto yes no ; do
3900 if test "$enableval" = "$ol_val" ; then
3904 if test "$ol_arg" = "invalid" ; then
3905 as_fn_error "bad value $enableval for --enable-lmpasswd" "$LINENO" 5
3907 ol_enable_lmpasswd="$ol_arg"
3910 ol_enable_lmpasswd=no
3913 # end --enable-lmpasswd
3914 # OpenLDAP --enable-spasswd
3916 # Check whether --enable-spasswd was given.
3917 if test "${enable_spasswd+set}" = set; then :
3918 enableval=$enable_spasswd;
3920 for ol_val in auto yes no ; do
3921 if test "$enableval" = "$ol_val" ; then
3925 if test "$ol_arg" = "invalid" ; then
3926 as_fn_error "bad value $enableval for --enable-spasswd" "$LINENO" 5
3928 ol_enable_spasswd="$ol_arg"
3931 ol_enable_spasswd=no
3934 # end --enable-spasswd
3935 # OpenLDAP --enable-modules
3937 # Check whether --enable-modules was given.
3938 if test "${enable_modules+set}" = set; then :
3939 enableval=$enable_modules;
3941 for ol_val in auto yes no ; do
3942 if test "$enableval" = "$ol_val" ; then
3946 if test "$ol_arg" = "invalid" ; then
3947 as_fn_error "bad value $enableval for --enable-modules" "$LINENO" 5
3949 ol_enable_modules="$ol_arg"
3952 ol_enable_modules=no
3955 # end --enable-modules
3956 # OpenLDAP --enable-rewrite
3958 # Check whether --enable-rewrite was given.
3959 if test "${enable_rewrite+set}" = set; then :
3960 enableval=$enable_rewrite;
3962 for ol_val in auto yes no ; do
3963 if test "$enableval" = "$ol_val" ; then
3967 if test "$ol_arg" = "invalid" ; then
3968 as_fn_error "bad value $enableval for --enable-rewrite" "$LINENO" 5
3970 ol_enable_rewrite="$ol_arg"
3973 ol_enable_rewrite=auto
3976 # end --enable-rewrite
3977 # OpenLDAP --enable-rlookups
3979 # Check whether --enable-rlookups was given.
3980 if test "${enable_rlookups+set}" = set; then :
3981 enableval=$enable_rlookups;
3983 for ol_val in auto yes no ; do
3984 if test "$enableval" = "$ol_val" ; then
3988 if test "$ol_arg" = "invalid" ; then
3989 as_fn_error "bad value $enableval for --enable-rlookups" "$LINENO" 5
3991 ol_enable_rlookups="$ol_arg"
3994 ol_enable_rlookups=no
3997 # end --enable-rlookups
3998 # OpenLDAP --enable-slapi
4000 # Check whether --enable-slapi was given.
4001 if test "${enable_slapi+set}" = set; then :
4002 enableval=$enable_slapi;
4004 for ol_val in auto yes no ; do
4005 if test "$enableval" = "$ol_val" ; then
4009 if test "$ol_arg" = "invalid" ; then
4010 as_fn_error "bad value $enableval for --enable-slapi" "$LINENO" 5
4012 ol_enable_slapi="$ol_arg"
4018 # end --enable-slapi
4019 # OpenLDAP --enable-slp
4021 # Check whether --enable-slp was given.
4022 if test "${enable_slp+set}" = set; then :
4023 enableval=$enable_slp;
4025 for ol_val in auto yes no ; do
4026 if test "$enableval" = "$ol_val" ; then
4030 if test "$ol_arg" = "invalid" ; then
4031 as_fn_error "bad value $enableval for --enable-slp" "$LINENO" 5
4033 ol_enable_slp="$ol_arg"
4040 # OpenLDAP --enable-wrappers
4042 # Check whether --enable-wrappers was given.
4043 if test "${enable_wrappers+set}" = set; then :
4044 enableval=$enable_wrappers;
4046 for ol_val in auto yes no ; do
4047 if test "$enableval" = "$ol_val" ; then
4051 if test "$ol_arg" = "invalid" ; then
4052 as_fn_error "bad value $enableval for --enable-wrappers" "$LINENO" 5
4054 ol_enable_wrappers="$ol_arg"
4057 ol_enable_wrappers=no
4060 # end --enable-wrappers
4080 # Check whether --enable-xxslapbackends was given.
4081 if test "${enable_xxslapbackends+set}" = set; then :
4082 enableval=$enable_xxslapbackends;
4086 # OpenLDAP --enable-backends
4088 # Check whether --enable-backends was given.
4089 if test "${enable_backends+set}" = set; then :
4090 enableval=$enable_backends;
4092 for ol_val in no yes mod ; do
4093 if test "$enableval" = "$ol_val" ; then
4097 if test "$ol_arg" = "invalid" ; then
4098 as_fn_error "bad value $enableval for --enable-backends" "$LINENO" 5
4100 ol_enable_backends="$ol_arg"
4104 # end --enable-backends
4105 # OpenLDAP --enable-bdb
4107 # Check whether --enable-bdb was given.
4108 if test "${enable_bdb+set}" = set; then :
4109 enableval=$enable_bdb;
4111 for ol_val in no yes mod ; do
4112 if test "$enableval" = "$ol_val" ; then
4116 if test "$ol_arg" = "invalid" ; then
4117 as_fn_error "bad value $enableval for --enable-bdb" "$LINENO" 5
4119 ol_enable_bdb="$ol_arg"
4122 ol_enable_bdb=${ol_enable_backends:-no}
4126 # OpenLDAP --enable-dnssrv
4128 # Check whether --enable-dnssrv was given.
4129 if test "${enable_dnssrv+set}" = set; then :
4130 enableval=$enable_dnssrv;
4132 for ol_val in no yes mod ; do
4133 if test "$enableval" = "$ol_val" ; then
4137 if test "$ol_arg" = "invalid" ; then
4138 as_fn_error "bad value $enableval for --enable-dnssrv" "$LINENO" 5
4140 ol_enable_dnssrv="$ol_arg"
4143 ol_enable_dnssrv=${ol_enable_backends:-no}
4146 # end --enable-dnssrv
4147 # OpenLDAP --enable-hdb
4149 # Check whether --enable-hdb was given.
4150 if test "${enable_hdb+set}" = set; then :
4151 enableval=$enable_hdb;
4153 for ol_val in no yes mod ; do
4154 if test "$enableval" = "$ol_val" ; then
4158 if test "$ol_arg" = "invalid" ; then
4159 as_fn_error "bad value $enableval for --enable-hdb" "$LINENO" 5
4161 ol_enable_hdb="$ol_arg"
4164 ol_enable_hdb=${ol_enable_backends:-no}
4168 # OpenLDAP --enable-ldap
4170 # Check whether --enable-ldap was given.
4171 if test "${enable_ldap+set}" = set; then :
4172 enableval=$enable_ldap;
4174 for ol_val in no yes mod ; do
4175 if test "$enableval" = "$ol_val" ; then
4179 if test "$ol_arg" = "invalid" ; then
4180 as_fn_error "bad value $enableval for --enable-ldap" "$LINENO" 5
4182 ol_enable_ldap="$ol_arg"
4185 ol_enable_ldap=${ol_enable_backends:-no}
4189 # OpenLDAP --enable-mdb
4191 # Check whether --enable-mdb was given.
4192 if test "${enable_mdb+set}" = set; then :
4193 enableval=$enable_mdb;
4195 for ol_val in no yes mod ; do
4196 if test "$enableval" = "$ol_val" ; then
4200 if test "$ol_arg" = "invalid" ; then
4201 as_fn_error "bad value $enableval for --enable-mdb" "$LINENO" 5
4203 ol_enable_mdb="$ol_arg"
4206 ol_enable_mdb=${ol_enable_backends:-yes}
4210 # OpenLDAP --enable-meta
4212 # Check whether --enable-meta was given.
4213 if test "${enable_meta+set}" = set; then :
4214 enableval=$enable_meta;
4216 for ol_val in no yes mod ; do
4217 if test "$enableval" = "$ol_val" ; then
4221 if test "$ol_arg" = "invalid" ; then
4222 as_fn_error "bad value $enableval for --enable-meta" "$LINENO" 5
4224 ol_enable_meta="$ol_arg"
4227 ol_enable_meta=${ol_enable_backends:-no}
4231 # OpenLDAP --enable-asyncmeta
4233 # Check whether --enable-asyncmeta was given.
4234 if test "${enable_asyncmeta+set}" = set; then :
4235 enableval=$enable_asyncmeta;
4237 for ol_val in no yes mod ; do
4238 if test "$enableval" = "$ol_val" ; then
4242 if test "$ol_arg" = "invalid" ; then
4243 as_fn_error "bad value $enableval for --enable-asyncmeta" "$LINENO" 5
4245 ol_enable_asyncmeta="$ol_arg"
4248 ol_enable_asyncmeta=${ol_enable_backends:-no}
4251 # end --enable-asyncmeta
4252 # OpenLDAP --enable-monitor
4254 # Check whether --enable-monitor was given.
4255 if test "${enable_monitor+set}" = set; then :
4256 enableval=$enable_monitor;
4258 for ol_val in no yes mod ; do
4259 if test "$enableval" = "$ol_val" ; then
4263 if test "$ol_arg" = "invalid" ; then
4264 as_fn_error "bad value $enableval for --enable-monitor" "$LINENO" 5
4266 ol_enable_monitor="$ol_arg"
4269 ol_enable_monitor=${ol_enable_backends:-yes}
4272 # end --enable-monitor
4273 # OpenLDAP --enable-ndb
4275 # Check whether --enable-ndb was given.
4276 if test "${enable_ndb+set}" = set; then :
4277 enableval=$enable_ndb;
4279 for ol_val in no yes mod ; do
4280 if test "$enableval" = "$ol_val" ; then
4284 if test "$ol_arg" = "invalid" ; then
4285 as_fn_error "bad value $enableval for --enable-ndb" "$LINENO" 5
4287 ol_enable_ndb="$ol_arg"
4290 ol_enable_ndb=${ol_enable_backends:-no}
4294 # OpenLDAP --enable-null
4296 # Check whether --enable-null was given.
4297 if test "${enable_null+set}" = set; then :
4298 enableval=$enable_null;
4300 for ol_val in no yes mod ; do
4301 if test "$enableval" = "$ol_val" ; then
4305 if test "$ol_arg" = "invalid" ; then
4306 as_fn_error "bad value $enableval for --enable-null" "$LINENO" 5
4308 ol_enable_null="$ol_arg"
4311 ol_enable_null=${ol_enable_backends:-no}
4315 # OpenLDAP --enable-passwd
4317 # Check whether --enable-passwd was given.
4318 if test "${enable_passwd+set}" = set; then :
4319 enableval=$enable_passwd;
4321 for ol_val in no yes mod ; do
4322 if test "$enableval" = "$ol_val" ; then
4326 if test "$ol_arg" = "invalid" ; then
4327 as_fn_error "bad value $enableval for --enable-passwd" "$LINENO" 5
4329 ol_enable_passwd="$ol_arg"
4332 ol_enable_passwd=${ol_enable_backends:-no}
4335 # end --enable-passwd
4336 # OpenLDAP --enable-perl
4338 # Check whether --enable-perl was given.
4339 if test "${enable_perl+set}" = set; then :
4340 enableval=$enable_perl;
4342 for ol_val in no yes mod ; do
4343 if test "$enableval" = "$ol_val" ; then
4347 if test "$ol_arg" = "invalid" ; then
4348 as_fn_error "bad value $enableval for --enable-perl" "$LINENO" 5
4350 ol_enable_perl="$ol_arg"
4353 ol_enable_perl=${ol_enable_backends:-no}
4357 # OpenLDAP --enable-relay
4359 # Check whether --enable-relay was given.
4360 if test "${enable_relay+set}" = set; then :
4361 enableval=$enable_relay;
4363 for ol_val in no yes mod ; do
4364 if test "$enableval" = "$ol_val" ; then
4368 if test "$ol_arg" = "invalid" ; then
4369 as_fn_error "bad value $enableval for --enable-relay" "$LINENO" 5
4371 ol_enable_relay="$ol_arg"
4374 ol_enable_relay=${ol_enable_backends:-yes}
4377 # end --enable-relay
4378 # OpenLDAP --enable-shell
4380 # Check whether --enable-shell was given.
4381 if test "${enable_shell+set}" = set; then :
4382 enableval=$enable_shell;
4384 for ol_val in no yes mod ; do
4385 if test "$enableval" = "$ol_val" ; then
4389 if test "$ol_arg" = "invalid" ; then
4390 as_fn_error "bad value $enableval for --enable-shell" "$LINENO" 5
4392 ol_enable_shell="$ol_arg"
4395 ol_enable_shell=${ol_enable_backends:-no}
4398 # end --enable-shell
4399 # OpenLDAP --enable-sock
4401 # Check whether --enable-sock was given.
4402 if test "${enable_sock+set}" = set; then :
4403 enableval=$enable_sock;
4405 for ol_val in no yes mod ; do
4406 if test "$enableval" = "$ol_val" ; then
4410 if test "$ol_arg" = "invalid" ; then
4411 as_fn_error "bad value $enableval for --enable-sock" "$LINENO" 5
4413 ol_enable_sock="$ol_arg"
4416 ol_enable_sock=${ol_enable_backends:-no}
4420 # OpenLDAP --enable-sql
4422 # Check whether --enable-sql was given.
4423 if test "${enable_sql+set}" = set; then :
4424 enableval=$enable_sql;
4426 for ol_val in no yes mod ; do
4427 if test "$enableval" = "$ol_val" ; then
4431 if test "$ol_arg" = "invalid" ; then
4432 as_fn_error "bad value $enableval for --enable-sql" "$LINENO" 5
4434 ol_enable_sql="$ol_arg"
4437 ol_enable_sql=${ol_enable_backends:-no}
4441 # OpenLDAP --enable-wt
4443 # Check whether --enable-wt was given.
4444 if test "${enable_wt+set}" = set; then :
4445 enableval=$enable_wt;
4447 for ol_val in no yes mod ; do
4448 if test "$enableval" = "$ol_val" ; then
4452 if test "$ol_arg" = "invalid" ; then
4453 as_fn_error "bad value $enableval for --enable-wt" "$LINENO" 5
4455 ol_enable_wt="$ol_arg"
4458 ol_enable_wt=${ol_enable_backends:-no}
4463 Overlays="accesslog \
4485 # Check whether --enable-xxslapoverlays was given.
4486 if test "${enable_xxslapoverlays+set}" = set; then :
4487 enableval=$enable_xxslapoverlays;
4491 # OpenLDAP --enable-overlays
4493 # Check whether --enable-overlays was given.
4494 if test "${enable_overlays+set}" = set; then :
4495 enableval=$enable_overlays;
4497 for ol_val in no yes mod ; do
4498 if test "$enableval" = "$ol_val" ; then
4502 if test "$ol_arg" = "invalid" ; then
4503 as_fn_error "bad value $enableval for --enable-overlays" "$LINENO" 5
4505 ol_enable_overlays="$ol_arg"
4509 # end --enable-overlays
4510 # OpenLDAP --enable-accesslog
4512 # Check whether --enable-accesslog was given.
4513 if test "${enable_accesslog+set}" = set; then :
4514 enableval=$enable_accesslog;
4516 for ol_val in no yes mod ; do
4517 if test "$enableval" = "$ol_val" ; then
4521 if test "$ol_arg" = "invalid" ; then
4522 as_fn_error "bad value $enableval for --enable-accesslog" "$LINENO" 5
4524 ol_enable_accesslog="$ol_arg"
4527 ol_enable_accesslog=${ol_enable_overlays:-no}
4530 # end --enable-accesslog
4532 # OpenLDAP --enable-auditlog
4534 # Check whether --enable-auditlog was given.
4535 if test "${enable_auditlog+set}" = set; then :
4536 enableval=$enable_auditlog;
4538 for ol_val in no yes mod ; do
4539 if test "$enableval" = "$ol_val" ; then
4543 if test "$ol_arg" = "invalid" ; then
4544 as_fn_error "bad value $enableval for --enable-auditlog" "$LINENO" 5
4546 ol_enable_auditlog="$ol_arg"
4549 ol_enable_auditlog=${ol_enable_overlays:-no}
4552 # end --enable-auditlog
4554 # OpenLDAP --enable-autoca
4556 # Check whether --enable-autoca was given.
4557 if test "${enable_autoca+set}" = set; then :
4558 enableval=$enable_autoca;
4560 for ol_val in no yes mod ; do
4561 if test "$enableval" = "$ol_val" ; then
4565 if test "$ol_arg" = "invalid" ; then
4566 as_fn_error "bad value $enableval for --enable-autoca" "$LINENO" 5
4568 ol_enable_autoca="$ol_arg"
4571 ol_enable_autoca=${ol_enable_overlays:-no}
4574 # end --enable-autoca
4576 # OpenLDAP --enable-collect
4578 # Check whether --enable-collect was given.
4579 if test "${enable_collect+set}" = set; then :
4580 enableval=$enable_collect;
4582 for ol_val in no yes mod ; do
4583 if test "$enableval" = "$ol_val" ; then
4587 if test "$ol_arg" = "invalid" ; then
4588 as_fn_error "bad value $enableval for --enable-collect" "$LINENO" 5
4590 ol_enable_collect="$ol_arg"
4593 ol_enable_collect=${ol_enable_overlays:-no}
4596 # end --enable-collect
4598 # OpenLDAP --enable-constraint
4600 # Check whether --enable-constraint was given.
4601 if test "${enable_constraint+set}" = set; then :
4602 enableval=$enable_constraint;
4604 for ol_val in no yes mod ; do
4605 if test "$enableval" = "$ol_val" ; then
4609 if test "$ol_arg" = "invalid" ; then
4610 as_fn_error "bad value $enableval for --enable-constraint" "$LINENO" 5
4612 ol_enable_constraint="$ol_arg"
4615 ol_enable_constraint=${ol_enable_overlays:-no}
4618 # end --enable-constraint
4620 # OpenLDAP --enable-dds
4622 # Check whether --enable-dds was given.
4623 if test "${enable_dds+set}" = set; then :
4624 enableval=$enable_dds;
4626 for ol_val in no yes mod ; do
4627 if test "$enableval" = "$ol_val" ; then
4631 if test "$ol_arg" = "invalid" ; then
4632 as_fn_error "bad value $enableval for --enable-dds" "$LINENO" 5
4634 ol_enable_dds="$ol_arg"
4637 ol_enable_dds=${ol_enable_overlays:-no}
4642 # OpenLDAP --enable-deref
4644 # Check whether --enable-deref was given.
4645 if test "${enable_deref+set}" = set; then :
4646 enableval=$enable_deref;
4648 for ol_val in no yes mod ; do
4649 if test "$enableval" = "$ol_val" ; then
4653 if test "$ol_arg" = "invalid" ; then
4654 as_fn_error "bad value $enableval for --enable-deref" "$LINENO" 5
4656 ol_enable_deref="$ol_arg"
4659 ol_enable_deref=${ol_enable_overlays:-no}
4662 # end --enable-deref
4664 # OpenLDAP --enable-dyngroup
4666 # Check whether --enable-dyngroup was given.
4667 if test "${enable_dyngroup+set}" = set; then :
4668 enableval=$enable_dyngroup;
4670 for ol_val in no yes mod ; do
4671 if test "$enableval" = "$ol_val" ; then
4675 if test "$ol_arg" = "invalid" ; then
4676 as_fn_error "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4678 ol_enable_dyngroup="$ol_arg"
4681 ol_enable_dyngroup=${ol_enable_overlays:-no}
4684 # end --enable-dyngroup
4686 # OpenLDAP --enable-dynlist
4688 # Check whether --enable-dynlist was given.
4689 if test "${enable_dynlist+set}" = set; then :
4690 enableval=$enable_dynlist;
4692 for ol_val in no yes mod ; do
4693 if test "$enableval" = "$ol_val" ; then
4697 if test "$ol_arg" = "invalid" ; then
4698 as_fn_error "bad value $enableval for --enable-dynlist" "$LINENO" 5
4700 ol_enable_dynlist="$ol_arg"
4703 ol_enable_dynlist=${ol_enable_overlays:-no}
4706 # end --enable-dynlist
4708 # OpenLDAP --enable-memberof
4710 # Check whether --enable-memberof was given.
4711 if test "${enable_memberof+set}" = set; then :
4712 enableval=$enable_memberof;
4714 for ol_val in no yes mod ; do
4715 if test "$enableval" = "$ol_val" ; then
4719 if test "$ol_arg" = "invalid" ; then
4720 as_fn_error "bad value $enableval for --enable-memberof" "$LINENO" 5
4722 ol_enable_memberof="$ol_arg"
4725 ol_enable_memberof=${ol_enable_overlays:-no}
4728 # end --enable-memberof
4730 # OpenLDAP --enable-ppolicy
4732 # Check whether --enable-ppolicy was given.
4733 if test "${enable_ppolicy+set}" = set; then :
4734 enableval=$enable_ppolicy;
4736 for ol_val in no yes mod ; do
4737 if test "$enableval" = "$ol_val" ; then
4741 if test "$ol_arg" = "invalid" ; then
4742 as_fn_error "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4744 ol_enable_ppolicy="$ol_arg"
4747 ol_enable_ppolicy=${ol_enable_overlays:-no}
4750 # end --enable-ppolicy
4752 # OpenLDAP --enable-proxycache
4754 # Check whether --enable-proxycache was given.
4755 if test "${enable_proxycache+set}" = set; then :
4756 enableval=$enable_proxycache;
4758 for ol_val in no yes mod ; do
4759 if test "$enableval" = "$ol_val" ; then
4763 if test "$ol_arg" = "invalid" ; then
4764 as_fn_error "bad value $enableval for --enable-proxycache" "$LINENO" 5
4766 ol_enable_proxycache="$ol_arg"
4769 ol_enable_proxycache=${ol_enable_overlays:-no}
4772 # end --enable-proxycache
4774 # OpenLDAP --enable-refint
4776 # Check whether --enable-refint was given.
4777 if test "${enable_refint+set}" = set; then :
4778 enableval=$enable_refint;
4780 for ol_val in no yes mod ; do
4781 if test "$enableval" = "$ol_val" ; then
4785 if test "$ol_arg" = "invalid" ; then
4786 as_fn_error "bad value $enableval for --enable-refint" "$LINENO" 5
4788 ol_enable_refint="$ol_arg"
4791 ol_enable_refint=${ol_enable_overlays:-no}
4794 # end --enable-refint
4796 # OpenLDAP --enable-retcode
4798 # Check whether --enable-retcode was given.
4799 if test "${enable_retcode+set}" = set; then :
4800 enableval=$enable_retcode;
4802 for ol_val in no yes mod ; do
4803 if test "$enableval" = "$ol_val" ; then
4807 if test "$ol_arg" = "invalid" ; then
4808 as_fn_error "bad value $enableval for --enable-retcode" "$LINENO" 5
4810 ol_enable_retcode="$ol_arg"
4813 ol_enable_retcode=${ol_enable_overlays:-no}
4816 # end --enable-retcode
4818 # OpenLDAP --enable-rwm
4820 # Check whether --enable-rwm was given.
4821 if test "${enable_rwm+set}" = set; then :
4822 enableval=$enable_rwm;
4824 for ol_val in no yes mod ; do
4825 if test "$enableval" = "$ol_val" ; then
4829 if test "$ol_arg" = "invalid" ; then
4830 as_fn_error "bad value $enableval for --enable-rwm" "$LINENO" 5
4832 ol_enable_rwm="$ol_arg"
4835 ol_enable_rwm=${ol_enable_overlays:-no}
4840 # OpenLDAP --enable-seqmod
4842 # Check whether --enable-seqmod was given.
4843 if test "${enable_seqmod+set}" = set; then :
4844 enableval=$enable_seqmod;
4846 for ol_val in no yes mod ; do
4847 if test "$enableval" = "$ol_val" ; then
4851 if test "$ol_arg" = "invalid" ; then
4852 as_fn_error "bad value $enableval for --enable-seqmod" "$LINENO" 5
4854 ol_enable_seqmod="$ol_arg"
4857 ol_enable_seqmod=${ol_enable_overlays:-no}
4860 # end --enable-seqmod
4862 # OpenLDAP --enable-sssvlv
4864 # Check whether --enable-sssvlv was given.
4865 if test "${enable_sssvlv+set}" = set; then :
4866 enableval=$enable_sssvlv;
4868 for ol_val in no yes mod ; do
4869 if test "$enableval" = "$ol_val" ; then
4873 if test "$ol_arg" = "invalid" ; then
4874 as_fn_error "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4876 ol_enable_sssvlv="$ol_arg"
4879 ol_enable_sssvlv=${ol_enable_overlays:-no}
4882 # end --enable-sssvlv
4884 # OpenLDAP --enable-syncprov
4886 # Check whether --enable-syncprov was given.
4887 if test "${enable_syncprov+set}" = set; then :
4888 enableval=$enable_syncprov;
4890 for ol_val in no yes mod ; do
4891 if test "$enableval" = "$ol_val" ; then
4895 if test "$ol_arg" = "invalid" ; then
4896 as_fn_error "bad value $enableval for --enable-syncprov" "$LINENO" 5
4898 ol_enable_syncprov="$ol_arg"
4901 ol_enable_syncprov=${ol_enable_overlays:-yes}
4904 # end --enable-syncprov
4906 # OpenLDAP --enable-translucent
4908 # Check whether --enable-translucent was given.
4909 if test "${enable_translucent+set}" = set; then :
4910 enableval=$enable_translucent;
4912 for ol_val in no yes mod ; do
4913 if test "$enableval" = "$ol_val" ; then
4917 if test "$ol_arg" = "invalid" ; then
4918 as_fn_error "bad value $enableval for --enable-translucent" "$LINENO" 5
4920 ol_enable_translucent="$ol_arg"
4923 ol_enable_translucent=${ol_enable_overlays:-no}
4926 # end --enable-translucent
4928 # OpenLDAP --enable-unique
4930 # Check whether --enable-unique was given.
4931 if test "${enable_unique+set}" = set; then :
4932 enableval=$enable_unique;
4934 for ol_val in no yes mod ; do
4935 if test "$enableval" = "$ol_val" ; then
4939 if test "$ol_arg" = "invalid" ; then
4940 as_fn_error "bad value $enableval for --enable-unique" "$LINENO" 5
4942 ol_enable_unique="$ol_arg"
4945 ol_enable_unique=${ol_enable_overlays:-no}
4948 # end --enable-unique
4950 # OpenLDAP --enable-valsort
4952 # Check whether --enable-valsort was given.
4953 if test "${enable_valsort+set}" = set; then :
4954 enableval=$enable_valsort;
4956 for ol_val in no yes mod ; do
4957 if test "$enableval" = "$ol_val" ; then
4961 if test "$ol_arg" = "invalid" ; then
4962 as_fn_error "bad value $enableval for --enable-valsort" "$LINENO" 5
4964 ol_enable_valsort="$ol_arg"
4967 ol_enable_valsort=${ol_enable_overlays:-no}
4970 # end --enable-valsort
4973 # Check whether --enable-xxliboptions was given.
4974 if test "${enable_xxliboptions+set}" = set; then :
4975 enableval=$enable_xxliboptions;
4978 # Check whether --enable-static was given.
4979 if test "${enable_static+set}" = set; then :
4980 enableval=$enable_static; p=${PACKAGE-default}
4982 yes) enable_static=yes ;;
4983 no) enable_static=no ;;
4986 # Look at the argument we got. We use all the common list separators.
4987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4988 for pkg in $enableval; do
4990 if test "X$pkg" = "X$p"; then
5002 # Check whether --enable-shared was given.
5003 if test "${enable_shared+set}" = set; then :
5004 enableval=$enable_shared; p=${PACKAGE-default}
5006 yes) enable_shared=yes ;;
5007 no) enable_shared=no ;;
5010 # Look at the argument we got. We use all the common list separators.
5011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5012 for pkg in $enableval; do
5014 if test "X$pkg" = "X$p"; then
5029 if test $ol_enable_slapd = no ; then
5030 if test $ol_enable_slapi = yes ; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
5032 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
5034 case "$ol_enable_backends" in yes | mod)
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
5036 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
5038 for i in $Backends; do
5039 eval "ol_tmp=\$ol_enable_$i"
5040 if test $ol_tmp != no ; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5042 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5043 eval "ol_enable_$i=no"
5046 if test $ol_enable_modules = yes ; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
5048 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
5050 if test $ol_enable_wrappers = yes ; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
5052 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
5054 if test $ol_enable_rlookups = yes ; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
5056 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
5058 if test $ol_enable_dynacl = yes ; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
5060 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
5062 if test $ol_enable_aci != no ; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
5064 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
5066 if test $ol_enable_rewrite = yes ; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
5068 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
5070 case "$ol_enable_overlays" in yes | mod)
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
5072 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
5074 for i in $Overlays; do
5075 eval "ol_tmp=\$ol_enable_$i"
5076 if test $ol_tmp != no ; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5078 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5079 eval "ol_enable_$i=no"
5083 # force settings to no
5088 ol_enable_modules=no
5089 ol_enable_rlookups=no
5092 ol_enable_wrappers=no
5094 ol_enable_rewrite=no
5096 elif test $ol_enable_modules != yes &&
5097 test $ol_enable_bdb = no &&
5098 test $ol_enable_dnssrv = no &&
5099 test $ol_enable_hdb = no &&
5100 test $ol_enable_ldap = no &&
5101 test $ol_enable_mdb = no &&
5102 test $ol_enable_meta = no &&
5103 test $ol_enable_asyncmeta = no &&
5104 test $ol_enable_monitor = no &&
5105 test $ol_enable_ndb = no &&
5106 test $ol_enable_null = no &&
5107 test $ol_enable_passwd = no &&
5108 test $ol_enable_perl = no &&
5109 test $ol_enable_relay = no &&
5110 test $ol_enable_shell = no &&
5111 test $ol_enable_sock = no &&
5112 test $ol_enable_sql = no &&
5113 test $ol_enable_wt = no ; then
5115 if test $ol_enable_slapd = yes ; then
5116 as_fn_error "slapd requires a backend" "$LINENO" 5
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping slapd, no backend specified" >&5
5119 $as_echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
5124 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
5125 as_fn_error "--enable-meta requires --enable-ldap" "$LINENO" 5
5128 if test $ol_enable_asyncmeta/$ol_enable_ldap = yes/no ; then
5129 as_fn_error "--enable-asyncmeta requires --enable-ldap" "$LINENO" 5
5132 if test $ol_enable_lmpasswd = yes ; then
5133 if test $ol_with_tls = no ; then
5134 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
5138 if test $ol_enable_spasswd = yes ; then
5139 if test $ol_with_cyrus_sasl = no ; then
5140 as_fn_error "options require --with-cyrus-sasl" "$LINENO" 5
5142 ol_with_cyrus_sasl=yes
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5146 $as_echo "done" >&6; }
5201 BUILD_TRANSLUCENT=no
5205 SLAPD_STATIC_OVERLAYS=
5206 SLAPD_DYNAMIC_OVERLAYS=
5208 SLAPD_MODULES_LDFLAGS=
5209 SLAPD_MODULES_CPPFLAGS=
5211 SLAPD_STATIC_BACKENDS=back-ldif
5212 SLAPD_DYNAMIC_BACKENDS=
5237 $as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
5244 *-*-aix*) if test -z "$CC" ; then
5245 case "$ol_with_threads" in
5246 auto | yes | posix) ol_aix_threads=yes ;;
5252 if test $ol_aix_threads = yes ; then
5253 if test -z "${CC}" ; then
5254 for ac_prog in cc_r xlc_r cc
5256 # Extract the first word of "$ac_prog", so it can be a program name with args.
5257 set dummy $ac_prog; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_prog_CC+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$CC"; then
5264 ac_cv_prog_CC="$CC" # Let the user override the test.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273 ac_cv_prog_CC="$ac_prog"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 if test -n "$CC"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5286 $as_echo "$CC" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5293 test -n "$CC" && break
5297 if test "$CC" = cc ; then
5298 if test $ol_with_threads != auto ; then
5299 as_fn_error "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
5302 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
5308 case ${CC} in cc_r | xlc_r)
5309 ol_with_threads=posix
5310 ol_cv_pthread_create=yes
5315 if test -z "${CC}"; then
5316 for ac_prog in cc gcc
5318 # Extract the first word of "$ac_prog", so it can be a program name with args.
5319 set dummy $ac_prog; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if test "${ac_cv_prog_CC+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5325 if test -n "$CC"; then
5326 ac_cv_prog_CC="$CC" # Let the user override the test.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_prog_CC="$ac_prog"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 if test -n "$CC"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5348 $as_echo "$CC" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5355 test -n "$CC" && break
5357 test -n "$CC" || CC="missing"
5360 if test "${CC}" = "missing" ; then
5361 as_fn_error "Unable to locate cc(1) or suitable replacement. Check PATH or set CC." "$LINENO" 5
5365 if test -z "${AR}"; then
5366 for ac_prog in ar gar
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if test "${ac_cv_prog_AR+set}" = set; then :
5373 $as_echo_n "(cached) " >&6
5375 if test -n "$AR"; then
5376 ac_cv_prog_AR="$AR" # Let the user override the test.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_prog_AR="$ac_prog"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 if test -n "$AR"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5398 $as_echo "$AR" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5405 test -n "$AR" && break
5407 test -n "$AR" || AR="missing"
5410 if test "${AR}" = "missing" ; then
5411 as_fn_error "Unable to locate ar(1) or suitable replacement. Check PATH or set AR." "$LINENO" 5
5419 # Check whether --enable-fast-install was given.
5420 if test "${enable_fast_install+set}" = set; then :
5421 enableval=$enable_fast_install; p=${PACKAGE-default}
5423 yes) enable_fast_install=yes ;;
5424 no) enable_fast_install=no ;;
5426 enable_fast_install=no
5427 # Look at the argument we got. We use all the common list separators.
5428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5429 for pkg in $enableval; do
5431 if test "X$pkg" = "X$p"; then
5432 enable_fast_install=yes
5439 enable_fast_install=yes
5443 DEPDIR="${am__leading_dot}deps"
5445 ac_config_commands="$ac_config_commands depfiles"
5448 am_make=${MAKE-make}
5449 cat > confinc << 'END'
5454 # If we don't find an include directive, just comment out the code.
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5456 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5460 # First try GNU make style include.
5461 echo "include confinc" > confmf
5462 # We grep out `Entering directory' and `Leaving directory'
5463 # messages which can occur if `w' ends up in MAKEFLAGS.
5464 # In particular we don't look at `^make:' because GNU make might
5465 # be invoked under some other name (usually "gmake"), in which
5466 # case it prints its new name instead of `make'.
5467 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5472 # Now try BSD make style include.
5473 if test "$am__include" = "#"; then
5474 echo '.include "confinc"' > confmf
5475 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5476 am__include=.include
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5484 $as_echo "$_am_result" >&6; }
5485 rm -f confinc confmf
5487 # Check whether --enable-dependency-tracking was given.
5488 if test "${enable_dependency_tracking+set}" = set; then :
5489 enableval=$enable_dependency_tracking;
5492 if test "x$enable_dependency_tracking" != xno; then
5493 am_depcomp="$ac_aux_dir/depcomp"
5498 if test "x$enable_dependency_tracking" != xno; then
5509 ac_cpp='$CPP $CPPFLAGS'
5510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513 if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if test "${ac_cv_prog_CC+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5521 if test -n "$CC"; then
5522 ac_cv_prog_CC="$CC" # Let the user override the test.
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 if test -n "$CC"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5544 $as_echo "$CC" >&6; }
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5552 if test -z "$ac_cv_prog_CC"; then
5554 # Extract the first word of "gcc", so it can be a program name with args.
5555 set dummy gcc; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5561 if test -n "$ac_ct_CC"; then
5562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_ac_ct_CC="gcc"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5582 if test -n "$ac_ct_CC"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5584 $as_echo "$ac_ct_CC" >&6; }
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5590 if test "x$ac_ct_CC" = x; then
5593 case $cross_compiling:$ac_tool_warned in
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597 ac_tool_warned=yes ;;
5605 if test -z "$CC"; then
5606 if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}cc; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_CC+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5614 if test -n "$CC"; then
5615 ac_cv_prog_CC="$CC" # Let the user override the test.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_CC="${ac_tool_prefix}cc"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 if test -n "$CC"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5637 $as_echo "$CC" >&6; }
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5646 if test -z "$CC"; then
5647 # Extract the first word of "cc", so it can be a program name with args.
5648 set dummy cc; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_prog_CC+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5654 if test -n "$CC"; then
5655 ac_cv_prog_CC="$CC" # Let the user override the test.
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5666 ac_prog_rejected=yes
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 if test $ac_prog_rejected = yes; then
5678 # We found a bogon in the path, so make sure we never use it.
5679 set dummy $ac_cv_prog_CC
5681 if test $# != 0; then
5682 # We chose a different compiler from the bogus one.
5683 # However, it has the same basename, so the bogon will be chosen
5684 # first if we set CC to just the basename; use the full file name.
5686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5692 if test -n "$CC"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5694 $as_echo "$CC" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5702 if test -z "$CC"; then
5703 if test -n "$ac_tool_prefix"; then
5704 for ac_prog in cl.exe
5706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if test "${ac_cv_prog_CC+set}" = set; then :
5711 $as_echo_n "(cached) " >&6
5713 if test -n "$CC"; then
5714 ac_cv_prog_CC="$CC" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 if test -n "$CC"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5736 $as_echo "$CC" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5743 test -n "$CC" && break
5746 if test -z "$CC"; then
5748 for ac_prog in cl.exe
5750 # Extract the first word of "$ac_prog", so it can be a program name with args.
5751 set dummy $ac_prog; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 if test -n "$ac_ct_CC"; then
5758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_prog_ac_ct_CC="$ac_prog"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5778 if test -n "$ac_ct_CC"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5780 $as_echo "$ac_ct_CC" >&6; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5787 test -n "$ac_ct_CC" && break
5790 if test "x$ac_ct_CC" = x; then
5793 case $cross_compiling:$ac_tool_warned in
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797 ac_tool_warned=yes ;;
5806 test -z "$CC" && { { $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_error "no acceptable C compiler found in \$PATH
5809 See \`config.log' for more details." "$LINENO" 5; }
5811 # Provide some information about the compiler.
5812 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5815 for ac_option in --version -v -V -qversion; do
5816 { { ac_try="$ac_compiler $ac_option >&5"
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5822 $as_echo "$ac_try_echo"; } >&5
5823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5825 if test -s conftest.err; then
5827 ... rest of stderr output deleted ...
5828 10q' conftest.err >conftest.er1
5829 cat conftest.er1 >&5
5831 rm -f conftest.er1 conftest.err
5832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5833 test $ac_status = 0; }
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5847 ac_clean_files_save=$ac_clean_files
5848 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5849 # Try to create an executable without -o first, disregard a.out.
5850 # It will help us diagnose broken compilers, and finding out an intuition
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5853 $as_echo_n "checking whether the C compiler works... " >&6; }
5854 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5856 # The possible output files:
5857 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5860 for ac_file in $ac_files
5863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5864 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5869 if { { ac_try="$ac_link_default"
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5875 $as_echo "$ac_try_echo"; } >&5
5876 (eval "$ac_link_default") 2>&5
5878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879 test $ac_status = 0; }; then :
5880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5883 # so that the user can short-circuit this test for compilers unknown to
5885 for ac_file in $ac_files ''
5887 test -f "$ac_file" || continue
5889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5892 # We found the default executable, but exeext='' is most
5896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5900 # We set ac_cv_exeext here because the later test for it is not
5901 # safe: cross compilers may not add the suffix if given an `-o'
5902 # argument, so we may need to know it at that point already.
5903 # Even if this section looks crufty: it has the advantage of
5910 test "$ac_cv_exeext" = no && ac_cv_exeext=
5915 if test -z "$ac_file"; then :
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5918 $as_echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5923 { as_fn_set_status 77
5924 as_fn_error "C compiler cannot create executables
5925 See \`config.log' for more details." "$LINENO" 5; }; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5928 $as_echo "yes" >&6; }
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5931 $as_echo_n "checking for C compiler default output file name... " >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5933 $as_echo "$ac_file" >&6; }
5934 ac_exeext=$ac_cv_exeext
5936 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5937 ac_clean_files=$ac_clean_files_save
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5939 $as_echo_n "checking for suffix of executables... " >&6; }
5940 if { { ac_try="$ac_link"
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5946 $as_echo "$ac_try_echo"; } >&5
5947 (eval "$ac_link") 2>&5
5949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950 test $ac_status = 0; }; then :
5951 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5952 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5953 # work properly (i.e., refer to `conftest.exe'), while it won't with
5955 for ac_file in conftest.exe conftest conftest.*; do
5956 test -f "$ac_file" || continue
5958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5959 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 as_fn_error "cannot compute suffix of executables: cannot compile and link
5968 See \`config.log' for more details." "$LINENO" 5; }
5970 rm -f conftest conftest$ac_cv_exeext
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5972 $as_echo "$ac_cv_exeext" >&6; }
5974 rm -f conftest.$ac_ext
5975 EXEEXT=$ac_cv_exeext
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5983 FILE *f = fopen ("conftest.out", "w");
5984 return ferror (f) || fclose (f) != 0;
5990 ac_clean_files="$ac_clean_files conftest.out"
5991 # Check that the compiler produces executables we can run. If not, either
5992 # the compiler is broken, or we cross compile.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5994 $as_echo_n "checking whether we are cross compiling... " >&6; }
5995 if test "$cross_compiling" != yes; then
5996 { { ac_try="$ac_link"
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6002 $as_echo "$ac_try_echo"; } >&5
6003 (eval "$ac_link") 2>&5
6005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; }
6007 if { ac_try='./conftest$ac_cv_exeext'
6008 { { case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6013 $as_echo "$ac_try_echo"; } >&5
6014 (eval "$ac_try") 2>&5
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }; }; then
6020 if test "$cross_compiling" = maybe; then
6023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6025 as_fn_error "cannot run C compiled programs.
6026 If you meant to cross compile, use \`--host'.
6027 See \`config.log' for more details." "$LINENO" 5; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6032 $as_echo "$cross_compiling" >&6; }
6034 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
6035 ac_clean_files=$ac_clean_files_save
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6037 $as_echo_n "checking for suffix of object files... " >&6; }
6038 if test "${ac_cv_objext+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6052 rm -f conftest.o conftest.obj
6053 if { { ac_try="$ac_compile"
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6059 $as_echo "$ac_try_echo"; } >&5
6060 (eval "$ac_compile") 2>&5
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }; then :
6064 for ac_file in conftest.o conftest.obj conftest.*; do
6065 test -f "$ac_file" || continue;
6067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6068 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6073 $as_echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6078 as_fn_error "cannot compute suffix of object files: cannot compile
6079 See \`config.log' for more details." "$LINENO" 5; }
6081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6084 $as_echo "$ac_cv_objext" >&6; }
6085 OBJEXT=$ac_cv_objext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6089 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6090 $as_echo_n "(cached) " >&6
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6106 if ac_fn_c_try_compile "$LINENO"; then :
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6116 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6117 if test $ac_compiler_gnu = yes; then
6122 ac_test_CFLAGS=${CFLAGS+set}
6123 ac_save_CFLAGS=$CFLAGS
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6125 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6126 if test "${ac_cv_prog_cc_g+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6129 ac_save_c_werror_flag=$ac_c_werror_flag
6130 ac_c_werror_flag=yes
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6144 if ac_fn_c_try_compile "$LINENO"; then :
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6159 if ac_fn_c_try_compile "$LINENO"; then :
6162 ac_c_werror_flag=$ac_save_c_werror_flag
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6175 if ac_fn_c_try_compile "$LINENO"; then :
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 ac_c_werror_flag=$ac_save_c_werror_flag
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6186 $as_echo "$ac_cv_prog_cc_g" >&6; }
6187 if test "$ac_test_CFLAGS" = set; then
6188 CFLAGS=$ac_save_CFLAGS
6189 elif test $ac_cv_prog_cc_g = yes; then
6190 if test "$GCC" = yes; then
6196 if test "$GCC" = yes; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6203 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6204 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6207 ac_cv_prog_cc_c89=no
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6213 #include <sys/types.h>
6214 #include <sys/stat.h>
6215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6216 struct buf { int x; };
6217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6218 static char *e (p, i)
6224 static char *f (char * (*g) (char **, int), char **p, ...)
6229 s = g (p, va_arg (v,int));
6234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6235 function prototypes and stuff, but not '\xHH' hex character constants.
6236 These don't provoke an error unfortunately, instead are silently treated
6237 as 'x'. The following induces an error, until -std is added to get
6238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6239 array size at least. It's necessary to write '\x00'==0 to get something
6240 that's true only with -std. */
6241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6243 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6244 inside strings and character constants. */
6246 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6248 int test (int i, double x);
6249 struct s1 {int (*f) (int a);};
6250 struct s2 {int (*f) (double a);};
6251 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6262 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6263 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6265 CC="$ac_save_CC $ac_arg"
6266 if ac_fn_c_try_compile "$LINENO"; then :
6267 ac_cv_prog_cc_c89=$ac_arg
6269 rm -f core conftest.err conftest.$ac_objext
6270 test "x$ac_cv_prog_cc_c89" != "xno" && break
6272 rm -f conftest.$ac_ext
6277 case "x$ac_cv_prog_cc_c89" in
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6280 $as_echo "none needed" >&6; } ;;
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6283 $as_echo "unsupported" >&6; } ;;
6285 CC="$CC $ac_cv_prog_cc_c89"
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6287 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6289 if test "x$ac_cv_prog_cc_c89" != xno; then :
6294 ac_cpp='$CPP $CPPFLAGS'
6295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299 depcc="$CC" am_compiler_list=
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6302 $as_echo_n "checking dependency style of $depcc... " >&6; }
6303 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6307 # We make a subdir and do the tests there. Otherwise we can end up
6308 # making bogus files that we don't know about and never remove. For
6309 # instance it was reported that on HP-UX the gcc test will end up
6310 # making a dummy file named `D' -- because `-MD' means `put the output
6313 # Copy depcomp to subdir because otherwise we won't find it if we're
6314 # using a relative directory.
6315 cp "$am_depcomp" conftest.dir
6317 # We will build objects and dependencies in a subdirectory because
6318 # it helps to detect inapplicable dependency modes. For instance
6319 # both Tru64's cc and ICC support -MD to output dependencies as a
6320 # side effect of compilation, but ICC will put the dependencies in
6321 # the current directory while Tru64 will put them in the object
6325 am_cv_CC_dependencies_compiler_type=none
6326 if test "$am_compiler_list" = ""; then
6327 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6329 for depmode in $am_compiler_list; do
6330 # Setup a source with many dependencies, because some compilers
6331 # like to wrap large dependency lists on column 80 (with \), and
6332 # we should not choose a depcomp mode which is confused by this.
6334 # We need to recreate these files for each test, as the compiler may
6335 # overwrite some of them when testing with obscure command lines.
6336 # This happens at least with the AIX C compiler.
6338 for i in 1 2 3 4 5 6; do
6339 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6340 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6341 # Solaris 8's {/usr,}/bin/sh.
6342 touch sub/conftst$i.h
6344 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6348 # after this tag, mechanisms are not by side-effect, so they'll
6349 # only be used when explicitly requested
6350 if test "x$enable_dependency_tracking" = xyes; then
6358 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6359 # mode. It turns out that the SunPro C++ compiler does not properly
6360 # handle `-M -o', and we need to detect this.
6361 if depmode=$depmode \
6362 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6363 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6364 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6365 >/dev/null 2>conftest.err &&
6366 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6367 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6368 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6369 # icc doesn't choke on unknown options, it will just issue warnings
6370 # or remarks (even with -Werror). So we grep stderr for any message
6371 # that says an option was ignored or not supported.
6372 # When given -MP, icc 7.0 and 7.1 complain thusly:
6373 # icc: Command line warning: ignoring option '-M'; no argument required
6374 # The diagnosis changed in icc 8.0:
6375 # icc: Command line remark: option '-MP' not supported
6376 if (grep 'ignoring option' conftest.err ||
6377 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6378 am_cv_CC_dependencies_compiler_type=$depmode
6387 am_cv_CC_dependencies_compiler_type=none
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6392 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6393 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6398 test "x$enable_dependency_tracking" != xno \
6399 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6401 am__fastdepCC_FALSE='#'
6403 am__fastdepCC_TRUE='#'
6404 am__fastdepCC_FALSE=
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6409 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6410 if test "${lt_cv_path_SED+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
6413 # Loop through the user's path and test for sed and gsed.
6414 # Then use that list of sed's as ones to test for truncation.
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 test -z "$as_dir" && as_dir=.
6420 for lt_ac_prog in sed gsed; do
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6423 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6430 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6431 # along with /bin/sed that truncates output.
6432 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6433 test ! -f $lt_ac_sed && continue
6434 cat /dev/null > conftest.in
6436 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6437 # Check for GNU sed and select it if it is found.
6438 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6439 lt_cv_path_SED=$lt_ac_sed
6443 cat conftest.in conftest.in >conftest.tmp
6444 mv conftest.tmp conftest.in
6445 cp conftest.in conftest.nl
6447 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6448 cmp -s conftest.out conftest.nl || break
6449 # 10000 chars as input seems more than enough
6450 test $lt_ac_count -gt 10 && break
6451 lt_ac_count=`expr $lt_ac_count + 1`
6452 if test $lt_ac_count -gt $lt_ac_max; then
6453 lt_ac_max=$lt_ac_count
6454 lt_cv_path_SED=$lt_ac_sed
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6463 $as_echo "$SED" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6467 if test "${ac_cv_path_GREP+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6470 if test -z "$GREP"; then
6471 ac_path_GREP_found=false
6472 # Loop through the user's path and test for each of PROGNAME-LIST
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6477 test -z "$as_dir" && as_dir=.
6478 for ac_prog in grep ggrep; do
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6481 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6482 # Check for GNU ac_path_GREP and select it if it is found.
6483 # Check for GNU $ac_path_GREP
6484 case `"$ac_path_GREP" --version 2>&1` in
6486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6489 $as_echo_n 0123456789 >"conftest.in"
6492 cat "conftest.in" "conftest.in" >"conftest.tmp"
6493 mv "conftest.tmp" "conftest.in"
6494 cp "conftest.in" "conftest.nl"
6495 $as_echo 'GREP' >> "conftest.nl"
6496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6498 as_fn_arith $ac_count + 1 && ac_count=$as_val
6499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6500 # Best one so far, save it but keep looking for a better one
6501 ac_cv_path_GREP="$ac_path_GREP"
6502 ac_path_GREP_max=$ac_count
6504 # 10*(2^10) chars as input seems more than enough
6505 test $ac_count -gt 10 && break
6507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6510 $ac_path_GREP_found && break 3
6515 if test -z "$ac_cv_path_GREP"; then
6516 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6519 ac_cv_path_GREP=$GREP
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6524 $as_echo "$ac_cv_path_GREP" >&6; }
6525 GREP="$ac_cv_path_GREP"
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6529 $as_echo_n "checking for egrep... " >&6; }
6530 if test "${ac_cv_path_EGREP+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6534 then ac_cv_path_EGREP="$GREP -E"
6536 if test -z "$EGREP"; then
6537 ac_path_EGREP_found=false
6538 # Loop through the user's path and test for each of PROGNAME-LIST
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6543 test -z "$as_dir" && as_dir=.
6544 for ac_prog in egrep; do
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6547 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6548 # Check for GNU ac_path_EGREP and select it if it is found.
6549 # Check for GNU $ac_path_EGREP
6550 case `"$ac_path_EGREP" --version 2>&1` in
6552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6555 $as_echo_n 0123456789 >"conftest.in"
6558 cat "conftest.in" "conftest.in" >"conftest.tmp"
6559 mv "conftest.tmp" "conftest.in"
6560 cp "conftest.in" "conftest.nl"
6561 $as_echo 'EGREP' >> "conftest.nl"
6562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6564 as_fn_arith $ac_count + 1 && ac_count=$as_val
6565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6566 # Best one so far, save it but keep looking for a better one
6567 ac_cv_path_EGREP="$ac_path_EGREP"
6568 ac_path_EGREP_max=$ac_count
6570 # 10*(2^10) chars as input seems more than enough
6571 test $ac_count -gt 10 && break
6573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6576 $ac_path_EGREP_found && break 3
6581 if test -z "$ac_cv_path_EGREP"; then
6582 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6585 ac_cv_path_EGREP=$EGREP
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6591 $as_echo "$ac_cv_path_EGREP" >&6; }
6592 EGREP="$ac_cv_path_EGREP"
6596 # Check whether --with-gnu-ld was given.
6597 if test "${with_gnu_ld+set}" = set; then :
6598 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6604 if test "$GCC" = yes; then
6605 # Check if gcc -print-prog-name=ld gives a path.
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6607 $as_echo_n "checking for ld used by $CC... " >&6; }
6610 # gcc leaves a trailing carriage return which upsets mingw
6611 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6613 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6616 # Accept absolute paths.
6618 re_direlt='/[^/][^/]*/\.\./'
6619 # Canonicalize the pathname of ld
6620 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6621 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6622 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6624 test -z "$LD" && LD="$ac_prog"
6627 # If it fails, then pretend we aren't using GCC.
6631 # If it is relative, then search for the first ld in PATH.
6635 elif test "$with_gnu_ld" = yes; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6637 $as_echo_n "checking for GNU ld... " >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6640 $as_echo_n "checking for non-GNU ld... " >&6; }
6642 if test "${lt_cv_path_LD+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6645 if test -z "$LD"; then
6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647 for ac_dir in $PATH; do
6649 test -z "$ac_dir" && ac_dir=.
6650 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6651 lt_cv_path_LD="$ac_dir/$ac_prog"
6652 # Check to see if the program is GNU ld. I'd rather use --version,
6653 # but apparently some variants of GNU ld only accept -v.
6654 # Break only if it was the GNU/non-GNU ld that we prefer.
6655 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6656 *GNU* | *'with BFD'*)
6657 test "$with_gnu_ld" != no && break
6660 test "$with_gnu_ld" != yes && break
6667 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6672 if test -n "$LD"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6674 $as_echo "$LD" >&6; }
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6679 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6681 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6682 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6683 $as_echo_n "(cached) " >&6
6685 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6686 case `$LD -v 2>&1 </dev/null` in
6687 *GNU* | *'with BFD'*)
6688 lt_cv_prog_gnu_ld=yes
6691 lt_cv_prog_gnu_ld=no
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6696 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6697 with_gnu_ld=$lt_cv_prog_gnu_ld
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6701 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6702 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
6705 lt_cv_ld_reload_flag='-r'
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6708 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6709 reload_flag=$lt_cv_ld_reload_flag
6710 case $reload_flag in
6712 *) reload_flag=" $reload_flag" ;;
6714 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6717 if test "$GCC" = yes; then
6718 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6720 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6726 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6727 if test "${lt_cv_path_NM+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
6730 if test -n "$NM"; then
6731 # Let the user override the test.
6734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6737 test -z "$ac_dir" && ac_dir=.
6738 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6739 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6740 # Check to see if the nm accepts a BSD-compat flag.
6741 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6742 # nm: unknown option "B" ignored
6743 # Tru64's nm complains that /dev/null is an invalid object file
6744 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6745 */dev/null* | *'Invalid file or object type'*)
6746 lt_cv_path_NM="$tmp_nm -B"
6750 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6752 lt_cv_path_NM="$tmp_nm -p"
6756 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6757 continue # so that we can try to find one that supports BSD flags
6764 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6768 $as_echo "$lt_cv_path_NM" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6772 $as_echo_n "checking whether ln -s works... " >&6; }
6774 if test "$LN_S" = "ln -s"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6776 $as_echo "yes" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6779 $as_echo "no, using $LN_S" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
6783 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
6784 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6785 $as_echo_n "(cached) " >&6
6787 lt_cv_file_magic_cmd='$MAGIC_CMD'
6788 lt_cv_file_magic_test_file=
6789 lt_cv_deplibs_check_method='unknown'
6790 # Need to set the preceding variable on all platforms that support
6791 # interlibrary dependencies.
6792 # 'none' -- dependencies not supported.
6793 # `unknown' -- same as none, but documents that we really don't know.
6794 # 'pass_all' -- all dependencies passed with no checks.
6795 # 'test_compile' -- check by making test program.
6796 # 'file_magic [[regex]]' -- check by looking for files in library path
6797 # which responds to the $file_magic_cmd with a given extended regex.
6798 # If you have `file' or equivalent on your system and you're not sure
6799 # whether `pass_all' will *always* work, you probably want this one.
6803 lt_cv_deplibs_check_method=pass_all
6807 lt_cv_deplibs_check_method=pass_all
6811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6812 lt_cv_file_magic_cmd='/usr/bin/file -L'
6813 lt_cv_file_magic_test_file=/shlib/libc.so
6817 # func_win32_libid is a shell function defined in ltmain.sh
6818 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6819 lt_cv_file_magic_cmd='func_win32_libid'
6823 # Base MSYS/MinGW do not provide the 'file' command needed by
6824 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6825 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6826 lt_cv_file_magic_cmd='$OBJDUMP -f'
6829 darwin* | rhapsody*)
6830 lt_cv_deplibs_check_method=pass_all
6833 freebsd* | kfreebsd*-gnu | dragonfly*)
6834 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6837 # Not sure whether the presence of OpenBSD here was a mistake.
6838 # Let's accept both of them until this is cleared up.
6839 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6840 lt_cv_file_magic_cmd=/usr/bin/file
6841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6845 lt_cv_deplibs_check_method=pass_all
6850 lt_cv_deplibs_check_method=pass_all
6853 hpux10.20* | hpux11*)
6854 lt_cv_file_magic_cmd=/usr/bin/file
6857 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6858 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6861 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]'
6862 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6865 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6866 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6871 irix5* | irix6* | nonstopux*)
6873 *-32|*"-32 ") libmagic=32-bit;;
6874 *-n32|*"-n32 ") libmagic=N32;;
6875 *-64|*"-64 ") libmagic=64-bit;;
6876 *) libmagic=never-match;;
6878 lt_cv_deplibs_check_method=pass_all
6881 # This must be Linux ELF.
6883 lt_cv_deplibs_check_method=pass_all
6887 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6895 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6896 lt_cv_file_magic_cmd=/usr/bin/file
6897 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6901 lt_cv_deplibs_check_method=unknown
6905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6912 osf3* | osf4* | osf5*)
6913 lt_cv_deplibs_check_method=pass_all
6917 lt_cv_deplibs_check_method=pass_all
6921 lt_cv_deplibs_check_method=pass_all
6924 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6925 case $host_vendor in
6927 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]'
6928 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6931 lt_cv_deplibs_check_method=pass_all
6934 lt_cv_file_magic_cmd='/bin/file'
6935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6938 lt_cv_file_magic_cmd='/bin/file'
6939 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6940 lt_cv_file_magic_test_file=/lib/libc.so
6943 lt_cv_deplibs_check_method=pass_all
6948 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6949 lt_cv_deplibs_check_method=pass_all
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6955 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6956 file_magic_cmd=$lt_cv_file_magic_cmd
6957 deplibs_check_method=$lt_cv_deplibs_check_method
6958 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6963 # If no C compiler was specified, use CC.
6966 # Allow CC to be a program name with arguments.
6970 # Check whether --enable-libtool-lock was given.
6971 if test "${enable_libtool_lock+set}" = set; then :
6972 enableval=$enable_libtool_lock;
6975 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6977 # Some flags need to be propagated to the compiler or linker for good
6981 # Find out which ABI we are using.
6982 echo 'int i;' > conftest.$ac_ext
6983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6984 (eval $ac_compile) 2>&5
6986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987 test $ac_status = 0; }; then
6988 case `/usr/bin/file conftest.$ac_objext` in
7000 # Find out which ABI we are using.
7001 echo '#line 7001 "configure"' > conftest.$ac_ext
7002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7003 (eval $ac_compile) 2>&5
7005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7006 test $ac_status = 0; }; then
7007 if test "$lt_cv_prog_gnu_ld" = yes; then
7008 case `/usr/bin/file conftest.$ac_objext` in
7010 LD="${LD-ld} -melf32bsmip"
7013 LD="${LD-ld} -melf32bmipn32"
7016 LD="${LD-ld} -melf64bmip"
7020 case `/usr/bin/file conftest.$ac_objext` in
7036 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7037 # Find out which ABI we are using.
7038 echo 'int i;' > conftest.$ac_ext
7039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7040 (eval $ac_compile) 2>&5
7042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043 test $ac_status = 0; }; then
7044 case `/usr/bin/file conftest.o` in
7048 LD="${LD-ld} -m elf_i386"
7050 ppc64-*linux*|powerpc64-*linux*)
7051 LD="${LD-ld} -m elf32ppclinux"
7054 LD="${LD-ld} -m elf_s390"
7057 LD="${LD-ld} -m elf32_sparc"
7064 LD="${LD-ld} -m elf_x86_64"
7066 ppc*-*linux*|powerpc*-*linux*)
7067 LD="${LD-ld} -m elf64ppc"
7070 LD="${LD-ld} -m elf64_s390"
7073 LD="${LD-ld} -m elf64_sparc"
7083 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7084 SAVE_CFLAGS="$CFLAGS"
7085 CFLAGS="$CFLAGS -belf"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7087 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7088 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7092 ac_cpp='$CPP $CPPFLAGS'
7093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7108 if ac_fn_c_try_link "$LINENO"; then :
7109 lt_cv_cc_needs_belf=yes
7111 lt_cv_cc_needs_belf=no
7113 rm -f core conftest.err conftest.$ac_objext \
7114 conftest$ac_exeext conftest.$ac_ext
7116 ac_cpp='$CPP $CPPFLAGS'
7117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7123 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7124 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7126 CFLAGS="$SAVE_CFLAGS"
7129 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7130 if test -n "$ac_tool_prefix"; then
7131 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7138 if test -n "$DLLTOOL"; then
7139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 DLLTOOL=$ac_cv_prog_DLLTOOL
7159 if test -n "$DLLTOOL"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7161 $as_echo "$DLLTOOL" >&6; }
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7169 if test -z "$ac_cv_prog_DLLTOOL"; then
7170 ac_ct_DLLTOOL=$DLLTOOL
7171 # Extract the first word of "dlltool", so it can be a program name with args.
7172 set dummy dlltool; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7178 if test -n "$ac_ct_DLLTOOL"; then
7179 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7188 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7199 if test -n "$ac_ct_DLLTOOL"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7201 $as_echo "$ac_ct_DLLTOOL" >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7207 if test "x$ac_ct_DLLTOOL" = x; then
7210 case $cross_compiling:$ac_tool_warned in
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7216 DLLTOOL=$ac_ct_DLLTOOL
7219 DLLTOOL="$ac_cv_prog_DLLTOOL"
7222 if test -n "$ac_tool_prefix"; then
7223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}as; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if test "${ac_cv_prog_AS+set}" = set; then :
7228 $as_echo_n "(cached) " >&6
7230 if test -n "$AS"; then
7231 ac_cv_prog_AS="$AS" # Let the user override the test.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_prog_AS="${ac_tool_prefix}as"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 if test -n "$AS"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7253 $as_echo "$AS" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7261 if test -z "$ac_cv_prog_AS"; then
7263 # Extract the first word of "as", so it can be a program name with args.
7264 set dummy as; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7270 if test -n "$ac_ct_AS"; then
7271 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_ac_ct_AS="as"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7291 if test -n "$ac_ct_AS"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7293 $as_echo "$ac_ct_AS" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7299 if test "x$ac_ct_AS" = x; then
7302 case $cross_compiling:$ac_tool_warned in
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7320 $as_echo_n "(cached) " >&6
7322 if test -n "$OBJDUMP"; then
7323 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 OBJDUMP=$ac_cv_prog_OBJDUMP
7343 if test -n "$OBJDUMP"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7345 $as_echo "$OBJDUMP" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7353 if test -z "$ac_cv_prog_OBJDUMP"; then
7354 ac_ct_OBJDUMP=$OBJDUMP
7355 # Extract the first word of "objdump", so it can be a program name with args.
7356 set dummy objdump; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7362 if test -n "$ac_ct_OBJDUMP"; then
7363 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7383 if test -n "$ac_ct_OBJDUMP"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7385 $as_echo "$ac_ct_OBJDUMP" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7391 if test "x$ac_ct_OBJDUMP" = x; then
7394 case $cross_compiling:$ac_tool_warned in
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7400 OBJDUMP=$ac_ct_OBJDUMP
7403 OBJDUMP="$ac_cv_prog_OBJDUMP"
7410 need_locks="$enable_libtool_lock"
7414 ac_cpp='$CPP $CPPFLAGS'
7415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7419 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7420 # On Suns, sometimes $CPP names a directory.
7421 if test -n "$CPP" && test -d "$CPP"; then
7424 if test -z "$CPP"; then
7425 if test "${ac_cv_prog_CPP+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7428 # Double quotes because CPP needs to be expanded
7429 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7432 for ac_c_preproc_warn_flag in '' yes
7434 # Use a header file that comes with gcc, so configuring glibc
7435 # with a fresh cross-compiler works.
7436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7437 # <limits.h> exists even on freestanding compilers.
7438 # On the NeXT, cc -E runs the code through the compiler's parser,
7439 # not just through cpp. "Syntax error" is here to catch this case.
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7443 # include <limits.h>
7445 # include <assert.h>
7449 if ac_fn_c_try_cpp "$LINENO"; then :
7452 # Broken: fails on valid input.
7455 rm -f conftest.err conftest.$ac_ext
7457 # OK, works on sane cases. Now check whether nonexistent headers
7458 # can be detected and how.
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 #include <ac_nonexistent.h>
7463 if ac_fn_c_try_cpp "$LINENO"; then :
7464 # Broken: success on invalid input.
7467 # Passes both tests.
7471 rm -f conftest.err conftest.$ac_ext
7474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7475 rm -f conftest.err conftest.$ac_ext
7476 if $ac_preproc_ok; then :
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7489 $as_echo "$CPP" >&6; }
7491 for ac_c_preproc_warn_flag in '' yes
7493 # Use a header file that comes with gcc, so configuring glibc
7494 # with a fresh cross-compiler works.
7495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7496 # <limits.h> exists even on freestanding compilers.
7497 # On the NeXT, cc -E runs the code through the compiler's parser,
7498 # not just through cpp. "Syntax error" is here to catch this case.
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7502 # include <limits.h>
7504 # include <assert.h>
7508 if ac_fn_c_try_cpp "$LINENO"; then :
7511 # Broken: fails on valid input.
7514 rm -f conftest.err conftest.$ac_ext
7516 # OK, works on sane cases. Now check whether nonexistent headers
7517 # can be detected and how.
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <ac_nonexistent.h>
7522 if ac_fn_c_try_cpp "$LINENO"; then :
7523 # Broken: success on invalid input.
7526 # Passes both tests.
7530 rm -f conftest.err conftest.$ac_ext
7533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7534 rm -f conftest.err conftest.$ac_ext
7535 if $ac_preproc_ok; then :
7538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7540 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7541 See \`config.log' for more details." "$LINENO" 5; }
7545 ac_cpp='$CPP $CPPFLAGS'
7546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7552 $as_echo_n "checking for ANSI C header files... " >&6; }
7553 if test "${ac_cv_header_stdc+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7571 if ac_fn_c_try_compile "$LINENO"; then :
7572 ac_cv_header_stdc=yes
7574 ac_cv_header_stdc=no
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 if test $ac_cv_header_stdc = yes; then
7579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7586 $EGREP "memchr" >/dev/null 2>&1; then :
7589 ac_cv_header_stdc=no
7595 if test $ac_cv_header_stdc = yes; then
7596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7603 $EGREP "free" >/dev/null 2>&1; then :
7606 ac_cv_header_stdc=no
7612 if test $ac_cv_header_stdc = yes; then
7613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7614 if test "$cross_compiling" = yes; then :
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7621 #if ((' ' & 0x0FF) == 0x020)
7622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7625 # define ISLOWER(c) \
7626 (('a' <= (c) && (c) <= 'i') \
7627 || ('j' <= (c) && (c) <= 'r') \
7628 || ('s' <= (c) && (c) <= 'z'))
7629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7637 for (i = 0; i < 256; i++)
7638 if (XOR (islower (i), ISLOWER (i))
7639 || toupper (i) != TOUPPER (i))
7644 if ac_fn_c_try_run "$LINENO"; then :
7647 ac_cv_header_stdc=no
7649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7650 conftest.$ac_objext conftest.beam conftest.$ac_ext
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7656 $as_echo "$ac_cv_header_stdc" >&6; }
7657 if test $ac_cv_header_stdc = yes; then
7659 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7663 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7664 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7665 inttypes.h stdint.h unistd.h
7667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7668 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7670 eval as_val=\$$as_ac_Header
7671 if test "x$as_val" = x""yes; then :
7672 cat >>confdefs.h <<_ACEOF
7673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7681 for ac_header in dlfcn.h
7683 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7684 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7685 cat >>confdefs.h <<_ACEOF
7686 #define HAVE_DLFCN_H 1
7694 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7696 # find the maximum length of command line arguments
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7698 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7699 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7707 # On DJGPP, this test can blow up pretty badly due to problems in libc
7708 # (any single argument exceeding 2000 bytes causes a buffer overrun
7709 # during glob expansion). Even if it were fixed, the result of this
7710 # check would be larger than it should be.
7711 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7715 # Under GNU Hurd, this test is not required because there is
7716 # no limit to the length of command line arguments.
7717 # Libtool will interpret -1 as no limit whatsoever
7718 lt_cv_sys_max_cmd_len=-1;
7722 # On Win9x/ME, this test blows up -- it succeeds, but takes
7723 # about 5 minutes as the teststring grows exponentially.
7724 # Worse, since 9x/ME are not pre-emptively multitasking,
7725 # you end up with a "frozen" computer, even though with patience
7726 # the test eventually succeeds (with a max line length of 256k).
7727 # Instead, let's just punt: use the minimum linelength reported by
7728 # all of the supported platforms: 8192 (on NT/2K/XP).
7729 lt_cv_sys_max_cmd_len=8192;
7733 # On AmigaOS with pdksh, this test takes hours, literally.
7734 # So we just punt and use a minimum line length of 8192.
7735 lt_cv_sys_max_cmd_len=8192;
7738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7739 # This has been around since 386BSD, at least. Likely further.
7740 if test -x /sbin/sysctl; then
7741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7742 elif test -x /usr/sbin/sysctl; then
7743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7747 # And add a safety zone
7748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7752 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7753 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7754 # nice to cause kernel panics so lets avoid the loop below.
7755 # First set a reasonable default.
7756 lt_cv_sys_max_cmd_len=16384
7758 if test -x /sbin/sysconfig; then
7759 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7760 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7765 # If test is not a shell built-in, we'll probably end up computing a
7766 # maximum length that is only half of the actual maximum length, but
7768 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7769 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7770 = "XX$teststring") >/dev/null 2>&1 &&
7771 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7772 lt_cv_sys_max_cmd_len=$new_result &&
7773 test $i != 17 # 1/2 MB should be enough
7776 teststring=$teststring$teststring
7779 # Add a significant safety factor because C++ compilers can tack on massive
7780 # amounts of additional arguments before passing them to the linker.
7781 # It appears as though 1/2 is a usable value.
7782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7788 if test -n $lt_cv_sys_max_cmd_len ; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7790 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7793 $as_echo "none" >&6; }
7799 # Check for command to grab the raw symbol name followed by C symbol from nm.
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7801 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7802 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7806 # These are sane defaults that work on at least a few old systems.
7807 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7809 # Character class describing NM global symbol codes.
7810 symcode='[BCDEGRST]'
7812 # Regexp to match symbols that can be accessed directly from C.
7813 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7815 # Transform an extracted symbol line into a proper C declaration
7816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7818 # Transform an extracted symbol line into symbol name and symbol address
7819 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'"
7821 # Define system-specific variables.
7826 cygwin* | mingw* | pw32*)
7827 symcode='[ABCDGISTW]'
7829 hpux*) # Its linker distinguishes data from code symbols
7830 if test "$host_cpu" = ia64; then
7831 symcode='[ABCDEGRST]'
7833 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7834 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'"
7837 if test "$host_cpu" = ia64; then
7838 symcode='[ABCDGIRSTW]'
7839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7840 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'"
7844 symcode='[BCDEGRST]'
7847 symcode='[BCDEGQRST]'
7857 # Handle CRLF in mingw tool chain
7861 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7865 # If we're using GNU nm, then use its standard symbol codes.
7866 case `$NM -V 2>&1` in
7867 *GNU* | *'with BFD'*)
7868 symcode='[ABCDGIRSTW]' ;;
7871 # Try without a prefix undercore, then with it.
7872 for ac_symprfx in "" "_"; do
7874 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7875 symxfrm="\\1 $ac_symprfx\\2 \\2"
7877 # Write the raw and C identifiers.
7878 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7880 # Check to see that the pipe works correctly.
7884 cat > conftest.$ac_ext <<EOF
7889 void nm_test_func(){}
7893 int main(){nm_test_var='a';nm_test_func();return(0);}
7896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7897 (eval $ac_compile) 2>&5
7899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900 test $ac_status = 0; }; then
7901 # Now try to grab the symbols.
7903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7904 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907 test $ac_status = 0; } && test -s "$nlist"; then
7908 # Try sorting and uniquifying the output.
7909 if sort "$nlist" | uniq > "$nlist"T; then
7910 mv -f "$nlist"T "$nlist"
7915 # Make sure that we snagged all the symbols we need.
7916 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7917 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7918 cat <<EOF > conftest.$ac_ext
7924 # Now generate the symbol file.
7925 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7927 cat <<EOF >> conftest.$ac_ext
7928 #if defined (__STDC__) && __STDC__
7929 # define lt_ptr_t void *
7931 # define lt_ptr_t char *
7935 /* The mapping between symbol names and symbols. */
7940 lt_preloaded_symbols[] =
7943 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7944 cat <<\EOF >> conftest.$ac_ext
7952 # Now try linking the two files.
7953 mv conftest.$ac_objext conftstm.$ac_objext
7954 lt_save_LIBS="$LIBS"
7955 lt_save_CFLAGS="$CFLAGS"
7956 LIBS="conftstm.$ac_objext"
7957 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7959 (eval $ac_link) 2>&5
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7965 LIBS="$lt_save_LIBS"
7966 CFLAGS="$lt_save_CFLAGS"
7968 echo "cannot find nm_test_func in $nlist" >&5
7971 echo "cannot find nm_test_var in $nlist" >&5
7974 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7977 echo "$progname: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 rm -f conftest* conftst*
7982 # Do not use the global_symbol_pipe unless it works.
7983 if test "$pipe_works" = yes; then
7986 lt_cv_sys_global_symbol_pipe=
7992 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7993 lt_cv_sys_global_symbol_to_cdecl=
7995 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7997 $as_echo "failed" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8000 $as_echo "ok" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8004 $as_echo_n "checking for objdir... " >&6; }
8005 if test "${lt_cv_objdir+set}" = set; then :
8006 $as_echo_n "(cached) " >&6
8008 rm -f .libs 2>/dev/null
8009 mkdir .libs 2>/dev/null
8010 if test -d .libs; then
8013 # MS-DOS does not allow filenames that begin with a dot.
8016 rmdir .libs 2>/dev/null
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8019 $as_echo "$lt_cv_objdir" >&6; }
8020 objdir=$lt_cv_objdir
8028 # AIX sometimes has problems with the GCC collect2 program. For some
8029 # reason, if we set the COLLECT_NAMES environment variable, the problems
8030 # vanish in a puff of smoke.
8031 if test "X${COLLECT_NAMES+set}" != Xset; then
8033 export COLLECT_NAMES
8038 # Sed substitution that helps us do robust quoting. It backslashifies
8039 # metacharacters that are still active within double-quoted strings.
8040 Xsed='sed -e 1s/^X//'
8041 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8043 # Same as above, but do not quote variable references.
8044 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8046 # Sed substitution to delay expansion of an escaped shell variable in a
8047 # double_quote_subst'ed string.
8048 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8050 # Sed substitution to avoid accidental globbing in evaled expressions
8051 no_glob_subst='s/\*/\\\*/g'
8057 default_ofile=libtool
8058 can_build_shared=yes
8060 # All known linkers require a `.a' archive for static linking (except MSVC,
8061 # which needs '.lib').
8063 ltmain="$ac_aux_dir/ltmain.sh"
8064 ofile="$default_ofile"
8065 with_gnu_ld="$lt_cv_prog_gnu_ld"
8067 if test -n "$ac_tool_prefix"; then
8068 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8069 set dummy ${ac_tool_prefix}ar; ac_word=$2
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if test "${ac_cv_prog_AR+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8075 if test -n "$AR"; then
8076 ac_cv_prog_AR="$AR" # Let the user override the test.
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8085 ac_cv_prog_AR="${ac_tool_prefix}ar"
8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 if test -n "$AR"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8098 $as_echo "$AR" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8106 if test -z "$ac_cv_prog_AR"; then
8108 # Extract the first word of "ar", so it can be a program name with args.
8109 set dummy ar; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8115 if test -n "$ac_ct_AR"; then
8116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8125 ac_cv_prog_ac_ct_AR="ar"
8126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8136 if test -n "$ac_ct_AR"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8138 $as_echo "$ac_ct_AR" >&6; }
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8144 if test "x$ac_ct_AR" = x; then
8147 case $cross_compiling:$ac_tool_warned in
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8151 ac_tool_warned=yes ;;
8159 if test -n "$ac_tool_prefix"; then
8160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8167 if test -n "$RANLIB"; then
8168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 RANLIB=$ac_cv_prog_RANLIB
8188 if test -n "$RANLIB"; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8190 $as_echo "$RANLIB" >&6; }
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8198 if test -z "$ac_cv_prog_RANLIB"; then
8199 ac_ct_RANLIB=$RANLIB
8200 # Extract the first word of "ranlib", so it can be a program name with args.
8201 set dummy ranlib; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8207 if test -n "$ac_ct_RANLIB"; then
8208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_prog_ac_ct_RANLIB="ranlib"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8228 if test -n "$ac_ct_RANLIB"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8230 $as_echo "$ac_ct_RANLIB" >&6; }
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8236 if test "x$ac_ct_RANLIB" = x; then
8239 case $cross_compiling:$ac_tool_warned in
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8243 ac_tool_warned=yes ;;
8245 RANLIB=$ac_ct_RANLIB
8248 RANLIB="$ac_cv_prog_RANLIB"
8251 if test -n "$ac_tool_prefix"; then
8252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8253 set dummy ${ac_tool_prefix}strip; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_STRIP+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8259 if test -n "$STRIP"; then
8260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 STRIP=$ac_cv_prog_STRIP
8280 if test -n "$STRIP"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8282 $as_echo "$STRIP" >&6; }
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8290 if test -z "$ac_cv_prog_STRIP"; then
8292 # Extract the first word of "strip", so it can be a program name with args.
8293 set dummy strip; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8299 if test -n "$ac_ct_STRIP"; then
8300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_prog_ac_ct_STRIP="strip"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8320 if test -n "$ac_ct_STRIP"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8322 $as_echo "$ac_ct_STRIP" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8328 if test "x$ac_ct_STRIP" = x; then
8331 case $cross_compiling:$ac_tool_warned in
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8335 ac_tool_warned=yes ;;
8340 STRIP="$ac_cv_prog_STRIP"
8345 old_CFLAGS="$CFLAGS"
8347 # Set sane defaults for various variables
8348 test -z "$AR" && AR=ar
8349 test -z "$AR_FLAGS" && AR_FLAGS=cru
8350 test -z "$AS" && AS=as
8351 test -z "$CC" && CC=cc
8352 test -z "$LTCC" && LTCC=$CC
8353 test -z "$DLLTOOL" && DLLTOOL=dlltool
8354 test -z "$LD" && LD=ld
8355 test -z "$LN_S" && LN_S="ln -s"
8356 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8357 test -z "$NM" && NM=nm
8358 test -z "$SED" && SED=sed
8359 test -z "$OBJDUMP" && OBJDUMP=objdump
8360 test -z "$RANLIB" && RANLIB=:
8361 test -z "$STRIP" && STRIP=:
8362 test -z "$ac_objext" && ac_objext=o
8364 # Determine commands to create old-style static archives.
8365 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8366 old_postinstall_cmds='chmod 644 $oldlib'
8367 old_postuninstall_cmds=
8369 if test -n "$RANLIB"; then
8372 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8375 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8378 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8381 for cc_temp in $compiler""; do
8383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8392 # Only perform the check for file, if the check method requires it
8393 case $deplibs_check_method in
8395 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8397 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8398 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8403 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8406 lt_save_MAGIC_CMD="$MAGIC_CMD"
8407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8408 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8409 for ac_dir in $ac_dummy; do
8411 test -z "$ac_dir" && ac_dir=.
8412 if test -f $ac_dir/${ac_tool_prefix}file; then
8413 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8414 if test -n "$file_magic_test_file"; then
8415 case $deplibs_check_method in
8417 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8419 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8420 $EGREP "$file_magic_regex" > /dev/null; then
8425 *** Warning: the command libtool uses to detect shared libraries,
8426 *** $file_magic_cmd, produces output that libtool cannot recognize.
8427 *** The result is that libtool may fail to recognize shared libraries
8428 *** as such. This will affect the creation of libtool libraries that
8429 *** depend on shared libraries, but programs linked with such libtool
8430 *** libraries will work regardless of this problem. Nevertheless, you
8431 *** may want to report the problem to your system manager and/or to
8432 *** bug-libtool@gnu.org
8442 MAGIC_CMD="$lt_save_MAGIC_CMD"
8447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8448 if test -n "$MAGIC_CMD"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8450 $as_echo "$MAGIC_CMD" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8456 if test -z "$lt_cv_path_MAGIC_CMD"; then
8457 if test -n "$ac_tool_prefix"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8459 $as_echo_n "checking for file... " >&6; }
8460 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8468 lt_save_MAGIC_CMD="$MAGIC_CMD"
8469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8471 for ac_dir in $ac_dummy; do
8473 test -z "$ac_dir" && ac_dir=.
8474 if test -f $ac_dir/file; then
8475 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8476 if test -n "$file_magic_test_file"; then
8477 case $deplibs_check_method in
8479 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8482 $EGREP "$file_magic_regex" > /dev/null; then
8487 *** Warning: the command libtool uses to detect shared libraries,
8488 *** $file_magic_cmd, produces output that libtool cannot recognize.
8489 *** The result is that libtool may fail to recognize shared libraries
8490 *** as such. This will affect the creation of libtool libraries that
8491 *** depend on shared libraries, but programs linked with such libtool
8492 *** libraries will work regardless of this problem. Nevertheless, you
8493 *** may want to report the problem to your system manager and/or to
8494 *** bug-libtool@gnu.org
8504 MAGIC_CMD="$lt_save_MAGIC_CMD"
8509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8510 if test -n "$MAGIC_CMD"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8512 $as_echo "$MAGIC_CMD" >&6; }
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8528 enable_win32_dll=yes
8530 # Check whether --enable-libtool-lock was given.
8531 if test "${enable_libtool_lock+set}" = set; then :
8532 enableval=$enable_libtool_lock;
8535 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8538 # Check whether --with-pic was given.
8539 if test "${with_pic+set}" = set; then :
8540 withval=$with_pic; pic_mode="$withval"
8545 test -z "$pic_mode" && pic_mode=default
8547 # Use C for the default configuration in the libtool script
8551 ac_cpp='$CPP $CPPFLAGS'
8552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8557 # Source file extension for C test sources.
8560 # Object file extension for compiled C test sources.
8564 # Code to be used in simple compile tests
8565 lt_simple_compile_test_code="int some_variable = 0;\n"
8567 # Code to be used in simple link tests
8568 lt_simple_link_test_code='int main(){return(0);}\n'
8571 # If no C compiler was specified, use CC.
8574 # Allow CC to be a program name with arguments.
8578 # save warnings/boilerplate of simple test code
8579 ac_outfile=conftest.$ac_objext
8580 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8581 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8582 _lt_compiler_boilerplate=`cat conftest.err`
8585 ac_outfile=conftest.$ac_objext
8586 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8587 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8588 _lt_linker_boilerplate=`cat conftest.err`
8593 # Check for any special shared library compilation flags.
8596 if test "$GCC" = no; then
8599 lt_prog_cc_shlib='-belf'
8603 if test -n "$lt_prog_cc_shlib"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8605 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8606 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8609 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8610 lt_cv_prog_cc_can_build_shared=no
8616 # Check to make sure the static flag actually works.
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8619 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
8620 if test "${lt_prog_compiler_static_works+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8623 lt_prog_compiler_static_works=no
8624 save_LDFLAGS="$LDFLAGS"
8625 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8626 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8628 # The linker can only warn and ignore the option if not recognized
8629 # So say no if there are warnings
8630 if test -s conftest.err; then
8631 # Append any errors to the config.log.
8632 cat conftest.err 1>&5
8633 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8634 $SED '/^$/d' conftest.err >conftest.er2
8635 if diff conftest.exp conftest.er2 >/dev/null; then
8636 lt_prog_compiler_static_works=yes
8639 lt_prog_compiler_static_works=yes
8643 LDFLAGS="$save_LDFLAGS"
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8647 $as_echo "$lt_prog_compiler_static_works" >&6; }
8649 if test x"$lt_prog_compiler_static_works" = xyes; then
8652 lt_prog_compiler_static=
8658 lt_prog_compiler_no_builtin_flag=
8660 if test "$GCC" = yes; then
8661 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8665 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8666 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8669 lt_cv_prog_compiler_rtti_exceptions=no
8670 ac_outfile=conftest.$ac_objext
8671 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8672 lt_compiler_flag="-fno-rtti -fno-exceptions"
8673 # Insert the option either (1) after the last *FLAGS variable, or
8674 # (2) before a word containing "conftest.", or (3) at the end.
8675 # Note that $ac_compile itself does not contain backslashes and begins
8676 # with a dollar sign (not a hyphen), so the echo should work correctly.
8677 # The option is referenced via a variable to avoid confusing sed.
8678 lt_compile=`echo "$ac_compile" | $SED \
8679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8681 -e 's:$: $lt_compiler_flag:'`
8682 (eval echo "\"\$as_me:8682: $lt_compile\"" >&5)
8683 (eval "$lt_compile" 2>conftest.err)
8685 cat conftest.err >&5
8686 echo "$as_me:8686: \$? = $ac_status" >&5
8687 if (exit $ac_status) && test -s "$ac_outfile"; then
8688 # The compiler can only warn and ignore the option if not recognized
8689 # So say no if there are warnings other than the usual output.
8690 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8691 $SED '/^$/d' conftest.err >conftest.er2
8692 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8693 lt_cv_prog_compiler_rtti_exceptions=yes
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8700 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8702 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8703 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8710 lt_prog_compiler_wl=
8711 lt_prog_compiler_pic=
8712 lt_prog_compiler_static=
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8715 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8717 if test "$GCC" = yes; then
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_static='-static'
8723 # All AIX code is PIC.
8724 if test "$host_cpu" = ia64; then
8725 # AIX 5 now supports IA64 processor
8726 lt_prog_compiler_static='-Bstatic'
8731 # FIXME: we need at least 68020 code to build shared libraries, but
8732 # adding the `-m68020' flag to GCC prevents building anything better,
8734 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8737 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8738 # PIC is the default for these OSes.
8741 mingw* | pw32* | os2*)
8742 # This hack is so that the source file can tell whether it is being
8743 # built for inclusion in a dll (and should export symbols for example).
8744 lt_prog_compiler_pic='-DDLL_EXPORT'
8747 darwin* | rhapsody*)
8748 # PIC is the default on this platform
8749 # Common symbols not allowed in MH_DYLIB files
8750 lt_prog_compiler_pic='-fno-common'
8754 # Just because we use GCC doesn't mean we suddenly get shared libraries
8755 # on systems that don't support them.
8756 lt_prog_compiler_can_build_shared=no
8761 if test -d /usr/nec; then
8762 lt_prog_compiler_pic=-Kconform_pic
8767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8774 lt_prog_compiler_pic='-fPIC'
8780 lt_prog_compiler_pic='-fPIC'
8784 # PORTME Check for flag to pass linker flags through the system compiler.
8787 lt_prog_compiler_wl='-Wl,'
8788 if test "$host_cpu" = ia64; then
8789 # AIX 5 now supports IA64 processor
8790 lt_prog_compiler_static='-Bstatic'
8792 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8796 # PIC is the default on this platform
8797 # Common symbols not allowed in MH_DYLIB files
8798 case $cc_basename in
8800 lt_prog_compiler_pic='-qnocommon'
8801 lt_prog_compiler_wl='-Wl,'
8806 mingw* | pw32* | os2*)
8807 # This hack is so that the source file can tell whether it is being
8808 # built for inclusion in a dll (and should export symbols for example).
8809 lt_prog_compiler_pic='-DDLL_EXPORT'
8812 hpux9* | hpux10* | hpux11*)
8813 lt_prog_compiler_wl='-Wl,'
8814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8821 lt_prog_compiler_pic='+Z'
8824 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8825 lt_prog_compiler_static='${wl}-a ${wl}archive'
8828 irix5* | irix6* | nonstopux*)
8829 lt_prog_compiler_wl='-Wl,'
8830 # PIC (with -KPIC) is the default.
8831 lt_prog_compiler_static='-non_shared'
8835 lt_prog_compiler_pic='-KPIC'
8836 lt_prog_compiler_static='-Bstatic'
8840 case $cc_basename in
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-static'
8846 pgcc* | pgf77* | pgf90* | pgf95*)
8847 # Portland Group compilers (*not* the Pentium gcc compiler,
8848 # which looks to be a dead project)
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_pic='-fpic'
8851 lt_prog_compiler_static='-Bstatic'
8854 lt_prog_compiler_wl='-Wl,'
8855 # All Alpha code is PIC.
8856 lt_prog_compiler_static='-non_shared'
8861 osf3* | osf4* | osf5*)
8862 lt_prog_compiler_wl='-Wl,'
8863 # All OSF/1 code is PIC.
8864 lt_prog_compiler_static='-non_shared'
8868 lt_prog_compiler_pic='-Kpic'
8869 lt_prog_compiler_static='-dn'
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 case $cc_basename in
8877 lt_prog_compiler_wl='-Qoption ld ';;
8879 lt_prog_compiler_wl='-Wl,';;
8884 lt_prog_compiler_wl='-Qoption ld '
8885 lt_prog_compiler_pic='-PIC'
8886 lt_prog_compiler_static='-Bstatic'
8889 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-KPIC'
8892 lt_prog_compiler_static='-Bstatic'
8896 if test -d /usr/nec ;then
8897 lt_prog_compiler_pic='-Kconform_pic'
8898 lt_prog_compiler_static='-Bstatic'
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_can_build_shared=no
8908 lt_prog_compiler_pic='-pic'
8909 lt_prog_compiler_static='-Bstatic'
8913 lt_prog_compiler_can_build_shared=no
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8919 $as_echo "$lt_prog_compiler_pic" >&6; }
8922 # Check to make sure the PIC flag actually works.
8924 if test -n "$lt_prog_compiler_pic"; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8927 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8928 if test "${lt_prog_compiler_pic_works+set}" = set; then :
8929 $as_echo_n "(cached) " >&6
8931 lt_prog_compiler_pic_works=no
8932 ac_outfile=conftest.$ac_objext
8933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8934 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8935 # Insert the option either (1) after the last *FLAGS variable, or
8936 # (2) before a word containing "conftest.", or (3) at the end.
8937 # Note that $ac_compile itself does not contain backslashes and begins
8938 # with a dollar sign (not a hyphen), so the echo should work correctly.
8939 # The option is referenced via a variable to avoid confusing sed.
8940 lt_compile=`echo "$ac_compile" | $SED \
8941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8943 -e 's:$: $lt_compiler_flag:'`
8944 (eval echo "\"\$as_me:8944: $lt_compile\"" >&5)
8945 (eval "$lt_compile" 2>conftest.err)
8947 cat conftest.err >&5
8948 echo "$as_me:8948: \$? = $ac_status" >&5
8949 if (exit $ac_status) && test -s "$ac_outfile"; then
8950 # The compiler can only warn and ignore the option if not recognized
8951 # So say no if there are warnings other than the usual output.
8952 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8953 $SED '/^$/d' conftest.err >conftest.er2
8954 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8955 lt_prog_compiler_pic_works=yes
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8962 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8964 if test x"$lt_prog_compiler_pic_works" = xyes; then
8965 case $lt_prog_compiler_pic in
8967 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8970 lt_prog_compiler_pic=
8971 lt_prog_compiler_can_build_shared=no
8976 # For platforms which do not support PIC, -DPIC is meaningless:
8978 lt_prog_compiler_pic=
8981 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8986 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8987 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8988 $as_echo_n "(cached) " >&6
8990 lt_cv_prog_compiler_c_o=no
8991 $rm -r conftest 2>/dev/null
8995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8997 lt_compiler_flag="-o out/conftest2.$ac_objext"
8998 # Insert the option either (1) after the last *FLAGS variable, or
8999 # (2) before a word containing "conftest.", or (3) at the end.
9000 # Note that $ac_compile itself does not contain backslashes and begins
9001 # with a dollar sign (not a hyphen), so the echo should work correctly.
9002 lt_compile=`echo "$ac_compile" | $SED \
9003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9005 -e 's:$: $lt_compiler_flag:'`
9006 (eval echo "\"\$as_me:9006: $lt_compile\"" >&5)
9007 (eval "$lt_compile" 2>out/conftest.err)
9009 cat out/conftest.err >&5
9010 echo "$as_me:9010: \$? = $ac_status" >&5
9011 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9013 # The compiler can only warn and ignore the option if not recognized
9014 # So say no if there are warnings
9015 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
9016 $SED '/^$/d' out/conftest.err >out/conftest.er2
9017 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9018 lt_cv_prog_compiler_c_o=yes
9023 # SGI C++ compiler will create directory out/ii_files/ for
9024 # template instantiation
9025 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9026 $rm out/* && rmdir out
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9033 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9036 hard_links="nottested"
9037 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9038 # do not overwrite the value of need_locks provided by the user
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9040 $as_echo_n "checking if we can lock with hard links... " >&6; }
9043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9045 ln conftest.a conftest.b 2>&5 || hard_links=no
9046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9048 $as_echo "$hard_links" >&6; }
9049 if test "$hard_links" = no; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9051 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9059 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9062 allow_undefined_flag=
9063 enable_shared_with_static_runtimes=no
9065 archive_expsym_cmds=
9066 old_archive_From_new_cmds=
9067 old_archive_from_expsyms_cmds=
9068 export_dynamic_flag_spec=
9069 whole_archive_flag_spec=
9070 thread_safe_flag_spec=
9071 hardcode_libdir_flag_spec=
9072 hardcode_libdir_flag_spec_ld=
9073 hardcode_libdir_separator=
9076 hardcode_shlibpath_var=unsupported
9077 link_all_deplibs=unknown
9078 hardcode_automatic=no
9081 always_export_symbols=no
9082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9083 # include_expsyms should be a list of space-separated symbols to be *always*
9084 # included in the symbol list
9086 # exclude_expsyms can be an extended regexp of symbols to exclude
9087 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9088 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9089 # as well as any symbol that contains `d'.
9090 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9091 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9092 # platforms (ab)use it in PIC code, but their linkers get confused if
9093 # the symbol is explicitly referenced. Since portable code cannot
9094 # rely on this symbol name, it's probably fine to never include it in
9095 # preloaded symbol tables.
9096 extract_expsyms_cmds=
9097 # Just being paranoid about ensuring that cc_basename is set.
9098 for cc_temp in $compiler""; do
9100 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9101 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9106 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9109 cygwin* | mingw* | pw32*)
9110 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9111 # When not using gcc, we currently assume that we are using
9112 # Microsoft Visual C++.
9113 if test "$GCC" != yes; then
9123 if test "$with_gnu_ld" = yes; then
9124 # If archive_cmds runs LD, not CC, wlarc should be empty
9127 # Set some defaults for GNU ld with shared library support. These
9128 # are reset later if shared libraries are not supported. Putting them
9129 # here allows them to be overridden if necessary.
9130 runpath_var=LD_RUN_PATH
9131 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9132 export_dynamic_flag_spec='${wl}--export-dynamic'
9133 # ancient GNU ld didn't support --whole-archive et. al.
9134 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9135 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9137 whole_archive_flag_spec=
9139 supports_anon_versioning=no
9140 case `$LD -v 2>/dev/null` in
9141 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9144 *\ 2.11.*) ;; # other 2.11 versions
9145 *) supports_anon_versioning=yes ;;
9148 # See if GNU ld supports shared libraries.
9150 aix3* | aix4* | aix5*)
9151 # On AIX/PPC, the GNU linker is very broken
9152 if test "$host_cpu" != ia64; then
9156 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9157 *** to be unable to reliably create shared libraries on AIX.
9158 *** Therefore, libtool is disabling shared libraries support. If you
9159 *** really care for shared libraries, you may want to modify your PATH
9160 *** so that a non-GNU linker is found, and then restart.
9167 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)'
9168 hardcode_libdir_flag_spec='-L$libdir'
9169 hardcode_minus_L=yes
9171 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9172 # that the semantics of dynamic libraries on AmigaOS, at least up
9173 # to version 4, is to share data among multiple programs linked
9174 # with the same dynamic library. Since this doesn't match the
9175 # behavior of shared libraries on other platforms, we can't use
9181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9182 allow_undefined_flag=unsupported
9183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9184 # support --undefined. This deserves some investigation. FIXME
9185 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9191 cygwin* | mingw* | pw32*)
9192 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9193 # as there is no search path for DLLs.
9194 hardcode_libdir_flag_spec='-L$libdir'
9195 allow_undefined_flag=unsupported
9196 always_export_symbols=no
9197 enable_shared_with_static_runtimes=yes
9198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9200 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9202 # If the export-symbols file already is a .def file (1st line
9203 # is EXPORTS), use it as is; otherwise, prepend...
9204 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9205 cp $export_symbols $output_objdir/$soname.def;
9207 echo EXPORTS > $output_objdir/$soname.def;
9208 cat $export_symbols >> $output_objdir/$soname.def;
9210 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9219 case $cc_basename,$host_cpu in
9220 pgcc*) # Portland Group C compiler
9221 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'
9222 tmp_addflag=' $pic_flag'
9224 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9225 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'
9226 tmp_addflag=' $pic_flag -Mnomain' ;;
9227 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9228 tmp_addflag=' -i_dynamic' ;;
9229 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9230 tmp_addflag=' -i_dynamic -nofor_main' ;;
9231 ifc* | ifort*) # Intel Fortran compiler
9232 tmp_addflag=' -nofor_main' ;;
9234 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9236 if test $supports_anon_versioning = yes; then
9237 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9239 $echo "local: *; };" >> $output_objdir/$libname.ver~
9240 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9249 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9258 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9263 *** create shared libraries on Solaris systems. Therefore, libtool
9264 *** is disabling shared libraries support. We urge you to upgrade GNU
9265 *** binutils to release 2.9.1 or newer. Another option is to modify
9266 *** your PATH or compiler configuration so that the native linker is
9267 *** used, and then restart.
9270 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9279 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9282 hardcode_shlibpath_var=no
9286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295 if test "$ld_shlibs" = no; then
9297 hardcode_libdir_flag_spec=
9298 export_dynamic_flag_spec=
9299 whole_archive_flag_spec=
9302 # PORTME fill in a description of your system's linker (not GNU ld)
9305 allow_undefined_flag=unsupported
9306 always_export_symbols=yes
9307 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'
9308 # Note: this linker hardcodes the directories in LIBPATH if there
9309 # are no directories specified by -L.
9310 hardcode_minus_L=yes
9311 if test "$GCC" = yes && test -z "$link_static_flag"; then
9312 # Neither direct hardcoding nor static linking is supported with a
9314 hardcode_direct=unsupported
9319 if test "$host_cpu" = ia64; then
9320 # On IA64, the linker does run time linking by default, so we don't
9321 # have to do anything special.
9322 aix_use_runtimelinking=no
9323 exp_sym_flag='-Bexport'
9326 # If we're using GNU nm, then we don't want the "-C" option.
9327 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9328 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9329 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'
9331 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'
9333 aix_use_runtimelinking=no
9335 # Test if we are trying to use run time linking or normal
9336 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9337 # need to do runtime linking.
9338 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9339 for ld_flag in $LDFLAGS; do
9340 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9341 aix_use_runtimelinking=yes
9347 exp_sym_flag='-bexport'
9348 no_entry_flag='-bnoentry'
9351 # When large executables or shared objects are built, AIX ld can
9352 # have problems creating the table of contents. If linking a library
9353 # or program results in "error TOC overflow" add -mminimal-toc to
9354 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9355 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9359 hardcode_libdir_separator=':'
9360 link_all_deplibs=yes
9362 if test "$GCC" = yes; then
9363 case $host_os in aix4.[012]|aix4.[012].*)
9364 # We only want to do this on AIX 4.2 and lower, the check
9365 # below for broken collect2 doesn't work under 4.3+
9366 collect2name=`${CC} -print-prog-name=collect2`
9367 if test -f "$collect2name" && \
9368 strings "$collect2name" | grep resolve_lib_name >/dev/null
9370 # We have reworked collect2
9373 # We have old collect2
9374 hardcode_direct=unsupported
9375 # It fails to find uninstalled libraries when the uninstalled
9376 # path is not listed in the libpath. Setting hardcode_minus_L
9377 # to unsupported forces relinking
9378 hardcode_minus_L=yes
9379 hardcode_libdir_flag_spec='-L$libdir'
9380 hardcode_libdir_separator=
9383 shared_flag='-shared'
9384 if test "$aix_use_runtimelinking" = yes; then
9385 shared_flag="$shared_flag "'${wl}-G'
9389 if test "$host_cpu" = ia64; then
9390 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9391 # chokes on -Wl,-G. The following line is correct:
9394 if test "$aix_use_runtimelinking" = yes; then
9395 shared_flag='${wl}-G'
9397 shared_flag='${wl}-bM:SRE'
9402 # It seems that -bexpall does not export symbols beginning with
9403 # underscore (_), so it is better to generate a list of symbols to export.
9404 always_export_symbols=yes
9405 if test "$aix_use_runtimelinking" = yes; then
9406 # Warning - without using the other runtime loading flags (-brtl),
9407 # -berok will link without error, but may produce a broken library.
9408 allow_undefined_flag='-berok'
9409 # Determine the default libpath from the value encoded in an empty executable.
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9421 if ac_fn_c_try_link "$LINENO"; then :
9423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9425 # Check for a 64-bit object if we didn't find anything.
9426 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; }
9429 rm -f core conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
9431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9433 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9434 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"
9436 if test "$host_cpu" = ia64; then
9437 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9438 allow_undefined_flag="-z nodefs"
9439 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"
9441 # Determine the default libpath from the value encoded in an empty executable.
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9453 if ac_fn_c_try_link "$LINENO"; then :
9455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9457 # Check for a 64-bit object if we didn't find anything.
9458 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; }
9461 rm -f core conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9465 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9466 # Warning - without using the other run time loading flags,
9467 # -berok will link without error, but may produce a broken library.
9468 no_undefined_flag=' ${wl}-bernotok'
9469 allow_undefined_flag=' ${wl}-berok'
9470 # -bexpall does not export symbols beginning with underscore (_)
9471 always_export_symbols=yes
9472 # Exported symbols can be pulled into shared objects from archives
9473 whole_archive_flag_spec=' '
9474 archive_cmds_need_lc=yes
9475 # This is similar to how AIX traditionally builds its shared libraries.
9476 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'
9482 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)'
9483 hardcode_libdir_flag_spec='-L$libdir'
9484 hardcode_minus_L=yes
9485 # see comment about different semantics on the GNU ld section
9490 export_dynamic_flag_spec=-rdynamic
9493 cygwin* | mingw* | pw32*)
9494 # When not using gcc, we currently assume that we are using
9495 # Microsoft Visual C++.
9496 # hardcode_libdir_flag_spec is actually meaningless, as there is
9497 # no search path for DLLs.
9498 hardcode_libdir_flag_spec=' '
9499 allow_undefined_flag=unsupported
9500 # Tell ltmain to make .lib files, not .a files.
9502 # Tell ltmain to make .dll files, not .so files.
9504 # FIXME: Setting linknames here is a bad hack.
9505 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9506 # The linker will automatically build a .lib file if we build a DLL.
9507 old_archive_From_new_cmds='true'
9508 # FIXME: Should let the user specify the lib program.
9509 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9510 fix_srcfile_path='`cygpath -w "$srcfile"`'
9511 enable_shared_with_static_runtimes=yes
9514 darwin* | rhapsody*)
9516 rhapsody* | darwin1.[012])
9517 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9520 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9521 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9523 case ${MACOSX_DEPLOYMENT_TARGET} in
9525 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9528 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9534 archive_cmds_need_lc=no
9536 hardcode_automatic=yes
9537 hardcode_shlibpath_var=unsupported
9538 whole_archive_flag_spec=''
9539 link_all_deplibs=yes
9540 if test "$GCC" = yes ; then
9541 output_verbose_link_cmd='echo'
9542 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9543 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9545 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}'
9546 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}'
9548 case $cc_basename in
9550 output_verbose_link_cmd='echo'
9551 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9552 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9554 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}'
9555 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}'
9565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566 hardcode_libdir_flag_spec='-L$libdir'
9567 hardcode_shlibpath_var=no
9574 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9575 # support. Future versions do this automatically, but an explicit c++rt0.o
9576 # does not break anything, and helps significantly (at the cost of a little
9579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9580 hardcode_libdir_flag_spec='-R$libdir'
9582 hardcode_shlibpath_var=no
9585 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9589 hardcode_minus_L=yes
9590 hardcode_shlibpath_var=no
9593 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9594 freebsd* | kfreebsd*-gnu | dragonfly*)
9595 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9596 hardcode_libdir_flag_spec='-R$libdir'
9598 hardcode_shlibpath_var=no
9602 if test "$GCC" = yes; then
9603 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'
9605 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'
9607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9608 hardcode_libdir_separator=:
9611 # hardcode_minus_L: Not really in the search PATH,
9612 # but as the default location of the library.
9613 hardcode_minus_L=yes
9614 export_dynamic_flag_spec='${wl}-E'
9618 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9621 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9633 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9637 if test "$with_gnu_ld" = no; then
9640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9641 hardcode_libdir_flag_spec_ld='+b $libdir'
9642 hardcode_libdir_separator=:
9644 hardcode_shlibpath_var=no
9647 hardcode_libdir_flag_spec='-L$libdir'
9649 hardcode_shlibpath_var=no
9651 # hardcode_minus_L: Not really in the search PATH,
9652 # but as the default location of the library.
9653 hardcode_minus_L=yes
9656 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9657 hardcode_libdir_separator=:
9659 export_dynamic_flag_spec='${wl}-E'
9661 # hardcode_minus_L: Not really in the search PATH,
9662 # but as the default location of the library.
9663 hardcode_minus_L=yes
9669 irix5* | irix6* | nonstopux*)
9670 if test "$GCC" = yes; then
9671 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'
9673 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'
9674 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9677 hardcode_libdir_separator=:
9678 link_all_deplibs=yes
9682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9685 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9687 hardcode_libdir_flag_spec='-R$libdir'
9689 hardcode_shlibpath_var=no
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9696 hardcode_libdir_separator=:
9697 hardcode_shlibpath_var=no
9702 hardcode_shlibpath_var=no
9703 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9704 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9705 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9706 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9707 export_dynamic_flag_spec='${wl}-E'
9710 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_libdir_flag_spec='-R$libdir'
9715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9716 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_minus_L=yes
9725 allow_undefined_flag=unsupported
9726 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'
9727 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9731 if test "$GCC" = yes; then
9732 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9733 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'
9735 allow_undefined_flag=' -expect_unresolved \*'
9736 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'
9738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9739 hardcode_libdir_separator=:
9742 osf4* | osf5*) # as osf3* with the addition of -msym flag
9743 if test "$GCC" = yes; then
9744 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9745 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'
9746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9748 allow_undefined_flag=' -expect_unresolved \*'
9749 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'
9750 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9751 $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'
9753 # Both c and cxx compiler support -rpath directly
9754 hardcode_libdir_flag_spec='-rpath $libdir'
9756 hardcode_libdir_separator=:
9760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 hardcode_shlibpath_var=no
9762 export_dynamic_flag_spec='${wl}-Bexport'
9763 runpath_var=LD_RUN_PATH
9764 hardcode_runpath_var=yes
9768 no_undefined_flag=' -z text'
9769 if test "$GCC" = yes; then
9771 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9773 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9776 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9777 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9780 hardcode_libdir_flag_spec='-R$libdir'
9781 hardcode_shlibpath_var=no
9783 solaris2.[0-5] | solaris2.[0-5].*) ;;
9785 # The compiler driver will combine linker options so we
9786 # cannot just pass the convience library names through
9787 # without $wl, iff we do not link with $LD.
9788 # Luckily, gcc supports the same syntax we need for Sun Studio.
9789 # Supported since Solaris 2.6 (maybe 2.5.1?)
9792 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9794 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' ;;
9797 link_all_deplibs=yes
9801 if test "x$host_vendor" = xsequent; then
9802 # Use $CC to link under sequent, because it throws in some extra .o
9803 # files that make .init and .fini sections work.
9804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9808 hardcode_libdir_flag_spec='-L$libdir'
9810 hardcode_minus_L=yes
9811 hardcode_shlibpath_var=no
9815 case $host_vendor in
9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818 hardcode_direct=yes # is this really true???
9821 ## LD is ld it makes a PLAMLIB
9822 ## CC just makes a GrossModule.
9823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9824 reload_cmds='$CC -r -o $output$reload_objs'
9828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9832 runpath_var='LD_RUN_PATH'
9833 hardcode_shlibpath_var=no
9837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838 hardcode_shlibpath_var=no
9839 export_dynamic_flag_spec='-Bexport'
9843 if test -d /usr/nec; then
9844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_shlibpath_var=no
9846 runpath_var=LD_RUN_PATH
9847 hardcode_runpath_var=yes
9853 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9856 hardcode_shlibpath_var=no
9857 hardcode_runpath_var=yes
9858 runpath_var=LD_RUN_PATH
9861 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9862 no_undefined_flag='${wl}-z ${wl}text'
9863 if test "$GCC" = yes; then
9864 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9866 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9868 runpath_var='LD_RUN_PATH'
9869 hardcode_shlibpath_var=no
9873 no_undefined_flag=' -z text'
9874 # $CC -shared without GNU ld will not create a library from C++
9875 # object files and a static libstdc++, better avoid it by now
9876 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9877 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9878 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9879 hardcode_libdir_flag_spec=
9880 hardcode_shlibpath_var=no
9881 runpath_var='LD_RUN_PATH'
9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 hardcode_libdir_flag_spec='-L$libdir'
9887 hardcode_shlibpath_var=no
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9897 $as_echo "$ld_shlibs" >&6; }
9898 test "$ld_shlibs" = no && can_build_shared=no
9900 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9901 if test "$GCC" = yes; then
9902 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9906 # Do we need to explicitly link libc?
9908 case "x$archive_cmds_need_lc" in
9910 # Assume -lc should be added
9911 archive_cmds_need_lc=yes
9913 if test "$enable_shared" = yes && test "$GCC" = yes; then
9914 case $archive_cmds in
9916 # FIXME: we may have to deal with multi-command sequences.
9919 # Test whether the compiler implicitly links with -lc since on some
9920 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9921 # to ld, don't add -lc before -lgcc.
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9923 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9928 (eval $ac_compile) 2>&5
9930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931 test $ac_status = 0; } 2>conftest.err; then
9934 libobjs=conftest.$ac_objext
9936 wl=$lt_prog_compiler_wl
9942 lt_save_allow_undefined_flag=$allow_undefined_flag
9943 allow_undefined_flag=
9944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9945 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9948 test $ac_status = 0; }
9950 archive_cmds_need_lc=no
9952 archive_cmds_need_lc=yes
9954 allow_undefined_flag=$lt_save_allow_undefined_flag
9956 cat conftest.err 1>&5
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9960 $as_echo "$archive_cmds_need_lc" >&6; }
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9968 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9970 libname_spec='lib$name'
9978 shlibpath_overrides_runpath=unknown
9980 dynamic_linker="$host_os ld.so"
9981 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9982 if test "$GCC" = yes; then
9983 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9984 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9985 # if the path contains ";" then we assume it to be the separator
9986 # otherwise default to the standard path separator (i.e. ":") - it is
9987 # assumed that no part of a normal pathname contains ";" but that should
9988 # okay in the real world where ";" in dirpaths is itself problematic.
9989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9994 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9996 need_lib_prefix=unknown
9997 hardcode_into_libs=no
9999 # when you set need_version to no, make sure it does not cause -set_version
10000 # flags to be left without arguments
10001 need_version=unknown
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10007 shlibpath_var=LIBPATH
10009 # AIX 3 has no versioning support, so we append a major version to the name.
10010 soname_spec='${libname}${release}${shared_ext}$major'
10017 hardcode_into_libs=yes
10018 if test "$host_cpu" = ia64; then
10019 # AIX 5 supports IA64
10020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10021 shlibpath_var=LD_LIBRARY_PATH
10023 # With GCC up to 2.95.x, collect2 would create an import file
10024 # for dependence libraries. The import file would start with
10025 # the line `#! .'. This would cause the generated library to
10026 # depend on `.', always an invalid library. This was fixed in
10027 # development snapshots of GCC prior to 3.0.
10029 aix4 | aix4.[01] | aix4.[01].*)
10030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10032 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10035 can_build_shared=no
10039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10040 # soname into executable. Probably we can add versioning support to
10041 # collect2, so additional links can be useful in future.
10042 if test "$aix_use_runtimelinking" = yes; then
10043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10044 # instead of lib<name>.a to let people know that these are not
10045 # typical AIX shared libraries.
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 # We preserve .a as extension for shared libraries through AIX4.2
10049 # and later when we are not doing run time linking.
10050 library_names_spec='${libname}${release}.a $libname.a'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10053 shlibpath_var=LIBPATH
10058 library_names_spec='$libname.ixlibrary $libname.a'
10059 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10060 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'
10064 library_names_spec='${libname}${shared_ext}'
10065 dynamic_linker="$host_os ld.so"
10066 shlibpath_var=LIBRARY_PATH
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10077 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10078 # the default ld.so.conf also contains /usr/contrib/lib and
10079 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10080 # libtool to hard-code these into programs
10083 cygwin* | mingw* | pw32*)
10084 version_type=windows
10089 case $GCC,$host_os in
10090 yes,cygwin* | yes,mingw* | yes,pw32*)
10091 library_names_spec='$libname.dll.a'
10092 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10093 postinstall_cmds='base_file=`basename \${file}`~
10094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10095 dldir=$destdir/`dirname \$dlpath`~
10096 test -d \$dldir || mkdir -p \$dldir~
10097 $install_prog $dir/$dlname \$dldir/$dlname~
10098 chmod a+x \$dldir/$dlname'
10099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10100 dlpath=$dir/\$dldll~
10102 shlibpath_overrides_runpath=yes
10106 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10107 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10108 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10111 # MinGW DLLs use traditional 'lib' prefix
10112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10114 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10115 # It is most probably a Windows format PATH printed by
10116 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10117 # path with ; separators, and with drive letters. We can handle the
10118 # drive letters (cygwin fileutils understands them), so leave them,
10119 # especially as we might pass files found there to a mingw objdump,
10120 # which wouldn't understand a cygwinified path. Ahh.
10121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10127 # pw32 DLLs use 'pw' prefix rather than 'lib'
10128 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10134 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10137 dynamic_linker='Win32 ld.exe'
10138 # FIXME: first we should search . and the directory the executable is in
10142 darwin* | rhapsody*)
10143 dynamic_linker="$host_os dyld"
10144 version_type=darwin
10147 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10148 soname_spec='${libname}${release}${major}$shared_ext'
10149 shlibpath_overrides_runpath=yes
10150 shlibpath_var=DYLD_LIBRARY_PATH
10151 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10152 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10153 if test "$GCC" = yes; then
10154 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"`
10156 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 shlibpath_var=LD_LIBRARY_PATH
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 shlibpath_var=LD_LIBRARY_PATH
10181 shlibpath_overrides_runpath=no
10182 hardcode_into_libs=yes
10183 dynamic_linker='GNU ld.so'
10186 freebsd* | dragonfly*)
10187 # DragonFly does not have aout. When/if they implement a new
10188 # versioning mechanism, adjust this.
10189 if test -x /usr/bin/objformat; then
10190 objformat=`/usr/bin/objformat`
10193 freebsd[123]*) objformat=aout ;;
10194 *) objformat=elf ;;
10197 version_type=freebsd-$objformat
10198 case $version_type in
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10209 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes
10214 freebsd3.[01]* | freebsdelf3.[01]*)
10215 shlibpath_overrides_runpath=yes
10216 hardcode_into_libs=yes
10219 shlibpath_overrides_runpath=no
10220 hardcode_into_libs=yes
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 shlibpath_var=LD_LIBRARY_PATH
10232 hardcode_into_libs=yes
10235 hpux9* | hpux10* | hpux11*)
10236 # Give a soname corresponding to the major version so that dld.sl refuses to
10237 # link against other versions.
10244 hardcode_into_libs=yes
10245 dynamic_linker="$host_os dld.so"
10246 shlibpath_var=LD_LIBRARY_PATH
10247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 if test "X$HPUX_IA64_MODE" = X32; then
10251 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10259 hardcode_into_libs=yes
10260 dynamic_linker="$host_os dld.sl"
10261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10270 dynamic_linker="$host_os dld.sl"
10271 shlibpath_var=SHLIB_PATH
10272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10277 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10278 postinstall_cmds='chmod 555 $lib'
10281 irix5* | irix6* | nonstopux*)
10283 nonstopux*) version_type=nonstopux ;;
10285 if test "$lt_cv_prog_gnu_ld" = yes; then
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10296 irix5* | nonstopux*)
10297 libsuff= shlibsuff=
10300 case $LD in # libtool.m4 will add one of these switches to LD
10301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10302 libsuff= shlibsuff= libmagic=32-bit;;
10303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10304 libsuff=32 shlibsuff=N32 libmagic=N32;;
10305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10307 *) libsuff= shlibsuff= libmagic=never-match;;
10311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10312 shlibpath_overrides_runpath=no
10313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10315 hardcode_into_libs=yes
10318 # No shared lib support for Linux oldld, aout, or coff.
10319 linux*oldld* | linux*aout* | linux*coff*)
10323 # This must be Linux ELF.
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=no
10333 # This implies no fast_install, which is unacceptable.
10334 # Some rework will be needed to allow for fast_install
10335 # before this can be enabled.
10336 hardcode_into_libs=yes
10338 # Append ld.so.conf contents to the search path
10339 if test -f /etc/ld.so.conf; then
10340 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' ' '`
10341 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10344 # We used to test for /lib/ld.so.1 and disable shared libraries on
10345 # powerpc, because MkLinux only supported shared libraries with the
10346 # GNU dynamic linker. Since this was broken with cross compilers,
10347 # most powerpc-linux boxes support dynamic linking these days and
10348 # people can always --disable-shared, the test was removed, and we
10349 # assume the GNU/Linux dynamic linker is in use.
10350 dynamic_linker='GNU/Linux ld.so'
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=no
10361 hardcode_into_libs=yes
10362 dynamic_linker='GNU ld.so'
10369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10372 dynamic_linker='NetBSD (a.out) ld.so'
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 dynamic_linker='NetBSD ld.elf_so'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=yes
10380 hardcode_into_libs=yes
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 shlibpath_overrides_runpath=yes
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 shlibpath_overrides_runpath=yes
10403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10405 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10406 *) need_version=no ;;
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10413 openbsd2.[89] | openbsd2.[89].*)
10414 shlibpath_overrides_runpath=no
10417 shlibpath_overrides_runpath=yes
10421 shlibpath_overrides_runpath=yes
10426 libname_spec='$name'
10429 library_names_spec='$libname${shared_ext} $libname.a'
10430 dynamic_linker='OS/2 ld.exe'
10431 shlibpath_var=LIBPATH
10434 osf3* | osf4* | osf5*)
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 shlibpath_var=LD_LIBRARY_PATH
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=yes
10460 hardcode_into_libs=yes
10461 # ldd complains unless libraries are executable
10462 postinstall_cmds='chmod +x $lib'
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10468 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10469 shlibpath_var=LD_LIBRARY_PATH
10470 shlibpath_overrides_runpath=yes
10471 if test "$with_gnu_ld" = yes; then
10477 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 case $host_vendor in
10484 shlibpath_overrides_runpath=no
10486 export_dynamic_flag_spec='${wl}-Blargedynsym'
10487 runpath_var=LD_RUN_PATH
10495 shlibpath_overrides_runpath=no
10496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10502 if test -d /usr/nec ;then
10504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10505 soname_spec='$libname${shared_ext}.$major'
10506 shlibpath_var=LD_LIBRARY_PATH
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10522 $as_echo "$dynamic_linker" >&6; }
10523 test "$dynamic_linker" = no && can_build_shared=no
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10526 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10528 if test -n "$hardcode_libdir_flag_spec" || \
10529 test -n "$runpath_var" || \
10530 test "X$hardcode_automatic" = "Xyes" ; then
10532 # We can hardcode non-existant directories.
10533 if test "$hardcode_direct" != no &&
10534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10535 # have to relink, otherwise we might link with an installed library
10536 # when we should be linking with a yet-to-be-installed one
10537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10538 test "$hardcode_minus_L" != no; then
10539 # Linking always hardcodes the temporary library directory.
10540 hardcode_action=relink
10542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10543 hardcode_action=immediate
10546 # We cannot hardcode anything, or else we can only hardcode existing
10548 hardcode_action=unsupported
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10551 $as_echo "$hardcode_action" >&6; }
10553 if test "$hardcode_action" = relink; then
10554 # Fast installation is not supported
10555 enable_fast_install=no
10556 elif test "$shlibpath_overrides_runpath" = yes ||
10557 test "$enable_shared" = no; then
10558 # Fast installation is not necessary
10559 enable_fast_install=needless
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10565 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10566 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10567 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10568 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10570 $as_echo "yes" >&6; }
10572 # FIXME - insert some real tests, host_os isn't really good enough
10575 if test -n "$STRIP" ; then
10576 striplib="$STRIP -x"
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10578 $as_echo "yes" >&6; }
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10591 if test "x$enable_dlopen" != xyes; then
10592 enable_dlopen=unknown
10593 enable_dlopen_self=unknown
10594 enable_dlopen_self_static=unknown
10601 lt_cv_dlopen="load_add_on"
10603 lt_cv_dlopen_self=yes
10607 lt_cv_dlopen="LoadLibrary"
10612 lt_cv_dlopen="dlopen"
10617 # if libdl is installed we need to link against it
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10619 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10621 $as_echo_n "(cached) " >&6
10623 ac_check_lib_save_LIBS=$LIBS
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10643 if ac_fn_c_try_link "$LINENO"; then :
10644 ac_cv_lib_dl_dlopen=yes
10646 ac_cv_lib_dl_dlopen=no
10648 rm -f core conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10653 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10654 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10658 lt_cv_dlopen="dyld"
10660 lt_cv_dlopen_self=yes
10667 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10668 if test "x$ac_cv_func_shl_load" = x""yes; then :
10669 lt_cv_dlopen="shl_load"
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10672 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10673 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10674 $as_echo_n "(cached) " >&6
10676 ac_check_lib_save_LIBS=$LIBS
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10691 return shl_load ();
10696 if ac_fn_c_try_link "$LINENO"; then :
10697 ac_cv_lib_dld_shl_load=yes
10699 ac_cv_lib_dld_shl_load=no
10701 rm -f core conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10706 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10707 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10708 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10710 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10711 if test "x$ac_cv_func_dlopen" = x""yes; then :
10712 lt_cv_dlopen="dlopen"
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10719 ac_check_lib_save_LIBS=$LIBS
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 ac_cv_lib_dl_dlopen=yes
10742 ac_cv_lib_dl_dlopen=no
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10750 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10754 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10755 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-lsvld $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_svld_dlopen=yes
10781 ac_cv_lib_svld_dlopen=no
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10788 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10789 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10793 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10794 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10797 ac_check_lib_save_LIBS=$LIBS
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10812 return dld_link ();
10817 if ac_fn_c_try_link "$LINENO"; then :
10818 ac_cv_lib_dld_dld_link=yes
10820 ac_cv_lib_dld_dld_link=no
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824 LIBS=$ac_check_lib_save_LIBS
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10827 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10828 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10829 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10850 if test "x$lt_cv_dlopen" != xno; then
10856 case $lt_cv_dlopen in
10858 save_CPPFLAGS="$CPPFLAGS"
10859 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10861 save_LDFLAGS="$LDFLAGS"
10862 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10865 LIBS="$lt_cv_dlopen_libs $LIBS"
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10868 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10869 if test "${lt_cv_dlopen_self+set}" = set; then :
10870 $as_echo_n "(cached) " >&6
10872 if test "$cross_compiling" = yes; then :
10873 lt_cv_dlopen_self=cross
10875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10876 lt_status=$lt_dlunknown
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10878 "configure"
10879 #include "confdefs.h"
10888 # define LT_DLGLOBAL RTLD_GLOBAL
10891 # define LT_DLGLOBAL DL_GLOBAL
10893 # define LT_DLGLOBAL 0
10897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10898 find out it does not work in some platform. */
10899 #ifndef LT_DLLAZY_OR_NOW
10901 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10904 # define LT_DLLAZY_OR_NOW DL_LAZY
10907 # define LT_DLLAZY_OR_NOW RTLD_NOW
10910 # define LT_DLLAZY_OR_NOW DL_NOW
10912 # define LT_DLLAZY_OR_NOW 0
10920 extern "C" void exit (int);
10923 void fnord() { int i=42;}
10926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10927 int status = $lt_dlunknown;
10931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10933 /* dlclose (self); */
10939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10940 (eval $ac_link) 2>&5
10942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10944 (./conftest; exit; ) >&5 2>/dev/null
10946 case x$lt_status in
10947 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10948 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10949 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10952 # compilation failed
10953 lt_cv_dlopen_self=no
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10961 $as_echo "$lt_cv_dlopen_self" >&6; }
10963 if test "x$lt_cv_dlopen_self" = xyes; then
10964 LDFLAGS="$LDFLAGS $link_static_flag"
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10966 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10967 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10970 if test "$cross_compiling" = yes; then :
10971 lt_cv_dlopen_self_static=cross
10973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10974 lt_status=$lt_dlunknown
10975 cat > conftest.$ac_ext <<EOF
10976 #line 10976 "configure"
10977 #include "confdefs.h"
10986 # define LT_DLGLOBAL RTLD_GLOBAL
10989 # define LT_DLGLOBAL DL_GLOBAL
10991 # define LT_DLGLOBAL 0
10995 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10996 find out it does not work in some platform. */
10997 #ifndef LT_DLLAZY_OR_NOW
10999 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11002 # define LT_DLLAZY_OR_NOW DL_LAZY
11005 # define LT_DLLAZY_OR_NOW RTLD_NOW
11008 # define LT_DLLAZY_OR_NOW DL_NOW
11010 # define LT_DLLAZY_OR_NOW 0
11018 extern "C" void exit (int);
11021 void fnord() { int i=42;}
11024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11025 int status = $lt_dlunknown;
11029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11030 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11031 /* dlclose (self); */
11037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11038 (eval $ac_link) 2>&5
11040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11042 (./conftest; exit; ) >&5 2>/dev/null
11044 case x$lt_status in
11045 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11046 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11047 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11050 # compilation failed
11051 lt_cv_dlopen_self_static=no
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11059 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11062 CPPFLAGS="$save_CPPFLAGS"
11063 LDFLAGS="$save_LDFLAGS"
11068 case $lt_cv_dlopen_self in
11069 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11070 *) enable_dlopen_self=unknown ;;
11073 case $lt_cv_dlopen_self_static in
11074 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11075 *) enable_dlopen_self_static=unknown ;;
11080 # Report which librarie types wil actually be built
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11082 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11084 $as_echo "$can_build_shared" >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11087 $as_echo_n "checking whether to build shared libraries... " >&6; }
11088 test "$can_build_shared" = "no" && enable_shared=no
11090 # On AIX, shared libraries and static libraries use the same namespace, and
11091 # are all built from PIC.
11094 test "$enable_shared" = yes && enable_static=no
11095 if test -n "$RANLIB"; then
11096 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11097 postinstall_cmds='$RANLIB $lib'
11102 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11103 test "$enable_shared" = yes && enable_static=no
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11108 $as_echo "$enable_shared" >&6; }
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11111 $as_echo_n "checking whether to build static libraries... " >&6; }
11112 # Make sure either enable_shared or enable_static is yes.
11113 test "$enable_shared" = yes || enable_static=yes
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11115 $as_echo "$enable_static" >&6; }
11117 # The else clause should only fire when bootstrapping the
11118 # libtool distribution, otherwise you forgot to ship ltmain.sh
11119 # with your package, and you will get complaints that there are
11120 # no rules to generate ltmain.sh.
11121 if test -f "$ltmain"; then
11122 # See if we are running on zsh, and set the options which allow our commands through
11123 # without removal of \ escapes.
11124 if test -n "${ZSH_VERSION+set}" ; then
11125 setopt NO_GLOB_SUBST
11127 # Now quote all the things that may contain metacharacters while being
11128 # careful not to overquote the AC_SUBSTed values. We take copies of the
11129 # variables and quote the copies for generation of the libtool script.
11130 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11132 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11133 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11134 deplibs_check_method reload_flag reload_cmds need_locks \
11135 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11136 lt_cv_sys_global_symbol_to_c_name_address \
11137 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11138 old_postinstall_cmds old_postuninstall_cmds \
11142 lt_prog_compiler_wl \
11143 lt_prog_compiler_pic \
11144 lt_prog_compiler_static \
11145 lt_prog_compiler_no_builtin_flag \
11146 export_dynamic_flag_spec \
11147 thread_safe_flag_spec \
11148 whole_archive_flag_spec \
11149 enable_shared_with_static_runtimes \
11151 old_archive_from_new_cmds \
11156 compiler_lib_search_path \
11158 archive_expsym_cmds \
11160 postuninstall_cmds \
11161 old_archive_from_expsyms_cmds \
11162 allow_undefined_flag \
11163 no_undefined_flag \
11164 export_symbols_cmds \
11165 hardcode_libdir_flag_spec \
11166 hardcode_libdir_flag_spec_ld \
11167 hardcode_libdir_separator \
11168 hardcode_automatic \
11170 module_expsym_cmds \
11171 lt_cv_prog_compiler_c_o \
11173 include_expsyms; do
11176 old_archive_cmds | \
11177 old_archive_from_new_cmds | \
11179 archive_expsym_cmds | \
11181 module_expsym_cmds | \
11182 old_archive_from_expsyms_cmds | \
11183 export_symbols_cmds | \
11184 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11185 postinstall_cmds | postuninstall_cmds | \
11186 old_postinstall_cmds | old_postuninstall_cmds | \
11187 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11188 # Double-quote double-evaled strings.
11189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11192 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11198 *'\$0 --fallback-echo"')
11199 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11203 cfgfile="${ofile}T"
11204 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11207 $as_echo "$as_me: creating $ofile" >&6;}
11209 cat <<__EOF__ >> "$cfgfile"
11212 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11213 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11214 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11216 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11217 # Free Software Foundation, Inc.
11219 # This file is part of GNU Libtool:
11220 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11222 # This program is free software; you can redistribute it and/or modify
11223 # it under the terms of the GNU General Public License as published by
11224 # the Free Software Foundation; either version 2 of the License, or
11225 # (at your option) any later version.
11227 # This program is distributed in the hope that it will be useful, but
11228 # WITHOUT ANY WARRANTY; without even the implied warranty of
11229 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11230 # General Public License for more details.
11232 # You should have received a copy of the GNU General Public License
11233 # along with this program; if not, write to the Free Software
11234 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11236 # As a special exception to the GNU General Public License, if you
11237 # distribute this file as part of a program that contains a
11238 # configuration script generated by Autoconf, you may include it under
11239 # the same distribution terms that you use for the rest of that program.
11241 # A sed program that does not truncate output.
11244 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11245 Xsed="$SED -e 1s/^X//"
11247 # The HP-UX ksh and POSIX shell print the target directory to stdout
11248 # if CDPATH is set.
11249 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11251 # The names of the tagged configurations supported by this script.
11254 # ### BEGIN LIBTOOL CONFIG
11256 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11258 # Shell to use when invoking shell scripts.
11261 # Whether or not to build shared libraries.
11262 build_libtool_libs=$enable_shared
11264 # Whether or not to build static libraries.
11265 build_old_libs=$enable_static
11267 # Whether or not to add -lc for building shared libraries.
11268 build_libtool_need_lc=$archive_cmds_need_lc
11270 # Whether or not to disallow shared libs when runtime libs are static
11271 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11273 # Whether or not to optimize for fast installation.
11274 fast_install=$enable_fast_install
11277 host_alias=$host_alias
11281 # The build system.
11282 build_alias=$build_alias
11286 # An echo program that does not interpret backslashes.
11291 AR_FLAGS=$lt_AR_FLAGS
11296 # A language-specific compiler.
11299 # Is the compiler the GNU C compiler?
11305 # The linker used to build libraries.
11308 # Whether we need hard or soft links.
11311 # A BSD-compatible nm program.
11314 # A symbol stripping program
11317 # Used to examine libraries when file_magic_cmd begins "file"
11318 MAGIC_CMD=$MAGIC_CMD
11320 # Used on cygwin: DLL creation program.
11323 # Used on cygwin: object dumper.
11326 # Used on cygwin: assembler.
11329 # The name of the directory that contains temporary libtool files.
11332 # How to create reloadable object files.
11333 reload_flag=$lt_reload_flag
11334 reload_cmds=$lt_reload_cmds
11336 # How to pass a linker flag through the compiler.
11337 wl=$lt_lt_prog_compiler_wl
11339 # Object file suffix (normally "o").
11340 objext="$ac_objext"
11342 # Old archive suffix (normally "a").
11345 # Shared library suffix (normally ".so").
11346 shrext_cmds='$shrext_cmds'
11348 # Executable file suffix (normally "").
11351 # Additional compiler flags for building library objects.
11352 pic_flag=$lt_lt_prog_compiler_pic
11355 # What is the maximum length of a command?
11356 max_cmd_len=$lt_cv_sys_max_cmd_len
11358 # Does compiler simultaneously support -c and -o options?
11359 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11361 # Must we lock files when doing compilation?
11362 need_locks=$lt_need_locks
11364 # Do we need the lib prefix for modules?
11365 need_lib_prefix=$need_lib_prefix
11367 # Do we need a version for libraries?
11368 need_version=$need_version
11370 # Whether dlopen is supported.
11371 dlopen_support=$enable_dlopen
11373 # Whether dlopen of programs is supported.
11374 dlopen_self=$enable_dlopen_self
11376 # Whether dlopen of statically linked programs is supported.
11377 dlopen_self_static=$enable_dlopen_self_static
11379 # Compiler flag to prevent dynamic linking.
11380 link_static_flag=$lt_lt_prog_compiler_static
11382 # Compiler flag to turn off builtin functions.
11383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11385 # Compiler flag to allow reflexive dlopens.
11386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11388 # Compiler flag to generate shared objects directly from archives.
11389 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11391 # Compiler flag to generate thread-safe objects.
11392 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11394 # Library versioning type.
11395 version_type=$version_type
11397 # Format of library name prefix.
11398 libname_spec=$lt_libname_spec
11400 # List of archive names. First name is the real one, the rest are links.
11401 # The last name is the one that the linker finds with -lNAME.
11402 library_names_spec=$lt_library_names_spec
11404 # The coded name of the library, if different from the real name.
11405 soname_spec=$lt_soname_spec
11407 # Commands used to build and install an old-style archive.
11409 old_archive_cmds=$lt_old_archive_cmds
11410 old_postinstall_cmds=$lt_old_postinstall_cmds
11411 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11413 # Create an old-style archive from a shared archive.
11414 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11416 # Create a temporary old-style archive to link instead of a shared archive.
11417 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11419 # Commands used to build and install a shared archive.
11420 archive_cmds=$lt_archive_cmds
11421 archive_expsym_cmds=$lt_archive_expsym_cmds
11422 postinstall_cmds=$lt_postinstall_cmds
11423 postuninstall_cmds=$lt_postuninstall_cmds
11425 # Commands used to build a loadable module (assumed same as above if empty)
11426 module_cmds=$lt_module_cmds
11427 module_expsym_cmds=$lt_module_expsym_cmds
11429 # Commands to strip libraries.
11430 old_striplib=$lt_old_striplib
11431 striplib=$lt_striplib
11433 # Dependencies to place before the objects being linked to create a
11435 predep_objects=$lt_predep_objects
11437 # Dependencies to place after the objects being linked to create a
11439 postdep_objects=$lt_postdep_objects
11441 # Dependencies to place before the objects being linked to create a
11443 predeps=$lt_predeps
11445 # Dependencies to place after the objects being linked to create a
11447 postdeps=$lt_postdeps
11449 # The library search path used internally by the compiler when linking
11450 # a shared library.
11451 compiler_lib_search_path=$lt_compiler_lib_search_path
11453 # Method to check whether dependent libraries are shared objects.
11454 deplibs_check_method=$lt_deplibs_check_method
11456 # Command to use when deplibs_check_method == file_magic.
11457 file_magic_cmd=$lt_file_magic_cmd
11459 # Flag that allows shared libraries with undefined symbols to be built.
11460 allow_undefined_flag=$lt_allow_undefined_flag
11462 # Flag that forces no undefined symbols.
11463 no_undefined_flag=$lt_no_undefined_flag
11465 # Commands used to finish a libtool library installation in a directory.
11466 finish_cmds=$lt_finish_cmds
11468 # Same as above, but a single script fragment to be evaled but not shown.
11469 finish_eval=$lt_finish_eval
11471 # Take the output of nm and produce a listing of raw symbols and C names.
11472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11474 # Transform the output of nm in a proper C declaration
11475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11477 # Transform the output of nm in a C name address pair
11478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11480 # This is the shared library runtime path variable.
11481 runpath_var=$runpath_var
11483 # This is the shared library path variable.
11484 shlibpath_var=$shlibpath_var
11486 # Is shlibpath searched before the hard-coded library search path?
11487 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11489 # How to hardcode a shared library path into an executable.
11490 hardcode_action=$hardcode_action
11492 # Whether we should hardcode library paths into libraries.
11493 hardcode_into_libs=$hardcode_into_libs
11495 # Flag to hardcode \$libdir into a binary during linking.
11496 # This must work even if \$libdir does not exist.
11497 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11499 # If ld is used when linking, flag to hardcode \$libdir into
11500 # a binary during linking. This must work even if \$libdir does
11502 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11504 # Whether we need a single -rpath flag with a separated argument.
11505 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11507 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11508 # resulting binary.
11509 hardcode_direct=$hardcode_direct
11511 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11512 # resulting binary.
11513 hardcode_minus_L=$hardcode_minus_L
11515 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11516 # the resulting binary.
11517 hardcode_shlibpath_var=$hardcode_shlibpath_var
11519 # Set to yes if building a shared library automatically hardcodes DIR into the library
11520 # and all subsequent libraries and executables linked against it.
11521 hardcode_automatic=$hardcode_automatic
11523 # Variables whose values should be saved in libtool wrapper scripts and
11524 # restored at relink time.
11525 variables_saved_for_relink="$variables_saved_for_relink"
11527 # Whether libtool must link a program against all its dependency libraries.
11528 link_all_deplibs=$link_all_deplibs
11530 # Compile-time system search path for libraries
11531 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11533 # Run-time system search path for libraries
11534 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11536 # Fix the shell variable \$srcfile for the compiler.
11537 fix_srcfile_path="$fix_srcfile_path"
11539 # Set to yes if exported symbols are required.
11540 always_export_symbols=$always_export_symbols
11542 # The commands to list exported symbols.
11543 export_symbols_cmds=$lt_export_symbols_cmds
11545 # The commands to extract the exported symbol list from a shared archive.
11546 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11548 # Symbols that should not be listed in the preloaded symbols.
11549 exclude_expsyms=$lt_exclude_expsyms
11551 # Symbols that must always be exported.
11552 include_expsyms=$lt_include_expsyms
11554 # ### END LIBTOOL CONFIG
11561 cat <<\EOF >> "$cfgfile"
11563 # AIX sometimes has problems with the GCC collect2 program. For some
11564 # reason, if we set the COLLECT_NAMES environment variable, the problems
11565 # vanish in a puff of smoke.
11566 if test "X${COLLECT_NAMES+set}" != Xset; then
11568 export COLLECT_NAMES
11574 # We use sed instead of cat because bash on DJGPP gets confused if
11575 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11576 # text mode, it properly converts lines to CR/LF. This bash problem
11577 # is reportedly fixed, but why not run on old versions too?
11578 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11580 mv -f "$cfgfile" "$ofile" || \
11581 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11585 # If there is no Makefile yet, we rely on a make rule to execute
11586 # `config.status --recheck' to rerun these tests and create the
11587 # libtool script then.
11588 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11589 if test -f "$ltmain_in"; then
11590 test -f Makefile && make "$ltmain"
11596 ac_cpp='$CPP $CPPFLAGS'
11597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11604 # Check whether --with-tags was given.
11605 if test "${with_tags+set}" = set; then :
11606 withval=$with_tags; tagnames="$withval"
11610 if test -f "$ltmain" && test -n "$tagnames"; then
11611 if test ! -f "${ofile}"; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11613 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11616 if test -z "$LTCC"; then
11617 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11618 if test -z "$LTCC"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11620 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11623 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11627 # Extract list of available tagged configurations in $ofile.
11628 # Note that this assumes the entire list is on one line.
11629 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11632 for tagname in $tagnames; do
11634 # Check whether tagname contains only valid characters
11635 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11637 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
11641 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11643 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
11646 # Update the list of available tags.
11647 if test -n "$tagname"; then
11648 echo appending configuration tag \"$tagname\" to $ofile
11652 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11653 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11654 (test "X$CXX" != "Xg++"))) ; then
11662 if test -n "$F77" && test "X$F77" != "Xno"; then
11670 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11680 # Source file extension for RC test sources.
11683 # Object file extension for compiled RC test sources.
11687 # Code to be used in simple compile tests
11688 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11690 # Code to be used in simple link tests
11691 lt_simple_link_test_code="$lt_simple_compile_test_code"
11693 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11695 # If no C compiler was specified, use CC.
11698 # Allow CC to be a program name with arguments.
11702 # save warnings/boilerplate of simple test code
11703 ac_outfile=conftest.$ac_objext
11704 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11705 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11706 _lt_compiler_boilerplate=`cat conftest.err`
11709 ac_outfile=conftest.$ac_objext
11710 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11711 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11712 _lt_linker_boilerplate=`cat conftest.err`
11716 # Allow CC to be a program name with arguments.
11721 for cc_temp in $compiler""; do
11723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11729 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11731 lt_cv_prog_compiler_c_o_RC=yes
11733 # The else clause should only fire when bootstrapping the
11734 # libtool distribution, otherwise you forgot to ship ltmain.sh
11735 # with your package, and you will get complaints that there are
11736 # no rules to generate ltmain.sh.
11737 if test -f "$ltmain"; then
11738 # See if we are running on zsh, and set the options which allow our commands through
11739 # without removal of \ escapes.
11740 if test -n "${ZSH_VERSION+set}" ; then
11741 setopt NO_GLOB_SUBST
11743 # Now quote all the things that may contain metacharacters while being
11744 # careful not to overquote the AC_SUBSTed values. We take copies of the
11745 # variables and quote the copies for generation of the libtool script.
11746 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11748 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11749 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11750 deplibs_check_method reload_flag reload_cmds need_locks \
11751 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11752 lt_cv_sys_global_symbol_to_c_name_address \
11753 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11754 old_postinstall_cmds old_postuninstall_cmds \
11758 lt_prog_compiler_wl_RC \
11759 lt_prog_compiler_pic_RC \
11760 lt_prog_compiler_static_RC \
11761 lt_prog_compiler_no_builtin_flag_RC \
11762 export_dynamic_flag_spec_RC \
11763 thread_safe_flag_spec_RC \
11764 whole_archive_flag_spec_RC \
11765 enable_shared_with_static_runtimes_RC \
11766 old_archive_cmds_RC \
11767 old_archive_from_new_cmds_RC \
11768 predep_objects_RC \
11769 postdep_objects_RC \
11772 compiler_lib_search_path_RC \
11774 archive_expsym_cmds_RC \
11775 postinstall_cmds_RC \
11776 postuninstall_cmds_RC \
11777 old_archive_from_expsyms_cmds_RC \
11778 allow_undefined_flag_RC \
11779 no_undefined_flag_RC \
11780 export_symbols_cmds_RC \
11781 hardcode_libdir_flag_spec_RC \
11782 hardcode_libdir_flag_spec_ld_RC \
11783 hardcode_libdir_separator_RC \
11784 hardcode_automatic_RC \
11786 module_expsym_cmds_RC \
11787 lt_cv_prog_compiler_c_o_RC \
11788 exclude_expsyms_RC \
11789 include_expsyms_RC; do
11792 old_archive_cmds_RC | \
11793 old_archive_from_new_cmds_RC | \
11794 archive_cmds_RC | \
11795 archive_expsym_cmds_RC | \
11797 module_expsym_cmds_RC | \
11798 old_archive_from_expsyms_cmds_RC | \
11799 export_symbols_cmds_RC | \
11800 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11801 postinstall_cmds | postuninstall_cmds | \
11802 old_postinstall_cmds | old_postuninstall_cmds | \
11803 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11804 # Double-quote double-evaled strings.
11805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11814 *'\$0 --fallback-echo"')
11815 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11821 cat <<__EOF__ >> "$cfgfile"
11822 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11826 # Shell to use when invoking shell scripts.
11829 # Whether or not to build shared libraries.
11830 build_libtool_libs=$enable_shared
11832 # Whether or not to build static libraries.
11833 build_old_libs=$enable_static
11835 # Whether or not to add -lc for building shared libraries.
11836 build_libtool_need_lc=$archive_cmds_need_lc_RC
11838 # Whether or not to disallow shared libs when runtime libs are static
11839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11841 # Whether or not to optimize for fast installation.
11842 fast_install=$enable_fast_install
11845 host_alias=$host_alias
11849 # The build system.
11850 build_alias=$build_alias
11854 # An echo program that does not interpret backslashes.
11859 AR_FLAGS=$lt_AR_FLAGS
11864 # A language-specific compiler.
11867 # Is the compiler the GNU C compiler?
11873 # The linker used to build libraries.
11876 # Whether we need hard or soft links.
11879 # A BSD-compatible nm program.
11882 # A symbol stripping program
11885 # Used to examine libraries when file_magic_cmd begins "file"
11886 MAGIC_CMD=$MAGIC_CMD
11888 # Used on cygwin: DLL creation program.
11891 # Used on cygwin: object dumper.
11894 # Used on cygwin: assembler.
11897 # The name of the directory that contains temporary libtool files.
11900 # How to create reloadable object files.
11901 reload_flag=$lt_reload_flag
11902 reload_cmds=$lt_reload_cmds
11904 # How to pass a linker flag through the compiler.
11905 wl=$lt_lt_prog_compiler_wl_RC
11907 # Object file suffix (normally "o").
11908 objext="$ac_objext"
11910 # Old archive suffix (normally "a").
11913 # Shared library suffix (normally ".so").
11914 shrext_cmds='$shrext_cmds'
11916 # Executable file suffix (normally "").
11919 # Additional compiler flags for building library objects.
11920 pic_flag=$lt_lt_prog_compiler_pic_RC
11923 # What is the maximum length of a command?
11924 max_cmd_len=$lt_cv_sys_max_cmd_len
11926 # Does compiler simultaneously support -c and -o options?
11927 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11929 # Must we lock files when doing compilation?
11930 need_locks=$lt_need_locks
11932 # Do we need the lib prefix for modules?
11933 need_lib_prefix=$need_lib_prefix
11935 # Do we need a version for libraries?
11936 need_version=$need_version
11938 # Whether dlopen is supported.
11939 dlopen_support=$enable_dlopen
11941 # Whether dlopen of programs is supported.
11942 dlopen_self=$enable_dlopen_self
11944 # Whether dlopen of statically linked programs is supported.
11945 dlopen_self_static=$enable_dlopen_self_static
11947 # Compiler flag to prevent dynamic linking.
11948 link_static_flag=$lt_lt_prog_compiler_static_RC
11950 # Compiler flag to turn off builtin functions.
11951 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11953 # Compiler flag to allow reflexive dlopens.
11954 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11956 # Compiler flag to generate shared objects directly from archives.
11957 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11959 # Compiler flag to generate thread-safe objects.
11960 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11962 # Library versioning type.
11963 version_type=$version_type
11965 # Format of library name prefix.
11966 libname_spec=$lt_libname_spec
11968 # List of archive names. First name is the real one, the rest are links.
11969 # The last name is the one that the linker finds with -lNAME.
11970 library_names_spec=$lt_library_names_spec
11972 # The coded name of the library, if different from the real name.
11973 soname_spec=$lt_soname_spec
11975 # Commands used to build and install an old-style archive.
11977 old_archive_cmds=$lt_old_archive_cmds_RC
11978 old_postinstall_cmds=$lt_old_postinstall_cmds
11979 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11981 # Create an old-style archive from a shared archive.
11982 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11984 # Create a temporary old-style archive to link instead of a shared archive.
11985 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11987 # Commands used to build and install a shared archive.
11988 archive_cmds=$lt_archive_cmds_RC
11989 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11990 postinstall_cmds=$lt_postinstall_cmds
11991 postuninstall_cmds=$lt_postuninstall_cmds
11993 # Commands used to build a loadable module (assumed same as above if empty)
11994 module_cmds=$lt_module_cmds_RC
11995 module_expsym_cmds=$lt_module_expsym_cmds_RC
11997 # Commands to strip libraries.
11998 old_striplib=$lt_old_striplib
11999 striplib=$lt_striplib
12001 # Dependencies to place before the objects being linked to create a
12003 predep_objects=$lt_predep_objects_RC
12005 # Dependencies to place after the objects being linked to create a
12007 postdep_objects=$lt_postdep_objects_RC
12009 # Dependencies to place before the objects being linked to create a
12011 predeps=$lt_predeps_RC
12013 # Dependencies to place after the objects being linked to create a
12015 postdeps=$lt_postdeps_RC
12017 # The library search path used internally by the compiler when linking
12018 # a shared library.
12019 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12021 # Method to check whether dependent libraries are shared objects.
12022 deplibs_check_method=$lt_deplibs_check_method
12024 # Command to use when deplibs_check_method == file_magic.
12025 file_magic_cmd=$lt_file_magic_cmd
12027 # Flag that allows shared libraries with undefined symbols to be built.
12028 allow_undefined_flag=$lt_allow_undefined_flag_RC
12030 # Flag that forces no undefined symbols.
12031 no_undefined_flag=$lt_no_undefined_flag_RC
12033 # Commands used to finish a libtool library installation in a directory.
12034 finish_cmds=$lt_finish_cmds
12036 # Same as above, but a single script fragment to be evaled but not shown.
12037 finish_eval=$lt_finish_eval
12039 # Take the output of nm and produce a listing of raw symbols and C names.
12040 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12042 # Transform the output of nm in a proper C declaration
12043 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12045 # Transform the output of nm in a C name address pair
12046 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12048 # This is the shared library runtime path variable.
12049 runpath_var=$runpath_var
12051 # This is the shared library path variable.
12052 shlibpath_var=$shlibpath_var
12054 # Is shlibpath searched before the hard-coded library search path?
12055 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12057 # How to hardcode a shared library path into an executable.
12058 hardcode_action=$hardcode_action_RC
12060 # Whether we should hardcode library paths into libraries.
12061 hardcode_into_libs=$hardcode_into_libs
12063 # Flag to hardcode \$libdir into a binary during linking.
12064 # This must work even if \$libdir does not exist.
12065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12067 # If ld is used when linking, flag to hardcode \$libdir into
12068 # a binary during linking. This must work even if \$libdir does
12070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12072 # Whether we need a single -rpath flag with a separated argument.
12073 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12075 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12076 # resulting binary.
12077 hardcode_direct=$hardcode_direct_RC
12079 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12080 # resulting binary.
12081 hardcode_minus_L=$hardcode_minus_L_RC
12083 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12084 # the resulting binary.
12085 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12087 # Set to yes if building a shared library automatically hardcodes DIR into the library
12088 # and all subsequent libraries and executables linked against it.
12089 hardcode_automatic=$hardcode_automatic_RC
12091 # Variables whose values should be saved in libtool wrapper scripts and
12092 # restored at relink time.
12093 variables_saved_for_relink="$variables_saved_for_relink"
12095 # Whether libtool must link a program against all its dependency libraries.
12096 link_all_deplibs=$link_all_deplibs_RC
12098 # Compile-time system search path for libraries
12099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12101 # Run-time system search path for libraries
12102 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12104 # Fix the shell variable \$srcfile for the compiler.
12105 fix_srcfile_path="$fix_srcfile_path_RC"
12107 # Set to yes if exported symbols are required.
12108 always_export_symbols=$always_export_symbols_RC
12110 # The commands to list exported symbols.
12111 export_symbols_cmds=$lt_export_symbols_cmds_RC
12113 # The commands to extract the exported symbol list from a shared archive.
12114 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12116 # Symbols that should not be listed in the preloaded symbols.
12117 exclude_expsyms=$lt_exclude_expsyms_RC
12119 # Symbols that must always be exported.
12120 include_expsyms=$lt_include_expsyms_RC
12122 # ### END LIBTOOL TAG CONFIG: $tagname
12128 # If there is no Makefile yet, we rely on a make rule to execute
12129 # `config.status --recheck' to rerun these tests and create the
12130 # libtool script then.
12131 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12132 if test -f "$ltmain_in"; then
12133 test -f Makefile && make "$ltmain"
12139 ac_cpp='$CPP $CPPFLAGS'
12140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
12153 # Append the new tag name to the list of available tags.
12154 if test -n "$tagname" ; then
12155 available_tags="$available_tags $tagname"
12161 # Now substitute the updated list of available tags.
12162 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12163 mv "${ofile}T" "$ofile"
12167 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
12173 # This can be used to rebuild libtool when needed
12174 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12176 # Always use our own libtool.
12177 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12179 # Prevent multiple expansion
12191 if test $ol_enable_perl != no ; then
12192 # Extract the first word of "perl", so it can be a program name with args.
12193 set dummy perl; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if test "${ac_cv_path_PERLBIN+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12201 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12211 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12223 PERLBIN=$ac_cv_path_PERLBIN
12224 if test -n "$PERLBIN"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
12226 $as_echo "$PERLBIN" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12234 if test "no$PERLBIN" = "no" ; then
12235 if test $ol_enable_perl = yes ; then
12236 as_fn_error "could not locate perl" "$LINENO" 5
12240 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12241 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12243 if test x"$ol_enable_perl" = "xyes" ; then
12244 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12246 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12253 ac_cpp='$CPP $CPPFLAGS'
12254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12258 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12259 # On Suns, sometimes $CPP names a directory.
12260 if test -n "$CPP" && test -d "$CPP"; then
12263 if test -z "$CPP"; then
12264 if test "${ac_cv_prog_CPP+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12267 # Double quotes because CPP needs to be expanded
12268 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12270 ac_preproc_ok=false
12271 for ac_c_preproc_warn_flag in '' yes
12273 # Use a header file that comes with gcc, so configuring glibc
12274 # with a fresh cross-compiler works.
12275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12276 # <limits.h> exists even on freestanding compilers.
12277 # On the NeXT, cc -E runs the code through the compiler's parser,
12278 # not just through cpp. "Syntax error" is here to catch this case.
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12282 # include <limits.h>
12284 # include <assert.h>
12288 if ac_fn_c_try_cpp "$LINENO"; then :
12291 # Broken: fails on valid input.
12294 rm -f conftest.err conftest.$ac_ext
12296 # OK, works on sane cases. Now check whether nonexistent headers
12297 # can be detected and how.
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 #include <ac_nonexistent.h>
12302 if ac_fn_c_try_cpp "$LINENO"; then :
12303 # Broken: success on invalid input.
12306 # Passes both tests.
12310 rm -f conftest.err conftest.$ac_ext
12313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12314 rm -f conftest.err conftest.$ac_ext
12315 if $ac_preproc_ok; then :
12320 ac_cv_prog_CPP=$CPP
12323 CPP=$ac_cv_prog_CPP
12325 ac_cv_prog_CPP=$CPP
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12328 $as_echo "$CPP" >&6; }
12329 ac_preproc_ok=false
12330 for ac_c_preproc_warn_flag in '' yes
12332 # Use a header file that comes with gcc, so configuring glibc
12333 # with a fresh cross-compiler works.
12334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12335 # <limits.h> exists even on freestanding compilers.
12336 # On the NeXT, cc -E runs the code through the compiler's parser,
12337 # not just through cpp. "Syntax error" is here to catch this case.
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12341 # include <limits.h>
12343 # include <assert.h>
12347 if ac_fn_c_try_cpp "$LINENO"; then :
12350 # Broken: fails on valid input.
12353 rm -f conftest.err conftest.$ac_ext
12355 # OK, works on sane cases. Now check whether nonexistent headers
12356 # can be detected and how.
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359 #include <ac_nonexistent.h>
12361 if ac_fn_c_try_cpp "$LINENO"; then :
12362 # Broken: success on invalid input.
12365 # Passes both tests.
12369 rm -f conftest.err conftest.$ac_ext
12372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12373 rm -f conftest.err conftest.$ac_ext
12374 if $ac_preproc_ok; then :
12377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12379 as_fn_error "C preprocessor \"$CPP\" fails sanity check
12380 See \`config.log' for more details." "$LINENO" 5; }
12384 ac_cpp='$CPP $CPPFLAGS'
12385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
12390 $as_echo_n "checking whether we are using MS Visual C++... " >&6; }
12391 if test "${ol_cv_msvc+set}" = set; then :
12392 $as_echo_n "(cached) " >&6
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12398 #include <__FOO__/generate_error.h>
12402 if ac_fn_c_try_cpp "$LINENO"; then :
12407 rm -f conftest.err conftest.$ac_ext
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
12410 $as_echo "$ol_cv_msvc" >&6; }
12413 *mingw32* ) ac_cv_mingw32=yes ;;
12414 *cygwin* ) ac_cv_cygwin=yes ;;
12415 *interix* ) ac_cv_interix=yes ;;
12421 cat >>confdefs.h <<_ACEOF
12422 #define EXEEXT "${EXEEXT}"
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
12427 $as_echo_n "checking for be_app in -lbe... " >&6; }
12428 if test "${ac_cv_lib_be_be_app+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-lbe -lroot -lnet $LIBS"
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12451 if ac_fn_c_try_link "$LINENO"; then :
12452 ac_cv_lib_be_be_app=yes
12454 ac_cv_lib_be_be_app=no
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
12461 $as_echo "$ac_cv_lib_be_be_app" >&6; }
12462 if test "x$ac_cv_lib_be_be_app" = x""yes; then :
12463 LIBS="$LIBS -lbe -lroot -lnet"
12470 ac_cpp='$CPP $CPPFLAGS'
12471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12474 if test -n "$ac_tool_prefix"; then
12475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478 $as_echo_n "checking for $ac_word... " >&6; }
12479 if test "${ac_cv_prog_CC+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
12482 if test -n "$CC"; then
12483 ac_cv_prog_CC="$CC" # Let the user override the test.
12485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486 for as_dir in $PATH
12489 test -z "$as_dir" && as_dir=.
12490 for ac_exec_ext in '' $ac_executable_extensions; do
12491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12503 if test -n "$CC"; then
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12505 $as_echo "$CC" >&6; }
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508 $as_echo "no" >&6; }
12513 if test -z "$ac_cv_prog_CC"; then
12515 # Extract the first word of "gcc", so it can be a program name with args.
12516 set dummy gcc; ac_word=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518 $as_echo_n "checking for $ac_word... " >&6; }
12519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12520 $as_echo_n "(cached) " >&6
12522 if test -n "$ac_ct_CC"; then
12523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12532 ac_cv_prog_ac_ct_CC="gcc"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12543 if test -n "$ac_ct_CC"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12545 $as_echo "$ac_ct_CC" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12551 if test "x$ac_ct_CC" = x; then
12554 case $cross_compiling:$ac_tool_warned in
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12558 ac_tool_warned=yes ;;
12563 CC="$ac_cv_prog_CC"
12566 if test -z "$CC"; then
12567 if test -n "$ac_tool_prefix"; then
12568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12569 set dummy ${ac_tool_prefix}cc; ac_word=$2
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12571 $as_echo_n "checking for $ac_word... " >&6; }
12572 if test "${ac_cv_prog_CC+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12575 if test -n "$CC"; then
12576 ac_cv_prog_CC="$CC" # Let the user override the test.
12578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579 for as_dir in $PATH
12582 test -z "$as_dir" && as_dir=.
12583 for ac_exec_ext in '' $ac_executable_extensions; do
12584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12585 ac_cv_prog_CC="${ac_tool_prefix}cc"
12586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 if test -n "$CC"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12598 $as_echo "$CC" >&6; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12607 if test -z "$CC"; then
12608 # Extract the first word of "cc", so it can be a program name with args.
12609 set dummy cc; ac_word=$2
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12611 $as_echo_n "checking for $ac_word... " >&6; }
12612 if test "${ac_cv_prog_CC+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
12615 if test -n "$CC"; then
12616 ac_cv_prog_CC="$CC" # Let the user override the test.
12618 ac_prog_rejected=no
12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620 for as_dir in $PATH
12623 test -z "$as_dir" && as_dir=.
12624 for ac_exec_ext in '' $ac_executable_extensions; do
12625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12627 ac_prog_rejected=yes
12631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 if test $ac_prog_rejected = yes; then
12639 # We found a bogon in the path, so make sure we never use it.
12640 set dummy $ac_cv_prog_CC
12642 if test $# != 0; then
12643 # We chose a different compiler from the bogus one.
12644 # However, it has the same basename, so the bogon will be chosen
12645 # first if we set CC to just the basename; use the full file name.
12647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12653 if test -n "$CC"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12655 $as_echo "$CC" >&6; }
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12663 if test -z "$CC"; then
12664 if test -n "$ac_tool_prefix"; then
12665 for ac_prog in cl.exe
12667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if test "${ac_cv_prog_CC+set}" = set; then :
12672 $as_echo_n "(cached) " >&6
12674 if test -n "$CC"; then
12675 ac_cv_prog_CC="$CC" # Let the user override the test.
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $PATH
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 if test -n "$CC"; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12697 $as_echo "$CC" >&6; }
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12704 test -n "$CC" && break
12707 if test -z "$CC"; then
12709 for ac_prog in cl.exe
12711 # Extract the first word of "$ac_prog", so it can be a program name with args.
12712 set dummy $ac_prog; ac_word=$2
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714 $as_echo_n "checking for $ac_word... " >&6; }
12715 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12718 if test -n "$ac_ct_CC"; then
12719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722 for as_dir in $PATH
12725 test -z "$as_dir" && as_dir=.
12726 for ac_exec_ext in '' $ac_executable_extensions; do
12727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12728 ac_cv_prog_ac_ct_CC="$ac_prog"
12729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12739 if test -n "$ac_ct_CC"; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12741 $as_echo "$ac_ct_CC" >&6; }
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744 $as_echo "no" >&6; }
12748 test -n "$ac_ct_CC" && break
12751 if test "x$ac_ct_CC" = x; then
12754 case $cross_compiling:$ac_tool_warned in
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12758 ac_tool_warned=yes ;;
12767 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12769 as_fn_error "no acceptable C compiler found in \$PATH
12770 See \`config.log' for more details." "$LINENO" 5; }
12772 # Provide some information about the compiler.
12773 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12776 for ac_option in --version -v -V -qversion; do
12777 { { ac_try="$ac_compiler $ac_option >&5"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12783 $as_echo "$ac_try_echo"; } >&5
12784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12786 if test -s conftest.err; then
12788 ... rest of stderr output deleted ...
12789 10q' conftest.err >conftest.er1
12790 cat conftest.er1 >&5
12792 rm -f conftest.er1 conftest.err
12793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794 test $ac_status = 0; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12798 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12799 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12816 if ac_fn_c_try_compile "$LINENO"; then :
12817 ac_compiler_gnu=yes
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12826 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12827 if test $ac_compiler_gnu = yes; then
12832 ac_test_CFLAGS=${CFLAGS+set}
12833 ac_save_CFLAGS=$CFLAGS
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12835 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12836 if test "${ac_cv_prog_cc_g+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12839 ac_save_c_werror_flag=$ac_c_werror_flag
12840 ac_c_werror_flag=yes
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12854 if ac_fn_c_try_compile "$LINENO"; then :
12855 ac_cv_prog_cc_g=yes
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12869 if ac_fn_c_try_compile "$LINENO"; then :
12872 ac_c_werror_flag=$ac_save_c_werror_flag
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12885 if ac_fn_c_try_compile "$LINENO"; then :
12886 ac_cv_prog_cc_g=yes
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 ac_c_werror_flag=$ac_save_c_werror_flag
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12896 $as_echo "$ac_cv_prog_cc_g" >&6; }
12897 if test "$ac_test_CFLAGS" = set; then
12898 CFLAGS=$ac_save_CFLAGS
12899 elif test $ac_cv_prog_cc_g = yes; then
12900 if test "$GCC" = yes; then
12906 if test "$GCC" = yes; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12913 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12914 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12915 $as_echo_n "(cached) " >&6
12917 ac_cv_prog_cc_c89=no
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 #include <stdarg.h>
12923 #include <sys/types.h>
12924 #include <sys/stat.h>
12925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12926 struct buf { int x; };
12927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12928 static char *e (p, i)
12934 static char *f (char * (*g) (char **, int), char **p, ...)
12939 s = g (p, va_arg (v,int));
12944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12945 function prototypes and stuff, but not '\xHH' hex character constants.
12946 These don't provoke an error unfortunately, instead are silently treated
12947 as 'x'. The following induces an error, until -std is added to get
12948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12949 array size at least. It's necessary to write '\x00'==0 to get something
12950 that's true only with -std. */
12951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12954 inside strings and character constants. */
12956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12958 int test (int i, double x);
12959 struct s1 {int (*f) (int a);};
12960 struct s2 {int (*f) (double a);};
12961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12975 CC="$ac_save_CC $ac_arg"
12976 if ac_fn_c_try_compile "$LINENO"; then :
12977 ac_cv_prog_cc_c89=$ac_arg
12979 rm -f core conftest.err conftest.$ac_objext
12980 test "x$ac_cv_prog_cc_c89" != "xno" && break
12982 rm -f conftest.$ac_ext
12987 case "x$ac_cv_prog_cc_c89" in
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12990 $as_echo "none needed" >&6; } ;;
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12993 $as_echo "unsupported" >&6; } ;;
12995 CC="$CC $ac_cv_prog_cc_c89"
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12999 if test "x$ac_cv_prog_cc_c89" != xno; then :
13004 ac_cpp='$CPP $CPPFLAGS'
13005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13009 depcc="$CC" am_compiler_list=
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13012 $as_echo_n "checking dependency style of $depcc... " >&6; }
13013 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13014 $as_echo_n "(cached) " >&6
13016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13017 # We make a subdir and do the tests there. Otherwise we can end up
13018 # making bogus files that we don't know about and never remove. For
13019 # instance it was reported that on HP-UX the gcc test will end up
13020 # making a dummy file named `D' -- because `-MD' means `put the output
13023 # Copy depcomp to subdir because otherwise we won't find it if we're
13024 # using a relative directory.
13025 cp "$am_depcomp" conftest.dir
13027 # We will build objects and dependencies in a subdirectory because
13028 # it helps to detect inapplicable dependency modes. For instance
13029 # both Tru64's cc and ICC support -MD to output dependencies as a
13030 # side effect of compilation, but ICC will put the dependencies in
13031 # the current directory while Tru64 will put them in the object
13035 am_cv_CC_dependencies_compiler_type=none
13036 if test "$am_compiler_list" = ""; then
13037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13039 for depmode in $am_compiler_list; do
13040 # Setup a source with many dependencies, because some compilers
13041 # like to wrap large dependency lists on column 80 (with \), and
13042 # we should not choose a depcomp mode which is confused by this.
13044 # We need to recreate these files for each test, as the compiler may
13045 # overwrite some of them when testing with obscure command lines.
13046 # This happens at least with the AIX C compiler.
13048 for i in 1 2 3 4 5 6; do
13049 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13050 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13051 # Solaris 8's {/usr,}/bin/sh.
13052 touch sub/conftst$i.h
13054 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13058 # after this tag, mechanisms are not by side-effect, so they'll
13059 # only be used when explicitly requested
13060 if test "x$enable_dependency_tracking" = xyes; then
13068 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13069 # mode. It turns out that the SunPro C++ compiler does not properly
13070 # handle `-M -o', and we need to detect this.
13071 if depmode=$depmode \
13072 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13073 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13074 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13075 >/dev/null 2>conftest.err &&
13076 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13077 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13078 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13079 # icc doesn't choke on unknown options, it will just issue warnings
13080 # or remarks (even with -Werror). So we grep stderr for any message
13081 # that says an option was ignored or not supported.
13082 # When given -MP, icc 7.0 and 7.1 complain thusly:
13083 # icc: Command line warning: ignoring option '-M'; no argument required
13084 # The diagnosis changed in icc 8.0:
13085 # icc: Command line remark: option '-MP' not supported
13086 if (grep 'ignoring option' conftest.err ||
13087 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13088 am_cv_CC_dependencies_compiler_type=$depmode
13095 rm -rf conftest.dir
13097 am_cv_CC_dependencies_compiler_type=none
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13102 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13103 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13108 test "x$enable_dependency_tracking" != xno \
13109 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13110 am__fastdepCC_TRUE=
13111 am__fastdepCC_FALSE='#'
13113 am__fastdepCC_TRUE='#'
13114 am__fastdepCC_FALSE=
13118 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13119 as_fn_error "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
13122 # test for make depend flag
13125 if test -z "${MKDEP}"; then
13126 OL_MKDEP="${CC-cc}"
13127 if test -z "${MKDEP_FLAGS}"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
13129 $as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
13130 if test "${ol_cv_mkdep+set}" = set; then :
13131 $as_echo_n "(cached) " >&6
13135 for flag in "-M" "-xM"; do
13136 cat > conftest.c <<EOF
13139 if { ac_try='$OL_MKDEP $flag conftest.c'
13140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13141 (eval $ac_try) 2>&5
13143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144 test $ac_status = 0; }; } \
13145 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13147 if test ! -f conftest."${ac_object}" ; then
13149 OL_MKDEP_FLAGS="$flag"
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
13158 $as_echo "$ol_cv_mkdep" >&6; }
13159 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13162 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13166 OL_MKDEP="${MKDEP}"
13167 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13172 if test "${ol_cv_mkdep}" = no ; then
13173 # this will soon become an error
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
13175 $as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
13179 $as_echo_n "checking for afopen in -ls... " >&6; }
13180 if test "${ac_cv_lib_s_afopen+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
13183 ac_check_lib_save_LIBS=$LIBS
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13188 /* Override any GCC internal prototype to avoid an error.
13189 Use char because int might match the return type of a GCC
13190 builtin and then its argument prototype would still apply. */
13203 if ac_fn_c_try_link "$LINENO"; then :
13204 ac_cv_lib_s_afopen=yes
13206 ac_cv_lib_s_afopen=no
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13210 LIBS=$ac_check_lib_save_LIBS
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
13213 $as_echo "$ac_cv_lib_s_afopen" >&6; }
13214 if test "x$ac_cv_lib_s_afopen" = x""yes; then :
13218 $as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
13226 ac_cv_func_getopt=no
13228 $as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
13234 WITH_MODULES_ENABLED=no
13235 if test $ol_enable_modules != no ; then
13236 for ac_header in ltdl.h
13238 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13239 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
13240 cat >>confdefs.h <<_ACEOF
13241 #define HAVE_LTDL_H 1
13249 if test $ac_cv_header_ltdl_h = no ; then
13250 as_fn_error "could not locate libtool ltdl.h" "$LINENO" 5
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
13254 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
13255 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13258 ac_check_lib_save_LIBS=$LIBS
13259 LIBS="-lltdl $LIBS"
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 /* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13273 return lt_dlinit ();
13278 if ac_fn_c_try_link "$LINENO"; then :
13279 ac_cv_lib_ltdl_lt_dlinit=yes
13281 ac_cv_lib_ltdl_lt_dlinit=no
13283 rm -f core conftest.err conftest.$ac_objext \
13284 conftest$ac_exeext conftest.$ac_ext
13285 LIBS=$ac_check_lib_save_LIBS
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13288 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13289 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
13291 MODULES_LIBS=-lltdl
13293 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
13299 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13300 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
13302 ol_link_modules=yes
13303 WITH_MODULES_ENABLED=yes
13306 for i in $Backends; do
13307 eval "ol_tmp=\$ol_enable_$i"
13308 if test $ol_tmp = mod ; then
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i backend" >&5
13310 $as_echo "$as_me: WARNING: building static $i backend" >&2;}
13311 eval "ol_enable_$i=yes"
13314 for i in $Overlays; do
13315 eval "ol_tmp=\$ol_enable_$i"
13316 if test $ol_tmp = mod ; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i overlay" >&5
13318 $as_echo "$as_me: WARNING: building static $i overlay" >&2;}
13319 eval "ol_enable_$i=yes"
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
13326 $as_echo_n "checking for EBCDIC... " >&6; }
13327 if test "${ol_cv_cpp_ebcdic+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13335 #include <__ASCII__/generate_error.h>
13339 if ac_fn_c_try_cpp "$LINENO"; then :
13340 ol_cv_cpp_ebcdic=yes
13342 ol_cv_cpp_ebcdic=no
13344 rm -f conftest.err conftest.$ac_ext
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
13347 $as_echo "$ol_cv_cpp_ebcdic" >&6; }
13348 if test $ol_cv_cpp_ebcdic = yes ; then
13350 $as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13355 $as_echo_n "checking for ANSI C header files... " >&6; }
13356 if test "${ol_cv_header_stdc+set}" = set; then :
13357 $as_echo_n "(cached) " >&6
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13361 #include <stdlib.h>
13362 #include <stdarg.h>
13363 #include <string.h>
13366 if ac_fn_c_try_cpp "$LINENO"; then :
13367 ol_cv_header_stdc=yes
13369 ol_cv_header_stdc=no
13371 rm -f conftest.err conftest.$ac_ext
13373 if test $ol_cv_header_stdc = yes; then
13374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13377 #include <string.h>
13380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13381 $EGREP "memchr" >/dev/null 2>&1; then :
13384 ol_cv_header_stdc=no
13390 if test $ol_cv_header_stdc = yes; then
13391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 #include <stdlib.h>
13397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13398 $EGREP "free" >/dev/null 2>&1; then :
13401 ol_cv_header_stdc=no
13407 if test $ol_cv_header_stdc = yes; then
13408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13409 if test "$cross_compiling" = yes; then :
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13415 #ifndef HAVE_EBCDIC
13416 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13417 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13419 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13420 || ('j' <= (c) && (c) <= 'r') \
13421 || ('s' <= (c) && (c) <= 'z'))
13422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13425 int main () { int i; for (i = 0; i < 256; i++)
13426 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13430 if ac_fn_c_try_run "$LINENO"; then :
13433 ol_cv_header_stdc=no
13435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13436 conftest.$ac_objext conftest.beam conftest.$ac_ext
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
13442 $as_echo "$ol_cv_header_stdc" >&6; }
13443 if test $ol_cv_header_stdc = yes; then
13444 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13447 ac_cv_header_stdc=disable
13450 if test $ol_cv_header_stdc != yes; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
13452 $as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13455 ac_header_dirent=no
13456 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13457 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13459 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13461 $as_echo_n "(cached) " >&6
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #include <sys/types.h>
13477 if ac_fn_c_try_compile "$LINENO"; then :
13478 eval "$as_ac_Header=yes"
13480 eval "$as_ac_Header=no"
13482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13484 eval ac_res=\$$as_ac_Header
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13486 $as_echo "$ac_res" >&6; }
13487 eval as_val=\$$as_ac_Header
13488 if test "x$as_val" = x""yes; then :
13489 cat >>confdefs.h <<_ACEOF
13490 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13493 ac_header_dirent=$ac_hdr; break
13497 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13498 if test $ac_header_dirent = dirent.h; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13500 $as_echo_n "checking for library containing opendir... " >&6; }
13501 if test "${ac_cv_search_opendir+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
13504 ac_func_search_save_LIBS=$LIBS
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13508 /* Override any GCC internal prototype to avoid an error.
13509 Use char because int might match the return type of a GCC
13510 builtin and then its argument prototype would still apply. */
13523 for ac_lib in '' dir; do
13524 if test -z "$ac_lib"; then
13525 ac_res="none required"
13528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13530 if ac_fn_c_try_link "$LINENO"; then :
13531 ac_cv_search_opendir=$ac_res
13533 rm -f core conftest.err conftest.$ac_objext \
13535 if test "${ac_cv_search_opendir+set}" = set; then :
13539 if test "${ac_cv_search_opendir+set}" = set; then :
13542 ac_cv_search_opendir=no
13544 rm conftest.$ac_ext
13545 LIBS=$ac_func_search_save_LIBS
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13548 $as_echo "$ac_cv_search_opendir" >&6; }
13549 ac_res=$ac_cv_search_opendir
13550 if test "$ac_res" != no; then :
13551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13557 $as_echo_n "checking for library containing opendir... " >&6; }
13558 if test "${ac_cv_search_opendir+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13561 ac_func_search_save_LIBS=$LIBS
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13565 /* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13580 for ac_lib in '' x; do
13581 if test -z "$ac_lib"; then
13582 ac_res="none required"
13585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13587 if ac_fn_c_try_link "$LINENO"; then :
13588 ac_cv_search_opendir=$ac_res
13590 rm -f core conftest.err conftest.$ac_objext \
13592 if test "${ac_cv_search_opendir+set}" = set; then :
13596 if test "${ac_cv_search_opendir+set}" = set; then :
13599 ac_cv_search_opendir=no
13601 rm conftest.$ac_ext
13602 LIBS=$ac_func_search_save_LIBS
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13605 $as_echo "$ac_cv_search_opendir" >&6; }
13606 ac_res=$ac_cv_search_opendir
13607 if test "$ac_res" != no; then :
13608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13615 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13616 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621 #include <sys/types.h>
13622 #include <sys/wait.h>
13623 #ifndef WEXITSTATUS
13624 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13627 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13635 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13640 if ac_fn_c_try_compile "$LINENO"; then :
13641 ac_cv_header_sys_wait_h=yes
13643 ac_cv_header_sys_wait_h=no
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13648 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13649 if test $ac_cv_header_sys_wait_h = yes; then
13651 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13656 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13657 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <sys/types.h>
13663 #include <termios.h>
13669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13670 $EGREP "yes" >/dev/null 2>&1; then :
13671 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13673 ac_cv_sys_tiocgwinsz_in_termios_h=no
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13679 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13681 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13683 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13684 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
13685 $as_echo_n "(cached) " >&6
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 #include <sys/types.h>
13690 #include <sys/ioctl.h>
13696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13697 $EGREP "yes" >/dev/null 2>&1; then :
13698 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13700 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13706 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13708 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13710 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13767 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13768 eval as_val=\$$as_ac_Header
13769 if test "x$as_val" = x""yes; then :
13770 cat >>confdefs.h <<_ACEOF
13771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13779 if test "$ac_cv_mingw32" = yes \
13780 -o "$ac_cv_interix" = yes \
13781 -o "$ol_cv_msvc" = yes
13783 for ac_header in winsock.h winsock2.h
13785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13786 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13787 eval as_val=\$$as_ac_Header
13788 if test "x$as_val" = x""yes; then :
13789 cat >>confdefs.h <<_ACEOF
13790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13799 for ac_header in resolv.h
13801 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
13802 #include <netinet/in.h>
13805 if test "x$ac_cv_header_resolv_h" = x""yes; then :
13806 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_RESOLV_H 1
13815 for ac_header in netinet/tcp.h
13817 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13818 #include <netinet/in.h>
13821 if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_NETINET_TCP_H 1
13831 for ac_header in sys/ucred.h
13833 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13834 #ifdef HAVE_SYS_PARAM_H
13835 #include <sys/param.h>
13839 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_SYS_UCRED_H 1
13850 for ac_func in sigaction sigset
13852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13854 eval as_val=\$$as_ac_var
13855 if test "x$as_val" = x""yes; then :
13856 cat >>confdefs.h <<_ACEOF
13857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13864 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
13866 $as_echo_n "checking for sigset in -lV3... " >&6; }
13867 if test "${ac_cv_lib_V3_sigset+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13870 ac_check_lib_save_LIBS=$LIBS
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13875 /* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
13890 if ac_fn_c_try_link "$LINENO"; then :
13891 ac_cv_lib_V3_sigset=yes
13893 ac_cv_lib_V3_sigset=no
13895 rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897 LIBS=$ac_check_lib_save_LIBS
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
13900 $as_echo "$ac_cv_lib_V3_sigset" >&6; }
13901 if test "x$ac_cv_lib_V3_sigset" = x""yes; then :
13902 cat >>confdefs.h <<_ACEOF
13903 #define HAVE_LIBV3 1
13912 if test $ol_cv_msvc = yes ; then
13916 if test "$ac_cv_header_winsock_h" = yes; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
13918 $as_echo_n "checking for winsock... " >&6; }
13919 if test "${ol_cv_winsock+set}" = set; then :
13920 $as_echo_n "(cached) " >&6
13924 for curlib in none ws2_32 wsock32; do
13925 if test $curlib != none ; then
13926 LIBS="$save_LIBS -l$curlib"
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 #include <winsock.h>
13937 select(0,NULL,NULL,NULL,NULL);
13939 gethostname(NULL,0);
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 ol_cv_winsock=$curlib
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13953 test "$ol_cv_winsock" != no && break
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
13959 $as_echo "$ol_cv_winsock" >&6; }
13961 if test $ol_cv_winsock != no ; then
13963 $as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
13965 ac_cv_func_socket=yes
13966 ac_cv_func_select=yes
13967 ac_cv_func_closesocket=yes
13968 ac_cv_func_gethostname=yes
13970 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
13971 LIBS="$LIBS -l$ol_cv_winsock"
13974 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
13976 $as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
13983 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13984 if test "x$ac_cv_func_socket" = x""yes; then :
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13989 $as_echo_n "checking for main in -lsocket... " >&6; }
13990 if test "${ac_cv_lib_socket_main+set}" = set; then :
13991 $as_echo_n "(cached) " >&6
13993 ac_check_lib_save_LIBS=$LIBS
13994 LIBS="-lsocket $LIBS"
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
14007 if ac_fn_c_try_link "$LINENO"; then :
14008 ac_cv_lib_socket_main=yes
14010 ac_cv_lib_socket_main=no
14012 rm -f core conftest.err conftest.$ac_objext \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14017 $as_echo "$ac_cv_lib_socket_main" >&6; }
14018 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14019 cat >>confdefs.h <<_ACEOF
14020 #define HAVE_LIBSOCKET 1
14023 LIBS="-lsocket $LIBS"
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
14028 $as_echo_n "checking for socket in -lnet... " >&6; }
14029 if test "${ac_cv_lib_net_socket+set}" = set; then :
14030 $as_echo_n "(cached) " >&6
14032 ac_check_lib_save_LIBS=$LIBS
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14052 if ac_fn_c_try_link "$LINENO"; then :
14053 ac_cv_lib_net_socket=yes
14055 ac_cv_lib_net_socket=no
14057 rm -f core conftest.err conftest.$ac_objext \
14058 conftest$ac_exeext conftest.$ac_ext
14059 LIBS=$ac_check_lib_save_LIBS
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
14062 $as_echo "$ac_cv_lib_net_socket" >&6; }
14063 if test "x$ac_cv_lib_net_socket" = x""yes; then :
14064 cat >>confdefs.h <<_ACEOF
14065 #define HAVE_LIBNET 1
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
14073 $as_echo_n "checking for main in -lnsl_s... " >&6; }
14074 if test "${ac_cv_lib_nsl_s_main+set}" = set; then :
14075 $as_echo_n "(cached) " >&6
14077 ac_check_lib_save_LIBS=$LIBS
14078 LIBS="-lnsl_s $LIBS"
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14091 if ac_fn_c_try_link "$LINENO"; then :
14092 ac_cv_lib_nsl_s_main=yes
14094 ac_cv_lib_nsl_s_main=no
14096 rm -f core conftest.err conftest.$ac_objext \
14097 conftest$ac_exeext conftest.$ac_ext
14098 LIBS=$ac_check_lib_save_LIBS
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
14101 $as_echo "$ac_cv_lib_nsl_s_main" >&6; }
14102 if test "x$ac_cv_lib_nsl_s_main" = x""yes; then :
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_LIBNSL_S 1
14107 LIBS="-lnsl_s $LIBS"
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14112 $as_echo_n "checking for main in -lnsl... " >&6; }
14113 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14116 ac_check_lib_save_LIBS=$LIBS
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 ac_cv_lib_nsl_main=yes
14133 ac_cv_lib_nsl_main=no
14135 rm -f core conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14137 LIBS=$ac_check_lib_save_LIBS
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14140 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14141 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14142 cat >>confdefs.h <<_ACEOF
14143 #define HAVE_LIBNSL 1
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
14151 $as_echo_n "checking for socket in -linet... " >&6; }
14152 if test "${ac_cv_lib_inet_socket+set}" = set; then :
14153 $as_echo_n "(cached) " >&6
14155 ac_check_lib_save_LIBS=$LIBS
14156 LIBS="-linet $LIBS"
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14160 /* Override any GCC internal prototype to avoid an error.
14161 Use char because int might match the return type of a GCC
14162 builtin and then its argument prototype would still apply. */
14175 if ac_fn_c_try_link "$LINENO"; then :
14176 ac_cv_lib_inet_socket=yes
14178 ac_cv_lib_inet_socket=no
14180 rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182 LIBS=$ac_check_lib_save_LIBS
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
14185 $as_echo "$ac_cv_lib_inet_socket" >&6; }
14186 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
14187 cat >>confdefs.h <<_ACEOF
14188 #define HAVE_LIBINET 1
14191 LIBS="-linet $LIBS"
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
14196 $as_echo_n "checking for main in -lgen... " >&6; }
14197 if test "${ac_cv_lib_gen_main+set}" = set; then :
14198 $as_echo_n "(cached) " >&6
14200 ac_check_lib_save_LIBS=$LIBS
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14214 if ac_fn_c_try_link "$LINENO"; then :
14215 ac_cv_lib_gen_main=yes
14217 ac_cv_lib_gen_main=no
14219 rm -f core conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14221 LIBS=$ac_check_lib_save_LIBS
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
14224 $as_echo "$ac_cv_lib_gen_main" >&6; }
14225 if test "x$ac_cv_lib_gen_main" = x""yes; then :
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_LIBGEN 1
14238 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14239 if test "x$ac_cv_func_select" = x""yes; then :
14242 as_fn_error "select() required." "$LINENO" 5
14246 if test "${ac_cv_header_winsock_h}" != yes; then
14247 for ac_header in sys/select.h sys/socket.h
14249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14250 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14251 eval as_val=\$$as_ac_Header
14252 if test "x$as_val" = x""yes; then :
14253 cat >>confdefs.h <<_ACEOF
14254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14262 $as_echo_n "checking types of arguments for select... " >&6; }
14263 if test "${ac_cv_func_select_args+set}" = set; then :
14264 $as_echo_n "(cached) " >&6
14266 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14267 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14268 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 $ac_includes_default
14272 #ifdef HAVE_SYS_SELECT_H
14273 # include <sys/select.h>
14275 #ifdef HAVE_SYS_SOCKET_H
14276 # include <sys/socket.h>
14282 extern int select ($ac_arg1,
14283 $ac_arg234, $ac_arg234, $ac_arg234,
14289 if ac_fn_c_try_compile "$LINENO"; then :
14290 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14296 # Provide a safe default value.
14297 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14301 $as_echo "$ac_cv_func_select_args" >&6; }
14302 ac_save_IFS=$IFS; IFS=','
14303 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14307 cat >>confdefs.h <<_ACEOF
14308 #define SELECT_TYPE_ARG1 $1
14312 cat >>confdefs.h <<_ACEOF
14313 #define SELECT_TYPE_ARG234 ($2)
14317 cat >>confdefs.h <<_ACEOF
14318 #define SELECT_TYPE_ARG5 ($3)
14326 for ac_func in poll
14328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14330 eval as_val=\$$as_ac_var
14331 if test "x$as_val" = x""yes; then :
14332 cat >>confdefs.h <<_ACEOF
14333 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14339 if test $ac_cv_func_poll = yes; then
14340 for ac_header in poll.h sys/poll.h
14342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14343 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14344 eval as_val=\$$as_ac_Header
14345 if test "x$as_val" = x""yes; then :
14346 cat >>confdefs.h <<_ACEOF
14347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14356 for ac_header in sys/epoll.h
14358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14359 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14360 eval as_val=\$$as_ac_Header
14361 if test "x$as_val" = x""yes; then :
14362 cat >>confdefs.h <<_ACEOF
14363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14370 if test "${ac_cv_header_sys_epoll_h}" = yes; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14372 $as_echo_n "checking for epoll system call... " >&6; }
14373 if test "$cross_compiling" = yes; then :
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 int main(int argc, char **argv)
14381 int epfd = epoll_create(256);
14382 exit (epfd == -1 ? 1 : 0);
14385 if ac_fn_c_try_run "$LINENO"; then :
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14387 $as_echo "yes" >&6; }
14389 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393 $as_echo "no" >&6; }
14395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14396 conftest.$ac_objext conftest.beam conftest.$ac_ext
14401 for ac_header in sys/devpoll.h
14403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14404 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14405 eval as_val=\$$as_ac_Header
14406 if test "x$as_val" = x""yes; then :
14407 cat >>confdefs.h <<_ACEOF
14408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14415 if test "${ac_cv_header_sys_devpoll_h}" = yes \
14416 -a "${ac_cv_header_poll_h}" = yes ; \
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14419 $as_echo_n "checking for /dev/poll... " >&6; }
14420 if test "$cross_compiling" = yes; then :
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14422 $as_echo "no" >&6; }
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 int main(int argc, char **argv)
14428 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
14429 exit (devpollfd == -1 ? 1 : 0);
14432 if ac_fn_c_try_run "$LINENO"; then :
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14434 $as_echo "yes" >&6; }
14436 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 $as_echo "no" >&6; }
14442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14443 conftest.$ac_objext conftest.beam conftest.$ac_ext
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14449 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14450 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14458 #include <sys/types.h>
14461 #include <stdlib.h>
14466 char *c = (char *) *sys_errlist
14471 if ac_fn_c_try_compile "$LINENO"; then :
14472 ol_cv_dcl_sys_errlist=yes
14473 ol_cv_have_sys_errlist=yes
14475 ol_cv_dcl_sys_errlist=no
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14480 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14482 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14483 if test $ol_cv_dcl_sys_errlist = no ; then
14485 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14489 $as_echo_n "checking existence of sys_errlist... " >&6; }
14490 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14491 $as_echo_n "(cached) " >&6
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14500 char *c = (char *) *sys_errlist
14505 if ac_fn_c_try_link "$LINENO"; then :
14506 ol_cv_have_sys_errlist=yes
14508 ol_cv_have_sys_errlist=no
14510 rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14514 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14516 if test $ol_cv_have_sys_errlist = yes ; then
14518 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14521 for ac_func in strerror strerror_r
14523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14524 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14525 eval as_val=\$$as_ac_var
14526 if test "x$as_val" = x""yes; then :
14527 cat >>confdefs.h <<_ACEOF
14528 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14534 ol_cv_func_strerror_r=no
14535 if test "${ac_cv_func_strerror_r}" = yes ; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
14537 $as_echo_n "checking non-posix strerror_r... " >&6; }
14538 if test "${ol_cv_nonposix_strerror_r+set}" = set; then :
14539 $as_echo_n "(cached) " >&6
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 #include <string.h>
14546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14547 $EGREP "strerror_r" >/dev/null 2>&1; then :
14548 ol_decl_strerror_r=yes
14550 ol_decl_strerror_r=no
14554 if test $ol_decl_strerror_r = yes ; then
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14557 #include <string.h>
14561 /* from autoconf 2.59 */
14563 char x = *strerror_r (0, buf, sizeof buf);
14564 char *p = strerror_r (0, buf, sizeof buf);
14570 if ac_fn_c_try_compile "$LINENO"; then :
14571 ol_cv_nonposix_strerror_r=yes
14573 ol_cv_nonposix_strerror_r=no
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 if test "$cross_compiling" = yes; then :
14578 ol_cv_nonposix_strerror=no
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14586 strerror_r( 1, buf, sizeof buf );
14587 exit( buf[0] == 0 );
14591 if ac_fn_c_try_run "$LINENO"; then :
14592 ol_cv_nonposix_strerror_r=yes
14594 ol_cv_nonposix_strerror=no
14596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14597 conftest.$ac_objext conftest.beam conftest.$ac_ext
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
14604 $as_echo "$ol_cv_nonposix_strerror_r" >&6; }
14605 if test $ol_cv_nonposix_strerror_r = yes ; then
14607 $as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
14611 elif test "${ac_cv_func_strerror}" = no ; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14613 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14614 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14615 $as_echo_n "(cached) " >&6
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14622 #include <sys/types.h>
14625 #include <stdlib.h>
14630 char *c = (char *) *sys_errlist
14635 if ac_fn_c_try_compile "$LINENO"; then :
14636 ol_cv_dcl_sys_errlist=yes
14637 ol_cv_have_sys_errlist=yes
14639 ol_cv_dcl_sys_errlist=no
14641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14644 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14646 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14647 if test $ol_cv_dcl_sys_errlist = no ; then
14649 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14653 $as_echo_n "checking existence of sys_errlist... " >&6; }
14654 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14655 $as_echo_n "(cached) " >&6
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14664 char *c = (char *) *sys_errlist
14669 if ac_fn_c_try_link "$LINENO"; then :
14670 ol_cv_have_sys_errlist=yes
14672 ol_cv_have_sys_errlist=no
14674 rm -f core conftest.err conftest.$ac_objext \
14675 conftest$ac_exeext conftest.$ac_ext
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14678 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14680 if test $ol_cv_have_sys_errlist = yes ; then
14682 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14689 for ac_header in regex.h
14691 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
14692 #ifdef HAVE_SYS_TYPES_H
14693 #include <sys/types.h>
14697 if test "x$ac_cv_header_regex_h" = x""yes; then :
14698 cat >>confdefs.h <<_ACEOF
14699 #define HAVE_REGEX_H 1
14707 if test "$ac_cv_header_regex_h" != yes ; then
14708 as_fn_error "POSIX regex.h required." "$LINENO" 5
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
14711 $as_echo_n "checking for library containing regfree... " >&6; }
14712 if test "${ac_cv_search_regfree+set}" = set; then :
14713 $as_echo_n "(cached) " >&6
14715 ac_func_search_save_LIBS=$LIBS
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14719 /* Override any GCC internal prototype to avoid an error.
14720 Use char because int might match the return type of a GCC
14721 builtin and then its argument prototype would still apply. */
14734 for ac_lib in '' regex gnuregex; do
14735 if test -z "$ac_lib"; then
14736 ac_res="none required"
14739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14741 if ac_fn_c_try_link "$LINENO"; then :
14742 ac_cv_search_regfree=$ac_res
14744 rm -f core conftest.err conftest.$ac_objext \
14746 if test "${ac_cv_search_regfree+set}" = set; then :
14750 if test "${ac_cv_search_regfree+set}" = set; then :
14753 ac_cv_search_regfree=no
14755 rm conftest.$ac_ext
14756 LIBS=$ac_func_search_save_LIBS
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
14759 $as_echo "$ac_cv_search_regfree" >&6; }
14760 ac_res=$ac_cv_search_regfree
14761 if test "$ac_res" != no; then :
14762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14765 as_fn_error "POSIX regex required." "$LINENO" 5
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
14771 $as_echo_n "checking for compatible POSIX regex... " >&6; }
14772 if test "${ol_cv_c_posix_regex+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14776 if test "$cross_compiling" = yes; then :
14777 ol_cv_c_posix_regex=cross
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14782 #include <sys/types.h>
14784 static char *pattern, *string;
14792 if(regcomp(&re, pattern, 0)) {
14796 string = "ALL MATCH";
14798 rc = regexec(&re, string, 0, (void*)0, 0);
14805 if ac_fn_c_try_run "$LINENO"; then :
14806 ol_cv_c_posix_regex=yes
14808 ol_cv_c_posix_regex=no
14810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14811 conftest.$ac_objext conftest.beam conftest.$ac_ext
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
14816 $as_echo "$ol_cv_c_posix_regex" >&6; }
14818 if test "$ol_cv_c_posix_regex" = no ; then
14819 as_fn_error "broken POSIX regex!" "$LINENO" 5
14824 for ac_header in sys/uuid.h
14826 ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
14827 if test "x$ac_cv_header_sys_uuid_h" = x""yes; then :
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_SYS_UUID_H 1
14836 if test $ac_cv_header_sys_uuid_h = yes ; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
14839 $as_echo_n "checking for library containing uuid_to_str... " >&6; }
14840 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14841 $as_echo_n "(cached) " >&6
14843 ac_func_search_save_LIBS=$LIBS
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14847 /* Override any GCC internal prototype to avoid an error.
14848 Use char because int might match the return type of a GCC
14849 builtin and then its argument prototype would still apply. */
14853 char uuid_to_str ();
14857 return uuid_to_str ();
14862 for ac_lib in '' uuid; do
14863 if test -z "$ac_lib"; then
14864 ac_res="none required"
14867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14869 if ac_fn_c_try_link "$LINENO"; then :
14870 ac_cv_search_uuid_to_str=$ac_res
14872 rm -f core conftest.err conftest.$ac_objext \
14874 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14878 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14881 ac_cv_search_uuid_to_str=no
14883 rm conftest.$ac_ext
14884 LIBS=$ac_func_search_save_LIBS
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
14887 $as_echo "$ac_cv_search_uuid_to_str" >&6; }
14888 ac_res=$ac_cv_search_uuid_to_str
14889 if test "$ac_res" != no; then :
14890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
14897 $as_echo_n "checking for library containing uuid_create... " >&6; }
14898 if test "${ac_cv_search_uuid_create+set}" = set; then :
14899 $as_echo_n "(cached) " >&6
14901 ac_func_search_save_LIBS=$LIBS
14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14905 /* Override any GCC internal prototype to avoid an error.
14906 Use char because int might match the return type of a GCC
14907 builtin and then its argument prototype would still apply. */
14911 char uuid_create ();
14915 return uuid_create ();
14920 for ac_lib in '' uuid; do
14921 if test -z "$ac_lib"; then
14922 ac_res="none required"
14925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14927 if ac_fn_c_try_link "$LINENO"; then :
14928 ac_cv_search_uuid_create=$ac_res
14930 rm -f core conftest.err conftest.$ac_objext \
14932 if test "${ac_cv_search_uuid_create+set}" = set; then :
14936 if test "${ac_cv_search_uuid_create+set}" = set; then :
14939 ac_cv_search_uuid_create=no
14941 rm conftest.$ac_ext
14942 LIBS=$ac_func_search_save_LIBS
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
14945 $as_echo "$ac_cv_search_uuid_create" >&6; }
14946 ac_res=$ac_cv_search_uuid_create
14947 if test "$ac_res" != no; then :
14948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14956 if test $have_uuid = yes ; then
14958 $as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
14961 test "$ac_cv_search_uuid_to_str" = "none required" || \
14962 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
14966 if test $have_uuid = no ; then
14967 for ac_header in uuid/uuid.h
14969 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14970 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
14971 cat >>confdefs.h <<_ACEOF
14972 #define HAVE_UUID_UUID_H 1
14979 if test $ac_cv_header_uuid_uuid_h = yes ; then
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
14982 $as_echo_n "checking for library containing uuid_generate... " >&6; }
14983 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14984 $as_echo_n "(cached) " >&6
14986 ac_func_search_save_LIBS=$LIBS
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14990 /* Override any GCC internal prototype to avoid an error.
14991 Use char because int might match the return type of a GCC
14992 builtin and then its argument prototype would still apply. */
14996 char uuid_generate ();
15000 return uuid_generate ();
15005 for ac_lib in '' uuid; do
15006 if test -z "$ac_lib"; then
15007 ac_res="none required"
15010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15012 if ac_fn_c_try_link "$LINENO"; then :
15013 ac_cv_search_uuid_generate=$ac_res
15015 rm -f core conftest.err conftest.$ac_objext \
15017 if test "${ac_cv_search_uuid_generate+set}" = set; then :
15021 if test "${ac_cv_search_uuid_generate+set}" = set; then :
15024 ac_cv_search_uuid_generate=no
15026 rm conftest.$ac_ext
15027 LIBS=$ac_func_search_save_LIBS
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
15030 $as_echo "$ac_cv_search_uuid_generate" >&6; }
15031 ac_res=$ac_cv_search_uuid_generate
15032 if test "$ac_res" != no; then :
15033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
15040 $as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
15041 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
15042 $as_echo_n "(cached) " >&6
15044 ac_func_search_save_LIBS=$LIBS
15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15048 /* Override any GCC internal prototype to avoid an error.
15049 Use char because int might match the return type of a GCC
15050 builtin and then its argument prototype would still apply. */
15054 char uuid_unparse_lower ();
15058 return uuid_unparse_lower ();
15063 for ac_lib in '' uuid; do
15064 if test -z "$ac_lib"; then
15065 ac_res="none required"
15068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15070 if ac_fn_c_try_link "$LINENO"; then :
15071 ac_cv_search_uuid_unparse_lower=$ac_res
15073 rm -f core conftest.err conftest.$ac_objext \
15075 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
15079 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
15082 ac_cv_search_uuid_unparse_lower=no
15084 rm conftest.$ac_ext
15085 LIBS=$ac_func_search_save_LIBS
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
15088 $as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
15089 ac_res=$ac_cv_search_uuid_unparse_lower
15090 if test "$ac_res" != no; then :
15091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15099 if test $have_uuid = yes ; then
15101 $as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
15104 test "$ac_cv_search_uuid_generate" = "none required" || \
15105 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
15110 if test $have_uuid = no ; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
15112 $as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
15114 LIBS="$LIBS -lrpcrt4"
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15118 int __stdcall UuidCreate(void *);
15119 int __stdcall UuidToStringA(void *,void **);
15126 UuidToStringA(0,0);
15132 if ac_fn_c_try_link "$LINENO"; then :
15137 rm -f core conftest.err conftest.$ac_objext \
15138 conftest$ac_exeext conftest.$ac_ext
15139 if test $need_rpcrt = yes; then
15140 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
15144 $as_echo "$need_rpcrt" >&6; }
15147 ol_cv_lib_resolver=no
15148 if test $ol_cv_lib_resolver = no ; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
15150 $as_echo_n "checking for resolver link (default)... " >&6; }
15151 if test "${ol_cv_resolver_none+set}" = set; then :
15152 $as_echo_n "(cached) " >&6
15157 LIBS="$ol_RESOLVER_LIB $LIBS"
15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15162 #ifdef HAVE_SYS_TYPES_H
15163 # include <sys/types.h>
15165 #include <netinet/in.h>
15166 #ifdef HAVE_ARPA_NAMESER_H
15167 # include <arpa/nameser.h>
15169 #ifdef HAVE_RESOLV_H
15170 # include <resolv.h>
15178 char *request = NULL;
15179 unsigned char reply[64*1024];
15180 unsigned char host[64*1024];
15184 /* Bind 8/9 interface */
15185 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15187 /* Bind 4 interface */
15191 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15195 /* Bind 8/9 interface */
15197 #elif defined(HFIXEDSZ)
15198 /* Bind 4 interface w/ HFIXEDSZ */
15201 /* Bind 4 interface w/o HFIXEDSZ */
15202 p += sizeof(HEADER);
15204 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15210 if ac_fn_c_try_link "$LINENO"; then :
15211 ol_cv_resolver_none=yes
15213 ol_cv_resolver_none=no
15215 rm -f core conftest.err conftest.$ac_objext \
15216 conftest$ac_exeext conftest.$ac_ext
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
15222 $as_echo "$ol_cv_resolver_none" >&6; }
15224 if test $ol_cv_resolver_none = yes ; then
15225 ol_cv_lib_resolver=yes
15229 if test $ol_cv_lib_resolver = no ; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
15231 $as_echo_n "checking for resolver link (-lresolv)... " >&6; }
15232 if test "${ol_cv_resolver_resolv+set}" = set; then :
15233 $as_echo_n "(cached) " >&6
15236 ol_RESOLVER_LIB=-lresolv
15238 LIBS="$ol_RESOLVER_LIB $LIBS"
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15243 #ifdef HAVE_SYS_TYPES_H
15244 # include <sys/types.h>
15246 #include <netinet/in.h>
15247 #ifdef HAVE_ARPA_NAMESER_H
15248 # include <arpa/nameser.h>
15250 #ifdef HAVE_RESOLV_H
15251 # include <resolv.h>
15259 char *request = NULL;
15260 unsigned char reply[64*1024];
15261 unsigned char host[64*1024];
15265 /* Bind 8/9 interface */
15266 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15268 /* Bind 4 interface */
15272 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15276 /* Bind 8/9 interface */
15278 #elif defined(HFIXEDSZ)
15279 /* Bind 4 interface w/ HFIXEDSZ */
15282 /* Bind 4 interface w/o HFIXEDSZ */
15283 p += sizeof(HEADER);
15285 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15291 if ac_fn_c_try_link "$LINENO"; then :
15292 ol_cv_resolver_resolv=yes
15294 ol_cv_resolver_resolv=no
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
15303 $as_echo "$ol_cv_resolver_resolv" >&6; }
15305 if test $ol_cv_resolver_resolv = yes ; then
15306 ol_cv_lib_resolver=-lresolv
15310 if test $ol_cv_lib_resolver = no ; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
15312 $as_echo_n "checking for resolver link (-lbind)... " >&6; }
15313 if test "${ol_cv_resolver_bind+set}" = set; then :
15314 $as_echo_n "(cached) " >&6
15317 ol_RESOLVER_LIB=-lbind
15319 LIBS="$ol_RESOLVER_LIB $LIBS"
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15324 #ifdef HAVE_SYS_TYPES_H
15325 # include <sys/types.h>
15327 #include <netinet/in.h>
15328 #ifdef HAVE_ARPA_NAMESER_H
15329 # include <arpa/nameser.h>
15331 #ifdef HAVE_RESOLV_H
15332 # include <resolv.h>
15340 char *request = NULL;
15341 unsigned char reply[64*1024];
15342 unsigned char host[64*1024];
15346 /* Bind 8/9 interface */
15347 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15349 /* Bind 4 interface */
15353 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15357 /* Bind 8/9 interface */
15359 #elif defined(HFIXEDSZ)
15360 /* Bind 4 interface w/ HFIXEDSZ */
15363 /* Bind 4 interface w/o HFIXEDSZ */
15364 p += sizeof(HEADER);
15366 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15372 if ac_fn_c_try_link "$LINENO"; then :
15373 ol_cv_resolver_bind=yes
15375 ol_cv_resolver_bind=no
15377 rm -f core conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
15384 $as_echo "$ol_cv_resolver_bind" >&6; }
15386 if test $ol_cv_resolver_bind = yes ; then
15387 ol_cv_lib_resolver=-lbind
15394 if test "$ol_cv_lib_resolver" != no ; then
15396 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
15399 if test "$ol_enable_dnssrv" != no ; then
15403 if test "$ol_cv_lib_resolver" != yes ; then
15404 LIBS="$ol_cv_lib_resolver $LIBS"
15408 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
15409 if test "$ol_link_dnssrv" = no ; then
15410 as_fn_error "DNSSRV requires res_query()" "$LINENO" 5
15413 ol_enable_dnssrv=no
15416 for ac_func in hstrerror
15418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15420 eval as_val=\$$as_ac_var
15421 if test "x$as_val" = x""yes; then :
15422 cat >>confdefs.h <<_ACEOF
15423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15430 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
15432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15434 eval as_val=\$$as_ac_var
15435 if test "x$as_val" = x""yes; then :
15436 cat >>confdefs.h <<_ACEOF
15437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15445 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
15446 if test $ol_enable_ipv6 = yes ; then
15447 as_fn_error "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
15449 elif test $ol_enable_ipv6 != no ; then
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
15451 $as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
15452 if test "${ol_cv_inet6_addrstrlen+set}" = set; then :
15453 $as_echo_n "(cached) " >&6
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15459 # include <netinet/in.h>
15460 # ifdef INET6_ADDRSTRLEN
15461 __has_inet6_addrstrlen__;
15465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15466 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
15467 ol_cv_inet6_addrstrlen=yes
15469 ol_cv_inet6_addrstrlen=no
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
15475 $as_echo "$ol_cv_inet6_addrstrlen" >&6; }
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
15479 $as_echo_n "checking struct sockaddr_storage... " >&6; }
15480 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15487 #include <sys/types.h>
15488 #include <sys/socket.h>
15494 struct sockaddr_storage ss;
15500 if ac_fn_c_try_compile "$LINENO"; then :
15501 ol_cv_struct_sockaddr_storage=yes
15503 ol_cv_struct_sockaddr_storage=no
15505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
15508 $as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
15510 if test $ol_cv_inet6_addrstrlen = yes &&
15511 test $ol_cv_struct_sockaddr_storage = yes ; then
15513 elif test $ol_enable_ipv6 = yes &&
15514 test $ol_cv_inet6_addrstrlen = no ; then
15515 as_fn_error "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
15516 elif test $ol_enable_ipv6 = yes &&
15517 test $ol_cv_struct_sockaddr_storage = no ; then
15518 as_fn_error "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
15522 if test $ol_enable_local != no ; then
15523 for ac_header in sys/un.h
15525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15526 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15527 eval as_val=\$$as_ac_Header
15528 if test "x$as_val" = x""yes; then :
15529 cat >>confdefs.h <<_ACEOF
15530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15538 if test $ol_enable_local = auto ; then
15539 ol_enable_local=$ac_cv_header_sys_un_h
15540 elif test $ac_cv_header_sys_un_h = no ; then
15541 as_fn_error "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
15546 if test $ol_with_tls = yes ; then
15551 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
15552 for ac_header in openssl/ssl.h
15554 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15555 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
15556 cat >>confdefs.h <<_ACEOF
15557 #define HAVE_OPENSSL_SSL_H 1
15565 if test $ac_cv_header_openssl_ssl_h = yes ; then
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_msg_callback in -lssl" >&5
15567 $as_echo_n "checking for SSL_CTX_set_msg_callback in -lssl... " >&6; }
15568 if test "${ac_cv_lib_ssl_SSL_CTX_set_msg_callback+set}" = set; then :
15569 $as_echo_n "(cached) " >&6
15571 ac_check_lib_save_LIBS=$LIBS
15572 LIBS="-lssl -lcrypto $LIBS"
15573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15576 /* Override any GCC internal prototype to avoid an error.
15577 Use char because int might match the return type of a GCC
15578 builtin and then its argument prototype would still apply. */
15582 char SSL_CTX_set_msg_callback ();
15586 return SSL_CTX_set_msg_callback ();
15591 if ac_fn_c_try_link "$LINENO"; then :
15592 ac_cv_lib_ssl_SSL_CTX_set_msg_callback=yes
15594 ac_cv_lib_ssl_SSL_CTX_set_msg_callback=no
15596 rm -f core conftest.err conftest.$ac_objext \
15597 conftest$ac_exeext conftest.$ac_ext
15598 LIBS=$ac_check_lib_save_LIBS
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_msg_callback" >&5
15601 $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_msg_callback" >&6; }
15602 if test "x$ac_cv_lib_ssl_SSL_CTX_set_msg_callback" = x""yes; then :
15610 if test $have_openssl = no ; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl3_accept in -lssl" >&5
15612 $as_echo_n "checking for ssl3_accept in -lssl... " >&6; }
15613 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then :
15614 $as_echo_n "(cached) " >&6
15616 ac_check_lib_save_LIBS=$LIBS
15617 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15621 /* Override any GCC internal prototype to avoid an error.
15622 Use char because int might match the return type of a GCC
15623 builtin and then its argument prototype would still apply. */
15627 char ssl3_accept ();
15631 return ssl3_accept ();
15636 if ac_fn_c_try_link "$LINENO"; then :
15637 ac_cv_lib_ssl_ssl3_accept=yes
15639 ac_cv_lib_ssl_ssl3_accept=no
15641 rm -f core conftest.err conftest.$ac_objext \
15642 conftest$ac_exeext conftest.$ac_ext
15643 LIBS=$ac_check_lib_save_LIBS
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15646 $as_echo "$ac_cv_lib_ssl_ssl3_accept" >&6; }
15647 if test "x$ac_cv_lib_ssl_ssl3_accept" = x""yes; then :
15656 if test $have_openssl = yes ; then
15657 ol_with_tls=openssl
15661 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15664 if test $need_rsaref = yes; then
15666 $as_echo "#define HAVE_RSAREF 1" >>confdefs.h
15669 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15671 TLS_LIBS="-lssl -lcrypto"
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version (CRL checking capability)" >&5
15675 $as_echo_n "checking OpenSSL library version (CRL checking capability)... " >&6; }
15676 if test "${ol_cv_ssl_crl_compat+set}" = set; then :
15677 $as_echo_n "(cached) " >&6
15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15683 #ifdef HAVE_OPENSSL_SSL_H
15684 #include <openssl/ssl.h>
15687 /* Require 0.9.7d+ */
15688 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
15689 char *__ssl_compat = "0.9.7d";
15693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15694 $EGREP "__ssl_compat" >/dev/null 2>&1; then :
15695 ol_cv_ssl_crl_compat=yes
15697 ol_cv_ssl_crl_compat=no
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_ssl_crl_compat" >&5
15703 $as_echo "$ol_cv_ssl_crl_compat" >&6; }
15705 if test $ol_cv_ssl_crl_compat = yes ; then
15707 $as_echo "#define HAVE_OPENSSL_CRL 1" >>confdefs.h
15714 if test $ol_link_tls = no ; then
15715 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
15716 for ac_header in gnutls/gnutls.h
15718 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
15719 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
15720 cat >>confdefs.h <<_ACEOF
15721 #define HAVE_GNUTLS_GNUTLS_H 1
15729 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731 /* end confdefs.h. */
15732 #include <gnutls/gnutls.h>
15733 #if GNUTLS_VERSION_NUMBER < 0x020c00
15734 #error "GnuTLS 2.12.0 or newer required"
15737 if ac_fn_c_try_cpp "$LINENO"; then :
15740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15742 as_fn_error "GnuTLS is too old
15743 See \`config.log' for more details." "$LINENO" 5; }
15745 rm -f conftest.err conftest.$ac_ext
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
15748 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
15749 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then :
15750 $as_echo_n "(cached) " >&6
15752 ac_check_lib_save_LIBS=$LIBS
15753 LIBS="-lgnutls $LIBS"
15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h. */
15757 /* Override any GCC internal prototype to avoid an error.
15758 Use char because int might match the return type of a GCC
15759 builtin and then its argument prototype would still apply. */
15763 char gnutls_init ();
15767 return gnutls_init ();
15772 if ac_fn_c_try_link "$LINENO"; then :
15773 ac_cv_lib_gnutls_gnutls_init=yes
15775 ac_cv_lib_gnutls_gnutls_init=no
15777 rm -f core conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15779 LIBS=$ac_check_lib_save_LIBS
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
15782 $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
15783 if test "x$ac_cv_lib_gnutls_gnutls_init" = x""yes; then :
15790 if test $have_gnutls = yes ; then
15794 TLS_LIBS="-lgnutls"
15797 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15804 if test $ol_link_tls = no ; then
15805 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
15807 for ac_header in nssutil.h
15809 ac_fn_c_check_header_mongrel "$LINENO" "nssutil.h" "ac_cv_header_nssutil_h" "$ac_includes_default"
15810 if test "x$ac_cv_header_nssutil_h" = x""yes; then :
15811 cat >>confdefs.h <<_ACEOF
15812 #define HAVE_NSSUTIL_H 1
15819 if test "$ac_cv_header_nssutil_h" = yes ; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
15821 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
15822 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then :
15823 $as_echo_n "(cached) " >&6
15825 ac_check_lib_save_LIBS=$LIBS
15826 LIBS="-lnss3 $LIBS"
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15830 /* Override any GCC internal prototype to avoid an error.
15831 Use char because int might match the return type of a GCC
15832 builtin and then its argument prototype would still apply. */
15836 char NSS_Initialize ();
15840 return NSS_Initialize ();
15845 if ac_fn_c_try_link "$LINENO"; then :
15846 ac_cv_lib_nss3_NSS_Initialize=yes
15848 ac_cv_lib_nss3_NSS_Initialize=no
15850 rm -f core conftest.err conftest.$ac_objext \
15851 conftest$ac_exeext conftest.$ac_ext
15852 LIBS=$ac_check_lib_save_LIBS
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
15855 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
15856 if test "x$ac_cv_lib_nss3_NSS_Initialize" = x""yes; then :
15864 if test "$have_moznss" = yes ; then
15868 $as_echo "#define HAVE_MOZNSS 1" >>confdefs.h
15870 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
15872 if test $ol_with_tls = moznss ; then
15873 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
15880 if test $ol_link_tls = yes ; then
15882 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15885 elif test $ol_with_tls = auto ; then
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
15887 $as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15889 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15890 elif test $ol_with_tls != no ; then
15891 as_fn_error "Could not locate TLS/SSL package" "$LINENO" 5
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15894 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15897 if test $ol_enable_lmpasswd != no; then
15898 if test $ol_link_tls != yes ; then
15899 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
15903 $as_echo "#define SLAPD_LMHASH 1" >>confdefs.h
15909 case $ol_with_threads in auto | yes | nt)
15912 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
15913 if test "x$ac_cv_func__beginthread" = x""yes; then :
15918 if test $ac_cv_func__beginthread = yes ; then
15920 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
15922 ol_cv_nt_threads=yes
15926 if test "$ol_cv_nt_threads" = yes ; then
15928 ol_with_threads=found
15929 ol_with_yielding_select=yes
15932 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
15935 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
15939 if test $ol_with_threads = nt ; then
15940 as_fn_error "could not locate NT Threads" "$LINENO" 5
15945 case $ol_with_threads in auto | yes | posix)
15947 for ac_header in pthread.h
15949 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15950 if test "x$ac_cv_header_pthread_h" = x""yes; then :
15951 cat >>confdefs.h <<_ACEOF
15952 #define HAVE_PTHREAD_H 1
15960 if test $ac_cv_header_pthread_h = yes ; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
15962 $as_echo_n "checking POSIX thread version... " >&6; }
15963 if test "${ol_cv_pthread_version+set}" = set; then :
15964 $as_echo_n "(cached) " >&6
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15970 # include <pthread.h>
15976 int i = PTHREAD_CREATE_JOINABLE;
15982 if ac_fn_c_try_compile "$LINENO"; then :
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986 #include <pthread.h>
15989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15990 $EGREP "pthread_detach" >/dev/null 2>&1; then :
15991 ol_cv_pthread_version=10
15993 ol_cv_pthread_version=8
15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h. */
16002 # include <pthread.h>
16003 # ifdef PTHREAD_CREATE_UNDETACHED
16008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16009 $EGREP "draft7" >/dev/null 2>&1; then :
16010 ol_cv_pthread_version=7
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 #include <pthread.h>
16018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16019 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
16020 ol_cv_pthread_version=6
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16026 # include <pthread.h>
16027 #ifdef PTHREAD_MUTEX_INITIALIZER
16032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16033 $EGREP "draft5" >/dev/null 2>&1; then :
16034 ol_cv_pthread_version=5
16036 ol_cv_pthread_version=4
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
16051 $as_echo "$ol_cv_pthread_version" >&6; }
16054 if test $ol_cv_pthread_version != 0 ; then
16056 cat >>confdefs.h <<_ACEOF
16057 #define HAVE_PTHREADS $ol_cv_pthread_version
16061 as_fn_error "unknown pthread version" "$LINENO" 5
16064 # consider threads found
16065 ol_with_threads=found
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
16069 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
16070 if test "${ol_cv_header_linux_threads+set}" = set; then :
16071 $as_echo_n "(cached) " >&6
16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074 /* end confdefs.h. */
16075 #include <pthread.h>
16077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16078 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
16079 ol_cv_header_linux_threads=yes
16081 ol_cv_header_linux_threads=no
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
16088 $as_echo "$ol_cv_header_linux_threads" >&6; }
16089 if test $ol_cv_header_linux_threads = yes; then
16091 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
16097 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
16098 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then :
16099 $as_echo_n "(cached) " >&6
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16103 #include <pthread.h>
16104 #ifdef _POSIX_THREAD_IS_GNU_PTH
16109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16110 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
16111 ol_cv_header_gnu_pth_pthread_h=yes
16113 ol_cv_header_gnu_pth_pthread_h=no
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
16120 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
16123 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
16124 for ac_header in sched.h
16126 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16127 if test "x$ac_cv_header_sched_h" = x""yes; then :
16128 cat >>confdefs.h <<_ACEOF
16129 #define HAVE_SCHED_H 1
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
16140 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
16141 if test "${ol_cv_pthread_create+set}" = set; then :
16142 $as_echo_n "(cached) " >&6
16145 if test "$cross_compiling" = yes; then :
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16149 /* pthread test headers */
16150 #include <pthread.h>
16151 #if HAVE_PTHREADS < 7
16155 #define NULL (void*)0
16158 static void *task(p)
16161 return (void *) (p == NULL);
16168 /* pthread test function */
16169 #ifndef PTHREAD_CREATE_DETACHED
16170 #define PTHREAD_CREATE_DETACHED 1
16174 int detach = PTHREAD_CREATE_DETACHED;
16176 #if HAVE_PTHREADS > 4
16177 /* Final pthreads */
16178 pthread_attr_t attr;
16180 status = pthread_attr_init(&attr);
16181 if( status ) return status;
16183 #if HAVE_PTHREADS < 7
16184 status = pthread_attr_setdetachstate(&attr, &detach);
16185 if( status < 0 ) status = errno;
16187 status = pthread_attr_setdetachstate(&attr, detach);
16189 if( status ) return status;
16190 status = pthread_create( &t, &attr, task, NULL );
16191 #if HAVE_PTHREADS < 7
16192 if( status < 0 ) status = errno;
16194 if( status ) return status;
16196 /* Draft 4 pthreads */
16197 status = pthread_create( &t, pthread_attr_default, task, NULL );
16198 if( status ) return errno;
16200 /* give thread a chance to complete */
16201 /* it should remain joinable and hence detachable */
16204 status = pthread_detach( &t );
16205 if( status ) return errno;
16208 #ifdef HAVE_LINUX_THREADS
16209 pthread_kill_other_threads_np();
16218 if ac_fn_c_try_link "$LINENO"; then :
16219 ol_cv_pthread_create=yes
16221 ol_cv_pthread_create=no
16223 rm -f core conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16229 /* pthread test headers */
16230 #include <pthread.h>
16231 #if HAVE_PTHREADS < 7
16235 #define NULL (void*)0
16238 static void *task(p)
16241 return (void *) (p == NULL);
16245 int main(argc, argv)
16250 /* pthread test function */
16251 #ifndef PTHREAD_CREATE_DETACHED
16252 #define PTHREAD_CREATE_DETACHED 1
16256 int detach = PTHREAD_CREATE_DETACHED;
16258 #if HAVE_PTHREADS > 4
16259 /* Final pthreads */
16260 pthread_attr_t attr;
16262 status = pthread_attr_init(&attr);
16263 if( status ) return status;
16265 #if HAVE_PTHREADS < 7
16266 status = pthread_attr_setdetachstate(&attr, &detach);
16267 if( status < 0 ) status = errno;
16269 status = pthread_attr_setdetachstate(&attr, detach);
16271 if( status ) return status;
16272 status = pthread_create( &t, &attr, task, NULL );
16273 #if HAVE_PTHREADS < 7
16274 if( status < 0 ) status = errno;
16276 if( status ) return status;
16278 /* Draft 4 pthreads */
16279 status = pthread_create( &t, pthread_attr_default, task, NULL );
16280 if( status ) return errno;
16282 /* give thread a chance to complete */
16283 /* it should remain joinable and hence detachable */
16286 status = pthread_detach( &t );
16287 if( status ) return errno;
16290 #ifdef HAVE_LINUX_THREADS
16291 pthread_kill_other_threads_np();
16299 if ac_fn_c_try_run "$LINENO"; then :
16300 ol_cv_pthread_create=yes
16302 ol_cv_pthread_create=no
16304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16305 conftest.$ac_objext conftest.beam conftest.$ac_ext
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
16310 $as_echo "$ol_cv_pthread_create" >&6; }
16312 if test $ol_cv_pthread_create != no ; then
16313 ol_link_threads=posix
16314 ol_link_pthreads=""
16317 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16318 if test "$ol_link_threads" = no ; then
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
16321 $as_echo_n "checking for pthread link with -kthread... " >&6; }
16322 if test "${ol_cv_pthread_kthread+set}" = set; then :
16323 $as_echo_n "(cached) " >&6
16328 LIBS="-kthread $LIBS"
16330 if test "$cross_compiling" = yes; then :
16331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h. */
16334 /* pthread test headers */
16335 #include <pthread.h>
16336 #if HAVE_PTHREADS < 7
16340 #define NULL (void*)0
16343 static void *task(p)
16346 return (void *) (p == NULL);
16353 /* pthread test function */
16354 #ifndef PTHREAD_CREATE_DETACHED
16355 #define PTHREAD_CREATE_DETACHED 1
16359 int detach = PTHREAD_CREATE_DETACHED;
16361 #if HAVE_PTHREADS > 4
16362 /* Final pthreads */
16363 pthread_attr_t attr;
16365 status = pthread_attr_init(&attr);
16366 if( status ) return status;
16368 #if HAVE_PTHREADS < 7
16369 status = pthread_attr_setdetachstate(&attr, &detach);
16370 if( status < 0 ) status = errno;
16372 status = pthread_attr_setdetachstate(&attr, detach);
16374 if( status ) return status;
16375 status = pthread_create( &t, &attr, task, NULL );
16376 #if HAVE_PTHREADS < 7
16377 if( status < 0 ) status = errno;
16379 if( status ) return status;
16381 /* Draft 4 pthreads */
16382 status = pthread_create( &t, pthread_attr_default, task, NULL );
16383 if( status ) return errno;
16385 /* give thread a chance to complete */
16386 /* it should remain joinable and hence detachable */
16389 status = pthread_detach( &t );
16390 if( status ) return errno;
16393 #ifdef HAVE_LINUX_THREADS
16394 pthread_kill_other_threads_np();
16403 if ac_fn_c_try_link "$LINENO"; then :
16404 ol_cv_pthread_kthread=yes
16406 ol_cv_pthread_kthread=no
16408 rm -f core conftest.err conftest.$ac_objext \
16409 conftest$ac_exeext conftest.$ac_ext
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16414 /* pthread test headers */
16415 #include <pthread.h>
16416 #if HAVE_PTHREADS < 7
16420 #define NULL (void*)0
16423 static void *task(p)
16426 return (void *) (p == NULL);
16430 int main(argc, argv)
16435 /* pthread test function */
16436 #ifndef PTHREAD_CREATE_DETACHED
16437 #define PTHREAD_CREATE_DETACHED 1
16441 int detach = PTHREAD_CREATE_DETACHED;
16443 #if HAVE_PTHREADS > 4
16444 /* Final pthreads */
16445 pthread_attr_t attr;
16447 status = pthread_attr_init(&attr);
16448 if( status ) return status;
16450 #if HAVE_PTHREADS < 7
16451 status = pthread_attr_setdetachstate(&attr, &detach);
16452 if( status < 0 ) status = errno;
16454 status = pthread_attr_setdetachstate(&attr, detach);
16456 if( status ) return status;
16457 status = pthread_create( &t, &attr, task, NULL );
16458 #if HAVE_PTHREADS < 7
16459 if( status < 0 ) status = errno;
16461 if( status ) return status;
16463 /* Draft 4 pthreads */
16464 status = pthread_create( &t, pthread_attr_default, task, NULL );
16465 if( status ) return errno;
16467 /* give thread a chance to complete */
16468 /* it should remain joinable and hence detachable */
16471 status = pthread_detach( &t );
16472 if( status ) return errno;
16475 #ifdef HAVE_LINUX_THREADS
16476 pthread_kill_other_threads_np();
16484 if ac_fn_c_try_run "$LINENO"; then :
16485 ol_cv_pthread_kthread=yes
16487 ol_cv_pthread_kthread=no
16489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16490 conftest.$ac_objext conftest.beam conftest.$ac_ext
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
16499 $as_echo "$ol_cv_pthread_kthread" >&6; }
16501 if test $ol_cv_pthread_kthread = yes ; then
16502 ol_link_pthreads="-kthread"
16503 ol_link_threads=posix
16507 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16508 if test "$ol_link_threads" = no ; then
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
16511 $as_echo_n "checking for pthread link with -pthread... " >&6; }
16512 if test "${ol_cv_pthread_pthread+set}" = set; then :
16513 $as_echo_n "(cached) " >&6
16518 LIBS="-pthread $LIBS"
16520 if test "$cross_compiling" = yes; then :
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16524 /* pthread test headers */
16525 #include <pthread.h>
16526 #if HAVE_PTHREADS < 7
16530 #define NULL (void*)0
16533 static void *task(p)
16536 return (void *) (p == NULL);
16543 /* pthread test function */
16544 #ifndef PTHREAD_CREATE_DETACHED
16545 #define PTHREAD_CREATE_DETACHED 1
16549 int detach = PTHREAD_CREATE_DETACHED;
16551 #if HAVE_PTHREADS > 4
16552 /* Final pthreads */
16553 pthread_attr_t attr;
16555 status = pthread_attr_init(&attr);
16556 if( status ) return status;
16558 #if HAVE_PTHREADS < 7
16559 status = pthread_attr_setdetachstate(&attr, &detach);
16560 if( status < 0 ) status = errno;
16562 status = pthread_attr_setdetachstate(&attr, detach);
16564 if( status ) return status;
16565 status = pthread_create( &t, &attr, task, NULL );
16566 #if HAVE_PTHREADS < 7
16567 if( status < 0 ) status = errno;
16569 if( status ) return status;
16571 /* Draft 4 pthreads */
16572 status = pthread_create( &t, pthread_attr_default, task, NULL );
16573 if( status ) return errno;
16575 /* give thread a chance to complete */
16576 /* it should remain joinable and hence detachable */
16579 status = pthread_detach( &t );
16580 if( status ) return errno;
16583 #ifdef HAVE_LINUX_THREADS
16584 pthread_kill_other_threads_np();
16593 if ac_fn_c_try_link "$LINENO"; then :
16594 ol_cv_pthread_pthread=yes
16596 ol_cv_pthread_pthread=no
16598 rm -f core conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16604 /* pthread test headers */
16605 #include <pthread.h>
16606 #if HAVE_PTHREADS < 7
16610 #define NULL (void*)0
16613 static void *task(p)
16616 return (void *) (p == NULL);
16620 int main(argc, argv)
16625 /* pthread test function */
16626 #ifndef PTHREAD_CREATE_DETACHED
16627 #define PTHREAD_CREATE_DETACHED 1
16631 int detach = PTHREAD_CREATE_DETACHED;
16633 #if HAVE_PTHREADS > 4
16634 /* Final pthreads */
16635 pthread_attr_t attr;
16637 status = pthread_attr_init(&attr);
16638 if( status ) return status;
16640 #if HAVE_PTHREADS < 7
16641 status = pthread_attr_setdetachstate(&attr, &detach);
16642 if( status < 0 ) status = errno;
16644 status = pthread_attr_setdetachstate(&attr, detach);
16646 if( status ) return status;
16647 status = pthread_create( &t, &attr, task, NULL );
16648 #if HAVE_PTHREADS < 7
16649 if( status < 0 ) status = errno;
16651 if( status ) return status;
16653 /* Draft 4 pthreads */
16654 status = pthread_create( &t, pthread_attr_default, task, NULL );
16655 if( status ) return errno;
16657 /* give thread a chance to complete */
16658 /* it should remain joinable and hence detachable */
16661 status = pthread_detach( &t );
16662 if( status ) return errno;
16665 #ifdef HAVE_LINUX_THREADS
16666 pthread_kill_other_threads_np();
16674 if ac_fn_c_try_run "$LINENO"; then :
16675 ol_cv_pthread_pthread=yes
16677 ol_cv_pthread_pthread=no
16679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16680 conftest.$ac_objext conftest.beam conftest.$ac_ext
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
16689 $as_echo "$ol_cv_pthread_pthread" >&6; }
16691 if test $ol_cv_pthread_pthread = yes ; then
16692 ol_link_pthreads="-pthread"
16693 ol_link_threads=posix
16697 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16698 if test "$ol_link_threads" = no ; then
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
16701 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
16702 if test "${ol_cv_pthread_pthreads+set}" = set; then :
16703 $as_echo_n "(cached) " >&6
16708 LIBS="-pthreads $LIBS"
16710 if test "$cross_compiling" = yes; then :
16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16714 /* pthread test headers */
16715 #include <pthread.h>
16716 #if HAVE_PTHREADS < 7
16720 #define NULL (void*)0
16723 static void *task(p)
16726 return (void *) (p == NULL);
16733 /* pthread test function */
16734 #ifndef PTHREAD_CREATE_DETACHED
16735 #define PTHREAD_CREATE_DETACHED 1
16739 int detach = PTHREAD_CREATE_DETACHED;
16741 #if HAVE_PTHREADS > 4
16742 /* Final pthreads */
16743 pthread_attr_t attr;
16745 status = pthread_attr_init(&attr);
16746 if( status ) return status;
16748 #if HAVE_PTHREADS < 7
16749 status = pthread_attr_setdetachstate(&attr, &detach);
16750 if( status < 0 ) status = errno;
16752 status = pthread_attr_setdetachstate(&attr, detach);
16754 if( status ) return status;
16755 status = pthread_create( &t, &attr, task, NULL );
16756 #if HAVE_PTHREADS < 7
16757 if( status < 0 ) status = errno;
16759 if( status ) return status;
16761 /* Draft 4 pthreads */
16762 status = pthread_create( &t, pthread_attr_default, task, NULL );
16763 if( status ) return errno;
16765 /* give thread a chance to complete */
16766 /* it should remain joinable and hence detachable */
16769 status = pthread_detach( &t );
16770 if( status ) return errno;
16773 #ifdef HAVE_LINUX_THREADS
16774 pthread_kill_other_threads_np();
16783 if ac_fn_c_try_link "$LINENO"; then :
16784 ol_cv_pthread_pthreads=yes
16786 ol_cv_pthread_pthreads=no
16788 rm -f core conftest.err conftest.$ac_objext \
16789 conftest$ac_exeext conftest.$ac_ext
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16794 /* pthread test headers */
16795 #include <pthread.h>
16796 #if HAVE_PTHREADS < 7
16800 #define NULL (void*)0
16803 static void *task(p)
16806 return (void *) (p == NULL);
16810 int main(argc, argv)
16815 /* pthread test function */
16816 #ifndef PTHREAD_CREATE_DETACHED
16817 #define PTHREAD_CREATE_DETACHED 1
16821 int detach = PTHREAD_CREATE_DETACHED;
16823 #if HAVE_PTHREADS > 4
16824 /* Final pthreads */
16825 pthread_attr_t attr;
16827 status = pthread_attr_init(&attr);
16828 if( status ) return status;
16830 #if HAVE_PTHREADS < 7
16831 status = pthread_attr_setdetachstate(&attr, &detach);
16832 if( status < 0 ) status = errno;
16834 status = pthread_attr_setdetachstate(&attr, detach);
16836 if( status ) return status;
16837 status = pthread_create( &t, &attr, task, NULL );
16838 #if HAVE_PTHREADS < 7
16839 if( status < 0 ) status = errno;
16841 if( status ) return status;
16843 /* Draft 4 pthreads */
16844 status = pthread_create( &t, pthread_attr_default, task, NULL );
16845 if( status ) return errno;
16847 /* give thread a chance to complete */
16848 /* it should remain joinable and hence detachable */
16851 status = pthread_detach( &t );
16852 if( status ) return errno;
16855 #ifdef HAVE_LINUX_THREADS
16856 pthread_kill_other_threads_np();
16864 if ac_fn_c_try_run "$LINENO"; then :
16865 ol_cv_pthread_pthreads=yes
16867 ol_cv_pthread_pthreads=no
16869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16870 conftest.$ac_objext conftest.beam conftest.$ac_ext
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
16879 $as_echo "$ol_cv_pthread_pthreads" >&6; }
16881 if test $ol_cv_pthread_pthreads = yes ; then
16882 ol_link_pthreads="-pthreads"
16883 ol_link_threads=posix
16887 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16888 if test "$ol_link_threads" = no ; then
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
16891 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
16892 if test "${ol_cv_pthread_mthreads+set}" = set; then :
16893 $as_echo_n "(cached) " >&6
16898 LIBS="-mthreads $LIBS"
16900 if test "$cross_compiling" = yes; then :
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16904 /* pthread test headers */
16905 #include <pthread.h>
16906 #if HAVE_PTHREADS < 7
16910 #define NULL (void*)0
16913 static void *task(p)
16916 return (void *) (p == NULL);
16923 /* pthread test function */
16924 #ifndef PTHREAD_CREATE_DETACHED
16925 #define PTHREAD_CREATE_DETACHED 1
16929 int detach = PTHREAD_CREATE_DETACHED;
16931 #if HAVE_PTHREADS > 4
16932 /* Final pthreads */
16933 pthread_attr_t attr;
16935 status = pthread_attr_init(&attr);
16936 if( status ) return status;
16938 #if HAVE_PTHREADS < 7
16939 status = pthread_attr_setdetachstate(&attr, &detach);
16940 if( status < 0 ) status = errno;
16942 status = pthread_attr_setdetachstate(&attr, detach);
16944 if( status ) return status;
16945 status = pthread_create( &t, &attr, task, NULL );
16946 #if HAVE_PTHREADS < 7
16947 if( status < 0 ) status = errno;
16949 if( status ) return status;
16951 /* Draft 4 pthreads */
16952 status = pthread_create( &t, pthread_attr_default, task, NULL );
16953 if( status ) return errno;
16955 /* give thread a chance to complete */
16956 /* it should remain joinable and hence detachable */
16959 status = pthread_detach( &t );
16960 if( status ) return errno;
16963 #ifdef HAVE_LINUX_THREADS
16964 pthread_kill_other_threads_np();
16973 if ac_fn_c_try_link "$LINENO"; then :
16974 ol_cv_pthread_mthreads=yes
16976 ol_cv_pthread_mthreads=no
16978 rm -f core conftest.err conftest.$ac_objext \
16979 conftest$ac_exeext conftest.$ac_ext
16981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h. */
16984 /* pthread test headers */
16985 #include <pthread.h>
16986 #if HAVE_PTHREADS < 7
16990 #define NULL (void*)0
16993 static void *task(p)
16996 return (void *) (p == NULL);
17000 int main(argc, argv)
17005 /* pthread test function */
17006 #ifndef PTHREAD_CREATE_DETACHED
17007 #define PTHREAD_CREATE_DETACHED 1
17011 int detach = PTHREAD_CREATE_DETACHED;
17013 #if HAVE_PTHREADS > 4
17014 /* Final pthreads */
17015 pthread_attr_t attr;
17017 status = pthread_attr_init(&attr);
17018 if( status ) return status;
17020 #if HAVE_PTHREADS < 7
17021 status = pthread_attr_setdetachstate(&attr, &detach);
17022 if( status < 0 ) status = errno;
17024 status = pthread_attr_setdetachstate(&attr, detach);
17026 if( status ) return status;
17027 status = pthread_create( &t, &attr, task, NULL );
17028 #if HAVE_PTHREADS < 7
17029 if( status < 0 ) status = errno;
17031 if( status ) return status;
17033 /* Draft 4 pthreads */
17034 status = pthread_create( &t, pthread_attr_default, task, NULL );
17035 if( status ) return errno;
17037 /* give thread a chance to complete */
17038 /* it should remain joinable and hence detachable */
17041 status = pthread_detach( &t );
17042 if( status ) return errno;
17045 #ifdef HAVE_LINUX_THREADS
17046 pthread_kill_other_threads_np();
17054 if ac_fn_c_try_run "$LINENO"; then :
17055 ol_cv_pthread_mthreads=yes
17057 ol_cv_pthread_mthreads=no
17059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17060 conftest.$ac_objext conftest.beam conftest.$ac_ext
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
17069 $as_echo "$ol_cv_pthread_mthreads" >&6; }
17071 if test $ol_cv_pthread_mthreads = yes ; then
17072 ol_link_pthreads="-mthreads"
17073 ol_link_threads=posix
17077 # Pthread try link: -thread (ol_cv_pthread_thread)
17078 if test "$ol_link_threads" = no ; then
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
17081 $as_echo_n "checking for pthread link with -thread... " >&6; }
17082 if test "${ol_cv_pthread_thread+set}" = set; then :
17083 $as_echo_n "(cached) " >&6
17088 LIBS="-thread $LIBS"
17090 if test "$cross_compiling" = yes; then :
17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092 /* end confdefs.h. */
17094 /* pthread test headers */
17095 #include <pthread.h>
17096 #if HAVE_PTHREADS < 7
17100 #define NULL (void*)0
17103 static void *task(p)
17106 return (void *) (p == NULL);
17113 /* pthread test function */
17114 #ifndef PTHREAD_CREATE_DETACHED
17115 #define PTHREAD_CREATE_DETACHED 1
17119 int detach = PTHREAD_CREATE_DETACHED;
17121 #if HAVE_PTHREADS > 4
17122 /* Final pthreads */
17123 pthread_attr_t attr;
17125 status = pthread_attr_init(&attr);
17126 if( status ) return status;
17128 #if HAVE_PTHREADS < 7
17129 status = pthread_attr_setdetachstate(&attr, &detach);
17130 if( status < 0 ) status = errno;
17132 status = pthread_attr_setdetachstate(&attr, detach);
17134 if( status ) return status;
17135 status = pthread_create( &t, &attr, task, NULL );
17136 #if HAVE_PTHREADS < 7
17137 if( status < 0 ) status = errno;
17139 if( status ) return status;
17141 /* Draft 4 pthreads */
17142 status = pthread_create( &t, pthread_attr_default, task, NULL );
17143 if( status ) return errno;
17145 /* give thread a chance to complete */
17146 /* it should remain joinable and hence detachable */
17149 status = pthread_detach( &t );
17150 if( status ) return errno;
17153 #ifdef HAVE_LINUX_THREADS
17154 pthread_kill_other_threads_np();
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 ol_cv_pthread_thread=yes
17166 ol_cv_pthread_thread=no
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17174 /* pthread test headers */
17175 #include <pthread.h>
17176 #if HAVE_PTHREADS < 7
17180 #define NULL (void*)0
17183 static void *task(p)
17186 return (void *) (p == NULL);
17190 int main(argc, argv)
17195 /* pthread test function */
17196 #ifndef PTHREAD_CREATE_DETACHED
17197 #define PTHREAD_CREATE_DETACHED 1
17201 int detach = PTHREAD_CREATE_DETACHED;
17203 #if HAVE_PTHREADS > 4
17204 /* Final pthreads */
17205 pthread_attr_t attr;
17207 status = pthread_attr_init(&attr);
17208 if( status ) return status;
17210 #if HAVE_PTHREADS < 7
17211 status = pthread_attr_setdetachstate(&attr, &detach);
17212 if( status < 0 ) status = errno;
17214 status = pthread_attr_setdetachstate(&attr, detach);
17216 if( status ) return status;
17217 status = pthread_create( &t, &attr, task, NULL );
17218 #if HAVE_PTHREADS < 7
17219 if( status < 0 ) status = errno;
17221 if( status ) return status;
17223 /* Draft 4 pthreads */
17224 status = pthread_create( &t, pthread_attr_default, task, NULL );
17225 if( status ) return errno;
17227 /* give thread a chance to complete */
17228 /* it should remain joinable and hence detachable */
17231 status = pthread_detach( &t );
17232 if( status ) return errno;
17235 #ifdef HAVE_LINUX_THREADS
17236 pthread_kill_other_threads_np();
17244 if ac_fn_c_try_run "$LINENO"; then :
17245 ol_cv_pthread_thread=yes
17247 ol_cv_pthread_thread=no
17249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17250 conftest.$ac_objext conftest.beam conftest.$ac_ext
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
17259 $as_echo "$ol_cv_pthread_thread" >&6; }
17261 if test $ol_cv_pthread_thread = yes ; then
17262 ol_link_pthreads="-thread"
17263 ol_link_threads=posix
17268 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17269 if test "$ol_link_threads" = no ; then
17270 # try -lpthread -lmach -lexc -lc_r
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17272 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
17273 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then :
17274 $as_echo_n "(cached) " >&6
17279 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17281 if test "$cross_compiling" = yes; then :
17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17285 /* pthread test headers */
17286 #include <pthread.h>
17287 #if HAVE_PTHREADS < 7
17291 #define NULL (void*)0
17294 static void *task(p)
17297 return (void *) (p == NULL);
17304 /* pthread test function */
17305 #ifndef PTHREAD_CREATE_DETACHED
17306 #define PTHREAD_CREATE_DETACHED 1
17310 int detach = PTHREAD_CREATE_DETACHED;
17312 #if HAVE_PTHREADS > 4
17313 /* Final pthreads */
17314 pthread_attr_t attr;
17316 status = pthread_attr_init(&attr);
17317 if( status ) return status;
17319 #if HAVE_PTHREADS < 7
17320 status = pthread_attr_setdetachstate(&attr, &detach);
17321 if( status < 0 ) status = errno;
17323 status = pthread_attr_setdetachstate(&attr, detach);
17325 if( status ) return status;
17326 status = pthread_create( &t, &attr, task, NULL );
17327 #if HAVE_PTHREADS < 7
17328 if( status < 0 ) status = errno;
17330 if( status ) return status;
17332 /* Draft 4 pthreads */
17333 status = pthread_create( &t, pthread_attr_default, task, NULL );
17334 if( status ) return errno;
17336 /* give thread a chance to complete */
17337 /* it should remain joinable and hence detachable */
17340 status = pthread_detach( &t );
17341 if( status ) return errno;
17344 #ifdef HAVE_LINUX_THREADS
17345 pthread_kill_other_threads_np();
17354 if ac_fn_c_try_link "$LINENO"; then :
17355 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17357 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17359 rm -f core conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17365 /* pthread test headers */
17366 #include <pthread.h>
17367 #if HAVE_PTHREADS < 7
17371 #define NULL (void*)0
17374 static void *task(p)
17377 return (void *) (p == NULL);
17381 int main(argc, argv)
17386 /* pthread test function */
17387 #ifndef PTHREAD_CREATE_DETACHED
17388 #define PTHREAD_CREATE_DETACHED 1
17392 int detach = PTHREAD_CREATE_DETACHED;
17394 #if HAVE_PTHREADS > 4
17395 /* Final pthreads */
17396 pthread_attr_t attr;
17398 status = pthread_attr_init(&attr);
17399 if( status ) return status;
17401 #if HAVE_PTHREADS < 7
17402 status = pthread_attr_setdetachstate(&attr, &detach);
17403 if( status < 0 ) status = errno;
17405 status = pthread_attr_setdetachstate(&attr, detach);
17407 if( status ) return status;
17408 status = pthread_create( &t, &attr, task, NULL );
17409 #if HAVE_PTHREADS < 7
17410 if( status < 0 ) status = errno;
17412 if( status ) return status;
17414 /* Draft 4 pthreads */
17415 status = pthread_create( &t, pthread_attr_default, task, NULL );
17416 if( status ) return errno;
17418 /* give thread a chance to complete */
17419 /* it should remain joinable and hence detachable */
17422 status = pthread_detach( &t );
17423 if( status ) return errno;
17426 #ifdef HAVE_LINUX_THREADS
17427 pthread_kill_other_threads_np();
17435 if ac_fn_c_try_run "$LINENO"; then :
17436 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17438 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17441 conftest.$ac_objext conftest.beam conftest.$ac_ext
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17450 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
17452 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17453 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17454 ol_link_threads=posix
17458 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17459 if test "$ol_link_threads" = no ; then
17460 # try -lpthread -lmach -lexc
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
17462 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
17463 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then :
17464 $as_echo_n "(cached) " >&6
17469 LIBS="-lpthread -lmach -lexc $LIBS"
17471 if test "$cross_compiling" = yes; then :
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17475 /* pthread test headers */
17476 #include <pthread.h>
17477 #if HAVE_PTHREADS < 7
17481 #define NULL (void*)0
17484 static void *task(p)
17487 return (void *) (p == NULL);
17494 /* pthread test function */
17495 #ifndef PTHREAD_CREATE_DETACHED
17496 #define PTHREAD_CREATE_DETACHED 1
17500 int detach = PTHREAD_CREATE_DETACHED;
17502 #if HAVE_PTHREADS > 4
17503 /* Final pthreads */
17504 pthread_attr_t attr;
17506 status = pthread_attr_init(&attr);
17507 if( status ) return status;
17509 #if HAVE_PTHREADS < 7
17510 status = pthread_attr_setdetachstate(&attr, &detach);
17511 if( status < 0 ) status = errno;
17513 status = pthread_attr_setdetachstate(&attr, detach);
17515 if( status ) return status;
17516 status = pthread_create( &t, &attr, task, NULL );
17517 #if HAVE_PTHREADS < 7
17518 if( status < 0 ) status = errno;
17520 if( status ) return status;
17522 /* Draft 4 pthreads */
17523 status = pthread_create( &t, pthread_attr_default, task, NULL );
17524 if( status ) return errno;
17526 /* give thread a chance to complete */
17527 /* it should remain joinable and hence detachable */
17530 status = pthread_detach( &t );
17531 if( status ) return errno;
17534 #ifdef HAVE_LINUX_THREADS
17535 pthread_kill_other_threads_np();
17544 if ac_fn_c_try_link "$LINENO"; then :
17545 ol_cv_pthread_lpthread_lmach_lexc=yes
17547 ol_cv_pthread_lpthread_lmach_lexc=no
17549 rm -f core conftest.err conftest.$ac_objext \
17550 conftest$ac_exeext conftest.$ac_ext
17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h. */
17555 /* pthread test headers */
17556 #include <pthread.h>
17557 #if HAVE_PTHREADS < 7
17561 #define NULL (void*)0
17564 static void *task(p)
17567 return (void *) (p == NULL);
17571 int main(argc, argv)
17576 /* pthread test function */
17577 #ifndef PTHREAD_CREATE_DETACHED
17578 #define PTHREAD_CREATE_DETACHED 1
17582 int detach = PTHREAD_CREATE_DETACHED;
17584 #if HAVE_PTHREADS > 4
17585 /* Final pthreads */
17586 pthread_attr_t attr;
17588 status = pthread_attr_init(&attr);
17589 if( status ) return status;
17591 #if HAVE_PTHREADS < 7
17592 status = pthread_attr_setdetachstate(&attr, &detach);
17593 if( status < 0 ) status = errno;
17595 status = pthread_attr_setdetachstate(&attr, detach);
17597 if( status ) return status;
17598 status = pthread_create( &t, &attr, task, NULL );
17599 #if HAVE_PTHREADS < 7
17600 if( status < 0 ) status = errno;
17602 if( status ) return status;
17604 /* Draft 4 pthreads */
17605 status = pthread_create( &t, pthread_attr_default, task, NULL );
17606 if( status ) return errno;
17608 /* give thread a chance to complete */
17609 /* it should remain joinable and hence detachable */
17612 status = pthread_detach( &t );
17613 if( status ) return errno;
17616 #ifdef HAVE_LINUX_THREADS
17617 pthread_kill_other_threads_np();
17625 if ac_fn_c_try_run "$LINENO"; then :
17626 ol_cv_pthread_lpthread_lmach_lexc=yes
17628 ol_cv_pthread_lpthread_lmach_lexc=no
17630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17631 conftest.$ac_objext conftest.beam conftest.$ac_ext
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17640 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
17642 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17643 ol_link_pthreads="-lpthread -lmach -lexc"
17644 ol_link_threads=posix
17649 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17650 if test "$ol_link_threads" = no ; then
17651 # try -lpthread -Wl,-woff,85
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17653 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
17654 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then :
17655 $as_echo_n "(cached) " >&6
17660 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17662 if test "$cross_compiling" = yes; then :
17663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17666 /* pthread test headers */
17667 #include <pthread.h>
17668 #if HAVE_PTHREADS < 7
17672 #define NULL (void*)0
17675 static void *task(p)
17678 return (void *) (p == NULL);
17685 /* pthread test function */
17686 #ifndef PTHREAD_CREATE_DETACHED
17687 #define PTHREAD_CREATE_DETACHED 1
17691 int detach = PTHREAD_CREATE_DETACHED;
17693 #if HAVE_PTHREADS > 4
17694 /* Final pthreads */
17695 pthread_attr_t attr;
17697 status = pthread_attr_init(&attr);
17698 if( status ) return status;
17700 #if HAVE_PTHREADS < 7
17701 status = pthread_attr_setdetachstate(&attr, &detach);
17702 if( status < 0 ) status = errno;
17704 status = pthread_attr_setdetachstate(&attr, detach);
17706 if( status ) return status;
17707 status = pthread_create( &t, &attr, task, NULL );
17708 #if HAVE_PTHREADS < 7
17709 if( status < 0 ) status = errno;
17711 if( status ) return status;
17713 /* Draft 4 pthreads */
17714 status = pthread_create( &t, pthread_attr_default, task, NULL );
17715 if( status ) return errno;
17717 /* give thread a chance to complete */
17718 /* it should remain joinable and hence detachable */
17721 status = pthread_detach( &t );
17722 if( status ) return errno;
17725 #ifdef HAVE_LINUX_THREADS
17726 pthread_kill_other_threads_np();
17735 if ac_fn_c_try_link "$LINENO"; then :
17736 ol_cv_pthread_lib_lpthread_woff=yes
17738 ol_cv_pthread_lib_lpthread_woff=no
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 /* pthread test headers */
17747 #include <pthread.h>
17748 #if HAVE_PTHREADS < 7
17752 #define NULL (void*)0
17755 static void *task(p)
17758 return (void *) (p == NULL);
17762 int main(argc, argv)
17767 /* pthread test function */
17768 #ifndef PTHREAD_CREATE_DETACHED
17769 #define PTHREAD_CREATE_DETACHED 1
17773 int detach = PTHREAD_CREATE_DETACHED;
17775 #if HAVE_PTHREADS > 4
17776 /* Final pthreads */
17777 pthread_attr_t attr;
17779 status = pthread_attr_init(&attr);
17780 if( status ) return status;
17782 #if HAVE_PTHREADS < 7
17783 status = pthread_attr_setdetachstate(&attr, &detach);
17784 if( status < 0 ) status = errno;
17786 status = pthread_attr_setdetachstate(&attr, detach);
17788 if( status ) return status;
17789 status = pthread_create( &t, &attr, task, NULL );
17790 #if HAVE_PTHREADS < 7
17791 if( status < 0 ) status = errno;
17793 if( status ) return status;
17795 /* Draft 4 pthreads */
17796 status = pthread_create( &t, pthread_attr_default, task, NULL );
17797 if( status ) return errno;
17799 /* give thread a chance to complete */
17800 /* it should remain joinable and hence detachable */
17803 status = pthread_detach( &t );
17804 if( status ) return errno;
17807 #ifdef HAVE_LINUX_THREADS
17808 pthread_kill_other_threads_np();
17816 if ac_fn_c_try_run "$LINENO"; then :
17817 ol_cv_pthread_lib_lpthread_woff=yes
17819 ol_cv_pthread_lib_lpthread_woff=no
17821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17822 conftest.$ac_objext conftest.beam conftest.$ac_ext
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17831 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
17833 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17834 ol_link_pthreads="-lpthread -Wl,-woff,85"
17835 ol_link_threads=posix
17840 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17841 if test "$ol_link_threads" = no ; then
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
17844 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
17845 if test "${ol_cv_pthread_lpthread+set}" = set; then :
17846 $as_echo_n "(cached) " >&6
17851 LIBS="-lpthread $LIBS"
17853 if test "$cross_compiling" = yes; then :
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17857 /* pthread test headers */
17858 #include <pthread.h>
17859 #if HAVE_PTHREADS < 7
17863 #define NULL (void*)0
17866 static void *task(p)
17869 return (void *) (p == NULL);
17876 /* pthread test function */
17877 #ifndef PTHREAD_CREATE_DETACHED
17878 #define PTHREAD_CREATE_DETACHED 1
17882 int detach = PTHREAD_CREATE_DETACHED;
17884 #if HAVE_PTHREADS > 4
17885 /* Final pthreads */
17886 pthread_attr_t attr;
17888 status = pthread_attr_init(&attr);
17889 if( status ) return status;
17891 #if HAVE_PTHREADS < 7
17892 status = pthread_attr_setdetachstate(&attr, &detach);
17893 if( status < 0 ) status = errno;
17895 status = pthread_attr_setdetachstate(&attr, detach);
17897 if( status ) return status;
17898 status = pthread_create( &t, &attr, task, NULL );
17899 #if HAVE_PTHREADS < 7
17900 if( status < 0 ) status = errno;
17902 if( status ) return status;
17904 /* Draft 4 pthreads */
17905 status = pthread_create( &t, pthread_attr_default, task, NULL );
17906 if( status ) return errno;
17908 /* give thread a chance to complete */
17909 /* it should remain joinable and hence detachable */
17912 status = pthread_detach( &t );
17913 if( status ) return errno;
17916 #ifdef HAVE_LINUX_THREADS
17917 pthread_kill_other_threads_np();
17926 if ac_fn_c_try_link "$LINENO"; then :
17927 ol_cv_pthread_lpthread=yes
17929 ol_cv_pthread_lpthread=no
17931 rm -f core conftest.err conftest.$ac_objext \
17932 conftest$ac_exeext conftest.$ac_ext
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17937 /* pthread test headers */
17938 #include <pthread.h>
17939 #if HAVE_PTHREADS < 7
17943 #define NULL (void*)0
17946 static void *task(p)
17949 return (void *) (p == NULL);
17953 int main(argc, argv)
17958 /* pthread test function */
17959 #ifndef PTHREAD_CREATE_DETACHED
17960 #define PTHREAD_CREATE_DETACHED 1
17964 int detach = PTHREAD_CREATE_DETACHED;
17966 #if HAVE_PTHREADS > 4
17967 /* Final pthreads */
17968 pthread_attr_t attr;
17970 status = pthread_attr_init(&attr);
17971 if( status ) return status;
17973 #if HAVE_PTHREADS < 7
17974 status = pthread_attr_setdetachstate(&attr, &detach);
17975 if( status < 0 ) status = errno;
17977 status = pthread_attr_setdetachstate(&attr, detach);
17979 if( status ) return status;
17980 status = pthread_create( &t, &attr, task, NULL );
17981 #if HAVE_PTHREADS < 7
17982 if( status < 0 ) status = errno;
17984 if( status ) return status;
17986 /* Draft 4 pthreads */
17987 status = pthread_create( &t, pthread_attr_default, task, NULL );
17988 if( status ) return errno;
17990 /* give thread a chance to complete */
17991 /* it should remain joinable and hence detachable */
17994 status = pthread_detach( &t );
17995 if( status ) return errno;
17998 #ifdef HAVE_LINUX_THREADS
17999 pthread_kill_other_threads_np();
18007 if ac_fn_c_try_run "$LINENO"; then :
18008 ol_cv_pthread_lpthread=yes
18010 ol_cv_pthread_lpthread=no
18012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18013 conftest.$ac_objext conftest.beam conftest.$ac_ext
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
18022 $as_echo "$ol_cv_pthread_lpthread" >&6; }
18024 if test $ol_cv_pthread_lpthread = yes ; then
18025 ol_link_pthreads="-lpthread"
18026 ol_link_threads=posix
18030 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
18031 if test "$ol_link_threads" = no ; then
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
18034 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
18035 if test "${ol_cv_pthread_lc_r+set}" = set; then :
18036 $as_echo_n "(cached) " >&6
18043 if test "$cross_compiling" = yes; then :
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18047 /* pthread test headers */
18048 #include <pthread.h>
18049 #if HAVE_PTHREADS < 7
18053 #define NULL (void*)0
18056 static void *task(p)
18059 return (void *) (p == NULL);
18066 /* pthread test function */
18067 #ifndef PTHREAD_CREATE_DETACHED
18068 #define PTHREAD_CREATE_DETACHED 1
18072 int detach = PTHREAD_CREATE_DETACHED;
18074 #if HAVE_PTHREADS > 4
18075 /* Final pthreads */
18076 pthread_attr_t attr;
18078 status = pthread_attr_init(&attr);
18079 if( status ) return status;
18081 #if HAVE_PTHREADS < 7
18082 status = pthread_attr_setdetachstate(&attr, &detach);
18083 if( status < 0 ) status = errno;
18085 status = pthread_attr_setdetachstate(&attr, detach);
18087 if( status ) return status;
18088 status = pthread_create( &t, &attr, task, NULL );
18089 #if HAVE_PTHREADS < 7
18090 if( status < 0 ) status = errno;
18092 if( status ) return status;
18094 /* Draft 4 pthreads */
18095 status = pthread_create( &t, pthread_attr_default, task, NULL );
18096 if( status ) return errno;
18098 /* give thread a chance to complete */
18099 /* it should remain joinable and hence detachable */
18102 status = pthread_detach( &t );
18103 if( status ) return errno;
18106 #ifdef HAVE_LINUX_THREADS
18107 pthread_kill_other_threads_np();
18116 if ac_fn_c_try_link "$LINENO"; then :
18117 ol_cv_pthread_lc_r=yes
18119 ol_cv_pthread_lc_r=no
18121 rm -f core conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h. */
18127 /* pthread test headers */
18128 #include <pthread.h>
18129 #if HAVE_PTHREADS < 7
18133 #define NULL (void*)0
18136 static void *task(p)
18139 return (void *) (p == NULL);
18143 int main(argc, argv)
18148 /* pthread test function */
18149 #ifndef PTHREAD_CREATE_DETACHED
18150 #define PTHREAD_CREATE_DETACHED 1
18154 int detach = PTHREAD_CREATE_DETACHED;
18156 #if HAVE_PTHREADS > 4
18157 /* Final pthreads */
18158 pthread_attr_t attr;
18160 status = pthread_attr_init(&attr);
18161 if( status ) return status;
18163 #if HAVE_PTHREADS < 7
18164 status = pthread_attr_setdetachstate(&attr, &detach);
18165 if( status < 0 ) status = errno;
18167 status = pthread_attr_setdetachstate(&attr, detach);
18169 if( status ) return status;
18170 status = pthread_create( &t, &attr, task, NULL );
18171 #if HAVE_PTHREADS < 7
18172 if( status < 0 ) status = errno;
18174 if( status ) return status;
18176 /* Draft 4 pthreads */
18177 status = pthread_create( &t, pthread_attr_default, task, NULL );
18178 if( status ) return errno;
18180 /* give thread a chance to complete */
18181 /* it should remain joinable and hence detachable */
18184 status = pthread_detach( &t );
18185 if( status ) return errno;
18188 #ifdef HAVE_LINUX_THREADS
18189 pthread_kill_other_threads_np();
18197 if ac_fn_c_try_run "$LINENO"; then :
18198 ol_cv_pthread_lc_r=yes
18200 ol_cv_pthread_lc_r=no
18202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18203 conftest.$ac_objext conftest.beam conftest.$ac_ext
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
18212 $as_echo "$ol_cv_pthread_lc_r" >&6; }
18214 if test $ol_cv_pthread_lc_r = yes ; then
18215 ol_link_pthreads="-lc_r"
18216 ol_link_threads=posix
18221 # Pthread try link: -threads (ol_cv_pthread_threads)
18222 if test "$ol_link_threads" = no ; then
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
18225 $as_echo_n "checking for pthread link with -threads... " >&6; }
18226 if test "${ol_cv_pthread_threads+set}" = set; then :
18227 $as_echo_n "(cached) " >&6
18232 LIBS="-threads $LIBS"
18234 if test "$cross_compiling" = yes; then :
18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18238 /* pthread test headers */
18239 #include <pthread.h>
18240 #if HAVE_PTHREADS < 7
18244 #define NULL (void*)0
18247 static void *task(p)
18250 return (void *) (p == NULL);
18257 /* pthread test function */
18258 #ifndef PTHREAD_CREATE_DETACHED
18259 #define PTHREAD_CREATE_DETACHED 1
18263 int detach = PTHREAD_CREATE_DETACHED;
18265 #if HAVE_PTHREADS > 4
18266 /* Final pthreads */
18267 pthread_attr_t attr;
18269 status = pthread_attr_init(&attr);
18270 if( status ) return status;
18272 #if HAVE_PTHREADS < 7
18273 status = pthread_attr_setdetachstate(&attr, &detach);
18274 if( status < 0 ) status = errno;
18276 status = pthread_attr_setdetachstate(&attr, detach);
18278 if( status ) return status;
18279 status = pthread_create( &t, &attr, task, NULL );
18280 #if HAVE_PTHREADS < 7
18281 if( status < 0 ) status = errno;
18283 if( status ) return status;
18285 /* Draft 4 pthreads */
18286 status = pthread_create( &t, pthread_attr_default, task, NULL );
18287 if( status ) return errno;
18289 /* give thread a chance to complete */
18290 /* it should remain joinable and hence detachable */
18293 status = pthread_detach( &t );
18294 if( status ) return errno;
18297 #ifdef HAVE_LINUX_THREADS
18298 pthread_kill_other_threads_np();
18307 if ac_fn_c_try_link "$LINENO"; then :
18308 ol_cv_pthread_threads=yes
18310 ol_cv_pthread_threads=no
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18316 /* end confdefs.h. */
18318 /* pthread test headers */
18319 #include <pthread.h>
18320 #if HAVE_PTHREADS < 7
18324 #define NULL (void*)0
18327 static void *task(p)
18330 return (void *) (p == NULL);
18334 int main(argc, argv)
18339 /* pthread test function */
18340 #ifndef PTHREAD_CREATE_DETACHED
18341 #define PTHREAD_CREATE_DETACHED 1
18345 int detach = PTHREAD_CREATE_DETACHED;
18347 #if HAVE_PTHREADS > 4
18348 /* Final pthreads */
18349 pthread_attr_t attr;
18351 status = pthread_attr_init(&attr);
18352 if( status ) return status;
18354 #if HAVE_PTHREADS < 7
18355 status = pthread_attr_setdetachstate(&attr, &detach);
18356 if( status < 0 ) status = errno;
18358 status = pthread_attr_setdetachstate(&attr, detach);
18360 if( status ) return status;
18361 status = pthread_create( &t, &attr, task, NULL );
18362 #if HAVE_PTHREADS < 7
18363 if( status < 0 ) status = errno;
18365 if( status ) return status;
18367 /* Draft 4 pthreads */
18368 status = pthread_create( &t, pthread_attr_default, task, NULL );
18369 if( status ) return errno;
18371 /* give thread a chance to complete */
18372 /* it should remain joinable and hence detachable */
18375 status = pthread_detach( &t );
18376 if( status ) return errno;
18379 #ifdef HAVE_LINUX_THREADS
18380 pthread_kill_other_threads_np();
18388 if ac_fn_c_try_run "$LINENO"; then :
18389 ol_cv_pthread_threads=yes
18391 ol_cv_pthread_threads=no
18393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18394 conftest.$ac_objext conftest.beam conftest.$ac_ext
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
18403 $as_echo "$ol_cv_pthread_threads" >&6; }
18405 if test $ol_cv_pthread_threads = yes ; then
18406 ol_link_pthreads="-threads"
18407 ol_link_threads=posix
18412 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18413 if test "$ol_link_threads" = no ; then
18414 # try -lpthreads -lmach -lexc -lc_r
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18416 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
18417 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then :
18418 $as_echo_n "(cached) " >&6
18423 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18425 if test "$cross_compiling" = yes; then :
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18429 /* pthread test headers */
18430 #include <pthread.h>
18431 #if HAVE_PTHREADS < 7
18435 #define NULL (void*)0
18438 static void *task(p)
18441 return (void *) (p == NULL);
18448 /* pthread test function */
18449 #ifndef PTHREAD_CREATE_DETACHED
18450 #define PTHREAD_CREATE_DETACHED 1
18454 int detach = PTHREAD_CREATE_DETACHED;
18456 #if HAVE_PTHREADS > 4
18457 /* Final pthreads */
18458 pthread_attr_t attr;
18460 status = pthread_attr_init(&attr);
18461 if( status ) return status;
18463 #if HAVE_PTHREADS < 7
18464 status = pthread_attr_setdetachstate(&attr, &detach);
18465 if( status < 0 ) status = errno;
18467 status = pthread_attr_setdetachstate(&attr, detach);
18469 if( status ) return status;
18470 status = pthread_create( &t, &attr, task, NULL );
18471 #if HAVE_PTHREADS < 7
18472 if( status < 0 ) status = errno;
18474 if( status ) return status;
18476 /* Draft 4 pthreads */
18477 status = pthread_create( &t, pthread_attr_default, task, NULL );
18478 if( status ) return errno;
18480 /* give thread a chance to complete */
18481 /* it should remain joinable and hence detachable */
18484 status = pthread_detach( &t );
18485 if( status ) return errno;
18488 #ifdef HAVE_LINUX_THREADS
18489 pthread_kill_other_threads_np();
18498 if ac_fn_c_try_link "$LINENO"; then :
18499 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18501 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18503 rm -f core conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18507 /* end confdefs.h. */
18509 /* pthread test headers */
18510 #include <pthread.h>
18511 #if HAVE_PTHREADS < 7
18515 #define NULL (void*)0
18518 static void *task(p)
18521 return (void *) (p == NULL);
18525 int main(argc, argv)
18530 /* pthread test function */
18531 #ifndef PTHREAD_CREATE_DETACHED
18532 #define PTHREAD_CREATE_DETACHED 1
18536 int detach = PTHREAD_CREATE_DETACHED;
18538 #if HAVE_PTHREADS > 4
18539 /* Final pthreads */
18540 pthread_attr_t attr;
18542 status = pthread_attr_init(&attr);
18543 if( status ) return status;
18545 #if HAVE_PTHREADS < 7
18546 status = pthread_attr_setdetachstate(&attr, &detach);
18547 if( status < 0 ) status = errno;
18549 status = pthread_attr_setdetachstate(&attr, detach);
18551 if( status ) return status;
18552 status = pthread_create( &t, &attr, task, NULL );
18553 #if HAVE_PTHREADS < 7
18554 if( status < 0 ) status = errno;
18556 if( status ) return status;
18558 /* Draft 4 pthreads */
18559 status = pthread_create( &t, pthread_attr_default, task, NULL );
18560 if( status ) return errno;
18562 /* give thread a chance to complete */
18563 /* it should remain joinable and hence detachable */
18566 status = pthread_detach( &t );
18567 if( status ) return errno;
18570 #ifdef HAVE_LINUX_THREADS
18571 pthread_kill_other_threads_np();
18579 if ac_fn_c_try_run "$LINENO"; then :
18580 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18582 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18585 conftest.$ac_objext conftest.beam conftest.$ac_ext
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18594 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
18596 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18597 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18598 ol_link_threads=posix
18602 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18603 if test "$ol_link_threads" = no ; then
18604 # try -lpthreads -lmach -lexc
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
18606 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
18607 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then :
18608 $as_echo_n "(cached) " >&6
18613 LIBS="-lpthreads -lmach -lexc $LIBS"
18615 if test "$cross_compiling" = yes; then :
18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617 /* end confdefs.h. */
18619 /* pthread test headers */
18620 #include <pthread.h>
18621 #if HAVE_PTHREADS < 7
18625 #define NULL (void*)0
18628 static void *task(p)
18631 return (void *) (p == NULL);
18638 /* pthread test function */
18639 #ifndef PTHREAD_CREATE_DETACHED
18640 #define PTHREAD_CREATE_DETACHED 1
18644 int detach = PTHREAD_CREATE_DETACHED;
18646 #if HAVE_PTHREADS > 4
18647 /* Final pthreads */
18648 pthread_attr_t attr;
18650 status = pthread_attr_init(&attr);
18651 if( status ) return status;
18653 #if HAVE_PTHREADS < 7
18654 status = pthread_attr_setdetachstate(&attr, &detach);
18655 if( status < 0 ) status = errno;
18657 status = pthread_attr_setdetachstate(&attr, detach);
18659 if( status ) return status;
18660 status = pthread_create( &t, &attr, task, NULL );
18661 #if HAVE_PTHREADS < 7
18662 if( status < 0 ) status = errno;
18664 if( status ) return status;
18666 /* Draft 4 pthreads */
18667 status = pthread_create( &t, pthread_attr_default, task, NULL );
18668 if( status ) return errno;
18670 /* give thread a chance to complete */
18671 /* it should remain joinable and hence detachable */
18674 status = pthread_detach( &t );
18675 if( status ) return errno;
18678 #ifdef HAVE_LINUX_THREADS
18679 pthread_kill_other_threads_np();
18688 if ac_fn_c_try_link "$LINENO"; then :
18689 ol_cv_pthread_lpthreads_lmach_lexc=yes
18691 ol_cv_pthread_lpthreads_lmach_lexc=no
18693 rm -f core conftest.err conftest.$ac_objext \
18694 conftest$ac_exeext conftest.$ac_ext
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18699 /* pthread test headers */
18700 #include <pthread.h>
18701 #if HAVE_PTHREADS < 7
18705 #define NULL (void*)0
18708 static void *task(p)
18711 return (void *) (p == NULL);
18715 int main(argc, argv)
18720 /* pthread test function */
18721 #ifndef PTHREAD_CREATE_DETACHED
18722 #define PTHREAD_CREATE_DETACHED 1
18726 int detach = PTHREAD_CREATE_DETACHED;
18728 #if HAVE_PTHREADS > 4
18729 /* Final pthreads */
18730 pthread_attr_t attr;
18732 status = pthread_attr_init(&attr);
18733 if( status ) return status;
18735 #if HAVE_PTHREADS < 7
18736 status = pthread_attr_setdetachstate(&attr, &detach);
18737 if( status < 0 ) status = errno;
18739 status = pthread_attr_setdetachstate(&attr, detach);
18741 if( status ) return status;
18742 status = pthread_create( &t, &attr, task, NULL );
18743 #if HAVE_PTHREADS < 7
18744 if( status < 0 ) status = errno;
18746 if( status ) return status;
18748 /* Draft 4 pthreads */
18749 status = pthread_create( &t, pthread_attr_default, task, NULL );
18750 if( status ) return errno;
18752 /* give thread a chance to complete */
18753 /* it should remain joinable and hence detachable */
18756 status = pthread_detach( &t );
18757 if( status ) return errno;
18760 #ifdef HAVE_LINUX_THREADS
18761 pthread_kill_other_threads_np();
18769 if ac_fn_c_try_run "$LINENO"; then :
18770 ol_cv_pthread_lpthreads_lmach_lexc=yes
18772 ol_cv_pthread_lpthreads_lmach_lexc=no
18774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18775 conftest.$ac_objext conftest.beam conftest.$ac_ext
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
18784 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
18786 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
18787 ol_link_pthreads="-lpthreads -lmach -lexc"
18788 ol_link_threads=posix
18792 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
18793 if test "$ol_link_threads" = no ; then
18794 # try -lpthreads -lexc
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
18796 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
18797 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then :
18798 $as_echo_n "(cached) " >&6
18803 LIBS="-lpthreads -lexc $LIBS"
18805 if test "$cross_compiling" = yes; then :
18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h. */
18809 /* pthread test headers */
18810 #include <pthread.h>
18811 #if HAVE_PTHREADS < 7
18815 #define NULL (void*)0
18818 static void *task(p)
18821 return (void *) (p == NULL);
18828 /* pthread test function */
18829 #ifndef PTHREAD_CREATE_DETACHED
18830 #define PTHREAD_CREATE_DETACHED 1
18834 int detach = PTHREAD_CREATE_DETACHED;
18836 #if HAVE_PTHREADS > 4
18837 /* Final pthreads */
18838 pthread_attr_t attr;
18840 status = pthread_attr_init(&attr);
18841 if( status ) return status;
18843 #if HAVE_PTHREADS < 7
18844 status = pthread_attr_setdetachstate(&attr, &detach);
18845 if( status < 0 ) status = errno;
18847 status = pthread_attr_setdetachstate(&attr, detach);
18849 if( status ) return status;
18850 status = pthread_create( &t, &attr, task, NULL );
18851 #if HAVE_PTHREADS < 7
18852 if( status < 0 ) status = errno;
18854 if( status ) return status;
18856 /* Draft 4 pthreads */
18857 status = pthread_create( &t, pthread_attr_default, task, NULL );
18858 if( status ) return errno;
18860 /* give thread a chance to complete */
18861 /* it should remain joinable and hence detachable */
18864 status = pthread_detach( &t );
18865 if( status ) return errno;
18868 #ifdef HAVE_LINUX_THREADS
18869 pthread_kill_other_threads_np();
18878 if ac_fn_c_try_link "$LINENO"; then :
18879 ol_cv_pthread_lpthreads_lexc=yes
18881 ol_cv_pthread_lpthreads_lexc=no
18883 rm -f core conftest.err conftest.$ac_objext \
18884 conftest$ac_exeext conftest.$ac_ext
18886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887 /* end confdefs.h. */
18889 /* pthread test headers */
18890 #include <pthread.h>
18891 #if HAVE_PTHREADS < 7
18895 #define NULL (void*)0
18898 static void *task(p)
18901 return (void *) (p == NULL);
18905 int main(argc, argv)
18910 /* pthread test function */
18911 #ifndef PTHREAD_CREATE_DETACHED
18912 #define PTHREAD_CREATE_DETACHED 1
18916 int detach = PTHREAD_CREATE_DETACHED;
18918 #if HAVE_PTHREADS > 4
18919 /* Final pthreads */
18920 pthread_attr_t attr;
18922 status = pthread_attr_init(&attr);
18923 if( status ) return status;
18925 #if HAVE_PTHREADS < 7
18926 status = pthread_attr_setdetachstate(&attr, &detach);
18927 if( status < 0 ) status = errno;
18929 status = pthread_attr_setdetachstate(&attr, detach);
18931 if( status ) return status;
18932 status = pthread_create( &t, &attr, task, NULL );
18933 #if HAVE_PTHREADS < 7
18934 if( status < 0 ) status = errno;
18936 if( status ) return status;
18938 /* Draft 4 pthreads */
18939 status = pthread_create( &t, pthread_attr_default, task, NULL );
18940 if( status ) return errno;
18942 /* give thread a chance to complete */
18943 /* it should remain joinable and hence detachable */
18946 status = pthread_detach( &t );
18947 if( status ) return errno;
18950 #ifdef HAVE_LINUX_THREADS
18951 pthread_kill_other_threads_np();
18959 if ac_fn_c_try_run "$LINENO"; then :
18960 ol_cv_pthread_lpthreads_lexc=yes
18962 ol_cv_pthread_lpthreads_lexc=no
18964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18965 conftest.$ac_objext conftest.beam conftest.$ac_ext
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
18974 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18976 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18977 ol_link_pthreads="-lpthreads -lexc"
18978 ol_link_threads=posix
18983 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18984 if test "$ol_link_threads" = no ; then
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18987 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18988 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then :
18989 $as_echo_n "(cached) " >&6
18994 LIBS="-lpthreads $LIBS"
18996 if test "$cross_compiling" = yes; then :
18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h. */
19000 /* pthread test headers */
19001 #include <pthread.h>
19002 #if HAVE_PTHREADS < 7
19006 #define NULL (void*)0
19009 static void *task(p)
19012 return (void *) (p == NULL);
19019 /* pthread test function */
19020 #ifndef PTHREAD_CREATE_DETACHED
19021 #define PTHREAD_CREATE_DETACHED 1
19025 int detach = PTHREAD_CREATE_DETACHED;
19027 #if HAVE_PTHREADS > 4
19028 /* Final pthreads */
19029 pthread_attr_t attr;
19031 status = pthread_attr_init(&attr);
19032 if( status ) return status;
19034 #if HAVE_PTHREADS < 7
19035 status = pthread_attr_setdetachstate(&attr, &detach);
19036 if( status < 0 ) status = errno;
19038 status = pthread_attr_setdetachstate(&attr, detach);
19040 if( status ) return status;
19041 status = pthread_create( &t, &attr, task, NULL );
19042 #if HAVE_PTHREADS < 7
19043 if( status < 0 ) status = errno;
19045 if( status ) return status;
19047 /* Draft 4 pthreads */
19048 status = pthread_create( &t, pthread_attr_default, task, NULL );
19049 if( status ) return errno;
19051 /* give thread a chance to complete */
19052 /* it should remain joinable and hence detachable */
19055 status = pthread_detach( &t );
19056 if( status ) return errno;
19059 #ifdef HAVE_LINUX_THREADS
19060 pthread_kill_other_threads_np();
19069 if ac_fn_c_try_link "$LINENO"; then :
19070 ol_cv_pthread_lib_lpthreads=yes
19072 ol_cv_pthread_lib_lpthreads=no
19074 rm -f core conftest.err conftest.$ac_objext \
19075 conftest$ac_exeext conftest.$ac_ext
19077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19078 /* end confdefs.h. */
19080 /* pthread test headers */
19081 #include <pthread.h>
19082 #if HAVE_PTHREADS < 7
19086 #define NULL (void*)0
19089 static void *task(p)
19092 return (void *) (p == NULL);
19096 int main(argc, argv)
19101 /* pthread test function */
19102 #ifndef PTHREAD_CREATE_DETACHED
19103 #define PTHREAD_CREATE_DETACHED 1
19107 int detach = PTHREAD_CREATE_DETACHED;
19109 #if HAVE_PTHREADS > 4
19110 /* Final pthreads */
19111 pthread_attr_t attr;
19113 status = pthread_attr_init(&attr);
19114 if( status ) return status;
19116 #if HAVE_PTHREADS < 7
19117 status = pthread_attr_setdetachstate(&attr, &detach);
19118 if( status < 0 ) status = errno;
19120 status = pthread_attr_setdetachstate(&attr, detach);
19122 if( status ) return status;
19123 status = pthread_create( &t, &attr, task, NULL );
19124 #if HAVE_PTHREADS < 7
19125 if( status < 0 ) status = errno;
19127 if( status ) return status;
19129 /* Draft 4 pthreads */
19130 status = pthread_create( &t, pthread_attr_default, task, NULL );
19131 if( status ) return errno;
19133 /* give thread a chance to complete */
19134 /* it should remain joinable and hence detachable */
19137 status = pthread_detach( &t );
19138 if( status ) return errno;
19141 #ifdef HAVE_LINUX_THREADS
19142 pthread_kill_other_threads_np();
19150 if ac_fn_c_try_run "$LINENO"; then :
19151 ol_cv_pthread_lib_lpthreads=yes
19153 ol_cv_pthread_lib_lpthreads=no
19155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19156 conftest.$ac_objext conftest.beam conftest.$ac_ext
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
19165 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
19167 if test $ol_cv_pthread_lib_lpthreads = yes ; then
19168 ol_link_pthreads="-lpthreads"
19169 ol_link_threads=posix
19174 if test $ol_link_threads != no ; then
19175 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19177 save_CPPFLAGS="$CPPFLAGS"
19179 LIBS="$LTHREAD_LIBS $LIBS"
19181 for ac_func in sched_yield pthread_yield thr_yield
19183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19184 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19185 eval as_val=\$$as_ac_var
19186 if test "x$as_val" = x""yes; then :
19187 cat >>confdefs.h <<_ACEOF
19188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19195 if test $ac_cv_func_sched_yield = no &&
19196 test $ac_cv_func_pthread_yield = no &&
19197 test $ac_cv_func_thr_yield = no ; then
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19199 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19200 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
19201 $as_echo_n "(cached) " >&6
19203 ac_check_lib_save_LIBS=$LIBS
19205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206 /* end confdefs.h. */
19208 /* Override any GCC internal prototype to avoid an error.
19209 Use char because int might match the return type of a GCC
19210 builtin and then its argument prototype would still apply. */
19214 char sched_yield ();
19218 return sched_yield ();
19223 if ac_fn_c_try_link "$LINENO"; then :
19224 ac_cv_lib_rt_sched_yield=yes
19226 ac_cv_lib_rt_sched_yield=no
19228 rm -f core conftest.err conftest.$ac_objext \
19229 conftest$ac_exeext conftest.$ac_ext
19230 LIBS=$ac_check_lib_save_LIBS
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19233 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19234 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
19235 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19237 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19239 ac_cv_func_sched_yield=yes
19241 ac_cv_func_sched_yield=no
19245 if test $ac_cv_func_sched_yield = no &&
19246 test $ac_cv_func_pthread_yield = no &&
19247 test "$ac_cv_func_thr_yield" = no ; then
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19249 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19252 for ac_func in pthread_kill
19254 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19255 if test "x$ac_cv_func_pthread_kill" = x""yes; then :
19256 cat >>confdefs.h <<_ACEOF
19257 #define HAVE_PTHREAD_KILL 1
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
19265 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
19266 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then :
19267 $as_echo_n "(cached) " >&6
19270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19271 /* end confdefs.h. */
19273 #include <pthread.h>
19274 pthread_rwlock_t rwlock;
19279 pthread_rwlock_destroy(&rwlock);
19284 if ac_fn_c_try_link "$LINENO"; then :
19285 ol_cv_func_pthread_rwlock_destroy=yes
19287 ol_cv_func_pthread_rwlock_destroy=no
19289 rm -f core conftest.err conftest.$ac_objext \
19290 conftest$ac_exeext conftest.$ac_ext
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
19294 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
19295 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
19297 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
19302 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
19303 if test "${ol_cv_func_pthread_detach+set}" = set; then :
19304 $as_echo_n "(cached) " >&6
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19310 #include <pthread.h>
19312 #define NULL (void*)0
19318 pthread_detach(NULL);
19323 if ac_fn_c_try_link "$LINENO"; then :
19324 ol_cv_func_pthread_detach=yes
19326 ol_cv_func_pthread_detach=no
19328 rm -f core conftest.err conftest.$ac_objext \
19329 conftest$ac_exeext conftest.$ac_ext
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
19333 $as_echo "$ol_cv_func_pthread_detach" >&6; }
19335 if test $ol_cv_func_pthread_detach = no ; then
19336 as_fn_error "could not locate pthread_detach()" "$LINENO" 5
19340 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
19344 pthread_setconcurrency \
19345 pthread_getconcurrency \
19346 thr_setconcurrency \
19347 thr_getconcurrency \
19350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19352 eval as_val=\$$as_ac_var
19353 if test "x$as_val" = x""yes; then :
19354 cat >>confdefs.h <<_ACEOF
19355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19363 for ac_func in pthread_kill_other_threads_np
19365 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
19366 if test "x$ac_cv_func_pthread_kill_other_threads_np" = x""yes; then :
19367 cat >>confdefs.h <<_ACEOF
19368 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
19375 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
19376 if test "${ol_cv_sys_linux_threads+set}" = set; then :
19377 $as_echo_n "(cached) " >&6
19379 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
19382 $as_echo "$ol_cv_sys_linux_threads" >&6; }
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
19388 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
19389 if test "${ol_cv_linux_threads+set}" = set; then :
19390 $as_echo_n "(cached) " >&6
19393 if test $ol_cv_header_linux_threads = yes &&
19394 test $ol_cv_sys_linux_threads = yes; then
19395 ol_cv_linux_threads=yes
19396 elif test $ol_cv_header_linux_threads = no &&
19397 test $ol_cv_sys_linux_threads = no; then
19398 ol_cv_linux_threads=no
19400 ol_cv_linux_threads=error
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
19405 $as_echo "$ol_cv_linux_threads" >&6; }
19408 if test $ol_cv_linux_threads = error; then
19409 as_fn_error "LinuxThreads header/library mismatch" "$LINENO" 5;
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
19413 $as_echo_n "checking if pthread_create() works... " >&6; }
19414 if test "${ol_cv_pthread_create_works+set}" = set; then :
19415 $as_echo_n "(cached) " >&6
19418 if test "$cross_compiling" = yes; then :
19419 ol_cv_pthread_create_works=yes
19421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19422 /* end confdefs.h. */
19424 /* pthread test headers */
19425 #include <pthread.h>
19426 #if HAVE_PTHREADS < 7
19430 #define NULL (void*)0
19433 static void *task(p)
19436 return (void *) (p == NULL);
19440 int main(argc, argv)
19445 /* pthread test function */
19446 #ifndef PTHREAD_CREATE_DETACHED
19447 #define PTHREAD_CREATE_DETACHED 1
19451 int detach = PTHREAD_CREATE_DETACHED;
19453 #if HAVE_PTHREADS > 4
19454 /* Final pthreads */
19455 pthread_attr_t attr;
19457 status = pthread_attr_init(&attr);
19458 if( status ) return status;
19460 #if HAVE_PTHREADS < 7
19461 status = pthread_attr_setdetachstate(&attr, &detach);
19462 if( status < 0 ) status = errno;
19464 status = pthread_attr_setdetachstate(&attr, detach);
19466 if( status ) return status;
19467 status = pthread_create( &t, &attr, task, NULL );
19468 #if HAVE_PTHREADS < 7
19469 if( status < 0 ) status = errno;
19471 if( status ) return status;
19473 /* Draft 4 pthreads */
19474 status = pthread_create( &t, pthread_attr_default, task, NULL );
19475 if( status ) return errno;
19477 /* give thread a chance to complete */
19478 /* it should remain joinable and hence detachable */
19481 status = pthread_detach( &t );
19482 if( status ) return errno;
19485 #ifdef HAVE_LINUX_THREADS
19486 pthread_kill_other_threads_np();
19494 if ac_fn_c_try_run "$LINENO"; then :
19495 ol_cv_pthread_create_works=yes
19497 ol_cv_pthread_create_works=no
19499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19500 conftest.$ac_objext conftest.beam conftest.$ac_ext
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
19505 $as_echo "$ol_cv_pthread_create_works" >&6; }
19507 if test $ol_cv_pthread_create_works = no ; then
19508 as_fn_error "pthread_create is not usable, check environment settings" "$LINENO" 5
19511 ol_replace_broken_yield=no
19513 if test $ol_replace_broken_yield = yes ; then
19515 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
19519 if test $ol_with_yielding_select = auto ; then
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
19521 $as_echo_n "checking if select yields when using pthreads... " >&6; }
19522 if test "${ol_cv_pthread_select_yields+set}" = set; then :
19523 $as_echo_n "(cached) " >&6
19526 if test "$cross_compiling" = yes; then :
19527 ol_cv_pthread_select_yields=cross
19529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h. */
19532 #include <sys/types.h>
19533 #include <sys/time.h>
19534 #include <unistd.h>
19535 #include <pthread.h>
19537 #define NULL (void*) 0
19540 static int fildes[2];
19542 static void *task(p)
19554 FD_SET(fildes[0], &rfds);
19556 /* we're not interested in any fds */
19557 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
19564 exit(0); /* if we exit here, the select blocked the whole process */
19567 int main(argc, argv)
19573 /* create a pipe to select */
19574 if(pipe(&fildes[0])) {
19579 #ifdef HAVE_PTHREAD_SETCONCURRENCY
19580 (void) pthread_setconcurrency(2);
19582 #ifdef HAVE_THR_SETCONCURRENCY
19583 /* Set Solaris LWP concurrency to 2 */
19584 thr_setconcurrency(2);
19588 #if HAVE_PTHREADS < 6
19589 pthread_create(&t, pthread_attr_default, task, NULL);
19591 pthread_create(&t, NULL, task, NULL);
19594 /* make sure task runs first */
19595 #ifdef HAVE_THR_YIELD
19597 #elif defined( HAVE_SCHED_YIELD )
19599 #elif defined( HAVE_PTHREAD_YIELD )
19606 if ac_fn_c_try_run "$LINENO"; then :
19607 ol_cv_pthread_select_yields=no
19609 ol_cv_pthread_select_yields=yes
19611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19612 conftest.$ac_objext conftest.beam conftest.$ac_ext
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
19617 $as_echo "$ol_cv_pthread_select_yields" >&6; }
19619 if test $ol_cv_pthread_select_yields = cross ; then
19620 as_fn_error "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
19623 if test $ol_cv_pthread_select_yields = yes ; then
19624 ol_with_yielding_select=yes
19628 CPPFLAGS="$save_CPPFLAGS"
19631 as_fn_error "could not locate usable POSIX Threads" "$LINENO" 5
19635 if test $ol_with_threads = posix ; then
19636 as_fn_error "could not locate POSIX Threads" "$LINENO" 5
19641 case $ol_with_threads in auto | yes | mach)
19643 for ac_header in mach/cthreads.h cthreads.h
19645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19646 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19647 eval as_val=\$$as_ac_Header
19648 if test "x$as_val" = x""yes; then :
19649 cat >>confdefs.h <<_ACEOF
19650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19657 if test $ac_cv_header_mach_cthreads_h = yes ; then
19658 ol_with_threads=found
19660 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19661 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19662 ol_link_threads=yes
19666 if test $ol_link_threads = no ; then
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
19668 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
19669 if test "${ol_cv_cthread_all_load+set}" = set; then :
19670 $as_echo_n "(cached) " >&6
19674 LIBS="-all_load $LIBS"
19675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19676 /* end confdefs.h. */
19677 #include <mach/cthreads.h>
19682 cthread_fork((void *)0, (void *)0);
19688 if ac_fn_c_try_link "$LINENO"; then :
19689 ol_cv_cthread_all_load=yes
19691 ol_cv_cthread_all_load=no
19693 rm -f core conftest.err conftest.$ac_objext \
19694 conftest$ac_exeext conftest.$ac_ext
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
19699 $as_echo "$ol_cv_cthread_all_load" >&6; }
19701 if test $ol_cv_cthread_all_load = yes ; then
19702 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
19703 ol_link_threads=mach
19704 ol_with_threads=found
19708 elif test $ac_cv_header_cthreads_h = yes ; then
19710 ol_with_threads=found
19713 LIBS="$LIBS -lthreads"
19714 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19715 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19716 ol_link_threads=yes
19721 if test $ol_link_threads = yes ; then
19722 LTHREAD_LIBS="-lthreads"
19723 ol_link_threads=mach
19724 ol_with_threads=found
19726 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19729 elif test $ol_with_threads = mach ; then
19730 as_fn_error "could not locate Mach CThreads" "$LINENO" 5
19733 if test $ol_link_threads = mach ; then
19735 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
19737 elif test $ol_with_threads = found ; then
19738 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19743 case $ol_with_threads in auto | yes | pth)
19745 for ac_header in pth.h
19747 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
19748 if test "x$ac_cv_header_pth_h" = x""yes; then :
19749 cat >>confdefs.h <<_ACEOF
19750 #define HAVE_PTH_H 1
19758 if test $ac_cv_header_pth_h = yes ; then
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
19760 $as_echo_n "checking for pth_version in -lpth... " >&6; }
19761 if test "${ac_cv_lib_pth_pth_version+set}" = set; then :
19762 $as_echo_n "(cached) " >&6
19764 ac_check_lib_save_LIBS=$LIBS
19766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19767 /* end confdefs.h. */
19769 /* Override any GCC internal prototype to avoid an error.
19770 Use char because int might match the return type of a GCC
19771 builtin and then its argument prototype would still apply. */
19775 char pth_version ();
19779 return pth_version ();
19784 if ac_fn_c_try_link "$LINENO"; then :
19785 ac_cv_lib_pth_pth_version=yes
19787 ac_cv_lib_pth_pth_version=no
19789 rm -f core conftest.err conftest.$ac_objext \
19790 conftest$ac_exeext conftest.$ac_ext
19791 LIBS=$ac_check_lib_save_LIBS
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
19794 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
19795 if test "x$ac_cv_lib_pth_pth_version" = x""yes; then :
19802 if test $have_pth = yes ; then
19804 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
19806 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
19807 ol_link_threads=pth
19808 ol_with_threads=found
19810 if test $ol_with_yielding_select = auto ; then
19811 ol_with_yielding_select=yes
19818 case $ol_with_threads in auto | yes | lwp)
19820 for ac_header in thread.h synch.h
19822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19823 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19824 eval as_val=\$$as_ac_Header
19825 if test "x$as_val" = x""yes; then :
19826 cat >>confdefs.h <<_ACEOF
19827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19834 if test $ac_cv_header_thread_h = yes &&
19835 test $ac_cv_header_synch_h = yes ; then
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19837 $as_echo_n "checking for thr_create in -lthread... " >&6; }
19838 if test "${ac_cv_lib_thread_thr_create+set}" = set; then :
19839 $as_echo_n "(cached) " >&6
19841 ac_check_lib_save_LIBS=$LIBS
19842 LIBS="-lthread $LIBS"
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h. */
19846 /* Override any GCC internal prototype to avoid an error.
19847 Use char because int might match the return type of a GCC
19848 builtin and then its argument prototype would still apply. */
19852 char thr_create ();
19856 return thr_create ();
19861 if ac_fn_c_try_link "$LINENO"; then :
19862 ac_cv_lib_thread_thr_create=yes
19864 ac_cv_lib_thread_thr_create=no
19866 rm -f core conftest.err conftest.$ac_objext \
19867 conftest$ac_exeext conftest.$ac_ext
19868 LIBS=$ac_check_lib_save_LIBS
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19871 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19872 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then :
19879 if test $have_thr = yes ; then
19881 $as_echo "#define HAVE_THR 1" >>confdefs.h
19883 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
19884 ol_link_threads=thr
19886 if test $ol_with_yielding_select = auto ; then
19887 ol_with_yielding_select=yes
19891 thr_setconcurrency \
19892 thr_getconcurrency \
19895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19897 eval as_val=\$$as_ac_var
19898 if test "x$as_val" = x""yes; then :
19899 cat >>confdefs.h <<_ACEOF
19900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19911 if test $ol_with_yielding_select = yes ; then
19913 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19917 if test $ol_with_threads = manual ; then
19918 ol_link_threads=yes
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19921 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19923 for ac_header in pthread.h sched.h
19925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19926 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19927 eval as_val=\$$as_ac_Header
19928 if test "x$as_val" = x""yes; then :
19929 cat >>confdefs.h <<_ACEOF
19930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19937 for ac_func in sched_yield pthread_yield
19939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19941 eval as_val=\$$as_ac_var
19942 if test "x$as_val" = x""yes; then :
19943 cat >>confdefs.h <<_ACEOF
19944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19952 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19953 if test "${ol_cv_header_linux_threads+set}" = set; then :
19954 $as_echo_n "(cached) " >&6
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h. */
19958 #include <pthread.h>
19960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19961 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19962 ol_cv_header_linux_threads=yes
19964 ol_cv_header_linux_threads=no
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19971 $as_echo "$ol_cv_header_linux_threads" >&6; }
19972 if test $ol_cv_header_linux_threads = yes; then
19974 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19979 for ac_header in mach/cthreads.h
19981 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
19982 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then :
19983 cat >>confdefs.h <<_ACEOF
19984 #define HAVE_MACH_CTHREADS_H 1
19991 for ac_header in thread.h synch.h
19993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19994 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19995 eval as_val=\$$as_ac_Header
19996 if test "x$as_val" = x""yes; then :
19997 cat >>confdefs.h <<_ACEOF
19998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20007 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
20008 $as_echo "#define REENTRANT 1" >>confdefs.h
20010 $as_echo "#define _REENTRANT 1" >>confdefs.h
20012 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
20014 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
20016 $as_echo "#define THREADSAFE 1" >>confdefs.h
20018 $as_echo "#define _THREADSAFE 1" >>confdefs.h
20020 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
20024 $as_echo_n "checking for thread specific errno... " >&6; }
20025 if test "${ol_cv_errno_thread_specific+set}" = set; then :
20026 $as_echo_n "(cached) " >&6
20029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030 /* end confdefs.h. */
20040 if ac_fn_c_try_link "$LINENO"; then :
20041 ol_cv_errno_thread_specific=yes
20043 ol_cv_errno_thread_specific=no
20045 rm -f core conftest.err conftest.$ac_objext \
20046 conftest$ac_exeext conftest.$ac_ext
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
20050 $as_echo "$ol_cv_errno_thread_specific" >&6; }
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
20053 $as_echo_n "checking for thread specific h_errno... " >&6; }
20054 if test "${ol_cv_h_errno_thread_specific+set}" = set; then :
20055 $as_echo_n "(cached) " >&6
20058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20059 /* end confdefs.h. */
20069 if ac_fn_c_try_link "$LINENO"; then :
20070 ol_cv_h_errno_thread_specific=yes
20072 ol_cv_h_errno_thread_specific=no
20074 rm -f core conftest.err conftest.$ac_objext \
20075 conftest$ac_exeext conftest.$ac_ext
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
20079 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
20081 if test $ol_cv_errno_thread_specific != yes ||
20082 test $ol_cv_h_errno_thread_specific != yes ; then
20083 LIBS="$LTHREAD_LIBS $LIBS"
20089 if test $ol_link_threads = no ; then
20090 if test $ol_with_threads = yes ; then
20091 as_fn_error "no suitable thread support" "$LINENO" 5
20094 if test $ol_with_threads = auto ; then
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
20096 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
20101 $as_echo "#define NO_THREADS 1" >>confdefs.h
20109 if test $ol_link_threads != no ; then
20111 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
20117 gmtime_r localtime_r \
20118 gethostbyname_r gethostbyaddr_r \
20121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20123 eval as_val=\$$as_ac_var
20124 if test "x$as_val" = x""yes; then :
20125 cat >>confdefs.h <<_ACEOF
20126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20133 if test "$ac_cv_func_ctime_r" = no ; then
20134 ol_cv_func_ctime_r_nargs=0
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
20137 $as_echo_n "checking number of arguments of ctime_r... " >&6; }
20138 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then :
20139 $as_echo_n "(cached) " >&6
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20147 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
20152 if ac_fn_c_try_compile "$LINENO"; then :
20153 ol_cv_func_ctime_r_nargs3=yes
20155 ol_cv_func_ctime_r_nargs3=no
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h. */
20165 time_t ti; char *buffer; ctime_r(&ti,buffer);
20170 if ac_fn_c_try_compile "$LINENO"; then :
20171 ol_cv_func_ctime_r_nargs2=yes
20173 ol_cv_func_ctime_r_nargs2=no
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20177 if test $ol_cv_func_ctime_r_nargs3 = yes &&
20178 test $ol_cv_func_ctime_r_nargs2 = no ; then
20180 ol_cv_func_ctime_r_nargs=3
20182 elif test $ol_cv_func_ctime_r_nargs3 = no &&
20183 test $ol_cv_func_ctime_r_nargs2 = yes ; then
20185 ol_cv_func_ctime_r_nargs=2
20188 ol_cv_func_ctime_r_nargs=0
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
20193 $as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
20195 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
20197 cat >>confdefs.h <<_ACEOF
20198 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
20205 if test "$ac_cv_func_gethostbyname_r" = yes ; then
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
20207 $as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
20208 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then :
20209 $as_echo_n "(cached) " >&6
20211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20212 /* end confdefs.h. */
20213 #include <sys/types.h>
20214 #include <sys/socket.h>
20215 #include <netinet/in.h>
20217 #define BUFSIZE (sizeof(struct hostent)+10)
20221 struct hostent hent; char buffer[BUFSIZE];
20222 int bufsize=BUFSIZE;int h_errno;
20223 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
20224 buffer, bufsize, &h_errno);
20229 if ac_fn_c_try_compile "$LINENO"; then :
20230 ol_cv_func_gethostbyname_r_nargs5=yes
20232 ol_cv_func_gethostbyname_r_nargs5=no
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20238 #include <sys/types.h>
20239 #include <sys/socket.h>
20240 #include <netinet/in.h>
20242 #define BUFSIZE (sizeof(struct hostent)+10)
20246 struct hostent hent;struct hostent *rhent;
20247 char buffer[BUFSIZE];
20248 int bufsize=BUFSIZE;int h_errno;
20249 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
20255 if ac_fn_c_try_compile "$LINENO"; then :
20256 ol_cv_func_gethostbyname_r_nargs6=yes
20258 ol_cv_func_gethostbyname_r_nargs6=no
20260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20262 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
20263 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
20265 ol_cv_func_gethostbyname_r_nargs=5
20267 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
20268 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
20270 ol_cv_func_gethostbyname_r_nargs=6
20273 ol_cv_func_gethostbyname_r_nargs=0
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
20278 $as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
20279 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
20281 cat >>confdefs.h <<_ACEOF
20282 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
20288 ol_cv_func_gethostbyname_r_nargs=0
20291 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
20293 $as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
20294 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then :
20295 $as_echo_n "(cached) " >&6
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20299 #include <sys/types.h>
20300 #include <sys/socket.h>
20301 #include <netinet/in.h>
20303 #define BUFSIZE (sizeof(struct hostent)+10)
20307 struct hostent hent; char buffer[BUFSIZE];
20308 struct in_addr add;
20309 size_t alen=sizeof(struct in_addr);
20310 int bufsize=BUFSIZE;int h_errno;
20311 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20312 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
20317 if ac_fn_c_try_compile "$LINENO"; then :
20318 ol_cv_func_gethostbyaddr_r_nargs7=yes
20320 ol_cv_func_gethostbyaddr_r_nargs7=no
20322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h. */
20326 #include <sys/types.h>
20327 #include <sys/socket.h>
20328 #include <netinet/in.h>
20330 #define BUFSIZE (sizeof(struct hostent)+10)
20334 struct hostent hent;
20335 struct hostent *rhent; char buffer[BUFSIZE];
20336 struct in_addr add;
20337 size_t alen=sizeof(struct in_addr);
20338 int bufsize=BUFSIZE;int h_errno;
20339 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20340 alen, AF_INET, &hent, buffer, bufsize,
20346 if ac_fn_c_try_compile "$LINENO"; then :
20347 ol_cv_func_gethostbyaddr_r_nargs8=yes
20349 ol_cv_func_gethostbyaddr_r_nargs8=no
20351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20353 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
20354 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
20356 ol_cv_func_gethostbyaddr_r_nargs=7
20358 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
20359 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
20361 ol_cv_func_gethostbyaddr_r_nargs=8
20364 ol_cv_func_gethostbyaddr_r_nargs=0
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
20369 $as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
20370 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
20372 cat >>confdefs.h <<_ACEOF
20373 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
20379 ol_cv_func_gethostbyaddr_r_nargs=0
20384 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
20385 ol_cv_berkeley_db=no
20386 for ac_header in db.h
20388 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
20389 if test "x$ac_cv_header_db_h" = x""yes; then :
20390 cat >>confdefs.h <<_ACEOF
20391 #define HAVE_DB_H 1
20398 if test $ac_cv_header_db_h = yes; then
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB major version in db.h" >&5
20400 $as_echo_n "checking for Berkeley DB major version in db.h... " >&6; }
20401 if test "${ol_cv_bdb_major+set}" = set; then :
20402 $as_echo_n "(cached) " >&6
20405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406 /* end confdefs.h. */
20409 #ifndef DB_VERSION_MAJOR
20410 # define DB_VERSION_MAJOR 1
20412 __db_version DB_VERSION_MAJOR
20415 set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
20416 ol_cv_bdb_major=${3}
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_major" >&5
20420 $as_echo "$ol_cv_bdb_major" >&6; }
20421 case $ol_cv_bdb_major in [1-9]*) : ;; *)
20422 as_fn_error "Unknown Berkeley DB major version in db.h" "$LINENO" 5 ;;
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB minor version in db.h" >&5
20426 $as_echo_n "checking for Berkeley DB minor version in db.h... " >&6; }
20427 if test "${ol_cv_bdb_minor+set}" = set; then :
20428 $as_echo_n "(cached) " >&6
20431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20432 /* end confdefs.h. */
20435 #ifndef DB_VERSION_MINOR
20436 # define DB_VERSION_MINOR 0
20438 __db_version DB_VERSION_MINOR
20441 set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
20442 ol_cv_bdb_minor=${3}
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_minor" >&5
20446 $as_echo "$ol_cv_bdb_minor" >&6; }
20447 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
20448 as_fn_error "Unknown Berkeley DB minor version in db.h" "$LINENO" 5 ;;
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB version supported by BDB/HDB backends" >&5
20452 $as_echo_n "checking if Berkeley DB version supported by BDB/HDB backends... " >&6; }
20453 if test "${ol_cv_bdb_compat+set}" = set; then :
20454 $as_echo_n "(cached) " >&6
20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h. */
20462 /* this check could be improved */
20463 #ifndef DB_VERSION_MAJOR
20464 # define DB_VERSION_MAJOR 1
20466 #ifndef DB_VERSION_MINOR
20467 # define DB_VERSION_MINOR 0
20469 #ifndef DB_VERSION_PATCH
20470 # define DB_VERSION_PATCH 0
20473 #define DB_VERSION_FULL ((DB_VERSION_MAJOR<<16)|(DB_VERSION_MINOR<<8)|DB_VERSION_PATCH)
20475 /* require 4.4 or later, but less than 6.0.20 */
20476 #if DB_VERSION_FULL >= 0x040400 && DB_VERSION_FULL < 0x060014
20477 __db_version_compat
20479 #if DB_VERSION_FULL >= 0x060014
20480 #error "BerkeleyDB 6.0.20+ license is incompatible with LDAP"
20484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20485 $EGREP "__db_version_compat" >/dev/null 2>&1; then :
20486 ol_cv_bdb_compat=yes
20488 ol_cv_bdb_compat=no
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5
20494 $as_echo "$ol_cv_bdb_compat" >&6; }
20497 if test $ol_cv_bdb_compat != yes ; then
20498 as_fn_error "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5
20503 if test $ol_cv_bdb_major = 5 ; then
20504 if test $ol_cv_lib_db = no ; then
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
20506 $as_echo_n "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... " >&6; }
20507 if test "${ol_cv_db_db_5_dot_m+set}" = set; then :
20508 $as_echo_n "(cached) " >&6
20511 ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
20513 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20516 /* end confdefs.h. */
20518 #ifdef HAVE_DB_185_H
20519 # include <db_185.h>
20524 #ifndef DB_VERSION_MAJOR
20525 # define DB_VERSION_MAJOR 1
20529 #define NULL ((void*)0)
20536 #if DB_VERSION_MAJOR > 2
20537 db_env_create( NULL, 0 );
20538 #elif DB_VERSION_MAJOR > 1
20539 db_appexit( NULL );
20541 (void) dbopen( NULL, 0, 0, 0, NULL);
20548 if ac_fn_c_try_link "$LINENO"; then :
20549 ol_cv_db_db_5_dot_m=yes
20551 ol_cv_db_db_5_dot_m=no
20553 rm -f core conftest.err conftest.$ac_objext \
20554 conftest$ac_exeext conftest.$ac_ext
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_dot_m" >&5
20560 $as_echo "$ol_cv_db_db_5_dot_m" >&6; }
20562 if test $ol_cv_db_db_5_dot_m = yes ; then
20563 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
20567 if test $ol_cv_lib_db = no ; then
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
20569 $as_echo_n "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... " >&6; }
20570 if test "${ol_cv_db_db5m+set}" = set; then :
20571 $as_echo_n "(cached) " >&6
20574 ol_DB_LIB=-ldb5$ol_cv_bdb_minor
20576 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h. */
20581 #ifdef HAVE_DB_185_H
20582 # include <db_185.h>
20587 #ifndef DB_VERSION_MAJOR
20588 # define DB_VERSION_MAJOR 1
20592 #define NULL ((void*)0)
20599 #if DB_VERSION_MAJOR > 2
20600 db_env_create( NULL, 0 );
20601 #elif DB_VERSION_MAJOR > 1
20602 db_appexit( NULL );
20604 (void) dbopen( NULL, 0, 0, 0, NULL);
20611 if ac_fn_c_try_link "$LINENO"; then :
20616 rm -f core conftest.err conftest.$ac_objext \
20617 conftest$ac_exeext conftest.$ac_ext
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5m" >&5
20623 $as_echo "$ol_cv_db_db5m" >&6; }
20625 if test $ol_cv_db_db5m = yes ; then
20626 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
20630 if test $ol_cv_lib_db = no ; then
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
20632 $as_echo_n "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... " >&6; }
20633 if test "${ol_cv_db_db_5m+set}" = set; then :
20634 $as_echo_n "(cached) " >&6
20637 ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
20639 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20642 /* end confdefs.h. */
20644 #ifdef HAVE_DB_185_H
20645 # include <db_185.h>
20650 #ifndef DB_VERSION_MAJOR
20651 # define DB_VERSION_MAJOR 1
20655 #define NULL ((void*)0)
20662 #if DB_VERSION_MAJOR > 2
20663 db_env_create( NULL, 0 );
20664 #elif DB_VERSION_MAJOR > 1
20665 db_appexit( NULL );
20667 (void) dbopen( NULL, 0, 0, 0, NULL);
20674 if ac_fn_c_try_link "$LINENO"; then :
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5m" >&5
20686 $as_echo "$ol_cv_db_db_5m" >&6; }
20688 if test $ol_cv_db_db_5m = yes ; then
20689 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
20693 if test $ol_cv_lib_db = no ; then
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
20695 $as_echo_n "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... " >&6; }
20696 if test "${ol_cv_db_db_5_m+set}" = set; then :
20697 $as_echo_n "(cached) " >&6
20700 ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
20702 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20705 /* end confdefs.h. */
20707 #ifdef HAVE_DB_185_H
20708 # include <db_185.h>
20713 #ifndef DB_VERSION_MAJOR
20714 # define DB_VERSION_MAJOR 1
20718 #define NULL ((void*)0)
20725 #if DB_VERSION_MAJOR > 2
20726 db_env_create( NULL, 0 );
20727 #elif DB_VERSION_MAJOR > 1
20728 db_appexit( NULL );
20730 (void) dbopen( NULL, 0, 0, 0, NULL);
20737 if ac_fn_c_try_link "$LINENO"; then :
20738 ol_cv_db_db_5_m=yes
20742 rm -f core conftest.err conftest.$ac_objext \
20743 conftest$ac_exeext conftest.$ac_ext
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_m" >&5
20749 $as_echo "$ol_cv_db_db_5_m" >&6; }
20751 if test $ol_cv_db_db_5_m = yes ; then
20752 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
20756 if test $ol_cv_lib_db = no ; then
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5)" >&5
20758 $as_echo_n "checking for Berkeley DB link (-ldb-5)... " >&6; }
20759 if test "${ol_cv_db_db_5+set}" = set; then :
20760 $as_echo_n "(cached) " >&6
20765 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h. */
20770 #ifdef HAVE_DB_185_H
20771 # include <db_185.h>
20776 #ifndef DB_VERSION_MAJOR
20777 # define DB_VERSION_MAJOR 1
20781 #define NULL ((void*)0)
20788 #if DB_VERSION_MAJOR > 2
20789 db_env_create( NULL, 0 );
20790 #elif DB_VERSION_MAJOR > 1
20791 db_appexit( NULL );
20793 (void) dbopen( NULL, 0, 0, 0, NULL);
20800 if ac_fn_c_try_link "$LINENO"; then :
20805 rm -f core conftest.err conftest.$ac_objext \
20806 conftest$ac_exeext conftest.$ac_ext
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5" >&5
20812 $as_echo "$ol_cv_db_db_5" >&6; }
20814 if test $ol_cv_db_db_5 = yes ; then
20815 ol_cv_lib_db=-ldb-5
20819 if test $ol_cv_lib_db = no ; then
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5)" >&5
20821 $as_echo_n "checking for Berkeley DB link (-ldb5)... " >&6; }
20822 if test "${ol_cv_db_db5+set}" = set; then :
20823 $as_echo_n "(cached) " >&6
20828 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20831 /* end confdefs.h. */
20833 #ifdef HAVE_DB_185_H
20834 # include <db_185.h>
20839 #ifndef DB_VERSION_MAJOR
20840 # define DB_VERSION_MAJOR 1
20844 #define NULL ((void*)0)
20851 #if DB_VERSION_MAJOR > 2
20852 db_env_create( NULL, 0 );
20853 #elif DB_VERSION_MAJOR > 1
20854 db_appexit( NULL );
20856 (void) dbopen( NULL, 0, 0, 0, NULL);
20863 if ac_fn_c_try_link "$LINENO"; then :
20868 rm -f core conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext conftest.$ac_ext
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5" >&5
20875 $as_echo "$ol_cv_db_db5" >&6; }
20877 if test $ol_cv_db_db5 = yes ; then
20882 elif test $ol_cv_bdb_major = 4 ; then
20883 if test $ol_cv_lib_db = no ; then
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
20885 $as_echo_n "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... " >&6; }
20886 if test "${ol_cv_db_db_4_dot_m+set}" = set; then :
20887 $as_echo_n "(cached) " >&6
20890 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
20892 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h. */
20897 #ifdef HAVE_DB_185_H
20898 # include <db_185.h>
20903 #ifndef DB_VERSION_MAJOR
20904 # define DB_VERSION_MAJOR 1
20908 #define NULL ((void*)0)
20915 #if DB_VERSION_MAJOR > 2
20916 db_env_create( NULL, 0 );
20917 #elif DB_VERSION_MAJOR > 1
20918 db_appexit( NULL );
20920 (void) dbopen( NULL, 0, 0, 0, NULL);
20927 if ac_fn_c_try_link "$LINENO"; then :
20928 ol_cv_db_db_4_dot_m=yes
20930 ol_cv_db_db_4_dot_m=no
20932 rm -f core conftest.err conftest.$ac_objext \
20933 conftest$ac_exeext conftest.$ac_ext
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_dot_m" >&5
20939 $as_echo "$ol_cv_db_db_4_dot_m" >&6; }
20941 if test $ol_cv_db_db_4_dot_m = yes ; then
20942 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
20946 if test $ol_cv_lib_db = no ; then
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
20948 $as_echo_n "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... " >&6; }
20949 if test "${ol_cv_db_db4m+set}" = set; then :
20950 $as_echo_n "(cached) " >&6
20953 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
20955 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20960 #ifdef HAVE_DB_185_H
20961 # include <db_185.h>
20966 #ifndef DB_VERSION_MAJOR
20967 # define DB_VERSION_MAJOR 1
20971 #define NULL ((void*)0)
20978 #if DB_VERSION_MAJOR > 2
20979 db_env_create( NULL, 0 );
20980 #elif DB_VERSION_MAJOR > 1
20981 db_appexit( NULL );
20983 (void) dbopen( NULL, 0, 0, 0, NULL);
20990 if ac_fn_c_try_link "$LINENO"; then :
20995 rm -f core conftest.err conftest.$ac_objext \
20996 conftest$ac_exeext conftest.$ac_ext
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4m" >&5
21002 $as_echo "$ol_cv_db_db4m" >&6; }
21004 if test $ol_cv_db_db4m = yes ; then
21005 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
21009 if test $ol_cv_lib_db = no ; then
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
21011 $as_echo_n "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... " >&6; }
21012 if test "${ol_cv_db_db_4m+set}" = set; then :
21013 $as_echo_n "(cached) " >&6
21016 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
21018 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21023 #ifdef HAVE_DB_185_H
21024 # include <db_185.h>
21029 #ifndef DB_VERSION_MAJOR
21030 # define DB_VERSION_MAJOR 1
21034 #define NULL ((void*)0)
21041 #if DB_VERSION_MAJOR > 2
21042 db_env_create( NULL, 0 );
21043 #elif DB_VERSION_MAJOR > 1
21044 db_appexit( NULL );
21046 (void) dbopen( NULL, 0, 0, 0, NULL);
21053 if ac_fn_c_try_link "$LINENO"; then :
21058 rm -f core conftest.err conftest.$ac_objext \
21059 conftest$ac_exeext conftest.$ac_ext
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4m" >&5
21065 $as_echo "$ol_cv_db_db_4m" >&6; }
21067 if test $ol_cv_db_db_4m = yes ; then
21068 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
21072 if test $ol_cv_lib_db = no ; then
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
21074 $as_echo_n "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... " >&6; }
21075 if test "${ol_cv_db_db_4_m+set}" = set; then :
21076 $as_echo_n "(cached) " >&6
21079 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
21081 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21084 /* end confdefs.h. */
21086 #ifdef HAVE_DB_185_H
21087 # include <db_185.h>
21092 #ifndef DB_VERSION_MAJOR
21093 # define DB_VERSION_MAJOR 1
21097 #define NULL ((void*)0)
21104 #if DB_VERSION_MAJOR > 2
21105 db_env_create( NULL, 0 );
21106 #elif DB_VERSION_MAJOR > 1
21107 db_appexit( NULL );
21109 (void) dbopen( NULL, 0, 0, 0, NULL);
21116 if ac_fn_c_try_link "$LINENO"; then :
21117 ol_cv_db_db_4_m=yes
21121 rm -f core conftest.err conftest.$ac_objext \
21122 conftest$ac_exeext conftest.$ac_ext
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_m" >&5
21128 $as_echo "$ol_cv_db_db_4_m" >&6; }
21130 if test $ol_cv_db_db_4_m = yes ; then
21131 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
21135 if test $ol_cv_lib_db = no ; then
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4)" >&5
21137 $as_echo_n "checking for Berkeley DB link (-ldb-4)... " >&6; }
21138 if test "${ol_cv_db_db_4+set}" = set; then :
21139 $as_echo_n "(cached) " >&6
21144 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147 /* end confdefs.h. */
21149 #ifdef HAVE_DB_185_H
21150 # include <db_185.h>
21155 #ifndef DB_VERSION_MAJOR
21156 # define DB_VERSION_MAJOR 1
21160 #define NULL ((void*)0)
21167 #if DB_VERSION_MAJOR > 2
21168 db_env_create( NULL, 0 );
21169 #elif DB_VERSION_MAJOR > 1
21170 db_appexit( NULL );
21172 (void) dbopen( NULL, 0, 0, 0, NULL);
21179 if ac_fn_c_try_link "$LINENO"; then :
21184 rm -f core conftest.err conftest.$ac_objext \
21185 conftest$ac_exeext conftest.$ac_ext
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4" >&5
21191 $as_echo "$ol_cv_db_db_4" >&6; }
21193 if test $ol_cv_db_db_4 = yes ; then
21194 ol_cv_lib_db=-ldb-4
21198 if test $ol_cv_lib_db = no ; then
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4)" >&5
21200 $as_echo_n "checking for Berkeley DB link (-ldb4)... " >&6; }
21201 if test "${ol_cv_db_db4+set}" = set; then :
21202 $as_echo_n "(cached) " >&6
21207 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21210 /* end confdefs.h. */
21212 #ifdef HAVE_DB_185_H
21213 # include <db_185.h>
21218 #ifndef DB_VERSION_MAJOR
21219 # define DB_VERSION_MAJOR 1
21223 #define NULL ((void*)0)
21230 #if DB_VERSION_MAJOR > 2
21231 db_env_create( NULL, 0 );
21232 #elif DB_VERSION_MAJOR > 1
21233 db_appexit( NULL );
21235 (void) dbopen( NULL, 0, 0, 0, NULL);
21242 if ac_fn_c_try_link "$LINENO"; then :
21247 rm -f core conftest.err conftest.$ac_objext \
21248 conftest$ac_exeext conftest.$ac_ext
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4" >&5
21254 $as_echo "$ol_cv_db_db4" >&6; }
21256 if test $ol_cv_db_db4 = yes ; then
21262 if test $ol_cv_lib_db = no ; then
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb)" >&5
21264 $as_echo_n "checking for Berkeley DB link (-ldb)... " >&6; }
21265 if test "${ol_cv_db_db+set}" = set; then :
21266 $as_echo_n "(cached) " >&6
21271 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h. */
21276 #ifdef HAVE_DB_185_H
21277 # include <db_185.h>
21282 #ifndef DB_VERSION_MAJOR
21283 # define DB_VERSION_MAJOR 1
21287 #define NULL ((void*)0)
21294 #if DB_VERSION_MAJOR > 2
21295 db_env_create( NULL, 0 );
21296 #elif DB_VERSION_MAJOR > 1
21297 db_appexit( NULL );
21299 (void) dbopen( NULL, 0, 0, 0, NULL);
21306 if ac_fn_c_try_link "$LINENO"; then :
21311 rm -f core conftest.err conftest.$ac_objext \
21312 conftest$ac_exeext conftest.$ac_ext
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db" >&5
21318 $as_echo "$ol_cv_db_db" >&6; }
21320 if test $ol_cv_db_db = yes ; then
21325 if test $ol_cv_lib_db = no ; then
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (default)" >&5
21327 $as_echo_n "checking for Berkeley DB link (default)... " >&6; }
21328 if test "${ol_cv_db_none+set}" = set; then :
21329 $as_echo_n "(cached) " >&6
21334 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h. */
21339 #ifdef HAVE_DB_185_H
21340 # include <db_185.h>
21345 #ifndef DB_VERSION_MAJOR
21346 # define DB_VERSION_MAJOR 1
21350 #define NULL ((void*)0)
21357 #if DB_VERSION_MAJOR > 2
21358 db_env_create( NULL, 0 );
21359 #elif DB_VERSION_MAJOR > 1
21360 db_appexit( NULL );
21362 (void) dbopen( NULL, 0, 0, 0, NULL);
21369 if ac_fn_c_try_link "$LINENO"; then :
21374 rm -f core conftest.err conftest.$ac_objext \
21375 conftest$ac_exeext conftest.$ac_ext
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_none" >&5
21381 $as_echo "$ol_cv_db_none" >&6; }
21383 if test $ol_cv_db_none = yes ; then
21389 if test "$ol_cv_lib_db" != no ; then
21390 ol_cv_berkeley_db=yes
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library and header version match" >&5
21392 $as_echo_n "checking for Berkeley DB library and header version match... " >&6; }
21393 if test "${ol_cv_berkeley_db_version+set}" = set; then :
21394 $as_echo_n "(cached) " >&6
21398 LIBS="$LTHREAD_LIBS $LIBS"
21399 if test $ol_cv_lib_db != yes ; then
21400 LIBS="$ol_cv_lib_db $LIBS"
21403 if test "$cross_compiling" = yes; then :
21404 ol_cv_berkeley_db_version=cross
21406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21407 /* end confdefs.h. */
21409 #ifdef HAVE_DB_185_H
21414 #ifndef DB_VERSION_MAJOR
21415 # define DB_VERSION_MAJOR 1
21418 #define NULL ((void *)0)
21422 #if DB_VERSION_MAJOR > 1
21424 int major, minor, patch;
21426 version = db_version( &major, &minor, &patch );
21428 if( major != DB_VERSION_MAJOR ||
21429 minor != DB_VERSION_MINOR ||
21430 patch != DB_VERSION_PATCH )
21432 printf("Berkeley DB version mismatch\n"
21433 "\theader: %s\n\tlibrary: %s\n",
21434 DB_VERSION_STRING, version);
21442 if ac_fn_c_try_run "$LINENO"; then :
21443 ol_cv_berkeley_db_version=yes
21445 ol_cv_berkeley_db_version=no
21447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21448 conftest.$ac_objext conftest.beam conftest.$ac_ext
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_version" >&5
21456 $as_echo "$ol_cv_berkeley_db_version" >&6; }
21458 if test $ol_cv_berkeley_db_version = no ; then
21459 as_fn_error "Berkeley DB version mismatch" "$LINENO" 5
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB thread support" >&5
21463 $as_echo_n "checking for Berkeley DB thread support... " >&6; }
21464 if test "${ol_cv_berkeley_db_thread+set}" = set; then :
21465 $as_echo_n "(cached) " >&6
21469 LIBS="$LTHREAD_LIBS $LIBS"
21470 if test $ol_cv_lib_db != yes ; then
21471 LIBS="$ol_cv_lib_db $LIBS"
21474 if test "$cross_compiling" = yes; then :
21475 ol_cv_berkeley_db_thread=cross
21477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h. */
21480 #ifdef HAVE_DB_185_H
21486 #define NULL ((void *)0)
21491 u_int32_t flags = DB_CREATE |
21497 #if DB_VERSION_MAJOR > 2
21498 DB_ENV *env = NULL;
21500 rc = db_env_create( &env, 0 );
21502 flags |= DB_INIT_MPOOL;
21503 #ifdef DB_MPOOL_PRIVATE
21504 flags |= DB_MPOOL_PRIVATE;
21508 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21512 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
21513 rc = (env->open)( env, NULL, flags, 0 );
21515 rc = (env->open)( env, NULL, NULL, flags, 0 );
21519 rc = env->close( env, 0 );
21523 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21529 memset( &env, '\0', sizeof(env) );
21531 rc = db_appinit( NULL, NULL, &env, flags );
21534 db_appexit( &env );
21537 unlink("__db_mpool.share");
21538 unlink("__db_lock.share");
21544 if ac_fn_c_try_run "$LINENO"; then :
21545 ol_cv_berkeley_db_thread=yes
21547 ol_cv_berkeley_db_thread=no
21549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21550 conftest.$ac_objext conftest.beam conftest.$ac_ext
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_thread" >&5
21558 $as_echo "$ol_cv_berkeley_db_thread" >&6; }
21560 if test $ol_cv_berkeley_db_thread != no ; then
21562 $as_echo "#define HAVE_BERKELEY_DB_THREAD 1" >>confdefs.h
21570 if test $ol_cv_berkeley_db = no ; then
21571 as_fn_error "BDB/HDB: BerkeleyDB not available" "$LINENO" 5
21575 $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h
21578 if test $ol_cv_lib_db != yes ; then
21579 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
21582 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
21588 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21589 BUILD_LIBS_DYNAMIC=shared
21591 $as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21595 BUILD_LIBS_DYNAMIC=static
21599 if test $ol_enable_wrappers != no ; then
21600 for ac_header in tcpd.h
21602 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21603 if test "x$ac_cv_header_tcpd_h" = x""yes; then :
21604 cat >>confdefs.h <<_ACEOF
21605 #define HAVE_TCPD_H 1
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21609 $as_echo_n "checking for TCP wrappers library... " >&6; }
21611 LIBS="$LIBS -lwrap"
21612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21613 /* end confdefs.h. */
21616 int allow_severity = 0;
21617 int deny_severity = 0;
21619 struct request_info *req;
21631 if ac_fn_c_try_link "$LINENO"; then :
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21633 $as_echo "-lwrap" >&6; }
21639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h. */
21643 int allow_severity = 0;
21644 int deny_severity = 0;
21646 struct request_info *req;
21658 if ac_fn_c_try_link "$LINENO"; then :
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21660 $as_echo "-lwrap -lnsl" >&6; }
21662 LIBS="$save_LIBS -lnsl"
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21666 $as_echo "no" >&6; }
21670 rm -f core conftest.err conftest.$ac_objext \
21671 conftest$ac_exeext conftest.$ac_ext
21673 rm -f core conftest.err conftest.$ac_objext \
21674 conftest$ac_exeext conftest.$ac_ext
21682 if test $have_wrappers = yes ; then
21684 $as_echo "#define HAVE_TCPD 1" >>confdefs.h
21687 elif test $ol_enable_wrappers = yes ; then
21688 as_fn_error "could not find TCP wrappers, select apppropriate options or disable" "$LINENO" 5
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21691 $as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21696 if test $ol_enable_syslog != no ; then
21697 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21698 if test "x$ac_cv_func_openlog" = x""yes; then :
21702 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21703 { as_fn_set_status select appropriate options or disable
21704 as_fn_error "could not find syslog" "$LINENO" 5; }
21706 ol_enable_syslog=$ac_cv_func_openlog
21710 if test $ol_enable_sql != no ; then
21711 for ac_header in sql.h sqlext.h
21713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21714 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21715 eval as_val=\$$as_ac_Header
21716 if test "x$as_val" = x""yes; then :
21717 cat >>confdefs.h <<_ACEOF
21718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21723 as_fn_error "could not locate SQL headers" "$LINENO" 5
21731 LIBS="$LTHREAD_LIBS $LIBS"
21733 if test $ol_with_odbc = auto ; then
21734 ol_with_odbc="iodbc unixodbc odbc32"
21737 for odbc in $ol_with_odbc ; do
21738 if test $ol_link_sql = no ; then
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21742 $as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21743 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then :
21744 $as_echo_n "(cached) " >&6
21746 ac_check_lib_save_LIBS=$LIBS
21747 LIBS="-liodbc $LIBS"
21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h. */
21751 /* Override any GCC internal prototype to avoid an error.
21752 Use char because int might match the return type of a GCC
21753 builtin and then its argument prototype would still apply. */
21757 char SQLDriverConnect ();
21761 return SQLDriverConnect ();
21766 if ac_fn_c_try_link "$LINENO"; then :
21767 ac_cv_lib_iodbc_SQLDriverConnect=yes
21769 ac_cv_lib_iodbc_SQLDriverConnect=no
21771 rm -f core conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext conftest.$ac_ext
21773 LIBS=$ac_check_lib_save_LIBS
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21776 $as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21777 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = x""yes; then :
21783 if test $have_iodbc = yes ; then
21784 ol_link_sql="-liodbc"
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21790 $as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21791 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then :
21792 $as_echo_n "(cached) " >&6
21794 ac_check_lib_save_LIBS=$LIBS
21795 LIBS="-lodbc $LIBS"
21796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21797 /* end confdefs.h. */
21799 /* Override any GCC internal prototype to avoid an error.
21800 Use char because int might match the return type of a GCC
21801 builtin and then its argument prototype would still apply. */
21805 char SQLDriverConnect ();
21809 return SQLDriverConnect ();
21814 if ac_fn_c_try_link "$LINENO"; then :
21815 ac_cv_lib_odbc_SQLDriverConnect=yes
21817 ac_cv_lib_odbc_SQLDriverConnect=no
21819 rm -f core conftest.err conftest.$ac_objext \
21820 conftest$ac_exeext conftest.$ac_ext
21821 LIBS=$ac_check_lib_save_LIBS
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21824 $as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21825 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = x""yes; then :
21831 if test $have_odbc = yes ; then
21832 ol_link_sql="-lodbc"
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21838 $as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21839 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then :
21840 $as_echo_n "(cached) " >&6
21842 ac_check_lib_save_LIBS=$LIBS
21843 LIBS="-lodbc32 $LIBS"
21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h. */
21847 /* Override any GCC internal prototype to avoid an error.
21848 Use char because int might match the return type of a GCC
21849 builtin and then its argument prototype would still apply. */
21853 char SQLDriverConnect ();
21857 return SQLDriverConnect ();
21862 if ac_fn_c_try_link "$LINENO"; then :
21863 ac_cv_lib_odbc32_SQLDriverConnect=yes
21865 ac_cv_lib_odbc32_SQLDriverConnect=no
21867 rm -f core conftest.err conftest.$ac_objext \
21868 conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21872 $as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21873 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = x""yes; then :
21880 if test $have_odbc32 = no ; then
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21882 $as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21884 LIBS="$LIBS -lodbc32"
21885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21886 /* end confdefs.h. */
21887 #include <windows.h>
21888 #include <sqlext.h>
21894 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21900 if ac_fn_c_try_link "$LINENO"; then :
21905 rm -f core conftest.err conftest.$ac_objext \
21906 conftest$ac_exeext conftest.$ac_ext
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21909 $as_echo "$have_odbc32" >&6; }
21912 if test $have_odbc32 = yes ; then
21913 ol_link_sql="-lodbc32"
21918 as_fn_error "unknown ODBC library" "$LINENO" 5
21926 if test $ol_link_sql != no ; then
21927 SLAPD_SQL_LIBS="$ol_link_sql"
21929 elif test $ol_enable_sql != auto ; then
21930 as_fn_error "could not locate suitable ODBC library" "$LINENO" 5
21935 if test $ol_enable_ndb != no ; then
21936 # Extract the first word of "mysql_config", so it can be a program name with args.
21937 set dummy mysql_config; ac_word=$2
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21939 $as_echo_n "checking for $ac_word... " >&6; }
21940 if test "${ac_cv_prog_MYSQL+set}" = set; then :
21941 $as_echo_n "(cached) " >&6
21943 if test -n "$MYSQL"; then
21944 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
21946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21947 for as_dir in $PATH
21950 test -z "$as_dir" && as_dir=.
21951 for ac_exec_ext in '' $ac_executable_extensions; do
21952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21953 ac_cv_prog_MYSQL="yes"
21954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21963 MYSQL=$ac_cv_prog_MYSQL
21964 if test -n "$MYSQL"; then
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
21966 $as_echo "$MYSQL" >&6; }
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21969 $as_echo "no" >&6; }
21973 if test "$MYSQL" != yes ; then
21974 as_fn_error "could not locate mysql_config" "$LINENO" 5
21977 SQL_INC=`mysql_config --include`
21978 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
21980 save_CPPFLAGS="$CPPFLAGS"
21981 CPPFLAGS="$SLAPD_NDB_INCS"
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
21983 $as_echo_n "checking for NdbApi.hpp... " >&6; }
21984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h. */
21986 #include <NdbApi.hpp>
21988 if ac_fn_c_try_cpp "$LINENO"; then :
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21990 $as_echo "yes" >&6; }
21992 as_fn_error "could not locate NdbApi headers" "$LINENO" 5
21995 rm -f conftest.err conftest.$ac_ext
21996 CPPFLAGS="$save_CPPFLAGS"
21998 SQL_LIB=`mysql_config --libs_r`
21999 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
22001 save_LDFLAGS="$LDFLAGS"
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
22005 $as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
22006 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22009 ac_check_lib_save_LIBS=$LIBS
22010 LIBS="-lndbclient -lstdc++ $LIBS"
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h. */
22014 /* Override any GCC internal prototype to avoid an error.
22015 Use char because int might match the return type of a GCC
22016 builtin and then its argument prototype would still apply. */
22024 return ndb_init ();
22029 if ac_fn_c_try_link "$LINENO"; then :
22030 ac_cv_lib_ndbclient_ndb_init=yes
22032 ac_cv_lib_ndbclient_ndb_init=no
22034 rm -f core conftest.err conftest.$ac_objext \
22035 conftest$ac_exeext conftest.$ac_ext
22036 LIBS=$ac_check_lib_save_LIBS
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
22039 $as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
22040 if test "x$ac_cv_lib_ndbclient_ndb_init" = x""yes; then :
22044 as_fn_error "could not locate ndbclient library" "$LINENO" 5
22049 LDFLAGS="$save_LDFLAGS"
22051 if test "$ol_enable_ndb" = yes ; then
22052 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
22057 if test $ol_enable_wt != no ; then
22058 # Extract the first word of "pkg-config", so it can be a program name with args.
22059 set dummy pkg-config; ac_word=$2
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22061 $as_echo_n "checking for $ac_word... " >&6; }
22062 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
22063 $as_echo_n "(cached) " >&6
22065 if test -n "$PKGCONFIG"; then
22066 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
22068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22069 for as_dir in $PATH
22072 test -z "$as_dir" && as_dir=.
22073 for ac_exec_ext in '' $ac_executable_extensions; do
22074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22075 ac_cv_prog_PKGCONFIG="yes"
22076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22085 PKGCONFIG=$ac_cv_prog_PKGCONFIG
22086 if test -n "$PKGCONFIG"; then
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22088 $as_echo "$PKGCONFIG" >&6; }
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22091 $as_echo "no" >&6; }
22095 if test "$PKGCONFIG" != yes ; then
22096 as_fn_error "could not locate pkg-config" "$LINENO" 5
22098 WT_INCS=`pkg-config --cflags wiredtiger`
22099 WT_LIBS=`pkg-config --libs wiredtiger`
22101 save_CFLAGS="$CFLAGS"
22102 save_LDFLAGS="$LDFLAGS"
22104 CPPFLAGS="$WT_INCS"
22106 for ac_header in wiredtiger.h
22108 ac_fn_c_check_header_mongrel "$LINENO" "wiredtiger.h" "ac_cv_header_wiredtiger_h" "$ac_includes_default"
22109 if test "x$ac_cv_header_wiredtiger_h" = x""yes; then :
22110 cat >>confdefs.h <<_ACEOF
22111 #define HAVE_WIREDTIGER_H 1
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiredtiger_version in -lwiredtiger" >&5
22119 $as_echo_n "checking for wiredtiger_version in -lwiredtiger... " >&6; }
22120 if test "${ac_cv_lib_wiredtiger_wiredtiger_version+set}" = set; then :
22121 $as_echo_n "(cached) " >&6
22123 ac_check_lib_save_LIBS=$LIBS
22124 LIBS="-lwiredtiger $LIBS"
22125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22126 /* end confdefs.h. */
22128 /* Override any GCC internal prototype to avoid an error.
22129 Use char because int might match the return type of a GCC
22130 builtin and then its argument prototype would still apply. */
22134 char wiredtiger_version ();
22138 return wiredtiger_version ();
22143 if ac_fn_c_try_link "$LINENO"; then :
22144 ac_cv_lib_wiredtiger_wiredtiger_version=yes
22146 ac_cv_lib_wiredtiger_wiredtiger_version=no
22148 rm -f core conftest.err conftest.$ac_objext \
22149 conftest$ac_exeext conftest.$ac_ext
22150 LIBS=$ac_check_lib_save_LIBS
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wiredtiger_wiredtiger_version" >&5
22153 $as_echo "$ac_cv_lib_wiredtiger_wiredtiger_version" >&6; }
22154 if test "x$ac_cv_lib_wiredtiger_wiredtiger_version" = x""yes; then :
22158 as_fn_error "could not locate wiredtiger library" "$LINENO" 5
22162 CFLAGS="$save_CFLAGS"
22163 CPPFLAGS="$save_CPPFLAGS"
22164 LDFLAGS="$save_LDFLAGS"
22165 SLAPD_LIBS="$SLAPD_LIBS \$(WT_LIBS)"
22170 for ac_header in unicode/utypes.h
22172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22173 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22174 eval as_val=\$$as_ac_Header
22175 if test "x$as_val" = x""yes; then :
22176 cat >>confdefs.h <<_ACEOF
22177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22184 if test $ac_cv_header_unicode_utypes_h = yes ; then
22185 OL_ICULIBS="-licuuc -licudata"
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU libraries" >&5
22188 $as_echo_n "checking for ICU libraries... " >&6; }
22189 if test "${ol_cv_lib_icu+set}" = set; then :
22190 $as_echo_n "(cached) " >&6
22194 LIBS="$OL_ICULIBS $LIBS"
22195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22196 /* end confdefs.h. */
22198 #include <unicode/utypes.h>
22204 (void) u_errorName(0);
22210 if ac_fn_c_try_link "$LINENO"; then :
22215 rm -f core conftest.err conftest.$ac_objext \
22216 conftest$ac_exeext conftest.$ac_ext
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_icu" >&5
22221 $as_echo "$ol_cv_lib_icu" >&6; }
22223 if test $ol_cv_lib_icu != no ; then
22224 ol_icu="$OL_ICULIBS"
22226 $as_echo "#define HAVE_ICU 1" >>confdefs.h
22231 if test "$ol_icu" = no ; then
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ICU not available" >&5
22233 $as_echo "$as_me: WARNING: ICU not available" >&2;}
22240 if test $ol_with_cyrus_sasl != no ; then
22241 for ac_header in sasl/sasl.h sasl.h
22243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22244 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22245 eval as_val=\$$as_ac_Header
22246 if test "x$as_val" = x""yes; then :
22247 cat >>confdefs.h <<_ACEOF
22248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22256 if test $ac_cv_header_sasl_sasl_h = yes ||
22257 test $ac_cv_header_sasl_h = yes; then
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22259 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22260 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then :
22261 $as_echo_n "(cached) " >&6
22263 ac_check_lib_save_LIBS=$LIBS
22264 LIBS="-lsasl2 $LIBS"
22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h. */
22268 /* Override any GCC internal prototype to avoid an error.
22269 Use char because int might match the return type of a GCC
22270 builtin and then its argument prototype would still apply. */
22274 char sasl_client_init ();
22278 return sasl_client_init ();
22283 if ac_fn_c_try_link "$LINENO"; then :
22284 ac_cv_lib_sasl2_sasl_client_init=yes
22286 ac_cv_lib_sasl2_sasl_client_init=no
22288 rm -f core conftest.err conftest.$ac_objext \
22289 conftest$ac_exeext conftest.$ac_ext
22290 LIBS=$ac_check_lib_save_LIBS
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22293 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22294 if test "x$ac_cv_lib_sasl2_sasl_client_init" = x""yes; then :
22295 ol_link_sasl="-lsasl2"
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22298 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22299 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then :
22300 $as_echo_n "(cached) " >&6
22302 ac_check_lib_save_LIBS=$LIBS
22303 LIBS="-lsasl $LIBS"
22304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305 /* end confdefs.h. */
22307 /* Override any GCC internal prototype to avoid an error.
22308 Use char because int might match the return type of a GCC
22309 builtin and then its argument prototype would still apply. */
22313 char sasl_client_init ();
22317 return sasl_client_init ();
22322 if ac_fn_c_try_link "$LINENO"; then :
22323 ac_cv_lib_sasl_sasl_client_init=yes
22325 ac_cv_lib_sasl_sasl_client_init=no
22327 rm -f core conftest.err conftest.$ac_objext \
22328 conftest$ac_exeext conftest.$ac_ext
22329 LIBS=$ac_check_lib_save_LIBS
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22332 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22333 if test "x$ac_cv_lib_sasl_sasl_client_init" = x""yes; then :
22334 ol_link_sasl="-lsasl"
22341 if test $ol_link_sasl = no ; then
22342 if test $ol_with_cyrus_sasl != auto ; then
22343 as_fn_error "Could not locate Cyrus SASL" "$LINENO" 5
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22346 $as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22348 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22349 if test $ol_link_tls = no ; then
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22351 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22356 $as_echo_n "checking Cyrus SASL library version... " >&6; }
22357 if test "${ol_cv_sasl_compat+set}" = set; then :
22358 $as_echo_n "(cached) " >&6
22361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22362 /* end confdefs.h. */
22364 #ifdef HAVE_SASL_SASL_H
22365 #include <sasl/sasl.h>
22370 /* Require 2.1.15+ */
22371 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22372 char *__sasl_compat = "2.2+ or better okay (we guess)";
22373 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22374 && SASL_VERSION_STEP >=15
22375 char *__sasl_compat = "2.1.15+ or better okay";
22379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22380 $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22381 ol_cv_sasl_compat=yes
22383 ol_cv_sasl_compat=no
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22389 $as_echo "$ol_cv_sasl_compat" >&6; }
22391 if test $ol_cv_sasl_compat = no ; then
22393 as_fn_error "Cyrus SASL library located but is incompatible" "$LINENO" 5
22397 $as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22399 SASL_LIBS="$ol_link_sasl"
22400 if test $ol_enable_spasswd != no ; then
22401 ol_link_spasswd=yes
22404 ac_save_LIBS="$LIBS"
22405 LIBS="$LIBS $ol_link_sasl"
22406 ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22407 if test "x$ac_cv_func_sasl_version" = x""yes; then :
22409 $as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22413 LIBS="$ac_save_LIBS"
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22420 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22421 if test $ol_link_tls = no ; then
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22423 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22427 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22429 if test -r /dev/urandom ; then
22430 dev="/dev/urandom";
22431 elif test -r /idev/urandom ; then
22432 dev="/idev/urandom";
22433 elif test -r /dev/srandom ; then
22434 dev="/dev/srandom";
22435 elif test -r /dev/random ; then
22437 elif test -r /idev/random ; then
22438 dev="/idev/random";
22441 if test $dev != no ; then
22443 cat >>confdefs.h <<_ACEOF
22444 #define URANDOM_DEVICE "$dev"
22451 if test $ol_with_fetch != no ; then
22453 LIBS="-lfetch -lcom_err $LIBS"
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22455 $as_echo_n "checking fetch(3) library... " >&6; }
22456 if test "${ol_cv_lib_fetch+set}" = set; then :
22457 $as_echo_n "(cached) " >&6
22460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h. */
22463 #ifdef HAVE_SYS_PARAM_H
22464 #include <sys/param.h>
22471 struct url *u = fetchParseURL("file:///");
22476 if ac_fn_c_try_link "$LINENO"; then :
22477 ol_cv_lib_fetch=yes
22481 rm -f core conftest.err conftest.$ac_objext \
22482 conftest$ac_exeext conftest.$ac_ext
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22485 $as_echo "$ol_cv_lib_fetch" >&6; }
22487 if test $ol_cv_lib_fetch != no ; then
22488 ol_link_fetch="-lfetch -lcom_err"
22490 $as_echo "#define HAVE_FETCH 1" >>confdefs.h
22495 if test $ol_cv_lib_fetch != no ; then
22496 LIBS="$LIBS $ol_link_fetch"
22497 ol_link_fetch=freebsd
22499 elif test $ol_with_fetch != auto ; then
22500 as_fn_error "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22504 if test $ol_enable_crypt != no ; then
22506 LIBS="$TLS_LIBS $LIBS"
22508 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22509 if test "x$ac_cv_func_crypt" = x""yes; then :
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22515 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22516 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22517 $as_echo_n "(cached) " >&6
22519 ac_check_lib_save_LIBS=$LIBS
22520 LIBS="-lcrypt $LIBS"
22521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22522 /* end confdefs.h. */
22524 /* Override any GCC internal prototype to avoid an error.
22525 Use char because int might match the return type of a GCC
22526 builtin and then its argument prototype would still apply. */
22539 if ac_fn_c_try_link "$LINENO"; then :
22540 ac_cv_lib_crypt_crypt=yes
22542 ac_cv_lib_crypt_crypt=no
22544 rm -f core conftest.err conftest.$ac_objext \
22545 conftest$ac_exeext conftest.$ac_ext
22546 LIBS=$ac_check_lib_save_LIBS
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22549 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22550 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22551 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22562 if test $have_crypt = yes ; then
22564 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22568 $as_echo "$as_me: WARNING: could not find crypt" >&2;}
22569 if test $ol_enable_crypt = yes ; then
22570 as_fn_error "could not find crypt, select appropriate options or disable" "$LINENO" 5
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22574 $as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22579 if test $ol_enable_proctitle != no ; then
22580 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
22581 if test "x$ac_cv_func_setproctitle" = x""yes; then :
22582 have_setproctitle=yes
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
22586 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
22587 if test "${ac_cv_lib_util_setproctitle+set}" = set; then :
22588 $as_echo_n "(cached) " >&6
22590 ac_check_lib_save_LIBS=$LIBS
22591 LIBS="-lutil $LIBS"
22592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22593 /* end confdefs.h. */
22595 /* Override any GCC internal prototype to avoid an error.
22596 Use char because int might match the return type of a GCC
22597 builtin and then its argument prototype would still apply. */
22601 char setproctitle ();
22605 return setproctitle ();
22610 if ac_fn_c_try_link "$LINENO"; then :
22611 ac_cv_lib_util_setproctitle=yes
22613 ac_cv_lib_util_setproctitle=no
22615 rm -f core conftest.err conftest.$ac_objext \
22616 conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
22620 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
22621 if test "x$ac_cv_lib_util_setproctitle" = x""yes; then :
22622 have_setproctitle=yes
22623 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22625 have_setproctitle=no
22626 case " $LIBOBJS " in
22627 *" setproctitle.$ac_objext "* ) ;;
22628 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
22632 LIBSRCS="$LIBSRCS setproctitle.c"
22638 if test $have_setproctitle = yes ; then
22640 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
22645 if test $ol_enable_slp != no ; then
22646 for ac_header in slp.h
22648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22649 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22650 eval as_val=\$$as_ac_Header
22651 if test "x$as_val" = x""yes; then :
22652 cat >>confdefs.h <<_ACEOF
22653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22661 if test $ac_cv_header_slp_h = yes ; then
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22663 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22664 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then :
22665 $as_echo_n "(cached) " >&6
22667 ac_check_lib_save_LIBS=$LIBS
22669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22670 /* end confdefs.h. */
22672 /* Override any GCC internal prototype to avoid an error.
22673 Use char because int might match the return type of a GCC
22674 builtin and then its argument prototype would still apply. */
22687 if ac_fn_c_try_link "$LINENO"; then :
22688 ac_cv_lib_slp_SLPOpen=yes
22690 ac_cv_lib_slp_SLPOpen=no
22692 rm -f core conftest.err conftest.$ac_objext \
22693 conftest$ac_exeext conftest.$ac_ext
22694 LIBS=$ac_check_lib_save_LIBS
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22697 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22698 if test "x$ac_cv_lib_slp_SLPOpen" = x""yes; then :
22704 if test $have_slp = yes ; then
22706 $as_echo "#define HAVE_SLP 1" >>confdefs.h
22708 SLAPD_SLP_LIBS=-lslp
22711 elif test $ol_enable_slp = yes ; then
22712 as_fn_error "SLP not found" "$LINENO" 5
22717 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22718 if test "x$ac_cv_type_mode_t" = x""yes; then :
22722 cat >>confdefs.h <<_ACEOF
22728 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22729 if test "x$ac_cv_type_off_t" = x""yes; then :
22733 cat >>confdefs.h <<_ACEOF
22739 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22740 if test "x$ac_cv_type_pid_t" = x""yes; then :
22744 cat >>confdefs.h <<_ACEOF
22750 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22751 if test "x$ac_cv_type_ssize_t" = x""yes; then :
22755 cat >>confdefs.h <<_ACEOF
22756 #define ssize_t signed int
22761 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22762 if test "x$ac_cv_type_caddr_t" = x""yes; then :
22766 cat >>confdefs.h <<_ACEOF
22767 #define caddr_t char *
22772 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22773 if test "x$ac_cv_type_size_t" = x""yes; then :
22777 cat >>confdefs.h <<_ACEOF
22778 #define size_t unsigned
22784 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22785 if test "x$ac_cv_type_long_long" = x""yes; then :
22787 cat >>confdefs.h <<_ACEOF
22788 #define HAVE_LONG_LONG 1
22794 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22795 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
22797 cat >>confdefs.h <<_ACEOF
22798 #define HAVE_PTRDIFF_T 1
22806 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
22807 #ifdef HAVE_SYS_SOCKET_H
22808 #include <sys/socket.h>
22811 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
22817 $as_echo_n "checking the type of arg 3 to accept()... " >&6; }
22818 if test "${ol_cv_type_ber_socklen_t+set}" = set; then :
22819 $as_echo_n "(cached) " >&6
22822 set socklen_t int unsigned "unsigned long" long size_t
22823 test "$ac_cv_type_socklen_t" = yes || shift
22824 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
22825 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
22826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22827 /* end confdefs.h. */
22828 $ac_includes_default
22829 #ifdef HAVE_SYS_SOCKET_H
22830 #include <sys/socket.h>
22832 extern int accept(int s, $addrtype *ap, $lentype *lp);
22838 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
22844 if ac_fn_c_try_compile "$LINENO"; then :
22845 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
22847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
22852 $as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
22854 cat >>confdefs.h <<_ACEOF
22855 #define ber_socklen_t $ol_cv_type_ber_socklen_t
22859 if test "$ac_cv_type_socklen_t" != yes; then
22861 cat >>confdefs.h <<_ACEOF
22862 #define socklen_t $ol_cv_type_ber_socklen_t
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22869 $as_echo_n "checking return type of signal handlers... " >&6; }
22870 if test "${ac_cv_type_signal+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h. */
22875 #include <sys/types.h>
22876 #include <signal.h>
22881 return *(signal (0, 0)) (0) == 1;
22886 if ac_fn_c_try_compile "$LINENO"; then :
22887 ac_cv_type_signal=int
22889 ac_cv_type_signal=void
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22894 $as_echo "$ac_cv_type_signal" >&6; }
22896 cat >>confdefs.h <<_ACEOF
22897 #define RETSIGTYPE $ac_cv_type_signal
22902 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
22903 #include <signal.h>
22906 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
22910 cat >>confdefs.h <<_ACEOF
22911 #define sig_atomic_t int
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22918 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22919 if test "${ac_cv_type_uid_t+set}" = set; then :
22920 $as_echo_n "(cached) " >&6
22922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22923 /* end confdefs.h. */
22924 #include <sys/types.h>
22927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22928 $EGREP "uid_t" >/dev/null 2>&1; then :
22929 ac_cv_type_uid_t=yes
22931 ac_cv_type_uid_t=no
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22937 $as_echo "$ac_cv_type_uid_t" >&6; }
22938 if test $ac_cv_type_uid_t = no; then
22940 $as_echo "#define uid_t int" >>confdefs.h
22943 $as_echo "#define gid_t int" >>confdefs.h
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22949 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22950 if test "${ac_cv_header_time+set}" = set; then :
22951 $as_echo_n "(cached) " >&6
22953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h. */
22955 #include <sys/types.h>
22956 #include <sys/time.h>
22962 if ((struct tm *) 0)
22968 if ac_fn_c_try_compile "$LINENO"; then :
22969 ac_cv_header_time=yes
22971 ac_cv_header_time=no
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22976 $as_echo "$ac_cv_header_time" >&6; }
22977 if test $ac_cv_header_time = yes; then
22979 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22984 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22985 if test "${ac_cv_struct_tm+set}" = set; then :
22986 $as_echo_n "(cached) " >&6
22988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22989 /* end confdefs.h. */
22990 #include <sys/types.h>
22997 int *p = &tm.tm_sec;
23003 if ac_fn_c_try_compile "$LINENO"; then :
23004 ac_cv_struct_tm=time.h
23006 ac_cv_struct_tm=sys/time.h
23008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
23011 $as_echo "$ac_cv_struct_tm" >&6; }
23012 if test $ac_cv_struct_tm = sys/time.h; then
23014 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
23018 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
23019 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
23021 cat >>confdefs.h <<_ACEOF
23022 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23028 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
23031 if test "x$ac_cv_member_struct_passwd_pw_gecos" = x""yes; then :
23033 cat >>confdefs.h <<_ACEOF
23034 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
23040 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
23043 if test "x$ac_cv_member_struct_passwd_pw_passwd" = x""yes; then :
23045 cat >>confdefs.h <<_ACEOF
23046 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
23054 $as_echo_n "checking if toupper() requires islower()... " >&6; }
23055 if test "${ol_cv_c_upper_lower+set}" = set; then :
23056 $as_echo_n "(cached) " >&6
23059 if test "$cross_compiling" = yes; then :
23060 ol_cv_c_upper_lower=safe
23062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23063 /* end confdefs.h. */
23068 if ('C' == toupper('C'))
23074 if ac_fn_c_try_run "$LINENO"; then :
23075 ol_cv_c_upper_lower=no
23077 ol_cv_c_upper_lower=yes
23079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23080 conftest.$ac_objext conftest.beam conftest.$ac_ext
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
23085 $as_echo "$ol_cv_c_upper_lower" >&6; }
23086 if test $ol_cv_c_upper_lower != no ; then
23088 $as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23093 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23094 if test "${ac_cv_c_const+set}" = set; then :
23095 $as_echo_n "(cached) " >&6
23097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23098 /* end confdefs.h. */
23103 /* FIXME: Include the comments suggested by Paul. */
23104 #ifndef __cplusplus
23105 /* Ultrix mips cc rejects this. */
23106 typedef int charset[2];
23108 /* SunOS 4.1.1 cc rejects this. */
23109 char const *const *pcpcc;
23111 /* NEC SVR4.0.2 mips cc rejects this. */
23112 struct point {int x, y;};
23113 static struct point const zero = {0,0};
23114 /* AIX XL C 1.02.0.0 rejects this.
23115 It does not let you subtract one const X* pointer from another in
23116 an arm of an if-expression whose if-part is not a constant
23118 const char *g = "string";
23119 pcpcc = &g + (g ? g-g : 0);
23120 /* HPUX 7.0 cc rejects these. */
23122 ppc = (char**) pcpcc;
23123 pcpcc = (char const *const *) ppc;
23124 { /* SCO 3.2v4 cc rejects this. */
23126 char const *s = 0 ? (char *) 0 : (char const *) 0;
23131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23132 int x[] = {25, 17};
23133 const int *foo = &x[0];
23136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23137 typedef const int *iptr;
23141 { /* AIX XL C 1.02.0.0 rejects this saying
23142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23143 struct s { int j; const int *ap[3]; };
23144 struct s *b; b->j = 5;
23146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23147 const int foo = 10;
23148 if (!foo) return 0;
23150 return !cs[0] && !zero.x;
23157 if ac_fn_c_try_compile "$LINENO"; then :
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23165 $as_echo "$ac_cv_c_const" >&6; }
23166 if test $ac_cv_c_const = no; then
23168 $as_echo "#define const /**/" >>confdefs.h
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
23173 $as_echo_n "checking if compiler understands volatile... " >&6; }
23174 if test "${ol_cv_c_volatile+set}" = set; then :
23175 $as_echo_n "(cached) " >&6
23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 /* end confdefs.h. */
23183 volatile int a; int * volatile b = x ? &y : &z;
23184 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23190 if ac_fn_c_try_compile "$LINENO"; then :
23191 ol_cv_c_volatile=yes
23193 ol_cv_c_volatile=no
23195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
23198 $as_echo "$ol_cv_c_volatile" >&6; }
23199 if test $ol_cv_c_volatile = yes; then
23203 $as_echo "#define volatile /**/" >>confdefs.h
23208 if test $cross_compiling = yes ; then
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
23210 $as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
23212 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23216 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23217 if test "${ac_cv_c_bigendian+set}" = set; then :
23218 $as_echo_n "(cached) " >&6
23220 ac_cv_c_bigendian=unknown
23221 # See if we're dealing with a universal compiler.
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224 #ifndef __APPLE_CC__
23225 not a universal capable compiler
23230 if ac_fn_c_try_compile "$LINENO"; then :
23232 # Check for potential -arch flags. It is not universal unless
23233 # there are at least two -arch flags with different values.
23236 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23237 if test -n "$ac_prev"; then
23239 i?86 | x86_64 | ppc | ppc64)
23240 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23243 ac_cv_c_bigendian=universal
23249 elif test "x$ac_word" = "x-arch"; then
23254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23255 if test $ac_cv_c_bigendian = unknown; then
23256 # See if sys/param.h defines the BYTE_ORDER macro.
23257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23258 /* end confdefs.h. */
23259 #include <sys/types.h>
23260 #include <sys/param.h>
23265 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23266 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23268 bogus endian macros
23275 if ac_fn_c_try_compile "$LINENO"; then :
23276 # It does; now see whether it defined to BIG_ENDIAN or not.
23277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23278 /* end confdefs.h. */
23279 #include <sys/types.h>
23280 #include <sys/param.h>
23285 #if BYTE_ORDER != BIG_ENDIAN
23293 if ac_fn_c_try_compile "$LINENO"; then :
23294 ac_cv_c_bigendian=yes
23296 ac_cv_c_bigendian=no
23298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23302 if test $ac_cv_c_bigendian = unknown; then
23303 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23305 /* end confdefs.h. */
23306 #include <limits.h>
23311 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23312 bogus endian macros
23319 if ac_fn_c_try_compile "$LINENO"; then :
23320 # It does; now see whether it defined to _BIG_ENDIAN or not.
23321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23322 /* end confdefs.h. */
23323 #include <limits.h>
23328 #ifndef _BIG_ENDIAN
23336 if ac_fn_c_try_compile "$LINENO"; then :
23337 ac_cv_c_bigendian=yes
23339 ac_cv_c_bigendian=no
23341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 if test $ac_cv_c_bigendian = unknown; then
23346 # Compile a test program.
23347 if test "$cross_compiling" = yes; then :
23348 # Try to guess by grepping values from an object file.
23349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23350 /* end confdefs.h. */
23351 short int ascii_mm[] =
23352 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23353 short int ascii_ii[] =
23354 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23355 int use_ascii (int i) {
23356 return ascii_mm[i] + ascii_ii[i];
23358 short int ebcdic_ii[] =
23359 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23360 short int ebcdic_mm[] =
23361 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23362 int use_ebcdic (int i) {
23363 return ebcdic_mm[i] + ebcdic_ii[i];
23370 return use_ascii (foo) == use_ebcdic (foo);
23375 if ac_fn_c_try_compile "$LINENO"; then :
23376 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23377 ac_cv_c_bigendian=yes
23379 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23380 if test "$ac_cv_c_bigendian" = unknown; then
23381 ac_cv_c_bigendian=no
23383 # finding both strings is unlikely to happen, but who knows?
23384 ac_cv_c_bigendian=unknown
23388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23391 /* end confdefs.h. */
23392 $ac_includes_default
23397 /* Are we little or big endian? From Harbison&Steele. */
23401 char c[sizeof (long int)];
23404 return u.c[sizeof (long int) - 1] == 1;
23410 if ac_fn_c_try_run "$LINENO"; then :
23411 ac_cv_c_bigendian=no
23413 ac_cv_c_bigendian=yes
23415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23416 conftest.$ac_objext conftest.beam conftest.$ac_ext
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23422 $as_echo "$ac_cv_c_bigendian" >&6; }
23423 case $ac_cv_c_bigendian in #(
23425 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23431 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23435 as_fn_error "unknown endianness
23436 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23441 # The cast to long int works around a bug in the HP C Compiler
23442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23444 # This bug is HP SR number 8606223364.
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23446 $as_echo_n "checking size of short... " >&6; }
23447 if test "${ac_cv_sizeof_short+set}" = set; then :
23448 $as_echo_n "(cached) " >&6
23450 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23453 if test "$ac_cv_type_short" = yes; then
23454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23456 { as_fn_set_status 77
23457 as_fn_error "cannot compute sizeof (short)
23458 See \`config.log' for more details." "$LINENO" 5; }; }
23460 ac_cv_sizeof_short=0
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23466 $as_echo "$ac_cv_sizeof_short" >&6; }
23470 cat >>confdefs.h <<_ACEOF
23471 #define SIZEOF_SHORT $ac_cv_sizeof_short
23475 # The cast to long int works around a bug in the HP C Compiler
23476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23478 # This bug is HP SR number 8606223364.
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23480 $as_echo_n "checking size of int... " >&6; }
23481 if test "${ac_cv_sizeof_int+set}" = set; then :
23482 $as_echo_n "(cached) " >&6
23484 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23487 if test "$ac_cv_type_int" = yes; then
23488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23490 { as_fn_set_status 77
23491 as_fn_error "cannot compute sizeof (int)
23492 See \`config.log' for more details." "$LINENO" 5; }; }
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23500 $as_echo "$ac_cv_sizeof_int" >&6; }
23504 cat >>confdefs.h <<_ACEOF
23505 #define SIZEOF_INT $ac_cv_sizeof_int
23509 # The cast to long int works around a bug in the HP C Compiler
23510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23512 # This bug is HP SR number 8606223364.
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23514 $as_echo_n "checking size of long... " >&6; }
23515 if test "${ac_cv_sizeof_long+set}" = set; then :
23516 $as_echo_n "(cached) " >&6
23518 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23521 if test "$ac_cv_type_long" = yes; then
23522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23524 { as_fn_set_status 77
23525 as_fn_error "cannot compute sizeof (long)
23526 See \`config.log' for more details." "$LINENO" 5; }; }
23528 ac_cv_sizeof_long=0
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23534 $as_echo "$ac_cv_sizeof_long" >&6; }
23538 cat >>confdefs.h <<_ACEOF
23539 #define SIZEOF_LONG $ac_cv_sizeof_long
23543 # The cast to long int works around a bug in the HP C Compiler
23544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23546 # This bug is HP SR number 8606223364.
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23548 $as_echo_n "checking size of long long... " >&6; }
23549 if test "${ac_cv_sizeof_long_long+set}" = set; then :
23550 $as_echo_n "(cached) " >&6
23552 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23555 if test "$ac_cv_type_long_long" = yes; then
23556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23558 { as_fn_set_status 77
23559 as_fn_error "cannot compute sizeof (long long)
23560 See \`config.log' for more details." "$LINENO" 5; }; }
23562 ac_cv_sizeof_long_long=0
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23568 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23572 cat >>confdefs.h <<_ACEOF
23573 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23577 # The cast to long int works around a bug in the HP C Compiler
23578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23580 # This bug is HP SR number 8606223364.
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23582 $as_echo_n "checking size of wchar_t... " >&6; }
23583 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
23584 $as_echo_n "(cached) " >&6
23586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
23589 if test "$ac_cv_type_wchar_t" = yes; then
23590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23592 { as_fn_set_status 77
23593 as_fn_error "cannot compute sizeof (wchar_t)
23594 See \`config.log' for more details." "$LINENO" 5; }; }
23596 ac_cv_sizeof_wchar_t=0
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23602 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23606 cat >>confdefs.h <<_ACEOF
23607 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23612 if test "$ac_cv_sizeof_int" -lt 4 ; then
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23614 $as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23617 $as_echo "#define LBER_INT_T long" >>confdefs.h
23621 $as_echo "#define LBER_INT_T int" >>confdefs.h
23626 $as_echo "#define LBER_LEN_T long" >>confdefs.h
23629 $as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23632 $as_echo "#define LBER_TAG_T long" >>confdefs.h
23635 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23636 if test $ac_cv_sizeof_long_long -gt 4 ; then
23637 ol_with_mp=longlong
23639 $as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23641 elif test $ol_with_mp = longlong ; then
23642 as_fn_error "long long unusable for multiple precision" "$LINENO" 5
23645 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23646 if test $ac_cv_sizeof_long -gt 4 ; then
23649 $as_echo "#define USE_MP_LONG 1" >>confdefs.h
23651 elif test $ol_with_mp = long ; then
23652 as_fn_error "long unusable for multiple precision" "$LINENO" 5
23655 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23656 for ac_header in openssl/bn.h
23658 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23659 if test "x$ac_cv_header_openssl_bn_h" = x""yes; then :
23660 cat >>confdefs.h <<_ACEOF
23661 #define HAVE_OPENSSL_BN_H 1
23668 for ac_header in openssl/crypto.h
23670 ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23671 if test "x$ac_cv_header_openssl_crypto_h" = x""yes; then :
23672 cat >>confdefs.h <<_ACEOF
23673 #define HAVE_OPENSSL_CRYPTO_H 1
23680 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23681 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23682 test "$ol_with_tls" = "found" ; then
23685 $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23687 elif test $ol_with_mp = bignum ; then
23688 as_fn_error "bignum not available" "$LINENO" 5
23691 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23692 for ac_header in gmp.h
23694 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23695 if test "x$ac_cv_header_gmp_h" = x""yes; then :
23696 cat >>confdefs.h <<_ACEOF
23697 #define HAVE_GMP_H 1
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23705 $as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23706 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then :
23707 $as_echo_n "(cached) " >&6
23709 ac_check_lib_save_LIBS=$LIBS
23711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23712 /* end confdefs.h. */
23714 /* Override any GCC internal prototype to avoid an error.
23715 Use char because int might match the return type of a GCC
23716 builtin and then its argument prototype would still apply. */
23720 char __gmpz_add_ui ();
23724 return __gmpz_add_ui ();
23729 if ac_fn_c_try_link "$LINENO"; then :
23730 ac_cv_lib_gmp___gmpz_add_ui=yes
23732 ac_cv_lib_gmp___gmpz_add_ui=no
23734 rm -f core conftest.err conftest.$ac_objext \
23735 conftest$ac_exeext conftest.$ac_ext
23736 LIBS=$ac_check_lib_save_LIBS
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23739 $as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23740 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = x""yes; then :
23741 cat >>confdefs.h <<_ACEOF
23742 #define HAVE_LIBGMP 1
23749 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23751 $as_echo "#define USE_MP_GMP 1" >>confdefs.h
23754 elif test $ol_with_mp = gmp ; then
23755 as_fn_error "gmp not available" "$LINENO" 5
23758 if test $ol_with_mp = auto ; then
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23763 $as_echo_n "checking for working memcmp... " >&6; }
23764 if test "${ac_cv_func_memcmp_working+set}" = set; then :
23765 $as_echo_n "(cached) " >&6
23767 if test "$cross_compiling" = yes; then :
23768 ac_cv_func_memcmp_working=no
23770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23771 /* end confdefs.h. */
23772 $ac_includes_default
23777 /* Some versions of memcmp are not 8-bit clean. */
23778 char c0 = '\100', c1 = '\200', c2 = '\201';
23779 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23782 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23783 or more and with at least one buffer not starting on a 4-byte boundary.
23784 William Lewis provided this test program. */
23789 for (i = 0; i < 4; i++)
23793 strcpy (a, "--------01111111");
23794 strcpy (b, "--------10000000");
23795 if (memcmp (a, b, 16) >= 0)
23805 if ac_fn_c_try_run "$LINENO"; then :
23806 ac_cv_func_memcmp_working=yes
23808 ac_cv_func_memcmp_working=no
23810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23811 conftest.$ac_objext conftest.beam conftest.$ac_ext
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23816 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23817 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23818 *" memcmp.$ac_objext "* ) ;;
23819 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23825 if test $ac_cv_func_memcmp_working = no ; then
23827 $as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23831 for ac_func in strftime
23833 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
23834 if test "x$ac_cv_func_strftime" = x""yes; then :
23835 cat >>confdefs.h <<_ACEOF
23836 #define HAVE_STRFTIME 1
23840 # strftime is in -lintl on SCO UNIX.
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
23842 $as_echo_n "checking for strftime in -lintl... " >&6; }
23843 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
23844 $as_echo_n "(cached) " >&6
23846 ac_check_lib_save_LIBS=$LIBS
23847 LIBS="-lintl $LIBS"
23848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23849 /* end confdefs.h. */
23851 /* Override any GCC internal prototype to avoid an error.
23852 Use char because int might match the return type of a GCC
23853 builtin and then its argument prototype would still apply. */
23861 return strftime ();
23866 if ac_fn_c_try_link "$LINENO"; then :
23867 ac_cv_lib_intl_strftime=yes
23869 ac_cv_lib_intl_strftime=no
23871 rm -f core conftest.err conftest.$ac_objext \
23872 conftest$ac_exeext conftest.$ac_ext
23873 LIBS=$ac_check_lib_save_LIBS
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
23876 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23877 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
23878 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
23880 LIBS="-lintl $LIBS"
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
23888 $as_echo_n "checking for inet_aton()... " >&6; }
23889 if test "${ol_cv_func_inet_aton+set}" = set; then :
23890 $as_echo_n "(cached) " >&6
23892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23893 /* end confdefs.h. */
23895 #ifdef HAVE_SYS_TYPES_H
23896 # include <sys/types.h>
23898 #ifdef HAVE_SYS_SOCKET_H
23899 # include <sys/socket.h>
23900 # ifdef HAVE_SYS_SELECT_H
23901 # include <sys/select.h>
23903 # include <netinet/in.h>
23904 # ifdef HAVE_ARPA_INET_H
23905 # include <arpa/inet.h>
23913 int rc = inet_aton( "255.255.255.255", &in );
23918 if ac_fn_c_try_link "$LINENO"; then :
23919 ol_cv_func_inet_aton=yes
23921 ol_cv_func_inet_aton=no
23923 rm -f core conftest.err conftest.$ac_objext \
23924 conftest$ac_exeext conftest.$ac_ext
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
23927 $as_echo "$ol_cv_func_inet_aton" >&6; }
23928 if test $ol_cv_func_inet_aton != no; then
23930 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
23935 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
23936 if test "x$ac_cv_func__spawnlp" = x""yes; then :
23938 $as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
23943 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
23944 if test "x$ac_cv_func__snprintf" = x""yes; then :
23945 ac_cv_func_snprintf=yes
23947 $as_echo "#define snprintf _snprintf" >>confdefs.h
23953 for ac_func in vsnprintf _vsnprintf
23955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23956 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23957 eval as_val=\$$as_ac_var
23958 if test "x$as_val" = x""yes; then :
23959 cat >>confdefs.h <<_ACEOF
23960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23967 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
23968 ac_cv_func_vsnprintf=yes
23970 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
23974 for ac_func in vprintf
23976 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23977 if test "x$ac_cv_func_vprintf" = x""yes; then :
23978 cat >>confdefs.h <<_ACEOF
23979 #define HAVE_VPRINTF 1
23982 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23983 if test "x$ac_cv_func__doprnt" = x""yes; then :
23985 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23994 if test $ac_cv_func_vprintf = yes ; then
23995 for ac_func in snprintf vsnprintf
23997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23999 eval as_val=\$$as_ac_var
24000 if test "x$as_val" = x""yes; then :
24001 cat >>confdefs.h <<_ACEOF
24002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24070 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24071 eval as_val=\$$as_ac_var
24072 if test "x$as_val" = x""yes; then :
24073 cat >>confdefs.h <<_ACEOF
24074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24081 for ac_func in getopt getpeereid
24083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24085 eval as_val=\$$as_ac_var
24086 if test "x$as_val" = x""yes; then :
24087 cat >>confdefs.h <<_ACEOF
24088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24092 case " $LIBOBJS " in
24093 *" $ac_func.$ac_objext "* ) ;;
24094 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24103 if test "$ac_cv_func_getopt" != yes; then
24104 LIBSRCS="$LIBSRCS getopt.c"
24107 if test "$ac_cv_func_getpeereid" != yes; then
24108 for ac_func in getpeerucred
24110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24111 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24112 eval as_val=\$$as_ac_var
24113 if test "x$as_val" = x""yes; then :
24114 cat >>confdefs.h <<_ACEOF
24115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24121 if test "$ac_cv_func_getpeerucred" != yes ; then
24122 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
24123 #ifdef HAVE_SYS_SOCKET_H
24124 #include <sys/socket.h>
24127 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = x""yes; then :
24129 cat >>confdefs.h <<_ACEOF
24130 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
24136 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
24137 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
24138 #ifdef HAVE_SYS_SOCKET_H
24139 #include <sys/socket.h>
24142 if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
24144 cat >>confdefs.h <<_ACEOF
24145 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
24152 ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
24153 if test "x$ac_cv_member_struct_stat_st_fstype" = x""yes; then :
24155 cat >>confdefs.h <<_ACEOF
24156 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
24161 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
24162 if test "x$ac_cv_member_struct_stat_st_vfstype" = x""yes; then :
24164 cat >>confdefs.h <<_ACEOF
24165 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
24171 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
24172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24173 /* end confdefs.h. */
24174 struct stat st; char *ptr=st.st_fstype;
24176 if ac_fn_c_try_compile "$LINENO"; then :
24178 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
24182 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
24185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24188 LIBSRCS="$LIBSRCS getpeereid.c"
24191 if test "$ac_cv_func_snprintf" != yes ||
24192 test "$ac_cv_func_vsnprintf" != yes; then
24193 if test "$ac_cv_func_snprintf" != yes; then
24195 $as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
24198 if test "$ac_cv_func_vsnprintf" != yes; then
24200 $as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
24206 if test "$ol_enable_slapi" != no ; then
24207 for ac_header in ltdl.h
24209 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
24210 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
24211 cat >>confdefs.h <<_ACEOF
24212 #define HAVE_LTDL_H 1
24220 if test $ac_cv_header_ltdl_h != yes ; then
24221 as_fn_error "could not locate <ltdl.h>" "$LINENO" 5
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
24224 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
24225 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
24226 $as_echo_n "(cached) " >&6
24228 ac_check_lib_save_LIBS=$LIBS
24229 LIBS="-lltdl $LIBS"
24230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24231 /* end confdefs.h. */
24233 /* Override any GCC internal prototype to avoid an error.
24234 Use char because int might match the return type of a GCC
24235 builtin and then its argument prototype would still apply. */
24243 return lt_dlinit ();
24248 if ac_fn_c_try_link "$LINENO"; then :
24249 ac_cv_lib_ltdl_lt_dlinit=yes
24251 ac_cv_lib_ltdl_lt_dlinit=no
24253 rm -f core conftest.err conftest.$ac_objext \
24254 conftest$ac_exeext conftest.$ac_ext
24255 LIBS=$ac_check_lib_save_LIBS
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24258 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24259 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
24262 LIBSLAPI=slapi/libslapi.la
24264 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24268 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
24273 $as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24277 if test "$ol_enable_debug" != no ; then
24278 if test "$ol_enable_debug" = traditional; then
24280 $as_echo "#define OLD_DEBUG 1" >>confdefs.h
24284 $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24287 if test "$ol_enable_syslog" = yes ; then
24289 $as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24292 if test "$ol_enable_proctitle" != no ; then
24294 $as_echo "#define LDAP_PROCTITLE 1" >>confdefs.h
24297 if test "$ol_enable_referrals" != no ; then
24299 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24302 if test "$ol_enable_local" != no; then
24304 $as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24307 if test "$ol_link_ipv6" != no; then
24309 $as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24312 if test "$ol_enable_cleartext" != no ; then
24314 $as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24317 if test "$ol_enable_crypt" != no ; then
24319 $as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24322 if test "$ol_link_spasswd" != no ; then
24324 $as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24327 if test "$ol_enable_rlookups" != no ; then
24329 $as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24332 if test "$ol_enable_aci" != no ; then
24333 if test $ol_enable_dynacl = no ; then
24334 ol_enable_dynacl=yes
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ACIs need dynacl" >&5
24336 $as_echo "$as_me: WARNING: ACIs need dynacl" >&2;}
24338 if test "$ol_enable_aci" = mod ; then
24339 MFLAG=SLAPD_MOD_DYNAMIC
24340 as_fn_error "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24342 MFLAG=SLAPD_MOD_STATIC
24344 WITH_ACI_ENABLED=$ol_enable_aci
24346 cat >>confdefs.h <<_ACEOF
24347 #define SLAPD_ACI_ENABLED $MFLAG
24351 WITH_ACI_ENABLED=no
24353 if test "$ol_enable_dynacl" != no ; then
24355 $as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24359 if test "$ol_link_modules" != no ; then
24361 $as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24364 SLAPD_MODULES_LDFLAGS="-dlopen self"
24368 $as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24371 $as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24374 if test "$ol_enable_monitor" != no ; then
24376 BUILD_MONITOR=$ol_enable_monitor
24377 if test "$ol_enable_monitor" = mod ; then
24378 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24379 MFLAG=SLAPD_MOD_DYNAMIC
24381 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24382 MFLAG=SLAPD_MOD_STATIC
24385 cat >>confdefs.h <<_ACEOF
24386 #define SLAPD_MONITOR $MFLAG
24391 if test "$ol_enable_bdb" != no ; then
24393 BUILD_BDB=$ol_enable_bdb
24394 if test "$ol_enable_bdb" = mod ; then
24395 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24396 MFLAG=SLAPD_MOD_DYNAMIC
24398 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24399 MFLAG=SLAPD_MOD_STATIC
24402 cat >>confdefs.h <<_ACEOF
24403 #define SLAPD_BDB $MFLAG
24408 if test "$ol_enable_dnssrv" != no ; then
24410 BUILD_DNSSRV=$ol_enable_dnssrv
24411 if test "$ol_enable_dnssrv" = mod ; then
24412 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24413 MFLAG=SLAPD_MOD_DYNAMIC
24415 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24416 MFLAG=SLAPD_MOD_STATIC
24419 cat >>confdefs.h <<_ACEOF
24420 #define SLAPD_DNSSRV $MFLAG
24425 if test "$ol_enable_hdb" != no ; then
24427 BUILD_HDB=$ol_enable_hdb
24428 if test "$ol_enable_hdb" = mod ; then
24429 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24430 MFLAG=SLAPD_MOD_DYNAMIC
24432 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24433 MFLAG=SLAPD_MOD_STATIC
24436 cat >>confdefs.h <<_ACEOF
24437 #define SLAPD_HDB $MFLAG
24442 if test "$ol_enable_ldap" != no ; then
24444 BUILD_LDAP=$ol_enable_ldap
24445 if test "$ol_enable_ldap" = mod ; then
24446 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24447 MFLAG=SLAPD_MOD_DYNAMIC
24449 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24450 MFLAG=SLAPD_MOD_STATIC
24453 cat >>confdefs.h <<_ACEOF
24454 #define SLAPD_LDAP $MFLAG
24459 if test "$ol_enable_mdb" != no ; then
24461 BUILD_MDB=$ol_enable_mdb
24462 if test "$ol_enable_mdb" = mod ; then
24463 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
24464 MFLAG=SLAPD_MOD_DYNAMIC
24466 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
24467 MFLAG=SLAPD_MOD_STATIC
24470 cat >>confdefs.h <<_ACEOF
24471 #define SLAPD_MDB $MFLAG
24476 if test "$ol_enable_meta" != no ; then
24478 BUILD_META=$ol_enable_meta
24480 if test "$ol_enable_meta" = mod ; then
24481 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24482 MFLAG=SLAPD_MOD_DYNAMIC
24484 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24485 MFLAG=SLAPD_MOD_STATIC
24488 cat >>confdefs.h <<_ACEOF
24489 #define SLAPD_META $MFLAG
24494 if test "$ol_enable_asyncmeta" != no ; then
24496 BUILD_ASYNCMETA=$ol_enable_asyncmeta
24498 if test "$ol_enable_asyncmeta" = mod ; then
24499 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-asyncmeta"
24500 MFLAG=SLAPD_MOD_DYNAMIC
24502 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-asyncmeta"
24503 MFLAG=SLAPD_MOD_STATIC
24506 cat >>confdefs.h <<_ACEOF
24507 #define SLAPD_ASYNCMETA $MFLAG
24512 if test "$ol_enable_ndb" != no ; then
24514 BUILD_NDB=$ol_enable_ndb
24515 if test "$ol_enable_ndb" = mod ; then
24516 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
24517 MFLAG=SLAPD_MOD_DYNAMIC
24519 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
24520 MFLAG=SLAPD_MOD_STATIC
24523 cat >>confdefs.h <<_ACEOF
24524 #define SLAPD_NDB $MFLAG
24529 if test "$ol_enable_null" != no ; then
24531 BUILD_NULL=$ol_enable_null
24532 if test "$ol_enable_null" = mod ; then
24533 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24534 MFLAG=SLAPD_MOD_DYNAMIC
24536 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24537 MFLAG=SLAPD_MOD_STATIC
24540 cat >>confdefs.h <<_ACEOF
24541 #define SLAPD_NULL $MFLAG
24546 if test "$ol_enable_passwd" != no ; then
24548 BUILD_PASSWD=$ol_enable_passwd
24549 if test "$ol_enable_passwd" = mod ; then
24550 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24551 MFLAG=SLAPD_MOD_DYNAMIC
24553 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24554 MFLAG=SLAPD_MOD_STATIC
24557 cat >>confdefs.h <<_ACEOF
24558 #define SLAPD_PASSWD $MFLAG
24563 if test "$ol_link_perl" != no ; then
24565 BUILD_PERL=$ol_enable_perl
24566 if test "$ol_enable_perl" = mod ; then
24567 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24568 MFLAG=SLAPD_MOD_DYNAMIC
24570 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24571 MFLAG=SLAPD_MOD_STATIC
24574 cat >>confdefs.h <<_ACEOF
24575 #define SLAPD_PERL $MFLAG
24580 if test "$ol_enable_relay" != no ; then
24582 BUILD_RELAY=$ol_enable_relay
24583 if test "$ol_enable_relay" = mod ; then
24584 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24585 MFLAG=SLAPD_MOD_DYNAMIC
24587 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24588 MFLAG=SLAPD_MOD_STATIC
24591 cat >>confdefs.h <<_ACEOF
24592 #define SLAPD_RELAY $MFLAG
24597 if test "$ol_enable_shell" != no ; then
24598 if test "$ol_link_threads" != no ; then
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of --without-threads is recommended with back-shell" >&5
24600 $as_echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
24603 BUILD_SHELL=$ol_enable_shell
24604 if test "$ol_enable_shell" = mod ; then
24605 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24606 MFLAG=SLAPD_MOD_DYNAMIC
24608 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24609 MFLAG=SLAPD_MOD_STATIC
24612 cat >>confdefs.h <<_ACEOF
24613 #define SLAPD_SHELL $MFLAG
24618 if test "$ol_enable_sock" != no ; then
24620 BUILD_SOCK=$ol_enable_sock
24621 if test "$ol_enable_sock" = mod ; then
24622 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24623 MFLAG=SLAPD_MOD_DYNAMIC
24625 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24626 MFLAG=SLAPD_MOD_STATIC
24629 cat >>confdefs.h <<_ACEOF
24630 #define SLAPD_SOCK $MFLAG
24635 if test "$ol_link_sql" != no ; then
24637 BUILD_SQL=$ol_enable_sql
24638 if test "$ol_enable_sql" = mod; then
24639 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24640 MFLAG=SLAPD_MOD_DYNAMIC
24642 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24643 MFLAG=SLAPD_MOD_STATIC
24646 cat >>confdefs.h <<_ACEOF
24647 #define SLAPD_SQL $MFLAG
24652 if test "$ol_link_wt" != no ; then
24654 BUILD_WT=$ol_enable_wt
24655 if test "$ol_enable_wt" = mod; then
24656 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-wt"
24657 MFLAG=SLAPD_MOD_DYNAMIC
24659 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-wt"
24660 MFLAG=SLAPD_MOD_STATIC
24663 cat >>confdefs.h <<_ACEOF
24664 #define SLAPD_WT $MFLAG
24669 if test "$ol_enable_accesslog" != no ; then
24670 BUILD_ACCESSLOG=$ol_enable_accesslog
24671 if test "$ol_enable_accesslog" = mod ; then
24672 MFLAG=SLAPD_MOD_DYNAMIC
24673 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24675 MFLAG=SLAPD_MOD_STATIC
24676 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24679 cat >>confdefs.h <<_ACEOF
24680 #define SLAPD_OVER_ACCESSLOG $MFLAG
24685 if test "$ol_enable_auditlog" != no ; then
24686 BUILD_AUDITLOG=$ol_enable_auditlog
24687 if test "$ol_enable_auditlog" = mod ; then
24688 MFLAG=SLAPD_MOD_DYNAMIC
24689 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24691 MFLAG=SLAPD_MOD_STATIC
24692 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24695 cat >>confdefs.h <<_ACEOF
24696 #define SLAPD_OVER_AUDITLOG $MFLAG
24701 if test "$ol_enable_autoca" != no ; then
24702 BUILD_AUTOCA=$ol_enable_autoca
24703 if test "$ol_enable_autoca" = mod ; then
24704 MFLAG=SLAPD_MOD_DYNAMIC
24705 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS autoca.la"
24707 MFLAG=SLAPD_MOD_STATIC
24708 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS autoca.o"
24711 cat >>confdefs.h <<_ACEOF
24712 #define SLAPD_OVER_AUTOCA $MFLAG
24717 if test "$ol_enable_collect" != no ; then
24718 BUILD_COLLECT=$ol_enable_collect
24719 if test "$ol_enable_collect" = mod ; then
24720 MFLAG=SLAPD_MOD_DYNAMIC
24721 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24723 MFLAG=SLAPD_MOD_STATIC
24724 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24727 cat >>confdefs.h <<_ACEOF
24728 #define SLAPD_OVER_COLLECT $MFLAG
24733 if test "$ol_enable_constraint" != no ; then
24734 BUILD_CONSTRAINT=$ol_enable_constraint
24735 if test "$ol_enable_constraint" = mod ; then
24736 MFLAG=SLAPD_MOD_DYNAMIC
24737 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24739 MFLAG=SLAPD_MOD_STATIC
24740 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24743 cat >>confdefs.h <<_ACEOF
24744 #define SLAPD_OVER_CONSTRAINT $MFLAG
24749 if test "$ol_enable_dds" != no ; then
24750 BUILD_DDS=$ol_enable_dds
24751 if test "$ol_enable_dds" = mod ; then
24752 MFLAG=SLAPD_MOD_DYNAMIC
24753 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24755 MFLAG=SLAPD_MOD_STATIC
24756 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24759 cat >>confdefs.h <<_ACEOF
24760 #define SLAPD_OVER_DDS $MFLAG
24765 if test "$ol_enable_deref" != no ; then
24766 BUILD_DEREF=$ol_enable_deref
24767 if test "$ol_enable_deref" = mod ; then
24768 MFLAG=SLAPD_MOD_DYNAMIC
24769 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24771 MFLAG=SLAPD_MOD_STATIC
24772 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24775 cat >>confdefs.h <<_ACEOF
24776 #define SLAPD_OVER_DEREF $MFLAG
24781 if test "$ol_enable_dyngroup" != no ; then
24782 BUILD_DYNGROUP=$ol_enable_dyngroup
24783 if test "$ol_enable_dyngroup" = mod ; then
24784 MFLAG=SLAPD_MOD_DYNAMIC
24785 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24787 MFLAG=SLAPD_MOD_STATIC
24788 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24791 cat >>confdefs.h <<_ACEOF
24792 #define SLAPD_OVER_DYNGROUP $MFLAG
24797 if test "$ol_enable_dynlist" != no ; then
24798 BUILD_DYNLIST=$ol_enable_dynlist
24799 if test "$ol_enable_dynlist" = mod ; then
24800 MFLAG=SLAPD_MOD_DYNAMIC
24801 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24803 MFLAG=SLAPD_MOD_STATIC
24804 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24807 cat >>confdefs.h <<_ACEOF
24808 #define SLAPD_OVER_DYNLIST $MFLAG
24813 if test "$ol_enable_memberof" != no ; then
24814 BUILD_MEMBEROF=$ol_enable_memberof
24815 if test "$ol_enable_memberof" = mod ; then
24816 MFLAG=SLAPD_MOD_DYNAMIC
24817 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24819 MFLAG=SLAPD_MOD_STATIC
24820 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24823 cat >>confdefs.h <<_ACEOF
24824 #define SLAPD_OVER_MEMBEROF $MFLAG
24829 if test "$ol_enable_ppolicy" != no ; then
24830 BUILD_PPOLICY=$ol_enable_ppolicy
24831 if test "$ol_enable_ppolicy" = mod ; then
24832 MFLAG=SLAPD_MOD_DYNAMIC
24833 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24835 MFLAG=SLAPD_MOD_STATIC
24836 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24839 cat >>confdefs.h <<_ACEOF
24840 #define SLAPD_OVER_PPOLICY $MFLAG
24845 if test "$ol_enable_proxycache" != no ; then
24846 BUILD_PROXYCACHE=$ol_enable_proxycache
24847 if test "$ol_enable_proxycache" = mod ; then
24848 MFLAG=SLAPD_MOD_DYNAMIC
24849 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24851 MFLAG=SLAPD_MOD_STATIC
24852 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24855 cat >>confdefs.h <<_ACEOF
24856 #define SLAPD_OVER_PROXYCACHE $MFLAG
24861 if test "$ol_enable_refint" != no ; then
24862 BUILD_REFINT=$ol_enable_refint
24863 if test "$ol_enable_refint" = mod ; then
24864 MFLAG=SLAPD_MOD_DYNAMIC
24865 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24867 MFLAG=SLAPD_MOD_STATIC
24868 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24871 cat >>confdefs.h <<_ACEOF
24872 #define SLAPD_OVER_REFINT $MFLAG
24877 if test "$ol_enable_retcode" != no ; then
24878 BUILD_RETCODE=$ol_enable_retcode
24879 if test "$ol_enable_retcode" = mod ; then
24880 MFLAG=SLAPD_MOD_DYNAMIC
24881 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
24883 MFLAG=SLAPD_MOD_STATIC
24884 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
24887 cat >>confdefs.h <<_ACEOF
24888 #define SLAPD_OVER_RETCODE $MFLAG
24893 if test "$ol_enable_rwm" != no ; then
24895 BUILD_RWM=$ol_enable_rwm
24896 if test "$ol_enable_rwm" = mod ; then
24897 MFLAG=SLAPD_MOD_DYNAMIC
24898 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24900 MFLAG=SLAPD_MOD_STATIC
24901 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
24904 cat >>confdefs.h <<_ACEOF
24905 #define SLAPD_OVER_RWM $MFLAG
24910 if test "$ol_enable_seqmod" != no ; then
24911 BUILD_SEQMOD=$ol_enable_seqmod
24912 if test "$ol_enable_seqmod" = mod ; then
24913 MFLAG=SLAPD_MOD_DYNAMIC
24914 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
24916 MFLAG=SLAPD_MOD_STATIC
24917 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
24920 cat >>confdefs.h <<_ACEOF
24921 #define SLAPD_OVER_SEQMOD $MFLAG
24926 if test "$ol_enable_sssvlv" != no ; then
24927 BUILD_SSSVLV=$ol_enable_sssvlv
24928 if test "$ol_enable_sssvlv" = mod ; then
24929 MFLAG=SLAPD_MOD_DYNAMIC
24930 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
24932 MFLAG=SLAPD_MOD_STATIC
24933 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
24936 cat >>confdefs.h <<_ACEOF
24937 #define SLAPD_OVER_SSSVLV $MFLAG
24942 if test "$ol_enable_syncprov" != no ; then
24943 BUILD_SYNCPROV=$ol_enable_syncprov
24944 if test "$ol_enable_syncprov" = mod ; then
24945 MFLAG=SLAPD_MOD_DYNAMIC
24946 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
24948 MFLAG=SLAPD_MOD_STATIC
24949 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
24952 cat >>confdefs.h <<_ACEOF
24953 #define SLAPD_OVER_SYNCPROV $MFLAG
24958 if test "$ol_enable_translucent" != no ; then
24959 BUILD_TRANSLUCENT=$ol_enable_translucent
24960 if test "$ol_enable_translucent" = mod ; then
24961 MFLAG=SLAPD_MOD_DYNAMIC
24962 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
24964 MFLAG=SLAPD_MOD_STATIC
24965 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
24968 cat >>confdefs.h <<_ACEOF
24969 #define SLAPD_OVER_TRANSLUCENT $MFLAG
24974 if test "$ol_enable_unique" != no ; then
24975 BUILD_UNIQUE=$ol_enable_unique
24976 if test "$ol_enable_unique" = mod ; then
24977 MFLAG=SLAPD_MOD_DYNAMIC
24978 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24980 MFLAG=SLAPD_MOD_STATIC
24981 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
24984 cat >>confdefs.h <<_ACEOF
24985 #define SLAPD_OVER_UNIQUE $MFLAG
24990 if test "$ol_enable_valsort" != no ; then
24991 BUILD_VALSORT=$ol_enable_valsort
24992 if test "$ol_enable_valsort" = mod ; then
24993 MFLAG=SLAPD_MOD_DYNAMIC
24994 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
24996 MFLAG=SLAPD_MOD_STATIC
24997 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
25000 cat >>confdefs.h <<_ACEOF
25001 #define SLAPD_OVER_VALSORT $MFLAG
25006 if test "$ol_enable_rewrite" != no ; then
25008 $as_echo "#define ENABLE_REWRITE 1" >>confdefs.h
25013 if test "$ol_enable_slapi" != no ; then
25015 $as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
25018 SLAPD_SLAPI_DEPEND=libslapi.a
25023 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
25025 SLAPD_MODULES_LDFLAGS=
25126 # Check whether --with-xxinstall was given.
25127 if test "${with_xxinstall+set}" = set; then :
25128 withval=$with_xxinstall;
25133 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-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/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-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/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/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/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"
25136 ac_config_commands="$ac_config_commands default"
25140 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25141 # Let make expand exec_prefix.
25142 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25144 DEFS=-DHAVE_CONFIG_H
25148 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25149 # 1. Remove the extension, and $U if already installed.
25150 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25151 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25152 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25153 # will be set to the directory where LIBOBJS objects are built.
25154 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25155 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25157 LIBOBJS=$ac_libobjs
25159 LTLIBOBJS=$ac_ltlibobjs
25162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25163 as_fn_error "conditional \"AMDEP\" was never defined.
25164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25166 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25167 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25170 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25171 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25176 : ${CONFIG_STATUS=./config.status}
25178 ac_clean_files_save=$ac_clean_files
25179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25181 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25183 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25185 # Generated by $as_me.
25186 # Run this file to recreate the current configuration.
25187 # Compiler output produced by configure, useful for debugging
25188 # configure, is in config.log if it exists.
25191 ac_cs_recheck=false
25194 SHELL=\${CONFIG_SHELL-$SHELL}
25197 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25198 ## -------------------- ##
25199 ## M4sh Initialization. ##
25200 ## -------------------- ##
25202 # Be more Bourne compatible
25203 DUALCASE=1; export DUALCASE # for MKS sh
25204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25207 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25208 # is contrary to our usage. Disable this feature.
25209 alias -g '${1+"$@"}'='"$@"'
25210 setopt NO_GLOB_SUBST
25212 case `(set -o) 2>/dev/null` in #(
25224 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25225 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25228 # Prefer a ksh shell builtin over an external printf program on Solaris,
25229 # but without wasting forks for bash or zsh.
25230 if test -z "$BASH_VERSION$ZSH_VERSION" \
25231 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25232 as_echo='print -r --'
25233 as_echo_n='print -rn --'
25234 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25235 as_echo='printf %s\n'
25236 as_echo_n='printf %s'
25238 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25239 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25240 as_echo_n='/usr/ucb/echo -n'
25242 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25243 as_echo_n_body='eval
25247 expr "X$arg" : "X\\(.*\\)$as_nl";
25248 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25250 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25252 export as_echo_n_body
25253 as_echo_n='sh -c $as_echo_n_body as_echo'
25255 export as_echo_body
25256 as_echo='sh -c $as_echo_body as_echo'
25259 # The user is always right.
25260 if test "${PATH_SEPARATOR+set}" != set; then
25262 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25263 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25270 # We need space, tab and new line, in precisely that order. Quoting is
25271 # there to prevent editors from complaining about space-tab.
25272 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25273 # splitting by setting IFS to empty value.)
25276 # Find who we are. Look in the path if we contain no directory separator.
25278 *[\\/]* ) as_myself=$0 ;;
25279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25280 for as_dir in $PATH
25283 test -z "$as_dir" && as_dir=.
25284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25290 # We did not find ourselves, most probably we were run as `sh COMMAND'
25291 # in which case we are not to be found in the path.
25292 if test "x$as_myself" = x; then
25295 if test ! -f "$as_myself"; then
25296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25300 # Unset variables that we do not need and which cause bugs (e.g. in
25301 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25302 # suppresses any "Segmentation fault" message there. '((' could
25303 # trigger a bug in pdksh 5.2.14.
25304 for as_var in BASH_ENV ENV MAIL MAILPATH
25305 do eval test x\${$as_var+set} = xset \
25306 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25322 # as_fn_error ERROR [LINENO LOG_FD]
25323 # ---------------------------------
25324 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25325 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25326 # script with status $?, using 1 if that was 0.
25329 as_status=$?; test $as_status -eq 0 && as_status=1
25331 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25332 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25334 $as_echo "$as_me: error: $1" >&2
25335 as_fn_exit $as_status
25339 # as_fn_set_status STATUS
25340 # -----------------------
25341 # Set $? to STATUS, without forking.
25342 as_fn_set_status ()
25345 } # as_fn_set_status
25347 # as_fn_exit STATUS
25348 # -----------------
25349 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25353 as_fn_set_status $1
25359 # Portably unset VAR.
25362 { eval $1=; unset $1;}
25364 as_unset=as_fn_unset
25365 # as_fn_append VAR VALUE
25366 # ----------------------
25367 # Append the text in VALUE to the end of the definition contained in VAR. Take
25368 # advantage of any shell optimizations that allow amortized linear growth over
25369 # repeated appends, instead of the typical quadratic growth present in naive
25371 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25372 eval 'as_fn_append ()
25383 # as_fn_arith ARG...
25384 # ------------------
25385 # Perform arithmetic evaluation on the ARGs, and store the result in the
25386 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25387 # must be portable across $(()) and expr.
25388 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25389 eval 'as_fn_arith ()
25396 as_val=`expr "$@" || test $? -eq 1`
25401 if expr a : '\(a\)' >/dev/null 2>&1 &&
25402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25409 as_basename=basename
25414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25420 as_me=`$as_basename -- "$0" ||
25421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25422 X"$0" : 'X\(//\)$' \| \
25423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25425 sed '/^.*\/\([^/][^/]*\)\/*$/{
25439 # Avoid depending upon Character Ranges.
25440 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25443 as_cr_digits='0123456789'
25444 as_cr_alnum=$as_cr_Letters$as_cr_digits
25446 ECHO_C= ECHO_N= ECHO_T=
25447 case `echo -n x` in #(((((
25449 case `echo 'xy\c'` in
25450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25452 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25459 rm -f conf$$ conf$$.exe conf$$.file
25460 if test -d conf$$.dir; then
25461 rm -f conf$$.dir/conf$$.file
25464 mkdir conf$$.dir 2>/dev/null
25466 if (echo >conf$$.file) 2>/dev/null; then
25467 if ln -s conf$$.file conf$$ 2>/dev/null; then
25469 # ... but there are two gotchas:
25470 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25471 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25472 # In both cases, we have to default to `cp -p'.
25473 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25475 elif ln conf$$.file conf$$ 2>/dev/null; then
25483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25484 rmdir conf$$.dir 2>/dev/null
25489 # Create "$as_dir" as a directory, including parents if necessary.
25494 -*) as_dir=./$as_dir;;
25496 test -d "$as_dir" || eval $as_mkdir_p || {
25500 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25501 *) as_qdir=$as_dir;;
25503 as_dirs="'$as_qdir' $as_dirs"
25504 as_dir=`$as_dirname -- "$as_dir" ||
25505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25506 X"$as_dir" : 'X\(//\)[^/]' \| \
25507 X"$as_dir" : 'X\(//\)$' \| \
25508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25509 $as_echo X"$as_dir" |
25510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25514 /^X\(\/\/\)[^/].*/{
25527 test -d "$as_dir" && break
25529 test -z "$as_dirs" || eval "mkdir $as_dirs"
25530 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25534 if mkdir -p . 2>/dev/null; then
25535 as_mkdir_p='mkdir -p "$as_dir"'
25537 test -d ./-p && rmdir ./-p
25541 if test -x / >/dev/null 2>&1; then
25542 as_test_x='test -x'
25544 if ls -dL / >/dev/null 2>&1; then
25551 if test -d "$1"; then
25557 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25558 ???[sx]*):;;*)false;;esac;fi
25562 as_executable_p=$as_test_x
25564 # Sed expression to map a string onto a valid CPP name.
25565 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25567 # Sed expression to map a string onto a valid variable name.
25568 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25572 ## ----------------------------------- ##
25573 ## Main body of $CONFIG_STATUS script. ##
25574 ## ----------------------------------- ##
25576 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25579 # Save the log message, to keep $0 and so on meaningful, and to
25580 # report actual input values of CONFIG_FILES etc. instead of their
25581 # values after options handling.
25583 This file was extended by $as_me, which was
25584 generated by GNU Autoconf 2.65. Invocation command line was
25586 CONFIG_FILES = $CONFIG_FILES
25587 CONFIG_HEADERS = $CONFIG_HEADERS
25588 CONFIG_LINKS = $CONFIG_LINKS
25589 CONFIG_COMMANDS = $CONFIG_COMMANDS
25592 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25597 case $ac_config_files in *"
25598 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25601 case $ac_config_headers in *"
25602 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25607 # Files that config.status was made for.
25608 config_files="$ac_config_files"
25609 config_headers="$ac_config_headers"
25610 config_commands="$ac_config_commands"
25614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25616 \`$as_me' instantiates files and other configuration actions
25617 from templates according to the current configuration. Unless the files
25618 and actions are specified as TAGs, all are instantiated by default.
25620 Usage: $0 [OPTION]... [TAG]...
25622 -h, --help print this help, then exit
25623 -V, --version print version number and configuration settings, then exit
25624 --config print configuration, then exit
25625 -q, --quiet, --silent
25626 do not print progress messages
25627 -d, --debug don't remove temporary files
25628 --recheck update $as_me by reconfiguring in the same conditions
25629 --file=FILE[:TEMPLATE]
25630 instantiate the configuration file FILE
25631 --header=FILE[:TEMPLATE]
25632 instantiate the configuration header FILE
25634 Configuration files:
25637 Configuration headers:
25640 Configuration commands:
25643 Report bugs to <<http://www.openldap.org/its/>>."
25646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25647 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25650 configured by $0, generated by GNU Autoconf 2.65,
25651 with options \\"\$ac_cs_config\\"
25653 Copyright (C) 2009 Free Software Foundation, Inc.
25654 This config.status script is free software; the Free Software Foundation
25655 gives unlimited permission to copy, distribute and modify it."
25661 test -n "\$AWK" || AWK=awk
25664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25665 # The default lists apply if the user does not specify any file.
25671 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25672 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25683 # Handling of the options.
25684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25686 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25687 $as_echo "$ac_cs_version"; exit ;;
25688 --config | --confi | --conf | --con | --co | --c )
25689 $as_echo "$ac_cs_config"; exit ;;
25690 --debug | --debu | --deb | --de | --d | -d )
25692 --file | --fil | --fi | --f )
25695 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25697 as_fn_append CONFIG_FILES " '$ac_optarg'"
25698 ac_need_defaults=false;;
25699 --header | --heade | --head | --hea )
25702 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25704 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25705 ac_need_defaults=false;;
25707 # Conflict between --help and --header
25708 as_fn_error "ambiguous option: \`$1'
25709 Try \`$0 --help' for more information.";;
25710 --help | --hel | -h )
25711 $as_echo "$ac_cs_usage"; exit ;;
25712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25713 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25716 # This is an error.
25717 -*) as_fn_error "unrecognized option: \`$1'
25718 Try \`$0 --help' for more information." ;;
25720 *) as_fn_append ac_config_targets " $1"
25721 ac_need_defaults=false ;;
25727 ac_configure_extra_args=
25729 if $ac_cs_silent; then
25731 ac_configure_extra_args="$ac_configure_extra_args --silent"
25735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25736 if \$ac_cs_recheck; then
25737 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25739 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25740 CONFIG_SHELL='$SHELL'
25741 export CONFIG_SHELL
25746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25750 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25751 ## Running $as_me. ##
25757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25761 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25763 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25764 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
25769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25771 # Handling of arguments.
25772 for ac_config_target in $ac_config_targets
25774 case $ac_config_target in
25775 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
25776 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
25777 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
25778 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25779 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
25780 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
25781 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
25782 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
25783 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
25784 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
25785 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
25786 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
25787 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
25788 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
25789 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
25790 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25791 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25792 "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" ;;
25793 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25794 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25795 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25796 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
25797 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
25798 "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" ;;
25799 "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" ;;
25800 "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" ;;
25801 "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" ;;
25802 "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" ;;
25803 "servers/slapd/back-mdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/Makefile.in:build/mod.mk" ;;
25804 "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" ;;
25805 "servers/slapd/back-asyncmeta/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/Makefile.in:build/mod.mk" ;;
25806 "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" ;;
25807 "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" ;;
25808 "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" ;;
25809 "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" ;;
25810 "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" ;;
25811 "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" ;;
25812 "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" ;;
25813 "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" ;;
25814 "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" ;;
25815 "servers/slapd/back-wt/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/Makefile.in:build/mod.mk" ;;
25816 "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" ;;
25817 "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" ;;
25818 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
25819 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
25820 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
25821 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
25822 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25824 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25829 # If the user did not use the arguments to specify the items to instantiate,
25830 # then the envvar interface is used. Set only those that are not.
25831 # We use the long form for the default assignment because of an extremely
25832 # bizarre bug on SunOS 4.1.3.
25833 if $ac_need_defaults; then
25834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25835 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25836 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25839 # Have a temporary directory for convenience. Make it in the build tree
25840 # simply because there is no reason against having it here, and in addition,
25841 # creating and moving files from /tmp can sometimes cause problems.
25842 # Hook for its removal unless debugging.
25843 # Note that there is a small window in which the directory will not be cleaned:
25844 # after its creation but before its name has been assigned to `$tmp'.
25848 trap 'exit_status=$?
25849 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25851 trap 'as_fn_exit 1' 1 2 13 15
25853 # Create a (secure) tmp directory for tmp files.
25856 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25857 test -n "$tmp" && test -d "$tmp"
25860 tmp=./conf$$-$RANDOM
25861 (umask 077 && mkdir "$tmp")
25862 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25864 # Set up the scripts for CONFIG_FILES section.
25865 # No need to generate them if there are no CONFIG_FILES.
25866 # This happens for instance with `./config.status config.h'.
25867 if test -n "$CONFIG_FILES"; then
25870 ac_cr=`echo X | tr X '\015'`
25871 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25872 # But we know of no other shell where ac_cr would be empty at this
25873 # point, so we can use a bashism as a fallback.
25874 if test "x$ac_cr" = x; then
25875 eval ac_cr=\$\'\\r\'
25877 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25878 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25881 ac_cs_awk_cr=$ac_cr
25884 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25889 echo "cat >conf$$subs.awk <<_ACEOF" &&
25890 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25892 } >conf$$subs.sh ||
25893 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25894 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25896 for ac_last_try in false false false false false :; do
25897 . ./conf$$subs.sh ||
25898 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25900 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25901 if test $ac_delim_n = $ac_delim_num; then
25903 elif $ac_last_try; then
25904 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25909 rm -f conf$$subs.sh
25911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25912 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25916 s/^/S["/; s/!.*/"]=/
25926 s/\(.\{148\}\)..*/\1/
25928 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25940 s/\(.\{148\}\)..*/\1/
25942 s/["\\]/\\&/g; s/^/"/; s/$/"/
25946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25951 ' <conf$$subs.awk | sed '
25956 ' >>$CONFIG_STATUS || ac_write_fail=1
25957 rm -f conf$$subs.awk
25958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25960 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25961 for (key in S) S_is_set[key] = 1
25967 nfields = split(line, field, "@")
25969 len = length(field[1])
25970 for (i = 2; i < nfields; i++) {
25972 keylen = length(key)
25973 if (S_is_set[key]) {
25975 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25976 len += length(value) + length(field[++i])
25987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25988 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25989 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25992 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25993 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25996 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25997 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25998 # trailing colons and then remove the whole line if VPATH becomes empty
25999 # (actually we leave an empty line to preserve line numbers).
26000 if test "x$srcdir" = x.; then
26001 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26002 s/:*\$(srcdir):*/:/
26003 s/:*\${srcdir}:*/:/
26005 s/^\([^=]*=[ ]*\):*/\1/
26011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26012 fi # test -n "$CONFIG_FILES"
26014 # Set up the scripts for CONFIG_HEADERS section.
26015 # No need to generate them if there are no CONFIG_HEADERS.
26016 # This happens for instance with `./config.status Makefile'.
26017 if test -n "$CONFIG_HEADERS"; then
26018 cat >"$tmp/defines.awk" <<\_ACAWK ||
26022 # Transform confdefs.h into an awk script `defines.awk', embedded as
26023 # here-document in config.status, that substitutes the proper values into
26024 # config.h.in to produce config.h.
26026 # Create a delimiter string that does not exist in confdefs.h, to ease
26027 # handling of long lines.
26029 for ac_last_try in false false :; do
26030 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26031 if test -z "$ac_t"; then
26033 elif $ac_last_try; then
26034 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26036 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26040 # For the awk script, D is an array of macro values keyed by name,
26041 # likewise P contains macro parameters if any. Preserve backslash
26042 # newline sequences.
26044 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26046 s/.\{148\}/&'"$ac_delim"'/g
26049 s/^[ ]*#[ ]*define[ ][ ]*/ /
26056 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26058 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26063 D["\1"]=" \3\\\\\\n"\\/p
26065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26070 s/.\{148\}/&'"$ac_delim"'/g
26075 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26078 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26080 ' <confdefs.h | sed '
26081 s/'"$ac_delim"'/"\\\
26082 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26085 for (key in D) D_is_set[key] = 1
26088 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26090 split(line, arg, " ")
26091 if (arg[1] == "#") {
26095 defundef = substr(arg[1], 2)
26098 split(mac1, mac2, "(") #)
26100 prefix = substr(line, 1, index(line, defundef) - 1)
26101 if (D_is_set[macro]) {
26102 # Preserve the white space surrounding the "#".
26103 print prefix "define", macro P[macro] D[macro]
26106 # Replace #undef with comments. This is necessary, for example,
26107 # in the case of _POSIX_SOURCE, which is predefined and required
26108 # on some systems where configure will not decide to define it.
26109 if (defundef == "undef") {
26110 print "/*", prefix defundef, macro, "*/"
26118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26119 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26120 fi # test -n "$CONFIG_HEADERS"
26123 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26128 :[FHLC]) ac_mode=$ac_tag; continue;;
26130 case $ac_mode$ac_tag in
26132 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26133 :[FH]-) ac_tag=-:-;;
26134 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26151 -) ac_f="$tmp/stdin";;
26152 *) # Look for the file first in the build tree, then in the source tree
26153 # (if the path is not absolute). The absolute path cannot be DOS-style,
26154 # because $ac_f cannot contain `:'.
26158 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26160 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26162 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26163 as_fn_append ac_file_inputs " '$ac_f'"
26166 # Let's still pretend it is `configure' which instantiates (i.e., don't
26167 # use $as_me), people would be surprised to read:
26168 # /* config.h. Generated by config.status. */
26169 configure_input='Generated from '`
26170 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26172 if test x"$ac_file" != x-; then
26173 configure_input="$ac_file. $configure_input"
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26175 $as_echo "$as_me: creating $ac_file" >&6;}
26177 # Neutralize special characters interpreted by sed in replacement strings.
26178 case $configure_input in #(
26179 *\&* | *\|* | *\\* )
26180 ac_sed_conf_input=`$as_echo "$configure_input" |
26181 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26182 *) ac_sed_conf_input=$configure_input;;
26186 *:-:* | *:-) cat >"$tmp/stdin" \
26187 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26192 ac_dir=`$as_dirname -- "$ac_file" ||
26193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26194 X"$ac_file" : 'X\(//\)[^/]' \| \
26195 X"$ac_file" : 'X\(//\)$' \| \
26196 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26197 $as_echo X"$ac_file" |
26198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26202 /^X\(\/\/\)[^/].*/{
26215 as_dir="$ac_dir"; as_fn_mkdir_p
26219 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26221 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26222 # A ".." for each directory in $ac_dir_suffix.
26223 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26224 case $ac_top_builddir_sub in
26225 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26226 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26229 ac_abs_top_builddir=$ac_pwd
26230 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26231 # for backward compatibility:
26232 ac_top_builddir=$ac_top_build_prefix
26235 .) # We are building in place.
26237 ac_top_srcdir=$ac_top_builddir_sub
26238 ac_abs_top_srcdir=$ac_pwd ;;
26239 [\\/]* | ?:[\\/]* ) # Absolute name.
26240 ac_srcdir=$srcdir$ac_dir_suffix;
26241 ac_top_srcdir=$srcdir
26242 ac_abs_top_srcdir=$srcdir ;;
26243 *) # Relative name.
26244 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26245 ac_top_srcdir=$ac_top_build_prefix$srcdir
26246 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26248 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26258 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26259 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26264 # If the template does not know about datarootdir, expand it.
26265 # FIXME: This hack should be removed a few years after 2.60.
26266 ac_datarootdir_hack=; ac_datarootdir_seen=
26277 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26278 *datarootdir*) ac_datarootdir_seen=yes;;
26279 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26281 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26284 ac_datarootdir_hack='
26285 s&@datadir@&$datadir&g
26286 s&@docdir@&$docdir&g
26287 s&@infodir@&$infodir&g
26288 s&@localedir@&$localedir&g
26289 s&@mandir@&$mandir&g
26290 s&\\\${datarootdir}&$datarootdir&g' ;;
26294 # Neutralize VPATH when `$srcdir' = `.'.
26295 # Shell code in configure.ac might set extrasub.
26296 # FIXME: do we really want to maintain this feature?
26297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26298 ac_sed_extra="$ac_vpsub
26301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26304 s|@configure_input@|$ac_sed_conf_input|;t t
26305 s&@top_builddir@&$ac_top_builddir_sub&;t t
26306 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26307 s&@srcdir@&$ac_srcdir&;t t
26308 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26309 s&@top_srcdir@&$ac_top_srcdir&;t t
26310 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26311 s&@builddir@&$ac_builddir&;t t
26312 s&@abs_builddir@&$ac_abs_builddir&;t t
26313 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26314 s&@INSTALL@&$ac_INSTALL&;t t
26315 $ac_datarootdir_hack
26317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26318 || as_fn_error "could not create $ac_file" "$LINENO" 5
26320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26321 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26324 which seems to be undefined. Please make sure it is defined." >&5
26325 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26326 which seems to be undefined. Please make sure it is defined." >&2;}
26330 -) cat "$tmp/out" && rm -f "$tmp/out";;
26331 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26333 || as_fn_error "could not create $ac_file" "$LINENO" 5
26339 if test x"$ac_file" != x-; then
26341 $as_echo "/* $configure_input */" \
26342 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26343 } >"$tmp/config.h" \
26344 || as_fn_error "could not create $ac_file" "$LINENO" 5
26345 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26347 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26350 mv "$tmp/config.h" "$ac_file" \
26351 || as_fn_error "could not create $ac_file" "$LINENO" 5
26354 $as_echo "/* $configure_input */" \
26355 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26356 || as_fn_error "could not create -" "$LINENO" 5
26358 # Compute "$ac_file"'s index in $config_headers.
26360 for _am_header in $config_headers :; do
26361 case $_am_header in
26362 "$ac_file" | "$ac_file":* )
26365 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26368 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
26369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26370 X"$ac_file" : 'X\(//\)[^/]' \| \
26371 X"$ac_file" : 'X\(//\)$' \| \
26372 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26373 $as_echo X"$ac_file" |
26374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26378 /^X\(\/\/\)[^/].*/{
26390 s/.*/./; q'`/stamp-h$_am_stamp_count
26393 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26394 $as_echo "$as_me: executing $ac_file commands" >&6;}
26399 case $ac_file$ac_mode in
26400 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26401 # Strip MF so we end up with the name of the file.
26402 mf=`echo "$mf" | sed -e 's/:.*$//'`
26403 # Check whether this is an Automake generated Makefile or not.
26404 # We used to match only the files named `Makefile.in', but
26405 # some people rename them; so instead we look at the file content.
26406 # Grep'ing the first line is not enough: some people post-process
26407 # each Makefile.in and add a new line on top of each file to say so.
26408 # So let's grep whole file.
26409 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26410 dirpart=`$as_dirname -- "$mf" ||
26411 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26412 X"$mf" : 'X\(//\)[^/]' \| \
26413 X"$mf" : 'X\(//\)$' \| \
26414 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26420 /^X\(\/\/\)[^/].*/{
26436 # Extract the definition of DEPDIR, am__include, and am__quote
26437 # from the Makefile without running `make'.
26438 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26439 test -z "$DEPDIR" && continue
26440 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26441 test -z "am__include" && continue
26442 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26443 # When using ansi2knr, U may be empty or an underscore; expand it
26444 U=`sed -n 's/^U = //p' < "$mf"`
26445 # Find all dependency output files, they are included files with
26446 # $(DEPDIR) in their names. We invoke sed twice because it is the
26447 # simplest approach to changing $(DEPDIR) to its actual value in the
26449 for file in `sed -n "
26450 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26451 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26452 # Make sure the directory exists.
26453 test -f "$dirpart/$file" && continue
26454 fdir=`$as_dirname -- "$file" ||
26455 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26456 X"$file" : 'X\(//\)[^/]' \| \
26457 X"$file" : 'X\(//\)$' \| \
26458 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26459 $as_echo X"$file" |
26460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26464 /^X\(\/\/\)[^/].*/{
26477 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26478 # echo "creating $dirpart/$file"
26479 echo '# dummy' > "$dirpart/$file"
26486 BACKENDSC="servers/slapd/backends.c"
26487 echo "Making $BACKENDSC"
26489 cat > $BACKENDSC << ENDX
26490 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26492 * Copyright 1998-2017 The OpenLDAP Foundation.
26493 * All rights reserved.
26495 * Redistribution and use in source and binary forms, with or without
26496 * modification, are permitted only as authorized by the OpenLDAP
26499 * A copy of this license is available in the file LICENSE in the
26500 * top-level directory of the distribution or, alternatively, at
26501 * <http://www.OpenLDAP.org/license.html>.
26503 /* This file is automatically generated by configure; please do not edit. */
26505 #include "portable.h"
26509 if test "${STATIC_BACKENDS}"; then
26510 for b in config ${STATIC_BACKENDS}; do
26511 bb=`echo "${b}" | sed -e 's/back-//'`
26512 cat >> $BACKENDSC << ENDX
26513 extern BI_init ${bb}_back_initialize;
26517 cat >> $BACKENDSC << ENDX
26519 BackendInfo slap_binfo[] = {
26522 for b in config ${STATIC_BACKENDS}; do
26523 bb=`echo "${b}" | sed -e 's/back-//'`
26524 echo " Add ${bb} ..."
26525 cat >> $BACKENDSC << ENDX
26526 { "${bb}", ${bb}_back_initialize },
26530 cat >> $BACKENDSC << ENDX
26534 /* end of generated file */
26537 OVERLAYSC="servers/slapd/overlays/statover.c"
26538 echo "Making $OVERLAYSC"
26540 cat > $OVERLAYSC << ENDX
26541 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26543 * Copyright 1998-2017 The OpenLDAP Foundation.
26544 * All rights reserved.
26546 * Redistribution and use in source and binary forms, with or without
26547 * modification, are permitted only as authorized by the OpenLDAP
26550 * A copy of this license is available in the file LICENSE in the
26551 * top-level directory of the distribution or, alternatively, at
26552 * <http://www.OpenLDAP.org/license.html>.
26554 /* This file is automatically generated by configure; please do not edit. */
26556 #include "portable.h"
26560 if test "${STATIC_OVERLAYS}"; then
26561 for o in ${STATIC_OVERLAYS}; do
26562 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26563 cat >> $OVERLAYSC << ENDX
26564 extern OV_init ${oo}_initialize;
26569 cat >> $OVERLAYSC << ENDX
26571 OverlayInit slap_oinfo[] = {
26574 if test "${STATIC_OVERLAYS}"; then
26575 for o in ${STATIC_OVERLAYS}; do
26576 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26577 echo " Add ${oo} ..."
26578 cat >> $OVERLAYSC << ENDX
26579 { "${oo}", ${oo}_initialize },
26584 cat >> $OVERLAYSC << ENDX
26588 /* end of generated file */
26591 if test "${ol_cv_mkdep}" = no; then
26592 echo '(Do not "make depend"; we do not know how to build dependencies)'
26594 echo 'Please run "make depend" to build dependencies'
26604 ac_clean_files=$ac_clean_files_save
26606 test $ac_write_fail = 0 ||
26607 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26610 # configure is writing to config.log, and then calls config.status.
26611 # config.status does its own redirection, appending to config.log.
26612 # Unfortunately, on DOS this fails, as config.log is still kept open
26613 # by configure, so config.status won't be able to write to it; its
26614 # output is simply discarded. So we exec the FD to /dev/null,
26615 # effectively closing config.log, so it can be properly (re)opened and
26616 # appended to by config.status. When coming back to configure, we
26617 # need to make the FD available again.
26618 if test "$no_create" != yes; then
26620 ac_config_status_args=
26621 test "$silent" = yes &&
26622 ac_config_status_args="$ac_config_status_args --quiet"
26624 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26626 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26627 # would make configure fail if this is the last instruction.
26628 $ac_cs_success || as_fn_exit $?
26630 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26632 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}